quoin-editor 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- 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-BNTRGV4A.js → chunk-2BPXVQBP.js} +3 -3
- package/dist/{chunk-BNTRGV4A.js.map → chunk-2BPXVQBP.js.map} +1 -1
- package/dist/{chunk-MGN332NY.cjs → chunk-2QKFRKOP.cjs} +1 -1
- package/dist/{chunk-3B5VEXVQ.cjs → chunk-3HW3WRYC.cjs} +2 -2
- package/dist/{chunk-5URH2Y2L.cjs → chunk-3INFNIGN.cjs} +19 -19
- package/dist/{chunk-WMM56LIB.js → chunk-4G645EYO.js} +3 -3
- package/dist/{chunk-WMM56LIB.js.map → chunk-4G645EYO.js.map} +1 -1
- package/dist/{chunk-LCGOFL7S.js → chunk-556PFYES.js} +4 -4
- package/dist/{chunk-LCGOFL7S.js.map → chunk-556PFYES.js.map} +1 -1
- package/dist/{chunk-BCCFJINI.cjs → chunk-7J63427U.cjs} +64 -64
- package/dist/{chunk-YHAVXOAA.js → chunk-A2IQHMIH.js} +4 -4
- package/dist/{chunk-YHAVXOAA.js.map → chunk-A2IQHMIH.js.map} +1 -1
- package/dist/{chunk-VQDQBMQY.js → chunk-AJT54OMZ.js} +4 -4
- package/dist/{chunk-VQDQBMQY.js.map → chunk-AJT54OMZ.js.map} +1 -1
- package/dist/{chunk-SQHEZ3JY.cjs → chunk-BE2YHZXA.cjs} +2 -2
- package/dist/{chunk-DZ5XR4O6.cjs → chunk-EBSDPHPS.cjs} +105 -105
- package/dist/{chunk-MDIXI7DM.js → chunk-EIWPJWY3.js} +3 -3
- package/dist/{chunk-MDIXI7DM.js.map → chunk-EIWPJWY3.js.map} +1 -1
- package/dist/{chunk-C4SRLMQJ.js → chunk-F2ZK6Z52.js} +3 -3
- package/dist/{chunk-C4SRLMQJ.js.map → chunk-F2ZK6Z52.js.map} +1 -1
- package/dist/{chunk-FGVTDIHT.js → chunk-G6NBQYMM.js} +4 -4
- package/dist/chunk-G6NBQYMM.js.map +1 -0
- package/dist/{chunk-H3TRVI44.cjs → chunk-JGEDJYIV.cjs} +50 -50
- package/dist/{chunk-55MN4QZU.cjs → chunk-JZF6UQH5.cjs} +4 -4
- package/dist/{chunk-UWCU6PJY.cjs → chunk-KHRVCTQQ.cjs} +30 -30
- package/dist/{chunk-NLRSAOCK.js → chunk-LU3T3JB4.js} +5 -5
- package/dist/{chunk-NLRSAOCK.js.map → chunk-LU3T3JB4.js.map} +1 -1
- package/dist/{chunk-NAMZA4NW.cjs → chunk-N7BSFDDM.cjs} +14 -14
- package/dist/{chunk-YWYTLNAO.js → chunk-NHNW5DK3.js} +4 -4
- package/dist/{chunk-YWYTLNAO.js.map → chunk-NHNW5DK3.js.map} +1 -1
- package/dist/{chunk-4EJJ4ZNC.cjs → chunk-NUQ64S5B.cjs} +18 -18
- package/dist/{chunk-QVWNUUMJ.js → chunk-QLVX7MPS.js} +3 -3
- package/dist/{chunk-QVWNUUMJ.js.map → chunk-QLVX7MPS.js.map} +1 -1
- package/dist/{chunk-77THE3KY.js → chunk-W376L2GM.js} +5 -5
- package/dist/{chunk-77THE3KY.js.map → chunk-W376L2GM.js.map} +1 -1
- package/dist/{chunk-OMUXPNCX.cjs → chunk-WDBFGX3U.cjs} +26 -26
- package/dist/{chunk-RNYETN6X.js → chunk-XE3IYW5B.js} +4 -4
- package/dist/{chunk-RNYETN6X.js.map → chunk-XE3IYW5B.js.map} +1 -1
- package/dist/{chunk-SDFJZNYB.cjs → chunk-YYW33WUL.cjs} +3 -3
- 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 -11
- package/dist/headless.js +1 -1
- package/dist/highlight.cjs +3 -3
- package/dist/highlight.js +2 -2
- package/dist/index.cjs +23 -23
- 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/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-FGVTDIHT.js.map +0 -1
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 chunkEBSDPHPS_cjs = require('./chunk-EBSDPHPS.cjs');
|
|
5
|
+
var chunk2QKFRKOP_cjs = require('./chunk-2QKFRKOP.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,87 +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 chunkEBSDPHPS_cjs.BlockCanvas; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "FilePickerButton", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkEBSDPHPS_cjs.FilePickerButton; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "QuoinProvider", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkEBSDPHPS_cjs.QuoinProvider; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "UploadField", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkEBSDPHPS_cjs.UploadField; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "coreBlocks", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkEBSDPHPS_cjs.coreBlocks; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "englishLabels", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkEBSDPHPS_cjs.englishLabels; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "formatShortcut", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkEBSDPHPS_cjs.formatShortcut; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "resolveLabels", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkEBSDPHPS_cjs.resolveLabels; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "useAutosave", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkEBSDPHPS_cjs.useAutosave; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "useLabels", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkEBSDPHPS_cjs.useLabels; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "useQuoin", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkEBSDPHPS_cjs.useQuoin; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "EditableRegion", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk2QKFRKOP_cjs.EditableRegion; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "EditorView", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk2QKFRKOP_cjs.EditorView; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "ViewController", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk2QKFRKOP_cjs.ViewController; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk2QKFRKOP_cjs.caretFromPoint; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "domMapOf", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk2QKFRKOP_cjs.domMapOf; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "hostKey", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk2QKFRKOP_cjs.hostKey; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "renderInline", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk2QKFRKOP_cjs.renderInline; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "useEditorState", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk2QKFRKOP_cjs.useEditorState; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk2QKFRKOP_cjs.useQuoinEditor; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "useViewController", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk2QKFRKOP_cjs.useViewController; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "blockByType", {
|
|
99
99
|
enumerable: true,
|
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 { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-
|
|
2
|
+
export { BlockCanvas, FilePickerButton, QuoinProvider, UploadField, coreBlocks, englishLabels, formatShortcut, resolveLabels, useAutosave, useLabels, useQuoin } from './chunk-G6NBQYMM.js';
|
|
3
|
+
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-2BPXVQBP.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 chunkKHRVCTQQ_cjs = require('./chunk-KHRVCTQQ.cjs');
|
|
5
|
+
require('./chunk-JZF6UQH5.cjs');
|
|
6
6
|
require('./chunk-YEDPBYO5.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-EBSDPHPS.cjs');
|
|
8
|
+
require('./chunk-2QKFRKOP.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 chunkKHRVCTQQ_cjs.englishMathLabels; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mathExtension", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkKHRVCTQQ_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-LU3T3JB4.js';
|
|
3
|
+
import './chunk-4G645EYO.js';
|
|
4
4
|
import './chunk-LSI4RMTY.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-G6NBQYMM.js';
|
|
6
|
+
import './chunk-2BPXVQBP.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 chunkNUQ64S5B_cjs = require('./chunk-NUQ64S5B.cjs');
|
|
5
|
+
require('./chunk-JZF6UQH5.cjs');
|
|
6
6
|
require('./chunk-LM3DHROX.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-EBSDPHPS.cjs');
|
|
8
|
+
require('./chunk-2QKFRKOP.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 chunkNUQ64S5B_cjs.englishMentionLabels; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mentionExtension", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkNUQ64S5B_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-W376L2GM.js';
|
|
3
|
+
import './chunk-4G645EYO.js';
|
|
4
4
|
import './chunk-DBOZFNWU.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-G6NBQYMM.js';
|
|
6
|
+
import './chunk-2BPXVQBP.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 chunk3HW3WRYC_cjs = require('./chunk-3HW3WRYC.cjs');
|
|
7
|
+
require('./chunk-EBSDPHPS.cjs');
|
|
8
|
+
var chunk2QKFRKOP_cjs = require('./chunk-2QKFRKOP.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 = chunk2QKFRKOP_cjs.listen(root, { scroll: update }, { capture: true, passive: true });
|
|
53
|
+
const unlistenFonts = fonts && chunk2QKFRKOP_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 = chunk2QKFRKOP_cjs.useEditorState(controller, groupsOf, chunkI7X7B3WD_cjs.sameValue);
|
|
105
105
|
const box = react.useRef(null);
|
|
106
|
-
|
|
106
|
+
chunk2QKFRKOP_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 = chunk2QKFRKOP_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 = chunk2QKFRKOP_cjs.useEditorState(controller, shownOf, chunkI7X7B3WD_cjs.sameValue);
|
|
390
390
|
const box = react.useRef(null);
|
|
391
|
-
|
|
391
|
+
chunk2QKFRKOP_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 = chunk3HW3WRYC_cjs.ownsNode(controller, doc.activeElement);
|
|
414
414
|
const update = () => setActive(link, focused && !controller.readOnly);
|
|
415
|
-
const stopFocus =
|
|
415
|
+
const stopFocus = chunk3HW3WRYC_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-F2ZK6Z52.js';
|
|
5
|
+
import './chunk-G6NBQYMM.js';
|
|
6
|
+
import { useEditorState, useIsomorphicLayoutEffect, listen, domMapOf } from './chunk-2BPXVQBP.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-EBSDPHPS.cjs');
|
|
5
|
+
require('./chunk-2QKFRKOP.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-G6NBQYMM.js';
|
|
3
|
+
import './chunk-2BPXVQBP.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 chunkBE2YHZXA_cjs = require('./chunk-BE2YHZXA.cjs');
|
|
5
5
|
require('./chunk-YEDPBYO5.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-EBSDPHPS.cjs');
|
|
7
|
+
require('./chunk-2QKFRKOP.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 chunkBE2YHZXA_cjs.englishStatsLabels; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "statsExtension", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkBE2YHZXA_cjs.statsExtension; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "useEditorStats", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkBE2YHZXA_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-QLVX7MPS.js';
|
|
3
3
|
import './chunk-LSI4RMTY.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-G6NBQYMM.js';
|
|
5
|
+
import './chunk-2BPXVQBP.js';
|
|
6
6
|
import './chunk-DLQCTGC3.js';
|
|
7
7
|
import './chunk-HDJ653LM.js';
|
|
8
8
|
import './chunk-5RBMZGKV.js';
|
package/dist/table.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunk7J63427U_cjs = require('./chunk-7J63427U.cjs');
|
|
5
|
+
require('./chunk-EBSDPHPS.cjs');
|
|
6
|
+
require('./chunk-2QKFRKOP.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -14,77 +14,77 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "addColumn", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7J63427U_cjs.addColumn; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "addRow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7J63427U_cjs.addRow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cellSelection", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7J63427U_cjs.cellSelection; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cellSelectionKey", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7J63427U_cjs.cellSelectionKey; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "cellSelectionPlugin", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk7J63427U_cjs.cellSelectionPlugin; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "cellsInRange", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk7J63427U_cjs.cellsInRange; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "deleteCellContents", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk7J63427U_cjs.deleteCellContents; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "englishTableLabels", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk7J63427U_cjs.englishTableLabels; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "insertTable", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk7J63427U_cjs.insertTable; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "moveColumn", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk7J63427U_cjs.moveColumn; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "moveRow", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk7J63427U_cjs.moveRow; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "removeColumn", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk7J63427U_cjs.removeColumn; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "removeRow", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk7J63427U_cjs.removeRow; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "selectCells", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk7J63427U_cjs.selectCells; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "setCellsMark", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk7J63427U_cjs.setCellsMark; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "setColumnAlign", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk7J63427U_cjs.setColumnAlign; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "setColumnWidth", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk7J63427U_cjs.setColumnWidth; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "tableExtension", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk7J63427U_cjs.tableExtension; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "toggleHeaderRow", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk7J63427U_cjs.toggleHeaderRow; }
|
|
90
90
|
});
|
package/dist/table.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { addColumn, addRow, cellSelection, cellSelectionKey, cellSelectionPlugin, cellsInRange, deleteCellContents, englishTableLabels, insertTable, moveColumn, moveRow, removeColumn, removeRow, selectCells, setCellsMark, setColumnAlign, setColumnWidth, tableExtension, toggleHeaderRow } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
export { addColumn, addRow, cellSelection, cellSelectionKey, cellSelectionPlugin, cellsInRange, deleteCellContents, englishTableLabels, insertTable, moveColumn, moveRow, removeColumn, removeRow, selectCells, setCellsMark, setColumnAlign, setColumnWidth, tableExtension, toggleHeaderRow } from './chunk-556PFYES.js';
|
|
3
|
+
import './chunk-G6NBQYMM.js';
|
|
4
|
+
import './chunk-2BPXVQBP.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
7
|
import './chunk-5RBMZGKV.js';
|
package/dist/toc.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunkN7BSFDDM_cjs = require('./chunk-N7BSFDDM.cjs');
|
|
5
|
+
require('./chunk-EBSDPHPS.cjs');
|
|
6
|
+
require('./chunk-2QKFRKOP.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "englishTocLabels", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkN7BSFDDM_cjs.englishTocLabels; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "headings", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkN7BSFDDM_cjs.headings; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "tocExtension", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkN7BSFDDM_cjs.tocExtension; }
|
|
26
26
|
});
|
package/dist/toc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { englishTocLabels, headings, tocExtension } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
export { englishTocLabels, headings, tocExtension } from './chunk-NHNW5DK3.js';
|
|
3
|
+
import './chunk-G6NBQYMM.js';
|
|
4
|
+
import './chunk-2BPXVQBP.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
7
|
import './chunk-5RBMZGKV.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quoin-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Rich markdown editor for React: a Notion-style block editor and rich text editor with real-time collaboration, AI, a slash menu and drag and drop. MIT.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|