@bangle.dev/pm-utils
Advanced tools
@@ -8,3 +8,3 @@ import type { Command } from 'prosemirror-commands'; | ||
declare type PredicateFunction = (state: EditorState, view?: EditorView) => any; | ||
export * from 'prosemirror-utils'; | ||
export { findParentNode, findParentNodeClosestToPos, findParentDomRef, hasParentNode, findParentNodeOfType, findParentNodeOfTypeClosestToPos, hasParentNodeOfType, findParentDomRefOfType, findSelectedNodeOfType, isNodeSelection, findPositionOfNodeBefore, findDomRefAtPos, flatten, findChildren, findTextNodes, findInlineNodes, findBlockNodes, findChildrenByAttr, findChildrenByType, findChildrenByMark, contains, removeParentNodeOfType, replaceParentNodeOfType, removeSelectedNode, replaceSelectedNode, canInsert, safeInsert, setParentNodeMarkup, selectParentNodeOfType, removeNodeBefore, setTextSelection, } from 'prosemirror-utils'; | ||
export declare function rafCommandExec(view: EditorView, command: Command): void; | ||
@@ -11,0 +11,0 @@ export declare function filter(predicates: PredicateFunction | PredicateFunction[], cmd?: Command): Command; |
@@ -6,3 +6,3 @@ import { DOMSerializer, Fragment, Slice, } from 'prosemirror-model'; | ||
} | ||
export * from 'prosemirror-utils'; | ||
export { findParentNode, findParentNodeClosestToPos, findParentDomRef, hasParentNode, findParentNodeOfType, findParentNodeOfTypeClosestToPos, hasParentNodeOfType, findParentDomRefOfType, findSelectedNodeOfType, isNodeSelection, findPositionOfNodeBefore, findDomRefAtPos, flatten, findChildren, findTextNodes, findInlineNodes, findBlockNodes, findChildrenByAttr, findChildrenByType, findChildrenByMark, contains, removeParentNodeOfType, replaceParentNodeOfType, removeSelectedNode, replaceSelectedNode, canInsert, safeInsert, setParentNodeMarkup, selectParentNodeOfType, removeNodeBefore, setTextSelection, } from 'prosemirror-utils'; | ||
export function rafCommandExec(view, command) { | ||
@@ -9,0 +9,0 @@ requestAnimationFrame(() => { |
{ | ||
"name": "@bangle.dev/pm-utils", | ||
"version": "0.21.0-alpha.4", | ||
"version": "0.21.0-alpha.5", | ||
"homepage": "https://bangle.dev", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -30,3 +30,35 @@ import type { Command } from 'prosemirror-commands'; | ||
export * from 'prosemirror-utils'; | ||
export { | ||
findParentNode, | ||
findParentNodeClosestToPos, | ||
findParentDomRef, | ||
hasParentNode, | ||
findParentNodeOfType, | ||
findParentNodeOfTypeClosestToPos, | ||
hasParentNodeOfType, | ||
findParentDomRefOfType, | ||
findSelectedNodeOfType, | ||
isNodeSelection, | ||
findPositionOfNodeBefore, | ||
findDomRefAtPos, | ||
flatten, | ||
findChildren, | ||
findTextNodes, | ||
findInlineNodes, | ||
findBlockNodes, | ||
findChildrenByAttr, | ||
findChildrenByType, | ||
findChildrenByMark, | ||
contains, | ||
removeParentNodeOfType, | ||
replaceParentNodeOfType, | ||
removeSelectedNode, | ||
replaceSelectedNode, | ||
canInsert, | ||
safeInsert, | ||
setParentNodeMarkup, | ||
selectParentNodeOfType, | ||
removeNodeBefore, | ||
setTextSelection, | ||
} from 'prosemirror-utils'; | ||
@@ -33,0 +65,0 @@ export function rafCommandExec(view: EditorView, command: Command) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
73301
3.15%969
3.86%