slate-angular 15.1.1 → 15.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slate-angular",
3
- "version": "15.1.1",
3
+ "version": "15.1.2",
4
4
  "description": "Angular view layer for Slate",
5
5
  "author": "pubuzhixing <pubuzhixing@gmail.com>",
6
6
  "homepage": "https://github.com/worktile/slate-angular#readme",
@@ -1,5 +1,5 @@
1
1
  import { Node, Path, Point, Range, BaseEditor } from 'slate';
2
- import { DOMNode, DOMPoint, DOMRange, DOMSelection, DOMStaticRange } from '../utils/dom';
2
+ import { DOMElement, DOMNode, DOMPoint, DOMRange, DOMSelection, DOMStaticRange } from '../utils/dom';
3
3
  import { Injector } from '@angular/core';
4
4
  import { NodeEntry } from 'slate';
5
5
  import { SlateError } from '../types/error';
@@ -37,6 +37,7 @@ export declare const AngularEditor: {
37
37
  * Find the path of Slate node.
38
38
  */
39
39
  findPath(editor: AngularEditor, node: Node): Path;
40
+ isNodeInEditor(editor: AngularEditor, node: Node): boolean;
40
41
  /**
41
42
  * Find the DOM node that implements DocumentOrShadowRoot for the editor.
42
43
  */
@@ -116,6 +117,7 @@ export declare const AngularEditor: {
116
117
  * Get the target range from a DOM `event`.
117
118
  */
118
119
  findEventRange(editor: AngularEditor, event: any): Range;
120
+ isLeafInEditor(editor: AngularEditor, leafNode: DOMElement): boolean;
119
121
  /**
120
122
  * Find a Slate point from a DOM selection's `domNode` and `domOffset`.
121
123
  */