slate-vue3 0.13.2 → 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.
- package/dist/core.js +2 -99
- package/dist/dom.js +2 -405
- package/dist/history.js +162 -211
- package/dist/hyperscript.js +250 -228
- package/dist/index.js +3 -63
- package/dist/{slate-dom → packages/slate-dom}/utils/weak-maps.d.ts +9 -8
- package/dist/playwright.config.d.ts +9 -0
- package/dist/share-tools-DLjSB3JV.js +21 -0
- package/dist/slate-C-CGsGnX.js +5618 -0
- package/dist/slate-dom-IFTx5FeX.js +1805 -0
- package/dist/slate-vue-D6ifooP_.js +1684 -0
- package/dist/yjs.js +1075 -1498
- package/package.json +19 -17
- package/dist/create-editor-z7CFqjGE.js +0 -3324
- package/dist/hotkeys-BEBL6MB3.js +0 -1770
- package/dist/index-B_A1dZu-.js +0 -1565
- package/dist/index-Ban80MbP.js +0 -21
- package/dist/use-focused-C_oKuppP.js +0 -2111
- /package/dist/{share-tools → packages/share-tools}/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/apply.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/batch-dirty-paths.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/get-dirty-paths.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/get-fragment.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/normalize-node.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/should-normalize.d.ts +0 -0
- /package/dist/{slate → packages/slate}/core/update-dirty-paths.d.ts +0 -0
- /package/dist/{slate → packages/slate}/create-editor.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/above.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/add-mark.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/after.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/before.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/delete-backward.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/delete-forward.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/delete-fragment.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/edges.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/element-read-only.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/end.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/first.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/fragment.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/get-void.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/has-blocks.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/has-inlines.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/has-path.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/has-texts.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/insert-break.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/insert-node.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/insert-soft-break.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/insert-text.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-block.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-edge.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-editor.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-empty.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-end.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-normalizing.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/is-start.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/last.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/leaf.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/levels.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/marks.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/next.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/node.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/normalize.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/parent.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/path-ref.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/path-refs.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/path.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/point-ref.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/point-refs.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/point.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/positions.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/previous.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/range-ref.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/range-refs.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/range.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/remove-mark.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/set-normalizing.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/should-merge-nodes-remove-prev-node.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/start.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/string.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/unhang-range.d.ts +0 -0
- /package/dist/{slate → packages/slate}/editor/without-normalizing.d.ts +0 -0
- /package/dist/{slate → packages/slate}/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/editor.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/element.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/location.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/node.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/operation.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/path-ref.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/path.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/point-ref.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/point.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/range-ref.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/range.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/scrubber.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/text.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/transforms/general.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/transforms/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/transforms/node.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/transforms/selection.d.ts +0 -0
- /package/dist/{slate → packages/slate}/interfaces/transforms/text.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/insert-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/lift-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/merge-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/move-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/remove-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/set-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/split-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/unset-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/unwrap-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-node/wrap-nodes.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/collapse.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/deselect.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/move.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/select.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/set-point.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-selection/set-selection.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-text/delete-text.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-text/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/transforms-text/insert-fragment.d.ts +0 -0
- /package/dist/{slate → packages/slate}/types/custom-types.d.ts +0 -0
- /package/dist/{slate → packages/slate}/types/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/types/types.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/deep-equal.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/get-default-insert-location.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/index.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/is-object.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/match-path.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/string.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/types.d.ts +0 -0
- /package/dist/{slate → packages/slate}/utils/weak-maps.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/chunking/children-helper.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/chunking/chunk-tree-helper.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/chunking/get-chunk-tree-for-node.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/chunking/index.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/chunking/reconcile-children.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/chunking/types.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/custom-types.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/index.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/plugin/dom-editor.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/plugin/with-dom.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/diff-text.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/dom.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/environment.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/hotkeys.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/key.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/lines.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/range-list.d.ts +0 -0
- /package/dist/{slate-dom → packages/slate-dom}/utils/types.d.ts +0 -0
- /package/dist/{slate-history → packages/slate-history}/history-editor.d.ts +0 -0
- /package/dist/{slate-history → packages/slate-history}/history.d.ts +0 -0
- /package/dist/{slate-history → packages/slate-history}/index.d.ts +0 -0
- /package/dist/{slate-history → packages/slate-history}/with-history.d.ts +0 -0
- /package/dist/{slate-hyperscript → packages/slate-hyperscript}/creators.d.ts +0 -0
- /package/dist/{slate-hyperscript → packages/slate-hyperscript}/hyperscript.d.ts +0 -0
- /package/dist/{slate-hyperscript → packages/slate-hyperscript}/index.d.ts +0 -0
- /package/dist/{slate-hyperscript → packages/slate-hyperscript}/tokens.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/children.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/chunk.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/editable.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/element.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/leaf.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/placeholder.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/slate.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/string.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/text.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/components/utils.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-android-manager.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-composing.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-editor.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-element.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-focused.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-inherit-ref.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-read-only.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-selected.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/hooks/use-selection.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/index.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/render/chunk.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/render/decorate.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/render/fn.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/render/last.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/render/placeholder.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/render/version.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/utils/constants.d.ts +0 -0
- /package/dist/{slate-vue → packages/slate-vue}/utils/interface.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToSlate/index.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToSlate/textEvent.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/index.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/index.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/insertNode.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/mergeNode.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/moveNode.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/removeNode.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/setNode.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/node/splitNode.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/text/index.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/text/insertText.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/text/removeText.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/applyToYjs/types.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/hooks/useDecorateRemoteCursors.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/hooks/useRemoteCursorOverlayPositions.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/hooks/useRemoteCursorStates.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/hooks/useUnsetCursorPositionOnBlur.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/hooks/utils.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/index.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/model/types.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/plugins/index.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/plugins/withCursors.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/plugins/withYHistory.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/plugins/withYjs.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/clone.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/convert.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/delta.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/location.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/object.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/position.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/slate.d.ts +0 -0
- /package/dist/{slate-yjs → packages/slate-yjs}/utils/yjs.d.ts +0 -0
package/dist/core.js
CHANGED
|
@@ -1,99 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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-C-CGsGnX.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
|
|
2
|
-
|
|
3
|
-
import { E as Editor, R as Range, N as Node, d as Transforms, P as Path } from "./index-B_A1dZu-.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-IFTx5FeX.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 };
|