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/headless.cjs
CHANGED
|
@@ -1,290 +1,270 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var chunkZ6LAARPB_cjs = require('./chunk-Z6LAARPB.cjs');
|
|
5
|
+
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
6
|
+
var chunkDJU25PFC_cjs = require('./chunk-DJU25PFC.cjs');
|
|
7
|
+
var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
Object.defineProperty(exports, "BlockShell", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkQJ34MOFV_cjs.BlockShell; }
|
|
14
|
-
});
|
|
15
11
|
Object.defineProperty(exports, "EditableRegion", {
|
|
16
12
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZ6LAARPB_cjs.EditableRegion; }
|
|
18
14
|
});
|
|
19
15
|
Object.defineProperty(exports, "EditorView", {
|
|
20
16
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "SelectionSink", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkQJ34MOFV_cjs.SelectionSink; }
|
|
17
|
+
get: function () { return chunkZ6LAARPB_cjs.EditorView; }
|
|
26
18
|
});
|
|
27
19
|
Object.defineProperty(exports, "ViewController", {
|
|
28
20
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "VoidBlockFallback", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkQJ34MOFV_cjs.VoidBlockFallback; }
|
|
21
|
+
get: function () { return chunkZ6LAARPB_cjs.ViewController; }
|
|
34
22
|
});
|
|
35
23
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
36
24
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "defaultRenderers", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkQJ34MOFV_cjs.defaultRenderers; }
|
|
25
|
+
get: function () { return chunkZ6LAARPB_cjs.caretFromPoint; }
|
|
42
26
|
});
|
|
43
27
|
Object.defineProperty(exports, "domMapOf", {
|
|
44
28
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZ6LAARPB_cjs.domMapOf; }
|
|
46
30
|
});
|
|
47
31
|
Object.defineProperty(exports, "hostKey", {
|
|
48
32
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "isCrossSelection", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunkQJ34MOFV_cjs.isCrossSelection; }
|
|
33
|
+
get: function () { return chunkZ6LAARPB_cjs.hostKey; }
|
|
54
34
|
});
|
|
55
35
|
Object.defineProperty(exports, "renderInline", {
|
|
56
36
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZ6LAARPB_cjs.renderInline; }
|
|
58
38
|
});
|
|
59
39
|
Object.defineProperty(exports, "useEditorState", {
|
|
60
40
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZ6LAARPB_cjs.useEditorState; }
|
|
62
42
|
});
|
|
63
43
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
64
44
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZ6LAARPB_cjs.useQuoinEditor; }
|
|
66
46
|
});
|
|
67
47
|
Object.defineProperty(exports, "useViewController", {
|
|
68
48
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZ6LAARPB_cjs.useViewController; }
|
|
70
50
|
});
|
|
71
51
|
Object.defineProperty(exports, "Transaction", {
|
|
72
52
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkFK7EBZPX_cjs.Transaction; }
|
|
74
54
|
});
|
|
75
55
|
Object.defineProperty(exports, "addMarkStep", {
|
|
76
56
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkFK7EBZPX_cjs.addMarkStep; }
|
|
78
58
|
});
|
|
79
59
|
Object.defineProperty(exports, "applyTransaction", {
|
|
80
60
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkFK7EBZPX_cjs.applyTransaction; }
|
|
82
62
|
});
|
|
83
63
|
Object.defineProperty(exports, "blockInputRules", {
|
|
84
64
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkFK7EBZPX_cjs.blockInputRules; }
|
|
86
66
|
});
|
|
87
67
|
Object.defineProperty(exports, "blockRangeSelection", {
|
|
88
68
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkFK7EBZPX_cjs.blockRangeSelection; }
|
|
90
70
|
});
|
|
91
71
|
Object.defineProperty(exports, "coreExtensions", {
|
|
92
72
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkFK7EBZPX_cjs.coreExtensions; }
|
|
94
74
|
});
|
|
95
75
|
Object.defineProperty(exports, "countDoc", {
|
|
96
76
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkFK7EBZPX_cjs.countDoc; }
|
|
98
78
|
});
|
|
99
79
|
Object.defineProperty(exports, "countText", {
|
|
100
80
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkFK7EBZPX_cjs.countText; }
|
|
102
82
|
});
|
|
103
83
|
Object.defineProperty(exports, "createEditor", {
|
|
104
84
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkFK7EBZPX_cjs.createEditor; }
|
|
106
86
|
});
|
|
107
87
|
Object.defineProperty(exports, "createPluginKey", {
|
|
108
88
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkFK7EBZPX_cjs.createPluginKey; }
|
|
110
90
|
});
|
|
111
91
|
Object.defineProperty(exports, "createState", {
|
|
112
92
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkFK7EBZPX_cjs.createState; }
|
|
114
94
|
});
|
|
115
95
|
Object.defineProperty(exports, "defineExtension", {
|
|
116
96
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkFK7EBZPX_cjs.defineExtension; }
|
|
118
98
|
});
|
|
119
99
|
Object.defineProperty(exports, "fromHTML", {
|
|
120
100
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkFK7EBZPX_cjs.fromHTML; }
|
|
122
102
|
});
|
|
123
103
|
Object.defineProperty(exports, "getPluginState", {
|
|
124
104
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkFK7EBZPX_cjs.getPluginState; }
|
|
126
106
|
});
|
|
127
107
|
Object.defineProperty(exports, "insertBlockAfter", {
|
|
128
108
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkFK7EBZPX_cjs.insertBlockAfter; }
|
|
130
110
|
});
|
|
131
111
|
Object.defineProperty(exports, "insertBlocksStep", {
|
|
132
112
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkFK7EBZPX_cjs.insertBlocksStep; }
|
|
134
114
|
});
|
|
135
115
|
Object.defineProperty(exports, "insertText", {
|
|
136
116
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkFK7EBZPX_cjs.insertText; }
|
|
138
118
|
});
|
|
139
119
|
Object.defineProperty(exports, "insertTextWithRules", {
|
|
140
120
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkFK7EBZPX_cjs.insertTextWithRules; }
|
|
142
122
|
});
|
|
143
123
|
Object.defineProperty(exports, "joinBlocksStep", {
|
|
144
124
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkFK7EBZPX_cjs.joinBlocksStep; }
|
|
146
126
|
});
|
|
147
127
|
Object.defineProperty(exports, "keyName", {
|
|
148
128
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkFK7EBZPX_cjs.keyName; }
|
|
150
130
|
});
|
|
151
131
|
Object.defineProperty(exports, "markInputRules", {
|
|
152
132
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkFK7EBZPX_cjs.markInputRules; }
|
|
154
134
|
});
|
|
155
135
|
Object.defineProperty(exports, "moveBlocksStep", {
|
|
156
136
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkFK7EBZPX_cjs.moveBlocksStep; }
|
|
158
138
|
});
|
|
159
139
|
Object.defineProperty(exports, "nodeSelection", {
|
|
160
140
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkFK7EBZPX_cjs.nodeSelection; }
|
|
162
142
|
});
|
|
163
143
|
Object.defineProperty(exports, "normalizeKey", {
|
|
164
144
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkFK7EBZPX_cjs.normalizeKey; }
|
|
166
146
|
});
|
|
167
147
|
Object.defineProperty(exports, "redo", {
|
|
168
148
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkFK7EBZPX_cjs.redo; }
|
|
170
150
|
});
|
|
171
151
|
Object.defineProperty(exports, "removeBlocksStep", {
|
|
172
152
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkFK7EBZPX_cjs.removeBlocksStep; }
|
|
174
154
|
});
|
|
175
155
|
Object.defineProperty(exports, "removeMarkStep", {
|
|
176
156
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkFK7EBZPX_cjs.removeMarkStep; }
|
|
178
158
|
});
|
|
179
159
|
Object.defineProperty(exports, "replaceBlockStep", {
|
|
180
160
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkFK7EBZPX_cjs.replaceBlockStep; }
|
|
182
162
|
});
|
|
183
163
|
Object.defineProperty(exports, "replaceDocStep", {
|
|
184
164
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkFK7EBZPX_cjs.replaceDocStep; }
|
|
186
166
|
});
|
|
187
167
|
Object.defineProperty(exports, "replaceInlineStep", {
|
|
188
168
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkFK7EBZPX_cjs.replaceInlineStep; }
|
|
190
170
|
});
|
|
191
171
|
Object.defineProperty(exports, "setAttrsStep", {
|
|
192
172
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkFK7EBZPX_cjs.setAttrsStep; }
|
|
194
174
|
});
|
|
195
175
|
Object.defineProperty(exports, "setBlockType", {
|
|
196
176
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkFK7EBZPX_cjs.setBlockType; }
|
|
198
178
|
});
|
|
199
179
|
Object.defineProperty(exports, "setIndentStep", {
|
|
200
180
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkFK7EBZPX_cjs.setIndentStep; }
|
|
202
182
|
});
|
|
203
183
|
Object.defineProperty(exports, "splitBlockStep", {
|
|
204
184
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkFK7EBZPX_cjs.splitBlockStep; }
|
|
206
186
|
});
|
|
207
187
|
Object.defineProperty(exports, "stepFromJSON", {
|
|
208
188
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkFK7EBZPX_cjs.stepFromJSON; }
|
|
210
190
|
});
|
|
211
191
|
Object.defineProperty(exports, "textSelection", {
|
|
212
192
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkFK7EBZPX_cjs.textSelection; }
|
|
214
194
|
});
|
|
215
195
|
Object.defineProperty(exports, "toHTML", {
|
|
216
196
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkFK7EBZPX_cjs.toHTML; }
|
|
218
198
|
});
|
|
219
199
|
Object.defineProperty(exports, "toMarkdown", {
|
|
220
200
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkFK7EBZPX_cjs.toMarkdown; }
|
|
222
202
|
});
|
|
223
203
|
Object.defineProperty(exports, "toPlainText", {
|
|
224
204
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkFK7EBZPX_cjs.toPlainText; }
|
|
226
206
|
});
|
|
227
207
|
Object.defineProperty(exports, "toggleMark", {
|
|
228
208
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkFK7EBZPX_cjs.toggleMark; }
|
|
230
210
|
});
|
|
231
211
|
Object.defineProperty(exports, "typographyRules", {
|
|
232
212
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkFK7EBZPX_cjs.typographyRules; }
|
|
234
214
|
});
|
|
235
215
|
Object.defineProperty(exports, "undo", {
|
|
236
216
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkFK7EBZPX_cjs.undo; }
|
|
238
218
|
});
|
|
239
219
|
Object.defineProperty(exports, "diffBlocks", {
|
|
240
220
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkDJU25PFC_cjs.diffBlocks; }
|
|
242
222
|
});
|
|
243
223
|
Object.defineProperty(exports, "diffInline", {
|
|
244
224
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkDJU25PFC_cjs.diffInline; }
|
|
246
226
|
});
|
|
247
227
|
Object.defineProperty(exports, "PALETTE", {
|
|
248
228
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkI7X7B3WD_cjs.PALETTE; }
|
|
250
230
|
});
|
|
251
231
|
Object.defineProperty(exports, "atom", {
|
|
252
232
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkI7X7B3WD_cjs.atom; }
|
|
254
234
|
});
|
|
255
235
|
Object.defineProperty(exports, "coreBlockSpecs", {
|
|
256
236
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkI7X7B3WD_cjs.coreBlockSpecs; }
|
|
258
238
|
});
|
|
259
239
|
Object.defineProperty(exports, "createBlockCodec", {
|
|
260
240
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkI7X7B3WD_cjs.createBlockCodec; }
|
|
262
242
|
});
|
|
263
243
|
Object.defineProperty(exports, "createSchema", {
|
|
264
244
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkI7X7B3WD_cjs.createSchema; }
|
|
266
246
|
});
|
|
267
247
|
Object.defineProperty(exports, "fromMarkdown", {
|
|
268
248
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkI7X7B3WD_cjs.fromMarkdown; }
|
|
270
250
|
});
|
|
271
251
|
Object.defineProperty(exports, "normalizeInline", {
|
|
272
252
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkI7X7B3WD_cjs.normalizeInline; }
|
|
274
254
|
});
|
|
275
255
|
Object.defineProperty(exports, "parseInline", {
|
|
276
256
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkI7X7B3WD_cjs.parseInline; }
|
|
278
258
|
});
|
|
279
259
|
Object.defineProperty(exports, "sanitizeHref", {
|
|
280
260
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkI7X7B3WD_cjs.sanitizeHref; }
|
|
282
262
|
});
|
|
283
263
|
Object.defineProperty(exports, "serializeInline", {
|
|
284
264
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkI7X7B3WD_cjs.serializeInline; }
|
|
286
266
|
});
|
|
287
267
|
Object.defineProperty(exports, "text", {
|
|
288
268
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkI7X7B3WD_cjs.text; }
|
|
290
270
|
});
|
package/dist/headless.d.cts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { R as RenderOptions, V as ViewController } from './
|
|
2
|
-
export { A as AtomRenderer, K as KeyInterceptor,
|
|
3
|
-
import { I as Inline,
|
|
4
|
-
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, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.cjs';
|
|
5
|
-
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-
|
|
6
|
-
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, 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, 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-
|
|
1
|
+
import { R as RenderOptions, V as ViewController } from './node-reveal-DY6bimv3.cjs';
|
|
2
|
+
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';
|
|
3
|
+
import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.cjs';
|
|
4
|
+
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, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, 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';
|
|
5
|
+
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-Bzhq5AXj.cjs';
|
|
6
|
+
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, 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, 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';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import { ComponentType, ReactNode } from 'react';
|
|
9
|
-
export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange,
|
|
10
|
-
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-
|
|
9
|
+
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';
|
|
10
|
+
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-C2w7Dzg8.cjs';
|
|
11
|
+
export { P as PALETTE } from './palette-BrX-hEd-.cjs';
|
|
11
12
|
export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.cjs';
|
|
12
|
-
export { H as HTMLOptions, t as toHTML } from './to-html-
|
|
13
|
+
export { H as HTMLOptions, t as toHTML } from './to-html-C19PbIzh.cjs';
|
|
13
14
|
|
|
14
15
|
type DomPoint = {
|
|
15
16
|
node: Node;
|
|
@@ -30,8 +31,6 @@ type CaretPoint = {
|
|
|
30
31
|
};
|
|
31
32
|
declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
|
|
32
33
|
|
|
33
|
-
declare function isCrossSelection(selection: Selection | null): boolean;
|
|
34
|
-
|
|
35
34
|
/** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
|
|
36
35
|
type BlockLabel = (block: EngineBlock, schema: Schema) => string;
|
|
37
36
|
|
|
@@ -48,6 +47,11 @@ type UseQuoinEditorOptions = {
|
|
|
48
47
|
onFiles?: (files: File[], at: Pos | null) => void;
|
|
49
48
|
render?: RenderOptions;
|
|
50
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* The editor and the controller that binds it to the page, for a host that draws its own chrome around `EditorView`.
|
|
52
|
+
* The editor, its extensions and its render options are read once; the callbacks are read through a ref, so a new
|
|
53
|
+
* function identity on every render changes nothing.
|
|
54
|
+
*/
|
|
51
55
|
declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
|
|
52
56
|
|
|
53
57
|
/** The text an empty block shows in its main region, read again whenever the editor state changes. */
|
|
@@ -88,6 +92,10 @@ type EditorViewProps = {
|
|
|
88
92
|
/** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
|
|
89
93
|
children?: ReactNode;
|
|
90
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
|
|
97
|
+
* It keeps the element it drew for each block, so define `renderers` once rather than on every render.
|
|
98
|
+
*/
|
|
91
99
|
declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, blockErrorLabel, onBlockError, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
|
|
92
100
|
|
|
93
101
|
type EditableRegionProps = {
|
|
@@ -101,20 +109,5 @@ type EditableRegionProps = {
|
|
|
101
109
|
};
|
|
102
110
|
declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
renderers: Readonly<Record<string, BlockRenderer>>;
|
|
107
|
-
};
|
|
108
|
-
declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
|
|
109
|
-
|
|
110
|
-
type SelectionSinkProps = {
|
|
111
|
-
label?: string;
|
|
112
|
-
blockLabel?: BlockLabel;
|
|
113
|
-
};
|
|
114
|
-
declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
|
|
115
|
-
|
|
116
|
-
declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
|
|
117
|
-
declare const VoidBlockFallback: BlockRenderer;
|
|
118
|
-
|
|
119
|
-
export { BlockShell, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Selection, SelectionSink, Transaction, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
120
|
-
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
|
|
112
|
+
export { Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
113
|
+
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
|
package/dist/headless.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { R as RenderOptions, V as ViewController } from './
|
|
2
|
-
export { A as AtomRenderer, K as KeyInterceptor,
|
|
3
|
-
import { I as Inline,
|
|
4
|
-
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, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.js';
|
|
5
|
-
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-
|
|
6
|
-
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, 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, 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-
|
|
1
|
+
import { R as RenderOptions, V as ViewController } from './node-reveal-BnFcnHhz.js';
|
|
2
|
+
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';
|
|
3
|
+
import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.js';
|
|
4
|
+
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, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, 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.js';
|
|
5
|
+
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-DMuuDBVh.js';
|
|
6
|
+
export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, 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, 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-DMuuDBVh.js';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import { ComponentType, ReactNode } from 'react';
|
|
9
|
-
export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange,
|
|
10
|
-
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-
|
|
9
|
+
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';
|
|
10
|
+
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-DC1EUye5.js';
|
|
11
|
+
export { P as PALETTE } from './palette-BrX-hEd-.js';
|
|
11
12
|
export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.js';
|
|
12
|
-
export { H as HTMLOptions, t as toHTML } from './to-html-
|
|
13
|
+
export { H as HTMLOptions, t as toHTML } from './to-html-CogwrQer.js';
|
|
13
14
|
|
|
14
15
|
type DomPoint = {
|
|
15
16
|
node: Node;
|
|
@@ -30,8 +31,6 @@ type CaretPoint = {
|
|
|
30
31
|
};
|
|
31
32
|
declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
|
|
32
33
|
|
|
33
|
-
declare function isCrossSelection(selection: Selection | null): boolean;
|
|
34
|
-
|
|
35
34
|
/** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
|
|
36
35
|
type BlockLabel = (block: EngineBlock, schema: Schema) => string;
|
|
37
36
|
|
|
@@ -48,6 +47,11 @@ type UseQuoinEditorOptions = {
|
|
|
48
47
|
onFiles?: (files: File[], at: Pos | null) => void;
|
|
49
48
|
render?: RenderOptions;
|
|
50
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* The editor and the controller that binds it to the page, for a host that draws its own chrome around `EditorView`.
|
|
52
|
+
* The editor, its extensions and its render options are read once; the callbacks are read through a ref, so a new
|
|
53
|
+
* function identity on every render changes nothing.
|
|
54
|
+
*/
|
|
51
55
|
declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
|
|
52
56
|
|
|
53
57
|
/** The text an empty block shows in its main region, read again whenever the editor state changes. */
|
|
@@ -88,6 +92,10 @@ type EditorViewProps = {
|
|
|
88
92
|
/** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
|
|
89
93
|
children?: ReactNode;
|
|
90
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
|
|
97
|
+
* It keeps the element it drew for each block, so define `renderers` once rather than on every render.
|
|
98
|
+
*/
|
|
91
99
|
declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, blockErrorLabel, onBlockError, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
|
|
92
100
|
|
|
93
101
|
type EditableRegionProps = {
|
|
@@ -101,20 +109,5 @@ type EditableRegionProps = {
|
|
|
101
109
|
};
|
|
102
110
|
declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
renderers: Readonly<Record<string, BlockRenderer>>;
|
|
107
|
-
};
|
|
108
|
-
declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
|
|
109
|
-
|
|
110
|
-
type SelectionSinkProps = {
|
|
111
|
-
label?: string;
|
|
112
|
-
blockLabel?: BlockLabel;
|
|
113
|
-
};
|
|
114
|
-
declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
|
|
115
|
-
|
|
116
|
-
declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
|
|
117
|
-
declare const VoidBlockFallback: BlockRenderer;
|
|
118
|
-
|
|
119
|
-
export { BlockShell, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Selection, SelectionSink, Transaction, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
120
|
-
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
|
|
112
|
+
export { Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
113
|
+
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
|
package/dist/headless.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export {
|
|
3
|
-
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-
|
|
4
|
-
export { diffBlocks, diffInline } from './chunk-
|
|
5
|
-
export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-
|
|
2
|
+
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-NL5J77VD.js';
|
|
3
|
+
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';
|
|
4
|
+
export { diffBlocks, diffInline } from './chunk-CSPCDVCT.js';
|
|
5
|
+
export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-7Y4B7NHO.js';
|
|
6
6
|
//# sourceMappingURL=headless.js.map
|
|
7
7
|
//# sourceMappingURL=headless.js.map
|
package/dist/highlight.cjs
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk2SWLD6R5_cjs = require('./chunk-2SWLD6R5.cjs');
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkCJVJNMOB_cjs = require('./chunk-CJVJNMOB.cjs');
|
|
6
|
+
require('./chunk-Z6LAARPB.cjs');
|
|
7
|
+
require('./chunk-ZWTIRGY5.cjs');
|
|
7
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-FK7EBZPX.cjs');
|
|
10
|
+
require('./chunk-DJU25PFC.cjs');
|
|
11
|
+
require('./chunk-I7X7B3WD.cjs');
|
|
11
12
|
var react = require('react');
|
|
12
13
|
|
|
13
14
|
// src/blocks/code/prism/grammar-name.ts
|
|
@@ -15,7 +16,7 @@ var NEAREST = { dockerfile: "docker", html: "markup", xml: "markup", shell: "bas
|
|
|
15
16
|
function grammarName(language) {
|
|
16
17
|
const key = language.trim().toLowerCase();
|
|
17
18
|
if (key === "") return void 0;
|
|
18
|
-
const known =
|
|
19
|
+
const known = chunkCJVJNMOB_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
|
|
19
20
|
return known && (NEAREST[known.id] ?? known.id);
|
|
20
21
|
}
|
|
21
22
|
|
package/dist/highlight.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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
|
+
import './chunk-DLQCTGC3.js';
|
|
5
6
|
import './chunk-HDJ653LM.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-5RBMZGKV.js';
|
|
8
|
+
import './chunk-CSPCDVCT.js';
|
|
9
|
+
import './chunk-7Y4B7NHO.js';
|
|
9
10
|
import { useState, useEffect, useMemo } from 'react';
|
|
10
11
|
|
|
11
12
|
// src/blocks/code/prism/grammar-name.ts
|
package/dist/highlight.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/blocks/code/prism/grammar-name.ts","../src/blocks/code/prism/prism-tokens.ts","../src/blocks/code/prism/prism-highlight.ts","../src/blocks/code/prism/prism-source.ts","../src/blocks/code/prism/use-prism-highlighter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/blocks/code/prism/grammar-name.ts","../src/blocks/code/prism/prism-tokens.ts","../src/blocks/code/prism/prism-highlight.ts","../src/blocks/code/prism/prism-source.ts","../src/blocks/code/prism/use-prism-highlighter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,IAAM,UAAkC,EAAE,YAAY,UAAU,MAAM,UAAU,KAAK,UAAU,OAAO,QAAO;AAGtG,SAAS,YAAY,UAAsC;AAChE,QAAM,MAAM,SAAS,MAAK,CAAE,aAAY;AACxC,MAAI,QAAQ,IAAI,OAAO;AACvB,QAAM,QAAQ,eAAe,KAAK,CAAC,EAAE,IAAI,UAAU,EAAC,OAAQ,OAAO,OAAO,QAAQ,SAAS,GAAG,CAAC;AAC/F,SAAO,UAAU,QAAQ,MAAM,EAAE,KAAK,MAAM;AAC9C;;;ACJA,IAAM,OAAO;AAEb,SAAS,UAAU,OAAuC;AACxD,QAAM,QAAQ,OAAO,MAAM,UAAU,WAAW,MAAM,QAAQ,MAAM,QAAQ,CAAC;AAC7E,QAAM,OAAO,SAAS,MAAM;AAC5B,SAAO,KAAK,KAAK,IAAI,IAAI,aAAa,IAAI,KAAK;AACjD;AAGA,SAAS,SAAS,OAAsB,MAAc,OAAiC;AACrF,OAAK,MAAM,IAAI,EAAE,QAAQ,CAAC,MAAM,UAAU;AACxC,QAAI,QAAQ,GAAG,MAAM,KAAK,EAAE;AAC5B,QAAI,SAAS,IAAI;AACjB,UAAM,MAAM,SAAS,CAAC,EAAE,KAAK,UAAU,SAAY,EAAE,MAAM,SAAS,EAAE,MAAM,MAAM,WAAW,OAAO;AAAA,EACtG,CAAC;AACH;AAEA,SAAS,KAAK,MAAiB,OAA2B,OAA4B;AACpF,MAAI,OAAO,SAAS,iBAAiB,SAAS,OAAO,MAAM,KAAK;AAChE,MAAI,MAAM,QAAQ,IAAI,GAAG,OAAQ,KAA8B,QAAQ,CAAC,UAAU,KAAK,OAAO,OAAO,KAAK,CAAC;AAC3G,QAAM,QAAQ;AACd,OAAK,MAAM,SAAS,UAAU,KAAK,KAAK,OAAO,KAAK;AACtD;AAGO,SAAS,UAAU,OAA4C;AACpE,QAAM,QAAuB,CAAC,EAAE;AAChC,QAAM,QAAQ,CAAC,SAAS,KAAK,MAAM,QAAW,KAAK,CAAC;AACpD,SAAO;AACT;;;AC3BA,SAAS,QAAQ,UAAoB,MAAc,SAAqC;AACtF,MAAI;AACF,WAAO,SAAS,MAAM,OAAO;AAAA,EAC/B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGO,SAAS,cAAc,UAAoB,MAAc,UAAiC;AAC/F,QAAM,UAAU,YAAY,QAAQ;AACpC,QAAM,QAAQ,YAAY,SAAY,OAAO,QAAQ,UAAU,MAAM,OAAO;AAC5E,SAAO,UAAU,SAAS,CAAC,IAAI,CAAC;AAClC;;;ACTA,eAAe,iBAAoC;AACjD,QAAM,UAAU;AAChB,QAAM,SAAS,QAAQ;AACvB,UAAQ,QAAQ,EAAE,QAAQ,MAAK;AAC/B,MAAI;AACF,UAAM,EAAE,UAAS,GAAI,MAAM,OAAO,qBAAkB;AACpD,WAAO;AAAA,EACT,UAAE;AACA,QAAI,WAAW,QAAW,OAAO,QAAQ;AAAA,iBAC5B,QAAQ;AAAA,EACvB;AACF;AAGO,IAAM,cAAc,SAAS,cAAc;;;ACf3C,SAAS,sBAAmD;AACjE,QAAM,CAAC,UAAU,WAAW,IAAI,SAA+B,YAAY,MAAM;AAEjF,YAAU,MAAM;AACd,QAAI,aAAa,QAAW;AAC5B,QAAI,OAAO;AAEX,SAAK,YAAY,MAAK,CAAE;AAAA,MACtB,CAAC,WAAW,MAAM,QAAQ,YAAY,MAAM,MAAM;AAAA,MAClD,MAAM;AAAA,MAAC;AAAA,KACT;AACA,WAAO,MAAM;AACX,aAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,SAAO;AAAA,IACL,MAAO,aAAa,SAAY,SAAY,CAAC,MAAM,aAAa,cAAc,UAAU,MAAM,QAAQ;AAAA,IACtG,CAAC,QAAQ;AAAA,GACX;AACF","file":"highlight.js"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Y from 'yjs';
|
|
2
|
-
import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-
|
|
2
|
+
import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-Bzhq5AXj.cjs';
|
|
3
3
|
|
|
4
4
|
type CollaborationHistory = {
|
|
5
5
|
undo(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Y from 'yjs';
|
|
2
|
-
import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-
|
|
2
|
+
import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-DMuuDBVh.js';
|
|
3
3
|
|
|
4
4
|
type CollaborationHistory = {
|
|
5
5
|
undo(): boolean;
|