slate-react
Advanced tools
Comparing version
@@ -143,2 +143,7 @@ import { BaseEditor, Editor, Node, Path, Point, Range } from 'slate'; | ||
suppressThrow: T; | ||
/** | ||
* The direction to search for Slate leaf nodes if `domPoint` is | ||
* non-editable and non-void. | ||
*/ | ||
searchDirection?: 'forward' | 'backward'; | ||
}) => T extends true ? Point | null : Point; | ||
@@ -145,0 +150,0 @@ /** |
@@ -92,2 +92,10 @@ /** | ||
export declare const getActiveElement: () => DOMElement | null; | ||
/** | ||
* @returns `true` if `otherNode` is before `node` in the document; otherwise, `false`. | ||
*/ | ||
export declare const isBefore: (node: DOMNode, otherNode: DOMNode) => boolean; | ||
/** | ||
* @returns `true` if `otherNode` is after `node` in the document; otherwise, `false`. | ||
*/ | ||
export declare const isAfter: (node: DOMNode, otherNode: DOMNode) => boolean; | ||
//# sourceMappingURL=dom.d.ts.map |
{ | ||
"name": "slate-react", | ||
"description": "Tools for building completely customizable richtext editors with React.", | ||
"version": "0.110.0", | ||
"version": "0.110.1-20240912175838", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/slate.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2914790
0.6%43504
0.34%