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/index.cjs CHANGED
@@ -1,184 +1,350 @@
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';
2
+ 'use strict';
3
+
4
+ var chunk7XQGOCUG_cjs = require('./chunk-7XQGOCUG.cjs');
5
+ var chunkIGZRZIAF_cjs = require('./chunk-IGZRZIAF.cjs');
6
+ var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
7
+ var chunkVFSVN5IQ_cjs = require('./chunk-VFSVN5IQ.cjs');
8
+ var chunk7SVKLWDT_cjs = require('./chunk-7SVKLWDT.cjs');
9
+ var chunkAIS37SL2_cjs = require('./chunk-AIS37SL2.cjs');
10
+
11
+
12
+
13
+ Object.defineProperty(exports, "BlockCanvas", {
14
+ enumerable: true,
15
+ get: function () { return chunk7XQGOCUG_cjs.BlockCanvas; }
16
+ });
17
+ Object.defineProperty(exports, "FilePickerButton", {
18
+ enumerable: true,
19
+ get: function () { return chunk7XQGOCUG_cjs.FilePickerButton; }
20
+ });
21
+ Object.defineProperty(exports, "QuoinProvider", {
22
+ enumerable: true,
23
+ get: function () { return chunk7XQGOCUG_cjs.QuoinProvider; }
24
+ });
25
+ Object.defineProperty(exports, "UploadField", {
26
+ enumerable: true,
27
+ get: function () { return chunk7XQGOCUG_cjs.UploadField; }
28
+ });
29
+ Object.defineProperty(exports, "coreBlocks", {
30
+ enumerable: true,
31
+ get: function () { return chunk7XQGOCUG_cjs.coreBlocks; }
32
+ });
33
+ Object.defineProperty(exports, "englishLabels", {
34
+ enumerable: true,
35
+ get: function () { return chunk7XQGOCUG_cjs.englishLabels; }
36
+ });
37
+ Object.defineProperty(exports, "formatShortcut", {
38
+ enumerable: true,
39
+ get: function () { return chunk7XQGOCUG_cjs.formatShortcut; }
40
+ });
41
+ Object.defineProperty(exports, "resolveLabels", {
42
+ enumerable: true,
43
+ get: function () { return chunk7XQGOCUG_cjs.resolveLabels; }
44
+ });
45
+ Object.defineProperty(exports, "useAutosave", {
46
+ enumerable: true,
47
+ get: function () { return chunk7XQGOCUG_cjs.useAutosave; }
48
+ });
49
+ Object.defineProperty(exports, "useLabels", {
50
+ enumerable: true,
51
+ get: function () { return chunk7XQGOCUG_cjs.useLabels; }
52
+ });
53
+ Object.defineProperty(exports, "useQuoin", {
54
+ enumerable: true,
55
+ get: function () { return chunk7XQGOCUG_cjs.useQuoin; }
56
+ });
57
+ Object.defineProperty(exports, "BlockShell", {
58
+ enumerable: true,
59
+ get: function () { return chunkIGZRZIAF_cjs.BlockShell; }
60
+ });
61
+ Object.defineProperty(exports, "EditableRegion", {
62
+ enumerable: true,
63
+ get: function () { return chunkIGZRZIAF_cjs.EditableRegion; }
64
+ });
65
+ Object.defineProperty(exports, "EditorView", {
66
+ enumerable: true,
67
+ get: function () { return chunkIGZRZIAF_cjs.EditorView; }
68
+ });
69
+ Object.defineProperty(exports, "SelectionSink", {
70
+ enumerable: true,
71
+ get: function () { return chunkIGZRZIAF_cjs.SelectionSink; }
72
+ });
73
+ Object.defineProperty(exports, "ViewController", {
74
+ enumerable: true,
75
+ get: function () { return chunkIGZRZIAF_cjs.ViewController; }
76
+ });
77
+ Object.defineProperty(exports, "VoidBlockFallback", {
78
+ enumerable: true,
79
+ get: function () { return chunkIGZRZIAF_cjs.VoidBlockFallback; }
80
+ });
81
+ Object.defineProperty(exports, "caretFromPoint", {
82
+ enumerable: true,
83
+ get: function () { return chunkIGZRZIAF_cjs.caretFromPoint; }
84
+ });
85
+ Object.defineProperty(exports, "defaultRenderers", {
86
+ enumerable: true,
87
+ get: function () { return chunkIGZRZIAF_cjs.defaultRenderers; }
88
+ });
89
+ Object.defineProperty(exports, "domMapOf", {
90
+ enumerable: true,
91
+ get: function () { return chunkIGZRZIAF_cjs.domMapOf; }
92
+ });
93
+ Object.defineProperty(exports, "hostKey", {
94
+ enumerable: true,
95
+ get: function () { return chunkIGZRZIAF_cjs.hostKey; }
96
+ });
97
+ Object.defineProperty(exports, "isCrossSelection", {
98
+ enumerable: true,
99
+ get: function () { return chunkIGZRZIAF_cjs.isCrossSelection; }
100
+ });
101
+ Object.defineProperty(exports, "renderInline", {
102
+ enumerable: true,
103
+ get: function () { return chunkIGZRZIAF_cjs.renderInline; }
104
+ });
105
+ Object.defineProperty(exports, "useEditorState", {
106
+ enumerable: true,
107
+ get: function () { return chunkIGZRZIAF_cjs.useEditorState; }
108
+ });
109
+ Object.defineProperty(exports, "useQuoinEditor", {
110
+ enumerable: true,
111
+ get: function () { return chunkIGZRZIAF_cjs.useQuoinEditor; }
112
+ });
113
+ Object.defineProperty(exports, "useViewController", {
114
+ enumerable: true,
115
+ get: function () { return chunkIGZRZIAF_cjs.useViewController; }
116
+ });
117
+ Object.defineProperty(exports, "blockByType", {
118
+ enumerable: true,
119
+ get: function () { return chunkA6PGQVTR_cjs.blockByType; }
120
+ });
121
+ Object.defineProperty(exports, "defineBlock", {
122
+ enumerable: true,
123
+ get: function () { return chunkA6PGQVTR_cjs.defineBlock; }
124
+ });
125
+ Object.defineProperty(exports, "paletteBlocks", {
126
+ enumerable: true,
127
+ get: function () { return chunkA6PGQVTR_cjs.paletteBlocks; }
128
+ });
129
+ Object.defineProperty(exports, "Transaction", {
130
+ enumerable: true,
131
+ get: function () { return chunkVFSVN5IQ_cjs.Transaction; }
132
+ });
133
+ Object.defineProperty(exports, "addMarkStep", {
134
+ enumerable: true,
135
+ get: function () { return chunkVFSVN5IQ_cjs.addMarkStep; }
136
+ });
137
+ Object.defineProperty(exports, "applyTransaction", {
138
+ enumerable: true,
139
+ get: function () { return chunkVFSVN5IQ_cjs.applyTransaction; }
140
+ });
141
+ Object.defineProperty(exports, "blockInputRules", {
142
+ enumerable: true,
143
+ get: function () { return chunkVFSVN5IQ_cjs.blockInputRules; }
144
+ });
145
+ Object.defineProperty(exports, "blockRangeSelection", {
146
+ enumerable: true,
147
+ get: function () { return chunkVFSVN5IQ_cjs.blockRangeSelection; }
148
+ });
149
+ Object.defineProperty(exports, "coreExtensions", {
150
+ enumerable: true,
151
+ get: function () { return chunkVFSVN5IQ_cjs.coreExtensions; }
152
+ });
153
+ Object.defineProperty(exports, "countDoc", {
154
+ enumerable: true,
155
+ get: function () { return chunkVFSVN5IQ_cjs.countDoc; }
156
+ });
157
+ Object.defineProperty(exports, "countText", {
158
+ enumerable: true,
159
+ get: function () { return chunkVFSVN5IQ_cjs.countText; }
160
+ });
161
+ Object.defineProperty(exports, "createEditor", {
162
+ enumerable: true,
163
+ get: function () { return chunkVFSVN5IQ_cjs.createEditor; }
164
+ });
165
+ Object.defineProperty(exports, "createPluginKey", {
166
+ enumerable: true,
167
+ get: function () { return chunkVFSVN5IQ_cjs.createPluginKey; }
168
+ });
169
+ Object.defineProperty(exports, "createState", {
170
+ enumerable: true,
171
+ get: function () { return chunkVFSVN5IQ_cjs.createState; }
172
+ });
173
+ Object.defineProperty(exports, "defineExtension", {
174
+ enumerable: true,
175
+ get: function () { return chunkVFSVN5IQ_cjs.defineExtension; }
176
+ });
177
+ Object.defineProperty(exports, "fromHTML", {
178
+ enumerable: true,
179
+ get: function () { return chunkVFSVN5IQ_cjs.fromHTML; }
180
+ });
181
+ Object.defineProperty(exports, "getPluginState", {
182
+ enumerable: true,
183
+ get: function () { return chunkVFSVN5IQ_cjs.getPluginState; }
184
+ });
185
+ Object.defineProperty(exports, "insertBlockAfter", {
186
+ enumerable: true,
187
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlockAfter; }
188
+ });
189
+ Object.defineProperty(exports, "insertBlocksStep", {
190
+ enumerable: true,
191
+ get: function () { return chunkVFSVN5IQ_cjs.insertBlocksStep; }
192
+ });
193
+ Object.defineProperty(exports, "insertText", {
194
+ enumerable: true,
195
+ get: function () { return chunkVFSVN5IQ_cjs.insertText; }
196
+ });
197
+ Object.defineProperty(exports, "insertTextWithRules", {
198
+ enumerable: true,
199
+ get: function () { return chunkVFSVN5IQ_cjs.insertTextWithRules; }
200
+ });
201
+ Object.defineProperty(exports, "joinBlocksStep", {
202
+ enumerable: true,
203
+ get: function () { return chunkVFSVN5IQ_cjs.joinBlocksStep; }
204
+ });
205
+ Object.defineProperty(exports, "keyName", {
206
+ enumerable: true,
207
+ get: function () { return chunkVFSVN5IQ_cjs.keyName; }
208
+ });
209
+ Object.defineProperty(exports, "markInputRules", {
210
+ enumerable: true,
211
+ get: function () { return chunkVFSVN5IQ_cjs.markInputRules; }
212
+ });
213
+ Object.defineProperty(exports, "moveBlocksStep", {
214
+ enumerable: true,
215
+ get: function () { return chunkVFSVN5IQ_cjs.moveBlocksStep; }
216
+ });
217
+ Object.defineProperty(exports, "nodeSelection", {
218
+ enumerable: true,
219
+ get: function () { return chunkVFSVN5IQ_cjs.nodeSelection; }
220
+ });
221
+ Object.defineProperty(exports, "normalizeKey", {
222
+ enumerable: true,
223
+ get: function () { return chunkVFSVN5IQ_cjs.normalizeKey; }
224
+ });
225
+ Object.defineProperty(exports, "redo", {
226
+ enumerable: true,
227
+ get: function () { return chunkVFSVN5IQ_cjs.redo; }
228
+ });
229
+ Object.defineProperty(exports, "removeBlocksStep", {
230
+ enumerable: true,
231
+ get: function () { return chunkVFSVN5IQ_cjs.removeBlocksStep; }
232
+ });
233
+ Object.defineProperty(exports, "removeMarkStep", {
234
+ enumerable: true,
235
+ get: function () { return chunkVFSVN5IQ_cjs.removeMarkStep; }
236
+ });
237
+ Object.defineProperty(exports, "replaceBlockStep", {
238
+ enumerable: true,
239
+ get: function () { return chunkVFSVN5IQ_cjs.replaceBlockStep; }
240
+ });
241
+ Object.defineProperty(exports, "replaceDocStep", {
242
+ enumerable: true,
243
+ get: function () { return chunkVFSVN5IQ_cjs.replaceDocStep; }
244
+ });
245
+ Object.defineProperty(exports, "replaceInlineStep", {
246
+ enumerable: true,
247
+ get: function () { return chunkVFSVN5IQ_cjs.replaceInlineStep; }
248
+ });
249
+ Object.defineProperty(exports, "setAttrsStep", {
250
+ enumerable: true,
251
+ get: function () { return chunkVFSVN5IQ_cjs.setAttrsStep; }
252
+ });
253
+ Object.defineProperty(exports, "setBlockType", {
254
+ enumerable: true,
255
+ get: function () { return chunkVFSVN5IQ_cjs.setBlockType; }
256
+ });
257
+ Object.defineProperty(exports, "setIndentStep", {
258
+ enumerable: true,
259
+ get: function () { return chunkVFSVN5IQ_cjs.setIndentStep; }
260
+ });
261
+ Object.defineProperty(exports, "splitBlockStep", {
262
+ enumerable: true,
263
+ get: function () { return chunkVFSVN5IQ_cjs.splitBlockStep; }
264
+ });
265
+ Object.defineProperty(exports, "stepFromJSON", {
266
+ enumerable: true,
267
+ get: function () { return chunkVFSVN5IQ_cjs.stepFromJSON; }
268
+ });
269
+ Object.defineProperty(exports, "textSelection", {
270
+ enumerable: true,
271
+ get: function () { return chunkVFSVN5IQ_cjs.textSelection; }
272
+ });
273
+ Object.defineProperty(exports, "toHTML", {
274
+ enumerable: true,
275
+ get: function () { return chunkVFSVN5IQ_cjs.toHTML; }
276
+ });
277
+ Object.defineProperty(exports, "toMarkdown", {
278
+ enumerable: true,
279
+ get: function () { return chunkVFSVN5IQ_cjs.toMarkdown; }
280
+ });
281
+ Object.defineProperty(exports, "toPlainText", {
282
+ enumerable: true,
283
+ get: function () { return chunkVFSVN5IQ_cjs.toPlainText; }
284
+ });
285
+ Object.defineProperty(exports, "toggleMark", {
286
+ enumerable: true,
287
+ get: function () { return chunkVFSVN5IQ_cjs.toggleMark; }
288
+ });
289
+ Object.defineProperty(exports, "typographyRules", {
290
+ enumerable: true,
291
+ get: function () { return chunkVFSVN5IQ_cjs.typographyRules; }
292
+ });
293
+ Object.defineProperty(exports, "undo", {
294
+ enumerable: true,
295
+ get: function () { return chunkVFSVN5IQ_cjs.undo; }
296
+ });
297
+ Object.defineProperty(exports, "diffBlocks", {
298
+ enumerable: true,
299
+ get: function () { return chunk7SVKLWDT_cjs.diffBlocks; }
300
+ });
301
+ Object.defineProperty(exports, "diffInline", {
302
+ enumerable: true,
303
+ get: function () { return chunk7SVKLWDT_cjs.diffInline; }
304
+ });
305
+ Object.defineProperty(exports, "PALETTE", {
306
+ enumerable: true,
307
+ get: function () { return chunkAIS37SL2_cjs.PALETTE; }
308
+ });
309
+ Object.defineProperty(exports, "atom", {
310
+ enumerable: true,
311
+ get: function () { return chunkAIS37SL2_cjs.atom; }
312
+ });
313
+ Object.defineProperty(exports, "coreBlockSpecs", {
314
+ enumerable: true,
315
+ get: function () { return chunkAIS37SL2_cjs.coreBlockSpecs; }
316
+ });
317
+ Object.defineProperty(exports, "createBlockCodec", {
318
+ enumerable: true,
319
+ get: function () { return chunkAIS37SL2_cjs.createBlockCodec; }
320
+ });
321
+ Object.defineProperty(exports, "createSchema", {
322
+ enumerable: true,
323
+ get: function () { return chunkAIS37SL2_cjs.createSchema; }
324
+ });
325
+ Object.defineProperty(exports, "fromMarkdown", {
326
+ enumerable: true,
327
+ get: function () { return chunkAIS37SL2_cjs.fromMarkdown; }
328
+ });
329
+ Object.defineProperty(exports, "normalizeInline", {
330
+ enumerable: true,
331
+ get: function () { return chunkAIS37SL2_cjs.normalizeInline; }
332
+ });
333
+ Object.defineProperty(exports, "parseInline", {
334
+ enumerable: true,
335
+ get: function () { return chunkAIS37SL2_cjs.parseInline; }
336
+ });
337
+ Object.defineProperty(exports, "sanitizeHref", {
338
+ enumerable: true,
339
+ get: function () { return chunkAIS37SL2_cjs.sanitizeHref; }
340
+ });
341
+ Object.defineProperty(exports, "serializeInline", {
342
+ enumerable: true,
343
+ get: function () { return chunkAIS37SL2_cjs.serializeInline; }
344
+ });
345
+ Object.defineProperty(exports, "text", {
346
+ enumerable: true,
347
+ get: function () { return chunkAIS37SL2_cjs.text; }
348
+ });
349
+ //# sourceMappingURL=index.cjs.map
184
350
  //# 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,15 @@ 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, the visible text of
158
+ * the badge an editable canvas draws over an image that has neither, and the badge's name, which starts with that
159
+ * visible text and then says what it does. A translation that sets `noAltBadge` should set `addAltText` too; with `noAltBadge` alone the
160
+ * badge is named by its visible text. Optional like `blockError`.
161
+ */
162
+ decorativeImage?: string;
163
+ noAltBadge?: string;
164
+ addAltText?: string;
154
165
  /** An empty file block: its upload button and what can be dropped or pasted on it. */
155
166
  uploadFile: string;
156
167
  dropFile: string;
@@ -270,7 +281,8 @@ type CodeBlockData = {
270
281
  /**
271
282
  * `IMAGE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL, unless `url`
272
283
  * 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.
284
+ * `widthPercent` the share of the line the picture is drawn at. `decorative` is `true`, and only then present, for a
285
+ * picture that is deliberately given no description.
274
286
  */
275
287
  type ImageBlockData = {
276
288
  storageKey: string;
@@ -281,6 +293,7 @@ type ImageBlockData = {
281
293
  url?: string;
282
294
  align?: 'left' | 'center' | 'right';
283
295
  widthPercent?: number;
296
+ decorative?: boolean;
284
297
  };
285
298
  /**
286
299
  * `FILE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL; `filename` is the
@@ -356,7 +369,7 @@ declare function QuoinProvider({ value, children, }: {
356
369
  /** Reads the canvas configuration. Throws outside a QuoinProvider rather than returning a silent default. */
357
370
  declare function useQuoin(): QuoinConfig;
358
371
 
359
- declare const englishLabels: QuoinLabels;
372
+ declare const englishLabels: Required<QuoinLabels>;
360
373
 
361
374
  /** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
362
375
  * 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,15 @@ 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, the visible text of
158
+ * the badge an editable canvas draws over an image that has neither, and the badge's name, which starts with that
159
+ * visible text and then says what it does. A translation that sets `noAltBadge` should set `addAltText` too; with `noAltBadge` alone the
160
+ * badge is named by its visible text. Optional like `blockError`.
161
+ */
162
+ decorativeImage?: string;
163
+ noAltBadge?: string;
164
+ addAltText?: string;
154
165
  /** An empty file block: its upload button and what can be dropped or pasted on it. */
155
166
  uploadFile: string;
156
167
  dropFile: string;
@@ -270,7 +281,8 @@ type CodeBlockData = {
270
281
  /**
271
282
  * `IMAGE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL, unless `url`
272
283
  * 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.
284
+ * `widthPercent` the share of the line the picture is drawn at. `decorative` is `true`, and only then present, for a
285
+ * picture that is deliberately given no description.
274
286
  */
275
287
  type ImageBlockData = {
276
288
  storageKey: string;
@@ -281,6 +293,7 @@ type ImageBlockData = {
281
293
  url?: string;
282
294
  align?: 'left' | 'center' | 'right';
283
295
  widthPercent?: number;
296
+ decorative?: boolean;
284
297
  };
285
298
  /**
286
299
  * `FILE`. `storageKey` names the uploaded file, which the host's `resolveAssetUrl` turns into a URL; `filename` is the
@@ -356,7 +369,7 @@ declare function QuoinProvider({ value, children, }: {
356
369
  /** Reads the canvas configuration. Throws outside a QuoinProvider rather than returning a silent default. */
357
370
  declare function useQuoin(): QuoinConfig;
358
371
 
359
- declare const englishLabels: QuoinLabels;
372
+ declare const englishLabels: Required<QuoinLabels>;
360
373
 
361
374
  /** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
362
375
  * English. */