slate-vue3 0.13.7 → 0.14.0

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/dist/core.js CHANGED
@@ -1,99 +1,2 @@
1
- import { P, a, R, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, Q, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq } from "./create-editor-D66_fXbO.js";
2
- import { E as E2, a as a10, L as L2, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, c as c2, T as T2, d as d2, i as i2, e as e2 } from "./index-DN2Lw5SY.js";
3
- export {
4
- E2 as Editor,
5
- a10 as Element,
6
- L2 as Location,
7
- N2 as Node,
8
- O2 as Operation,
9
- P2 as Path,
10
- P as PathRef,
11
- b2 as Point,
12
- a as PointRef,
13
- R2 as Range,
14
- R as RangeRef,
15
- S2 as Scrubber,
16
- c2 as Span,
17
- T2 as Text,
18
- d2 as Transforms,
19
- b as above,
20
- c as addMark,
21
- d as after,
22
- e as apply,
23
- f as before,
24
- g as collapse,
25
- h as createEditor,
26
- i as deleteBackward,
27
- j as deleteForward,
28
- k as deleteFragment,
29
- l as deleteText,
30
- m as deselect,
31
- n as edges,
32
- o as elementReadOnly,
33
- p as end,
34
- q as first,
35
- r as fragment,
36
- s as getDirtyPaths,
37
- t as getFragment,
38
- u as getVoid,
39
- v as hasBlocks,
40
- w as hasInlines,
41
- x as hasPath,
42
- y as hasTexts,
43
- z as insertBreak,
44
- A as insertFragment,
45
- B as insertNode,
46
- C as insertNodes,
47
- D as insertSoftBreak,
48
- E as insertText,
49
- F as isBlock,
50
- G as isEdge,
51
- i2 as isEditor,
52
- H as isEmpty,
53
- I as isEnd,
54
- J as isNormalizing,
55
- e2 as isObject,
56
- K as isStart,
57
- L as last,
58
- M as leaf,
59
- N as levels,
60
- O as liftNodes,
61
- Q as marks,
62
- S as mergeNodes,
63
- T as move,
64
- U as moveNodes,
65
- V as next,
66
- W as node,
67
- X as nodes,
68
- Y as normalize,
69
- Z as normalizeNode,
70
- _ as parent,
71
- $ as path,
72
- a0 as pathRef,
73
- a1 as pathRefs,
74
- a2 as point,
75
- a3 as pointRef,
76
- a4 as pointRefs,
77
- a5 as positions,
78
- a6 as previous,
79
- a7 as range,
80
- a8 as rangeRef,
81
- a9 as rangeRefs,
82
- aa as removeMark,
83
- ab as removeNodes,
84
- ac as select,
85
- ad as setNodes,
86
- ae as setNormalizing,
87
- af as setPoint,
88
- ag as setSelection,
89
- ah as shouldMergeNodesRemovePrevNode,
90
- ai as shouldNormalize,
91
- aj as splitNodes,
92
- ak as start,
93
- al as string,
94
- am as unhangRange,
95
- an as unsetNodes,
96
- ao as unwrapNodes,
97
- ap as withoutNormalizing,
98
- aq as wrapNodes
99
- };
1
+ import { $ as insertText, A as previous, At as Span, B as nodes, Bt as PointRef, C as string, Ct as getDirtyPaths, D as range, Dt as Scrubber, E as removeMark, Et as Text, F as path, Ft as Element, G as leaf, H as next, I as pathRefs, It as Range, J as isNormalizing, K as last, L as pathRef, Lt as isObject, M as point, Mt as isEditor, N as pointRefs, Nt as Operation, O as rangeRefs, Ot as Point, P as pointRef, Pt as Node, Q as isBlock, R as parent, Rt as Path, S as unhangRange, St as getFragment, T as setNormalizing, Tt as Transforms, U as marks, V as node, Vt as PathRef, W as levels, X as isEmpty, Y as isEnd, Z as isEdge, _ as collapse, _t as after, a as splitNodes, at as hasInlines, b as shouldMergeNodesRemovePrevNode, bt as shouldNormalize, c as moveNodes, ct as fragment, d as insertNodes, dt as elementReadOnly, et as insertSoftBreak, f as setSelection, ft as edges, g as deselect, gt as before, h as move, ht as deleteBackward, i as unsetNodes, it as hasPath, j as positions, jt as Editor, k as rangeRef, kt as Location, l as mergeNodes, lt as first, m as select, mt as deleteForward, n as wrapNodes, nt as insertBreak, o as setNodes, ot as hasBlocks, p as setPoint, pt as deleteFragment, q as isStart, r as unwrapNodes, rt as hasTexts, s as removeNodes, st as getVoid, t as createEditor, tt as insertNode, u as liftNodes, ut as end, v as insertFragment, vt as addMark, w as start, wt as apply, x as withoutNormalizing, xt as normalizeNode, y as deleteText, yt as above, z as normalize, zt as RangeRef } from "./slate-B66D4v4j.js";
2
+ export { Editor, Element, Location, Node, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Scrubber, Span, Text, Transforms, above, addMark, after, apply, before, collapse, createEditor, deleteBackward, deleteForward, deleteFragment, deleteText, deselect, edges, elementReadOnly, end, first, fragment, getDirtyPaths, getFragment, getVoid, hasBlocks, hasInlines, hasPath, hasTexts, insertBreak, insertFragment, insertNode, insertNodes, insertSoftBreak, insertText, isBlock, isEdge, isEditor, isEmpty, isEnd, isNormalizing, isObject, isStart, last, leaf, levels, liftNodes, marks, mergeNodes, move, moveNodes, next, node, nodes, normalize, normalizeNode, parent, path, pathRef, pathRefs, point, pointRef, pointRefs, positions, previous, range, rangeRef, rangeRefs, removeMark, removeNodes, select, setNodes, setNormalizing, setPoint, setSelection, shouldMergeNodesRemovePrevNode, shouldNormalize, splitNodes, start, string, unhangRange, unsetNodes, unwrapNodes, withoutNormalizing, wrapNodes };
package/dist/dom.js CHANGED
@@ -1,405 +1,2 @@
1
- import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, g as getChunkTreeForNode, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, c as getPlainText, d as getSlateFragmentAttribute, e as EDITOR_TO_ON_CHANGE } from "./hotkeys-DqqUXWM5.js";
2
- import { C, f, h, j, H, k, I, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, K, A, M, B, F, G, J, L, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4 } from "./hotkeys-DqqUXWM5.js";
3
- import { E as Editor, R as Range, N as Node, d as Transforms, P as Path } from "./index-DN2Lw5SY.js";
4
- import "vue";
5
- const doRectsIntersect = (rect, compareRect) => {
6
- const middle = (compareRect.top + compareRect.bottom) / 2;
7
- return rect.top <= middle && rect.bottom >= middle;
8
- };
9
- const areRangesSameLine = (editor, range1, range2) => {
10
- const rect1 = DOMEditor.toDOMRange(editor, range1).getBoundingClientRect();
11
- const rect2 = DOMEditor.toDOMRange(editor, range2).getBoundingClientRect();
12
- return doRectsIntersect(rect1, rect2) && doRectsIntersect(rect2, rect1);
13
- };
14
- const findCurrentLineRange = (editor, parentRange) => {
15
- const parentRangeBoundary = Editor.range(editor, Range.end(parentRange));
16
- const positions = Array.from(Editor.positions(editor, { at: parentRange }));
17
- let left = 0;
18
- let right = positions.length;
19
- let middle = Math.floor(right / 2);
20
- if (areRangesSameLine(
21
- editor,
22
- Editor.range(editor, positions[left]),
23
- parentRangeBoundary
24
- )) {
25
- return Editor.range(editor, positions[left], parentRangeBoundary);
26
- }
27
- if (positions.length < 2) {
28
- return Editor.range(
29
- editor,
30
- positions[positions.length - 1],
31
- parentRangeBoundary
32
- );
33
- }
34
- while (middle !== positions.length && middle !== left) {
35
- if (areRangesSameLine(
36
- editor,
37
- Editor.range(editor, positions[middle]),
38
- parentRangeBoundary
39
- )) {
40
- right = middle;
41
- } else {
42
- left = middle;
43
- }
44
- middle = Math.floor((left + right) / 2);
45
- }
46
- return Editor.range(editor, positions[left], parentRangeBoundary);
47
- };
48
- const withDOM = (editor, clipboardFormatKey = "x-slate-fragment") => {
49
- const e = editor;
50
- const { apply, onChange, deleteBackward, addMark, removeMark } = e;
51
- EDITOR_TO_KEY_TO_ELEMENT.set(e, /* @__PURE__ */ new WeakMap());
52
- e.addMark = (key, value) => {
53
- EDITOR_TO_USER_MARKS.delete(e);
54
- addMark(key, value);
55
- };
56
- e.removeMark = (key) => {
57
- EDITOR_TO_USER_MARKS.delete(e);
58
- removeMark(key);
59
- };
60
- e.deleteBackward = (unit) => {
61
- if (unit !== "line") {
62
- return deleteBackward(unit);
63
- }
64
- if (e.selection && Range.isCollapsed(e.selection)) {
65
- const parentBlockEntry = Editor.above(e, {
66
- match: (n2) => Node.isElement(n2) && Editor.isBlock(e, n2),
67
- at: e.selection
68
- });
69
- if (parentBlockEntry) {
70
- const [, parentBlockPath] = parentBlockEntry;
71
- const parentElementRange = Editor.range(
72
- e,
73
- parentBlockPath,
74
- e.selection.anchor
75
- );
76
- const currentLineRange = findCurrentLineRange(e, parentElementRange);
77
- if (!Range.isCollapsed(currentLineRange)) {
78
- Transforms.delete(e, { at: currentLineRange });
79
- }
80
- }
81
- }
82
- };
83
- e.apply = (op) => {
84
- if (op.type === "move_node") {
85
- const parent = Node.parent(e, op.path);
86
- const chunking = !!e.getChunkSize(parent);
87
- if (chunking) {
88
- const node = Node.get(e, op.path);
89
- const chunkTree = getChunkTreeForNode(e, parent);
90
- const key = DOMEditor.findKey(e, node);
91
- chunkTree.movedNodeKeys.add(key);
92
- }
93
- }
94
- const matches = [];
95
- const pathRefMatches = [];
96
- switch (op.type) {
97
- case "insert_text":
98
- case "remove_text":
99
- case "set_node":
100
- case "split_node": {
101
- matches.push(...getMatches(e, op.path));
102
- break;
103
- }
104
- case "set_selection": {
105
- EDITOR_TO_USER_SELECTION.get(e)?.unref();
106
- EDITOR_TO_USER_SELECTION.delete(e);
107
- break;
108
- }
109
- case "insert_node":
110
- case "remove_node": {
111
- matches.push(...getMatches(e, Path.parent(op.path)));
112
- break;
113
- }
114
- case "merge_node": {
115
- const prevPath = Path.previous(op.path);
116
- matches.push(...getMatches(e, prevPath));
117
- break;
118
- }
119
- case "move_node": {
120
- const commonPath = Path.common(
121
- Path.parent(op.path),
122
- Path.parent(op.newPath)
123
- );
124
- matches.push(...getMatches(e, commonPath));
125
- let changedPath;
126
- if (Path.isBefore(op.path, op.newPath)) {
127
- matches.push(...getMatches(e, Path.parent(op.path)));
128
- changedPath = op.newPath;
129
- } else {
130
- matches.push(...getMatches(e, Path.parent(op.newPath)));
131
- changedPath = op.path;
132
- }
133
- const changedNode = Node.get(editor, Path.parent(changedPath));
134
- const changedNodeKey = DOMEditor.findKey(e, changedNode);
135
- const changedPathRef = Editor.pathRef(e, Path.parent(changedPath));
136
- pathRefMatches.push([changedPathRef, changedNodeKey]);
137
- break;
138
- }
139
- }
140
- apply(op);
141
- for (const [path, key] of matches) {
142
- const [node] = Editor.node(e, path);
143
- NODE_TO_KEY.set(node, key);
144
- }
145
- for (const [pathRef, key] of pathRefMatches) {
146
- if (pathRef.current) {
147
- const [node] = Editor.node(e, pathRef.current);
148
- NODE_TO_KEY.set(node, key);
149
- }
150
- pathRef.unref();
151
- }
152
- };
153
- e.setFragmentData = (data) => {
154
- const { selection } = e;
155
- if (!selection) {
156
- return;
157
- }
158
- const [start, end] = Range.edges(selection);
159
- const startVoid = Editor.void(e, { at: start.path });
160
- const endVoid = Editor.void(e, { at: end.path });
161
- if (Range.isCollapsed(selection) && !startVoid) {
162
- return;
163
- }
164
- const domRange = DOMEditor.toDOMRange(e, selection);
165
- let contents = domRange.cloneContents();
166
- let attach = contents.childNodes[0];
167
- contents.childNodes.forEach((node) => {
168
- if (node.textContent && node.textContent.trim() !== "") {
169
- attach = node;
170
- }
171
- });
172
- if (endVoid) {
173
- const [voidNode] = endVoid;
174
- const r2 = domRange.cloneRange();
175
- const domNode = DOMEditor.toDOMNode(e, voidNode);
176
- r2.setEndAfter(domNode);
177
- contents = r2.cloneContents();
178
- }
179
- if (startVoid) {
180
- attach = contents.querySelector("[data-slate-spacer]");
181
- }
182
- Array.from(contents.querySelectorAll("[data-slate-zero-width]")).forEach(
183
- (zw) => {
184
- const isNewline = zw.getAttribute("data-slate-zero-width") === "n";
185
- zw.textContent = isNewline ? "\n" : "";
186
- }
187
- );
188
- if (isDOMText(attach)) {
189
- const span = attach.ownerDocument.createElement("span");
190
- span.style.whiteSpace = "pre";
191
- span.appendChild(attach);
192
- contents.appendChild(span);
193
- attach = span;
194
- }
195
- const fragment = e.getFragment();
196
- const string = JSON.stringify(fragment);
197
- const encoded = window.btoa(encodeURIComponent(string));
198
- attach.setAttribute("data-slate-fragment", encoded);
199
- data.setData(`application/${clipboardFormatKey}`, encoded);
200
- const div = contents.ownerDocument.createElement("div");
201
- div.appendChild(contents);
202
- div.setAttribute("hidden", "true");
203
- contents.ownerDocument.body.appendChild(div);
204
- data.setData("text/html", div.innerHTML);
205
- data.setData("text/plain", getPlainText(div));
206
- contents.ownerDocument.body.removeChild(div);
207
- return data;
208
- };
209
- e.insertData = (data) => {
210
- if (!e.insertFragmentData(data)) {
211
- e.insertTextData(data);
212
- }
213
- };
214
- e.insertFragmentData = (data) => {
215
- const fragment = data.getData(`application/${clipboardFormatKey}`) || getSlateFragmentAttribute(data);
216
- if (fragment) {
217
- const decoded = decodeURIComponent(window.atob(fragment));
218
- const parsed = JSON.parse(decoded);
219
- e.insertFragment(parsed);
220
- return true;
221
- }
222
- return false;
223
- };
224
- e.insertTextData = (data) => {
225
- const text = data.getData("text/plain");
226
- if (text) {
227
- const lines = text.split(/\r\n|\r|\n/);
228
- let split = false;
229
- for (const line of lines) {
230
- if (split) {
231
- Transforms.splitNodes(e, { always: true });
232
- }
233
- e.insertText(line);
234
- split = true;
235
- }
236
- return true;
237
- }
238
- return false;
239
- };
240
- e.getChunkSize = () => null;
241
- e.onChange = (options) => {
242
- const onContextChange = EDITOR_TO_ON_CHANGE.get(e);
243
- if (onContextChange) {
244
- onContextChange(options);
245
- }
246
- onChange(options);
247
- };
248
- return e;
249
- };
250
- const getMatches = (e, path) => {
251
- const matches = [];
252
- for (const [n2, p2] of Editor.levels(e, { at: path })) {
253
- const key = DOMEditor.findKey(e, n2);
254
- matches.push([p2, key]);
255
- }
256
- return matches;
257
- };
258
- const shallowCompare = (obj1, obj2) => Object.keys(obj1).length === Object.keys(obj2).length && Object.keys(obj1).every(
259
- (key) => Object.hasOwn(obj2, key) && obj1[key] === obj2[key]
260
- );
261
- const isDecorationFlagsEqual = (range, other) => {
262
- const { anchor: rangeAnchor, focus: rangeFocus, ...rangeOwnProps } = range;
263
- const { anchor: otherAnchor, focus: otherFocus, ...otherOwnProps } = other;
264
- return shallowCompare(rangeOwnProps, otherOwnProps);
265
- };
266
- const isElementDecorationsEqual = (list, another) => {
267
- if (list === another) {
268
- return true;
269
- }
270
- if (!list || !another) {
271
- return false;
272
- }
273
- for (let i = 0; i < list.length; i++) {
274
- const range = list[i];
275
- const other = another[i];
276
- if (!Range.equals(range, other) || !isDecorationFlagsEqual(range, other)) {
277
- return false;
278
- }
279
- }
280
- return true;
281
- };
282
- const isTextDecorationsEqual = (list, another) => {
283
- if (list === another) {
284
- return true;
285
- }
286
- if (!list || !another) {
287
- return false;
288
- }
289
- if (list.length !== another.length) {
290
- return false;
291
- }
292
- for (let i = 0; i < list.length; i++) {
293
- const range = list[i];
294
- const other = another[i];
295
- if (range.anchor.offset !== other.anchor.offset || range.focus.offset !== other.focus.offset || !isDecorationFlagsEqual(range, other)) {
296
- return false;
297
- }
298
- }
299
- return true;
300
- };
301
- const splitDecorationsByChild = (editor, node, decorations) => {
302
- const decorationsByChild = Array.from(
303
- node.children,
304
- () => []
305
- );
306
- if (decorations.length === 0) {
307
- return decorationsByChild;
308
- }
309
- const path = DOMEditor.findPath(editor, node);
310
- const level = path.length;
311
- const ancestorRange = Editor.range(editor, path);
312
- const cachedChildRanges = new Array(node.children.length);
313
- const getChildRange = (index) => {
314
- const cachedRange = cachedChildRanges[index];
315
- if (cachedRange) return cachedRange;
316
- const childRange = Editor.range(editor, [...path, index]);
317
- cachedChildRanges[index] = childRange;
318
- return childRange;
319
- };
320
- for (const decoration of decorations) {
321
- const decorationRange = Range.intersection(ancestorRange, decoration);
322
- if (!decorationRange) continue;
323
- const [startPoint, endPoint] = Range.edges(decorationRange);
324
- const startIndex = startPoint.path[level];
325
- const endIndex = endPoint.path[level];
326
- for (let i = startIndex; i <= endIndex; i++) {
327
- const ds = decorationsByChild[i];
328
- if (!ds) continue;
329
- const childRange = getChildRange(i);
330
- const childDecorationRange = Range.intersection(childRange, decoration);
331
- if (!childDecorationRange) continue;
332
- ds.push({
333
- ...decoration,
334
- ...childDecorationRange
335
- });
336
- }
337
- }
338
- return decorationsByChild;
339
- };
340
- export {
341
- C as CAN_USE_DOM,
342
- DOMEditor,
343
- f as EDITOR_TO_ELEMENT,
344
- EDITOR_TO_KEY_TO_ELEMENT,
345
- EDITOR_TO_ON_CHANGE,
346
- EDITOR_TO_USER_MARKS,
347
- EDITOR_TO_USER_SELECTION,
348
- h as EDITOR_TO_WINDOW,
349
- j as ELEMENT_TO_NODE,
350
- H as HAS_BEFORE_INPUT_SUPPORT,
351
- k as Hotkeys,
352
- I as IS_ANDROID,
353
- l as IS_ANDROID_CHROME_LEGACY,
354
- m as IS_APPLE,
355
- n as IS_CHROME,
356
- o as IS_CHROME_LEGACY,
357
- p as IS_COMPOSING,
358
- q as IS_EDGE_LEGACY,
359
- r as IS_FIREFOX,
360
- s as IS_FIREFOX_LEGACY,
361
- t as IS_FOCUSED,
362
- u as IS_IOS,
363
- v as IS_READ_ONLY,
364
- w as IS_SAFARI_LEGACY,
365
- x as IS_UC_MOBILE,
366
- y as IS_WEBKIT,
367
- z as IS_WECHATBROWSER,
368
- K as KEY_TO_CHUNK_TREE,
369
- A as Key,
370
- M as MARK_PLACEHOLDER_SYMBOL,
371
- B as NODE_TO_ELEMENT,
372
- F as NODE_TO_INDEX,
373
- NODE_TO_KEY,
374
- G as NODE_TO_PARENT,
375
- J as applyStringDiff,
376
- L as closestShadowAware,
377
- O as containsShadowAware,
378
- P as getActiveElement,
379
- getChunkTreeForNode,
380
- Q as getClipboardData,
381
- R as getDefaultView,
382
- S as getEditableChild,
383
- T as getEditableChildAndIndex,
384
- getPlainText,
385
- U as getSelection,
386
- getSlateFragmentAttribute,
387
- V as hasShadowRoot,
388
- W as isAfter,
389
- X as isBefore,
390
- Y as isDOMComment,
391
- Z as isDOMElement,
392
- _ as isDOMNode,
393
- $ as isDOMSelection,
394
- isDOMText,
395
- isElementDecorationsEqual,
396
- a0 as isPlainTextOnlyPaste,
397
- isTextDecorationsEqual,
398
- a1 as isTrackedMutation,
399
- a2 as normalizeDOMPoint,
400
- a3 as normalizeStringDiff,
401
- a4 as reconcileChildren,
402
- shallowCompare,
403
- splitDecorationsByChild,
404
- withDOM
405
- };
1
+ import { $ as getSlateFragmentAttribute, A as HAS_BEFORE_INPUT_SUPPORT, B as IS_SAFARI_LEGACY, C as MARK_PLACEHOLDER_SYMBOL, D as NODE_TO_PARENT, E as NODE_TO_KEY, F as IS_CHROME_LEGACY, G as containsShadowAware, H as IS_WEBKIT, I as IS_EDGE_LEGACY, J as getDefaultView, K as getActiveElement, L as IS_FIREFOX, M as IS_ANDROID_CHROME_LEGACY, N as IS_APPLE, O as Key, P as IS_CHROME, Q as getSelection, R as IS_FIREFOX_LEGACY, S as IS_READ_ONLY, T as NODE_TO_INDEX, U as IS_WECHATBROWSER, V as IS_UC_MOBILE, W as closestShadowAware, X as getEditableChildAndIndex, Y as getEditableChild, Z as getPlainText, _ as EDITOR_TO_USER_SELECTION, a as Hotkeys, at as isDOMNode, b as IS_COMPOSING, c as withDOM, ct as isPlainTextOnlyPaste, d as getChunkTreeForNode, et as hasShadowRoot, f as DOMEditor, g as EDITOR_TO_USER_MARKS, h as EDITOR_TO_ON_CHANGE, i as splitDecorationsByChild, it as isDOMElement, j as IS_ANDROID, k as CAN_USE_DOM, l as reconcileChildren, lt as isTrackedMutation, m as EDITOR_TO_KEY_TO_ELEMENT, n as isTextDecorationsEqual, nt as isBefore, o as applyStringDiff, ot as isDOMSelection, p as EDITOR_TO_ELEMENT, q as getClipboardData, r as shallowCompare, rt as isDOMComment, s as normalizeStringDiff, st as isDOMText, t as isElementDecorationsEqual, tt as isAfter, u as KEY_TO_CHUNK_TREE, ut as normalizeDOMPoint, v as EDITOR_TO_WINDOW, w as NODE_TO_ELEMENT, x as IS_FOCUSED, y as ELEMENT_TO_NODE, z as IS_IOS } from "./slate-dom-DljMynpz.js";
2
+ export { CAN_USE_DOM, DOMEditor, EDITOR_TO_ELEMENT, EDITOR_TO_KEY_TO_ELEMENT, EDITOR_TO_ON_CHANGE, EDITOR_TO_USER_MARKS, EDITOR_TO_USER_SELECTION, EDITOR_TO_WINDOW, ELEMENT_TO_NODE, HAS_BEFORE_INPUT_SUPPORT, Hotkeys, IS_ANDROID, IS_ANDROID_CHROME_LEGACY, IS_APPLE, IS_CHROME, IS_CHROME_LEGACY, IS_COMPOSING, IS_EDGE_LEGACY, IS_FIREFOX, IS_FIREFOX_LEGACY, IS_FOCUSED, IS_IOS, IS_READ_ONLY, IS_SAFARI_LEGACY, IS_UC_MOBILE, IS_WEBKIT, IS_WECHATBROWSER, KEY_TO_CHUNK_TREE, Key, MARK_PLACEHOLDER_SYMBOL, NODE_TO_ELEMENT, NODE_TO_INDEX, NODE_TO_KEY, NODE_TO_PARENT, applyStringDiff, closestShadowAware, containsShadowAware, getActiveElement, getChunkTreeForNode, getClipboardData, getDefaultView, getEditableChild, getEditableChildAndIndex, getPlainText, getSelection, getSlateFragmentAttribute, hasShadowRoot, isAfter, isBefore, isDOMComment, isDOMElement, isDOMNode, isDOMSelection, isDOMText, isElementDecorationsEqual, isPlainTextOnlyPaste, isTextDecorationsEqual, isTrackedMutation, normalizeDOMPoint, normalizeStringDiff, reconcileChildren, shallowCompare, splitDecorationsByChild, withDOM };