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.
Files changed (44) hide show
  1. package/README.md +7 -7
  2. package/dist/{batch-dirty-paths-CZqHWmdq.js → batch-dirty-paths-BNjNom-v.js} +10 -25
  3. package/dist/core.js +26 -25
  4. package/dist/{create-editor-BP4gf1UN.js → create-editor-D-lN_Ejd.js} +23 -34
  5. package/dist/dom.js +11 -9
  6. package/dist/history.js +1 -1
  7. package/dist/{hotkeys-DpsWjIJe.js → hotkeys-B_EjNsx-.js} +11 -8
  8. package/dist/hyperscript.js +2 -2
  9. package/dist/index.js +13 -276
  10. package/dist/location-j9dF8XY5.js +16 -0
  11. package/dist/slate-dom/custom-types.d.ts +0 -4
  12. package/dist/slate-dom/index.d.ts +1 -1
  13. package/dist/slate-dom/utils/weak-maps.d.ts +0 -4
  14. package/dist/slate-vue/hooks/use-inherit-ref.d.ts +2 -4
  15. package/dist/slate-yjs/applyToSlate/index.d.ts +19 -0
  16. package/dist/slate-yjs/applyToSlate/textEvent.d.ts +3 -0
  17. package/dist/slate-yjs/applyToYjs/index.d.ts +3 -0
  18. package/dist/slate-yjs/applyToYjs/node/index.d.ts +3 -0
  19. package/dist/slate-yjs/applyToYjs/node/insertNode.d.ts +3 -0
  20. package/dist/slate-yjs/applyToYjs/node/mergeNode.d.ts +3 -0
  21. package/dist/slate-yjs/applyToYjs/node/moveNode.d.ts +3 -0
  22. package/dist/slate-yjs/applyToYjs/node/removeNode.d.ts +3 -0
  23. package/dist/slate-yjs/applyToYjs/node/setNode.d.ts +3 -0
  24. package/dist/slate-yjs/applyToYjs/node/splitNode.d.ts +3 -0
  25. package/dist/slate-yjs/applyToYjs/text/index.d.ts +3 -0
  26. package/dist/slate-yjs/applyToYjs/text/insertText.d.ts +3 -0
  27. package/dist/slate-yjs/applyToYjs/text/removeText.d.ts +3 -0
  28. package/dist/slate-yjs/applyToYjs/types.d.ts +8 -0
  29. package/dist/slate-yjs/index.d.ts +5 -0
  30. package/dist/slate-yjs/model/types.d.ts +37 -0
  31. package/dist/slate-yjs/plugins/index.d.ts +3 -0
  32. package/dist/slate-yjs/plugins/withCursors.d.ts +38 -0
  33. package/dist/slate-yjs/plugins/withYHistory.d.ts +19 -0
  34. package/dist/slate-yjs/plugins/withYjs.d.ts +42 -0
  35. package/dist/slate-yjs/utils/clone.d.ts +4 -0
  36. package/dist/slate-yjs/utils/convert.d.ts +7 -0
  37. package/dist/slate-yjs/utils/delta.d.ts +7 -0
  38. package/dist/slate-yjs/utils/location.d.ts +11 -0
  39. package/dist/slate-yjs/utils/object.d.ts +8 -0
  40. package/dist/slate-yjs/utils/position.d.ts +19 -0
  41. package/dist/slate-yjs/utils/slate.d.ts +2 -0
  42. package/dist/slate-yjs/utils/yjs.d.ts +4 -0
  43. package/dist/yjs.js +1338 -0
  44. 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: Descendant[]) => void
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: Descendant[]) => void
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: Selection) => void
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
- Provide undo redo functions, replace Weakmap to UnProxyWeakmap
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
- isObjectLike as e,
2377
- baseGetTag as f,
2378
- Symbol$1 as g,
2379
- isArray as h,
2372
+ cloneDeep as e,
2373
+ DIRTY_PATH_KEYS as f,
2374
+ isBatchingDirtyPaths as g,
2375
+ NORMALIZING as h,
2380
2376
  isEditor as i,
2381
- defineProperty as j,
2382
- isArguments as k,
2383
- arrayPush as l,
2384
- getPrototype as m,
2385
- copyObject as n,
2386
- getAllKeysIn as o,
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, a8, a9, aa, a7, d, e, f, a, h, al, c, i, j, k, ar, am, l, m, o, p, q, g, b, r, t, u, v, w, x, as, y, ab, z, A, B, C, D, E, F, G, H, I, J, ac, K, ad, an, ae, L, M, N, O, n, P, S, Q, R, V, T, U, W, X, _, Y, Z, $, af, ao, ag, a0, ap, aq, a5, s, ah, a1, a2, a3, ai, aj, a4, ak } from "./create-editor-BP4gf1UN.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-CZqHWmdq.js";
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
- a6 as Location,
7
+ L2 as Location,
7
8
  N2 as Node,
8
9
  O2 as Operation,
9
10
  P2 as Path,
10
- a8 as PathRef,
11
+ a6 as PathRef,
11
12
  b2 as Point,
12
- a9 as PointRef,
13
+ a7 as PointRef,
13
14
  R2 as Range,
14
- aa as RangeRef,
15
+ a8 as RangeRef,
15
16
  S2 as Scrubber,
16
- a7 as Span,
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
- al as collapse,
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
- ar as deleteText,
30
- am as deselect,
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
- as as insertFragment,
45
+ aq as insertFragment,
45
46
  y as insertNode,
46
- ab as insertNodes,
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
- ac as liftNodes,
60
+ aa as liftNodes,
60
61
  K as marks,
61
- ad as mergeNodes,
62
- an as move,
63
- ae as moveNodes,
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
- af as removeNodes,
83
- ao as select,
84
- ag as setNodes,
83
+ ad as removeNodes,
84
+ am as select,
85
+ ae as setNodes,
85
86
  a0 as setNormalizing,
86
- ap as setPoint,
87
- aq as setSelection,
87
+ an as setPoint,
88
+ ao as setSelection,
88
89
  a5 as shouldMergeNodesRemovePrevNode,
89
90
  s as shouldNormalize,
90
- ah as splitNodes,
91
+ af as splitNodes,
91
92
  a1 as start,
92
93
  a2 as string,
93
94
  a3 as unhangRange,
94
- ai as unsetNodes,
95
- aj as unwrapNodes,
95
+ ag as unsetNodes,
96
+ ah as unwrapNodes,
96
97
  a4 as withoutNormalizing,
97
- ak as wrapNodes
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, q as DIRTY_PATH_KEYS, r as isBatchingDirtyPaths, c as Transforms, F as FLUSHING, T as Text, N as Node, a as Element, s as NORMALIZING, u as PATH_REFS, v as POINT_REFS, w as RANGE_REFS, x as cloneDeep, y as getDefaultInsertLocation, S as Scrubber, z as batchDirtyPaths } from "./batch-dirty-paths-CZqHWmdq.js";
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
- Location as a6,
2538
- Span as a7,
2539
- PathRef as a8,
2540
- PointRef as a9,
2541
- RangeRef as aa,
2542
- insertNodes as ab,
2543
- liftNodes as ac,
2544
- mergeNodes as ad,
2545
- moveNodes as ae,
2546
- removeNodes as af,
2547
- setNodes as ag,
2548
- splitNodes as ah,
2549
- unsetNodes as ai,
2550
- unwrapNodes as aj,
2551
- wrapNodes as ak,
2552
- collapse as al,
2553
- deselect as am,
2554
- move as an,
2555
- select as ao,
2556
- setPoint as ap,
2557
- setSelection as aq,
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, P as PLACEHOLDER_SYMBOL } from "./hotkeys-DpsWjIJe.js";
2
- import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, Q, R, S, T, e, f, h, j, k, l, m, o, p, q, r, s, t, n } from "./hotkeys-DpsWjIJe.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-CZqHWmdq.js";
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 range[PLACEHOLDER_SYMBOL] === other[PLACEHOLDER_SYMBOL] && shallowCompare(rangeOwnProps, otherOwnProps);
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
- Q as MARK_PLACEHOLDER_SYMBOL,
307
- R as NODE_TO_ELEMENT,
308
- S as NODE_TO_INDEX,
309
+ P as MARK_PLACEHOLDER_SYMBOL,
310
+ Q as NODE_TO_ELEMENT,
311
+ R as NODE_TO_INDEX,
309
312
  NODE_TO_KEY,
310
- T as NODE_TO_PARENT,
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-CZqHWmdq.js";
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-CZqHWmdq.js";
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
- return [el || node, isLeft ? 0 : ((_a2 = el == null ? void 0 : el.textContent) == null ? void 0 : _a2.length) || 0];
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
- PLACEHOLDER_SYMBOL as P,
1051
- MARK_PLACEHOLDER_SYMBOL as Q,
1052
- NODE_TO_ELEMENT as R,
1053
- NODE_TO_INDEX as S,
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,
@@ -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-CZqHWmdq.js";
5
- import { c as createEditor$1 } from "./create-editor-BP4gf1UN.js";
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();