@bangle.dev/core
Advanced tools
Comparing version 0.21.0 to 0.21.1
@@ -11,4 +11,4 @@ import { Command } from 'prosemirror-commands'; | ||
import { findParentNodeOfType } from 'prosemirror-utils'; | ||
import { mapChildren } from '@bangle.dev/pm-utils'; | ||
import { MoveDirection } from './types'; | ||
import { mapChildren } from '@bangle.dev/pm-utils'; | ||
@@ -15,0 +15,0 @@ function getParentTextSelection(state: EditorState, currentDepth: number) { |
import type { Command } from 'prosemirror-commands'; | ||
import { Fragment, MarkType, Node, NodeType, ResolvedPos, Schema, Slice } from 'prosemirror-model'; | ||
import { EditorState, Plugin, PluginKey, Transaction, Selection } from 'prosemirror-state'; | ||
import { findParentNodeOfType as _findParentNodeOfType } from 'prosemirror-utils'; | ||
import type { EditorView } from 'prosemirror-view'; | ||
@@ -9,7 +8,5 @@ export declare class GapCursorSelection extends Selection { | ||
declare type PredicateFunction = (state: EditorState, view?: EditorView) => any; | ||
export * from 'prosemirror-utils'; | ||
export declare function rafCommandExec(view: EditorView, command: Command): void; | ||
export declare function filter(predicates: PredicateFunction | PredicateFunction[], cmd?: Command): Command; | ||
export declare function safeInsert(content: Node | Fragment, position?: number, tryToReplace?: boolean): (tr: Transaction) => Transaction; | ||
export declare function removeSelectedNode(tr: Transaction): Transaction; | ||
export declare const findParentNodeOfType: typeof _findParentNodeOfType; | ||
export declare function isMarkActiveInSelection(type: MarkType): (state: EditorState) => boolean; | ||
@@ -47,3 +44,2 @@ export declare const validPos: (pos: number, doc: Node) => boolean; | ||
export declare function extendDispatch(dispatch: ((tr: Transaction) => void) | undefined, tapTr: (tr: Transaction) => any): ((tr: Transaction) => void) | undefined; | ||
export {}; | ||
//# sourceMappingURL=pm-utils.d.ts.map |
@@ -53,3 +53,3 @@ import { Command } from 'prosemirror-commands'; | ||
schema: Schema; | ||
}) => (import("prosemirror-inputrules").InputRule<any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}) => (import("prosemirror-state").Plugin<any, any> | import("prosemirror-inputrules").InputRule<any>)[]; | ||
export declare function toggleBold(): Command; | ||
@@ -56,0 +56,0 @@ export declare function queryIsBoldActive(): (state: EditorState) => boolean; |
@@ -53,3 +53,3 @@ import { Command } from 'prosemirror-commands'; | ||
schema: Schema; | ||
}) => (import("prosemirror-inputrules").InputRule<any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}) => (import("prosemirror-state").Plugin<any, any> | import("prosemirror-inputrules").InputRule<any>)[]; | ||
export declare function toggleBulletList(): Command; | ||
@@ -56,0 +56,0 @@ export declare function toggleTodoList(): Command; |
@@ -45,3 +45,3 @@ import { Command } from 'prosemirror-commands'; | ||
schema: Schema; | ||
}) => (import("prosemirror-inputrules").InputRule<any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}) => (import("prosemirror-state").Plugin<any, any> | import("prosemirror-inputrules").InputRule<any>)[]; | ||
export declare function toggleCode(): Command; | ||
@@ -48,0 +48,0 @@ export declare function queryIsCodeActive(): (state: EditorState) => boolean; |
@@ -46,3 +46,3 @@ import { Command } from 'prosemirror-commands'; | ||
schema: Schema; | ||
}) => (import("prosemirror-inputrules").InputRule<any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}) => (import("prosemirror-state").Plugin<any, any> | import("prosemirror-inputrules").InputRule<any>)[]; | ||
export declare function toggleItalic(): Command; | ||
@@ -49,0 +49,0 @@ export declare function queryIsItalicActive(): (state: EditorState) => boolean; |
@@ -48,3 +48,3 @@ import { Command } from 'prosemirror-commands'; | ||
schema: Schema; | ||
}) => (import("prosemirror-inputrules").InputRule<any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}) => (import("prosemirror-state").Plugin<any, any> | import("prosemirror-inputrules").InputRule<any>)[]; | ||
export declare function toggleStrike(): Command; | ||
@@ -51,0 +51,0 @@ export declare function queryIsStrikeActive(): (state: EditorState) => boolean; |
@@ -43,3 +43,3 @@ import { Command } from 'prosemirror-commands'; | ||
schema: Schema; | ||
}) => (import("prosemirror-inputrules").InputRule<any> | import("prosemirror-state").Plugin<any, any>)[]; | ||
}) => (import("prosemirror-state").Plugin<any, any> | import("prosemirror-inputrules").InputRule<any>)[]; | ||
export declare function toggleUnderline(): Command; | ||
@@ -46,0 +46,0 @@ export declare function queryIsUnderlineActive(): (state: EditorState) => boolean; |
@@ -15,4 +15,5 @@ import * as logging from './utils/logging'; | ||
export * from './utils/core-components'; | ||
export * from './core-commands'; | ||
declare const isChromeWithSelectionBug: boolean; | ||
export { components, utils, logging, browser, isChromeWithSelectionBug }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -15,3 +15,4 @@ import * as logging from './utils/logging'; | ||
export * from './utils/core-components'; | ||
export * from './core-commands'; | ||
const isChromeWithSelectionBug = browser.chrome && !browser.android && browser.chrome_version >= 58; | ||
export { components, utils, logging, browser, isChromeWithSelectionBug }; |
export { default as browser } from './browser'; | ||
export * from './core-components'; | ||
export * from './environment'; | ||
export * from './logging'; | ||
@@ -5,0 +4,0 @@ export * from './mark-input-rule'; |
export { default as browser } from './browser'; | ||
export * from './core-components'; | ||
export * from './environment'; | ||
export * from './logging'; | ||
@@ -5,0 +4,0 @@ export * from './mark-input-rule'; |
@@ -16,2 +16,3 @@ import * as logging from './utils/logging'; | ||
export * from './utils/core-components'; | ||
export * from './core-commands'; | ||
@@ -18,0 +19,0 @@ const isChromeWithSelectionBug = |
{ | ||
"name": "@bangle.dev/core", | ||
"version": "0.21.0", | ||
"version": "0.21.1", | ||
"homepage": "https://bangle.dev", | ||
@@ -31,5 +31,5 @@ "authors": [ | ||
"dependencies": { | ||
"@bangle.dev/js-utils": "0.21.0", | ||
"@bangle.dev/pm-utils": "0.21.0", | ||
"prosemirror-commands": "^1.1.9", | ||
"@bangle.dev/js-utils": "0.21.1", | ||
"@bangle.dev/pm-utils": "0.21.1", | ||
"prosemirror-commands": "^1.1.10", | ||
"prosemirror-dropcursor": "^1.3.5", | ||
@@ -40,4 +40,4 @@ "prosemirror-gapcursor": "^1.1.5", | ||
"prosemirror-keymap": "^1.1.4", | ||
"prosemirror-model": "^1.14.1", | ||
"prosemirror-schema-list": "^1.1.4", | ||
"prosemirror-model": "^1.14.2", | ||
"prosemirror-schema-list": "^1.1.5", | ||
"prosemirror-state": "^1.3.4", | ||
@@ -67,3 +67,3 @@ "prosemirror-tables": "^1.1.1", | ||
"markdown-it": "^10.0.0", | ||
"prettier": "^2.3.0", | ||
"prettier": "^2.3.2", | ||
"prosemirror-markdown": "^1.5.1" | ||
@@ -70,0 +70,0 @@ }, |
export { default as browser } from './browser'; | ||
export * from './core-components'; | ||
export * from './environment'; | ||
export * from './logging'; | ||
@@ -5,0 +4,0 @@ export * from './mark-input-rule'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1472059
554
33677
+ Added@bangle.dev/js-utils@0.21.1(transitive)
+ Added@bangle.dev/pm-utils@0.21.1(transitive)
- Removed@bangle.dev/js-utils@0.21.0(transitive)
- Removed@bangle.dev/pm-utils@0.21.0(transitive)
Updated@bangle.dev/js-utils@0.21.1
Updated@bangle.dev/pm-utils@0.21.1
Updatedprosemirror-commands@^1.1.10
Updatedprosemirror-model@^1.14.2