slate-vue3 0.13.3 → 0.13.4
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ancestor, Editor, Node, Operation, Point, Range, RangeRef, Text } from '../../slate/index.ts';
|
|
2
2
|
import { Key } from './key';
|
|
3
|
+
import { toRawWeakMap } from '../../share-tools/index.ts';
|
|
3
4
|
export type Action = {
|
|
4
5
|
at?: Point | Range;
|
|
5
6
|
run: () => void;
|
|
@@ -14,19 +15,19 @@ export declare const NODE_TO_PARENT: WeakMap<Node, Ancestor>;
|
|
|
14
15
|
* Weak maps that allow us to go between Slate nodes and DOM nodes. These
|
|
15
16
|
* are used to resolve DOM event-related logic into Slate actions.
|
|
16
17
|
*/
|
|
17
|
-
export declare const EDITOR_TO_WINDOW: WeakMap<
|
|
18
|
-
export declare const EDITOR_TO_ELEMENT: WeakMap<
|
|
18
|
+
export declare const EDITOR_TO_WINDOW: WeakMap<import('../../slate/index.ts').BaseEditor, Window>;
|
|
19
|
+
export declare const EDITOR_TO_ELEMENT: WeakMap<import('../../slate/index.ts').BaseEditor, HTMLElement>;
|
|
19
20
|
export declare const ELEMENT_TO_NODE: WeakMap<HTMLElement, Node>;
|
|
20
21
|
export declare const NODE_TO_ELEMENT: WeakMap<Node, HTMLElement>;
|
|
21
|
-
export declare const NODE_TO_KEY:
|
|
22
|
-
export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<
|
|
22
|
+
export declare const NODE_TO_KEY: toRawWeakMap<Node, Key>;
|
|
23
|
+
export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<import('../../slate/index.ts').BaseEditor, WeakMap<Key, HTMLElement>>;
|
|
23
24
|
/**
|
|
24
25
|
* Weak maps for storing editor-related state.
|
|
25
26
|
*/
|
|
26
|
-
export declare const IS_READ_ONLY: WeakMap<
|
|
27
|
-
export declare const IS_FOCUSED: WeakMap<
|
|
28
|
-
export declare const IS_COMPOSING: WeakMap<
|
|
29
|
-
export declare const EDITOR_TO_USER_SELECTION: WeakMap<
|
|
27
|
+
export declare const IS_READ_ONLY: WeakMap<import('../../slate/index.ts').BaseEditor, boolean>;
|
|
28
|
+
export declare const IS_FOCUSED: WeakMap<import('../../slate/index.ts').BaseEditor, boolean>;
|
|
29
|
+
export declare const IS_COMPOSING: WeakMap<import('../../slate/index.ts').BaseEditor, boolean>;
|
|
30
|
+
export declare const EDITOR_TO_USER_SELECTION: WeakMap<import('../../slate/index.ts').BaseEditor, RangeRef | null>;
|
|
30
31
|
/**
|
|
31
32
|
* Weak map for associating the context `onChange` context with the plugin.
|
|
32
33
|
*/
|