slate-vue3 0.0.41 → 0.1.1
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/README.md +7 -7
- package/dist/{batch-dirty-paths-CZqHWmdq.js → batch-dirty-paths-BNjNom-v.js} +10 -25
- package/dist/core.js +26 -25
- package/dist/{create-editor-BP4gf1UN.js → create-editor-D-lN_Ejd.js} +23 -34
- package/dist/dom.js +11 -9
- package/dist/history.js +1 -1
- package/dist/{hotkeys-DpsWjIJe.js → hotkeys-B_EjNsx-.js} +11 -8
- package/dist/hyperscript.js +2 -2
- package/dist/index.js +13 -276
- package/dist/location-j9dF8XY5.js +16 -0
- package/dist/slate-dom/custom-types.d.ts +0 -4
- package/dist/slate-dom/index.d.ts +1 -1
- package/dist/slate-dom/utils/weak-maps.d.ts +0 -4
- package/dist/slate-vue/hooks/use-inherit-ref.d.ts +2 -4
- package/dist/slate-yjs/applyToSlate/index.d.ts +19 -0
- package/dist/slate-yjs/applyToSlate/textEvent.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/index.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/index.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/insertNode.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/mergeNode.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/moveNode.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/removeNode.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/setNode.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/node/splitNode.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/text/index.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/text/insertText.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/text/removeText.d.ts +3 -0
- package/dist/slate-yjs/applyToYjs/types.d.ts +8 -0
- package/dist/slate-yjs/index.d.ts +5 -0
- package/dist/slate-yjs/model/types.d.ts +37 -0
- package/dist/slate-yjs/plugins/index.d.ts +3 -0
- package/dist/slate-yjs/plugins/withCursors.d.ts +38 -0
- package/dist/slate-yjs/plugins/withYHistory.d.ts +19 -0
- package/dist/slate-yjs/plugins/withYjs.d.ts +42 -0
- package/dist/slate-yjs/utils/clone.d.ts +4 -0
- package/dist/slate-yjs/utils/convert.d.ts +7 -0
- package/dist/slate-yjs/utils/delta.d.ts +7 -0
- package/dist/slate-yjs/utils/location.d.ts +11 -0
- package/dist/slate-yjs/utils/object.d.ts +8 -0
- package/dist/slate-yjs/utils/position.d.ts +19 -0
- package/dist/slate-yjs/utils/slate.d.ts +2 -0
- package/dist/slate-yjs/utils/yjs.d.ts +4 -0
- package/dist/yjs.js +1338 -0
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -139,19 +139,19 @@ interface EditableProps extends HTMLAttributes {
|
|
|
139
139
|
## onchange
|
|
140
140
|
> any change in slate will trigger it
|
|
141
141
|
```typescript
|
|
142
|
-
const onchange: (event:
|
|
142
|
+
const onchange: (event: { operation?: Operation }) => void
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
## onvaluechange
|
|
146
146
|
> slate children change in slate will trigger it
|
|
147
147
|
```typescript
|
|
148
|
-
const onvaluechange: (event:
|
|
148
|
+
const onvaluechange: (event: { operation?: Operation }) => void
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
## onselectionchange
|
|
152
152
|
> slate selection change in slate will trigger it
|
|
153
153
|
```typescript
|
|
154
|
-
const onselectionchange: (event:
|
|
154
|
+
const onselectionchange: (event: { operation?: Operation }) => void
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
# Hooks in slate-vue3
|
|
@@ -209,9 +209,7 @@ const selection = useSelection()
|
|
|
209
209
|
## [useInheritRef](https://github.com/Guan-Erjia/slate-vue3/blob/master/packages/slate-vue/src/hooks/use-inherit-ref.ts)
|
|
210
210
|
> Automatically bind ref to the real node when the component is mounted,This is important when rendering element nodes directly
|
|
211
211
|
```typescript
|
|
212
|
-
const useInheritRef: (attribute: VNodeProps) => VNodeProps
|
|
213
|
-
inheritRef?: VNodeRef
|
|
214
|
-
};
|
|
212
|
+
const useInheritRef: (attribute: VNodeProps) => VNodeProps
|
|
215
213
|
|
|
216
214
|
const renderElement = (props: RenderElementProps) => {
|
|
217
215
|
const { attributes, children, element } = props
|
|
@@ -243,7 +241,9 @@ Vue uses lazy updates, rendering with components generates additional state, whi
|
|
|
243
241
|
- [slate-vue](https://github.com/Guan-Erjia/slate-vue3/tree/master/packages/slate-vue)
|
|
244
242
|
Vue components for rendering slate editors
|
|
245
243
|
- [slate-history](https://github.com/Guan-Erjia/slate-vue3/tree/master/packages/slate-history)
|
|
246
|
-
|
|
244
|
+
Same with slate-history
|
|
245
|
+
- [slate-hyperscript](https://github.com/Guan-Erjia/slate-vue3/tree/master/packages/slate-hyperscript)
|
|
246
|
+
Same with slate-history
|
|
247
247
|
- [share-tools](https://github.com/Guan-Erjia/slate-vue3/tree/master/packages/share-tools)
|
|
248
248
|
for special processing of Proxy data, obtain the raw pointer, isPlainObject declare
|
|
249
249
|
|
|
@@ -1445,9 +1445,6 @@ cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag]
|
|
|
1445
1445
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1446
1446
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1447
1447
|
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
1448
|
-
if (customizer) {
|
|
1449
|
-
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1450
|
-
}
|
|
1451
1448
|
if (result !== void 0) {
|
|
1452
1449
|
return result;
|
|
1453
1450
|
}
|
|
@@ -2362,7 +2359,6 @@ export {
|
|
|
2362
2359
|
DIRTY_PATHS as D,
|
|
2363
2360
|
Editor as E,
|
|
2364
2361
|
FLUSHING as F,
|
|
2365
|
-
MapCache as M,
|
|
2366
2362
|
Node as N,
|
|
2367
2363
|
Operation as O,
|
|
2368
2364
|
Path as P,
|
|
@@ -2373,26 +2369,15 @@ export {
|
|
|
2373
2369
|
Point as b,
|
|
2374
2370
|
Transforms as c,
|
|
2375
2371
|
isPlainObject as d,
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2372
|
+
cloneDeep as e,
|
|
2373
|
+
DIRTY_PATH_KEYS as f,
|
|
2374
|
+
isBatchingDirtyPaths as g,
|
|
2375
|
+
NORMALIZING as h,
|
|
2380
2376
|
isEditor as i,
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
baseClone as p,
|
|
2388
|
-
DIRTY_PATH_KEYS as q,
|
|
2389
|
-
isBatchingDirtyPaths as r,
|
|
2390
|
-
NORMALIZING as s,
|
|
2391
|
-
toRawWeakMap as t,
|
|
2392
|
-
PATH_REFS as u,
|
|
2393
|
-
POINT_REFS as v,
|
|
2394
|
-
RANGE_REFS as w,
|
|
2395
|
-
cloneDeep as x,
|
|
2396
|
-
getDefaultInsertLocation as y,
|
|
2397
|
-
batchDirtyPaths as z
|
|
2377
|
+
PATH_REFS as j,
|
|
2378
|
+
POINT_REFS as k,
|
|
2379
|
+
RANGE_REFS as l,
|
|
2380
|
+
getDefaultInsertLocation as m,
|
|
2381
|
+
batchDirtyPaths as n,
|
|
2382
|
+
toRawWeakMap as t
|
|
2398
2383
|
};
|
package/dist/core.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { a6,
|
|
2
|
-
import { E as E2, a as a10, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, T as T2, c as c2, i as i2 } from "./batch-dirty-paths-
|
|
1
|
+
import { a6, a7, a8, d, e, f, a, h, aj, c, i, j, k, ap, ak, l, m, o, p, q, g, b, r, t, u, v, w, x, aq, y, a9, z, A, B, C, D, E, F, G, H, I, J, aa, K, ab, al, ac, L, M, N, O, n, P, S, Q, R, V, T, U, W, X, _, Y, Z, $, ad, am, ae, a0, an, ao, a5, s, af, a1, a2, a3, ag, ah, a4, ai } from "./create-editor-D-lN_Ejd.js";
|
|
2
|
+
import { E as E2, a as a10, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, T as T2, c as c2, i as i2 } from "./batch-dirty-paths-BNjNom-v.js";
|
|
3
|
+
import { L as L2, S as S3 } from "./location-j9dF8XY5.js";
|
|
3
4
|
export {
|
|
4
5
|
E2 as Editor,
|
|
5
6
|
a10 as Element,
|
|
6
|
-
|
|
7
|
+
L2 as Location,
|
|
7
8
|
N2 as Node,
|
|
8
9
|
O2 as Operation,
|
|
9
10
|
P2 as Path,
|
|
10
|
-
|
|
11
|
+
a6 as PathRef,
|
|
11
12
|
b2 as Point,
|
|
12
|
-
|
|
13
|
+
a7 as PointRef,
|
|
13
14
|
R2 as Range,
|
|
14
|
-
|
|
15
|
+
a8 as RangeRef,
|
|
15
16
|
S2 as Scrubber,
|
|
16
|
-
|
|
17
|
+
S3 as Span,
|
|
17
18
|
T2 as Text,
|
|
18
19
|
c2 as Transforms,
|
|
19
20
|
d as above,
|
|
@@ -21,13 +22,13 @@ export {
|
|
|
21
22
|
f as after,
|
|
22
23
|
a as apply,
|
|
23
24
|
h as before,
|
|
24
|
-
|
|
25
|
+
aj as collapse,
|
|
25
26
|
c as createEditor,
|
|
26
27
|
i as deleteBackward,
|
|
27
28
|
j as deleteForward,
|
|
28
29
|
k as deleteFragment,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
ap as deleteText,
|
|
31
|
+
ak as deselect,
|
|
31
32
|
l as edges,
|
|
32
33
|
m as elementReadOnly,
|
|
33
34
|
o as end,
|
|
@@ -41,9 +42,9 @@ export {
|
|
|
41
42
|
v as hasPath,
|
|
42
43
|
w as hasTexts,
|
|
43
44
|
x as insertBreak,
|
|
44
|
-
|
|
45
|
+
aq as insertFragment,
|
|
45
46
|
y as insertNode,
|
|
46
|
-
|
|
47
|
+
a9 as insertNodes,
|
|
47
48
|
z as insertSoftBreak,
|
|
48
49
|
A as insertText,
|
|
49
50
|
B as isBlock,
|
|
@@ -56,11 +57,11 @@ export {
|
|
|
56
57
|
H as last,
|
|
57
58
|
I as leaf,
|
|
58
59
|
J as levels,
|
|
59
|
-
|
|
60
|
+
aa as liftNodes,
|
|
60
61
|
K as marks,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
ab as mergeNodes,
|
|
63
|
+
al as move,
|
|
64
|
+
ac as moveNodes,
|
|
64
65
|
L as next,
|
|
65
66
|
M as node,
|
|
66
67
|
N as nodes,
|
|
@@ -79,20 +80,20 @@ export {
|
|
|
79
80
|
Y as rangeRef,
|
|
80
81
|
Z as rangeRefs,
|
|
81
82
|
$ as removeMark,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
ad as removeNodes,
|
|
84
|
+
am as select,
|
|
85
|
+
ae as setNodes,
|
|
85
86
|
a0 as setNormalizing,
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
an as setPoint,
|
|
88
|
+
ao as setSelection,
|
|
88
89
|
a5 as shouldMergeNodesRemovePrevNode,
|
|
89
90
|
s as shouldNormalize,
|
|
90
|
-
|
|
91
|
+
af as splitNodes,
|
|
91
92
|
a1 as start,
|
|
92
93
|
a2 as string,
|
|
93
94
|
a3 as unhangRange,
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
ag as unsetNodes,
|
|
96
|
+
ah as unwrapNodes,
|
|
96
97
|
a4 as withoutNormalizing,
|
|
97
|
-
|
|
98
|
+
ai as wrapNodes
|
|
98
99
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { P as Path, b as Point, R as Range, E as Editor, D as DIRTY_PATHS,
|
|
1
|
+
import { P as Path, b as Point, R as Range, E as Editor, D as DIRTY_PATHS, f as DIRTY_PATH_KEYS, g as isBatchingDirtyPaths, c as Transforms, F as FLUSHING, T as Text, N as Node, a as Element, h as NORMALIZING, j as PATH_REFS, k as POINT_REFS, l as RANGE_REFS, e as cloneDeep, m as getDefaultInsertLocation, S as Scrubber, n as batchDirtyPaths } from "./batch-dirty-paths-BNjNom-v.js";
|
|
2
2
|
import { reactive } from "vue";
|
|
3
|
+
import { S as Span } from "./location-j9dF8XY5.js";
|
|
3
4
|
const PathRef = {
|
|
4
5
|
transform(ref, op) {
|
|
5
6
|
const { current, affinity } = ref;
|
|
@@ -39,16 +40,6 @@ const RangeRef = {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
const Location = {
|
|
43
|
-
isLocation(value) {
|
|
44
|
-
return Path.isPath(value) || Point.isPoint(value) || Range.isRange(value);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const Span = {
|
|
48
|
-
isSpan(value) {
|
|
49
|
-
return Array.isArray(value) && value.length === 2 && value.every(Path.isPath);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
43
|
const matchPath = (editor, path2) => {
|
|
53
44
|
const [node2] = Editor.node(editor, path2);
|
|
54
45
|
return (n) => n === node2;
|
|
@@ -2534,29 +2525,27 @@ export {
|
|
|
2534
2525
|
unhangRange as a3,
|
|
2535
2526
|
withoutNormalizing as a4,
|
|
2536
2527
|
shouldMergeNodesRemovePrevNode as a5,
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
deleteText as ar,
|
|
2559
|
-
insertFragment as as,
|
|
2528
|
+
PathRef as a6,
|
|
2529
|
+
PointRef as a7,
|
|
2530
|
+
RangeRef as a8,
|
|
2531
|
+
insertNodes as a9,
|
|
2532
|
+
liftNodes as aa,
|
|
2533
|
+
mergeNodes as ab,
|
|
2534
|
+
moveNodes as ac,
|
|
2535
|
+
removeNodes as ad,
|
|
2536
|
+
setNodes as ae,
|
|
2537
|
+
splitNodes as af,
|
|
2538
|
+
unsetNodes as ag,
|
|
2539
|
+
unwrapNodes as ah,
|
|
2540
|
+
wrapNodes as ai,
|
|
2541
|
+
collapse as aj,
|
|
2542
|
+
deselect as ak,
|
|
2543
|
+
move as al,
|
|
2544
|
+
select as am,
|
|
2545
|
+
setPoint as an,
|
|
2546
|
+
setSelection as ao,
|
|
2547
|
+
deleteText as ap,
|
|
2548
|
+
insertFragment as aq,
|
|
2560
2549
|
getFragment as b,
|
|
2561
2550
|
createEditor as c,
|
|
2562
2551
|
above as d,
|
package/dist/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, g as getPlainText, c as getSlateFragmentAttribute, d as EDITOR_TO_ON_CHANGE
|
|
2
|
-
import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, Q, R, S,
|
|
3
|
-
import { E as Editor, R as Range, a as Element, c as Transforms, P as Path, N as Node } from "./batch-dirty-paths-
|
|
1
|
+
import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, g as getPlainText, c as getSlateFragmentAttribute, d as EDITOR_TO_ON_CHANGE } from "./hotkeys-B_EjNsx-.js";
|
|
2
|
+
import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, P, Q, R, S, e, f, h, j, k, l, m, o, p, q, r, s, t, n } from "./hotkeys-B_EjNsx-.js";
|
|
3
|
+
import { E as Editor, R as Range, a as Element, c as Transforms, P as Path, N as Node } from "./batch-dirty-paths-BNjNom-v.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
const doRectsIntersect = (rect, compareRect) => {
|
|
6
6
|
const middle = (compareRect.top + compareRect.bottom) / 2;
|
|
@@ -251,7 +251,10 @@ const shallowCompare = (obj1, obj2) => Object.keys(obj1).length === Object.keys(
|
|
|
251
251
|
const isDecorationFlagsEqual = (range, other) => {
|
|
252
252
|
const { anchor: rangeAnchor, focus: rangeFocus, ...rangeOwnProps } = range;
|
|
253
253
|
const { anchor: otherAnchor, focus: otherFocus, ...otherOwnProps } = other;
|
|
254
|
-
return
|
|
254
|
+
return shallowCompare(
|
|
255
|
+
rangeOwnProps,
|
|
256
|
+
otherOwnProps
|
|
257
|
+
);
|
|
255
258
|
};
|
|
256
259
|
const isElementDecorationsEqual = (list, another) => {
|
|
257
260
|
if (list.length !== another.length) {
|
|
@@ -303,12 +306,11 @@ export {
|
|
|
303
306
|
y as IS_WEBKIT,
|
|
304
307
|
A as IS_WECHATBROWSER,
|
|
305
308
|
K as Key,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
+
P as MARK_PLACEHOLDER_SYMBOL,
|
|
310
|
+
Q as NODE_TO_ELEMENT,
|
|
311
|
+
R as NODE_TO_INDEX,
|
|
309
312
|
NODE_TO_KEY,
|
|
310
|
-
|
|
311
|
-
PLACEHOLDER_SYMBOL,
|
|
313
|
+
S as NODE_TO_PARENT,
|
|
312
314
|
e as applyStringDiff,
|
|
313
315
|
f as getActiveElement,
|
|
314
316
|
h as getDefaultView,
|
package/dist/history.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as isPlainObject, O as Operation, t as toRawWeakMap, E as Editor, c as Transforms, P as Path } from "./batch-dirty-paths-
|
|
1
|
+
import { d as isPlainObject, O as Operation, t as toRawWeakMap, E as Editor, c as Transforms, P as Path } from "./batch-dirty-paths-BNjNom-v.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
const History = {
|
|
4
4
|
/**
|
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a, _b;
|
|
5
|
-
import { t as toRawWeakMap, c as Transforms, a as Element, E as Editor, S as Scrubber, R as Range } from "./batch-dirty-paths-
|
|
5
|
+
import { t as toRawWeakMap, c as Transforms, a as Element, E as Editor, S as Scrubber, R as Range } from "./batch-dirty-paths-BNjNom-v.js";
|
|
6
6
|
import "vue";
|
|
7
7
|
const getDefaultView = (value) => {
|
|
8
8
|
return value && value.ownerDocument && value.ownerDocument.defaultView || null;
|
|
@@ -196,7 +196,6 @@ const IS_COMPOSING = new toRawWeakMap();
|
|
|
196
196
|
const EDITOR_TO_USER_SELECTION = new toRawWeakMap();
|
|
197
197
|
const EDITOR_TO_ON_CHANGE = new toRawWeakMap();
|
|
198
198
|
const EDITOR_TO_USER_MARKS = new toRawWeakMap();
|
|
199
|
-
const PLACEHOLDER_SYMBOL = Symbol("placeholder");
|
|
200
199
|
const MARK_PLACEHOLDER_SYMBOL = Symbol(
|
|
201
200
|
"mark-placeholder"
|
|
202
201
|
);
|
|
@@ -210,7 +209,12 @@ function getFirefoxNodeEl(node, offset) {
|
|
|
210
209
|
while (el == null ? void 0 : el.firstChild) {
|
|
211
210
|
el = isLeft ? el.firstChild : el.lastChild;
|
|
212
211
|
}
|
|
213
|
-
|
|
212
|
+
if (!el) {
|
|
213
|
+
throw new Error(
|
|
214
|
+
`Compact on Firefox: Failed to find adjacent nodes: ${Scrubber.stringify(node)}`
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
return [el, isLeft ? 0 : ((_a2 = el.textContent) == null ? void 0 : _a2.length) || 0];
|
|
214
218
|
}
|
|
215
219
|
}
|
|
216
220
|
const DOMEditor = {
|
|
@@ -1047,11 +1051,10 @@ export {
|
|
|
1047
1051
|
IS_FOCUSED as M,
|
|
1048
1052
|
NODE_TO_KEY as N,
|
|
1049
1053
|
IS_READ_ONLY as O,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
NODE_TO_PARENT as T,
|
|
1054
|
+
MARK_PLACEHOLDER_SYMBOL as P,
|
|
1055
|
+
NODE_TO_ELEMENT as Q,
|
|
1056
|
+
NODE_TO_INDEX as R,
|
|
1057
|
+
NODE_TO_PARENT as S,
|
|
1055
1058
|
EDITOR_TO_USER_MARKS as a,
|
|
1056
1059
|
EDITOR_TO_USER_SELECTION as b,
|
|
1057
1060
|
getSlateFragmentAttribute as c,
|
package/dist/hyperscript.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { t as toRawWeakMap, T as Text, R as Range, N as Node, a as Element, d as isPlainObject } from "./batch-dirty-paths-
|
|
5
|
-
import { c as createEditor$1 } from "./create-editor-
|
|
4
|
+
import { t as toRawWeakMap, T as Text, R as Range, N as Node, a as Element, d as isPlainObject } from "./batch-dirty-paths-BNjNom-v.js";
|
|
5
|
+
import { c as createEditor$1 } from "./create-editor-D-lN_Ejd.js";
|
|
6
6
|
import "vue";
|
|
7
7
|
const ANCHOR = new toRawWeakMap();
|
|
8
8
|
const FOCUS = new toRawWeakMap();
|