quoin-editor 1.7.0 → 2.0.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 (260) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/MIGRATION.md +137 -23
  3. package/README.md +32 -11
  4. package/dist/ai-labels-BXX32H9a.d.cts +53 -0
  5. package/dist/ai-labels-BXX32H9a.d.ts +53 -0
  6. package/dist/ai.cjs +84 -86
  7. package/dist/ai.d.cts +4 -53
  8. package/dist/ai.d.ts +4 -53
  9. package/dist/ai.js +8 -10
  10. package/dist/ai.js.map +1 -1
  11. package/dist/catalogue.cjs +27 -26
  12. package/dist/catalogue.d.cts +10 -1
  13. package/dist/catalogue.d.ts +10 -1
  14. package/dist/catalogue.js +18 -17
  15. package/dist/catalogue.js.map +1 -1
  16. package/dist/{chunk-MNA7MBCH.js → chunk-2UKI26JA.js} +9 -11
  17. package/dist/chunk-2UKI26JA.js.map +1 -0
  18. package/dist/{chunk-MZXW2HXP.cjs → chunk-4PIJC4FD.cjs} +27 -29
  19. package/dist/{chunk-OS2O6IKX.js → chunk-5RBMZGKV.js} +4 -4
  20. package/dist/{chunk-OS2O6IKX.js.map → chunk-5RBMZGKV.js.map} +1 -1
  21. package/dist/{chunk-OJ4O6HWC.js → chunk-5X52BAZB.js} +10 -12
  22. package/dist/chunk-5X52BAZB.js.map +1 -0
  23. package/dist/{chunk-JY5VUHKN.cjs → chunk-5YAJZSTI.cjs} +28 -30
  24. package/dist/{chunk-YEFPH27F.cjs → chunk-66OPHDFA.cjs} +92 -94
  25. package/dist/{chunk-PWUFFHAQ.js → chunk-6BVE46K7.js} +8 -10
  26. package/dist/chunk-6BVE46K7.js.map +1 -0
  27. package/dist/{chunk-LKZJ2TDU.cjs → chunk-77CNOLHY.cjs} +10 -13
  28. package/dist/{chunk-4T4TJ2QS.cjs → chunk-7E43TURF.cjs} +7 -7
  29. package/dist/{chunk-BJTOLCRR.js → chunk-7Y4B7NHO.js} +2 -2
  30. package/dist/chunk-7Y4B7NHO.js.map +1 -0
  31. package/dist/{chunk-7GU25Z6L.js → chunk-B4VCDJSA.js} +9 -11
  32. package/dist/chunk-B4VCDJSA.js.map +1 -0
  33. package/dist/{chunk-QR2NIDUK.cjs → chunk-BYYCD54G.cjs} +2 -2
  34. package/dist/{chunk-6T5YGCZ5.cjs → chunk-CJVJNMOB.cjs} +302 -299
  35. package/dist/{chunk-CSKKSXCE.js → chunk-CSPCDVCT.js} +3 -3
  36. package/dist/{chunk-CSKKSXCE.js.map → chunk-CSPCDVCT.js.map} +1 -1
  37. package/dist/{chunk-BF7733XS.cjs → chunk-D6CIIWCU.cjs} +57 -59
  38. package/dist/{chunk-GHNQKJMD.js → chunk-DBOZFNWU.js} +3 -3
  39. package/dist/{chunk-GHNQKJMD.js.map → chunk-DBOZFNWU.js.map} +1 -1
  40. package/dist/{chunk-BM2GRZNM.cjs → chunk-DJU25PFC.cjs} +11 -11
  41. package/dist/chunk-DLQCTGC3.js +10 -0
  42. package/dist/chunk-DLQCTGC3.js.map +1 -0
  43. package/dist/{chunk-RQXJKJ5S.js → chunk-EU5IGKMP.js} +7 -10
  44. package/dist/chunk-EU5IGKMP.js.map +1 -0
  45. package/dist/{chunk-VZZPCYA3.cjs → chunk-FK7EBZPX.cjs} +226 -226
  46. package/dist/{chunk-BXSWZEA5.js → chunk-GPTJYWGS.js} +3 -3
  47. package/dist/{chunk-BXSWZEA5.js.map → chunk-GPTJYWGS.js.map} +1 -1
  48. package/dist/{chunk-I722LBD3.cjs → chunk-HOSDMHK6.cjs} +32 -34
  49. package/dist/{chunk-AZF7B2AE.cjs → chunk-IKZSCTRF.cjs} +11 -11
  50. package/dist/{chunk-R7MYG522.js → chunk-IW4TMECB.js} +3 -3
  51. package/dist/{chunk-R7MYG522.js.map → chunk-IW4TMECB.js.map} +1 -1
  52. package/dist/{chunk-PLUMKN4B.js → chunk-J2SVYBTC.js} +10 -12
  53. package/dist/chunk-J2SVYBTC.js.map +1 -0
  54. package/dist/{chunk-UZS3TW75.js → chunk-KQPZTSW3.js} +9 -11
  55. package/dist/chunk-KQPZTSW3.js.map +1 -0
  56. package/dist/{chunk-STKGRXSA.cjs → chunk-LEICOZYK.cjs} +15 -17
  57. package/dist/{chunk-H3C3MJW5.cjs → chunk-LM3DHROX.cjs} +2 -2
  58. package/dist/{chunk-AD3NY7NA.js → chunk-LSI4RMTY.js} +3 -3
  59. package/dist/{chunk-AD3NY7NA.js.map → chunk-LSI4RMTY.js.map} +1 -1
  60. package/dist/{chunk-QOIVLYMW.js → chunk-M77A3EGD.js} +5 -5
  61. package/dist/{chunk-QOIVLYMW.js.map → chunk-M77A3EGD.js.map} +1 -1
  62. package/dist/{chunk-5JEQZIRI.js → chunk-MAS4AEF4.js} +8 -10
  63. package/dist/chunk-MAS4AEF4.js.map +1 -0
  64. package/dist/{chunk-KDK2ATMB.cjs → chunk-NFO3W644.cjs} +51 -53
  65. package/dist/{chunk-XFEDJEJF.js → chunk-NL5J77VD.js} +204 -204
  66. package/dist/chunk-NL5J77VD.js.map +1 -0
  67. package/dist/{chunk-WN7BZDNH.cjs → chunk-PURYVDC3.cjs} +13 -13
  68. package/dist/{chunk-G25FMFEZ.js → chunk-UDBLZILE.js} +4 -4
  69. package/dist/{chunk-G25FMFEZ.js.map → chunk-UDBLZILE.js.map} +1 -1
  70. package/dist/{chunk-FNJOPGMN.cjs → chunk-V4WQG7FR.cjs} +116 -118
  71. package/dist/{chunk-IJKGF6SC.js → chunk-YABGWOAV.js} +8 -10
  72. package/dist/chunk-YABGWOAV.js.map +1 -0
  73. package/dist/{chunk-XZ4NC3Q7.cjs → chunk-YEDPBYO5.cjs} +4 -4
  74. package/dist/{chunk-QJ34MOFV.cjs → chunk-Z6LAARPB.cjs} +315 -320
  75. package/dist/{chunk-HSLOPJVT.js → chunk-ZN5DHNSL.js} +19 -16
  76. package/dist/chunk-ZN5DHNSL.js.map +1 -0
  77. package/dist/chunk-ZWTIRGY5.cjs +10 -0
  78. package/dist/comments-labels-DWqsSz8G.d.cts +30 -0
  79. package/dist/comments-labels-DWqsSz8G.d.ts +30 -0
  80. package/dist/comments.cjs +63 -65
  81. package/dist/comments.d.cts +4 -30
  82. package/dist/comments.d.ts +4 -30
  83. package/dist/comments.js +9 -11
  84. package/dist/comments.js.map +1 -1
  85. package/dist/{diagram-extension-Da7hp-tv.d.ts → diagram-extension-22x_njXB.d.ts} +4 -12
  86. package/dist/{diagram-extension-D573COJv.d.cts → diagram-extension-C_FSkoj9.d.cts} +4 -12
  87. package/dist/diagram-labels-Bi_jEZ8_.d.cts +11 -0
  88. package/dist/diagram-labels-Bi_jEZ8_.d.ts +11 -0
  89. package/dist/diagram.cjs +10 -9
  90. package/dist/diagram.d.cts +3 -2
  91. package/dist/diagram.d.ts +3 -2
  92. package/dist/diagram.js +7 -6
  93. package/dist/diff-labels-DWwg7N0n.d.cts +27 -0
  94. package/dist/diff-labels-DWwg7N0n.d.ts +27 -0
  95. package/dist/diff.cjs +27 -29
  96. package/dist/diff.d.cts +4 -27
  97. package/dist/diff.d.ts +4 -27
  98. package/dist/diff.js +5 -7
  99. package/dist/diff.js.map +1 -1
  100. package/dist/docx.cjs +30 -30
  101. package/dist/docx.js +3 -3
  102. package/dist/embed-labels-BiVa9HYl.d.cts +23 -0
  103. package/dist/embed-labels-BiVa9HYl.d.ts +23 -0
  104. package/dist/embed.cjs +10 -9
  105. package/dist/embed.d.cts +4 -23
  106. package/dist/embed.d.ts +4 -23
  107. package/dist/embed.js +8 -7
  108. package/dist/emoji-extension-C832oGeT.d.ts +16 -0
  109. package/dist/emoji-extension-Dk5IQLZf.d.cts +16 -0
  110. package/dist/{emoji-extension-gRKnbW8G.d.ts → emoji-labels-YwOms7ZJ.d.cts} +2 -15
  111. package/dist/{emoji-extension-C3o_Y5uC.d.cts → emoji-labels-YwOms7ZJ.d.ts} +2 -15
  112. package/dist/emoji.cjs +10 -9
  113. package/dist/emoji.d.cts +4 -3
  114. package/dist/emoji.d.ts +4 -3
  115. package/dist/emoji.js +7 -6
  116. package/dist/engine.cjs +58 -58
  117. package/dist/engine.d.cts +8 -7
  118. package/dist/engine.d.ts +8 -7
  119. package/dist/engine.js +3 -3
  120. package/dist/find-extension-BfruAPLi.d.cts +15 -0
  121. package/dist/find-extension-DmK9_N81.d.ts +15 -0
  122. package/dist/{find-extension-B_Ctrs6T.d.ts → find-labels-C4vs8Qe9.d.cts} +2 -14
  123. package/dist/{find-extension-BGGsJMu4.d.cts → find-labels-C4vs8Qe9.d.ts} +2 -14
  124. package/dist/find.cjs +11 -10
  125. package/dist/find.d.cts +2 -1
  126. package/dist/find.d.ts +2 -1
  127. package/dist/find.js +7 -6
  128. package/dist/headless.cjs +69 -89
  129. package/dist/headless.d.cts +21 -28
  130. package/dist/headless.d.ts +21 -28
  131. package/dist/headless.js +4 -4
  132. package/dist/highlight.cjs +7 -6
  133. package/dist/highlight.js +6 -5
  134. package/dist/highlight.js.map +1 -1
  135. package/dist/{index-CsG7OQoq.d.cts → index-3fYvwqUZ.d.cts} +1 -1
  136. package/dist/{index-h1llgZM-.d.ts → index-CgxnzCO5.d.ts} +1 -1
  137. package/dist/index.cjs +82 -101
  138. package/dist/index.d.cts +18 -185
  139. package/dist/index.d.ts +18 -185
  140. package/dist/index.js +6 -5
  141. package/dist/labels-BhRJYo46.d.ts +176 -0
  142. package/dist/labels-CiCxj2jP.d.cts +176 -0
  143. package/dist/locale-ar.cjs +565 -0
  144. package/dist/locale-ar.d.cts +63 -0
  145. package/dist/locale-ar.d.ts +63 -0
  146. package/dist/locale-ar.js +551 -0
  147. package/dist/locale-ar.js.map +1 -0
  148. package/dist/locale-de.cjs +510 -0
  149. package/dist/locale-de.d.cts +63 -0
  150. package/dist/locale-de.d.ts +63 -0
  151. package/dist/locale-de.js +496 -0
  152. package/dist/locale-de.js.map +1 -0
  153. package/dist/locale-es.cjs +510 -0
  154. package/dist/locale-es.d.cts +63 -0
  155. package/dist/locale-es.d.ts +63 -0
  156. package/dist/locale-es.js +496 -0
  157. package/dist/locale-es.js.map +1 -0
  158. package/dist/locale-fr.cjs +510 -0
  159. package/dist/locale-fr.d.cts +63 -0
  160. package/dist/locale-fr.d.ts +63 -0
  161. package/dist/locale-fr.js +496 -0
  162. package/dist/locale-fr.js.map +1 -0
  163. package/dist/locale-ja.cjs +505 -0
  164. package/dist/locale-ja.d.cts +63 -0
  165. package/dist/locale-ja.d.ts +63 -0
  166. package/dist/locale-ja.js +491 -0
  167. package/dist/locale-ja.js.map +1 -0
  168. package/dist/locale-pt.cjs +511 -0
  169. package/dist/locale-pt.d.cts +63 -0
  170. package/dist/locale-pt.d.ts +63 -0
  171. package/dist/locale-pt.js +497 -0
  172. package/dist/locale-pt.js.map +1 -0
  173. package/dist/locale-zh.cjs +505 -0
  174. package/dist/locale-zh.d.cts +63 -0
  175. package/dist/locale-zh.d.ts +63 -0
  176. package/dist/locale-zh.js +491 -0
  177. package/dist/locale-zh.js.map +1 -0
  178. package/dist/math-labels-DOf5KFxp.d.cts +24 -0
  179. package/dist/math-labels-DOf5KFxp.d.ts +24 -0
  180. package/dist/math.cjs +11 -10
  181. package/dist/math.d.cts +4 -24
  182. package/dist/math.d.ts +4 -24
  183. package/dist/math.js +9 -8
  184. package/dist/mention-labels-DIQy8LRT.d.cts +15 -0
  185. package/dist/mention-labels-DIQy8LRT.d.ts +15 -0
  186. package/dist/mention.cjs +11 -10
  187. package/dist/mention.d.cts +4 -15
  188. package/dist/mention.d.ts +4 -15
  189. package/dist/mention.js +9 -8
  190. package/dist/{view-controller-p-2x3J7Y.d.ts → node-reveal-BnFcnHhz.d.ts} +14 -14
  191. package/dist/{view-controller-BfVSNZYZ.d.cts → node-reveal-DY6bimv3.d.cts} +14 -14
  192. package/dist/palette-BrX-hEd-.d.cts +4 -0
  193. package/dist/palette-BrX-hEd-.d.ts +4 -0
  194. package/dist/presence-labels-DXVJLifl.d.cts +15 -0
  195. package/dist/presence-labels-DXVJLifl.d.ts +15 -0
  196. package/dist/presence.cjs +40 -42
  197. package/dist/presence.d.cts +4 -15
  198. package/dist/presence.d.ts +4 -15
  199. package/dist/presence.js +9 -11
  200. package/dist/presence.js.map +1 -1
  201. package/dist/source-labels-CeQDXsYZ.d.cts +9 -0
  202. package/dist/source-labels-CeQDXsYZ.d.ts +9 -0
  203. package/dist/source.cjs +11 -14
  204. package/dist/source.d.cts +5 -10
  205. package/dist/source.d.ts +5 -10
  206. package/dist/source.js +7 -10
  207. package/dist/source.js.map +1 -1
  208. package/dist/{stats-extension-oD6D1cYy.d.ts → stats-extension-D5HySF0a.d.cts} +4 -16
  209. package/dist/{stats-extension-XqOTvRaq.d.cts → stats-extension-Dmw0Ujxe.d.ts} +4 -16
  210. package/dist/stats-labels-W8gep51s.d.cts +15 -0
  211. package/dist/stats-labels-W8gep51s.d.ts +15 -0
  212. package/dist/stats.cjs +11 -10
  213. package/dist/stats.d.cts +3 -2
  214. package/dist/stats.d.ts +3 -2
  215. package/dist/stats.js +8 -7
  216. package/dist/styles.css +2 -2
  217. package/dist/table-extension-7LkLNK6Q.d.cts +15 -0
  218. package/dist/table-extension-DEpV0DnP.d.ts +15 -0
  219. package/dist/{table-extension-v6VB59bF.d.ts → table-labels-Dc-MzU3j.d.cts} +2 -14
  220. package/dist/{table-extension-BP47hHoz.d.cts → table-labels-Dc-MzU3j.d.ts} +2 -14
  221. package/dist/table.cjs +26 -25
  222. package/dist/table.d.cts +2 -1
  223. package/dist/table.d.ts +2 -1
  224. package/dist/table.js +7 -6
  225. package/dist/{to-html-1oD-CDle.d.cts → to-html-C19PbIzh.d.cts} +1 -0
  226. package/dist/{to-html-CLRBCX0I.d.ts → to-html-CogwrQer.d.ts} +1 -0
  227. package/dist/{to-markdown-CFPMbbiX.d.cts → to-markdown-C2w7Dzg8.d.cts} +1 -0
  228. package/dist/{to-markdown-BVOzhgVM.d.ts → to-markdown-DC1EUye5.d.ts} +1 -0
  229. package/dist/toc-extension-Dvh37bWQ.d.cts +15 -0
  230. package/dist/toc-extension-SVckrFmb.d.ts +15 -0
  231. package/dist/toc-labels-B2apPfXG.d.cts +14 -0
  232. package/dist/toc-labels-B2apPfXG.d.ts +14 -0
  233. package/dist/toc.cjs +10 -9
  234. package/dist/toc.d.cts +3 -2
  235. package/dist/toc.d.ts +3 -2
  236. package/dist/toc.js +7 -6
  237. package/dist/{types-DXF9p4qV.d.cts → types-Bzhq5AXj.d.cts} +1 -0
  238. package/dist/{types-BjLcmV00.d.ts → types-DMuuDBVh.d.ts} +1 -0
  239. package/dist/view.cjs +4 -4
  240. package/dist/view.js +2 -2
  241. package/dist/yjs.cjs +121 -121
  242. package/dist/yjs.d.cts +2 -2
  243. package/dist/yjs.d.ts +2 -2
  244. package/dist/yjs.js +5 -5
  245. package/package.json +71 -1
  246. package/dist/chunk-5JEQZIRI.js.map +0 -1
  247. package/dist/chunk-7GU25Z6L.js.map +0 -1
  248. package/dist/chunk-BJTOLCRR.js.map +0 -1
  249. package/dist/chunk-HSLOPJVT.js.map +0 -1
  250. package/dist/chunk-IJKGF6SC.js.map +0 -1
  251. package/dist/chunk-MNA7MBCH.js.map +0 -1
  252. package/dist/chunk-OJ4O6HWC.js.map +0 -1
  253. package/dist/chunk-PLUMKN4B.js.map +0 -1
  254. package/dist/chunk-PWUFFHAQ.js.map +0 -1
  255. package/dist/chunk-RQXJKJ5S.js.map +0 -1
  256. package/dist/chunk-UZS3TW75.js.map +0 -1
  257. package/dist/chunk-XFEDJEJF.js.map +0 -1
  258. package/dist/toc-extension-CI6jNOYl.d.cts +0 -26
  259. package/dist/toc-extension-CTHWjNJC.d.ts +0 -26
  260. /package/dist/{chunk-WZA5S5EJ.cjs → chunk-I7X7B3WD.cjs} +0 -0
package/dist/headless.cjs CHANGED
@@ -1,290 +1,270 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkQJ34MOFV_cjs = require('./chunk-QJ34MOFV.cjs');
5
- var chunkVZZPCYA3_cjs = require('./chunk-VZZPCYA3.cjs');
6
- var chunkBM2GRZNM_cjs = require('./chunk-BM2GRZNM.cjs');
7
- var chunkWZA5S5EJ_cjs = require('./chunk-WZA5S5EJ.cjs');
4
+ var chunkZ6LAARPB_cjs = require('./chunk-Z6LAARPB.cjs');
5
+ var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
6
+ var chunkDJU25PFC_cjs = require('./chunk-DJU25PFC.cjs');
7
+ var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
8
8
 
9
9
 
10
10
 
11
- Object.defineProperty(exports, "BlockShell", {
12
- enumerable: true,
13
- get: function () { return chunkQJ34MOFV_cjs.BlockShell; }
14
- });
15
11
  Object.defineProperty(exports, "EditableRegion", {
16
12
  enumerable: true,
17
- get: function () { return chunkQJ34MOFV_cjs.EditableRegion; }
13
+ get: function () { return chunkZ6LAARPB_cjs.EditableRegion; }
18
14
  });
19
15
  Object.defineProperty(exports, "EditorView", {
20
16
  enumerable: true,
21
- get: function () { return chunkQJ34MOFV_cjs.EditorView; }
22
- });
23
- Object.defineProperty(exports, "SelectionSink", {
24
- enumerable: true,
25
- get: function () { return chunkQJ34MOFV_cjs.SelectionSink; }
17
+ get: function () { return chunkZ6LAARPB_cjs.EditorView; }
26
18
  });
27
19
  Object.defineProperty(exports, "ViewController", {
28
20
  enumerable: true,
29
- get: function () { return chunkQJ34MOFV_cjs.ViewController; }
30
- });
31
- Object.defineProperty(exports, "VoidBlockFallback", {
32
- enumerable: true,
33
- get: function () { return chunkQJ34MOFV_cjs.VoidBlockFallback; }
21
+ get: function () { return chunkZ6LAARPB_cjs.ViewController; }
34
22
  });
35
23
  Object.defineProperty(exports, "caretFromPoint", {
36
24
  enumerable: true,
37
- get: function () { return chunkQJ34MOFV_cjs.caretFromPoint; }
38
- });
39
- Object.defineProperty(exports, "defaultRenderers", {
40
- enumerable: true,
41
- get: function () { return chunkQJ34MOFV_cjs.defaultRenderers; }
25
+ get: function () { return chunkZ6LAARPB_cjs.caretFromPoint; }
42
26
  });
43
27
  Object.defineProperty(exports, "domMapOf", {
44
28
  enumerable: true,
45
- get: function () { return chunkQJ34MOFV_cjs.domMapOf; }
29
+ get: function () { return chunkZ6LAARPB_cjs.domMapOf; }
46
30
  });
47
31
  Object.defineProperty(exports, "hostKey", {
48
32
  enumerable: true,
49
- get: function () { return chunkQJ34MOFV_cjs.hostKey; }
50
- });
51
- Object.defineProperty(exports, "isCrossSelection", {
52
- enumerable: true,
53
- get: function () { return chunkQJ34MOFV_cjs.isCrossSelection; }
33
+ get: function () { return chunkZ6LAARPB_cjs.hostKey; }
54
34
  });
55
35
  Object.defineProperty(exports, "renderInline", {
56
36
  enumerable: true,
57
- get: function () { return chunkQJ34MOFV_cjs.renderInline; }
37
+ get: function () { return chunkZ6LAARPB_cjs.renderInline; }
58
38
  });
59
39
  Object.defineProperty(exports, "useEditorState", {
60
40
  enumerable: true,
61
- get: function () { return chunkQJ34MOFV_cjs.useEditorState; }
41
+ get: function () { return chunkZ6LAARPB_cjs.useEditorState; }
62
42
  });
63
43
  Object.defineProperty(exports, "useQuoinEditor", {
64
44
  enumerable: true,
65
- get: function () { return chunkQJ34MOFV_cjs.useQuoinEditor; }
45
+ get: function () { return chunkZ6LAARPB_cjs.useQuoinEditor; }
66
46
  });
67
47
  Object.defineProperty(exports, "useViewController", {
68
48
  enumerable: true,
69
- get: function () { return chunkQJ34MOFV_cjs.useViewController; }
49
+ get: function () { return chunkZ6LAARPB_cjs.useViewController; }
70
50
  });
71
51
  Object.defineProperty(exports, "Transaction", {
72
52
  enumerable: true,
73
- get: function () { return chunkVZZPCYA3_cjs.Transaction; }
53
+ get: function () { return chunkFK7EBZPX_cjs.Transaction; }
74
54
  });
75
55
  Object.defineProperty(exports, "addMarkStep", {
76
56
  enumerable: true,
77
- get: function () { return chunkVZZPCYA3_cjs.addMarkStep; }
57
+ get: function () { return chunkFK7EBZPX_cjs.addMarkStep; }
78
58
  });
79
59
  Object.defineProperty(exports, "applyTransaction", {
80
60
  enumerable: true,
81
- get: function () { return chunkVZZPCYA3_cjs.applyTransaction; }
61
+ get: function () { return chunkFK7EBZPX_cjs.applyTransaction; }
82
62
  });
83
63
  Object.defineProperty(exports, "blockInputRules", {
84
64
  enumerable: true,
85
- get: function () { return chunkVZZPCYA3_cjs.blockInputRules; }
65
+ get: function () { return chunkFK7EBZPX_cjs.blockInputRules; }
86
66
  });
87
67
  Object.defineProperty(exports, "blockRangeSelection", {
88
68
  enumerable: true,
89
- get: function () { return chunkVZZPCYA3_cjs.blockRangeSelection; }
69
+ get: function () { return chunkFK7EBZPX_cjs.blockRangeSelection; }
90
70
  });
91
71
  Object.defineProperty(exports, "coreExtensions", {
92
72
  enumerable: true,
93
- get: function () { return chunkVZZPCYA3_cjs.coreExtensions; }
73
+ get: function () { return chunkFK7EBZPX_cjs.coreExtensions; }
94
74
  });
95
75
  Object.defineProperty(exports, "countDoc", {
96
76
  enumerable: true,
97
- get: function () { return chunkVZZPCYA3_cjs.countDoc; }
77
+ get: function () { return chunkFK7EBZPX_cjs.countDoc; }
98
78
  });
99
79
  Object.defineProperty(exports, "countText", {
100
80
  enumerable: true,
101
- get: function () { return chunkVZZPCYA3_cjs.countText; }
81
+ get: function () { return chunkFK7EBZPX_cjs.countText; }
102
82
  });
103
83
  Object.defineProperty(exports, "createEditor", {
104
84
  enumerable: true,
105
- get: function () { return chunkVZZPCYA3_cjs.createEditor; }
85
+ get: function () { return chunkFK7EBZPX_cjs.createEditor; }
106
86
  });
107
87
  Object.defineProperty(exports, "createPluginKey", {
108
88
  enumerable: true,
109
- get: function () { return chunkVZZPCYA3_cjs.createPluginKey; }
89
+ get: function () { return chunkFK7EBZPX_cjs.createPluginKey; }
110
90
  });
111
91
  Object.defineProperty(exports, "createState", {
112
92
  enumerable: true,
113
- get: function () { return chunkVZZPCYA3_cjs.createState; }
93
+ get: function () { return chunkFK7EBZPX_cjs.createState; }
114
94
  });
115
95
  Object.defineProperty(exports, "defineExtension", {
116
96
  enumerable: true,
117
- get: function () { return chunkVZZPCYA3_cjs.defineExtension; }
97
+ get: function () { return chunkFK7EBZPX_cjs.defineExtension; }
118
98
  });
119
99
  Object.defineProperty(exports, "fromHTML", {
120
100
  enumerable: true,
121
- get: function () { return chunkVZZPCYA3_cjs.fromHTML; }
101
+ get: function () { return chunkFK7EBZPX_cjs.fromHTML; }
122
102
  });
123
103
  Object.defineProperty(exports, "getPluginState", {
124
104
  enumerable: true,
125
- get: function () { return chunkVZZPCYA3_cjs.getPluginState; }
105
+ get: function () { return chunkFK7EBZPX_cjs.getPluginState; }
126
106
  });
127
107
  Object.defineProperty(exports, "insertBlockAfter", {
128
108
  enumerable: true,
129
- get: function () { return chunkVZZPCYA3_cjs.insertBlockAfter; }
109
+ get: function () { return chunkFK7EBZPX_cjs.insertBlockAfter; }
130
110
  });
131
111
  Object.defineProperty(exports, "insertBlocksStep", {
132
112
  enumerable: true,
133
- get: function () { return chunkVZZPCYA3_cjs.insertBlocksStep; }
113
+ get: function () { return chunkFK7EBZPX_cjs.insertBlocksStep; }
134
114
  });
135
115
  Object.defineProperty(exports, "insertText", {
136
116
  enumerable: true,
137
- get: function () { return chunkVZZPCYA3_cjs.insertText; }
117
+ get: function () { return chunkFK7EBZPX_cjs.insertText; }
138
118
  });
139
119
  Object.defineProperty(exports, "insertTextWithRules", {
140
120
  enumerable: true,
141
- get: function () { return chunkVZZPCYA3_cjs.insertTextWithRules; }
121
+ get: function () { return chunkFK7EBZPX_cjs.insertTextWithRules; }
142
122
  });
143
123
  Object.defineProperty(exports, "joinBlocksStep", {
144
124
  enumerable: true,
145
- get: function () { return chunkVZZPCYA3_cjs.joinBlocksStep; }
125
+ get: function () { return chunkFK7EBZPX_cjs.joinBlocksStep; }
146
126
  });
147
127
  Object.defineProperty(exports, "keyName", {
148
128
  enumerable: true,
149
- get: function () { return chunkVZZPCYA3_cjs.keyName; }
129
+ get: function () { return chunkFK7EBZPX_cjs.keyName; }
150
130
  });
151
131
  Object.defineProperty(exports, "markInputRules", {
152
132
  enumerable: true,
153
- get: function () { return chunkVZZPCYA3_cjs.markInputRules; }
133
+ get: function () { return chunkFK7EBZPX_cjs.markInputRules; }
154
134
  });
155
135
  Object.defineProperty(exports, "moveBlocksStep", {
156
136
  enumerable: true,
157
- get: function () { return chunkVZZPCYA3_cjs.moveBlocksStep; }
137
+ get: function () { return chunkFK7EBZPX_cjs.moveBlocksStep; }
158
138
  });
159
139
  Object.defineProperty(exports, "nodeSelection", {
160
140
  enumerable: true,
161
- get: function () { return chunkVZZPCYA3_cjs.nodeSelection; }
141
+ get: function () { return chunkFK7EBZPX_cjs.nodeSelection; }
162
142
  });
163
143
  Object.defineProperty(exports, "normalizeKey", {
164
144
  enumerable: true,
165
- get: function () { return chunkVZZPCYA3_cjs.normalizeKey; }
145
+ get: function () { return chunkFK7EBZPX_cjs.normalizeKey; }
166
146
  });
167
147
  Object.defineProperty(exports, "redo", {
168
148
  enumerable: true,
169
- get: function () { return chunkVZZPCYA3_cjs.redo; }
149
+ get: function () { return chunkFK7EBZPX_cjs.redo; }
170
150
  });
171
151
  Object.defineProperty(exports, "removeBlocksStep", {
172
152
  enumerable: true,
173
- get: function () { return chunkVZZPCYA3_cjs.removeBlocksStep; }
153
+ get: function () { return chunkFK7EBZPX_cjs.removeBlocksStep; }
174
154
  });
175
155
  Object.defineProperty(exports, "removeMarkStep", {
176
156
  enumerable: true,
177
- get: function () { return chunkVZZPCYA3_cjs.removeMarkStep; }
157
+ get: function () { return chunkFK7EBZPX_cjs.removeMarkStep; }
178
158
  });
179
159
  Object.defineProperty(exports, "replaceBlockStep", {
180
160
  enumerable: true,
181
- get: function () { return chunkVZZPCYA3_cjs.replaceBlockStep; }
161
+ get: function () { return chunkFK7EBZPX_cjs.replaceBlockStep; }
182
162
  });
183
163
  Object.defineProperty(exports, "replaceDocStep", {
184
164
  enumerable: true,
185
- get: function () { return chunkVZZPCYA3_cjs.replaceDocStep; }
165
+ get: function () { return chunkFK7EBZPX_cjs.replaceDocStep; }
186
166
  });
187
167
  Object.defineProperty(exports, "replaceInlineStep", {
188
168
  enumerable: true,
189
- get: function () { return chunkVZZPCYA3_cjs.replaceInlineStep; }
169
+ get: function () { return chunkFK7EBZPX_cjs.replaceInlineStep; }
190
170
  });
191
171
  Object.defineProperty(exports, "setAttrsStep", {
192
172
  enumerable: true,
193
- get: function () { return chunkVZZPCYA3_cjs.setAttrsStep; }
173
+ get: function () { return chunkFK7EBZPX_cjs.setAttrsStep; }
194
174
  });
195
175
  Object.defineProperty(exports, "setBlockType", {
196
176
  enumerable: true,
197
- get: function () { return chunkVZZPCYA3_cjs.setBlockType; }
177
+ get: function () { return chunkFK7EBZPX_cjs.setBlockType; }
198
178
  });
199
179
  Object.defineProperty(exports, "setIndentStep", {
200
180
  enumerable: true,
201
- get: function () { return chunkVZZPCYA3_cjs.setIndentStep; }
181
+ get: function () { return chunkFK7EBZPX_cjs.setIndentStep; }
202
182
  });
203
183
  Object.defineProperty(exports, "splitBlockStep", {
204
184
  enumerable: true,
205
- get: function () { return chunkVZZPCYA3_cjs.splitBlockStep; }
185
+ get: function () { return chunkFK7EBZPX_cjs.splitBlockStep; }
206
186
  });
207
187
  Object.defineProperty(exports, "stepFromJSON", {
208
188
  enumerable: true,
209
- get: function () { return chunkVZZPCYA3_cjs.stepFromJSON; }
189
+ get: function () { return chunkFK7EBZPX_cjs.stepFromJSON; }
210
190
  });
211
191
  Object.defineProperty(exports, "textSelection", {
212
192
  enumerable: true,
213
- get: function () { return chunkVZZPCYA3_cjs.textSelection; }
193
+ get: function () { return chunkFK7EBZPX_cjs.textSelection; }
214
194
  });
215
195
  Object.defineProperty(exports, "toHTML", {
216
196
  enumerable: true,
217
- get: function () { return chunkVZZPCYA3_cjs.toHTML; }
197
+ get: function () { return chunkFK7EBZPX_cjs.toHTML; }
218
198
  });
219
199
  Object.defineProperty(exports, "toMarkdown", {
220
200
  enumerable: true,
221
- get: function () { return chunkVZZPCYA3_cjs.toMarkdown; }
201
+ get: function () { return chunkFK7EBZPX_cjs.toMarkdown; }
222
202
  });
223
203
  Object.defineProperty(exports, "toPlainText", {
224
204
  enumerable: true,
225
- get: function () { return chunkVZZPCYA3_cjs.toPlainText; }
205
+ get: function () { return chunkFK7EBZPX_cjs.toPlainText; }
226
206
  });
227
207
  Object.defineProperty(exports, "toggleMark", {
228
208
  enumerable: true,
229
- get: function () { return chunkVZZPCYA3_cjs.toggleMark; }
209
+ get: function () { return chunkFK7EBZPX_cjs.toggleMark; }
230
210
  });
231
211
  Object.defineProperty(exports, "typographyRules", {
232
212
  enumerable: true,
233
- get: function () { return chunkVZZPCYA3_cjs.typographyRules; }
213
+ get: function () { return chunkFK7EBZPX_cjs.typographyRules; }
234
214
  });
235
215
  Object.defineProperty(exports, "undo", {
236
216
  enumerable: true,
237
- get: function () { return chunkVZZPCYA3_cjs.undo; }
217
+ get: function () { return chunkFK7EBZPX_cjs.undo; }
238
218
  });
239
219
  Object.defineProperty(exports, "diffBlocks", {
240
220
  enumerable: true,
241
- get: function () { return chunkBM2GRZNM_cjs.diffBlocks; }
221
+ get: function () { return chunkDJU25PFC_cjs.diffBlocks; }
242
222
  });
243
223
  Object.defineProperty(exports, "diffInline", {
244
224
  enumerable: true,
245
- get: function () { return chunkBM2GRZNM_cjs.diffInline; }
225
+ get: function () { return chunkDJU25PFC_cjs.diffInline; }
246
226
  });
247
227
  Object.defineProperty(exports, "PALETTE", {
248
228
  enumerable: true,
249
- get: function () { return chunkWZA5S5EJ_cjs.PALETTE; }
229
+ get: function () { return chunkI7X7B3WD_cjs.PALETTE; }
250
230
  });
251
231
  Object.defineProperty(exports, "atom", {
252
232
  enumerable: true,
253
- get: function () { return chunkWZA5S5EJ_cjs.atom; }
233
+ get: function () { return chunkI7X7B3WD_cjs.atom; }
254
234
  });
255
235
  Object.defineProperty(exports, "coreBlockSpecs", {
256
236
  enumerable: true,
257
- get: function () { return chunkWZA5S5EJ_cjs.coreBlockSpecs; }
237
+ get: function () { return chunkI7X7B3WD_cjs.coreBlockSpecs; }
258
238
  });
259
239
  Object.defineProperty(exports, "createBlockCodec", {
260
240
  enumerable: true,
261
- get: function () { return chunkWZA5S5EJ_cjs.createBlockCodec; }
241
+ get: function () { return chunkI7X7B3WD_cjs.createBlockCodec; }
262
242
  });
263
243
  Object.defineProperty(exports, "createSchema", {
264
244
  enumerable: true,
265
- get: function () { return chunkWZA5S5EJ_cjs.createSchema; }
245
+ get: function () { return chunkI7X7B3WD_cjs.createSchema; }
266
246
  });
267
247
  Object.defineProperty(exports, "fromMarkdown", {
268
248
  enumerable: true,
269
- get: function () { return chunkWZA5S5EJ_cjs.fromMarkdown; }
249
+ get: function () { return chunkI7X7B3WD_cjs.fromMarkdown; }
270
250
  });
271
251
  Object.defineProperty(exports, "normalizeInline", {
272
252
  enumerable: true,
273
- get: function () { return chunkWZA5S5EJ_cjs.normalizeInline; }
253
+ get: function () { return chunkI7X7B3WD_cjs.normalizeInline; }
274
254
  });
275
255
  Object.defineProperty(exports, "parseInline", {
276
256
  enumerable: true,
277
- get: function () { return chunkWZA5S5EJ_cjs.parseInline; }
257
+ get: function () { return chunkI7X7B3WD_cjs.parseInline; }
278
258
  });
279
259
  Object.defineProperty(exports, "sanitizeHref", {
280
260
  enumerable: true,
281
- get: function () { return chunkWZA5S5EJ_cjs.sanitizeHref; }
261
+ get: function () { return chunkI7X7B3WD_cjs.sanitizeHref; }
282
262
  });
283
263
  Object.defineProperty(exports, "serializeInline", {
284
264
  enumerable: true,
285
- get: function () { return chunkWZA5S5EJ_cjs.serializeInline; }
265
+ get: function () { return chunkI7X7B3WD_cjs.serializeInline; }
286
266
  });
287
267
  Object.defineProperty(exports, "text", {
288
268
  enumerable: true,
289
- get: function () { return chunkWZA5S5EJ_cjs.text; }
269
+ get: function () { return chunkI7X7B3WD_cjs.text; }
290
270
  });
@@ -1,15 +1,16 @@
1
- import { R as RenderOptions, V as ViewController } from './view-controller-BfVSNZYZ.cjs';
2
- export { A as AtomRenderer, K as KeyInterceptor, a as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './view-controller-BfVSNZYZ.cjs';
3
- import { I as Inline, b as Selection, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.cjs';
4
- export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.cjs';
5
- import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-DXF9p4qV.cjs';
6
- export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-DXF9p4qV.cjs';
1
+ import { R as RenderOptions, V as ViewController } from './node-reveal-DY6bimv3.cjs';
2
+ export { A as Announcer, a as AtomRenderer, E as Engagement, F as FocusTarget, H as HostEntry, b as HostRegistry, K as KeyInterceptor, N as NodeReveal, S as Spoken, c as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './node-reveal-DY6bimv3.cjs';
3
+ import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.cjs';
4
+ export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, b as Selection, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.cjs';
5
+ import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-Bzhq5AXj.cjs';
6
+ export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-Bzhq5AXj.cjs';
7
7
  import * as react from 'react';
8
8
  import { ComponentType, ReactNode } from 'react';
9
- export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange, PALETTE, SchemaInput, addMarkStep, atom, blockInputRules, blockRangeSelection, coreBlockSpecs, countDoc, countText, createBlockCodec, createSchema, defineExtension, diffBlocks, diffInline, fromMarkdown, insertBlocksStep, joinBlocksStep, markInputRules, moveBlocksStep, nodeSelection, normalizeInline, parseInline, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, sanitizeHref, serializeInline, setAttrsStep, setIndentStep, splitBlockStep, stepFromJSON, text, textSelection, toPlainText, typographyRules, undo } from './engine.cjs';
10
- export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-CFPMbbiX.cjs';
9
+ export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange, SchemaInput, addMarkStep, atom, blockInputRules, blockRangeSelection, coreBlockSpecs, countDoc, countText, createBlockCodec, createSchema, defineExtension, diffBlocks, diffInline, fromMarkdown, insertBlocksStep, joinBlocksStep, markInputRules, moveBlocksStep, nodeSelection, normalizeInline, parseInline, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, sanitizeHref, serializeInline, setAttrsStep, setIndentStep, splitBlockStep, stepFromJSON, text, textSelection, toPlainText, typographyRules, undo } from './engine.cjs';
10
+ export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-C2w7Dzg8.cjs';
11
+ export { P as PALETTE } from './palette-BrX-hEd-.cjs';
11
12
  export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.cjs';
12
- export { H as HTMLOptions, t as toHTML } from './to-html-1oD-CDle.cjs';
13
+ export { H as HTMLOptions, t as toHTML } from './to-html-C19PbIzh.cjs';
13
14
 
14
15
  type DomPoint = {
15
16
  node: Node;
@@ -30,8 +31,6 @@ type CaretPoint = {
30
31
  };
31
32
  declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
32
33
 
33
- declare function isCrossSelection(selection: Selection | null): boolean;
34
-
35
34
  /** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
36
35
  type BlockLabel = (block: EngineBlock, schema: Schema) => string;
37
36
 
@@ -48,6 +47,11 @@ type UseQuoinEditorOptions = {
48
47
  onFiles?: (files: File[], at: Pos | null) => void;
49
48
  render?: RenderOptions;
50
49
  };
50
+ /**
51
+ * The editor and the controller that binds it to the page, for a host that draws its own chrome around `EditorView`.
52
+ * The editor, its extensions and its render options are read once; the callbacks are read through a ref, so a new
53
+ * function identity on every render changes nothing.
54
+ */
51
55
  declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
52
56
 
53
57
  /** The text an empty block shows in its main region, read again whenever the editor state changes. */
@@ -88,6 +92,10 @@ type EditorViewProps = {
88
92
  /** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
89
93
  children?: ReactNode;
90
94
  };
95
+ /**
96
+ * The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
97
+ * It keeps the element it drew for each block, so define `renderers` once rather than on every render.
98
+ */
91
99
  declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, blockErrorLabel, onBlockError, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
92
100
 
93
101
  type EditableRegionProps = {
@@ -101,20 +109,5 @@ type EditableRegionProps = {
101
109
  };
102
110
  declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
103
111
 
104
- type BlockShellProps = {
105
- block: EngineBlock;
106
- renderers: Readonly<Record<string, BlockRenderer>>;
107
- };
108
- declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
109
-
110
- type SelectionSinkProps = {
111
- label?: string;
112
- blockLabel?: BlockLabel;
113
- };
114
- declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
115
-
116
- declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
117
- declare const VoidBlockFallback: BlockRenderer;
118
-
119
- export { BlockShell, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Selection, SelectionSink, Transaction, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController };
120
- export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
112
+ export { Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
113
+ export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
@@ -1,15 +1,16 @@
1
- import { R as RenderOptions, V as ViewController } from './view-controller-p-2x3J7Y.js';
2
- export { A as AtomRenderer, K as KeyInterceptor, a as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './view-controller-p-2x3J7Y.js';
3
- import { I as Inline, b as Selection, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.js';
4
- export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.js';
5
- import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-BjLcmV00.js';
6
- export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-BjLcmV00.js';
1
+ import { R as RenderOptions, V as ViewController } from './node-reveal-BnFcnHhz.js';
2
+ export { A as Announcer, a as AtomRenderer, E as Engagement, F as FocusTarget, H as HostEntry, b as HostRegistry, K as KeyInterceptor, N as NodeReveal, S as Spoken, c as ViewControllerOptions, W as WidgetRenderer, h as hostKey } from './node-reveal-BnFcnHhz.js';
3
+ import { I as Inline, k as EngineBlock, S as Schema, Q as QuoinBlock, P as Pos } from './types-CQ8Vw_7N.js';
4
+ export { d as Assoc, c as AtomNode, e as AtomSpec, A as Attrs, B as BlockAttrs, f as BlockContent, g as BlockFlow, h as BlockRangeSelection, i as BlockSpec, C as CodecContext, j as CreatedBlock, E as EngineDoc, l as InlineCodec, m as InlineNode, M as Mark, n as MarkSpec, o as MarkdownExportContext, N as NodeSelection, p as ParseInlineOptions, q as PosMap, b as Selection, r as SerializeInlineOptions, a as Step, s as StepJSON, t as StepResult, T as TextNode, u as TextSelection } from './types-CQ8Vw_7N.js';
5
+ import { D as Decoration, c as EditorState, E as Extension, T as Transaction } from './types-DMuuDBVh.js';
6
+ export { A as Align, B as BlockStructureOptions, e as BoundCommands, f as Chain, b as Command, C as CommandFactories, g as CoreCommands, h as CoreExtensionOptions, i as DOMParserLike, a as Editor, j as EditorOptions, F as FromHTMLOptions, I as InputRule, k as InputRuleContext, l as InputRuleRange, m as InsertTextOptions, K as KeyLike, M as MarkdownOptions, n as PasteRule, P as PluginKey, d as PluginSpec, S as Slice, o as TextStats, p as TransactionOrigin, q as applyTransaction, r as coreExtensions, s as createEditor, t as createPluginKey, u as createState, v as fromHTML, w as getPluginState, x as insertBlockAfter, y as insertText, z as insertTextWithRules, G as keyName, H as normalizeKey, J as setBlockType, L as toggleMark } from './types-DMuuDBVh.js';
7
7
  import * as react from 'react';
8
8
  import { ComponentType, ReactNode } from 'react';
9
- export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange, PALETTE, SchemaInput, addMarkStep, atom, blockInputRules, blockRangeSelection, coreBlockSpecs, countDoc, countText, createBlockCodec, createSchema, defineExtension, diffBlocks, diffInline, fromMarkdown, insertBlocksStep, joinBlocksStep, markInputRules, moveBlocksStep, nodeSelection, normalizeInline, parseInline, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, sanitizeHref, serializeInline, setAttrsStep, setIndentStep, splitBlockStep, stepFromJSON, text, textSelection, toPlainText, typographyRules, undo } from './engine.js';
10
- export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-BVOzhgVM.js';
9
+ export { AttrsPatch, BlockChange, BlockCodec, BlockDiff, FromMarkdownOptions, InlineChange, SchemaInput, addMarkStep, atom, blockInputRules, blockRangeSelection, coreBlockSpecs, countDoc, countText, createBlockCodec, createSchema, defineExtension, diffBlocks, diffInline, fromMarkdown, insertBlocksStep, joinBlocksStep, markInputRules, moveBlocksStep, nodeSelection, normalizeInline, parseInline, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, sanitizeHref, serializeInline, setAttrsStep, setIndentStep, splitBlockStep, stepFromJSON, text, textSelection, toPlainText, typographyRules, undo } from './engine.js';
10
+ export { T as ToMarkdownOptions, t as toMarkdown } from './to-markdown-DC1EUye5.js';
11
+ export { P as PALETTE } from './palette-BrX-hEd-.js';
11
12
  export { E as EmbedProvider, a as EmbedUrl } from './embed-provider-jXwlRmnp.js';
12
- export { H as HTMLOptions, t as toHTML } from './to-html-CLRBCX0I.js';
13
+ export { H as HTMLOptions, t as toHTML } from './to-html-CogwrQer.js';
13
14
 
14
15
  type DomPoint = {
15
16
  node: Node;
@@ -30,8 +31,6 @@ type CaretPoint = {
30
31
  };
31
32
  declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
32
33
 
33
- declare function isCrossSelection(selection: Selection | null): boolean;
34
-
35
34
  /** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
36
35
  type BlockLabel = (block: EngineBlock, schema: Schema) => string;
37
36
 
@@ -48,6 +47,11 @@ type UseQuoinEditorOptions = {
48
47
  onFiles?: (files: File[], at: Pos | null) => void;
49
48
  render?: RenderOptions;
50
49
  };
50
+ /**
51
+ * The editor and the controller that binds it to the page, for a host that draws its own chrome around `EditorView`.
52
+ * The editor, its extensions and its render options are read once; the callbacks are read through a ref, so a new
53
+ * function identity on every render changes nothing.
54
+ */
51
55
  declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
52
56
 
53
57
  /** The text an empty block shows in its main region, read again whenever the editor state changes. */
@@ -88,6 +92,10 @@ type EditorViewProps = {
88
92
  /** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
89
93
  children?: ReactNode;
90
94
  };
95
+ /**
96
+ * The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
97
+ * It keeps the element it drew for each block, so define `renderers` once rather than on every render.
98
+ */
91
99
  declare function EditorView({ controller, renderers, className, id, 'aria-label': label, hint, paragraphLabel, selectedContentLabel, blockLabel, unsupportedBlockLabel, blockErrorLabel, onBlockError, placeholder, blockPlaceholder, blocksSelectedLabel, children, }: EditorViewProps): react.JSX.Element;
92
100
 
93
101
  type EditableRegionProps = {
@@ -101,20 +109,5 @@ type EditableRegionProps = {
101
109
  };
102
110
  declare function EditableRegion({ block, region, label, id, placeholder, className }: EditableRegionProps): react.JSX.Element;
103
111
 
104
- type BlockShellProps = {
105
- block: EngineBlock;
106
- renderers: Readonly<Record<string, BlockRenderer>>;
107
- };
108
- declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
109
-
110
- type SelectionSinkProps = {
111
- label?: string;
112
- blockLabel?: BlockLabel;
113
- };
114
- declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
115
-
116
- declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
117
- declare const VoidBlockFallback: BlockRenderer;
118
-
119
- export { BlockShell, Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Selection, SelectionSink, Transaction, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController };
120
- export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
112
+ export { Decoration, EditableRegion, EditorState, EditorView, EngineBlock, Extension, Inline, Pos, QuoinBlock, RenderOptions, Schema, Transaction, ViewController, caretFromPoint, domMapOf, renderInline, useEditorState, useQuoinEditor, useViewController };
113
+ export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, UseQuoinEditorOptions };
package/dist/headless.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- export { BlockShell, EditableRegion, EditorView, SelectionSink, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, hostKey, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-XFEDJEJF.js';
3
- export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-OS2O6IKX.js';
4
- export { diffBlocks, diffInline } from './chunk-CSKKSXCE.js';
5
- export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-BJTOLCRR.js';
2
+ export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-NL5J77VD.js';
3
+ export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-5RBMZGKV.js';
4
+ export { diffBlocks, diffInline } from './chunk-CSPCDVCT.js';
5
+ export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-7Y4B7NHO.js';
6
6
  //# sourceMappingURL=headless.js.map
7
7
  //# sourceMappingURL=headless.js.map
@@ -2,12 +2,13 @@
2
2
  'use strict';
3
3
 
4
4
  var chunk2SWLD6R5_cjs = require('./chunk-2SWLD6R5.cjs');
5
- var chunk6T5YGCZ5_cjs = require('./chunk-6T5YGCZ5.cjs');
6
- require('./chunk-QJ34MOFV.cjs');
5
+ var chunkCJVJNMOB_cjs = require('./chunk-CJVJNMOB.cjs');
6
+ require('./chunk-Z6LAARPB.cjs');
7
+ require('./chunk-ZWTIRGY5.cjs');
7
8
  require('./chunk-A6PGQVTR.cjs');
8
- require('./chunk-VZZPCYA3.cjs');
9
- require('./chunk-BM2GRZNM.cjs');
10
- require('./chunk-WZA5S5EJ.cjs');
9
+ require('./chunk-FK7EBZPX.cjs');
10
+ require('./chunk-DJU25PFC.cjs');
11
+ require('./chunk-I7X7B3WD.cjs');
11
12
  var react = require('react');
12
13
 
13
14
  // src/blocks/code/prism/grammar-name.ts
@@ -15,7 +16,7 @@ var NEAREST = { dockerfile: "docker", html: "markup", xml: "markup", shell: "bas
15
16
  function grammarName(language) {
16
17
  const key = language.trim().toLowerCase();
17
18
  if (key === "") return void 0;
18
- const known = chunk6T5YGCZ5_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
19
+ const known = chunkCJVJNMOB_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
19
20
  return known && (NEAREST[known.id] ?? known.id);
20
21
  }
21
22
 
package/dist/highlight.js CHANGED
@@ -1,11 +1,12 @@
1
1
  'use client';
2
2
  import { lazyLoad } from './chunk-KTUOPDVO.js';
3
- import { CODE_LANGUAGES } from './chunk-HSLOPJVT.js';
4
- import './chunk-XFEDJEJF.js';
3
+ import { CODE_LANGUAGES } from './chunk-ZN5DHNSL.js';
4
+ import './chunk-NL5J77VD.js';
5
+ import './chunk-DLQCTGC3.js';
5
6
  import './chunk-HDJ653LM.js';
6
- import './chunk-OS2O6IKX.js';
7
- import './chunk-CSKKSXCE.js';
8
- import './chunk-BJTOLCRR.js';
7
+ import './chunk-5RBMZGKV.js';
8
+ import './chunk-CSPCDVCT.js';
9
+ import './chunk-7Y4B7NHO.js';
9
10
  import { useState, useEffect, useMemo } from 'react';
10
11
 
11
12
  // src/blocks/code/prism/grammar-name.ts
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/blocks/code/prism/grammar-name.ts","../src/blocks/code/prism/prism-tokens.ts","../src/blocks/code/prism/prism-highlight.ts","../src/blocks/code/prism/prism-source.ts","../src/blocks/code/prism/use-prism-highlighter.ts"],"names":[],"mappings":";;;;;;;;;;;AAGA,IAAM,UAAkC,EAAE,YAAY,UAAU,MAAM,UAAU,KAAK,UAAU,OAAO,QAAO;AAGtG,SAAS,YAAY,UAAsC;AAChE,QAAM,MAAM,SAAS,MAAK,CAAE,aAAY;AACxC,MAAI,QAAQ,IAAI,OAAO;AACvB,QAAM,QAAQ,eAAe,KAAK,CAAC,EAAE,IAAI,UAAU,EAAC,OAAQ,OAAO,OAAO,QAAQ,SAAS,GAAG,CAAC;AAC/F,SAAO,UAAU,QAAQ,MAAM,EAAE,KAAK,MAAM;AAC9C;;;ACJA,IAAM,OAAO;AAEb,SAAS,UAAU,OAAuC;AACxD,QAAM,QAAQ,OAAO,MAAM,UAAU,WAAW,MAAM,QAAQ,MAAM,QAAQ,CAAC;AAC7E,QAAM,OAAO,SAAS,MAAM;AAC5B,SAAO,KAAK,KAAK,IAAI,IAAI,aAAa,IAAI,KAAK;AACjD;AAGA,SAAS,SAAS,OAAsB,MAAc,OAAiC;AACrF,OAAK,MAAM,IAAI,EAAE,QAAQ,CAAC,MAAM,UAAU;AACxC,QAAI,QAAQ,GAAG,MAAM,KAAK,EAAE;AAC5B,QAAI,SAAS,IAAI;AACjB,UAAM,MAAM,SAAS,CAAC,EAAE,KAAK,UAAU,SAAY,EAAE,MAAM,SAAS,EAAE,MAAM,MAAM,WAAW,OAAO;AAAA,EACtG,CAAC;AACH;AAEA,SAAS,KAAK,MAAiB,OAA2B,OAA4B;AACpF,MAAI,OAAO,SAAS,iBAAiB,SAAS,OAAO,MAAM,KAAK;AAChE,MAAI,MAAM,QAAQ,IAAI,GAAG,OAAQ,KAA8B,QAAQ,CAAC,UAAU,KAAK,OAAO,OAAO,KAAK,CAAC;AAC3G,QAAM,QAAQ;AACd,OAAK,MAAM,SAAS,UAAU,KAAK,KAAK,OAAO,KAAK;AACtD;AAGO,SAAS,UAAU,OAA4C;AACpE,QAAM,QAAuB,CAAC,EAAE;AAChC,QAAM,QAAQ,CAAC,SAAS,KAAK,MAAM,QAAW,KAAK,CAAC;AACpD,SAAO;AACT;;;AC3BA,SAAS,QAAQ,UAAoB,MAAc,SAAqC;AACtF,MAAI;AACF,WAAO,SAAS,MAAM,OAAO;AAAA,EAC/B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGO,SAAS,cAAc,UAAoB,MAAc,UAAiC;AAC/F,QAAM,UAAU,YAAY,QAAQ;AACpC,QAAM,QAAQ,YAAY,SAAY,OAAO,QAAQ,UAAU,MAAM,OAAO;AAC5E,SAAO,UAAU,SAAS,CAAC,IAAI,CAAC;AAClC;;;ACTA,eAAe,iBAAoC;AACjD,QAAM,UAAU;AAChB,QAAM,SAAS,QAAQ;AACvB,UAAQ,QAAQ,EAAE,QAAQ,MAAK;AAC/B,MAAI;AACF,UAAM,EAAE,UAAS,GAAI,MAAM,OAAO,qBAAkB;AACpD,WAAO;AAAA,EACT,UAAE;AACA,QAAI,WAAW,QAAW,OAAO,QAAQ;AAAA,iBAC5B,QAAQ;AAAA,EACvB;AACF;AAGO,IAAM,cAAc,SAAS,cAAc;;;ACf3C,SAAS,sBAAmD;AACjE,QAAM,CAAC,UAAU,WAAW,IAAI,SAA+B,YAAY,MAAM;AAEjF,YAAU,MAAM;AACd,QAAI,aAAa,QAAW;AAC5B,QAAI,OAAO;AAEX,SAAK,YAAY,MAAK,CAAE;AAAA,MACtB,CAAC,WAAW,MAAM,QAAQ,YAAY,MAAM,MAAM;AAAA,MAClD,MAAM;AAAA,MAAC;AAAA,KACT;AACA,WAAO,MAAM;AACX,aAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,SAAO;AAAA,IACL,MAAO,aAAa,SAAY,SAAY,CAAC,MAAM,aAAa,cAAc,UAAU,MAAM,QAAQ;AAAA,IACtG,CAAC,QAAQ;AAAA,GACX;AACF","file":"highlight.js"}
1
+ {"version":3,"sources":["../src/blocks/code/prism/grammar-name.ts","../src/blocks/code/prism/prism-tokens.ts","../src/blocks/code/prism/prism-highlight.ts","../src/blocks/code/prism/prism-source.ts","../src/blocks/code/prism/use-prism-highlighter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,IAAM,UAAkC,EAAE,YAAY,UAAU,MAAM,UAAU,KAAK,UAAU,OAAO,QAAO;AAGtG,SAAS,YAAY,UAAsC;AAChE,QAAM,MAAM,SAAS,MAAK,CAAE,aAAY;AACxC,MAAI,QAAQ,IAAI,OAAO;AACvB,QAAM,QAAQ,eAAe,KAAK,CAAC,EAAE,IAAI,UAAU,EAAC,OAAQ,OAAO,OAAO,QAAQ,SAAS,GAAG,CAAC;AAC/F,SAAO,UAAU,QAAQ,MAAM,EAAE,KAAK,MAAM;AAC9C;;;ACJA,IAAM,OAAO;AAEb,SAAS,UAAU,OAAuC;AACxD,QAAM,QAAQ,OAAO,MAAM,UAAU,WAAW,MAAM,QAAQ,MAAM,QAAQ,CAAC;AAC7E,QAAM,OAAO,SAAS,MAAM;AAC5B,SAAO,KAAK,KAAK,IAAI,IAAI,aAAa,IAAI,KAAK;AACjD;AAGA,SAAS,SAAS,OAAsB,MAAc,OAAiC;AACrF,OAAK,MAAM,IAAI,EAAE,QAAQ,CAAC,MAAM,UAAU;AACxC,QAAI,QAAQ,GAAG,MAAM,KAAK,EAAE;AAC5B,QAAI,SAAS,IAAI;AACjB,UAAM,MAAM,SAAS,CAAC,EAAE,KAAK,UAAU,SAAY,EAAE,MAAM,SAAS,EAAE,MAAM,MAAM,WAAW,OAAO;AAAA,EACtG,CAAC;AACH;AAEA,SAAS,KAAK,MAAiB,OAA2B,OAA4B;AACpF,MAAI,OAAO,SAAS,iBAAiB,SAAS,OAAO,MAAM,KAAK;AAChE,MAAI,MAAM,QAAQ,IAAI,GAAG,OAAQ,KAA8B,QAAQ,CAAC,UAAU,KAAK,OAAO,OAAO,KAAK,CAAC;AAC3G,QAAM,QAAQ;AACd,OAAK,MAAM,SAAS,UAAU,KAAK,KAAK,OAAO,KAAK;AACtD;AAGO,SAAS,UAAU,OAA4C;AACpE,QAAM,QAAuB,CAAC,EAAE;AAChC,QAAM,QAAQ,CAAC,SAAS,KAAK,MAAM,QAAW,KAAK,CAAC;AACpD,SAAO;AACT;;;AC3BA,SAAS,QAAQ,UAAoB,MAAc,SAAqC;AACtF,MAAI;AACF,WAAO,SAAS,MAAM,OAAO;AAAA,EAC/B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAGO,SAAS,cAAc,UAAoB,MAAc,UAAiC;AAC/F,QAAM,UAAU,YAAY,QAAQ;AACpC,QAAM,QAAQ,YAAY,SAAY,OAAO,QAAQ,UAAU,MAAM,OAAO;AAC5E,SAAO,UAAU,SAAS,CAAC,IAAI,CAAC;AAClC;;;ACTA,eAAe,iBAAoC;AACjD,QAAM,UAAU;AAChB,QAAM,SAAS,QAAQ;AACvB,UAAQ,QAAQ,EAAE,QAAQ,MAAK;AAC/B,MAAI;AACF,UAAM,EAAE,UAAS,GAAI,MAAM,OAAO,qBAAkB;AACpD,WAAO;AAAA,EACT,UAAE;AACA,QAAI,WAAW,QAAW,OAAO,QAAQ;AAAA,iBAC5B,QAAQ;AAAA,EACvB;AACF;AAGO,IAAM,cAAc,SAAS,cAAc;;;ACf3C,SAAS,sBAAmD;AACjE,QAAM,CAAC,UAAU,WAAW,IAAI,SAA+B,YAAY,MAAM;AAEjF,YAAU,MAAM;AACd,QAAI,aAAa,QAAW;AAC5B,QAAI,OAAO;AAEX,SAAK,YAAY,MAAK,CAAE;AAAA,MACtB,CAAC,WAAW,MAAM,QAAQ,YAAY,MAAM,MAAM;AAAA,MAClD,MAAM;AAAA,MAAC;AAAA,KACT;AACA,WAAO,MAAM;AACX,aAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,SAAO;AAAA,IACL,MAAO,aAAa,SAAY,SAAY,CAAC,MAAM,aAAa,cAAc,UAAU,MAAM,QAAQ;AAAA,IACtG,CAAC,QAAQ;AAAA,GACX;AACF","file":"highlight.js"}
@@ -1,5 +1,5 @@
1
1
  import * as Y from 'yjs';
2
- import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-DXF9p4qV.cjs';
2
+ import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-Bzhq5AXj.cjs';
3
3
 
4
4
  type CollaborationHistory = {
5
5
  undo(): boolean;
@@ -1,5 +1,5 @@
1
1
  import * as Y from 'yjs';
2
- import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-BjLcmV00.js';
2
+ import { a as Editor, C as CommandFactories, T as Transaction, c as EditorState } from './types-DMuuDBVh.js';
3
3
 
4
4
  type CollaborationHistory = {
5
5
  undo(): boolean;