quoin-editor 1.8.0 → 2.0.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 (86) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/MIGRATION.md +137 -23
  3. package/README.md +8 -2
  4. package/dist/ai.cjs +34 -34
  5. package/dist/ai.js +3 -3
  6. package/dist/catalogue.cjs +21 -21
  7. package/dist/catalogue.js +12 -12
  8. package/dist/{chunk-VWYPO6SX.js → chunk-2UKI26JA.js} +5 -5
  9. package/dist/chunk-2UKI26JA.js.map +1 -0
  10. package/dist/{chunk-B3OBM6I4.cjs → chunk-4PIJC4FD.cjs} +16 -16
  11. package/dist/{chunk-5OZX2LV4.js → chunk-5X52BAZB.js} +5 -5
  12. package/dist/{chunk-5OZX2LV4.js.map → chunk-5X52BAZB.js.map} +1 -1
  13. package/dist/{chunk-PVFSJXYQ.cjs → chunk-5YAJZSTI.cjs} +18 -18
  14. package/dist/{chunk-53CNYRVQ.cjs → chunk-66OPHDFA.cjs} +50 -50
  15. package/dist/{chunk-EZX37R5D.js → chunk-6BVE46K7.js} +4 -4
  16. package/dist/{chunk-EZX37R5D.js.map → chunk-6BVE46K7.js.map} +1 -1
  17. package/dist/{chunk-MMS4D4MK.cjs → chunk-77CNOLHY.cjs} +3 -3
  18. package/dist/{chunk-DXUDBPG5.js → chunk-B4VCDJSA.js} +5 -5
  19. package/dist/{chunk-DXUDBPG5.js.map → chunk-B4VCDJSA.js.map} +1 -1
  20. package/dist/{chunk-4MCYQHFL.cjs → chunk-BYYCD54G.cjs} +2 -2
  21. package/dist/{chunk-BA5WXBGE.cjs → chunk-CJVJNMOB.cjs} +107 -101
  22. package/dist/{chunk-TQHFGSTT.cjs → chunk-D6CIIWCU.cjs} +30 -30
  23. package/dist/{chunk-NCDMQCZR.js → chunk-EU5IGKMP.js} +3 -3
  24. package/dist/{chunk-NCDMQCZR.js.map → chunk-EU5IGKMP.js.map} +1 -1
  25. package/dist/{chunk-7X3T7VXV.cjs → chunk-HOSDMHK6.cjs} +25 -25
  26. package/dist/{chunk-XKYNINUX.cjs → chunk-IKZSCTRF.cjs} +3 -3
  27. package/dist/{chunk-D4L5FINK.js → chunk-IW4TMECB.js} +3 -3
  28. package/dist/{chunk-D4L5FINK.js.map → chunk-IW4TMECB.js.map} +1 -1
  29. package/dist/{chunk-MRHDPXQ7.js → chunk-J2SVYBTC.js} +6 -6
  30. package/dist/chunk-J2SVYBTC.js.map +1 -0
  31. package/dist/{chunk-PHQMHXNG.js → chunk-KQPZTSW3.js} +4 -4
  32. package/dist/{chunk-PHQMHXNG.js.map → chunk-KQPZTSW3.js.map} +1 -1
  33. package/dist/{chunk-YVPZDTVZ.cjs → chunk-LEICOZYK.cjs} +2 -2
  34. package/dist/{chunk-SP4F5F6V.js → chunk-M77A3EGD.js} +3 -3
  35. package/dist/{chunk-SP4F5F6V.js.map → chunk-M77A3EGD.js.map} +1 -1
  36. package/dist/{chunk-VM567D6O.js → chunk-MAS4AEF4.js} +4 -4
  37. package/dist/{chunk-VM567D6O.js.map → chunk-MAS4AEF4.js.map} +1 -1
  38. package/dist/{chunk-EZWJRBQT.cjs → chunk-NFO3W644.cjs} +19 -19
  39. package/dist/{chunk-MSWA5ZZM.js → chunk-NL5J77VD.js} +202 -202
  40. package/dist/chunk-NL5J77VD.js.map +1 -0
  41. package/dist/{chunk-53FJFYBR.cjs → chunk-V4WQG7FR.cjs} +64 -64
  42. package/dist/{chunk-WOGCD7JN.js → chunk-YABGWOAV.js} +3 -3
  43. package/dist/{chunk-WOGCD7JN.js.map → chunk-YABGWOAV.js.map} +1 -1
  44. package/dist/{chunk-P6HC7RUN.cjs → chunk-Z6LAARPB.cjs} +199 -204
  45. package/dist/{chunk-Y4EJ6UBV.js → chunk-ZN5DHNSL.js} +15 -9
  46. package/dist/chunk-ZN5DHNSL.js.map +1 -0
  47. package/dist/comments.cjs +30 -30
  48. package/dist/comments.js +3 -3
  49. package/dist/diagram.cjs +6 -6
  50. package/dist/diagram.js +3 -3
  51. package/dist/embed.cjs +5 -5
  52. package/dist/embed.js +3 -3
  53. package/dist/emoji.cjs +6 -6
  54. package/dist/emoji.js +3 -3
  55. package/dist/find.cjs +7 -7
  56. package/dist/find.js +3 -3
  57. package/dist/headless.cjs +11 -31
  58. package/dist/headless.d.cts +4 -41
  59. package/dist/headless.d.ts +4 -41
  60. package/dist/headless.js +1 -1
  61. package/dist/highlight.cjs +3 -3
  62. package/dist/highlight.js +2 -2
  63. package/dist/index.cjs +23 -43
  64. package/dist/index.d.cts +1 -1
  65. package/dist/index.d.ts +1 -1
  66. package/dist/index.js +2 -2
  67. package/dist/math.cjs +6 -6
  68. package/dist/math.js +4 -4
  69. package/dist/mention.cjs +6 -6
  70. package/dist/mention.js +4 -4
  71. package/dist/presence.cjs +12 -12
  72. package/dist/presence.js +3 -3
  73. package/dist/source.cjs +2 -2
  74. package/dist/source.js +2 -2
  75. package/dist/stats.cjs +6 -6
  76. package/dist/stats.js +3 -3
  77. package/dist/styles.css +2 -2
  78. package/dist/table.cjs +22 -22
  79. package/dist/table.js +3 -3
  80. package/dist/toc.cjs +6 -6
  81. package/dist/toc.js +3 -3
  82. package/package.json +1 -1
  83. package/dist/chunk-MRHDPXQ7.js.map +0 -1
  84. package/dist/chunk-MSWA5ZZM.js.map +0 -1
  85. package/dist/chunk-VWYPO6SX.js.map +0 -1
  86. package/dist/chunk-Y4EJ6UBV.js.map +0 -1
package/dist/highlight.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { lazyLoad } from './chunk-KTUOPDVO.js';
3
- import { CODE_LANGUAGES } from './chunk-Y4EJ6UBV.js';
4
- import './chunk-MSWA5ZZM.js';
3
+ import { CODE_LANGUAGES } from './chunk-ZN5DHNSL.js';
4
+ import './chunk-NL5J77VD.js';
5
5
  import './chunk-DLQCTGC3.js';
6
6
  import './chunk-HDJ653LM.js';
7
7
  import './chunk-5RBMZGKV.js';
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkBA5WXBGE_cjs = require('./chunk-BA5WXBGE.cjs');
5
- var chunkP6HC7RUN_cjs = require('./chunk-P6HC7RUN.cjs');
4
+ var chunkCJVJNMOB_cjs = require('./chunk-CJVJNMOB.cjs');
5
+ var chunkZ6LAARPB_cjs = require('./chunk-Z6LAARPB.cjs');
6
6
  require('./chunk-ZWTIRGY5.cjs');
7
7
  var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
8
8
  var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
@@ -13,107 +13,87 @@ var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
13
13
 
14
14
  Object.defineProperty(exports, "BlockCanvas", {
15
15
  enumerable: true,
16
- get: function () { return chunkBA5WXBGE_cjs.BlockCanvas; }
16
+ get: function () { return chunkCJVJNMOB_cjs.BlockCanvas; }
17
17
  });
18
18
  Object.defineProperty(exports, "FilePickerButton", {
19
19
  enumerable: true,
20
- get: function () { return chunkBA5WXBGE_cjs.FilePickerButton; }
20
+ get: function () { return chunkCJVJNMOB_cjs.FilePickerButton; }
21
21
  });
22
22
  Object.defineProperty(exports, "QuoinProvider", {
23
23
  enumerable: true,
24
- get: function () { return chunkBA5WXBGE_cjs.QuoinProvider; }
24
+ get: function () { return chunkCJVJNMOB_cjs.QuoinProvider; }
25
25
  });
26
26
  Object.defineProperty(exports, "UploadField", {
27
27
  enumerable: true,
28
- get: function () { return chunkBA5WXBGE_cjs.UploadField; }
28
+ get: function () { return chunkCJVJNMOB_cjs.UploadField; }
29
29
  });
30
30
  Object.defineProperty(exports, "coreBlocks", {
31
31
  enumerable: true,
32
- get: function () { return chunkBA5WXBGE_cjs.coreBlocks; }
32
+ get: function () { return chunkCJVJNMOB_cjs.coreBlocks; }
33
33
  });
34
34
  Object.defineProperty(exports, "englishLabels", {
35
35
  enumerable: true,
36
- get: function () { return chunkBA5WXBGE_cjs.englishLabels; }
36
+ get: function () { return chunkCJVJNMOB_cjs.englishLabels; }
37
37
  });
38
38
  Object.defineProperty(exports, "formatShortcut", {
39
39
  enumerable: true,
40
- get: function () { return chunkBA5WXBGE_cjs.formatShortcut; }
40
+ get: function () { return chunkCJVJNMOB_cjs.formatShortcut; }
41
41
  });
42
42
  Object.defineProperty(exports, "resolveLabels", {
43
43
  enumerable: true,
44
- get: function () { return chunkBA5WXBGE_cjs.resolveLabels; }
44
+ get: function () { return chunkCJVJNMOB_cjs.resolveLabels; }
45
45
  });
46
46
  Object.defineProperty(exports, "useAutosave", {
47
47
  enumerable: true,
48
- get: function () { return chunkBA5WXBGE_cjs.useAutosave; }
48
+ get: function () { return chunkCJVJNMOB_cjs.useAutosave; }
49
49
  });
50
50
  Object.defineProperty(exports, "useLabels", {
51
51
  enumerable: true,
52
- get: function () { return chunkBA5WXBGE_cjs.useLabels; }
52
+ get: function () { return chunkCJVJNMOB_cjs.useLabels; }
53
53
  });
54
54
  Object.defineProperty(exports, "useQuoin", {
55
55
  enumerable: true,
56
- get: function () { return chunkBA5WXBGE_cjs.useQuoin; }
57
- });
58
- Object.defineProperty(exports, "BlockShell", {
59
- enumerable: true,
60
- get: function () { return chunkP6HC7RUN_cjs.BlockShell; }
56
+ get: function () { return chunkCJVJNMOB_cjs.useQuoin; }
61
57
  });
62
58
  Object.defineProperty(exports, "EditableRegion", {
63
59
  enumerable: true,
64
- get: function () { return chunkP6HC7RUN_cjs.EditableRegion; }
60
+ get: function () { return chunkZ6LAARPB_cjs.EditableRegion; }
65
61
  });
66
62
  Object.defineProperty(exports, "EditorView", {
67
63
  enumerable: true,
68
- get: function () { return chunkP6HC7RUN_cjs.EditorView; }
69
- });
70
- Object.defineProperty(exports, "SelectionSink", {
71
- enumerable: true,
72
- get: function () { return chunkP6HC7RUN_cjs.SelectionSink; }
64
+ get: function () { return chunkZ6LAARPB_cjs.EditorView; }
73
65
  });
74
66
  Object.defineProperty(exports, "ViewController", {
75
67
  enumerable: true,
76
- get: function () { return chunkP6HC7RUN_cjs.ViewController; }
77
- });
78
- Object.defineProperty(exports, "VoidBlockFallback", {
79
- enumerable: true,
80
- get: function () { return chunkP6HC7RUN_cjs.VoidBlockFallback; }
68
+ get: function () { return chunkZ6LAARPB_cjs.ViewController; }
81
69
  });
82
70
  Object.defineProperty(exports, "caretFromPoint", {
83
71
  enumerable: true,
84
- get: function () { return chunkP6HC7RUN_cjs.caretFromPoint; }
85
- });
86
- Object.defineProperty(exports, "defaultRenderers", {
87
- enumerable: true,
88
- get: function () { return chunkP6HC7RUN_cjs.defaultRenderers; }
72
+ get: function () { return chunkZ6LAARPB_cjs.caretFromPoint; }
89
73
  });
90
74
  Object.defineProperty(exports, "domMapOf", {
91
75
  enumerable: true,
92
- get: function () { return chunkP6HC7RUN_cjs.domMapOf; }
76
+ get: function () { return chunkZ6LAARPB_cjs.domMapOf; }
93
77
  });
94
78
  Object.defineProperty(exports, "hostKey", {
95
79
  enumerable: true,
96
- get: function () { return chunkP6HC7RUN_cjs.hostKey; }
97
- });
98
- Object.defineProperty(exports, "isCrossSelection", {
99
- enumerable: true,
100
- get: function () { return chunkP6HC7RUN_cjs.isCrossSelection; }
80
+ get: function () { return chunkZ6LAARPB_cjs.hostKey; }
101
81
  });
102
82
  Object.defineProperty(exports, "renderInline", {
103
83
  enumerable: true,
104
- get: function () { return chunkP6HC7RUN_cjs.renderInline; }
84
+ get: function () { return chunkZ6LAARPB_cjs.renderInline; }
105
85
  });
106
86
  Object.defineProperty(exports, "useEditorState", {
107
87
  enumerable: true,
108
- get: function () { return chunkP6HC7RUN_cjs.useEditorState; }
88
+ get: function () { return chunkZ6LAARPB_cjs.useEditorState; }
109
89
  });
110
90
  Object.defineProperty(exports, "useQuoinEditor", {
111
91
  enumerable: true,
112
- get: function () { return chunkP6HC7RUN_cjs.useQuoinEditor; }
92
+ get: function () { return chunkZ6LAARPB_cjs.useQuoinEditor; }
113
93
  });
114
94
  Object.defineProperty(exports, "useViewController", {
115
95
  enumerable: true,
116
- get: function () { return chunkP6HC7RUN_cjs.useViewController; }
96
+ get: function () { return chunkZ6LAARPB_cjs.useViewController; }
117
97
  });
118
98
  Object.defineProperty(exports, "blockByType", {
119
99
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -12,7 +12,7 @@ export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e
12
12
  import { V as ViewController, R as RenderOptions } from './node-reveal-DY6bimv3.cjs';
13
13
  export { A as Announcer, a as AtomRenderer, E as Engagement, F as FocusTarget, H as HostEntry, b as HostRegistry, K as KeyInterceptor, N as NodeReveal, S as Spoken, c as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './node-reveal-DY6bimv3.cjs';
14
14
  import { BlockRenderer } from './headless.cjs';
15
- export { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockShell, BlockShellProps, CaretPoint, DomMap, DomPoint, EditableRegion, EditableRegionProps, EditorView, EditorViewProps, SelectionSink, SelectionSinkProps, UseQuoinEditorOptions, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './headless.cjs';
15
+ export { BlockLabel, BlockPlaceholder, BlockRenderProps, CaretPoint, DomMap, DomPoint, EditableRegion, EditableRegionProps, EditorView, EditorViewProps, UseQuoinEditorOptions, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController } from './headless.cjs';
16
16
  export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange, SchemaInput, addMarkStep, atom, blockInputRules, blockRangeSelection, coreBlockSpecs, countDoc, countText, createBlockCodec, createSchema, defineExtension, diffBlocks, diffInline, fromMarkdown, insertBlocksStep, joinBlocksStep, markInputRules, moveBlocksStep, nodeSelection, normalizeInline, parseInline, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, sanitizeHref, serializeInline, setAttrsStep, setIndentStep, splitBlockStep, stepFromJSON, text, textSelection, toPlainText, typographyRules, undo } from './engine.cjs';
17
17
  export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-C2w7Dzg8.cjs';
18
18
  export { P as PALETTE } from './palette-BrX-hEd-.cjs';
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e
12
12
  import { V as ViewController, R as RenderOptions } from './node-reveal-BnFcnHhz.js';
13
13
  export { A as Announcer, a as AtomRenderer, E as Engagement, F as FocusTarget, H as HostEntry, b as HostRegistry, K as KeyInterceptor, N as NodeReveal, S as Spoken, c as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './node-reveal-BnFcnHhz.js';
14
14
  import { BlockRenderer } from './headless.js';
15
- export { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockShell, BlockShellProps, CaretPoint, DomMap, DomPoint, EditableRegion, EditableRegionProps, EditorView, EditorViewProps, SelectionSink, SelectionSinkProps, UseQuoinEditorOptions, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './headless.js';
15
+ export { BlockLabel, BlockPlaceholder, BlockRenderProps, CaretPoint, DomMap, DomPoint, EditableRegion, EditableRegionProps, EditorView, EditorViewProps, UseQuoinEditorOptions, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController } from './headless.js';
16
16
  export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange, SchemaInput, addMarkStep, atom, blockInputRules, blockRangeSelection, coreBlockSpecs, countDoc, countText, createBlockCodec, createSchema, defineExtension, diffBlocks, diffInline, fromMarkdown, insertBlocksStep, joinBlocksStep, markInputRules, moveBlocksStep, nodeSelection, normalizeInline, parseInline, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, sanitizeHref, serializeInline, setAttrsStep, setIndentStep, splitBlockStep, stepFromJSON, text, textSelection, toPlainText, typographyRules, undo } from './engine.js';
17
17
  export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-DC1EUye5.js';
18
18
  export { P as PALETTE } from './palette-BrX-hEd-.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- export { BlockCanvas, FilePickerButton, QuoinProvider, UploadField, coreBlocks, englishLabels, formatShortcut, resolveLabels, useAutosave, useLabels, useQuoin } from './chunk-Y4EJ6UBV.js';
3
- export { BlockShell, EditableRegion, EditorView, SelectionSink, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, hostKey, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-MSWA5ZZM.js';
2
+ export { BlockCanvas, FilePickerButton, QuoinProvider, UploadField, coreBlocks, englishLabels, formatShortcut, resolveLabels, useAutosave, useLabels, useQuoin } from './chunk-ZN5DHNSL.js';
3
+ export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-NL5J77VD.js';
4
4
  import './chunk-DLQCTGC3.js';
5
5
  export { blockByType, defineBlock, paletteBlocks } from './chunk-HDJ653LM.js';
6
6
  export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-5RBMZGKV.js';
package/dist/math.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkTQHFGSTT_cjs = require('./chunk-TQHFGSTT.cjs');
5
- require('./chunk-XKYNINUX.cjs');
4
+ var chunkD6CIIWCU_cjs = require('./chunk-D6CIIWCU.cjs');
5
+ require('./chunk-IKZSCTRF.cjs');
6
6
  require('./chunk-YEDPBYO5.cjs');
7
- require('./chunk-BA5WXBGE.cjs');
8
- require('./chunk-P6HC7RUN.cjs');
7
+ require('./chunk-CJVJNMOB.cjs');
8
+ require('./chunk-Z6LAARPB.cjs');
9
9
  require('./chunk-ZWTIRGY5.cjs');
10
10
  require('./chunk-A6PGQVTR.cjs');
11
11
  require('./chunk-FK7EBZPX.cjs');
@@ -16,9 +16,9 @@ require('./chunk-I7X7B3WD.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "englishMathLabels", {
18
18
  enumerable: true,
19
- get: function () { return chunkTQHFGSTT_cjs.englishMathLabels; }
19
+ get: function () { return chunkD6CIIWCU_cjs.englishMathLabels; }
20
20
  });
21
21
  Object.defineProperty(exports, "mathExtension", {
22
22
  enumerable: true,
23
- get: function () { return chunkTQHFGSTT_cjs.mathExtension; }
23
+ get: function () { return chunkD6CIIWCU_cjs.mathExtension; }
24
24
  });
package/dist/math.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
- export { englishMathLabels, mathExtension } from './chunk-5OZX2LV4.js';
3
- import './chunk-SP4F5F6V.js';
2
+ export { englishMathLabels, mathExtension } from './chunk-5X52BAZB.js';
3
+ import './chunk-M77A3EGD.js';
4
4
  import './chunk-LSI4RMTY.js';
5
- import './chunk-Y4EJ6UBV.js';
6
- import './chunk-MSWA5ZZM.js';
5
+ import './chunk-ZN5DHNSL.js';
6
+ import './chunk-NL5J77VD.js';
7
7
  import './chunk-DLQCTGC3.js';
8
8
  import './chunk-HDJ653LM.js';
9
9
  import './chunk-5RBMZGKV.js';
package/dist/mention.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkPVFSJXYQ_cjs = require('./chunk-PVFSJXYQ.cjs');
5
- require('./chunk-XKYNINUX.cjs');
4
+ var chunk5YAJZSTI_cjs = require('./chunk-5YAJZSTI.cjs');
5
+ require('./chunk-IKZSCTRF.cjs');
6
6
  require('./chunk-LM3DHROX.cjs');
7
- require('./chunk-BA5WXBGE.cjs');
8
- require('./chunk-P6HC7RUN.cjs');
7
+ require('./chunk-CJVJNMOB.cjs');
8
+ require('./chunk-Z6LAARPB.cjs');
9
9
  require('./chunk-ZWTIRGY5.cjs');
10
10
  require('./chunk-A6PGQVTR.cjs');
11
11
  require('./chunk-FK7EBZPX.cjs');
@@ -16,9 +16,9 @@ require('./chunk-I7X7B3WD.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "englishMentionLabels", {
18
18
  enumerable: true,
19
- get: function () { return chunkPVFSJXYQ_cjs.englishMentionLabels; }
19
+ get: function () { return chunk5YAJZSTI_cjs.englishMentionLabels; }
20
20
  });
21
21
  Object.defineProperty(exports, "mentionExtension", {
22
22
  enumerable: true,
23
- get: function () { return chunkPVFSJXYQ_cjs.mentionExtension; }
23
+ get: function () { return chunk5YAJZSTI_cjs.mentionExtension; }
24
24
  });
package/dist/mention.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
- export { englishMentionLabels, mentionExtension } from './chunk-DXUDBPG5.js';
3
- import './chunk-SP4F5F6V.js';
2
+ export { englishMentionLabels, mentionExtension } from './chunk-B4VCDJSA.js';
3
+ import './chunk-M77A3EGD.js';
4
4
  import './chunk-DBOZFNWU.js';
5
- import './chunk-Y4EJ6UBV.js';
6
- import './chunk-MSWA5ZZM.js';
5
+ import './chunk-ZN5DHNSL.js';
6
+ import './chunk-NL5J77VD.js';
7
7
  import './chunk-DLQCTGC3.js';
8
8
  import './chunk-HDJ653LM.js';
9
9
  import './chunk-5RBMZGKV.js';
package/dist/presence.cjs CHANGED
@@ -3,9 +3,9 @@
3
3
 
4
4
  var chunkLE5XMIFJ_cjs = require('./chunk-LE5XMIFJ.cjs');
5
5
  var chunkPURYVDC3_cjs = require('./chunk-PURYVDC3.cjs');
6
- var chunk4MCYQHFL_cjs = require('./chunk-4MCYQHFL.cjs');
7
- require('./chunk-BA5WXBGE.cjs');
8
- var chunkP6HC7RUN_cjs = require('./chunk-P6HC7RUN.cjs');
6
+ var chunkBYYCD54G_cjs = require('./chunk-BYYCD54G.cjs');
7
+ require('./chunk-CJVJNMOB.cjs');
8
+ var chunkZ6LAARPB_cjs = require('./chunk-Z6LAARPB.cjs');
9
9
  var chunkZWTIRGY5_cjs = require('./chunk-ZWTIRGY5.cjs');
10
10
  var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
11
11
  var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
@@ -49,8 +49,8 @@ function followLayout(controller, root, place2) {
49
49
  observer.observe(root);
50
50
  const unsubscribe = controller.editor.subscribe(later);
51
51
  const fonts = root.ownerDocument.fonts;
52
- const unlistenScroll = chunkP6HC7RUN_cjs.listen(root, { scroll: update }, { capture: true, passive: true });
53
- const unlistenFonts = fonts && chunkP6HC7RUN_cjs.listen(fonts, { loadingdone: later });
52
+ const unlistenScroll = chunkZ6LAARPB_cjs.listen(root, { scroll: update }, { capture: true, passive: true });
53
+ const unlistenFonts = fonts && chunkZ6LAARPB_cjs.listen(fonts, { loadingdone: later });
54
54
  return () => {
55
55
  view.cancelAnimationFrame(frame);
56
56
  unsubscribe();
@@ -101,9 +101,9 @@ function place(controller, root, group) {
101
101
  group.style.transform = `translateY(${top}px)`;
102
102
  }
103
103
  function PresenceAvatars({ controller, labels }) {
104
- const groups = chunkP6HC7RUN_cjs.useEditorState(controller, groupsOf, chunkI7X7B3WD_cjs.sameValue);
104
+ const groups = chunkZ6LAARPB_cjs.useEditorState(controller, groupsOf, chunkI7X7B3WD_cjs.sameValue);
105
105
  const box = react.useRef(null);
106
- chunkP6HC7RUN_cjs.useIsomorphicLayoutEffect(() => {
106
+ chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
107
107
  const root = controller.root;
108
108
  if (!root || box.current === null) return void 0;
109
109
  const children = Array.from(box.current.children);
@@ -336,7 +336,7 @@ function startPresence(editor, collaboration, awareness, link, sharedOf2) {
336
336
 
337
337
  // src/extensions/presence/place-caret.ts
338
338
  function caretBox(host, offset) {
339
- const map = chunkP6HC7RUN_cjs.domMapOf(host);
339
+ const map = chunkZ6LAARPB_cjs.domMapOf(host);
340
340
  if (!map || !host.isConnected) return null;
341
341
  const doc = host.ownerDocument;
342
342
  const spans = [
@@ -386,9 +386,9 @@ var shownOf = (state) => chunkFK7EBZPX_cjs.getPluginState(state, presenceKey).fl
386
386
  ({ client, name, color, idle, selection }) => selection?.kind === "text" ? [{ client, name, color, idle }] : []
387
387
  );
388
388
  function RemoteCarets({ controller, labels }) {
389
- const shown = chunkP6HC7RUN_cjs.useEditorState(controller, shownOf, chunkI7X7B3WD_cjs.sameValue);
389
+ const shown = chunkZ6LAARPB_cjs.useEditorState(controller, shownOf, chunkI7X7B3WD_cjs.sameValue);
390
390
  const box = react.useRef(null);
391
- chunkP6HC7RUN_cjs.useIsomorphicLayoutEffect(() => {
391
+ chunkZ6LAARPB_cjs.useIsomorphicLayoutEffect(() => {
392
392
  const root = controller.root;
393
393
  if (!root || box.current === null) return void 0;
394
394
  const carets = Array.from(box.current.children);
@@ -410,9 +410,9 @@ function usePresenceActivity(controller, link) {
410
410
  react.useEffect(() => {
411
411
  const doc = controller.root?.ownerDocument;
412
412
  if (!doc) return void 0;
413
- let focused = chunk4MCYQHFL_cjs.ownsNode(controller, doc.activeElement);
413
+ let focused = chunkBYYCD54G_cjs.ownsNode(controller, doc.activeElement);
414
414
  const update = () => setActive(link, focused && !controller.readOnly);
415
- const stopFocus = chunk4MCYQHFL_cjs.watchCanvasFocus(controller, doc, (inside2) => {
415
+ const stopFocus = chunkBYYCD54G_cjs.watchCanvasFocus(controller, doc, (inside2) => {
416
416
  focused = inside2;
417
417
  update();
418
418
  });
package/dist/presence.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  import { clipBoxes } from './chunk-MQUCCSWG.js';
3
3
  import { sharedOf, sharedChange, absolute, relative } from './chunk-UDBLZILE.js';
4
- import { ownsNode, watchCanvasFocus } from './chunk-D4L5FINK.js';
5
- import './chunk-Y4EJ6UBV.js';
6
- import { useEditorState, useIsomorphicLayoutEffect, listen, domMapOf } from './chunk-MSWA5ZZM.js';
4
+ import { ownsNode, watchCanvasFocus } from './chunk-IW4TMECB.js';
5
+ import './chunk-ZN5DHNSL.js';
6
+ import { useEditorState, useIsomorphicLayoutEffect, listen, domMapOf } from './chunk-NL5J77VD.js';
7
7
  import { mergeLabels } from './chunk-DLQCTGC3.js';
8
8
  import { devWarn } from './chunk-HDJ653LM.js';
9
9
  import { createPluginKey, defineExtension, getPluginState, mapSelection, sameSelection, headBlockId, markRanges, nodeSelection, blockRangeSelection, validateSelection, textSelection } from './chunk-5RBMZGKV.js';
package/dist/source.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- require('./chunk-BA5WXBGE.cjs');
5
- require('./chunk-P6HC7RUN.cjs');
4
+ require('./chunk-CJVJNMOB.cjs');
5
+ require('./chunk-Z6LAARPB.cjs');
6
6
  var chunkZWTIRGY5_cjs = require('./chunk-ZWTIRGY5.cjs');
7
7
  require('./chunk-A6PGQVTR.cjs');
8
8
  var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
package/dist/source.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import './chunk-Y4EJ6UBV.js';
3
- import './chunk-MSWA5ZZM.js';
2
+ import './chunk-ZN5DHNSL.js';
3
+ import './chunk-NL5J77VD.js';
4
4
  import { mergeLabels } from './chunk-DLQCTGC3.js';
5
5
  import './chunk-HDJ653LM.js';
6
6
  import { toMarkdown, selectedBlockIds } from './chunk-5RBMZGKV.js';
package/dist/stats.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkYVPZDTVZ_cjs = require('./chunk-YVPZDTVZ.cjs');
4
+ var chunkLEICOZYK_cjs = require('./chunk-LEICOZYK.cjs');
5
5
  require('./chunk-YEDPBYO5.cjs');
6
- require('./chunk-BA5WXBGE.cjs');
7
- require('./chunk-P6HC7RUN.cjs');
6
+ require('./chunk-CJVJNMOB.cjs');
7
+ require('./chunk-Z6LAARPB.cjs');
8
8
  require('./chunk-ZWTIRGY5.cjs');
9
9
  require('./chunk-A6PGQVTR.cjs');
10
10
  require('./chunk-FK7EBZPX.cjs');
@@ -15,13 +15,13 @@ require('./chunk-I7X7B3WD.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "englishStatsLabels", {
17
17
  enumerable: true,
18
- get: function () { return chunkYVPZDTVZ_cjs.englishStatsLabels; }
18
+ get: function () { return chunkLEICOZYK_cjs.englishStatsLabels; }
19
19
  });
20
20
  Object.defineProperty(exports, "statsExtension", {
21
21
  enumerable: true,
22
- get: function () { return chunkYVPZDTVZ_cjs.statsExtension; }
22
+ get: function () { return chunkLEICOZYK_cjs.statsExtension; }
23
23
  });
24
24
  Object.defineProperty(exports, "useEditorStats", {
25
25
  enumerable: true,
26
- get: function () { return chunkYVPZDTVZ_cjs.useEditorStats; }
26
+ get: function () { return chunkLEICOZYK_cjs.useEditorStats; }
27
27
  });
package/dist/stats.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- export { englishStatsLabels, statsExtension, useEditorStats } from './chunk-WOGCD7JN.js';
2
+ export { englishStatsLabels, statsExtension, useEditorStats } from './chunk-YABGWOAV.js';
3
3
  import './chunk-LSI4RMTY.js';
4
- import './chunk-Y4EJ6UBV.js';
5
- import './chunk-MSWA5ZZM.js';
4
+ import './chunk-ZN5DHNSL.js';
5
+ import './chunk-NL5J77VD.js';
6
6
  import './chunk-DLQCTGC3.js';
7
7
  import './chunk-HDJ653LM.js';
8
8
  import './chunk-5RBMZGKV.js';