quoin-editor 1.0.2 → 1.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.
Files changed (224) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/ai.cjs +168 -249
  3. package/dist/ai.cjs.map +1 -1
  4. package/dist/ai.js +37 -121
  5. package/dist/ai.js.map +1 -1
  6. package/dist/catalogue.cjs +28 -43
  7. package/dist/catalogue.cjs.map +1 -1
  8. package/dist/catalogue.js +20 -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-6V6GGBDK.cjs → chunk-7SVKLWDT.cjs} +24 -31
  19. package/dist/chunk-7SVKLWDT.cjs.map +1 -0
  20. package/dist/{chunk-EH5KXQXY.cjs → chunk-A6PGQVTR.cjs} +36 -20
  21. package/dist/chunk-A6PGQVTR.cjs.map +1 -0
  22. package/dist/{chunk-P6KYXFZC.cjs → chunk-ACSEYJJF.cjs} +426 -534
  23. package/dist/chunk-ACSEYJJF.cjs.map +1 -0
  24. package/dist/{chunk-4SLJNZSM.cjs → chunk-AIS37SL2.cjs} +201 -198
  25. package/dist/chunk-AIS37SL2.cjs.map +1 -0
  26. package/dist/{chunk-X4HDKFW5.cjs → chunk-DTQFYHDJ.cjs} +56 -105
  27. package/dist/chunk-DTQFYHDJ.cjs.map +1 -0
  28. package/dist/{chunk-O4Z2WMFF.js → chunk-HDJ653LM.js} +25 -18
  29. package/dist/chunk-HDJ653LM.js.map +1 -0
  30. package/dist/chunk-HQ43EIYO.cjs +94 -0
  31. package/dist/chunk-HQ43EIYO.cjs.map +1 -0
  32. package/dist/{chunk-6NULZPVC.js → chunk-HTLWPSMU.js} +8 -61
  33. package/dist/chunk-HTLWPSMU.js.map +1 -0
  34. package/dist/{chunk-ADSJ42DO.js → chunk-HWEK7EX5.js} +17 -69
  35. package/dist/chunk-HWEK7EX5.js.map +1 -0
  36. package/dist/{chunk-623AOJM2.js → chunk-ITXCE6KL.js} +7 -25
  37. package/dist/chunk-ITXCE6KL.js.map +1 -0
  38. package/dist/{chunk-AUOEM3SF.cjs → chunk-IXVGHH7F.cjs} +102 -155
  39. package/dist/chunk-IXVGHH7F.cjs.map +1 -0
  40. package/dist/{chunk-NEZJ7ZP5.js → chunk-JZJIWRF3.js} +4 -8
  41. package/dist/chunk-JZJIWRF3.js.map +1 -0
  42. package/dist/{chunk-C23RQVRK.js → chunk-KSF2HILJ.js} +66 -216
  43. package/dist/chunk-KSF2HILJ.js.map +1 -0
  44. package/dist/{chunk-OBMBSU2S.js → chunk-L4D23LM2.js} +5 -184
  45. package/dist/chunk-L4D23LM2.js.map +1 -0
  46. package/dist/{chunk-4XFXB37X.js → chunk-L6OW2FL3.js} +7 -90
  47. package/dist/chunk-L6OW2FL3.js.map +1 -0
  48. package/dist/chunk-LE5XMIFJ.cjs +4 -3
  49. package/dist/chunk-LE5XMIFJ.cjs.map +1 -1
  50. package/dist/{chunk-5MAYUGTE.cjs → chunk-LY2D45F2.cjs} +233 -363
  51. package/dist/chunk-LY2D45F2.cjs.map +1 -0
  52. package/dist/{chunk-VCLL5C7J.js → chunk-MGMA5PEL.js} +14 -57
  53. package/dist/chunk-MGMA5PEL.js.map +1 -0
  54. package/dist/chunk-MQUCCSWG.js +2 -3
  55. package/dist/chunk-MQUCCSWG.js.map +1 -1
  56. package/dist/chunk-NO3KTZDY.cjs +33 -0
  57. package/dist/chunk-NO3KTZDY.cjs.map +1 -0
  58. package/dist/{chunk-TLGX43P6.cjs → chunk-OM7E43ZN.cjs} +89 -86
  59. package/dist/chunk-OM7E43ZN.cjs.map +1 -0
  60. package/dist/{chunk-JHQUHFLX.js → chunk-PJCHSHM3.js} +38 -120
  61. package/dist/chunk-PJCHSHM3.js.map +1 -0
  62. package/dist/{chunk-EPARJI4V.js → chunk-QC35D2AU.js} +107 -262
  63. package/dist/chunk-QC35D2AU.js.map +1 -0
  64. package/dist/{chunk-CW3AFJBR.cjs → chunk-QEMGOL5L.cjs} +1302 -1773
  65. package/dist/chunk-QEMGOL5L.cjs.map +1 -0
  66. package/dist/chunk-QWS7KH3K.cjs +483 -0
  67. package/dist/chunk-QWS7KH3K.cjs.map +1 -0
  68. package/dist/{chunk-IQBMAE3F.js → chunk-RHQPAW4W.js} +34 -92
  69. package/dist/chunk-RHQPAW4W.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-SAEQMDAU.js} +60 -167
  73. package/dist/chunk-SAEQMDAU.js.map +1 -0
  74. package/dist/chunk-SKZC4K5S.cjs +612 -0
  75. package/dist/chunk-SKZC4K5S.cjs.map +1 -0
  76. package/dist/{chunk-N4FGA3H4.js → chunk-TBCHYHNU.js} +38 -105
  77. package/dist/chunk-TBCHYHNU.js.map +1 -0
  78. package/dist/{chunk-OSHZQR3W.js → chunk-TNN6Z52D.js} +13 -45
  79. package/dist/chunk-TNN6Z52D.js.map +1 -0
  80. package/dist/{chunk-YBMUEEM5.js → chunk-TYZSB7JT.js} +4 -8
  81. package/dist/chunk-TYZSB7JT.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-FDRUAL3Z.cjs → chunk-WDO6DBYU.cjs} +90 -153
  85. package/dist/chunk-WDO6DBYU.cjs.map +1 -0
  86. package/dist/{chunk-WEYDDIBQ.cjs → chunk-WHV5ZSIO.cjs} +36 -64
  87. package/dist/chunk-WHV5ZSIO.cjs.map +1 -0
  88. package/dist/{chunk-T43RZTUT.js → chunk-XJDPQFPU.js} +693 -1247
  89. package/dist/chunk-XJDPQFPU.js.map +1 -0
  90. package/dist/{chunk-BQANU5BH.cjs → chunk-ZTLYHRZT.cjs} +34 -44
  91. package/dist/chunk-ZTLYHRZT.cjs.map +1 -0
  92. package/dist/chunk-ZWB7SZVI.cjs +200 -0
  93. package/dist/chunk-ZWB7SZVI.cjs.map +1 -0
  94. package/dist/comments.cjs +209 -290
  95. package/dist/comments.cjs.map +1 -1
  96. package/dist/comments.js +81 -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 +18 -12
  109. package/dist/embed.cjs.map +1 -1
  110. package/dist/embed.js +9 -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 +25 -17
  117. package/dist/emoji.cjs.map +1 -1
  118. package/dist/emoji.js +8 -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 +29 -19
  125. package/dist/find.cjs.map +1 -1
  126. package/dist/find.js +8 -19
  127. package/dist/find.js.map +1 -1
  128. package/dist/headless.cjs +290 -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 +5 -151
  133. package/dist/headless.js.map +1 -1
  134. package/dist/index.cjs +348 -183
  135. package/dist/index.cjs.map +1 -1
  136. package/dist/index.d.cts +14 -4
  137. package/dist/index.d.ts +14 -4
  138. package/dist/index.js +7 -183
  139. package/dist/index.js.map +1 -1
  140. package/dist/math.cjs +19 -13
  141. package/dist/math.cjs.map +1 -1
  142. package/dist/math.js +10 -17
  143. package/dist/math.js.map +1 -1
  144. package/dist/mention.cjs +19 -13
  145. package/dist/mention.cjs.map +1 -1
  146. package/dist/mention.js +10 -17
  147. package/dist/mention.js.map +1 -1
  148. package/dist/presence.cjs +98 -132
  149. package/dist/presence.cjs.map +1 -1
  150. package/dist/presence.js +21 -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 +26 -18
  155. package/dist/stats.cjs.map +1 -1
  156. package/dist/stats.js +9 -18
  157. package/dist/stats.js.map +1 -1
  158. package/dist/styles.css +1 -1
  159. package/dist/table.cjs +89 -49
  160. package/dist/table.cjs.map +1 -1
  161. package/dist/table.js +8 -49
  162. package/dist/table.js.map +1 -1
  163. package/dist/toc.cjs +25 -17
  164. package/dist/toc.cjs.map +1 -1
  165. package/dist/toc.js +8 -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 +1 -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,291 @@
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';'use strict';
2
+
3
+ var chunkACSEYJJF_cjs = require('./chunk-ACSEYJJF.cjs');
4
+ var chunkVFSVN5IQ_cjs = require('./chunk-VFSVN5IQ.cjs');
5
+ var chunk7SVKLWDT_cjs = require('./chunk-7SVKLWDT.cjs');
6
+ var chunkAIS37SL2_cjs = require('./chunk-AIS37SL2.cjs');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "BlockShell", {
11
+ enumerable: true,
12
+ get: function () { return chunkACSEYJJF_cjs.BlockShell; }
13
+ });
14
+ Object.defineProperty(exports, "EditableRegion", {
15
+ enumerable: true,
16
+ get: function () { return chunkACSEYJJF_cjs.EditableRegion; }
17
+ });
18
+ Object.defineProperty(exports, "EditorView", {
19
+ enumerable: true,
20
+ get: function () { return chunkACSEYJJF_cjs.EditorView; }
21
+ });
22
+ Object.defineProperty(exports, "SelectionSink", {
23
+ enumerable: true,
24
+ get: function () { return chunkACSEYJJF_cjs.SelectionSink; }
25
+ });
26
+ Object.defineProperty(exports, "ViewController", {
27
+ enumerable: true,
28
+ get: function () { return chunkACSEYJJF_cjs.ViewController; }
29
+ });
30
+ Object.defineProperty(exports, "VoidBlockFallback", {
31
+ enumerable: true,
32
+ get: function () { return chunkACSEYJJF_cjs.VoidBlockFallback; }
33
+ });
34
+ Object.defineProperty(exports, "caretFromPoint", {
35
+ enumerable: true,
36
+ get: function () { return chunkACSEYJJF_cjs.caretFromPoint; }
37
+ });
38
+ Object.defineProperty(exports, "defaultRenderers", {
39
+ enumerable: true,
40
+ get: function () { return chunkACSEYJJF_cjs.defaultRenderers; }
41
+ });
42
+ Object.defineProperty(exports, "domMapOf", {
43
+ enumerable: true,
44
+ get: function () { return chunkACSEYJJF_cjs.domMapOf; }
45
+ });
46
+ Object.defineProperty(exports, "hostKey", {
47
+ enumerable: true,
48
+ get: function () { return chunkACSEYJJF_cjs.hostKey; }
49
+ });
50
+ Object.defineProperty(exports, "isCrossSelection", {
51
+ enumerable: true,
52
+ get: function () { return chunkACSEYJJF_cjs.isCrossSelection; }
53
+ });
54
+ Object.defineProperty(exports, "renderInline", {
55
+ enumerable: true,
56
+ get: function () { return chunkACSEYJJF_cjs.renderInline; }
57
+ });
58
+ Object.defineProperty(exports, "useEditorState", {
59
+ enumerable: true,
60
+ get: function () { return chunkACSEYJJF_cjs.useEditorState; }
61
+ });
62
+ Object.defineProperty(exports, "useQuoinEditor", {
63
+ enumerable: true,
64
+ get: function () { return chunkACSEYJJF_cjs.useQuoinEditor; }
65
+ });
66
+ Object.defineProperty(exports, "useViewController", {
67
+ enumerable: true,
68
+ get: function () { return chunkACSEYJJF_cjs.useViewController; }
69
+ });
70
+ Object.defineProperty(exports, "Transaction", {
71
+ enumerable: true,
72
+ get: function () { return chunkVFSVN5IQ_cjs.Transaction; }
73
+ });
74
+ Object.defineProperty(exports, "addMarkStep", {
75
+ enumerable: true,
76
+ get: function () { return chunkVFSVN5IQ_cjs.addMarkStep; }
77
+ });
78
+ Object.defineProperty(exports, "applyTransaction", {
79
+ enumerable: true,
80
+ get: function () { return chunkVFSVN5IQ_cjs.applyTransaction; }
81
+ });
82
+ Object.defineProperty(exports, "blockInputRules", {
83
+ enumerable: true,
84
+ get: function () { return chunkVFSVN5IQ_cjs.blockInputRules; }
85
+ });
86
+ Object.defineProperty(exports, "blockRangeSelection", {
87
+ enumerable: true,
88
+ get: function () { return chunkVFSVN5IQ_cjs.blockRangeSelection; }
89
+ });
90
+ Object.defineProperty(exports, "coreExtensions", {
91
+ enumerable: true,
92
+ get: function () { return chunkVFSVN5IQ_cjs.coreExtensions; }
93
+ });
94
+ Object.defineProperty(exports, "countDoc", {
95
+ enumerable: true,
96
+ get: function () { return chunkVFSVN5IQ_cjs.countDoc; }
97
+ });
98
+ Object.defineProperty(exports, "countText", {
99
+ enumerable: true,
100
+ get: function () { return chunkVFSVN5IQ_cjs.countText; }
101
+ });
102
+ Object.defineProperty(exports, "createEditor", {
103
+ enumerable: true,
104
+ get: function () { return chunkVFSVN5IQ_cjs.createEditor; }
105
+ });
106
+ Object.defineProperty(exports, "createPluginKey", {
107
+ enumerable: true,
108
+ get: function () { return chunkVFSVN5IQ_cjs.createPluginKey; }
109
+ });
110
+ Object.defineProperty(exports, "createState", {
111
+ enumerable: true,
112
+ get: function () { return chunkVFSVN5IQ_cjs.createState; }
113
+ });
114
+ Object.defineProperty(exports, "defineExtension", {
115
+ enumerable: true,
116
+ get: function () { return chunkVFSVN5IQ_cjs.defineExtension; }
117
+ });
118
+ Object.defineProperty(exports, "fromHTML", {
119
+ enumerable: true,
120
+ get: function () { return chunkVFSVN5IQ_cjs.fromHTML; }
121
+ });
122
+ Object.defineProperty(exports, "getPluginState", {
123
+ enumerable: true,
124
+ get: function () { return chunkVFSVN5IQ_cjs.getPluginState; }
125
+ });
126
+ Object.defineProperty(exports, "insertBlockAfter", {
127
+ enumerable: true,
128
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlockAfter; }
129
+ });
130
+ Object.defineProperty(exports, "insertBlocksStep", {
131
+ enumerable: true,
132
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlocksStep; }
133
+ });
134
+ Object.defineProperty(exports, "insertText", {
135
+ enumerable: true,
136
+ get: function () { return chunkVFSVN5IQ_cjs.insertText; }
137
+ });
138
+ Object.defineProperty(exports, "insertTextWithRules", {
139
+ enumerable: true,
140
+ get: function () { return chunkVFSVN5IQ_cjs.insertTextWithRules; }
141
+ });
142
+ Object.defineProperty(exports, "joinBlocksStep", {
143
+ enumerable: true,
144
+ get: function () { return chunkVFSVN5IQ_cjs.joinBlocksStep; }
145
+ });
146
+ Object.defineProperty(exports, "keyName", {
147
+ enumerable: true,
148
+ get: function () { return chunkVFSVN5IQ_cjs.keyName; }
149
+ });
150
+ Object.defineProperty(exports, "markInputRules", {
151
+ enumerable: true,
152
+ get: function () { return chunkVFSVN5IQ_cjs.markInputRules; }
153
+ });
154
+ Object.defineProperty(exports, "moveBlocksStep", {
155
+ enumerable: true,
156
+ get: function () { return chunkVFSVN5IQ_cjs.moveBlocksStep; }
157
+ });
158
+ Object.defineProperty(exports, "nodeSelection", {
159
+ enumerable: true,
160
+ get: function () { return chunkVFSVN5IQ_cjs.nodeSelection; }
161
+ });
162
+ Object.defineProperty(exports, "normalizeKey", {
163
+ enumerable: true,
164
+ get: function () { return chunkVFSVN5IQ_cjs.normalizeKey; }
165
+ });
166
+ Object.defineProperty(exports, "redo", {
167
+ enumerable: true,
168
+ get: function () { return chunkVFSVN5IQ_cjs.redo; }
169
+ });
170
+ Object.defineProperty(exports, "removeBlocksStep", {
171
+ enumerable: true,
172
+ get: function () { return chunkVFSVN5IQ_cjs.removeBlocksStep; }
173
+ });
174
+ Object.defineProperty(exports, "removeMarkStep", {
175
+ enumerable: true,
176
+ get: function () { return chunkVFSVN5IQ_cjs.removeMarkStep; }
177
+ });
178
+ Object.defineProperty(exports, "replaceBlockStep", {
179
+ enumerable: true,
180
+ get: function () { return chunkVFSVN5IQ_cjs.replaceBlockStep; }
181
+ });
182
+ Object.defineProperty(exports, "replaceDocStep", {
183
+ enumerable: true,
184
+ get: function () { return chunkVFSVN5IQ_cjs.replaceDocStep; }
185
+ });
186
+ Object.defineProperty(exports, "replaceInlineStep", {
187
+ enumerable: true,
188
+ get: function () { return chunkVFSVN5IQ_cjs.replaceInlineStep; }
189
+ });
190
+ Object.defineProperty(exports, "setAttrsStep", {
191
+ enumerable: true,
192
+ get: function () { return chunkVFSVN5IQ_cjs.setAttrsStep; }
193
+ });
194
+ Object.defineProperty(exports, "setBlockType", {
195
+ enumerable: true,
196
+ get: function () { return chunkVFSVN5IQ_cjs.setBlockType; }
197
+ });
198
+ Object.defineProperty(exports, "setIndentStep", {
199
+ enumerable: true,
200
+ get: function () { return chunkVFSVN5IQ_cjs.setIndentStep; }
201
+ });
202
+ Object.defineProperty(exports, "splitBlockStep", {
203
+ enumerable: true,
204
+ get: function () { return chunkVFSVN5IQ_cjs.splitBlockStep; }
205
+ });
206
+ Object.defineProperty(exports, "stepFromJSON", {
207
+ enumerable: true,
208
+ get: function () { return chunkVFSVN5IQ_cjs.stepFromJSON; }
209
+ });
210
+ Object.defineProperty(exports, "textSelection", {
211
+ enumerable: true,
212
+ get: function () { return chunkVFSVN5IQ_cjs.textSelection; }
213
+ });
214
+ Object.defineProperty(exports, "toHTML", {
215
+ enumerable: true,
216
+ get: function () { return chunkVFSVN5IQ_cjs.toHTML; }
217
+ });
218
+ Object.defineProperty(exports, "toMarkdown", {
219
+ enumerable: true,
220
+ get: function () { return chunkVFSVN5IQ_cjs.toMarkdown; }
221
+ });
222
+ Object.defineProperty(exports, "toPlainText", {
223
+ enumerable: true,
224
+ get: function () { return chunkVFSVN5IQ_cjs.toPlainText; }
225
+ });
226
+ Object.defineProperty(exports, "toggleMark", {
227
+ enumerable: true,
228
+ get: function () { return chunkVFSVN5IQ_cjs.toggleMark; }
229
+ });
230
+ Object.defineProperty(exports, "typographyRules", {
231
+ enumerable: true,
232
+ get: function () { return chunkVFSVN5IQ_cjs.typographyRules; }
233
+ });
234
+ Object.defineProperty(exports, "undo", {
235
+ enumerable: true,
236
+ get: function () { return chunkVFSVN5IQ_cjs.undo; }
237
+ });
238
+ Object.defineProperty(exports, "diffBlocks", {
239
+ enumerable: true,
240
+ get: function () { return chunk7SVKLWDT_cjs.diffBlocks; }
241
+ });
242
+ Object.defineProperty(exports, "diffInline", {
243
+ enumerable: true,
244
+ get: function () { return chunk7SVKLWDT_cjs.diffInline; }
245
+ });
246
+ Object.defineProperty(exports, "PALETTE", {
247
+ enumerable: true,
248
+ get: function () { return chunkAIS37SL2_cjs.PALETTE; }
249
+ });
250
+ Object.defineProperty(exports, "atom", {
251
+ enumerable: true,
252
+ get: function () { return chunkAIS37SL2_cjs.atom; }
253
+ });
254
+ Object.defineProperty(exports, "coreBlockSpecs", {
255
+ enumerable: true,
256
+ get: function () { return chunkAIS37SL2_cjs.coreBlockSpecs; }
257
+ });
258
+ Object.defineProperty(exports, "createBlockCodec", {
259
+ enumerable: true,
260
+ get: function () { return chunkAIS37SL2_cjs.createBlockCodec; }
261
+ });
262
+ Object.defineProperty(exports, "createSchema", {
263
+ enumerable: true,
264
+ get: function () { return chunkAIS37SL2_cjs.createSchema; }
265
+ });
266
+ Object.defineProperty(exports, "fromMarkdown", {
267
+ enumerable: true,
268
+ get: function () { return chunkAIS37SL2_cjs.fromMarkdown; }
269
+ });
270
+ Object.defineProperty(exports, "normalizeInline", {
271
+ enumerable: true,
272
+ get: function () { return chunkAIS37SL2_cjs.normalizeInline; }
273
+ });
274
+ Object.defineProperty(exports, "parseInline", {
275
+ enumerable: true,
276
+ get: function () { return chunkAIS37SL2_cjs.parseInline; }
277
+ });
278
+ Object.defineProperty(exports, "sanitizeHref", {
279
+ enumerable: true,
280
+ get: function () { return chunkAIS37SL2_cjs.sanitizeHref; }
281
+ });
282
+ Object.defineProperty(exports, "serializeInline", {
283
+ enumerable: true,
284
+ get: function () { return chunkAIS37SL2_cjs.serializeInline; }
285
+ });
286
+ Object.defineProperty(exports, "text", {
287
+ enumerable: true,
288
+ get: function () { return chunkAIS37SL2_cjs.text; }
289
+ });
290
+ //# sourceMappingURL=headless.cjs.map
152
291
  //# 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,6 @@
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';export { BlockShell, EditableRegion, EditorView, SelectionSink, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, hostKey, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-QC35D2AU.js';
2
+ 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';
3
+ export { diffBlocks, diffInline } from './chunk-3BXUGX5F.js';
4
+ export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-L6OW2FL3.js';
5
+ //# sourceMappingURL=headless.js.map
152
6
  //# sourceMappingURL=headless.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"headless.js"}