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/index.cjs CHANGED
@@ -1,184 +1,349 @@
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
- var _chunkCW3AFJBRcjs = require('./chunk-CW3AFJBR.cjs');
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
- var _chunkP6KYXFZCcjs = require('./chunk-P6KYXFZC.cjs');
32
-
33
-
34
-
35
-
36
- var _chunkEH5KXQXYcjs = require('./chunk-EH5KXQXY.cjs');
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
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- var _chunkZKVOS57Qcjs = require('./chunk-ZKVOS57Q.cjs');
81
-
82
-
83
-
84
- var _chunk6V6GGBDKcjs = require('./chunk-6V6GGBDK.cjs');
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- var _chunk4SLJNZSMcjs = require('./chunk-4SLJNZSM.cjs');
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
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
- exports.BlockCanvas = _chunkCW3AFJBRcjs.BlockCanvas; exports.BlockShell = _chunkP6KYXFZCcjs.BlockShell; exports.EditableRegion = _chunkP6KYXFZCcjs.EditableRegion; exports.EditorView = _chunkP6KYXFZCcjs.EditorView; exports.FilePickerButton = _chunkCW3AFJBRcjs.FilePickerButton; exports.PALETTE = _chunk4SLJNZSMcjs.PALETTE; exports.QuoinProvider = _chunkCW3AFJBRcjs.QuoinProvider; exports.SelectionSink = _chunkP6KYXFZCcjs.SelectionSink; exports.Transaction = _chunkZKVOS57Qcjs.Transaction; exports.UploadField = _chunkCW3AFJBRcjs.UploadField; exports.ViewController = _chunkP6KYXFZCcjs.ViewController; exports.VoidBlockFallback = _chunkP6KYXFZCcjs.VoidBlockFallback; exports.addMarkStep = _chunkZKVOS57Qcjs.addMarkStep; exports.applyTransaction = _chunkZKVOS57Qcjs.applyTransaction; exports.atom = _chunk4SLJNZSMcjs.atom; exports.blockByType = _chunkEH5KXQXYcjs.blockByType; exports.blockInputRules = _chunkZKVOS57Qcjs.blockInputRules; exports.blockRangeSelection = _chunkZKVOS57Qcjs.blockRangeSelection; exports.caretFromPoint = _chunkP6KYXFZCcjs.caretFromPoint; exports.coreBlockSpecs = _chunk4SLJNZSMcjs.coreBlockSpecs; exports.coreBlocks = _chunkCW3AFJBRcjs.coreBlocks; 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.defineBlock = _chunkEH5KXQXYcjs.defineBlock; exports.defineExtension = _chunkZKVOS57Qcjs.defineExtension; exports.diffBlocks = _chunk6V6GGBDKcjs.diffBlocks; exports.diffInline = _chunk6V6GGBDKcjs.diffInline; exports.domMapOf = _chunkP6KYXFZCcjs.domMapOf; exports.englishLabels = _chunkCW3AFJBRcjs.englishLabels; exports.formatShortcut = _chunkCW3AFJBRcjs.formatShortcut; 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.paletteBlocks = _chunkEH5KXQXYcjs.paletteBlocks; 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.resolveLabels = _chunkCW3AFJBRcjs.resolveLabels; 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.useAutosave = _chunkCW3AFJBRcjs.useAutosave; exports.useEditorState = _chunkP6KYXFZCcjs.useEditorState; exports.useLabels = _chunkCW3AFJBRcjs.useLabels; exports.useQuoin = _chunkCW3AFJBRcjs.useQuoin; exports.useQuoinEditor = _chunkP6KYXFZCcjs.useQuoinEditor; exports.useViewController = _chunkP6KYXFZCcjs.useViewController;
1
+ 'use client';'use strict';
2
+
3
+ var chunkQEMGOL5L_cjs = require('./chunk-QEMGOL5L.cjs');
4
+ var chunkACSEYJJF_cjs = require('./chunk-ACSEYJJF.cjs');
5
+ var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
6
+ var chunkVFSVN5IQ_cjs = require('./chunk-VFSVN5IQ.cjs');
7
+ var chunk7SVKLWDT_cjs = require('./chunk-7SVKLWDT.cjs');
8
+ var chunkAIS37SL2_cjs = require('./chunk-AIS37SL2.cjs');
9
+
10
+
11
+
12
+ Object.defineProperty(exports, "BlockCanvas", {
13
+ enumerable: true,
14
+ get: function () { return chunkQEMGOL5L_cjs.BlockCanvas; }
15
+ });
16
+ Object.defineProperty(exports, "FilePickerButton", {
17
+ enumerable: true,
18
+ get: function () { return chunkQEMGOL5L_cjs.FilePickerButton; }
19
+ });
20
+ Object.defineProperty(exports, "QuoinProvider", {
21
+ enumerable: true,
22
+ get: function () { return chunkQEMGOL5L_cjs.QuoinProvider; }
23
+ });
24
+ Object.defineProperty(exports, "UploadField", {
25
+ enumerable: true,
26
+ get: function () { return chunkQEMGOL5L_cjs.UploadField; }
27
+ });
28
+ Object.defineProperty(exports, "coreBlocks", {
29
+ enumerable: true,
30
+ get: function () { return chunkQEMGOL5L_cjs.coreBlocks; }
31
+ });
32
+ Object.defineProperty(exports, "englishLabels", {
33
+ enumerable: true,
34
+ get: function () { return chunkQEMGOL5L_cjs.englishLabels; }
35
+ });
36
+ Object.defineProperty(exports, "formatShortcut", {
37
+ enumerable: true,
38
+ get: function () { return chunkQEMGOL5L_cjs.formatShortcut; }
39
+ });
40
+ Object.defineProperty(exports, "resolveLabels", {
41
+ enumerable: true,
42
+ get: function () { return chunkQEMGOL5L_cjs.resolveLabels; }
43
+ });
44
+ Object.defineProperty(exports, "useAutosave", {
45
+ enumerable: true,
46
+ get: function () { return chunkQEMGOL5L_cjs.useAutosave; }
47
+ });
48
+ Object.defineProperty(exports, "useLabels", {
49
+ enumerable: true,
50
+ get: function () { return chunkQEMGOL5L_cjs.useLabels; }
51
+ });
52
+ Object.defineProperty(exports, "useQuoin", {
53
+ enumerable: true,
54
+ get: function () { return chunkQEMGOL5L_cjs.useQuoin; }
55
+ });
56
+ Object.defineProperty(exports, "BlockShell", {
57
+ enumerable: true,
58
+ get: function () { return chunkACSEYJJF_cjs.BlockShell; }
59
+ });
60
+ Object.defineProperty(exports, "EditableRegion", {
61
+ enumerable: true,
62
+ get: function () { return chunkACSEYJJF_cjs.EditableRegion; }
63
+ });
64
+ Object.defineProperty(exports, "EditorView", {
65
+ enumerable: true,
66
+ get: function () { return chunkACSEYJJF_cjs.EditorView; }
67
+ });
68
+ Object.defineProperty(exports, "SelectionSink", {
69
+ enumerable: true,
70
+ get: function () { return chunkACSEYJJF_cjs.SelectionSink; }
71
+ });
72
+ Object.defineProperty(exports, "ViewController", {
73
+ enumerable: true,
74
+ get: function () { return chunkACSEYJJF_cjs.ViewController; }
75
+ });
76
+ Object.defineProperty(exports, "VoidBlockFallback", {
77
+ enumerable: true,
78
+ get: function () { return chunkACSEYJJF_cjs.VoidBlockFallback; }
79
+ });
80
+ Object.defineProperty(exports, "caretFromPoint", {
81
+ enumerable: true,
82
+ get: function () { return chunkACSEYJJF_cjs.caretFromPoint; }
83
+ });
84
+ Object.defineProperty(exports, "defaultRenderers", {
85
+ enumerable: true,
86
+ get: function () { return chunkACSEYJJF_cjs.defaultRenderers; }
87
+ });
88
+ Object.defineProperty(exports, "domMapOf", {
89
+ enumerable: true,
90
+ get: function () { return chunkACSEYJJF_cjs.domMapOf; }
91
+ });
92
+ Object.defineProperty(exports, "hostKey", {
93
+ enumerable: true,
94
+ get: function () { return chunkACSEYJJF_cjs.hostKey; }
95
+ });
96
+ Object.defineProperty(exports, "isCrossSelection", {
97
+ enumerable: true,
98
+ get: function () { return chunkACSEYJJF_cjs.isCrossSelection; }
99
+ });
100
+ Object.defineProperty(exports, "renderInline", {
101
+ enumerable: true,
102
+ get: function () { return chunkACSEYJJF_cjs.renderInline; }
103
+ });
104
+ Object.defineProperty(exports, "useEditorState", {
105
+ enumerable: true,
106
+ get: function () { return chunkACSEYJJF_cjs.useEditorState; }
107
+ });
108
+ Object.defineProperty(exports, "useQuoinEditor", {
109
+ enumerable: true,
110
+ get: function () { return chunkACSEYJJF_cjs.useQuoinEditor; }
111
+ });
112
+ Object.defineProperty(exports, "useViewController", {
113
+ enumerable: true,
114
+ get: function () { return chunkACSEYJJF_cjs.useViewController; }
115
+ });
116
+ Object.defineProperty(exports, "blockByType", {
117
+ enumerable: true,
118
+ get: function () { return chunkA6PGQVTR_cjs.blockByType; }
119
+ });
120
+ Object.defineProperty(exports, "defineBlock", {
121
+ enumerable: true,
122
+ get: function () { return chunkA6PGQVTR_cjs.defineBlock; }
123
+ });
124
+ Object.defineProperty(exports, "paletteBlocks", {
125
+ enumerable: true,
126
+ get: function () { return chunkA6PGQVTR_cjs.paletteBlocks; }
127
+ });
128
+ Object.defineProperty(exports, "Transaction", {
129
+ enumerable: true,
130
+ get: function () { return chunkVFSVN5IQ_cjs.Transaction; }
131
+ });
132
+ Object.defineProperty(exports, "addMarkStep", {
133
+ enumerable: true,
134
+ get: function () { return chunkVFSVN5IQ_cjs.addMarkStep; }
135
+ });
136
+ Object.defineProperty(exports, "applyTransaction", {
137
+ enumerable: true,
138
+ get: function () { return chunkVFSVN5IQ_cjs.applyTransaction; }
139
+ });
140
+ Object.defineProperty(exports, "blockInputRules", {
141
+ enumerable: true,
142
+ get: function () { return chunkVFSVN5IQ_cjs.blockInputRules; }
143
+ });
144
+ Object.defineProperty(exports, "blockRangeSelection", {
145
+ enumerable: true,
146
+ get: function () { return chunkVFSVN5IQ_cjs.blockRangeSelection; }
147
+ });
148
+ Object.defineProperty(exports, "coreExtensions", {
149
+ enumerable: true,
150
+ get: function () { return chunkVFSVN5IQ_cjs.coreExtensions; }
151
+ });
152
+ Object.defineProperty(exports, "countDoc", {
153
+ enumerable: true,
154
+ get: function () { return chunkVFSVN5IQ_cjs.countDoc; }
155
+ });
156
+ Object.defineProperty(exports, "countText", {
157
+ enumerable: true,
158
+ get: function () { return chunkVFSVN5IQ_cjs.countText; }
159
+ });
160
+ Object.defineProperty(exports, "createEditor", {
161
+ enumerable: true,
162
+ get: function () { return chunkVFSVN5IQ_cjs.createEditor; }
163
+ });
164
+ Object.defineProperty(exports, "createPluginKey", {
165
+ enumerable: true,
166
+ get: function () { return chunkVFSVN5IQ_cjs.createPluginKey; }
167
+ });
168
+ Object.defineProperty(exports, "createState", {
169
+ enumerable: true,
170
+ get: function () { return chunkVFSVN5IQ_cjs.createState; }
171
+ });
172
+ Object.defineProperty(exports, "defineExtension", {
173
+ enumerable: true,
174
+ get: function () { return chunkVFSVN5IQ_cjs.defineExtension; }
175
+ });
176
+ Object.defineProperty(exports, "fromHTML", {
177
+ enumerable: true,
178
+ get: function () { return chunkVFSVN5IQ_cjs.fromHTML; }
179
+ });
180
+ Object.defineProperty(exports, "getPluginState", {
181
+ enumerable: true,
182
+ get: function () { return chunkVFSVN5IQ_cjs.getPluginState; }
183
+ });
184
+ Object.defineProperty(exports, "insertBlockAfter", {
185
+ enumerable: true,
186
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlockAfter; }
187
+ });
188
+ Object.defineProperty(exports, "insertBlocksStep", {
189
+ enumerable: true,
190
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlocksStep; }
191
+ });
192
+ Object.defineProperty(exports, "insertText", {
193
+ enumerable: true,
194
+ get: function () { return chunkVFSVN5IQ_cjs.insertText; }
195
+ });
196
+ Object.defineProperty(exports, "insertTextWithRules", {
197
+ enumerable: true,
198
+ get: function () { return chunkVFSVN5IQ_cjs.insertTextWithRules; }
199
+ });
200
+ Object.defineProperty(exports, "joinBlocksStep", {
201
+ enumerable: true,
202
+ get: function () { return chunkVFSVN5IQ_cjs.joinBlocksStep; }
203
+ });
204
+ Object.defineProperty(exports, "keyName", {
205
+ enumerable: true,
206
+ get: function () { return chunkVFSVN5IQ_cjs.keyName; }
207
+ });
208
+ Object.defineProperty(exports, "markInputRules", {
209
+ enumerable: true,
210
+ get: function () { return chunkVFSVN5IQ_cjs.markInputRules; }
211
+ });
212
+ Object.defineProperty(exports, "moveBlocksStep", {
213
+ enumerable: true,
214
+ get: function () { return chunkVFSVN5IQ_cjs.moveBlocksStep; }
215
+ });
216
+ Object.defineProperty(exports, "nodeSelection", {
217
+ enumerable: true,
218
+ get: function () { return chunkVFSVN5IQ_cjs.nodeSelection; }
219
+ });
220
+ Object.defineProperty(exports, "normalizeKey", {
221
+ enumerable: true,
222
+ get: function () { return chunkVFSVN5IQ_cjs.normalizeKey; }
223
+ });
224
+ Object.defineProperty(exports, "redo", {
225
+ enumerable: true,
226
+ get: function () { return chunkVFSVN5IQ_cjs.redo; }
227
+ });
228
+ Object.defineProperty(exports, "removeBlocksStep", {
229
+ enumerable: true,
230
+ get: function () { return chunkVFSVN5IQ_cjs.removeBlocksStep; }
231
+ });
232
+ Object.defineProperty(exports, "removeMarkStep", {
233
+ enumerable: true,
234
+ get: function () { return chunkVFSVN5IQ_cjs.removeMarkStep; }
235
+ });
236
+ Object.defineProperty(exports, "replaceBlockStep", {
237
+ enumerable: true,
238
+ get: function () { return chunkVFSVN5IQ_cjs.replaceBlockStep; }
239
+ });
240
+ Object.defineProperty(exports, "replaceDocStep", {
241
+ enumerable: true,
242
+ get: function () { return chunkVFSVN5IQ_cjs.replaceDocStep; }
243
+ });
244
+ Object.defineProperty(exports, "replaceInlineStep", {
245
+ enumerable: true,
246
+ get: function () { return chunkVFSVN5IQ_cjs.replaceInlineStep; }
247
+ });
248
+ Object.defineProperty(exports, "setAttrsStep", {
249
+ enumerable: true,
250
+ get: function () { return chunkVFSVN5IQ_cjs.setAttrsStep; }
251
+ });
252
+ Object.defineProperty(exports, "setBlockType", {
253
+ enumerable: true,
254
+ get: function () { return chunkVFSVN5IQ_cjs.setBlockType; }
255
+ });
256
+ Object.defineProperty(exports, "setIndentStep", {
257
+ enumerable: true,
258
+ get: function () { return chunkVFSVN5IQ_cjs.setIndentStep; }
259
+ });
260
+ Object.defineProperty(exports, "splitBlockStep", {
261
+ enumerable: true,
262
+ get: function () { return chunkVFSVN5IQ_cjs.splitBlockStep; }
263
+ });
264
+ Object.defineProperty(exports, "stepFromJSON", {
265
+ enumerable: true,
266
+ get: function () { return chunkVFSVN5IQ_cjs.stepFromJSON; }
267
+ });
268
+ Object.defineProperty(exports, "textSelection", {
269
+ enumerable: true,
270
+ get: function () { return chunkVFSVN5IQ_cjs.textSelection; }
271
+ });
272
+ Object.defineProperty(exports, "toHTML", {
273
+ enumerable: true,
274
+ get: function () { return chunkVFSVN5IQ_cjs.toHTML; }
275
+ });
276
+ Object.defineProperty(exports, "toMarkdown", {
277
+ enumerable: true,
278
+ get: function () { return chunkVFSVN5IQ_cjs.toMarkdown; }
279
+ });
280
+ Object.defineProperty(exports, "toPlainText", {
281
+ enumerable: true,
282
+ get: function () { return chunkVFSVN5IQ_cjs.toPlainText; }
283
+ });
284
+ Object.defineProperty(exports, "toggleMark", {
285
+ enumerable: true,
286
+ get: function () { return chunkVFSVN5IQ_cjs.toggleMark; }
287
+ });
288
+ Object.defineProperty(exports, "typographyRules", {
289
+ enumerable: true,
290
+ get: function () { return chunkVFSVN5IQ_cjs.typographyRules; }
291
+ });
292
+ Object.defineProperty(exports, "undo", {
293
+ enumerable: true,
294
+ get: function () { return chunkVFSVN5IQ_cjs.undo; }
295
+ });
296
+ Object.defineProperty(exports, "diffBlocks", {
297
+ enumerable: true,
298
+ get: function () { return chunk7SVKLWDT_cjs.diffBlocks; }
299
+ });
300
+ Object.defineProperty(exports, "diffInline", {
301
+ enumerable: true,
302
+ get: function () { return chunk7SVKLWDT_cjs.diffInline; }
303
+ });
304
+ Object.defineProperty(exports, "PALETTE", {
305
+ enumerable: true,
306
+ get: function () { return chunkAIS37SL2_cjs.PALETTE; }
307
+ });
308
+ Object.defineProperty(exports, "atom", {
309
+ enumerable: true,
310
+ get: function () { return chunkAIS37SL2_cjs.atom; }
311
+ });
312
+ Object.defineProperty(exports, "coreBlockSpecs", {
313
+ enumerable: true,
314
+ get: function () { return chunkAIS37SL2_cjs.coreBlockSpecs; }
315
+ });
316
+ Object.defineProperty(exports, "createBlockCodec", {
317
+ enumerable: true,
318
+ get: function () { return chunkAIS37SL2_cjs.createBlockCodec; }
319
+ });
320
+ Object.defineProperty(exports, "createSchema", {
321
+ enumerable: true,
322
+ get: function () { return chunkAIS37SL2_cjs.createSchema; }
323
+ });
324
+ Object.defineProperty(exports, "fromMarkdown", {
325
+ enumerable: true,
326
+ get: function () { return chunkAIS37SL2_cjs.fromMarkdown; }
327
+ });
328
+ Object.defineProperty(exports, "normalizeInline", {
329
+ enumerable: true,
330
+ get: function () { return chunkAIS37SL2_cjs.normalizeInline; }
331
+ });
332
+ Object.defineProperty(exports, "parseInline", {
333
+ enumerable: true,
334
+ get: function () { return chunkAIS37SL2_cjs.parseInline; }
335
+ });
336
+ Object.defineProperty(exports, "sanitizeHref", {
337
+ enumerable: true,
338
+ get: function () { return chunkAIS37SL2_cjs.sanitizeHref; }
339
+ });
340
+ Object.defineProperty(exports, "serializeInline", {
341
+ enumerable: true,
342
+ get: function () { return chunkAIS37SL2_cjs.serializeInline; }
343
+ });
344
+ Object.defineProperty(exports, "text", {
345
+ enumerable: true,
346
+ get: function () { return chunkAIS37SL2_cjs.text; }
347
+ });
348
+ //# sourceMappingURL=index.cjs.map
184
349
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;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;AACF,wDAA6B;AAC7B;AACE;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mjJAAC","file":"/home/runner/work/quoin-editor/quoin-editor/dist/index.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType } from 'react';
3
- import { A as AnyBlockDefinition, U as UploadFn, C as CodeHighlighter, a as UploadResult } from './registry-CWBOSAHm.cjs';
4
- export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e as CodeToken, f as blockByType, d as defineBlock, p as paletteBlocks } from './registry-CWBOSAHm.cjs';
3
+ import { A as AnyBlockDefinition, U as UploadFn, C as CodeHighlighter, a as UploadResult } from './registry-CXegaw5k.cjs';
4
+ export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e as CodeToken, f as blockByType, d as defineBlock, p as paletteBlocks } from './registry-CXegaw5k.cjs';
5
5
  import { Q as QuoinBlock, P as Pos } from './types-DULc8wwg.cjs';
6
6
  export { b as AtomNode, c as AtomSpec, A as Attrs, B as BlockAttrs, d as BlockContent, e as BlockFlow, f as BlockRangeSelection, g as BlockSpec, C as CodecContext, h as EngineBlock, E as EngineDoc, I as Inline, i as InlineCodec, j as InlineNode, M as Mark, k as MarkSpec, l as MarkdownExportContext, N as NodeSelection, m as ParseInlineOptions, S as Schema, a as Selection, n as SerializeInlineOptions, T as TextNode, o as TextSelection } from './types-DULc8wwg.cjs';
7
7
  import { E as Extension, a as Editor, c as EditorState, b as Command } from './types-CJ7Gq3GX.cjs';
@@ -126,6 +126,8 @@ type QuoinLabels = {
126
126
  selectedContent: string;
127
127
  editBlock: (label: string) => string;
128
128
  unsupportedBlock: string;
129
+ /** Optional so a translation written for 1.0 still compiles; English where it is missing. */
130
+ blockError?: string;
129
131
  uploading: string;
130
132
  uploaded: (name: string) => string;
131
133
  /** What an upload field shows when the host's upload fails without a message of its own. */
@@ -151,6 +153,12 @@ type QuoinLabels = {
151
153
  altTextHint: string;
152
154
  save: string;
153
155
  imageNoAlt: string;
156
+ /**
157
+ * The checkbox of the alt text popover that marks an image as deliberately without a description, and the badge an
158
+ * editable canvas draws over an image that has neither. Optional like `blockError`.
159
+ */
160
+ decorativeImage?: string;
161
+ noAltBadge?: string;
154
162
  /** An empty file block: its upload button and what can be dropped or pasted on it. */
155
163
  uploadFile: string;
156
164
  dropFile: string;
@@ -270,7 +278,8 @@ type CodeBlockData = {
270
278
  /**
271
279
  * `IMAGE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL, unless `url`
272
280
  * links a picture instead. `caption` is inline markdown, `width` and `height` the measured size of the upload, and
273
- * `widthPercent` the share of the line the picture is drawn at.
281
+ * `widthPercent` the share of the line the picture is drawn at. `decorative` is `true`, and only then present, for a
282
+ * picture that is deliberately given no description.
274
283
  */
275
284
  type ImageBlockData = {
276
285
  storageKey: string;
@@ -281,6 +290,7 @@ type ImageBlockData = {
281
290
  url?: string;
282
291
  align?: 'left' | 'center' | 'right';
283
292
  widthPercent?: number;
293
+ decorative?: boolean;
284
294
  };
285
295
  /**
286
296
  * `FILE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL; `filename` is the
@@ -356,7 +366,7 @@ declare function QuoinProvider({ value, children, }: {
356
366
  /** Reads the canvas configuration. Throws outside a QuoinProvider rather than returning a silent default. */
357
367
  declare function useQuoin(): QuoinConfig;
358
368
 
359
- declare const englishLabels: QuoinLabels;
369
+ declare const englishLabels: Required<QuoinLabels>;
360
370
 
361
371
  /** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
362
372
  * English. */
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType } from 'react';
3
- import { A as AnyBlockDefinition, U as UploadFn, C as CodeHighlighter, a as UploadResult } from './registry-CWBOSAHm.js';
4
- export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e as CodeToken, f as blockByType, d as defineBlock, p as paletteBlocks } from './registry-CWBOSAHm.js';
3
+ import { A as AnyBlockDefinition, U as UploadFn, C as CodeHighlighter, a as UploadResult } from './registry-CXegaw5k.js';
4
+ export { B as BlockDefinition, b as BlockEditorProps, c as BlockPreviewProps, e as CodeToken, f as blockByType, d as defineBlock, p as paletteBlocks } from './registry-CXegaw5k.js';
5
5
  import { Q as QuoinBlock, P as Pos } from './types-DULc8wwg.js';
6
6
  export { b as AtomNode, c as AtomSpec, A as Attrs, B as BlockAttrs, d as BlockContent, e as BlockFlow, f as BlockRangeSelection, g as BlockSpec, C as CodecContext, h as EngineBlock, E as EngineDoc, I as Inline, i as InlineCodec, j as InlineNode, M as Mark, k as MarkSpec, l as MarkdownExportContext, N as NodeSelection, m as ParseInlineOptions, S as Schema, a as Selection, n as SerializeInlineOptions, T as TextNode, o as TextSelection } from './types-DULc8wwg.js';
7
7
  import { E as Extension, a as Editor, c as EditorState, b as Command } from './types-C6_QkXzy.js';
@@ -126,6 +126,8 @@ type QuoinLabels = {
126
126
  selectedContent: string;
127
127
  editBlock: (label: string) => string;
128
128
  unsupportedBlock: string;
129
+ /** Optional so a translation written for 1.0 still compiles; English where it is missing. */
130
+ blockError?: string;
129
131
  uploading: string;
130
132
  uploaded: (name: string) => string;
131
133
  /** What an upload field shows when the host's upload fails without a message of its own. */
@@ -151,6 +153,12 @@ type QuoinLabels = {
151
153
  altTextHint: string;
152
154
  save: string;
153
155
  imageNoAlt: string;
156
+ /**
157
+ * The checkbox of the alt text popover that marks an image as deliberately without a description, and the badge an
158
+ * editable canvas draws over an image that has neither. Optional like `blockError`.
159
+ */
160
+ decorativeImage?: string;
161
+ noAltBadge?: string;
154
162
  /** An empty file block: its upload button and what can be dropped or pasted on it. */
155
163
  uploadFile: string;
156
164
  dropFile: string;
@@ -270,7 +278,8 @@ type CodeBlockData = {
270
278
  /**
271
279
  * `IMAGE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL, unless `url`
272
280
  * links a picture instead. `caption` is inline markdown, `width` and `height` the measured size of the upload, and
273
- * `widthPercent` the share of the line the picture is drawn at.
281
+ * `widthPercent` the share of the line the picture is drawn at. `decorative` is `true`, and only then present, for a
282
+ * picture that is deliberately given no description.
274
283
  */
275
284
  type ImageBlockData = {
276
285
  storageKey: string;
@@ -281,6 +290,7 @@ type ImageBlockData = {
281
290
  url?: string;
282
291
  align?: 'left' | 'center' | 'right';
283
292
  widthPercent?: number;
293
+ decorative?: boolean;
284
294
  };
285
295
  /**
286
296
  * `FILE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL; `filename` is the
@@ -356,7 +366,7 @@ declare function QuoinProvider({ value, children, }: {
356
366
  /** Reads the canvas configuration. Throws outside a QuoinProvider rather than returning a silent default. */
357
367
  declare function useQuoin(): QuoinConfig;
358
368
 
359
- declare const englishLabels: QuoinLabels;
369
+ declare const englishLabels: Required<QuoinLabels>;
360
370
 
361
371
  /** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
362
372
  * English. */