quoin-editor 1.7.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 +21 -1
- package/MIGRATION.md +137 -23
- package/README.md +32 -11
- package/dist/ai-labels-BXX32H9a.d.cts +53 -0
- package/dist/ai-labels-BXX32H9a.d.ts +53 -0
- package/dist/ai.cjs +84 -86
- package/dist/ai.d.cts +4 -53
- package/dist/ai.d.ts +4 -53
- package/dist/ai.js +8 -10
- package/dist/ai.js.map +1 -1
- package/dist/catalogue.cjs +27 -26
- package/dist/catalogue.d.cts +10 -1
- package/dist/catalogue.d.ts +10 -1
- package/dist/catalogue.js +18 -17
- package/dist/catalogue.js.map +1 -1
- package/dist/{chunk-MNA7MBCH.js → chunk-2UKI26JA.js} +9 -11
- package/dist/chunk-2UKI26JA.js.map +1 -0
- package/dist/{chunk-MZXW2HXP.cjs → chunk-4PIJC4FD.cjs} +27 -29
- package/dist/{chunk-OS2O6IKX.js → chunk-5RBMZGKV.js} +4 -4
- package/dist/{chunk-OS2O6IKX.js.map → chunk-5RBMZGKV.js.map} +1 -1
- package/dist/{chunk-OJ4O6HWC.js → chunk-5X52BAZB.js} +10 -12
- package/dist/chunk-5X52BAZB.js.map +1 -0
- package/dist/{chunk-JY5VUHKN.cjs → chunk-5YAJZSTI.cjs} +28 -30
- package/dist/{chunk-YEFPH27F.cjs → chunk-66OPHDFA.cjs} +92 -94
- package/dist/{chunk-PWUFFHAQ.js → chunk-6BVE46K7.js} +8 -10
- package/dist/chunk-6BVE46K7.js.map +1 -0
- package/dist/{chunk-LKZJ2TDU.cjs → chunk-77CNOLHY.cjs} +10 -13
- package/dist/{chunk-4T4TJ2QS.cjs → chunk-7E43TURF.cjs} +7 -7
- package/dist/{chunk-BJTOLCRR.js → chunk-7Y4B7NHO.js} +2 -2
- package/dist/chunk-7Y4B7NHO.js.map +1 -0
- package/dist/{chunk-7GU25Z6L.js → chunk-B4VCDJSA.js} +9 -11
- package/dist/chunk-B4VCDJSA.js.map +1 -0
- package/dist/{chunk-QR2NIDUK.cjs → chunk-BYYCD54G.cjs} +2 -2
- package/dist/{chunk-6T5YGCZ5.cjs → chunk-CJVJNMOB.cjs} +302 -299
- package/dist/{chunk-CSKKSXCE.js → chunk-CSPCDVCT.js} +3 -3
- package/dist/{chunk-CSKKSXCE.js.map → chunk-CSPCDVCT.js.map} +1 -1
- package/dist/{chunk-BF7733XS.cjs → chunk-D6CIIWCU.cjs} +57 -59
- package/dist/{chunk-GHNQKJMD.js → chunk-DBOZFNWU.js} +3 -3
- package/dist/{chunk-GHNQKJMD.js.map → chunk-DBOZFNWU.js.map} +1 -1
- package/dist/{chunk-BM2GRZNM.cjs → chunk-DJU25PFC.cjs} +11 -11
- package/dist/chunk-DLQCTGC3.js +10 -0
- package/dist/chunk-DLQCTGC3.js.map +1 -0
- package/dist/{chunk-RQXJKJ5S.js → chunk-EU5IGKMP.js} +7 -10
- package/dist/chunk-EU5IGKMP.js.map +1 -0
- package/dist/{chunk-VZZPCYA3.cjs → chunk-FK7EBZPX.cjs} +226 -226
- package/dist/{chunk-BXSWZEA5.js → chunk-GPTJYWGS.js} +3 -3
- package/dist/{chunk-BXSWZEA5.js.map → chunk-GPTJYWGS.js.map} +1 -1
- package/dist/{chunk-I722LBD3.cjs → chunk-HOSDMHK6.cjs} +32 -34
- package/dist/{chunk-AZF7B2AE.cjs → chunk-IKZSCTRF.cjs} +11 -11
- package/dist/{chunk-R7MYG522.js → chunk-IW4TMECB.js} +3 -3
- package/dist/{chunk-R7MYG522.js.map → chunk-IW4TMECB.js.map} +1 -1
- package/dist/{chunk-PLUMKN4B.js → chunk-J2SVYBTC.js} +10 -12
- package/dist/chunk-J2SVYBTC.js.map +1 -0
- package/dist/{chunk-UZS3TW75.js → chunk-KQPZTSW3.js} +9 -11
- package/dist/chunk-KQPZTSW3.js.map +1 -0
- package/dist/{chunk-STKGRXSA.cjs → chunk-LEICOZYK.cjs} +15 -17
- package/dist/{chunk-H3C3MJW5.cjs → chunk-LM3DHROX.cjs} +2 -2
- package/dist/{chunk-AD3NY7NA.js → chunk-LSI4RMTY.js} +3 -3
- package/dist/{chunk-AD3NY7NA.js.map → chunk-LSI4RMTY.js.map} +1 -1
- package/dist/{chunk-QOIVLYMW.js → chunk-M77A3EGD.js} +5 -5
- package/dist/{chunk-QOIVLYMW.js.map → chunk-M77A3EGD.js.map} +1 -1
- package/dist/{chunk-5JEQZIRI.js → chunk-MAS4AEF4.js} +8 -10
- package/dist/chunk-MAS4AEF4.js.map +1 -0
- package/dist/{chunk-KDK2ATMB.cjs → chunk-NFO3W644.cjs} +51 -53
- package/dist/{chunk-XFEDJEJF.js → chunk-NL5J77VD.js} +204 -204
- package/dist/chunk-NL5J77VD.js.map +1 -0
- package/dist/{chunk-WN7BZDNH.cjs → chunk-PURYVDC3.cjs} +13 -13
- package/dist/{chunk-G25FMFEZ.js → chunk-UDBLZILE.js} +4 -4
- package/dist/{chunk-G25FMFEZ.js.map → chunk-UDBLZILE.js.map} +1 -1
- package/dist/{chunk-FNJOPGMN.cjs → chunk-V4WQG7FR.cjs} +116 -118
- package/dist/{chunk-IJKGF6SC.js → chunk-YABGWOAV.js} +8 -10
- package/dist/chunk-YABGWOAV.js.map +1 -0
- package/dist/{chunk-XZ4NC3Q7.cjs → chunk-YEDPBYO5.cjs} +4 -4
- package/dist/{chunk-QJ34MOFV.cjs → chunk-Z6LAARPB.cjs} +315 -320
- package/dist/{chunk-HSLOPJVT.js → chunk-ZN5DHNSL.js} +19 -16
- package/dist/chunk-ZN5DHNSL.js.map +1 -0
- package/dist/chunk-ZWTIRGY5.cjs +10 -0
- package/dist/comments-labels-DWqsSz8G.d.cts +30 -0
- package/dist/comments-labels-DWqsSz8G.d.ts +30 -0
- package/dist/comments.cjs +63 -65
- package/dist/comments.d.cts +4 -30
- package/dist/comments.d.ts +4 -30
- package/dist/comments.js +9 -11
- package/dist/comments.js.map +1 -1
- package/dist/{diagram-extension-Da7hp-tv.d.ts → diagram-extension-22x_njXB.d.ts} +4 -12
- package/dist/{diagram-extension-D573COJv.d.cts → diagram-extension-C_FSkoj9.d.cts} +4 -12
- package/dist/diagram-labels-Bi_jEZ8_.d.cts +11 -0
- package/dist/diagram-labels-Bi_jEZ8_.d.ts +11 -0
- package/dist/diagram.cjs +10 -9
- package/dist/diagram.d.cts +3 -2
- package/dist/diagram.d.ts +3 -2
- package/dist/diagram.js +7 -6
- package/dist/diff-labels-DWwg7N0n.d.cts +27 -0
- package/dist/diff-labels-DWwg7N0n.d.ts +27 -0
- package/dist/diff.cjs +27 -29
- package/dist/diff.d.cts +4 -27
- package/dist/diff.d.ts +4 -27
- package/dist/diff.js +5 -7
- package/dist/diff.js.map +1 -1
- package/dist/docx.cjs +30 -30
- package/dist/docx.js +3 -3
- package/dist/embed-labels-BiVa9HYl.d.cts +23 -0
- package/dist/embed-labels-BiVa9HYl.d.ts +23 -0
- package/dist/embed.cjs +10 -9
- package/dist/embed.d.cts +4 -23
- package/dist/embed.d.ts +4 -23
- package/dist/embed.js +8 -7
- package/dist/emoji-extension-C832oGeT.d.ts +16 -0
- package/dist/emoji-extension-Dk5IQLZf.d.cts +16 -0
- package/dist/{emoji-extension-gRKnbW8G.d.ts → emoji-labels-YwOms7ZJ.d.cts} +2 -15
- package/dist/{emoji-extension-C3o_Y5uC.d.cts → emoji-labels-YwOms7ZJ.d.ts} +2 -15
- package/dist/emoji.cjs +10 -9
- package/dist/emoji.d.cts +4 -3
- package/dist/emoji.d.ts +4 -3
- package/dist/emoji.js +7 -6
- package/dist/engine.cjs +58 -58
- package/dist/engine.d.cts +8 -7
- package/dist/engine.d.ts +8 -7
- package/dist/engine.js +3 -3
- package/dist/find-extension-BfruAPLi.d.cts +15 -0
- package/dist/find-extension-DmK9_N81.d.ts +15 -0
- package/dist/{find-extension-B_Ctrs6T.d.ts → find-labels-C4vs8Qe9.d.cts} +2 -14
- package/dist/{find-extension-BGGsJMu4.d.cts → find-labels-C4vs8Qe9.d.ts} +2 -14
- package/dist/find.cjs +11 -10
- package/dist/find.d.cts +2 -1
- package/dist/find.d.ts +2 -1
- package/dist/find.js +7 -6
- package/dist/headless.cjs +69 -89
- package/dist/headless.d.cts +21 -28
- package/dist/headless.d.ts +21 -28
- package/dist/headless.js +4 -4
- package/dist/highlight.cjs +7 -6
- package/dist/highlight.js +6 -5
- package/dist/highlight.js.map +1 -1
- package/dist/{index-CsG7OQoq.d.cts → index-3fYvwqUZ.d.cts} +1 -1
- package/dist/{index-h1llgZM-.d.ts → index-CgxnzCO5.d.ts} +1 -1
- package/dist/index.cjs +82 -101
- package/dist/index.d.cts +18 -185
- package/dist/index.d.ts +18 -185
- package/dist/index.js +6 -5
- package/dist/labels-BhRJYo46.d.ts +176 -0
- package/dist/labels-CiCxj2jP.d.cts +176 -0
- package/dist/locale-ar.cjs +565 -0
- package/dist/locale-ar.d.cts +63 -0
- package/dist/locale-ar.d.ts +63 -0
- package/dist/locale-ar.js +551 -0
- package/dist/locale-ar.js.map +1 -0
- package/dist/locale-de.cjs +510 -0
- package/dist/locale-de.d.cts +63 -0
- package/dist/locale-de.d.ts +63 -0
- package/dist/locale-de.js +496 -0
- package/dist/locale-de.js.map +1 -0
- package/dist/locale-es.cjs +510 -0
- package/dist/locale-es.d.cts +63 -0
- package/dist/locale-es.d.ts +63 -0
- package/dist/locale-es.js +496 -0
- package/dist/locale-es.js.map +1 -0
- package/dist/locale-fr.cjs +510 -0
- package/dist/locale-fr.d.cts +63 -0
- package/dist/locale-fr.d.ts +63 -0
- package/dist/locale-fr.js +496 -0
- package/dist/locale-fr.js.map +1 -0
- package/dist/locale-ja.cjs +505 -0
- package/dist/locale-ja.d.cts +63 -0
- package/dist/locale-ja.d.ts +63 -0
- package/dist/locale-ja.js +491 -0
- package/dist/locale-ja.js.map +1 -0
- package/dist/locale-pt.cjs +511 -0
- package/dist/locale-pt.d.cts +63 -0
- package/dist/locale-pt.d.ts +63 -0
- package/dist/locale-pt.js +497 -0
- package/dist/locale-pt.js.map +1 -0
- package/dist/locale-zh.cjs +505 -0
- package/dist/locale-zh.d.cts +63 -0
- package/dist/locale-zh.d.ts +63 -0
- package/dist/locale-zh.js +491 -0
- package/dist/locale-zh.js.map +1 -0
- package/dist/math-labels-DOf5KFxp.d.cts +24 -0
- package/dist/math-labels-DOf5KFxp.d.ts +24 -0
- package/dist/math.cjs +11 -10
- package/dist/math.d.cts +4 -24
- package/dist/math.d.ts +4 -24
- package/dist/math.js +9 -8
- package/dist/mention-labels-DIQy8LRT.d.cts +15 -0
- package/dist/mention-labels-DIQy8LRT.d.ts +15 -0
- package/dist/mention.cjs +11 -10
- package/dist/mention.d.cts +4 -15
- package/dist/mention.d.ts +4 -15
- package/dist/mention.js +9 -8
- package/dist/{view-controller-p-2x3J7Y.d.ts → node-reveal-BnFcnHhz.d.ts} +14 -14
- package/dist/{view-controller-BfVSNZYZ.d.cts → node-reveal-DY6bimv3.d.cts} +14 -14
- package/dist/palette-BrX-hEd-.d.cts +4 -0
- package/dist/palette-BrX-hEd-.d.ts +4 -0
- package/dist/presence-labels-DXVJLifl.d.cts +15 -0
- package/dist/presence-labels-DXVJLifl.d.ts +15 -0
- package/dist/presence.cjs +40 -42
- package/dist/presence.d.cts +4 -15
- package/dist/presence.d.ts +4 -15
- package/dist/presence.js +9 -11
- package/dist/presence.js.map +1 -1
- package/dist/source-labels-CeQDXsYZ.d.cts +9 -0
- package/dist/source-labels-CeQDXsYZ.d.ts +9 -0
- package/dist/source.cjs +11 -14
- package/dist/source.d.cts +5 -10
- package/dist/source.d.ts +5 -10
- package/dist/source.js +7 -10
- package/dist/source.js.map +1 -1
- package/dist/{stats-extension-oD6D1cYy.d.ts → stats-extension-D5HySF0a.d.cts} +4 -16
- package/dist/{stats-extension-XqOTvRaq.d.cts → stats-extension-Dmw0Ujxe.d.ts} +4 -16
- package/dist/stats-labels-W8gep51s.d.cts +15 -0
- package/dist/stats-labels-W8gep51s.d.ts +15 -0
- package/dist/stats.cjs +11 -10
- package/dist/stats.d.cts +3 -2
- package/dist/stats.d.ts +3 -2
- package/dist/stats.js +8 -7
- package/dist/styles.css +2 -2
- package/dist/table-extension-7LkLNK6Q.d.cts +15 -0
- package/dist/table-extension-DEpV0DnP.d.ts +15 -0
- package/dist/{table-extension-v6VB59bF.d.ts → table-labels-Dc-MzU3j.d.cts} +2 -14
- package/dist/{table-extension-BP47hHoz.d.cts → table-labels-Dc-MzU3j.d.ts} +2 -14
- package/dist/table.cjs +26 -25
- package/dist/table.d.cts +2 -1
- package/dist/table.d.ts +2 -1
- package/dist/table.js +7 -6
- package/dist/{to-html-1oD-CDle.d.cts → to-html-C19PbIzh.d.cts} +1 -0
- package/dist/{to-html-CLRBCX0I.d.ts → to-html-CogwrQer.d.ts} +1 -0
- package/dist/{to-markdown-CFPMbbiX.d.cts → to-markdown-C2w7Dzg8.d.cts} +1 -0
- package/dist/{to-markdown-BVOzhgVM.d.ts → to-markdown-DC1EUye5.d.ts} +1 -0
- package/dist/toc-extension-Dvh37bWQ.d.cts +15 -0
- package/dist/toc-extension-SVckrFmb.d.ts +15 -0
- package/dist/toc-labels-B2apPfXG.d.cts +14 -0
- package/dist/toc-labels-B2apPfXG.d.ts +14 -0
- package/dist/toc.cjs +10 -9
- package/dist/toc.d.cts +3 -2
- package/dist/toc.d.ts +3 -2
- package/dist/toc.js +7 -6
- package/dist/{types-DXF9p4qV.d.cts → types-Bzhq5AXj.d.cts} +1 -0
- package/dist/{types-BjLcmV00.d.ts → types-DMuuDBVh.d.ts} +1 -0
- package/dist/view.cjs +4 -4
- package/dist/view.js +2 -2
- package/dist/yjs.cjs +121 -121
- package/dist/yjs.d.cts +2 -2
- package/dist/yjs.d.ts +2 -2
- package/dist/yjs.js +5 -5
- package/package.json +71 -1
- package/dist/chunk-5JEQZIRI.js.map +0 -1
- package/dist/chunk-7GU25Z6L.js.map +0 -1
- package/dist/chunk-BJTOLCRR.js.map +0 -1
- package/dist/chunk-HSLOPJVT.js.map +0 -1
- package/dist/chunk-IJKGF6SC.js.map +0 -1
- package/dist/chunk-MNA7MBCH.js.map +0 -1
- package/dist/chunk-OJ4O6HWC.js.map +0 -1
- package/dist/chunk-PLUMKN4B.js.map +0 -1
- package/dist/chunk-PWUFFHAQ.js.map +0 -1
- package/dist/chunk-RQXJKJ5S.js.map +0 -1
- package/dist/chunk-UZS3TW75.js.map +0 -1
- package/dist/chunk-XFEDJEJF.js.map +0 -1
- package/dist/toc-extension-CI6jNOYl.d.cts +0 -26
- package/dist/toc-extension-CTHWjNJC.d.ts +0 -26
- /package/dist/{chunk-WZA5S5EJ.cjs → chunk-I7X7B3WD.cjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,118 +1,99 @@
|
|
|
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
|
+
require('./chunk-ZWTIRGY5.cjs');
|
|
6
7
|
var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
9
|
+
var chunkDJU25PFC_cjs = require('./chunk-DJU25PFC.cjs');
|
|
10
|
+
var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
Object.defineProperty(exports, "BlockCanvas", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkCJVJNMOB_cjs.BlockCanvas; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "FilePickerButton", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkCJVJNMOB_cjs.FilePickerButton; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "QuoinProvider", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCJVJNMOB_cjs.QuoinProvider; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "UploadField", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkCJVJNMOB_cjs.UploadField; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "coreBlocks", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkCJVJNMOB_cjs.coreBlocks; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "englishLabels", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkCJVJNMOB_cjs.englishLabels; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "formatShortcut", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkCJVJNMOB_cjs.formatShortcut; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "resolveLabels", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkCJVJNMOB_cjs.resolveLabels; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "useAutosave", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkCJVJNMOB_cjs.useAutosave; }
|
|
48
49
|
});
|
|
49
50
|
Object.defineProperty(exports, "useLabels", {
|
|
50
51
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkCJVJNMOB_cjs.useLabels; }
|
|
52
53
|
});
|
|
53
54
|
Object.defineProperty(exports, "useQuoin", {
|
|
54
55
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "BlockShell", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return chunkQJ34MOFV_cjs.BlockShell; }
|
|
56
|
+
get: function () { return chunkCJVJNMOB_cjs.useQuoin; }
|
|
60
57
|
});
|
|
61
58
|
Object.defineProperty(exports, "EditableRegion", {
|
|
62
59
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkZ6LAARPB_cjs.EditableRegion; }
|
|
64
61
|
});
|
|
65
62
|
Object.defineProperty(exports, "EditorView", {
|
|
66
63
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "SelectionSink", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () { return chunkQJ34MOFV_cjs.SelectionSink; }
|
|
64
|
+
get: function () { return chunkZ6LAARPB_cjs.EditorView; }
|
|
72
65
|
});
|
|
73
66
|
Object.defineProperty(exports, "ViewController", {
|
|
74
67
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "VoidBlockFallback", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () { return chunkQJ34MOFV_cjs.VoidBlockFallback; }
|
|
68
|
+
get: function () { return chunkZ6LAARPB_cjs.ViewController; }
|
|
80
69
|
});
|
|
81
70
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
82
71
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(exports, "defaultRenderers", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function () { return chunkQJ34MOFV_cjs.defaultRenderers; }
|
|
72
|
+
get: function () { return chunkZ6LAARPB_cjs.caretFromPoint; }
|
|
88
73
|
});
|
|
89
74
|
Object.defineProperty(exports, "domMapOf", {
|
|
90
75
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkZ6LAARPB_cjs.domMapOf; }
|
|
92
77
|
});
|
|
93
78
|
Object.defineProperty(exports, "hostKey", {
|
|
94
79
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(exports, "isCrossSelection", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function () { return chunkQJ34MOFV_cjs.isCrossSelection; }
|
|
80
|
+
get: function () { return chunkZ6LAARPB_cjs.hostKey; }
|
|
100
81
|
});
|
|
101
82
|
Object.defineProperty(exports, "renderInline", {
|
|
102
83
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkZ6LAARPB_cjs.renderInline; }
|
|
104
85
|
});
|
|
105
86
|
Object.defineProperty(exports, "useEditorState", {
|
|
106
87
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkZ6LAARPB_cjs.useEditorState; }
|
|
108
89
|
});
|
|
109
90
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
110
91
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkZ6LAARPB_cjs.useQuoinEditor; }
|
|
112
93
|
});
|
|
113
94
|
Object.defineProperty(exports, "useViewController", {
|
|
114
95
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkZ6LAARPB_cjs.useViewController; }
|
|
116
97
|
});
|
|
117
98
|
Object.defineProperty(exports, "blockByType", {
|
|
118
99
|
enumerable: true,
|
|
@@ -128,221 +109,221 @@ Object.defineProperty(exports, "paletteBlocks", {
|
|
|
128
109
|
});
|
|
129
110
|
Object.defineProperty(exports, "Transaction", {
|
|
130
111
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkFK7EBZPX_cjs.Transaction; }
|
|
132
113
|
});
|
|
133
114
|
Object.defineProperty(exports, "addMarkStep", {
|
|
134
115
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkFK7EBZPX_cjs.addMarkStep; }
|
|
136
117
|
});
|
|
137
118
|
Object.defineProperty(exports, "applyTransaction", {
|
|
138
119
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkFK7EBZPX_cjs.applyTransaction; }
|
|
140
121
|
});
|
|
141
122
|
Object.defineProperty(exports, "blockInputRules", {
|
|
142
123
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkFK7EBZPX_cjs.blockInputRules; }
|
|
144
125
|
});
|
|
145
126
|
Object.defineProperty(exports, "blockRangeSelection", {
|
|
146
127
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkFK7EBZPX_cjs.blockRangeSelection; }
|
|
148
129
|
});
|
|
149
130
|
Object.defineProperty(exports, "coreExtensions", {
|
|
150
131
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkFK7EBZPX_cjs.coreExtensions; }
|
|
152
133
|
});
|
|
153
134
|
Object.defineProperty(exports, "countDoc", {
|
|
154
135
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkFK7EBZPX_cjs.countDoc; }
|
|
156
137
|
});
|
|
157
138
|
Object.defineProperty(exports, "countText", {
|
|
158
139
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkFK7EBZPX_cjs.countText; }
|
|
160
141
|
});
|
|
161
142
|
Object.defineProperty(exports, "createEditor", {
|
|
162
143
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkFK7EBZPX_cjs.createEditor; }
|
|
164
145
|
});
|
|
165
146
|
Object.defineProperty(exports, "createPluginKey", {
|
|
166
147
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkFK7EBZPX_cjs.createPluginKey; }
|
|
168
149
|
});
|
|
169
150
|
Object.defineProperty(exports, "createState", {
|
|
170
151
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkFK7EBZPX_cjs.createState; }
|
|
172
153
|
});
|
|
173
154
|
Object.defineProperty(exports, "defineExtension", {
|
|
174
155
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkFK7EBZPX_cjs.defineExtension; }
|
|
176
157
|
});
|
|
177
158
|
Object.defineProperty(exports, "fromHTML", {
|
|
178
159
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkFK7EBZPX_cjs.fromHTML; }
|
|
180
161
|
});
|
|
181
162
|
Object.defineProperty(exports, "getPluginState", {
|
|
182
163
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkFK7EBZPX_cjs.getPluginState; }
|
|
184
165
|
});
|
|
185
166
|
Object.defineProperty(exports, "insertBlockAfter", {
|
|
186
167
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkFK7EBZPX_cjs.insertBlockAfter; }
|
|
188
169
|
});
|
|
189
170
|
Object.defineProperty(exports, "insertBlocksStep", {
|
|
190
171
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkFK7EBZPX_cjs.insertBlocksStep; }
|
|
192
173
|
});
|
|
193
174
|
Object.defineProperty(exports, "insertText", {
|
|
194
175
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkFK7EBZPX_cjs.insertText; }
|
|
196
177
|
});
|
|
197
178
|
Object.defineProperty(exports, "insertTextWithRules", {
|
|
198
179
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkFK7EBZPX_cjs.insertTextWithRules; }
|
|
200
181
|
});
|
|
201
182
|
Object.defineProperty(exports, "joinBlocksStep", {
|
|
202
183
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkFK7EBZPX_cjs.joinBlocksStep; }
|
|
204
185
|
});
|
|
205
186
|
Object.defineProperty(exports, "keyName", {
|
|
206
187
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkFK7EBZPX_cjs.keyName; }
|
|
208
189
|
});
|
|
209
190
|
Object.defineProperty(exports, "markInputRules", {
|
|
210
191
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkFK7EBZPX_cjs.markInputRules; }
|
|
212
193
|
});
|
|
213
194
|
Object.defineProperty(exports, "moveBlocksStep", {
|
|
214
195
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkFK7EBZPX_cjs.moveBlocksStep; }
|
|
216
197
|
});
|
|
217
198
|
Object.defineProperty(exports, "nodeSelection", {
|
|
218
199
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkFK7EBZPX_cjs.nodeSelection; }
|
|
220
201
|
});
|
|
221
202
|
Object.defineProperty(exports, "normalizeKey", {
|
|
222
203
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkFK7EBZPX_cjs.normalizeKey; }
|
|
224
205
|
});
|
|
225
206
|
Object.defineProperty(exports, "redo", {
|
|
226
207
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkFK7EBZPX_cjs.redo; }
|
|
228
209
|
});
|
|
229
210
|
Object.defineProperty(exports, "removeBlocksStep", {
|
|
230
211
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkFK7EBZPX_cjs.removeBlocksStep; }
|
|
232
213
|
});
|
|
233
214
|
Object.defineProperty(exports, "removeMarkStep", {
|
|
234
215
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkFK7EBZPX_cjs.removeMarkStep; }
|
|
236
217
|
});
|
|
237
218
|
Object.defineProperty(exports, "replaceBlockStep", {
|
|
238
219
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkFK7EBZPX_cjs.replaceBlockStep; }
|
|
240
221
|
});
|
|
241
222
|
Object.defineProperty(exports, "replaceDocStep", {
|
|
242
223
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkFK7EBZPX_cjs.replaceDocStep; }
|
|
244
225
|
});
|
|
245
226
|
Object.defineProperty(exports, "replaceInlineStep", {
|
|
246
227
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkFK7EBZPX_cjs.replaceInlineStep; }
|
|
248
229
|
});
|
|
249
230
|
Object.defineProperty(exports, "setAttrsStep", {
|
|
250
231
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkFK7EBZPX_cjs.setAttrsStep; }
|
|
252
233
|
});
|
|
253
234
|
Object.defineProperty(exports, "setBlockType", {
|
|
254
235
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkFK7EBZPX_cjs.setBlockType; }
|
|
256
237
|
});
|
|
257
238
|
Object.defineProperty(exports, "setIndentStep", {
|
|
258
239
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkFK7EBZPX_cjs.setIndentStep; }
|
|
260
241
|
});
|
|
261
242
|
Object.defineProperty(exports, "splitBlockStep", {
|
|
262
243
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkFK7EBZPX_cjs.splitBlockStep; }
|
|
264
245
|
});
|
|
265
246
|
Object.defineProperty(exports, "stepFromJSON", {
|
|
266
247
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkFK7EBZPX_cjs.stepFromJSON; }
|
|
268
249
|
});
|
|
269
250
|
Object.defineProperty(exports, "textSelection", {
|
|
270
251
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkFK7EBZPX_cjs.textSelection; }
|
|
272
253
|
});
|
|
273
254
|
Object.defineProperty(exports, "toHTML", {
|
|
274
255
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkFK7EBZPX_cjs.toHTML; }
|
|
276
257
|
});
|
|
277
258
|
Object.defineProperty(exports, "toMarkdown", {
|
|
278
259
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkFK7EBZPX_cjs.toMarkdown; }
|
|
280
261
|
});
|
|
281
262
|
Object.defineProperty(exports, "toPlainText", {
|
|
282
263
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkFK7EBZPX_cjs.toPlainText; }
|
|
284
265
|
});
|
|
285
266
|
Object.defineProperty(exports, "toggleMark", {
|
|
286
267
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkFK7EBZPX_cjs.toggleMark; }
|
|
288
269
|
});
|
|
289
270
|
Object.defineProperty(exports, "typographyRules", {
|
|
290
271
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkFK7EBZPX_cjs.typographyRules; }
|
|
292
273
|
});
|
|
293
274
|
Object.defineProperty(exports, "undo", {
|
|
294
275
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkFK7EBZPX_cjs.undo; }
|
|
296
277
|
});
|
|
297
278
|
Object.defineProperty(exports, "diffBlocks", {
|
|
298
279
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkDJU25PFC_cjs.diffBlocks; }
|
|
300
281
|
});
|
|
301
282
|
Object.defineProperty(exports, "diffInline", {
|
|
302
283
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkDJU25PFC_cjs.diffInline; }
|
|
304
285
|
});
|
|
305
286
|
Object.defineProperty(exports, "PALETTE", {
|
|
306
287
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkI7X7B3WD_cjs.PALETTE; }
|
|
308
289
|
});
|
|
309
290
|
Object.defineProperty(exports, "atom", {
|
|
310
291
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkI7X7B3WD_cjs.atom; }
|
|
312
293
|
});
|
|
313
294
|
Object.defineProperty(exports, "coreBlockSpecs", {
|
|
314
295
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkI7X7B3WD_cjs.coreBlockSpecs; }
|
|
316
297
|
});
|
|
317
298
|
Object.defineProperty(exports, "createBlockCodec", {
|
|
318
299
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkI7X7B3WD_cjs.createBlockCodec; }
|
|
320
301
|
});
|
|
321
302
|
Object.defineProperty(exports, "createSchema", {
|
|
322
303
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkI7X7B3WD_cjs.createSchema; }
|
|
324
305
|
});
|
|
325
306
|
Object.defineProperty(exports, "fromMarkdown", {
|
|
326
307
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkI7X7B3WD_cjs.fromMarkdown; }
|
|
328
309
|
});
|
|
329
310
|
Object.defineProperty(exports, "normalizeInline", {
|
|
330
311
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkI7X7B3WD_cjs.normalizeInline; }
|
|
332
313
|
});
|
|
333
314
|
Object.defineProperty(exports, "parseInline", {
|
|
334
315
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkI7X7B3WD_cjs.parseInline; }
|
|
336
317
|
});
|
|
337
318
|
Object.defineProperty(exports, "sanitizeHref", {
|
|
338
319
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkI7X7B3WD_cjs.sanitizeHref; }
|
|
340
321
|
});
|
|
341
322
|
Object.defineProperty(exports, "serializeInline", {
|
|
342
323
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkI7X7B3WD_cjs.serializeInline; }
|
|
344
325
|
});
|
|
345
326
|
Object.defineProperty(exports, "text", {
|
|
346
327
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkI7X7B3WD_cjs.text; }
|
|
348
329
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -4,192 +4,20 @@ import { C as CodeHighlighter } from './code-highlighter-BQDxhRrv.cjs';
|
|
|
4
4
|
export { a as CodeToken } from './code-highlighter-BQDxhRrv.cjs';
|
|
5
5
|
import { Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.cjs';
|
|
6
6
|
export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, k as EngineBlock, E as EngineDoc, I as Inline, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, S as Schema, b as Selection, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.cjs';
|
|
7
|
-
import { E as Extension, a as Editor, c as EditorState, b as Command } from './types-
|
|
8
|
-
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, D as Decoration, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, T as Transaction, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-
|
|
9
|
-
import {
|
|
10
|
-
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';
|
|
7
|
+
import { E as Extension, a as Editor, c as EditorState, b as Command } from './types-Bzhq5AXj.cjs';
|
|
8
|
+
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, D as Decoration, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, T as Transaction, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-Bzhq5AXj.cjs';
|
|
9
|
+
import { Q as QuoinLabels, S as SlashGroup } from './labels-CiCxj2jP.cjs';
|
|
11
10
|
import { A as AnyBlockDefinition, U as UploadFn, a as UploadResult } from './registry-DZ8LIGt5.cjs';
|
|
12
11
|
export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e as blockByType, d as defineBlock, p as paletteBlocks } from './registry-DZ8LIGt5.cjs';
|
|
13
|
-
import { V as ViewController, R as RenderOptions } from './
|
|
14
|
-
export { A as AtomRenderer, K as KeyInterceptor,
|
|
12
|
+
import { V as ViewController, R as RenderOptions } from './node-reveal-DY6bimv3.cjs';
|
|
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';
|
|
15
14
|
import { BlockRenderer } from './headless.cjs';
|
|
16
|
-
export { BlockLabel, BlockPlaceholder, BlockRenderProps,
|
|
17
|
-
export {
|
|
15
|
+
export { BlockLabel, BlockPlaceholder, BlockRenderProps, CaretPoint, DomMap, DomPoint, EditableRegion, EditableRegionProps, EditorView, EditorViewProps, UseQuoinEditorOptions, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController } from './headless.cjs';
|
|
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
|
+
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-C2w7Dzg8.cjs';
|
|
18
|
+
export { P as PALETTE } from './palette-BrX-hEd-.cjs';
|
|
18
19
|
export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.cjs';
|
|
19
|
-
export { H as HTMLOptions, t as toHTML } from './to-html-
|
|
20
|
-
|
|
21
|
-
type PaletteName = (typeof PALETTE)[number];
|
|
22
|
-
|
|
23
|
-
type SlashGroup = 'basic' | 'lists' | 'media' | 'advanced' | 'embeds' | 'ai' | 'custom';
|
|
24
|
-
type CalloutTone = 'info' | 'tip' | 'success' | 'warning' | 'danger';
|
|
25
|
-
/** The block types the menus name. Headings are named by `heading`. */
|
|
26
|
-
type BlockName = 'text' | 'bulletedList' | 'numberedList' | 'todoList' | 'quote' | 'callout' | 'toggle' | 'code' | 'divider' | 'image' | 'file';
|
|
27
|
-
/** The slash commands that insert a block, which the menu explains under their names. */
|
|
28
|
-
type SlashBlockCommand = BlockName | 'heading1' | 'heading2' | 'heading3';
|
|
29
|
-
type ModifierKey = 'ctrl' | 'alt' | 'shift';
|
|
30
|
-
/** The keys a shortcut writes out by name rather than by the character they type. */
|
|
31
|
-
type NamedKey = 'escape' | 'tab' | 'enter' | 'space' | 'backspace' | 'delete' | 'f10';
|
|
32
|
-
type ShortcutGroupName = 'text' | 'blocks' | 'selection' | 'navigation' | 'menus';
|
|
33
|
-
/** The rows of the keyboard shortcuts dialog that no other label names. */
|
|
34
|
-
type ShortcutName = 'lineBreak' | 'flipBlock' | 'selectBlock' | 'openBlockEditor' | 'leaveBlockEditor' | 'selectAll' | 'extendUp' | 'extendDown' | 'lineUp' | 'lineDown' | 'leaveEditor' | 'blockMenu' | 'closeMenu' | 'splitBlock' | 'joinAbove' | 'joinBelow' | 'previousBlockEnd' | 'nextBlockStart';
|
|
35
|
-
/** Every string the editor shows or speaks. A label that depends on a value is a function of it. */
|
|
36
|
-
type QuoinLabels = {
|
|
37
|
-
document: string;
|
|
38
|
-
editorHint: string;
|
|
39
|
-
paragraph: string;
|
|
40
|
-
heading: (level: number) => string;
|
|
41
|
-
bulletItem: string;
|
|
42
|
-
numberedItem: (n: number) => string;
|
|
43
|
-
task: string;
|
|
44
|
-
quote: string;
|
|
45
|
-
/** The name of a callout's text, given the name of its tone from `calloutTones`, which it takes as written. */
|
|
46
|
-
callout: (tone: string) => string;
|
|
47
|
-
/** The name of each tone, on its chip and in its menus as inside the name of a callout's text. */
|
|
48
|
-
calloutTones: Record<CalloutTone, string>;
|
|
49
|
-
calloutIcon: string;
|
|
50
|
-
/** The name of the button that shows a callout's tone and opens the menu of tones, given the tone's name. */
|
|
51
|
-
calloutToneMenu: (tone: string) => string;
|
|
52
|
-
toggle: string;
|
|
53
|
-
/** The name of a toggle's chevron, given how many blocks the closed toggle hides, 0 while it is open. */
|
|
54
|
-
toggleButton: (hidden: number) => string;
|
|
55
|
-
placeholderEmpty: string;
|
|
56
|
-
placeholderHeading: (level: number) => string;
|
|
57
|
-
placeholderList: string;
|
|
58
|
-
placeholderQuote: string;
|
|
59
|
-
blockMenu: (type: string) => string;
|
|
60
|
-
blockNames: Record<BlockName, string>;
|
|
61
|
-
turnInto: string;
|
|
62
|
-
color: string;
|
|
63
|
-
textColor: string;
|
|
64
|
-
backgroundColor: string;
|
|
65
|
-
/** The submenus of a callout's block menu that set its tone and its icon. */
|
|
66
|
-
tone: string;
|
|
67
|
-
icon: string;
|
|
68
|
-
duplicate: string;
|
|
69
|
-
copy: string;
|
|
70
|
-
copyLink: string;
|
|
71
|
-
copied: string;
|
|
72
|
-
moveUp: string;
|
|
73
|
-
moveDown: string;
|
|
74
|
-
delete: string;
|
|
75
|
-
askAi: string;
|
|
76
|
-
addBelow: string;
|
|
77
|
-
dragHandle: string;
|
|
78
|
-
slashMenu: string;
|
|
79
|
-
noResults: string;
|
|
80
|
-
/** What the open slash menu says once its list settles, given how many commands match. */
|
|
81
|
-
resultCount: (n: number) => string;
|
|
82
|
-
slashDescriptions: Record<SlashBlockCommand, string>;
|
|
83
|
-
groups: Record<SlashGroup, string>;
|
|
84
|
-
bold: string;
|
|
85
|
-
italic: string;
|
|
86
|
-
underline: string;
|
|
87
|
-
strike: string;
|
|
88
|
-
code: string;
|
|
89
|
-
link: string;
|
|
90
|
-
highlight: string;
|
|
91
|
-
align: string;
|
|
92
|
-
alignLeft: string;
|
|
93
|
-
alignCenter: string;
|
|
94
|
-
alignRight: string;
|
|
95
|
-
alignJustify: string;
|
|
96
|
-
subscript: string;
|
|
97
|
-
superscript: string;
|
|
98
|
-
comment: string;
|
|
99
|
-
linkUrl: string;
|
|
100
|
-
linkApply: string;
|
|
101
|
-
linkRemove: string;
|
|
102
|
-
linkOpen: string;
|
|
103
|
-
linkEdit: string;
|
|
104
|
-
invalidLink: string;
|
|
105
|
-
colors: Record<PaletteName, string>;
|
|
106
|
-
blockMoved: (position: number, total: number) => string;
|
|
107
|
-
blockInserted: (position: number, total: number) => string;
|
|
108
|
-
blockDeleted: (n: number) => string;
|
|
109
|
-
blocksSelected: (n: number) => string;
|
|
110
|
-
/** How to bring deleted blocks back, given the platform's undo shortcut. */
|
|
111
|
-
undoHint: (shortcut: string) => string;
|
|
112
|
-
shortcuts: string;
|
|
113
|
-
shortcutGroupNames: Record<ShortcutGroupName, string>;
|
|
114
|
-
shortcutNames: Record<ShortcutName, string>;
|
|
115
|
-
/** Two keys pressed one after the other. */
|
|
116
|
-
keySequence: (first: string, then: string) => string;
|
|
117
|
-
/** Two shortcuts that do the same thing. */
|
|
118
|
-
keyAlternative: (first: string, other: string) => string;
|
|
119
|
-
/** The modifier keys a shortcut hint names away from a Mac, where it draws their symbols instead. */
|
|
120
|
-
keyNames: Record<ModifierKey, string>;
|
|
121
|
-
namedKeys: Record<NamedKey, string>;
|
|
122
|
-
formattingToolbar: string;
|
|
123
|
-
mobileToolbar: string;
|
|
124
|
-
indent: string;
|
|
125
|
-
outdent: string;
|
|
126
|
-
undo: string;
|
|
127
|
-
redo: string;
|
|
128
|
-
close: string;
|
|
129
|
-
selectedContent: string;
|
|
130
|
-
editBlock: (label: string) => string;
|
|
131
|
-
unsupportedBlock: string;
|
|
132
|
-
/** Optional so a translation written for 1.0 still compiles; English where it is missing. */
|
|
133
|
-
blockError?: string;
|
|
134
|
-
uploading: string;
|
|
135
|
-
uploaded: (name: string) => string;
|
|
136
|
-
/** What an upload field shows when the host's upload fails without a message of its own. */
|
|
137
|
-
uploadFailed: string;
|
|
138
|
-
/** What an upload field shows in place of working when the canvas was given no upload function. */
|
|
139
|
-
uploadsUnavailable: string;
|
|
140
|
-
/** An empty image block: its upload button, the link it can embed instead and what can be dropped or pasted on it. */
|
|
141
|
-
uploadImage: string;
|
|
142
|
-
embedLink: string;
|
|
143
|
-
imageLink: string;
|
|
144
|
-
dropImage: string;
|
|
145
|
-
/** An image block: its caption, its toolbar, the handles of its width with their value, and the toolbar's buttons. */
|
|
146
|
-
imageCaption: string;
|
|
147
|
-
addCaption: string;
|
|
148
|
-
imageTools: string;
|
|
149
|
-
resizeFromLeft: string;
|
|
150
|
-
resizeFromRight: string;
|
|
151
|
-
widthValue: (percent: number) => string;
|
|
152
|
-
replaceImage: string;
|
|
153
|
-
download: string;
|
|
154
|
-
/** The alt text of an image: its field, what the field asks for, its button, and the name of an image without one. */
|
|
155
|
-
altText: string;
|
|
156
|
-
altTextHint: string;
|
|
157
|
-
save: string;
|
|
158
|
-
imageNoAlt: string;
|
|
159
|
-
/**
|
|
160
|
-
* The checkbox of the alt text popover that marks an image as deliberately without a description, the visible text of
|
|
161
|
-
* the badge an editable canvas draws over an image that has neither, and the badge's name, which starts with that
|
|
162
|
-
* visible text and then says what it does. A translation that sets `noAltBadge` should set `addAltText` too; with `noAltBadge` alone the
|
|
163
|
-
* badge is named by its visible text. Optional like `blockError`.
|
|
164
|
-
*/
|
|
165
|
-
decorativeImage?: string;
|
|
166
|
-
noAltBadge?: string;
|
|
167
|
-
addAltText?: string;
|
|
168
|
-
/** An empty file block: its upload button and what can be dropped or pasted on it. */
|
|
169
|
-
uploadFile: string;
|
|
170
|
-
dropFile: string;
|
|
171
|
-
/** A file block: its toolbar and the toolbar's replace button. */
|
|
172
|
-
fileTools: string;
|
|
173
|
-
replaceFile: string;
|
|
174
|
-
/** The name of a file's download link, given the file's name. It contains `download`, the link's visible text. */
|
|
175
|
-
downloadFile: (name: string) => string;
|
|
176
|
-
/** The size of a file, given in bytes. */
|
|
177
|
-
fileSize: (bytes: number) => string;
|
|
178
|
-
/** The name of a file block selected as a whole, given the file's name. */
|
|
179
|
-
fileBlockName: (name: string) => string;
|
|
180
|
-
/** A code block: its code, its language, the name of a code in no language, and its copy button. */
|
|
181
|
-
codeText: string;
|
|
182
|
-
/** The name of a code block selected as a whole, given the name of its language. */
|
|
183
|
-
codeBlockName: (language: string) => string;
|
|
184
|
-
codeLanguage: string;
|
|
185
|
-
plainText: string;
|
|
186
|
-
copyCode: string;
|
|
187
|
-
/** What the preview of a block without content says. */
|
|
188
|
-
emptyImage: string;
|
|
189
|
-
emptyFile: string;
|
|
190
|
-
emptyMarkdown: string;
|
|
191
|
-
emptyCallout: string;
|
|
192
|
-
};
|
|
20
|
+
export { H as HTMLOptions, t as toHTML } from './to-html-C19PbIzh.cjs';
|
|
193
21
|
|
|
194
22
|
type BlockCanvasProps = {
|
|
195
23
|
/**
|
|
@@ -250,6 +78,10 @@ type QuoinEditorHandle = {
|
|
|
250
78
|
}): string;
|
|
251
79
|
};
|
|
252
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The editor with the whole canvas UI: the slash menu, the bubble toolbar, the block menu, drag handles, the mobile
|
|
83
|
+
* tools and the shortcuts dialog. The document is controlled, `blocks` in and `onChange` out, as an input's value is.
|
|
84
|
+
*/
|
|
253
85
|
declare const BlockCanvas: react.ForwardRefExoticComponent<BlockCanvasProps & react.RefAttributes<QuoinEditorHandle>>;
|
|
254
86
|
|
|
255
87
|
/** The block types Quoin ships with. Spread them alongside your own definitions. */
|
|
@@ -372,11 +204,12 @@ declare function QuoinProvider({ value, children, }: {
|
|
|
372
204
|
/** Reads the canvas configuration. Throws outside a QuoinProvider rather than returning a silent default. */
|
|
373
205
|
declare function useQuoin(): QuoinConfig;
|
|
374
206
|
|
|
207
|
+
/** Every string the canvas shows or speaks, in English. Pass `labels` to the canvas to change any of them. */
|
|
375
208
|
declare const englishLabels: Required<QuoinLabels>;
|
|
376
209
|
|
|
377
210
|
/** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
|
|
378
211
|
* English. */
|
|
379
|
-
declare
|
|
212
|
+
declare const resolveLabels: (overrides?: Partial<QuoinLabels>) => QuoinLabels;
|
|
380
213
|
|
|
381
214
|
type BlockMenuAction = {
|
|
382
215
|
id: string;
|
|
@@ -513,5 +346,5 @@ type UseAutosaveResult = {
|
|
|
513
346
|
*/
|
|
514
347
|
declare function useAutosave<T>({ deps, build, save, debounceMs, maxBackoffMs, maxRetries, isRetryable, flushOnHide, }: UseAutosaveInput<T>): UseAutosaveResult;
|
|
515
348
|
|
|
516
|
-
export { AnyBlockDefinition, BlockCanvas, BlockRenderer, CodeHighlighter, Command, Editor, EditorState, Extension, FilePickerButton,
|
|
517
|
-
export type { AutosaveStatus, BlockCanvasProps, BlockMenuAction, CalloutBlockData, CodeBlockData, CoreBlockData, ExtensionUI, FileBlockData, FilePickerButtonProps, ImageBlockData, MarkdownBlockData, QuoinConfig, QuoinConfigInput, QuoinEditorHandle,
|
|
349
|
+
export { AnyBlockDefinition, BlockCanvas, BlockRenderer, CodeHighlighter, Command, Editor, EditorState, Extension, FilePickerButton, Pos, QuoinBlock, QuoinLabels, QuoinProvider, RenderOptions, SlashGroup, UploadField, UploadFn, UploadResult, ViewController, coreBlocks, englishLabels, formatShortcut, resolveLabels, useAutosave, useLabels, useQuoin };
|
|
350
|
+
export type { AutosaveStatus, BlockCanvasProps, BlockMenuAction, CalloutBlockData, CodeBlockData, CoreBlockData, ExtensionUI, FileBlockData, FilePickerButtonProps, ImageBlockData, MarkdownBlockData, QuoinConfig, QuoinConfigInput, QuoinEditorHandle, ShortcutPlatform, SlashItem, SuggestionRange, ToolbarItem, UploadFieldProps, UseAutosaveInput, UseAutosaveResult };
|