quoin-editor 1.8.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/MIGRATION.md +137 -23
- package/README.md +8 -2
- package/dist/ai.cjs +34 -34
- package/dist/ai.js +3 -3
- package/dist/catalogue.cjs +21 -21
- package/dist/catalogue.js +12 -12
- package/dist/{chunk-VWYPO6SX.js → chunk-2UKI26JA.js} +5 -5
- package/dist/chunk-2UKI26JA.js.map +1 -0
- package/dist/{chunk-B3OBM6I4.cjs → chunk-4PIJC4FD.cjs} +16 -16
- package/dist/{chunk-5OZX2LV4.js → chunk-5X52BAZB.js} +5 -5
- package/dist/{chunk-5OZX2LV4.js.map → chunk-5X52BAZB.js.map} +1 -1
- package/dist/{chunk-PVFSJXYQ.cjs → chunk-5YAJZSTI.cjs} +18 -18
- package/dist/{chunk-53CNYRVQ.cjs → chunk-66OPHDFA.cjs} +50 -50
- package/dist/{chunk-EZX37R5D.js → chunk-6BVE46K7.js} +4 -4
- package/dist/{chunk-EZX37R5D.js.map → chunk-6BVE46K7.js.map} +1 -1
- package/dist/{chunk-MMS4D4MK.cjs → chunk-77CNOLHY.cjs} +3 -3
- package/dist/{chunk-DXUDBPG5.js → chunk-B4VCDJSA.js} +5 -5
- package/dist/{chunk-DXUDBPG5.js.map → chunk-B4VCDJSA.js.map} +1 -1
- package/dist/{chunk-4MCYQHFL.cjs → chunk-BYYCD54G.cjs} +2 -2
- package/dist/{chunk-BA5WXBGE.cjs → chunk-CJVJNMOB.cjs} +107 -101
- package/dist/{chunk-TQHFGSTT.cjs → chunk-D6CIIWCU.cjs} +30 -30
- package/dist/{chunk-NCDMQCZR.js → chunk-EU5IGKMP.js} +3 -3
- package/dist/{chunk-NCDMQCZR.js.map → chunk-EU5IGKMP.js.map} +1 -1
- package/dist/{chunk-7X3T7VXV.cjs → chunk-HOSDMHK6.cjs} +25 -25
- package/dist/{chunk-XKYNINUX.cjs → chunk-IKZSCTRF.cjs} +3 -3
- package/dist/{chunk-D4L5FINK.js → chunk-IW4TMECB.js} +3 -3
- package/dist/{chunk-D4L5FINK.js.map → chunk-IW4TMECB.js.map} +1 -1
- package/dist/{chunk-MRHDPXQ7.js → chunk-J2SVYBTC.js} +6 -6
- package/dist/chunk-J2SVYBTC.js.map +1 -0
- package/dist/{chunk-PHQMHXNG.js → chunk-KQPZTSW3.js} +4 -4
- package/dist/{chunk-PHQMHXNG.js.map → chunk-KQPZTSW3.js.map} +1 -1
- package/dist/{chunk-YVPZDTVZ.cjs → chunk-LEICOZYK.cjs} +2 -2
- package/dist/{chunk-SP4F5F6V.js → chunk-M77A3EGD.js} +3 -3
- package/dist/{chunk-SP4F5F6V.js.map → chunk-M77A3EGD.js.map} +1 -1
- package/dist/{chunk-VM567D6O.js → chunk-MAS4AEF4.js} +4 -4
- package/dist/{chunk-VM567D6O.js.map → chunk-MAS4AEF4.js.map} +1 -1
- package/dist/{chunk-EZWJRBQT.cjs → chunk-NFO3W644.cjs} +19 -19
- package/dist/{chunk-MSWA5ZZM.js → chunk-NL5J77VD.js} +202 -202
- package/dist/chunk-NL5J77VD.js.map +1 -0
- package/dist/{chunk-53FJFYBR.cjs → chunk-V4WQG7FR.cjs} +64 -64
- package/dist/{chunk-WOGCD7JN.js → chunk-YABGWOAV.js} +3 -3
- package/dist/{chunk-WOGCD7JN.js.map → chunk-YABGWOAV.js.map} +1 -1
- package/dist/{chunk-P6HC7RUN.cjs → chunk-Z6LAARPB.cjs} +199 -204
- package/dist/{chunk-Y4EJ6UBV.js → chunk-ZN5DHNSL.js} +15 -9
- package/dist/chunk-ZN5DHNSL.js.map +1 -0
- package/dist/comments.cjs +30 -30
- package/dist/comments.js +3 -3
- package/dist/diagram.cjs +6 -6
- package/dist/diagram.js +3 -3
- package/dist/embed.cjs +5 -5
- package/dist/embed.js +3 -3
- package/dist/emoji.cjs +6 -6
- package/dist/emoji.js +3 -3
- package/dist/find.cjs +7 -7
- package/dist/find.js +3 -3
- package/dist/headless.cjs +11 -31
- package/dist/headless.d.cts +4 -41
- package/dist/headless.d.ts +4 -41
- package/dist/headless.js +1 -1
- package/dist/highlight.cjs +3 -3
- package/dist/highlight.js +2 -2
- package/dist/index.cjs +23 -43
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/math.cjs +6 -6
- package/dist/math.js +4 -4
- package/dist/mention.cjs +6 -6
- package/dist/mention.js +4 -4
- package/dist/presence.cjs +12 -12
- package/dist/presence.js +3 -3
- package/dist/source.cjs +2 -2
- package/dist/source.js +2 -2
- package/dist/stats.cjs +6 -6
- package/dist/stats.js +3 -3
- package/dist/styles.css +2 -2
- package/dist/table.cjs +22 -22
- package/dist/table.js +3 -3
- package/dist/toc.cjs +6 -6
- package/dist/toc.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-MRHDPXQ7.js.map +0 -1
- package/dist/chunk-MSWA5ZZM.js.map +0 -1
- package/dist/chunk-VWYPO6SX.js.map +0 -1
- 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-
|
|
4
|
-
import './chunk-
|
|
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
|
|
5
|
-
var
|
|
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
|
|
16
|
+
get: function () { return chunkCJVJNMOB_cjs.BlockCanvas; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "FilePickerButton", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkCJVJNMOB_cjs.FilePickerButton; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "QuoinProvider", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCJVJNMOB_cjs.QuoinProvider; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "UploadField", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkCJVJNMOB_cjs.UploadField; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "coreBlocks", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkCJVJNMOB_cjs.coreBlocks; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "englishLabels", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkCJVJNMOB_cjs.englishLabels; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "formatShortcut", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkCJVJNMOB_cjs.formatShortcut; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "resolveLabels", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkCJVJNMOB_cjs.resolveLabels; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "useAutosave", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkCJVJNMOB_cjs.useAutosave; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "useLabels", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkCJVJNMOB_cjs.useLabels; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "useQuoin", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
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
|
|
60
|
+
get: function () { return chunkZ6LAARPB_cjs.EditableRegion; }
|
|
65
61
|
});
|
|
66
62
|
Object.defineProperty(exports, "EditorView", {
|
|
67
63
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
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
|
|
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
|
|
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
|
|
76
|
+
get: function () { return chunkZ6LAARPB_cjs.domMapOf; }
|
|
93
77
|
});
|
|
94
78
|
Object.defineProperty(exports, "hostKey", {
|
|
95
79
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
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
|
|
84
|
+
get: function () { return chunkZ6LAARPB_cjs.renderInline; }
|
|
105
85
|
});
|
|
106
86
|
Object.defineProperty(exports, "useEditorState", {
|
|
107
87
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkZ6LAARPB_cjs.useEditorState; }
|
|
109
89
|
});
|
|
110
90
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
111
91
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkZ6LAARPB_cjs.useQuoinEditor; }
|
|
113
93
|
});
|
|
114
94
|
Object.defineProperty(exports, "useViewController", {
|
|
115
95
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
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,
|
|
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,
|
|
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-
|
|
3
|
-
export {
|
|
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkD6CIIWCU_cjs = require('./chunk-D6CIIWCU.cjs');
|
|
5
|
+
require('./chunk-IKZSCTRF.cjs');
|
|
6
6
|
require('./chunk-YEDPBYO5.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
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
|
|
19
|
+
get: function () { return chunkD6CIIWCU_cjs.englishMathLabels; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mathExtension", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
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-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { englishMathLabels, mathExtension } from './chunk-5X52BAZB.js';
|
|
3
|
+
import './chunk-M77A3EGD.js';
|
|
4
4
|
import './chunk-LSI4RMTY.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunk5YAJZSTI_cjs = require('./chunk-5YAJZSTI.cjs');
|
|
5
|
+
require('./chunk-IKZSCTRF.cjs');
|
|
6
6
|
require('./chunk-LM3DHROX.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
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
|
|
19
|
+
get: function () { return chunk5YAJZSTI_cjs.englishMentionLabels; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mentionExtension", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
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-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { englishMentionLabels, mentionExtension } from './chunk-B4VCDJSA.js';
|
|
3
|
+
import './chunk-M77A3EGD.js';
|
|
4
4
|
import './chunk-DBOZFNWU.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
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
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
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 =
|
|
53
|
-
const unlistenFonts = fonts &&
|
|
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 =
|
|
104
|
+
const groups = chunkZ6LAARPB_cjs.useEditorState(controller, groupsOf, chunkI7X7B3WD_cjs.sameValue);
|
|
105
105
|
const box = react.useRef(null);
|
|
106
|
-
|
|
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 =
|
|
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 =
|
|
389
|
+
const shown = chunkZ6LAARPB_cjs.useEditorState(controller, shownOf, chunkI7X7B3WD_cjs.sameValue);
|
|
390
390
|
const box = react.useRef(null);
|
|
391
|
-
|
|
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 =
|
|
413
|
+
let focused = chunkBYYCD54G_cjs.ownsNode(controller, doc.activeElement);
|
|
414
414
|
const update = () => setActive(link, focused && !controller.readOnly);
|
|
415
|
-
const stopFocus =
|
|
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-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { useEditorState, useIsomorphicLayoutEffect, listen, domMapOf } from './chunk-
|
|
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-
|
|
5
|
-
require('./chunk-
|
|
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-
|
|
3
|
-
import './chunk-
|
|
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
|
|
4
|
+
var chunkLEICOZYK_cjs = require('./chunk-LEICOZYK.cjs');
|
|
5
5
|
require('./chunk-YEDPBYO5.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
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
|
|
18
|
+
get: function () { return chunkLEICOZYK_cjs.englishStatsLabels; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "statsExtension", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLEICOZYK_cjs.statsExtension; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "useEditorStats", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
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-
|
|
2
|
+
export { englishStatsLabels, statsExtension, useEditorStats } from './chunk-YABGWOAV.js';
|
|
3
3
|
import './chunk-LSI4RMTY.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
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';
|