prosemirror-utils
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -5,1 +5,2 @@ export { findParentNode, findParentNodeClosestToPos, findParentDomRef, hasParentNode, findParentNodeOfType, findParentNodeOfTypeClosestToPos, hasParentNodeOfType, findParentDomRefOfType, findSelectedNodeOfType, findPositionOfNodeBefore, findDomRefAtPos, } from './selection'; | ||
export { isNodeSelection, canInsert } from './helpers'; | ||
export type { DomAtPos, NodeTypeParam, Predicate, NodeWithPos, ContentNodeWithPos, } from './types'; |
import type { Node as PMNode, NodeType, Fragment } from 'prosemirror-model'; | ||
export type ContentNodeWithPos = { | ||
pos: number; | ||
start: number; | ||
depth: number; | ||
node: PMNode; | ||
}; | ||
export type NodeWithPos = ContentNodeWithPos; | ||
export type DomAtPos = (pos: number) => { | ||
@@ -7,8 +14,4 @@ node: Node; | ||
export type FindPredicate = (node: PMNode) => boolean; | ||
export type FindResult = { | ||
pos: number; | ||
start: number; | ||
depth: number; | ||
node: PMNode; | ||
} | undefined; | ||
export type Predicate = FindPredicate; | ||
export type FindResult = ContentNodeWithPos | undefined; | ||
export type Attrs = { | ||
@@ -15,0 +18,0 @@ [key: string]: unknown; |
{ | ||
"name": "prosemirror-utils", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Utils library for ProseMirror", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
162921
1246