quoin-editor 2.0.4 → 2.1.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 +110 -0
- package/MIGRATION.md +1 -1
- package/README.md +14 -13
- package/dist/ai.cjs +124 -94
- package/dist/ai.d.cts +7 -0
- package/dist/ai.d.ts +7 -0
- package/dist/ai.js +50 -20
- package/dist/ai.js.map +1 -1
- package/dist/catalogue.cjs +28 -26
- package/dist/catalogue.js +19 -17
- package/dist/catalogue.js.map +1 -1
- package/dist/{chunk-JGEDJYIV.cjs → chunk-2FUWXPPC.cjs} +92 -98
- package/dist/{chunk-NHNW5DK3.js → chunk-3F76QQ65.js} +6 -6
- package/dist/{chunk-NHNW5DK3.js.map → chunk-3F76QQ65.js.map} +1 -1
- package/dist/{chunk-DBOZFNWU.js → chunk-3QYFAAQR.js} +3 -3
- package/dist/{chunk-DBOZFNWU.js.map → chunk-3QYFAAQR.js.map} +1 -1
- package/dist/{chunk-I7X7B3WD.cjs → chunk-4JDRDPLC.cjs} +17 -8
- package/dist/{chunk-EBSDPHPS.cjs → chunk-4UFWFV43.cjs} +1060 -719
- package/dist/{chunk-LM3DHROX.cjs → chunk-5AUIA4B3.cjs} +2 -2
- package/dist/{chunk-3INFNIGN.cjs → chunk-5H3BB5VJ.cjs} +131 -78
- package/dist/{chunk-DJU25PFC.cjs → chunk-5L2NSIHZ.cjs} +11 -11
- package/dist/{chunk-W376L2GM.js → chunk-6Y7JAWYY.js} +8 -8
- package/dist/chunk-6Y7JAWYY.js.map +1 -0
- package/dist/{chunk-UDBLZILE.js → chunk-ATKDXQEY.js} +12 -7
- package/dist/{chunk-UDBLZILE.js.map → chunk-ATKDXQEY.js.map} +1 -1
- package/dist/{chunk-A2IQHMIH.js → chunk-BE2SYPK5.js} +49 -54
- package/dist/chunk-BE2SYPK5.js.map +1 -0
- package/dist/{chunk-PURYVDC3.cjs → chunk-CFICD2JP.cjs} +21 -16
- package/dist/{chunk-3HW3WRYC.cjs → chunk-CSIUXYRU.cjs} +2 -2
- package/dist/{chunk-N7BSFDDM.cjs → chunk-DBKL524I.cjs} +23 -23
- package/dist/{chunk-XE3IYW5B.js → chunk-DEFYFIWW.js} +90 -37
- package/dist/chunk-DEFYFIWW.js.map +1 -0
- package/dist/{chunk-7E43TURF.cjs → chunk-ECI3PSMS.cjs} +7 -7
- package/dist/{chunk-4G645EYO.js → chunk-F73QEF7E.js} +5 -5
- package/dist/{chunk-4G645EYO.js.map → chunk-F73QEF7E.js.map} +1 -1
- package/dist/{chunk-KHRVCTQQ.cjs → chunk-FUT7XLMP.cjs} +61 -74
- package/dist/{chunk-7J63427U.cjs → chunk-GQSBOBOM.cjs} +375 -320
- package/dist/{chunk-LU3T3JB4.js → chunk-HPNSQWRD.js} +15 -28
- package/dist/chunk-HPNSQWRD.js.map +1 -0
- package/dist/{chunk-7Y4B7NHO.js → chunk-I34BFOLL.js} +18 -11
- package/dist/chunk-I34BFOLL.js.map +1 -0
- package/dist/{chunk-AJT54OMZ.js → chunk-IFRXEFQH.js} +9 -15
- package/dist/chunk-IFRXEFQH.js.map +1 -0
- package/dist/{chunk-YYW33WUL.cjs → chunk-K3XWVRL4.cjs} +8 -8
- package/dist/{chunk-LSI4RMTY.js → chunk-L5L6YNLT.js} +3 -3
- package/dist/{chunk-LSI4RMTY.js.map → chunk-L5L6YNLT.js.map} +1 -1
- package/dist/{chunk-2BPXVQBP.js → chunk-MO4UMXMT.js} +238 -86
- package/dist/chunk-MO4UMXMT.js.map +1 -0
- package/dist/{chunk-2QKFRKOP.cjs → chunk-N25EH2GZ.cjs} +351 -205
- package/dist/{chunk-CSPCDVCT.js → chunk-NCV2ML25.js} +3 -3
- package/dist/{chunk-CSPCDVCT.js.map → chunk-NCV2ML25.js.map} +1 -1
- package/dist/{chunk-NUQ64S5B.cjs → chunk-OJSKSQTL.cjs} +26 -26
- package/dist/chunk-PIWMU4BV.js +9 -0
- package/dist/chunk-PIWMU4BV.js.map +1 -0
- package/dist/chunk-QFGWSFOI.cjs +10 -0
- package/dist/{chunk-GPTJYWGS.js → chunk-RNBLVGWY.js} +3 -3
- package/dist/{chunk-GPTJYWGS.js.map → chunk-RNBLVGWY.js.map} +1 -1
- package/dist/{chunk-5RBMZGKV.js → chunk-TL2MJOWM.js} +325 -57
- package/dist/chunk-TL2MJOWM.js.map +1 -0
- package/dist/{chunk-YEDPBYO5.cjs → chunk-UDQ52EEC.cjs} +4 -4
- package/dist/{chunk-EIWPJWY3.js → chunk-UE2NQPNG.js} +5 -5
- package/dist/{chunk-EIWPJWY3.js.map → chunk-UE2NQPNG.js.map} +1 -1
- package/dist/{chunk-BE2YHZXA.cjs → chunk-ULV3SCYP.cjs} +26 -15
- package/dist/{chunk-WDBFGX3U.cjs → chunk-VTTMJGWP.cjs} +72 -77
- package/dist/{chunk-556PFYES.js → chunk-WK4UGDZN.js} +290 -235
- package/dist/chunk-WK4UGDZN.js.map +1 -0
- package/dist/{chunk-JZF6UQH5.cjs → chunk-WMKA37NJ.cjs} +12 -12
- package/dist/{chunk-F2ZK6Z52.js → chunk-Y26F2X4E.js} +3 -3
- package/dist/{chunk-F2ZK6Z52.js.map → chunk-Y26F2X4E.js.map} +1 -1
- package/dist/{chunk-FK7EBZPX.cjs → chunk-Z5EEDCRI.cjs} +549 -276
- package/dist/{chunk-G6NBQYMM.js → chunk-ZGFZRVQA.js} +817 -478
- package/dist/chunk-ZGFZRVQA.js.map +1 -0
- package/dist/{chunk-QLVX7MPS.js → chunk-ZQF45LA4.js} +19 -8
- package/dist/chunk-ZQF45LA4.js.map +1 -0
- package/dist/comments.cjs +127 -65
- package/dist/comments.d.cts +35 -2
- package/dist/comments.d.ts +35 -2
- package/dist/comments.js +73 -12
- package/dist/comments.js.map +1 -1
- package/dist/{diagram-extension-22x_njXB.d.ts → diagram-extension-BMlh8GCw.d.ts} +1 -1
- package/dist/{diagram-extension-C_FSkoj9.d.cts → diagram-extension-gmndUpti.d.cts} +1 -1
- package/dist/diagram.cjs +10 -9
- package/dist/diagram.d.cts +2 -2
- package/dist/diagram.d.ts +2 -2
- package/dist/diagram.js +7 -6
- package/dist/diff.cjs +25 -25
- package/dist/diff.js +3 -3
- package/dist/docx.cjs +31 -30
- package/dist/docx.js +5 -4
- package/dist/docx.js.map +1 -1
- package/dist/embed.cjs +10 -9
- package/dist/embed.js +8 -7
- package/dist/{emoji-extension-Dk5IQLZf.d.cts → emoji-extension-DD9CQTQj.d.cts} +1 -1
- package/dist/{emoji-extension-C832oGeT.d.ts → emoji-extension-U_PWZ2fX.d.ts} +1 -1
- package/dist/emoji.cjs +10 -9
- package/dist/emoji.d.cts +2 -2
- package/dist/emoji.d.ts +2 -2
- package/dist/emoji.js +7 -6
- package/dist/engine.cjs +58 -58
- package/dist/engine.d.cts +3 -3
- package/dist/engine.d.ts +3 -3
- package/dist/engine.js +3 -3
- package/dist/{find-extension-DmK9_N81.d.ts → find-extension-BGlqooZi.d.ts} +1 -1
- package/dist/{find-extension-BfruAPLi.d.cts → find-extension-BPnAJ8bY.d.cts} +1 -1
- package/dist/find.cjs +11 -10
- package/dist/find.d.cts +1 -1
- package/dist/find.d.ts +1 -1
- package/dist/find.js +7 -6
- package/dist/headless.cjs +70 -69
- package/dist/headless.d.cts +33 -10
- package/dist/headless.d.ts +33 -10
- package/dist/headless.js +5 -4
- package/dist/highlight.cjs +7 -6
- package/dist/highlight.js +6 -5
- package/dist/highlight.js.map +1 -1
- package/dist/{index-3fYvwqUZ.d.cts → index-DN7vRKFw.d.cts} +1 -1
- package/dist/{index-CgxnzCO5.d.ts → index-DyIYI3PM.d.ts} +1 -1
- package/dist/index.cjs +82 -81
- package/dist/index.d.cts +19 -12
- package/dist/index.d.ts +19 -12
- package/dist/index.js +6 -5
- package/dist/{labels-CiCxj2jP.d.cts → labels-BJORhN93.d.ts} +10 -5
- package/dist/{labels-BhRJYo46.d.ts → labels-CVYJ2-1X.d.cts} +10 -5
- package/dist/locale-ar.cjs +10 -0
- package/dist/locale-ar.d.cts +1 -1
- package/dist/locale-ar.d.ts +1 -1
- package/dist/locale-ar.js +10 -0
- package/dist/locale-ar.js.map +1 -1
- package/dist/locale-de.cjs +4 -0
- package/dist/locale-de.d.cts +1 -1
- package/dist/locale-de.d.ts +1 -1
- package/dist/locale-de.js +4 -0
- package/dist/locale-de.js.map +1 -1
- package/dist/locale-es.cjs +4 -0
- package/dist/locale-es.d.cts +1 -1
- package/dist/locale-es.d.ts +1 -1
- package/dist/locale-es.js +4 -0
- package/dist/locale-es.js.map +1 -1
- package/dist/locale-fr.cjs +4 -0
- package/dist/locale-fr.d.cts +1 -1
- package/dist/locale-fr.d.ts +1 -1
- package/dist/locale-fr.js +4 -0
- package/dist/locale-fr.js.map +1 -1
- package/dist/locale-ja.cjs +4 -0
- package/dist/locale-ja.d.cts +1 -1
- package/dist/locale-ja.d.ts +1 -1
- package/dist/locale-ja.js +4 -0
- package/dist/locale-ja.js.map +1 -1
- package/dist/locale-pt.cjs +4 -0
- package/dist/locale-pt.d.cts +1 -1
- package/dist/locale-pt.d.ts +1 -1
- package/dist/locale-pt.js +4 -0
- package/dist/locale-pt.js.map +1 -1
- package/dist/locale-zh.cjs +4 -0
- package/dist/locale-zh.d.cts +1 -1
- package/dist/locale-zh.d.ts +1 -1
- package/dist/locale-zh.js +4 -0
- package/dist/locale-zh.js.map +1 -1
- package/dist/math.cjs +11 -10
- package/dist/math.js +9 -8
- package/dist/mention.cjs +11 -10
- package/dist/mention.js +9 -8
- package/dist/{node-reveal-DY6bimv3.d.cts → node-reveal-Be7Xa0BL.d.cts} +1 -1
- package/dist/{node-reveal-BnFcnHhz.d.ts → node-reveal-CftIEqF_.d.ts} +1 -1
- package/dist/palette-DuIFHYHc.d.cts +10 -0
- package/dist/palette-DuIFHYHc.d.ts +10 -0
- package/dist/presence.cjs +39 -38
- package/dist/presence.js +8 -7
- package/dist/presence.js.map +1 -1
- package/dist/source.cjs +10 -9
- package/dist/source.d.cts +1 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.js +6 -5
- package/dist/source.js.map +1 -1
- package/dist/{stats-extension-Dmw0Ujxe.d.ts → stats-extension-Bbpr593p.d.ts} +1 -1
- package/dist/{stats-extension-D5HySF0a.d.cts → stats-extension-D7FaeydW.d.cts} +1 -1
- package/dist/stats.cjs +12 -10
- package/dist/stats.d.cts +2 -2
- package/dist/stats.d.ts +2 -2
- package/dist/stats.js +9 -7
- package/dist/styles.css +1 -1
- package/dist/{table-extension-7LkLNK6Q.d.cts → table-extension-DNijjmxV.d.cts} +1 -1
- package/dist/{table-extension-DEpV0DnP.d.ts → table-extension-Dp6FYGPh.d.ts} +1 -1
- package/dist/table.cjs +26 -25
- package/dist/table.d.cts +4 -3
- package/dist/table.d.ts +4 -3
- package/dist/table.js +7 -6
- package/dist/{toc-extension-Dvh37bWQ.d.cts → toc-extension-BGEVAmSY.d.cts} +1 -1
- package/dist/{toc-extension-SVckrFmb.d.ts → toc-extension-DZIe40eV.d.ts} +1 -1
- package/dist/toc.cjs +10 -9
- package/dist/toc.d.cts +2 -2
- package/dist/toc.d.ts +2 -2
- package/dist/toc.js +7 -6
- package/dist/{types-DMuuDBVh.d.ts → types-Byu2a9qk.d.ts} +6 -1
- package/dist/{types-Bzhq5AXj.d.cts → types-DdDlCyyZ.d.cts} +6 -1
- 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 +4 -3
- package/dist/chunk-2BPXVQBP.js.map +0 -1
- package/dist/chunk-556PFYES.js.map +0 -1
- package/dist/chunk-5RBMZGKV.js.map +0 -1
- package/dist/chunk-7Y4B7NHO.js.map +0 -1
- package/dist/chunk-A2IQHMIH.js.map +0 -1
- package/dist/chunk-AJT54OMZ.js.map +0 -1
- package/dist/chunk-G6NBQYMM.js.map +0 -1
- package/dist/chunk-LU3T3JB4.js.map +0 -1
- package/dist/chunk-QLVX7MPS.js.map +0 -1
- package/dist/chunk-W376L2GM.js.map +0 -1
- package/dist/chunk-XE3IYW5B.js.map +0 -1
- package/dist/palette-BrX-hEd-.d.cts +0 -4
- package/dist/palette-BrX-hEd-.d.ts +0 -4
package/dist/headless.cjs
CHANGED
|
@@ -1,270 +1,271 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var chunkN25EH2GZ_cjs = require('./chunk-N25EH2GZ.cjs');
|
|
5
|
+
require('./chunk-QFGWSFOI.cjs');
|
|
6
|
+
var chunkZ5EEDCRI_cjs = require('./chunk-Z5EEDCRI.cjs');
|
|
7
|
+
var chunk5L2NSIHZ_cjs = require('./chunk-5L2NSIHZ.cjs');
|
|
8
|
+
var chunk4JDRDPLC_cjs = require('./chunk-4JDRDPLC.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
Object.defineProperty(exports, "EditableRegion", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkN25EH2GZ_cjs.EditableRegion; }
|
|
14
15
|
});
|
|
15
16
|
Object.defineProperty(exports, "EditorView", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkN25EH2GZ_cjs.EditorView; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, "ViewController", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkN25EH2GZ_cjs.ViewController; }
|
|
22
23
|
});
|
|
23
24
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkN25EH2GZ_cjs.caretFromPoint; }
|
|
26
27
|
});
|
|
27
28
|
Object.defineProperty(exports, "domMapOf", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkN25EH2GZ_cjs.domMapOf; }
|
|
30
31
|
});
|
|
31
32
|
Object.defineProperty(exports, "hostKey", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkN25EH2GZ_cjs.hostKey; }
|
|
34
35
|
});
|
|
35
36
|
Object.defineProperty(exports, "renderInline", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkN25EH2GZ_cjs.renderInline; }
|
|
38
39
|
});
|
|
39
40
|
Object.defineProperty(exports, "useEditorState", {
|
|
40
41
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkN25EH2GZ_cjs.useEditorState; }
|
|
42
43
|
});
|
|
43
44
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
44
45
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkN25EH2GZ_cjs.useQuoinEditor; }
|
|
46
47
|
});
|
|
47
48
|
Object.defineProperty(exports, "useViewController", {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkN25EH2GZ_cjs.useViewController; }
|
|
50
51
|
});
|
|
51
52
|
Object.defineProperty(exports, "Transaction", {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkZ5EEDCRI_cjs.Transaction; }
|
|
54
55
|
});
|
|
55
56
|
Object.defineProperty(exports, "addMarkStep", {
|
|
56
57
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkZ5EEDCRI_cjs.addMarkStep; }
|
|
58
59
|
});
|
|
59
60
|
Object.defineProperty(exports, "applyTransaction", {
|
|
60
61
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkZ5EEDCRI_cjs.applyTransaction; }
|
|
62
63
|
});
|
|
63
64
|
Object.defineProperty(exports, "blockInputRules", {
|
|
64
65
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkZ5EEDCRI_cjs.blockInputRules; }
|
|
66
67
|
});
|
|
67
68
|
Object.defineProperty(exports, "blockRangeSelection", {
|
|
68
69
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkZ5EEDCRI_cjs.blockRangeSelection; }
|
|
70
71
|
});
|
|
71
72
|
Object.defineProperty(exports, "coreExtensions", {
|
|
72
73
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkZ5EEDCRI_cjs.coreExtensions; }
|
|
74
75
|
});
|
|
75
76
|
Object.defineProperty(exports, "countDoc", {
|
|
76
77
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkZ5EEDCRI_cjs.countDoc; }
|
|
78
79
|
});
|
|
79
80
|
Object.defineProperty(exports, "countText", {
|
|
80
81
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkZ5EEDCRI_cjs.countText; }
|
|
82
83
|
});
|
|
83
84
|
Object.defineProperty(exports, "createEditor", {
|
|
84
85
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkZ5EEDCRI_cjs.createEditor; }
|
|
86
87
|
});
|
|
87
88
|
Object.defineProperty(exports, "createPluginKey", {
|
|
88
89
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkZ5EEDCRI_cjs.createPluginKey; }
|
|
90
91
|
});
|
|
91
92
|
Object.defineProperty(exports, "createState", {
|
|
92
93
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkZ5EEDCRI_cjs.createState; }
|
|
94
95
|
});
|
|
95
96
|
Object.defineProperty(exports, "defineExtension", {
|
|
96
97
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkZ5EEDCRI_cjs.defineExtension; }
|
|
98
99
|
});
|
|
99
100
|
Object.defineProperty(exports, "fromHTML", {
|
|
100
101
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZ5EEDCRI_cjs.fromHTML; }
|
|
102
103
|
});
|
|
103
104
|
Object.defineProperty(exports, "getPluginState", {
|
|
104
105
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkZ5EEDCRI_cjs.getPluginState; }
|
|
106
107
|
});
|
|
107
108
|
Object.defineProperty(exports, "insertBlockAfter", {
|
|
108
109
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZ5EEDCRI_cjs.insertBlockAfter; }
|
|
110
111
|
});
|
|
111
112
|
Object.defineProperty(exports, "insertBlocksStep", {
|
|
112
113
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZ5EEDCRI_cjs.insertBlocksStep; }
|
|
114
115
|
});
|
|
115
116
|
Object.defineProperty(exports, "insertText", {
|
|
116
117
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZ5EEDCRI_cjs.insertText; }
|
|
118
119
|
});
|
|
119
120
|
Object.defineProperty(exports, "insertTextWithRules", {
|
|
120
121
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZ5EEDCRI_cjs.insertTextWithRules; }
|
|
122
123
|
});
|
|
123
124
|
Object.defineProperty(exports, "joinBlocksStep", {
|
|
124
125
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkZ5EEDCRI_cjs.joinBlocksStep; }
|
|
126
127
|
});
|
|
127
128
|
Object.defineProperty(exports, "keyName", {
|
|
128
129
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkZ5EEDCRI_cjs.keyName; }
|
|
130
131
|
});
|
|
131
132
|
Object.defineProperty(exports, "markInputRules", {
|
|
132
133
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkZ5EEDCRI_cjs.markInputRules; }
|
|
134
135
|
});
|
|
135
136
|
Object.defineProperty(exports, "moveBlocksStep", {
|
|
136
137
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkZ5EEDCRI_cjs.moveBlocksStep; }
|
|
138
139
|
});
|
|
139
140
|
Object.defineProperty(exports, "nodeSelection", {
|
|
140
141
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkZ5EEDCRI_cjs.nodeSelection; }
|
|
142
143
|
});
|
|
143
144
|
Object.defineProperty(exports, "normalizeKey", {
|
|
144
145
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkZ5EEDCRI_cjs.normalizeKey; }
|
|
146
147
|
});
|
|
147
148
|
Object.defineProperty(exports, "redo", {
|
|
148
149
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkZ5EEDCRI_cjs.redo; }
|
|
150
151
|
});
|
|
151
152
|
Object.defineProperty(exports, "removeBlocksStep", {
|
|
152
153
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkZ5EEDCRI_cjs.removeBlocksStep; }
|
|
154
155
|
});
|
|
155
156
|
Object.defineProperty(exports, "removeMarkStep", {
|
|
156
157
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkZ5EEDCRI_cjs.removeMarkStep; }
|
|
158
159
|
});
|
|
159
160
|
Object.defineProperty(exports, "replaceBlockStep", {
|
|
160
161
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkZ5EEDCRI_cjs.replaceBlockStep; }
|
|
162
163
|
});
|
|
163
164
|
Object.defineProperty(exports, "replaceDocStep", {
|
|
164
165
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkZ5EEDCRI_cjs.replaceDocStep; }
|
|
166
167
|
});
|
|
167
168
|
Object.defineProperty(exports, "replaceInlineStep", {
|
|
168
169
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkZ5EEDCRI_cjs.replaceInlineStep; }
|
|
170
171
|
});
|
|
171
172
|
Object.defineProperty(exports, "setAttrsStep", {
|
|
172
173
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkZ5EEDCRI_cjs.setAttrsStep; }
|
|
174
175
|
});
|
|
175
176
|
Object.defineProperty(exports, "setBlockType", {
|
|
176
177
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkZ5EEDCRI_cjs.setBlockType; }
|
|
178
179
|
});
|
|
179
180
|
Object.defineProperty(exports, "setIndentStep", {
|
|
180
181
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkZ5EEDCRI_cjs.setIndentStep; }
|
|
182
183
|
});
|
|
183
184
|
Object.defineProperty(exports, "splitBlockStep", {
|
|
184
185
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkZ5EEDCRI_cjs.splitBlockStep; }
|
|
186
187
|
});
|
|
187
188
|
Object.defineProperty(exports, "stepFromJSON", {
|
|
188
189
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkZ5EEDCRI_cjs.stepFromJSON; }
|
|
190
191
|
});
|
|
191
192
|
Object.defineProperty(exports, "textSelection", {
|
|
192
193
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkZ5EEDCRI_cjs.textSelection; }
|
|
194
195
|
});
|
|
195
196
|
Object.defineProperty(exports, "toHTML", {
|
|
196
197
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkZ5EEDCRI_cjs.toHTML; }
|
|
198
199
|
});
|
|
199
200
|
Object.defineProperty(exports, "toMarkdown", {
|
|
200
201
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkZ5EEDCRI_cjs.toMarkdown; }
|
|
202
203
|
});
|
|
203
204
|
Object.defineProperty(exports, "toPlainText", {
|
|
204
205
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkZ5EEDCRI_cjs.toPlainText; }
|
|
206
207
|
});
|
|
207
208
|
Object.defineProperty(exports, "toggleMark", {
|
|
208
209
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkZ5EEDCRI_cjs.toggleMark; }
|
|
210
211
|
});
|
|
211
212
|
Object.defineProperty(exports, "typographyRules", {
|
|
212
213
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkZ5EEDCRI_cjs.typographyRules; }
|
|
214
215
|
});
|
|
215
216
|
Object.defineProperty(exports, "undo", {
|
|
216
217
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkZ5EEDCRI_cjs.undo; }
|
|
218
219
|
});
|
|
219
220
|
Object.defineProperty(exports, "diffBlocks", {
|
|
220
221
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk5L2NSIHZ_cjs.diffBlocks; }
|
|
222
223
|
});
|
|
223
224
|
Object.defineProperty(exports, "diffInline", {
|
|
224
225
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk5L2NSIHZ_cjs.diffInline; }
|
|
226
227
|
});
|
|
227
228
|
Object.defineProperty(exports, "PALETTE", {
|
|
228
229
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunk4JDRDPLC_cjs.PALETTE; }
|
|
230
231
|
});
|
|
231
232
|
Object.defineProperty(exports, "atom", {
|
|
232
233
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunk4JDRDPLC_cjs.atom; }
|
|
234
235
|
});
|
|
235
236
|
Object.defineProperty(exports, "coreBlockSpecs", {
|
|
236
237
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk4JDRDPLC_cjs.coreBlockSpecs; }
|
|
238
239
|
});
|
|
239
240
|
Object.defineProperty(exports, "createBlockCodec", {
|
|
240
241
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunk4JDRDPLC_cjs.createBlockCodec; }
|
|
242
243
|
});
|
|
243
244
|
Object.defineProperty(exports, "createSchema", {
|
|
244
245
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunk4JDRDPLC_cjs.createSchema; }
|
|
246
247
|
});
|
|
247
248
|
Object.defineProperty(exports, "fromMarkdown", {
|
|
248
249
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunk4JDRDPLC_cjs.fromMarkdown; }
|
|
250
251
|
});
|
|
251
252
|
Object.defineProperty(exports, "normalizeInline", {
|
|
252
253
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunk4JDRDPLC_cjs.normalizeInline; }
|
|
254
255
|
});
|
|
255
256
|
Object.defineProperty(exports, "parseInline", {
|
|
256
257
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunk4JDRDPLC_cjs.parseInline; }
|
|
258
259
|
});
|
|
259
260
|
Object.defineProperty(exports, "sanitizeHref", {
|
|
260
261
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunk4JDRDPLC_cjs.sanitizeHref; }
|
|
262
263
|
});
|
|
263
264
|
Object.defineProperty(exports, "serializeInline", {
|
|
264
265
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunk4JDRDPLC_cjs.serializeInline; }
|
|
266
267
|
});
|
|
267
268
|
Object.defineProperty(exports, "text", {
|
|
268
269
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunk4JDRDPLC_cjs.text; }
|
|
270
271
|
});
|
package/dist/headless.d.cts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { R as RenderOptions, V as ViewController } from './node-reveal-
|
|
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-
|
|
1
|
+
import { R as RenderOptions, V as ViewController } from './node-reveal-Be7Xa0BL.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-Be7Xa0BL.cjs';
|
|
3
3
|
import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.cjs';
|
|
4
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-
|
|
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-
|
|
5
|
+
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-DdDlCyyZ.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-DdDlCyyZ.cjs';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import { ComponentType, ReactNode } from 'react';
|
|
9
|
+
import { C as CalloutTone } from './palette-DuIFHYHc.cjs';
|
|
10
|
+
export { a as PALETTE, P as PaletteName } from './palette-DuIFHYHc.cjs';
|
|
9
11
|
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
12
|
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-C2w7Dzg8.cjs';
|
|
11
|
-
export { P as PALETTE } from './palette-BrX-hEd-.cjs';
|
|
12
13
|
export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.cjs';
|
|
13
14
|
export { H as HTMLOptions, t as toHTML } from './to-html-C19PbIzh.cjs';
|
|
14
15
|
|
|
@@ -54,6 +55,23 @@ type UseQuoinEditorOptions = {
|
|
|
54
55
|
*/
|
|
55
56
|
declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
|
|
56
57
|
|
|
58
|
+
/** The names the default renderers give the text of each block and the controls beside it. */
|
|
59
|
+
type RendererLabels = {
|
|
60
|
+
paragraph: string;
|
|
61
|
+
heading: (level: number) => string;
|
|
62
|
+
bulletItem: string;
|
|
63
|
+
numberedItem: (n: number) => string;
|
|
64
|
+
task: string;
|
|
65
|
+
quote: string;
|
|
66
|
+
/** The name of a callout's text, given the name of its tone from `calloutTones`, which it takes as written. */
|
|
67
|
+
callout: (tone: string) => string;
|
|
68
|
+
/** The name of each tone, inside the name of a callout's text. */
|
|
69
|
+
calloutTones: Record<CalloutTone, string>;
|
|
70
|
+
toggle: string;
|
|
71
|
+
/** The name of a closed toggle's chevron, given how many blocks it hides. A chevron hiding none is named by `toggle`. */
|
|
72
|
+
toggleButton: (hidden: number) => string;
|
|
73
|
+
};
|
|
74
|
+
|
|
57
75
|
/** The text an empty block shows in its main region, read again whenever the editor state changes. */
|
|
58
76
|
type BlockPlaceholder = (state: EditorState, block: EngineBlock) => string | undefined;
|
|
59
77
|
|
|
@@ -71,7 +89,12 @@ type EditorViewProps = {
|
|
|
71
89
|
'aria-label'?: string;
|
|
72
90
|
/** What the editor's accessible description says, in place of the English way out. */
|
|
73
91
|
hint?: string;
|
|
74
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* The names the default renderers give the text of each block and the controls beside it, in place of the English
|
|
94
|
+
* ones. A key left out stays English, and so does each tone `calloutTones` leaves out.
|
|
95
|
+
*/
|
|
96
|
+
rendererLabels?: Partial<RendererLabels>;
|
|
97
|
+
/** The accessible name of the paragraph an empty document offers to type into, by default `rendererLabels.paragraph`. */
|
|
75
98
|
paragraphLabel?: string;
|
|
76
99
|
/** The accessible name of the hidden textbox that holds a selection across blocks. */
|
|
77
100
|
selectedContentLabel?: string;
|
|
@@ -85,7 +108,7 @@ type EditorViewProps = {
|
|
|
85
108
|
onBlockError?: (error: Error) => void;
|
|
86
109
|
/** The text of the host an empty document draws. */
|
|
87
110
|
placeholder?: string;
|
|
88
|
-
/** The placeholder of each empty block, by default the name
|
|
111
|
+
/** The placeholder of each empty block, by default the name `rendererLabels` gives a heading and nothing for others. */
|
|
89
112
|
blockPlaceholder?: BlockPlaceholder;
|
|
90
113
|
/** What the live region says when blocks are selected, given how many it draws, in place of the English words. */
|
|
91
114
|
blocksSelectedLabel?: (count: number) => string;
|
|
@@ -96,7 +119,7 @@ type EditorViewProps = {
|
|
|
96
119
|
* The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
|
|
97
120
|
* It keeps the element it drew for each block, so define `renderers` once rather than on every render.
|
|
98
121
|
*/
|
|
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;
|
|
122
|
+
declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, rendererLabels, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, blockErrorLabel, onBlockError, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
|
|
100
123
|
|
|
101
124
|
type EditableRegionProps = {
|
|
102
125
|
block: string;
|
|
@@ -109,5 +132,5 @@ type EditableRegionProps = {
|
|
|
109
132
|
};
|
|
110
133
|
declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
|
|
111
134
|
|
|
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 };
|
|
135
|
+
export { CalloutTone, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
136
|
+
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, RendererLabels, UseQuoinEditorOptions };
|
package/dist/headless.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { R as RenderOptions, V as ViewController } from './node-reveal-
|
|
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-
|
|
1
|
+
import { R as RenderOptions, V as ViewController } from './node-reveal-CftIEqF_.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-CftIEqF_.js';
|
|
3
3
|
import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.js';
|
|
4
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-
|
|
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-
|
|
5
|
+
import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-Byu2a9qk.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-Byu2a9qk.js';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import { ComponentType, ReactNode } from 'react';
|
|
9
|
+
import { C as CalloutTone } from './palette-DuIFHYHc.js';
|
|
10
|
+
export { a as PALETTE, P as PaletteName } from './palette-DuIFHYHc.js';
|
|
9
11
|
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
12
|
export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-DC1EUye5.js';
|
|
11
|
-
export { P as PALETTE } from './palette-BrX-hEd-.js';
|
|
12
13
|
export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.js';
|
|
13
14
|
export { H as HTMLOptions, t as toHTML } from './to-html-CogwrQer.js';
|
|
14
15
|
|
|
@@ -54,6 +55,23 @@ type UseQuoinEditorOptions = {
|
|
|
54
55
|
*/
|
|
55
56
|
declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
|
|
56
57
|
|
|
58
|
+
/** The names the default renderers give the text of each block and the controls beside it. */
|
|
59
|
+
type RendererLabels = {
|
|
60
|
+
paragraph: string;
|
|
61
|
+
heading: (level: number) => string;
|
|
62
|
+
bulletItem: string;
|
|
63
|
+
numberedItem: (n: number) => string;
|
|
64
|
+
task: string;
|
|
65
|
+
quote: string;
|
|
66
|
+
/** The name of a callout's text, given the name of its tone from `calloutTones`, which it takes as written. */
|
|
67
|
+
callout: (tone: string) => string;
|
|
68
|
+
/** The name of each tone, inside the name of a callout's text. */
|
|
69
|
+
calloutTones: Record<CalloutTone, string>;
|
|
70
|
+
toggle: string;
|
|
71
|
+
/** The name of a closed toggle's chevron, given how many blocks it hides. A chevron hiding none is named by `toggle`. */
|
|
72
|
+
toggleButton: (hidden: number) => string;
|
|
73
|
+
};
|
|
74
|
+
|
|
57
75
|
/** The text an empty block shows in its main region, read again whenever the editor state changes. */
|
|
58
76
|
type BlockPlaceholder = (state: EditorState, block: EngineBlock) => string | undefined;
|
|
59
77
|
|
|
@@ -71,7 +89,12 @@ type EditorViewProps = {
|
|
|
71
89
|
'aria-label'?: string;
|
|
72
90
|
/** What the editor's accessible description says, in place of the English way out. */
|
|
73
91
|
hint?: string;
|
|
74
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* The names the default renderers give the text of each block and the controls beside it, in place of the English
|
|
94
|
+
* ones. A key left out stays English, and so does each tone `calloutTones` leaves out.
|
|
95
|
+
*/
|
|
96
|
+
rendererLabels?: Partial<RendererLabels>;
|
|
97
|
+
/** The accessible name of the paragraph an empty document offers to type into, by default `rendererLabels.paragraph`. */
|
|
75
98
|
paragraphLabel?: string;
|
|
76
99
|
/** The accessible name of the hidden textbox that holds a selection across blocks. */
|
|
77
100
|
selectedContentLabel?: string;
|
|
@@ -85,7 +108,7 @@ type EditorViewProps = {
|
|
|
85
108
|
onBlockError?: (error: Error) => void;
|
|
86
109
|
/** The text of the host an empty document draws. */
|
|
87
110
|
placeholder?: string;
|
|
88
|
-
/** The placeholder of each empty block, by default the name
|
|
111
|
+
/** The placeholder of each empty block, by default the name `rendererLabels` gives a heading and nothing for others. */
|
|
89
112
|
blockPlaceholder?: BlockPlaceholder;
|
|
90
113
|
/** What the live region says when blocks are selected, given how many it draws, in place of the English words. */
|
|
91
114
|
blocksSelectedLabel?: (count: number) => string;
|
|
@@ -96,7 +119,7 @@ type EditorViewProps = {
|
|
|
96
119
|
* The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
|
|
97
120
|
* It keeps the element it drew for each block, so define `renderers` once rather than on every render.
|
|
98
121
|
*/
|
|
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;
|
|
122
|
+
declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, rendererLabels, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, blockErrorLabel, onBlockError, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
|
|
100
123
|
|
|
101
124
|
type EditableRegionProps = {
|
|
102
125
|
block: string;
|
|
@@ -109,5 +132,5 @@ type EditableRegionProps = {
|
|
|
109
132
|
};
|
|
110
133
|
declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
|
|
111
134
|
|
|
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 };
|
|
135
|
+
export { CalloutTone, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
|
|
136
|
+
export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, RendererLabels, UseQuoinEditorOptions };
|
package/dist/headless.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
2
|
+
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-MO4UMXMT.js';
|
|
3
|
+
import './chunk-PIWMU4BV.js';
|
|
4
|
+
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-TL2MJOWM.js';
|
|
5
|
+
export { diffBlocks, diffInline } from './chunk-NCV2ML25.js';
|
|
6
|
+
export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-I34BFOLL.js';
|
|
6
7
|
//# sourceMappingURL=headless.js.map
|
|
7
8
|
//# sourceMappingURL=headless.js.map
|
package/dist/highlight.cjs
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk2SWLD6R5_cjs = require('./chunk-2SWLD6R5.cjs');
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk4UFWFV43_cjs = require('./chunk-4UFWFV43.cjs');
|
|
6
|
+
require('./chunk-N25EH2GZ.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-QFGWSFOI.cjs');
|
|
10
|
+
require('./chunk-Z5EEDCRI.cjs');
|
|
11
|
+
require('./chunk-5L2NSIHZ.cjs');
|
|
12
|
+
require('./chunk-4JDRDPLC.cjs');
|
|
12
13
|
var react = require('react');
|
|
13
14
|
|
|
14
15
|
// src/blocks/code/prism/grammar-name.ts
|
|
@@ -16,7 +17,7 @@ var NEAREST = { dockerfile: "docker", html: "markup", xml: "markup", shell: "bas
|
|
|
16
17
|
function grammarName(language) {
|
|
17
18
|
const key = language.trim().toLowerCase();
|
|
18
19
|
if (key === "") return void 0;
|
|
19
|
-
const known =
|
|
20
|
+
const known = chunk4UFWFV43_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
|
|
20
21
|
return known && (NEAREST[known.id] ?? known.id);
|
|
21
22
|
}
|
|
22
23
|
|
package/dist/highlight.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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-ZGFZRVQA.js';
|
|
4
|
+
import './chunk-MO4UMXMT.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
7
|
+
import './chunk-PIWMU4BV.js';
|
|
8
|
+
import './chunk-TL2MJOWM.js';
|
|
9
|
+
import './chunk-NCV2ML25.js';
|
|
10
|
+
import './chunk-I34BFOLL.js';
|
|
10
11
|
import { useState, useEffect, useMemo } from 'react';
|
|
11
12
|
|
|
12
13
|
// 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-DdDlCyyZ.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-Byu2a9qk.js';
|
|
3
3
|
|
|
4
4
|
type CollaborationHistory = {
|
|
5
5
|
undo(): boolean;
|