quoin-editor 1.0.2 → 1.1.1

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.
Files changed (224) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/ai.cjs +169 -249
  3. package/dist/ai.cjs.map +1 -1
  4. package/dist/ai.js +38 -121
  5. package/dist/ai.js.map +1 -1
  6. package/dist/catalogue.cjs +29 -43
  7. package/dist/catalogue.cjs.map +1 -1
  8. package/dist/catalogue.js +21 -37
  9. package/dist/catalogue.js.map +1 -1
  10. package/dist/{chunk-DUE3HCZD.js → chunk-2EQ6FKSK.js} +19 -28
  11. package/dist/chunk-2EQ6FKSK.js.map +1 -0
  12. package/dist/{chunk-RJRX34BZ.js → chunk-3BXUGX5F.js} +4 -18
  13. package/dist/chunk-3BXUGX5F.js.map +1 -0
  14. package/dist/chunk-3QRVAI53.cjs +27 -0
  15. package/dist/chunk-3QRVAI53.cjs.map +1 -0
  16. package/dist/{chunk-U3LOLYAU.js → chunk-7FAVFJAS.js} +4 -10
  17. package/dist/chunk-7FAVFJAS.js.map +1 -0
  18. package/dist/{chunk-FDRUAL3Z.cjs → chunk-7NAONESM.cjs} +90 -153
  19. package/dist/chunk-7NAONESM.cjs.map +1 -0
  20. package/dist/{chunk-6V6GGBDK.cjs → chunk-7SVKLWDT.cjs} +24 -31
  21. package/dist/chunk-7SVKLWDT.cjs.map +1 -0
  22. package/dist/{chunk-CW3AFJBR.cjs → chunk-7XQGOCUG.cjs} +1332 -1772
  23. package/dist/chunk-7XQGOCUG.cjs.map +1 -0
  24. package/dist/{chunk-EH5KXQXY.cjs → chunk-A6PGQVTR.cjs} +36 -20
  25. package/dist/chunk-A6PGQVTR.cjs.map +1 -0
  26. package/dist/{chunk-4SLJNZSM.cjs → chunk-AIS37SL2.cjs} +201 -198
  27. package/dist/chunk-AIS37SL2.cjs.map +1 -0
  28. package/dist/{chunk-IQBMAE3F.js → chunk-CKHKCPGL.js} +34 -92
  29. package/dist/chunk-CKHKCPGL.js.map +1 -0
  30. package/dist/{chunk-T43RZTUT.js → chunk-DYWU4SQ2.js} +723 -1246
  31. package/dist/chunk-DYWU4SQ2.js.map +1 -0
  32. package/dist/chunk-EFRQMYZ6.cjs +33 -0
  33. package/dist/chunk-EFRQMYZ6.cjs.map +1 -0
  34. package/dist/{chunk-O4Z2WMFF.js → chunk-HDJ653LM.js} +25 -18
  35. package/dist/chunk-HDJ653LM.js.map +1 -0
  36. package/dist/chunk-HQ43EIYO.cjs +94 -0
  37. package/dist/chunk-HQ43EIYO.cjs.map +1 -0
  38. package/dist/{chunk-6NULZPVC.js → chunk-HTLWPSMU.js} +8 -61
  39. package/dist/chunk-HTLWPSMU.js.map +1 -0
  40. package/dist/{chunk-EPARJI4V.js → chunk-IEP7BPFN.js} +122 -267
  41. package/dist/chunk-IEP7BPFN.js.map +1 -0
  42. package/dist/{chunk-P6KYXFZC.cjs → chunk-IGZRZIAF.cjs} +440 -538
  43. package/dist/chunk-IGZRZIAF.cjs.map +1 -0
  44. package/dist/chunk-JCEFSTVG.cjs +483 -0
  45. package/dist/chunk-JCEFSTVG.cjs.map +1 -0
  46. package/dist/chunk-KXRGY5LK.cjs +612 -0
  47. package/dist/chunk-KXRGY5LK.cjs.map +1 -0
  48. package/dist/{chunk-JHQUHFLX.js → chunk-KZ6ZFCGO.js} +38 -120
  49. package/dist/chunk-KZ6ZFCGO.js.map +1 -0
  50. package/dist/{chunk-ADSJ42DO.js → chunk-L2QA2UTY.js} +17 -69
  51. package/dist/chunk-L2QA2UTY.js.map +1 -0
  52. package/dist/{chunk-OBMBSU2S.js → chunk-L4D23LM2.js} +5 -184
  53. package/dist/chunk-L4D23LM2.js.map +1 -0
  54. package/dist/{chunk-4XFXB37X.js → chunk-L6OW2FL3.js} +7 -90
  55. package/dist/chunk-L6OW2FL3.js.map +1 -0
  56. package/dist/chunk-LE5XMIFJ.cjs +4 -3
  57. package/dist/chunk-LE5XMIFJ.cjs.map +1 -1
  58. package/dist/chunk-MQUCCSWG.js +2 -3
  59. package/dist/chunk-MQUCCSWG.js.map +1 -1
  60. package/dist/{chunk-C23RQVRK.js → chunk-MUIPM26J.js} +66 -216
  61. package/dist/chunk-MUIPM26J.js.map +1 -0
  62. package/dist/{chunk-AUOEM3SF.cjs → chunk-OKWER2RV.cjs} +102 -155
  63. package/dist/chunk-OKWER2RV.cjs.map +1 -0
  64. package/dist/{chunk-TLGX43P6.cjs → chunk-OM7E43ZN.cjs} +89 -86
  65. package/dist/chunk-OM7E43ZN.cjs.map +1 -0
  66. package/dist/{chunk-NEZJ7ZP5.js → chunk-QSXPKZ2F.js} +4 -8
  67. package/dist/chunk-QSXPKZ2F.js.map +1 -0
  68. package/dist/{chunk-VCLL5C7J.js → chunk-RFLFRIPV.js} +14 -57
  69. package/dist/chunk-RFLFRIPV.js.map +1 -0
  70. package/dist/chunk-RIIXJWBR.cjs +24 -0
  71. package/dist/chunk-RIIXJWBR.cjs.map +1 -0
  72. package/dist/{chunk-VRS6WCEK.js → chunk-SFMORPWB.js} +60 -167
  73. package/dist/chunk-SFMORPWB.js.map +1 -0
  74. package/dist/{chunk-YBMUEEM5.js → chunk-TYZSB7JT.js} +4 -8
  75. package/dist/chunk-TYZSB7JT.js.map +1 -0
  76. package/dist/{chunk-BQANU5BH.cjs → chunk-U5BSCAMP.cjs} +34 -44
  77. package/dist/chunk-U5BSCAMP.cjs.map +1 -0
  78. package/dist/{chunk-OSHZQR3W.js → chunk-UEVR4B5S.js} +13 -45
  79. package/dist/chunk-UEVR4B5S.js.map +1 -0
  80. package/dist/{chunk-N4FGA3H4.js → chunk-VBJY2CSK.js} +38 -105
  81. package/dist/chunk-VBJY2CSK.js.map +1 -0
  82. package/dist/{chunk-ZKVOS57Q.cjs → chunk-VFSVN5IQ.cjs} +495 -551
  83. package/dist/chunk-VFSVN5IQ.cjs.map +1 -0
  84. package/dist/{chunk-X4HDKFW5.cjs → chunk-VNRI5DAL.cjs} +56 -105
  85. package/dist/chunk-VNRI5DAL.cjs.map +1 -0
  86. package/dist/chunk-W7B4WQ3L.cjs +200 -0
  87. package/dist/chunk-W7B4WQ3L.cjs.map +1 -0
  88. package/dist/{chunk-623AOJM2.js → chunk-WAGBELKA.js} +7 -25
  89. package/dist/chunk-WAGBELKA.js.map +1 -0
  90. package/dist/{chunk-WEYDDIBQ.cjs → chunk-WH56EW3H.cjs} +36 -64
  91. package/dist/chunk-WH56EW3H.cjs.map +1 -0
  92. package/dist/{chunk-5MAYUGTE.cjs → chunk-XAS7LANM.cjs} +233 -363
  93. package/dist/chunk-XAS7LANM.cjs.map +1 -0
  94. package/dist/comments.cjs +210 -290
  95. package/dist/comments.cjs.map +1 -1
  96. package/dist/comments.js +82 -186
  97. package/dist/comments.js.map +1 -1
  98. package/dist/diff.cjs +48 -65
  99. package/dist/diff.cjs.map +1 -1
  100. package/dist/diff.d.cts +2 -2
  101. package/dist/diff.d.ts +2 -2
  102. package/dist/diff.js +8 -32
  103. package/dist/diff.js.map +1 -1
  104. package/dist/docx.cjs +50 -63
  105. package/dist/docx.cjs.map +1 -1
  106. package/dist/docx.js +7 -22
  107. package/dist/docx.js.map +1 -1
  108. package/dist/embed.cjs +19 -12
  109. package/dist/embed.cjs.map +1 -1
  110. package/dist/embed.js +10 -16
  111. package/dist/embed.js.map +1 -1
  112. package/dist/emoji-data.cjs +7 -5
  113. package/dist/emoji-data.cjs.map +1 -1
  114. package/dist/emoji-data.js +3 -5
  115. package/dist/emoji-data.js.map +1 -1
  116. package/dist/emoji.cjs +26 -17
  117. package/dist/emoji.cjs.map +1 -1
  118. package/dist/emoji.js +9 -17
  119. package/dist/emoji.js.map +1 -1
  120. package/dist/engine.cjs +229 -118
  121. package/dist/engine.cjs.map +1 -1
  122. package/dist/engine.js +4 -118
  123. package/dist/engine.js.map +1 -1
  124. package/dist/find.cjs +30 -19
  125. package/dist/find.cjs.map +1 -1
  126. package/dist/find.js +9 -19
  127. package/dist/find.js.map +1 -1
  128. package/dist/headless.cjs +291 -151
  129. package/dist/headless.cjs.map +1 -1
  130. package/dist/headless.d.cts +5 -1
  131. package/dist/headless.d.ts +5 -1
  132. package/dist/headless.js +6 -151
  133. package/dist/headless.js.map +1 -1
  134. package/dist/index.cjs +349 -183
  135. package/dist/index.cjs.map +1 -1
  136. package/dist/index.d.cts +17 -4
  137. package/dist/index.d.ts +17 -4
  138. package/dist/index.js +8 -183
  139. package/dist/index.js.map +1 -1
  140. package/dist/math.cjs +20 -13
  141. package/dist/math.cjs.map +1 -1
  142. package/dist/math.js +11 -17
  143. package/dist/math.js.map +1 -1
  144. package/dist/mention.cjs +20 -13
  145. package/dist/mention.cjs.map +1 -1
  146. package/dist/mention.js +11 -17
  147. package/dist/mention.js.map +1 -1
  148. package/dist/presence.cjs +99 -132
  149. package/dist/presence.cjs.map +1 -1
  150. package/dist/presence.js +22 -78
  151. package/dist/presence.js.map +1 -1
  152. package/dist/{registry-CWBOSAHm.d.ts → registry-CXegaw5k.d.cts} +25 -2
  153. package/dist/{registry-CWBOSAHm.d.cts → registry-CXegaw5k.d.ts} +25 -2
  154. package/dist/stats.cjs +27 -18
  155. package/dist/stats.cjs.map +1 -1
  156. package/dist/stats.js +10 -18
  157. package/dist/stats.js.map +1 -1
  158. package/dist/styles.css +1 -1
  159. package/dist/table.cjs +90 -49
  160. package/dist/table.cjs.map +1 -1
  161. package/dist/table.js +9 -49
  162. package/dist/table.js.map +1 -1
  163. package/dist/toc.cjs +26 -17
  164. package/dist/toc.cjs.map +1 -1
  165. package/dist/toc.js +9 -17
  166. package/dist/toc.js.map +1 -1
  167. package/dist/view.cjs +13 -16
  168. package/dist/view.cjs.map +1 -1
  169. package/dist/view.d.cts +2 -2
  170. package/dist/view.d.ts +2 -2
  171. package/dist/view.js +7 -16
  172. package/dist/view.js.map +1 -1
  173. package/dist/yjs.cjs +186 -228
  174. package/dist/yjs.cjs.map +1 -1
  175. package/dist/yjs.js +12 -80
  176. package/dist/yjs.js.map +1 -1
  177. package/package.json +2 -1
  178. package/dist/chunk-4SLJNZSM.cjs.map +0 -1
  179. package/dist/chunk-4XFXB37X.js.map +0 -1
  180. package/dist/chunk-5MAYUGTE.cjs.map +0 -1
  181. package/dist/chunk-623AOJM2.js.map +0 -1
  182. package/dist/chunk-6NULZPVC.js.map +0 -1
  183. package/dist/chunk-6V6GGBDK.cjs.map +0 -1
  184. package/dist/chunk-73653CJ4.cjs +0 -34
  185. package/dist/chunk-73653CJ4.cjs.map +0 -1
  186. package/dist/chunk-ADSJ42DO.js.map +0 -1
  187. package/dist/chunk-AUOEM3SF.cjs.map +0 -1
  188. package/dist/chunk-BQANU5BH.cjs.map +0 -1
  189. package/dist/chunk-C23RQVRK.js.map +0 -1
  190. package/dist/chunk-CW3AFJBR.cjs.map +0 -1
  191. package/dist/chunk-DUE3HCZD.js.map +0 -1
  192. package/dist/chunk-EH5KXQXY.cjs.map +0 -1
  193. package/dist/chunk-EPARJI4V.js.map +0 -1
  194. package/dist/chunk-FDRUAL3Z.cjs.map +0 -1
  195. package/dist/chunk-IQBMAE3F.js.map +0 -1
  196. package/dist/chunk-JHQUHFLX.js.map +0 -1
  197. package/dist/chunk-KUYZMSMF.cjs +0 -100
  198. package/dist/chunk-KUYZMSMF.cjs.map +0 -1
  199. package/dist/chunk-LLTEGXWZ.cjs +0 -562
  200. package/dist/chunk-LLTEGXWZ.cjs.map +0 -1
  201. package/dist/chunk-N4FGA3H4.js.map +0 -1
  202. package/dist/chunk-NEZJ7ZP5.js.map +0 -1
  203. package/dist/chunk-O4Z2WMFF.js.map +0 -1
  204. package/dist/chunk-OBMBSU2S.js.map +0 -1
  205. package/dist/chunk-OSHZQR3W.js.map +0 -1
  206. package/dist/chunk-P6KYXFZC.cjs.map +0 -1
  207. package/dist/chunk-R2BLBV43.cjs +0 -239
  208. package/dist/chunk-R2BLBV43.cjs.map +0 -1
  209. package/dist/chunk-RJRX34BZ.js.map +0 -1
  210. package/dist/chunk-T43RZTUT.js.map +0 -1
  211. package/dist/chunk-TLGX43P6.cjs.map +0 -1
  212. package/dist/chunk-U3LOLYAU.js.map +0 -1
  213. package/dist/chunk-UEKXVCKC.cjs +0 -716
  214. package/dist/chunk-UEKXVCKC.cjs.map +0 -1
  215. package/dist/chunk-VCLL5C7J.js.map +0 -1
  216. package/dist/chunk-VRS6WCEK.js.map +0 -1
  217. package/dist/chunk-WEYDDIBQ.cjs.map +0 -1
  218. package/dist/chunk-X4HDKFW5.cjs.map +0 -1
  219. package/dist/chunk-X4P4TQXH.cjs +0 -30
  220. package/dist/chunk-X4P4TQXH.cjs.map +0 -1
  221. package/dist/chunk-XA3UEJIW.cjs +0 -25
  222. package/dist/chunk-XA3UEJIW.cjs.map +0 -1
  223. package/dist/chunk-YBMUEEM5.js.map +0 -1
  224. package/dist/chunk-ZKVOS57Q.cjs.map +0 -1
package/dist/headless.cjs CHANGED
@@ -1,152 +1,292 @@
1
- 'use client';"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
- var _chunkP6KYXFZCcjs = require('./chunk-P6KYXFZC.cjs');
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
- var _chunkZKVOS57Qcjs = require('./chunk-ZKVOS57Q.cjs');
63
-
64
-
65
-
66
- var _chunk6V6GGBDKcjs = require('./chunk-6V6GGBDK.cjs');
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- var _chunk4SLJNZSMcjs = require('./chunk-4SLJNZSM.cjs');
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
- exports.BlockShell = _chunkP6KYXFZCcjs.BlockShell; exports.EditableRegion = _chunkP6KYXFZCcjs.EditableRegion; exports.EditorView = _chunkP6KYXFZCcjs.EditorView; exports.PALETTE = _chunk4SLJNZSMcjs.PALETTE; exports.SelectionSink = _chunkP6KYXFZCcjs.SelectionSink; exports.Transaction = _chunkZKVOS57Qcjs.Transaction; exports.ViewController = _chunkP6KYXFZCcjs.ViewController; exports.VoidBlockFallback = _chunkP6KYXFZCcjs.VoidBlockFallback; exports.addMarkStep = _chunkZKVOS57Qcjs.addMarkStep; exports.applyTransaction = _chunkZKVOS57Qcjs.applyTransaction; exports.atom = _chunk4SLJNZSMcjs.atom; exports.blockInputRules = _chunkZKVOS57Qcjs.blockInputRules; exports.blockRangeSelection = _chunkZKVOS57Qcjs.blockRangeSelection; exports.caretFromPoint = _chunkP6KYXFZCcjs.caretFromPoint; exports.coreBlockSpecs = _chunk4SLJNZSMcjs.coreBlockSpecs; exports.coreExtensions = _chunkZKVOS57Qcjs.coreExtensions; exports.countDoc = _chunkZKVOS57Qcjs.countDoc; exports.countText = _chunkZKVOS57Qcjs.countText; exports.createBlockCodec = _chunk4SLJNZSMcjs.createBlockCodec; exports.createEditor = _chunkZKVOS57Qcjs.createEditor; exports.createPluginKey = _chunkZKVOS57Qcjs.createPluginKey; exports.createSchema = _chunk4SLJNZSMcjs.createSchema; exports.createState = _chunkZKVOS57Qcjs.createState; exports.defaultRenderers = _chunkP6KYXFZCcjs.defaultRenderers; exports.defineExtension = _chunkZKVOS57Qcjs.defineExtension; exports.diffBlocks = _chunk6V6GGBDKcjs.diffBlocks; exports.diffInline = _chunk6V6GGBDKcjs.diffInline; exports.domMapOf = _chunkP6KYXFZCcjs.domMapOf; exports.fromHTML = _chunkZKVOS57Qcjs.fromHTML; exports.fromMarkdown = _chunk4SLJNZSMcjs.fromMarkdown; exports.getPluginState = _chunkZKVOS57Qcjs.getPluginState; exports.hostKey = _chunkP6KYXFZCcjs.hostKey; exports.insertBlockAfter = _chunkZKVOS57Qcjs.insertBlockAfter; exports.insertBlocksStep = _chunkZKVOS57Qcjs.insertBlocksStep; exports.insertText = _chunkZKVOS57Qcjs.insertText; exports.insertTextWithRules = _chunkZKVOS57Qcjs.insertTextWithRules; exports.isCrossSelection = _chunkP6KYXFZCcjs.isCrossSelection; exports.joinBlocksStep = _chunkZKVOS57Qcjs.joinBlocksStep; exports.keyName = _chunkZKVOS57Qcjs.keyName; exports.markInputRules = _chunkZKVOS57Qcjs.markInputRules; exports.moveBlocksStep = _chunkZKVOS57Qcjs.moveBlocksStep; exports.nodeSelection = _chunkZKVOS57Qcjs.nodeSelection; exports.normalizeInline = _chunk4SLJNZSMcjs.normalizeInline; exports.normalizeKey = _chunkZKVOS57Qcjs.normalizeKey; exports.parseInline = _chunk4SLJNZSMcjs.parseInline; exports.redo = _chunkZKVOS57Qcjs.redo; exports.removeBlocksStep = _chunkZKVOS57Qcjs.removeBlocksStep; exports.removeMarkStep = _chunkZKVOS57Qcjs.removeMarkStep; exports.renderInline = _chunkP6KYXFZCcjs.renderInline; exports.replaceBlockStep = _chunkZKVOS57Qcjs.replaceBlockStep; exports.replaceDocStep = _chunkZKVOS57Qcjs.replaceDocStep; exports.replaceInlineStep = _chunkZKVOS57Qcjs.replaceInlineStep; exports.sanitizeHref = _chunk4SLJNZSMcjs.sanitizeHref; exports.serializeInline = _chunk4SLJNZSMcjs.serializeInline; exports.setAttrsStep = _chunkZKVOS57Qcjs.setAttrsStep; exports.setBlockType = _chunkZKVOS57Qcjs.setBlockType; exports.setIndentStep = _chunkZKVOS57Qcjs.setIndentStep; exports.splitBlockStep = _chunkZKVOS57Qcjs.splitBlockStep; exports.stepFromJSON = _chunkZKVOS57Qcjs.stepFromJSON; exports.text = _chunk4SLJNZSMcjs.text; exports.textSelection = _chunkZKVOS57Qcjs.textSelection; exports.toHTML = _chunkZKVOS57Qcjs.toHTML; exports.toMarkdown = _chunkZKVOS57Qcjs.toMarkdown; exports.toPlainText = _chunkZKVOS57Qcjs.toPlainText; exports.toggleMark = _chunkZKVOS57Qcjs.toggleMark; exports.typographyRules = _chunkZKVOS57Qcjs.typographyRules; exports.undo = _chunkZKVOS57Qcjs.undo; exports.useEditorState = _chunkP6KYXFZCcjs.useEditorState; exports.useQuoinEditor = _chunkP6KYXFZCcjs.useQuoinEditor; exports.useViewController = _chunkP6KYXFZCcjs.useViewController;
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var chunkIGZRZIAF_cjs = require('./chunk-IGZRZIAF.cjs');
5
+ var chunkVFSVN5IQ_cjs = require('./chunk-VFSVN5IQ.cjs');
6
+ var chunk7SVKLWDT_cjs = require('./chunk-7SVKLWDT.cjs');
7
+ var chunkAIS37SL2_cjs = require('./chunk-AIS37SL2.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "BlockShell", {
12
+ enumerable: true,
13
+ get: function () { return chunkIGZRZIAF_cjs.BlockShell; }
14
+ });
15
+ Object.defineProperty(exports, "EditableRegion", {
16
+ enumerable: true,
17
+ get: function () { return chunkIGZRZIAF_cjs.EditableRegion; }
18
+ });
19
+ Object.defineProperty(exports, "EditorView", {
20
+ enumerable: true,
21
+ get: function () { return chunkIGZRZIAF_cjs.EditorView; }
22
+ });
23
+ Object.defineProperty(exports, "SelectionSink", {
24
+ enumerable: true,
25
+ get: function () { return chunkIGZRZIAF_cjs.SelectionSink; }
26
+ });
27
+ Object.defineProperty(exports, "ViewController", {
28
+ enumerable: true,
29
+ get: function () { return chunkIGZRZIAF_cjs.ViewController; }
30
+ });
31
+ Object.defineProperty(exports, "VoidBlockFallback", {
32
+ enumerable: true,
33
+ get: function () { return chunkIGZRZIAF_cjs.VoidBlockFallback; }
34
+ });
35
+ Object.defineProperty(exports, "caretFromPoint", {
36
+ enumerable: true,
37
+ get: function () { return chunkIGZRZIAF_cjs.caretFromPoint; }
38
+ });
39
+ Object.defineProperty(exports, "defaultRenderers", {
40
+ enumerable: true,
41
+ get: function () { return chunkIGZRZIAF_cjs.defaultRenderers; }
42
+ });
43
+ Object.defineProperty(exports, "domMapOf", {
44
+ enumerable: true,
45
+ get: function () { return chunkIGZRZIAF_cjs.domMapOf; }
46
+ });
47
+ Object.defineProperty(exports, "hostKey", {
48
+ enumerable: true,
49
+ get: function () { return chunkIGZRZIAF_cjs.hostKey; }
50
+ });
51
+ Object.defineProperty(exports, "isCrossSelection", {
52
+ enumerable: true,
53
+ get: function () { return chunkIGZRZIAF_cjs.isCrossSelection; }
54
+ });
55
+ Object.defineProperty(exports, "renderInline", {
56
+ enumerable: true,
57
+ get: function () { return chunkIGZRZIAF_cjs.renderInline; }
58
+ });
59
+ Object.defineProperty(exports, "useEditorState", {
60
+ enumerable: true,
61
+ get: function () { return chunkIGZRZIAF_cjs.useEditorState; }
62
+ });
63
+ Object.defineProperty(exports, "useQuoinEditor", {
64
+ enumerable: true,
65
+ get: function () { return chunkIGZRZIAF_cjs.useQuoinEditor; }
66
+ });
67
+ Object.defineProperty(exports, "useViewController", {
68
+ enumerable: true,
69
+ get: function () { return chunkIGZRZIAF_cjs.useViewController; }
70
+ });
71
+ Object.defineProperty(exports, "Transaction", {
72
+ enumerable: true,
73
+ get: function () { return chunkVFSVN5IQ_cjs.Transaction; }
74
+ });
75
+ Object.defineProperty(exports, "addMarkStep", {
76
+ enumerable: true,
77
+ get: function () { return chunkVFSVN5IQ_cjs.addMarkStep; }
78
+ });
79
+ Object.defineProperty(exports, "applyTransaction", {
80
+ enumerable: true,
81
+ get: function () { return chunkVFSVN5IQ_cjs.applyTransaction; }
82
+ });
83
+ Object.defineProperty(exports, "blockInputRules", {
84
+ enumerable: true,
85
+ get: function () { return chunkVFSVN5IQ_cjs.blockInputRules; }
86
+ });
87
+ Object.defineProperty(exports, "blockRangeSelection", {
88
+ enumerable: true,
89
+ get: function () { return chunkVFSVN5IQ_cjs.blockRangeSelection; }
90
+ });
91
+ Object.defineProperty(exports, "coreExtensions", {
92
+ enumerable: true,
93
+ get: function () { return chunkVFSVN5IQ_cjs.coreExtensions; }
94
+ });
95
+ Object.defineProperty(exports, "countDoc", {
96
+ enumerable: true,
97
+ get: function () { return chunkVFSVN5IQ_cjs.countDoc; }
98
+ });
99
+ Object.defineProperty(exports, "countText", {
100
+ enumerable: true,
101
+ get: function () { return chunkVFSVN5IQ_cjs.countText; }
102
+ });
103
+ Object.defineProperty(exports, "createEditor", {
104
+ enumerable: true,
105
+ get: function () { return chunkVFSVN5IQ_cjs.createEditor; }
106
+ });
107
+ Object.defineProperty(exports, "createPluginKey", {
108
+ enumerable: true,
109
+ get: function () { return chunkVFSVN5IQ_cjs.createPluginKey; }
110
+ });
111
+ Object.defineProperty(exports, "createState", {
112
+ enumerable: true,
113
+ get: function () { return chunkVFSVN5IQ_cjs.createState; }
114
+ });
115
+ Object.defineProperty(exports, "defineExtension", {
116
+ enumerable: true,
117
+ get: function () { return chunkVFSVN5IQ_cjs.defineExtension; }
118
+ });
119
+ Object.defineProperty(exports, "fromHTML", {
120
+ enumerable: true,
121
+ get: function () { return chunkVFSVN5IQ_cjs.fromHTML; }
122
+ });
123
+ Object.defineProperty(exports, "getPluginState", {
124
+ enumerable: true,
125
+ get: function () { return chunkVFSVN5IQ_cjs.getPluginState; }
126
+ });
127
+ Object.defineProperty(exports, "insertBlockAfter", {
128
+ enumerable: true,
129
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlockAfter; }
130
+ });
131
+ Object.defineProperty(exports, "insertBlocksStep", {
132
+ enumerable: true,
133
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlocksStep; }
134
+ });
135
+ Object.defineProperty(exports, "insertText", {
136
+ enumerable: true,
137
+ get: function () { return chunkVFSVN5IQ_cjs.insertText; }
138
+ });
139
+ Object.defineProperty(exports, "insertTextWithRules", {
140
+ enumerable: true,
141
+ get: function () { return chunkVFSVN5IQ_cjs.insertTextWithRules; }
142
+ });
143
+ Object.defineProperty(exports, "joinBlocksStep", {
144
+ enumerable: true,
145
+ get: function () { return chunkVFSVN5IQ_cjs.joinBlocksStep; }
146
+ });
147
+ Object.defineProperty(exports, "keyName", {
148
+ enumerable: true,
149
+ get: function () { return chunkVFSVN5IQ_cjs.keyName; }
150
+ });
151
+ Object.defineProperty(exports, "markInputRules", {
152
+ enumerable: true,
153
+ get: function () { return chunkVFSVN5IQ_cjs.markInputRules; }
154
+ });
155
+ Object.defineProperty(exports, "moveBlocksStep", {
156
+ enumerable: true,
157
+ get: function () { return chunkVFSVN5IQ_cjs.moveBlocksStep; }
158
+ });
159
+ Object.defineProperty(exports, "nodeSelection", {
160
+ enumerable: true,
161
+ get: function () { return chunkVFSVN5IQ_cjs.nodeSelection; }
162
+ });
163
+ Object.defineProperty(exports, "normalizeKey", {
164
+ enumerable: true,
165
+ get: function () { return chunkVFSVN5IQ_cjs.normalizeKey; }
166
+ });
167
+ Object.defineProperty(exports, "redo", {
168
+ enumerable: true,
169
+ get: function () { return chunkVFSVN5IQ_cjs.redo; }
170
+ });
171
+ Object.defineProperty(exports, "removeBlocksStep", {
172
+ enumerable: true,
173
+ get: function () { return chunkVFSVN5IQ_cjs.removeBlocksStep; }
174
+ });
175
+ Object.defineProperty(exports, "removeMarkStep", {
176
+ enumerable: true,
177
+ get: function () { return chunkVFSVN5IQ_cjs.removeMarkStep; }
178
+ });
179
+ Object.defineProperty(exports, "replaceBlockStep", {
180
+ enumerable: true,
181
+ get: function () { return chunkVFSVN5IQ_cjs.replaceBlockStep; }
182
+ });
183
+ Object.defineProperty(exports, "replaceDocStep", {
184
+ enumerable: true,
185
+ get: function () { return chunkVFSVN5IQ_cjs.replaceDocStep; }
186
+ });
187
+ Object.defineProperty(exports, "replaceInlineStep", {
188
+ enumerable: true,
189
+ get: function () { return chunkVFSVN5IQ_cjs.replaceInlineStep; }
190
+ });
191
+ Object.defineProperty(exports, "setAttrsStep", {
192
+ enumerable: true,
193
+ get: function () { return chunkVFSVN5IQ_cjs.setAttrsStep; }
194
+ });
195
+ Object.defineProperty(exports, "setBlockType", {
196
+ enumerable: true,
197
+ get: function () { return chunkVFSVN5IQ_cjs.setBlockType; }
198
+ });
199
+ Object.defineProperty(exports, "setIndentStep", {
200
+ enumerable: true,
201
+ get: function () { return chunkVFSVN5IQ_cjs.setIndentStep; }
202
+ });
203
+ Object.defineProperty(exports, "splitBlockStep", {
204
+ enumerable: true,
205
+ get: function () { return chunkVFSVN5IQ_cjs.splitBlockStep; }
206
+ });
207
+ Object.defineProperty(exports, "stepFromJSON", {
208
+ enumerable: true,
209
+ get: function () { return chunkVFSVN5IQ_cjs.stepFromJSON; }
210
+ });
211
+ Object.defineProperty(exports, "textSelection", {
212
+ enumerable: true,
213
+ get: function () { return chunkVFSVN5IQ_cjs.textSelection; }
214
+ });
215
+ Object.defineProperty(exports, "toHTML", {
216
+ enumerable: true,
217
+ get: function () { return chunkVFSVN5IQ_cjs.toHTML; }
218
+ });
219
+ Object.defineProperty(exports, "toMarkdown", {
220
+ enumerable: true,
221
+ get: function () { return chunkVFSVN5IQ_cjs.toMarkdown; }
222
+ });
223
+ Object.defineProperty(exports, "toPlainText", {
224
+ enumerable: true,
225
+ get: function () { return chunkVFSVN5IQ_cjs.toPlainText; }
226
+ });
227
+ Object.defineProperty(exports, "toggleMark", {
228
+ enumerable: true,
229
+ get: function () { return chunkVFSVN5IQ_cjs.toggleMark; }
230
+ });
231
+ Object.defineProperty(exports, "typographyRules", {
232
+ enumerable: true,
233
+ get: function () { return chunkVFSVN5IQ_cjs.typographyRules; }
234
+ });
235
+ Object.defineProperty(exports, "undo", {
236
+ enumerable: true,
237
+ get: function () { return chunkVFSVN5IQ_cjs.undo; }
238
+ });
239
+ Object.defineProperty(exports, "diffBlocks", {
240
+ enumerable: true,
241
+ get: function () { return chunk7SVKLWDT_cjs.diffBlocks; }
242
+ });
243
+ Object.defineProperty(exports, "diffInline", {
244
+ enumerable: true,
245
+ get: function () { return chunk7SVKLWDT_cjs.diffInline; }
246
+ });
247
+ Object.defineProperty(exports, "PALETTE", {
248
+ enumerable: true,
249
+ get: function () { return chunkAIS37SL2_cjs.PALETTE; }
250
+ });
251
+ Object.defineProperty(exports, "atom", {
252
+ enumerable: true,
253
+ get: function () { return chunkAIS37SL2_cjs.atom; }
254
+ });
255
+ Object.defineProperty(exports, "coreBlockSpecs", {
256
+ enumerable: true,
257
+ get: function () { return chunkAIS37SL2_cjs.coreBlockSpecs; }
258
+ });
259
+ Object.defineProperty(exports, "createBlockCodec", {
260
+ enumerable: true,
261
+ get: function () { return chunkAIS37SL2_cjs.createBlockCodec; }
262
+ });
263
+ Object.defineProperty(exports, "createSchema", {
264
+ enumerable: true,
265
+ get: function () { return chunkAIS37SL2_cjs.createSchema; }
266
+ });
267
+ Object.defineProperty(exports, "fromMarkdown", {
268
+ enumerable: true,
269
+ get: function () { return chunkAIS37SL2_cjs.fromMarkdown; }
270
+ });
271
+ Object.defineProperty(exports, "normalizeInline", {
272
+ enumerable: true,
273
+ get: function () { return chunkAIS37SL2_cjs.normalizeInline; }
274
+ });
275
+ Object.defineProperty(exports, "parseInline", {
276
+ enumerable: true,
277
+ get: function () { return chunkAIS37SL2_cjs.parseInline; }
278
+ });
279
+ Object.defineProperty(exports, "sanitizeHref", {
280
+ enumerable: true,
281
+ get: function () { return chunkAIS37SL2_cjs.sanitizeHref; }
282
+ });
283
+ Object.defineProperty(exports, "serializeInline", {
284
+ enumerable: true,
285
+ get: function () { return chunkAIS37SL2_cjs.serializeInline; }
286
+ });
287
+ Object.defineProperty(exports, "text", {
288
+ enumerable: true,
289
+ get: function () { return chunkAIS37SL2_cjs.text; }
290
+ });
291
+ //# sourceMappingURL=headless.cjs.map
152
292
  //# sourceMappingURL=headless.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["headless.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yzHAAC","file":"/home/runner/work/quoin-editor/quoin-editor/dist/headless.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":";","file":"headless.cjs"}
@@ -74,6 +74,10 @@ type EditorViewProps = {
74
74
  blockLabel?: BlockLabel;
75
75
  /** The text and accessible name of a block whose type no renderer draws, in place of the English one. */
76
76
  unsupportedBlockLabel?: string;
77
+ /** The accessible name of what a block draws in place of itself when its renderer throws. */
78
+ blockErrorLabel?: string;
79
+ /** Told of each error a block's renderer throws, besides React's own report of a caught error. */
80
+ onBlockError?: (error: Error) => void;
77
81
  /** The text of the host an empty document draws. */
78
82
  placeholder?: string;
79
83
  /** The placeholder of each empty block, by default the name of a heading and nothing for other blocks. */
@@ -83,7 +87,7 @@ type EditorViewProps = {
83
87
  /** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
84
88
  children?: ReactNode;
85
89
  };
86
- declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
90
+ 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;
87
91
 
88
92
  type EditableRegionProps = {
89
93
  block: string;
@@ -74,6 +74,10 @@ type EditorViewProps = {
74
74
  blockLabel?: BlockLabel;
75
75
  /** The text and accessible name of a block whose type no renderer draws, in place of the English one. */
76
76
  unsupportedBlockLabel?: string;
77
+ /** The accessible name of what a block draws in place of itself when its renderer throws. */
78
+ blockErrorLabel?: string;
79
+ /** Told of each error a block's renderer throws, besides React's own report of a caught error. */
80
+ onBlockError?: (error: Error) => void;
77
81
  /** The text of the host an empty document draws. */
78
82
  placeholder?: string;
79
83
  /** The placeholder of each empty block, by default the name of a heading and nothing for other blocks. */
@@ -83,7 +87,7 @@ type EditorViewProps = {
83
87
  /** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
84
88
  children?: ReactNode;
85
89
  };
86
- declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
90
+ 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;
87
91
 
88
92
  type EditableRegionProps = {
89
93
  block: string;
package/dist/headless.js CHANGED
@@ -1,152 +1,7 @@
1
- "use client";
2
- import {
3
- BlockShell,
4
- EditableRegion,
5
- EditorView,
6
- SelectionSink,
7
- ViewController,
8
- VoidBlockFallback,
9
- caretFromPoint,
10
- defaultRenderers,
11
- domMapOf,
12
- hostKey,
13
- isCrossSelection,
14
- renderInline,
15
- useEditorState,
16
- useQuoinEditor,
17
- useViewController
18
- } from "./chunk-EPARJI4V.js";
19
- import {
20
- Transaction,
21
- addMarkStep,
22
- applyTransaction,
23
- blockInputRules,
24
- blockRangeSelection,
25
- coreExtensions,
26
- countDoc,
27
- countText,
28
- createEditor,
29
- createPluginKey,
30
- createState,
31
- defineExtension,
32
- fromHTML,
33
- getPluginState,
34
- insertBlockAfter,
35
- insertBlocksStep,
36
- insertText,
37
- insertTextWithRules,
38
- joinBlocksStep,
39
- keyName,
40
- markInputRules,
41
- moveBlocksStep,
42
- nodeSelection,
43
- normalizeKey,
44
- redo,
45
- removeBlocksStep,
46
- removeMarkStep,
47
- replaceBlockStep,
48
- replaceDocStep,
49
- replaceInlineStep,
50
- setAttrsStep,
51
- setBlockType,
52
- setIndentStep,
53
- splitBlockStep,
54
- stepFromJSON,
55
- textSelection,
56
- toHTML,
57
- toMarkdown,
58
- toPlainText,
59
- toggleMark,
60
- typographyRules,
61
- undo
62
- } from "./chunk-OBMBSU2S.js";
63
- import {
64
- diffBlocks,
65
- diffInline
66
- } from "./chunk-RJRX34BZ.js";
67
- import {
68
- PALETTE,
69
- atom,
70
- coreBlockSpecs,
71
- createBlockCodec,
72
- createSchema,
73
- fromMarkdown,
74
- normalizeInline,
75
- parseInline,
76
- sanitizeHref,
77
- serializeInline,
78
- text
79
- } from "./chunk-4XFXB37X.js";
80
- export {
81
- BlockShell,
82
- EditableRegion,
83
- EditorView,
84
- PALETTE,
85
- SelectionSink,
86
- Transaction,
87
- ViewController,
88
- VoidBlockFallback,
89
- addMarkStep,
90
- applyTransaction,
91
- atom,
92
- blockInputRules,
93
- blockRangeSelection,
94
- caretFromPoint,
95
- coreBlockSpecs,
96
- coreExtensions,
97
- countDoc,
98
- countText,
99
- createBlockCodec,
100
- createEditor,
101
- createPluginKey,
102
- createSchema,
103
- createState,
104
- defaultRenderers,
105
- defineExtension,
106
- diffBlocks,
107
- diffInline,
108
- domMapOf,
109
- fromHTML,
110
- fromMarkdown,
111
- getPluginState,
112
- hostKey,
113
- insertBlockAfter,
114
- insertBlocksStep,
115
- insertText,
116
- insertTextWithRules,
117
- isCrossSelection,
118
- joinBlocksStep,
119
- keyName,
120
- markInputRules,
121
- moveBlocksStep,
122
- nodeSelection,
123
- normalizeInline,
124
- normalizeKey,
125
- parseInline,
126
- redo,
127
- removeBlocksStep,
128
- removeMarkStep,
129
- renderInline,
130
- replaceBlockStep,
131
- replaceDocStep,
132
- replaceInlineStep,
133
- sanitizeHref,
134
- serializeInline,
135
- setAttrsStep,
136
- setBlockType,
137
- setIndentStep,
138
- splitBlockStep,
139
- stepFromJSON,
140
- text,
141
- textSelection,
142
- toHTML,
143
- toMarkdown,
144
- toPlainText,
145
- toggleMark,
146
- typographyRules,
147
- undo,
148
- useEditorState,
149
- useQuoinEditor,
150
- useViewController
151
- };
1
+ 'use client';
2
+ export { BlockShell, EditableRegion, EditorView, SelectionSink, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, hostKey, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-IEP7BPFN.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-L4D23LM2.js';
4
+ export { diffBlocks, diffInline } from './chunk-3BXUGX5F.js';
5
+ export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-L6OW2FL3.js';
6
+ //# sourceMappingURL=headless.js.map
152
7
  //# sourceMappingURL=headless.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"names":[],"mappings":";","file":"headless.js"}