quoin-editor 1.7.0 → 1.8.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 (257) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +25 -10
  3. package/dist/ai-labels-BXX32H9a.d.cts +53 -0
  4. package/dist/ai-labels-BXX32H9a.d.ts +53 -0
  5. package/dist/ai.cjs +84 -86
  6. package/dist/ai.d.cts +4 -53
  7. package/dist/ai.d.ts +4 -53
  8. package/dist/ai.js +8 -10
  9. package/dist/ai.js.map +1 -1
  10. package/dist/catalogue.cjs +27 -26
  11. package/dist/catalogue.d.cts +10 -1
  12. package/dist/catalogue.d.ts +10 -1
  13. package/dist/catalogue.js +18 -17
  14. package/dist/catalogue.js.map +1 -1
  15. package/dist/{chunk-QR2NIDUK.cjs → chunk-4MCYQHFL.cjs} +2 -2
  16. package/dist/{chunk-YEFPH27F.cjs → chunk-53CNYRVQ.cjs} +92 -94
  17. package/dist/{chunk-FNJOPGMN.cjs → chunk-53FJFYBR.cjs} +115 -117
  18. package/dist/{chunk-OJ4O6HWC.js → chunk-5OZX2LV4.js} +10 -12
  19. package/dist/chunk-5OZX2LV4.js.map +1 -0
  20. package/dist/{chunk-OS2O6IKX.js → chunk-5RBMZGKV.js} +4 -4
  21. package/dist/{chunk-OS2O6IKX.js.map → chunk-5RBMZGKV.js.map} +1 -1
  22. package/dist/{chunk-4T4TJ2QS.cjs → chunk-7E43TURF.cjs} +7 -7
  23. package/dist/{chunk-I722LBD3.cjs → chunk-7X3T7VXV.cjs} +32 -34
  24. package/dist/{chunk-BJTOLCRR.js → chunk-7Y4B7NHO.js} +2 -2
  25. package/dist/chunk-7Y4B7NHO.js.map +1 -0
  26. package/dist/{chunk-MZXW2HXP.cjs → chunk-B3OBM6I4.cjs} +25 -27
  27. package/dist/{chunk-6T5YGCZ5.cjs → chunk-BA5WXBGE.cjs} +290 -293
  28. package/dist/{chunk-CSKKSXCE.js → chunk-CSPCDVCT.js} +3 -3
  29. package/dist/{chunk-CSKKSXCE.js.map → chunk-CSPCDVCT.js.map} +1 -1
  30. package/dist/{chunk-R7MYG522.js → chunk-D4L5FINK.js} +3 -3
  31. package/dist/{chunk-R7MYG522.js.map → chunk-D4L5FINK.js.map} +1 -1
  32. package/dist/{chunk-GHNQKJMD.js → chunk-DBOZFNWU.js} +3 -3
  33. package/dist/{chunk-GHNQKJMD.js.map → chunk-DBOZFNWU.js.map} +1 -1
  34. package/dist/{chunk-BM2GRZNM.cjs → chunk-DJU25PFC.cjs} +11 -11
  35. package/dist/chunk-DLQCTGC3.js +10 -0
  36. package/dist/chunk-DLQCTGC3.js.map +1 -0
  37. package/dist/{chunk-7GU25Z6L.js → chunk-DXUDBPG5.js} +9 -11
  38. package/dist/chunk-DXUDBPG5.js.map +1 -0
  39. package/dist/{chunk-KDK2ATMB.cjs → chunk-EZWJRBQT.cjs} +51 -53
  40. package/dist/{chunk-PWUFFHAQ.js → chunk-EZX37R5D.js} +8 -10
  41. package/dist/chunk-EZX37R5D.js.map +1 -0
  42. package/dist/{chunk-VZZPCYA3.cjs → chunk-FK7EBZPX.cjs} +226 -226
  43. package/dist/{chunk-BXSWZEA5.js → chunk-GPTJYWGS.js} +3 -3
  44. package/dist/{chunk-BXSWZEA5.js.map → chunk-GPTJYWGS.js.map} +1 -1
  45. package/dist/{chunk-H3C3MJW5.cjs → chunk-LM3DHROX.cjs} +2 -2
  46. package/dist/{chunk-AD3NY7NA.js → chunk-LSI4RMTY.js} +3 -3
  47. package/dist/{chunk-AD3NY7NA.js.map → chunk-LSI4RMTY.js.map} +1 -1
  48. package/dist/{chunk-LKZJ2TDU.cjs → chunk-MMS4D4MK.cjs} +10 -13
  49. package/dist/{chunk-PLUMKN4B.js → chunk-MRHDPXQ7.js} +8 -10
  50. package/dist/chunk-MRHDPXQ7.js.map +1 -0
  51. package/dist/{chunk-XFEDJEJF.js → chunk-MSWA5ZZM.js} +4 -4
  52. package/dist/{chunk-XFEDJEJF.js.map → chunk-MSWA5ZZM.js.map} +1 -1
  53. package/dist/{chunk-RQXJKJ5S.js → chunk-NCDMQCZR.js} +7 -10
  54. package/dist/chunk-NCDMQCZR.js.map +1 -0
  55. package/dist/{chunk-QJ34MOFV.cjs → chunk-P6HC7RUN.cjs} +120 -120
  56. package/dist/{chunk-UZS3TW75.js → chunk-PHQMHXNG.js} +9 -11
  57. package/dist/chunk-PHQMHXNG.js.map +1 -0
  58. package/dist/{chunk-WN7BZDNH.cjs → chunk-PURYVDC3.cjs} +13 -13
  59. package/dist/{chunk-JY5VUHKN.cjs → chunk-PVFSJXYQ.cjs} +28 -30
  60. package/dist/{chunk-QOIVLYMW.js → chunk-SP4F5F6V.js} +5 -5
  61. package/dist/{chunk-QOIVLYMW.js.map → chunk-SP4F5F6V.js.map} +1 -1
  62. package/dist/{chunk-BF7733XS.cjs → chunk-TQHFGSTT.cjs} +57 -59
  63. package/dist/{chunk-G25FMFEZ.js → chunk-UDBLZILE.js} +4 -4
  64. package/dist/{chunk-G25FMFEZ.js.map → chunk-UDBLZILE.js.map} +1 -1
  65. package/dist/{chunk-5JEQZIRI.js → chunk-VM567D6O.js} +8 -10
  66. package/dist/chunk-VM567D6O.js.map +1 -0
  67. package/dist/{chunk-MNA7MBCH.js → chunk-VWYPO6SX.js} +8 -10
  68. package/dist/chunk-VWYPO6SX.js.map +1 -0
  69. package/dist/{chunk-IJKGF6SC.js → chunk-WOGCD7JN.js} +8 -10
  70. package/dist/chunk-WOGCD7JN.js.map +1 -0
  71. package/dist/{chunk-AZF7B2AE.cjs → chunk-XKYNINUX.cjs} +11 -11
  72. package/dist/{chunk-HSLOPJVT.js → chunk-Y4EJ6UBV.js} +7 -10
  73. package/dist/chunk-Y4EJ6UBV.js.map +1 -0
  74. package/dist/{chunk-XZ4NC3Q7.cjs → chunk-YEDPBYO5.cjs} +4 -4
  75. package/dist/{chunk-STKGRXSA.cjs → chunk-YVPZDTVZ.cjs} +15 -17
  76. package/dist/chunk-ZWTIRGY5.cjs +10 -0
  77. package/dist/comments-labels-DWqsSz8G.d.cts +30 -0
  78. package/dist/comments-labels-DWqsSz8G.d.ts +30 -0
  79. package/dist/comments.cjs +63 -65
  80. package/dist/comments.d.cts +4 -30
  81. package/dist/comments.d.ts +4 -30
  82. package/dist/comments.js +9 -11
  83. package/dist/comments.js.map +1 -1
  84. package/dist/{diagram-extension-Da7hp-tv.d.ts → diagram-extension-22x_njXB.d.ts} +4 -12
  85. package/dist/{diagram-extension-D573COJv.d.cts → diagram-extension-C_FSkoj9.d.cts} +4 -12
  86. package/dist/diagram-labels-Bi_jEZ8_.d.cts +11 -0
  87. package/dist/diagram-labels-Bi_jEZ8_.d.ts +11 -0
  88. package/dist/diagram.cjs +10 -9
  89. package/dist/diagram.d.cts +3 -2
  90. package/dist/diagram.d.ts +3 -2
  91. package/dist/diagram.js +7 -6
  92. package/dist/diff-labels-DWwg7N0n.d.cts +27 -0
  93. package/dist/diff-labels-DWwg7N0n.d.ts +27 -0
  94. package/dist/diff.cjs +27 -29
  95. package/dist/diff.d.cts +4 -27
  96. package/dist/diff.d.ts +4 -27
  97. package/dist/diff.js +5 -7
  98. package/dist/diff.js.map +1 -1
  99. package/dist/docx.cjs +30 -30
  100. package/dist/docx.js +3 -3
  101. package/dist/embed-labels-BiVa9HYl.d.cts +23 -0
  102. package/dist/embed-labels-BiVa9HYl.d.ts +23 -0
  103. package/dist/embed.cjs +10 -9
  104. package/dist/embed.d.cts +4 -23
  105. package/dist/embed.d.ts +4 -23
  106. package/dist/embed.js +8 -7
  107. package/dist/emoji-extension-C832oGeT.d.ts +16 -0
  108. package/dist/emoji-extension-Dk5IQLZf.d.cts +16 -0
  109. package/dist/{emoji-extension-gRKnbW8G.d.ts → emoji-labels-YwOms7ZJ.d.cts} +2 -15
  110. package/dist/{emoji-extension-C3o_Y5uC.d.cts → emoji-labels-YwOms7ZJ.d.ts} +2 -15
  111. package/dist/emoji.cjs +10 -9
  112. package/dist/emoji.d.cts +4 -3
  113. package/dist/emoji.d.ts +4 -3
  114. package/dist/emoji.js +7 -6
  115. package/dist/engine.cjs +58 -58
  116. package/dist/engine.d.cts +8 -7
  117. package/dist/engine.d.ts +8 -7
  118. package/dist/engine.js +3 -3
  119. package/dist/find-extension-BfruAPLi.d.cts +15 -0
  120. package/dist/find-extension-DmK9_N81.d.ts +15 -0
  121. package/dist/{find-extension-B_Ctrs6T.d.ts → find-labels-C4vs8Qe9.d.cts} +2 -14
  122. package/dist/{find-extension-BGGsJMu4.d.cts → find-labels-C4vs8Qe9.d.ts} +2 -14
  123. package/dist/find.cjs +11 -10
  124. package/dist/find.d.cts +2 -1
  125. package/dist/find.d.ts +2 -1
  126. package/dist/find.js +7 -6
  127. package/dist/headless.cjs +74 -74
  128. package/dist/headless.d.cts +38 -8
  129. package/dist/headless.d.ts +38 -8
  130. package/dist/headless.js +4 -4
  131. package/dist/highlight.cjs +7 -6
  132. package/dist/highlight.js +6 -5
  133. package/dist/highlight.js.map +1 -1
  134. package/dist/{index-CsG7OQoq.d.cts → index-3fYvwqUZ.d.cts} +1 -1
  135. package/dist/{index-h1llgZM-.d.ts → index-CgxnzCO5.d.ts} +1 -1
  136. package/dist/index.cjs +87 -86
  137. package/dist/index.d.cts +18 -185
  138. package/dist/index.d.ts +18 -185
  139. package/dist/index.js +6 -5
  140. package/dist/labels-BhRJYo46.d.ts +176 -0
  141. package/dist/labels-CiCxj2jP.d.cts +176 -0
  142. package/dist/locale-ar.cjs +565 -0
  143. package/dist/locale-ar.d.cts +63 -0
  144. package/dist/locale-ar.d.ts +63 -0
  145. package/dist/locale-ar.js +551 -0
  146. package/dist/locale-ar.js.map +1 -0
  147. package/dist/locale-de.cjs +510 -0
  148. package/dist/locale-de.d.cts +63 -0
  149. package/dist/locale-de.d.ts +63 -0
  150. package/dist/locale-de.js +496 -0
  151. package/dist/locale-de.js.map +1 -0
  152. package/dist/locale-es.cjs +510 -0
  153. package/dist/locale-es.d.cts +63 -0
  154. package/dist/locale-es.d.ts +63 -0
  155. package/dist/locale-es.js +496 -0
  156. package/dist/locale-es.js.map +1 -0
  157. package/dist/locale-fr.cjs +510 -0
  158. package/dist/locale-fr.d.cts +63 -0
  159. package/dist/locale-fr.d.ts +63 -0
  160. package/dist/locale-fr.js +496 -0
  161. package/dist/locale-fr.js.map +1 -0
  162. package/dist/locale-ja.cjs +505 -0
  163. package/dist/locale-ja.d.cts +63 -0
  164. package/dist/locale-ja.d.ts +63 -0
  165. package/dist/locale-ja.js +491 -0
  166. package/dist/locale-ja.js.map +1 -0
  167. package/dist/locale-pt.cjs +511 -0
  168. package/dist/locale-pt.d.cts +63 -0
  169. package/dist/locale-pt.d.ts +63 -0
  170. package/dist/locale-pt.js +497 -0
  171. package/dist/locale-pt.js.map +1 -0
  172. package/dist/locale-zh.cjs +505 -0
  173. package/dist/locale-zh.d.cts +63 -0
  174. package/dist/locale-zh.d.ts +63 -0
  175. package/dist/locale-zh.js +491 -0
  176. package/dist/locale-zh.js.map +1 -0
  177. package/dist/math-labels-DOf5KFxp.d.cts +24 -0
  178. package/dist/math-labels-DOf5KFxp.d.ts +24 -0
  179. package/dist/math.cjs +11 -10
  180. package/dist/math.d.cts +4 -24
  181. package/dist/math.d.ts +4 -24
  182. package/dist/math.js +9 -8
  183. package/dist/mention-labels-DIQy8LRT.d.cts +15 -0
  184. package/dist/mention-labels-DIQy8LRT.d.ts +15 -0
  185. package/dist/mention.cjs +11 -10
  186. package/dist/mention.d.cts +4 -15
  187. package/dist/mention.d.ts +4 -15
  188. package/dist/mention.js +9 -8
  189. package/dist/{view-controller-p-2x3J7Y.d.ts → node-reveal-BnFcnHhz.d.ts} +14 -14
  190. package/dist/{view-controller-BfVSNZYZ.d.cts → node-reveal-DY6bimv3.d.cts} +14 -14
  191. package/dist/palette-BrX-hEd-.d.cts +4 -0
  192. package/dist/palette-BrX-hEd-.d.ts +4 -0
  193. package/dist/presence-labels-DXVJLifl.d.cts +15 -0
  194. package/dist/presence-labels-DXVJLifl.d.ts +15 -0
  195. package/dist/presence.cjs +40 -42
  196. package/dist/presence.d.cts +4 -15
  197. package/dist/presence.d.ts +4 -15
  198. package/dist/presence.js +9 -11
  199. package/dist/presence.js.map +1 -1
  200. package/dist/source-labels-CeQDXsYZ.d.cts +9 -0
  201. package/dist/source-labels-CeQDXsYZ.d.ts +9 -0
  202. package/dist/source.cjs +11 -14
  203. package/dist/source.d.cts +5 -10
  204. package/dist/source.d.ts +5 -10
  205. package/dist/source.js +7 -10
  206. package/dist/source.js.map +1 -1
  207. package/dist/{stats-extension-oD6D1cYy.d.ts → stats-extension-D5HySF0a.d.cts} +4 -16
  208. package/dist/{stats-extension-XqOTvRaq.d.cts → stats-extension-Dmw0Ujxe.d.ts} +4 -16
  209. package/dist/stats-labels-W8gep51s.d.cts +15 -0
  210. package/dist/stats-labels-W8gep51s.d.ts +15 -0
  211. package/dist/stats.cjs +11 -10
  212. package/dist/stats.d.cts +3 -2
  213. package/dist/stats.d.ts +3 -2
  214. package/dist/stats.js +8 -7
  215. package/dist/table-extension-7LkLNK6Q.d.cts +15 -0
  216. package/dist/table-extension-DEpV0DnP.d.ts +15 -0
  217. package/dist/{table-extension-v6VB59bF.d.ts → table-labels-Dc-MzU3j.d.cts} +2 -14
  218. package/dist/{table-extension-BP47hHoz.d.cts → table-labels-Dc-MzU3j.d.ts} +2 -14
  219. package/dist/table.cjs +26 -25
  220. package/dist/table.d.cts +2 -1
  221. package/dist/table.d.ts +2 -1
  222. package/dist/table.js +7 -6
  223. package/dist/{to-html-1oD-CDle.d.cts → to-html-C19PbIzh.d.cts} +1 -0
  224. package/dist/{to-html-CLRBCX0I.d.ts → to-html-CogwrQer.d.ts} +1 -0
  225. package/dist/{to-markdown-CFPMbbiX.d.cts → to-markdown-C2w7Dzg8.d.cts} +1 -0
  226. package/dist/{to-markdown-BVOzhgVM.d.ts → to-markdown-DC1EUye5.d.ts} +1 -0
  227. package/dist/toc-extension-Dvh37bWQ.d.cts +15 -0
  228. package/dist/toc-extension-SVckrFmb.d.ts +15 -0
  229. package/dist/toc-labels-B2apPfXG.d.cts +14 -0
  230. package/dist/toc-labels-B2apPfXG.d.ts +14 -0
  231. package/dist/toc.cjs +10 -9
  232. package/dist/toc.d.cts +3 -2
  233. package/dist/toc.d.ts +3 -2
  234. package/dist/toc.js +7 -6
  235. package/dist/{types-DXF9p4qV.d.cts → types-Bzhq5AXj.d.cts} +1 -0
  236. package/dist/{types-BjLcmV00.d.ts → types-DMuuDBVh.d.ts} +1 -0
  237. package/dist/view.cjs +4 -4
  238. package/dist/view.js +2 -2
  239. package/dist/yjs.cjs +121 -121
  240. package/dist/yjs.d.cts +2 -2
  241. package/dist/yjs.d.ts +2 -2
  242. package/dist/yjs.js +5 -5
  243. package/package.json +71 -1
  244. package/dist/chunk-5JEQZIRI.js.map +0 -1
  245. package/dist/chunk-7GU25Z6L.js.map +0 -1
  246. package/dist/chunk-BJTOLCRR.js.map +0 -1
  247. package/dist/chunk-HSLOPJVT.js.map +0 -1
  248. package/dist/chunk-IJKGF6SC.js.map +0 -1
  249. package/dist/chunk-MNA7MBCH.js.map +0 -1
  250. package/dist/chunk-OJ4O6HWC.js.map +0 -1
  251. package/dist/chunk-PLUMKN4B.js.map +0 -1
  252. package/dist/chunk-PWUFFHAQ.js.map +0 -1
  253. package/dist/chunk-RQXJKJ5S.js.map +0 -1
  254. package/dist/chunk-UZS3TW75.js.map +0 -1
  255. package/dist/toc-extension-CI6jNOYl.d.cts +0 -26
  256. package/dist/toc-extension-CTHWjNJC.d.ts +0 -26
  257. /package/dist/{chunk-WZA5S5EJ.cjs → chunk-I7X7B3WD.cjs} +0 -0
package/dist/headless.cjs CHANGED
@@ -1,290 +1,290 @@
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 chunkP6HC7RUN_cjs = require('./chunk-P6HC7RUN.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
11
  Object.defineProperty(exports, "BlockShell", {
12
12
  enumerable: true,
13
- get: function () { return chunkQJ34MOFV_cjs.BlockShell; }
13
+ get: function () { return chunkP6HC7RUN_cjs.BlockShell; }
14
14
  });
15
15
  Object.defineProperty(exports, "EditableRegion", {
16
16
  enumerable: true,
17
- get: function () { return chunkQJ34MOFV_cjs.EditableRegion; }
17
+ get: function () { return chunkP6HC7RUN_cjs.EditableRegion; }
18
18
  });
19
19
  Object.defineProperty(exports, "EditorView", {
20
20
  enumerable: true,
21
- get: function () { return chunkQJ34MOFV_cjs.EditorView; }
21
+ get: function () { return chunkP6HC7RUN_cjs.EditorView; }
22
22
  });
23
23
  Object.defineProperty(exports, "SelectionSink", {
24
24
  enumerable: true,
25
- get: function () { return chunkQJ34MOFV_cjs.SelectionSink; }
25
+ get: function () { return chunkP6HC7RUN_cjs.SelectionSink; }
26
26
  });
27
27
  Object.defineProperty(exports, "ViewController", {
28
28
  enumerable: true,
29
- get: function () { return chunkQJ34MOFV_cjs.ViewController; }
29
+ get: function () { return chunkP6HC7RUN_cjs.ViewController; }
30
30
  });
31
31
  Object.defineProperty(exports, "VoidBlockFallback", {
32
32
  enumerable: true,
33
- get: function () { return chunkQJ34MOFV_cjs.VoidBlockFallback; }
33
+ get: function () { return chunkP6HC7RUN_cjs.VoidBlockFallback; }
34
34
  });
35
35
  Object.defineProperty(exports, "caretFromPoint", {
36
36
  enumerable: true,
37
- get: function () { return chunkQJ34MOFV_cjs.caretFromPoint; }
37
+ get: function () { return chunkP6HC7RUN_cjs.caretFromPoint; }
38
38
  });
39
39
  Object.defineProperty(exports, "defaultRenderers", {
40
40
  enumerable: true,
41
- get: function () { return chunkQJ34MOFV_cjs.defaultRenderers; }
41
+ get: function () { return chunkP6HC7RUN_cjs.defaultRenderers; }
42
42
  });
43
43
  Object.defineProperty(exports, "domMapOf", {
44
44
  enumerable: true,
45
- get: function () { return chunkQJ34MOFV_cjs.domMapOf; }
45
+ get: function () { return chunkP6HC7RUN_cjs.domMapOf; }
46
46
  });
47
47
  Object.defineProperty(exports, "hostKey", {
48
48
  enumerable: true,
49
- get: function () { return chunkQJ34MOFV_cjs.hostKey; }
49
+ get: function () { return chunkP6HC7RUN_cjs.hostKey; }
50
50
  });
51
51
  Object.defineProperty(exports, "isCrossSelection", {
52
52
  enumerable: true,
53
- get: function () { return chunkQJ34MOFV_cjs.isCrossSelection; }
53
+ get: function () { return chunkP6HC7RUN_cjs.isCrossSelection; }
54
54
  });
55
55
  Object.defineProperty(exports, "renderInline", {
56
56
  enumerable: true,
57
- get: function () { return chunkQJ34MOFV_cjs.renderInline; }
57
+ get: function () { return chunkP6HC7RUN_cjs.renderInline; }
58
58
  });
59
59
  Object.defineProperty(exports, "useEditorState", {
60
60
  enumerable: true,
61
- get: function () { return chunkQJ34MOFV_cjs.useEditorState; }
61
+ get: function () { return chunkP6HC7RUN_cjs.useEditorState; }
62
62
  });
63
63
  Object.defineProperty(exports, "useQuoinEditor", {
64
64
  enumerable: true,
65
- get: function () { return chunkQJ34MOFV_cjs.useQuoinEditor; }
65
+ get: function () { return chunkP6HC7RUN_cjs.useQuoinEditor; }
66
66
  });
67
67
  Object.defineProperty(exports, "useViewController", {
68
68
  enumerable: true,
69
- get: function () { return chunkQJ34MOFV_cjs.useViewController; }
69
+ get: function () { return chunkP6HC7RUN_cjs.useViewController; }
70
70
  });
71
71
  Object.defineProperty(exports, "Transaction", {
72
72
  enumerable: true,
73
- get: function () { return chunkVZZPCYA3_cjs.Transaction; }
73
+ get: function () { return chunkFK7EBZPX_cjs.Transaction; }
74
74
  });
75
75
  Object.defineProperty(exports, "addMarkStep", {
76
76
  enumerable: true,
77
- get: function () { return chunkVZZPCYA3_cjs.addMarkStep; }
77
+ get: function () { return chunkFK7EBZPX_cjs.addMarkStep; }
78
78
  });
79
79
  Object.defineProperty(exports, "applyTransaction", {
80
80
  enumerable: true,
81
- get: function () { return chunkVZZPCYA3_cjs.applyTransaction; }
81
+ get: function () { return chunkFK7EBZPX_cjs.applyTransaction; }
82
82
  });
83
83
  Object.defineProperty(exports, "blockInputRules", {
84
84
  enumerable: true,
85
- get: function () { return chunkVZZPCYA3_cjs.blockInputRules; }
85
+ get: function () { return chunkFK7EBZPX_cjs.blockInputRules; }
86
86
  });
87
87
  Object.defineProperty(exports, "blockRangeSelection", {
88
88
  enumerable: true,
89
- get: function () { return chunkVZZPCYA3_cjs.blockRangeSelection; }
89
+ get: function () { return chunkFK7EBZPX_cjs.blockRangeSelection; }
90
90
  });
91
91
  Object.defineProperty(exports, "coreExtensions", {
92
92
  enumerable: true,
93
- get: function () { return chunkVZZPCYA3_cjs.coreExtensions; }
93
+ get: function () { return chunkFK7EBZPX_cjs.coreExtensions; }
94
94
  });
95
95
  Object.defineProperty(exports, "countDoc", {
96
96
  enumerable: true,
97
- get: function () { return chunkVZZPCYA3_cjs.countDoc; }
97
+ get: function () { return chunkFK7EBZPX_cjs.countDoc; }
98
98
  });
99
99
  Object.defineProperty(exports, "countText", {
100
100
  enumerable: true,
101
- get: function () { return chunkVZZPCYA3_cjs.countText; }
101
+ get: function () { return chunkFK7EBZPX_cjs.countText; }
102
102
  });
103
103
  Object.defineProperty(exports, "createEditor", {
104
104
  enumerable: true,
105
- get: function () { return chunkVZZPCYA3_cjs.createEditor; }
105
+ get: function () { return chunkFK7EBZPX_cjs.createEditor; }
106
106
  });
107
107
  Object.defineProperty(exports, "createPluginKey", {
108
108
  enumerable: true,
109
- get: function () { return chunkVZZPCYA3_cjs.createPluginKey; }
109
+ get: function () { return chunkFK7EBZPX_cjs.createPluginKey; }
110
110
  });
111
111
  Object.defineProperty(exports, "createState", {
112
112
  enumerable: true,
113
- get: function () { return chunkVZZPCYA3_cjs.createState; }
113
+ get: function () { return chunkFK7EBZPX_cjs.createState; }
114
114
  });
115
115
  Object.defineProperty(exports, "defineExtension", {
116
116
  enumerable: true,
117
- get: function () { return chunkVZZPCYA3_cjs.defineExtension; }
117
+ get: function () { return chunkFK7EBZPX_cjs.defineExtension; }
118
118
  });
119
119
  Object.defineProperty(exports, "fromHTML", {
120
120
  enumerable: true,
121
- get: function () { return chunkVZZPCYA3_cjs.fromHTML; }
121
+ get: function () { return chunkFK7EBZPX_cjs.fromHTML; }
122
122
  });
123
123
  Object.defineProperty(exports, "getPluginState", {
124
124
  enumerable: true,
125
- get: function () { return chunkVZZPCYA3_cjs.getPluginState; }
125
+ get: function () { return chunkFK7EBZPX_cjs.getPluginState; }
126
126
  });
127
127
  Object.defineProperty(exports, "insertBlockAfter", {
128
128
  enumerable: true,
129
- get: function () { return chunkVZZPCYA3_cjs.insertBlockAfter; }
129
+ get: function () { return chunkFK7EBZPX_cjs.insertBlockAfter; }
130
130
  });
131
131
  Object.defineProperty(exports, "insertBlocksStep", {
132
132
  enumerable: true,
133
- get: function () { return chunkVZZPCYA3_cjs.insertBlocksStep; }
133
+ get: function () { return chunkFK7EBZPX_cjs.insertBlocksStep; }
134
134
  });
135
135
  Object.defineProperty(exports, "insertText", {
136
136
  enumerable: true,
137
- get: function () { return chunkVZZPCYA3_cjs.insertText; }
137
+ get: function () { return chunkFK7EBZPX_cjs.insertText; }
138
138
  });
139
139
  Object.defineProperty(exports, "insertTextWithRules", {
140
140
  enumerable: true,
141
- get: function () { return chunkVZZPCYA3_cjs.insertTextWithRules; }
141
+ get: function () { return chunkFK7EBZPX_cjs.insertTextWithRules; }
142
142
  });
143
143
  Object.defineProperty(exports, "joinBlocksStep", {
144
144
  enumerable: true,
145
- get: function () { return chunkVZZPCYA3_cjs.joinBlocksStep; }
145
+ get: function () { return chunkFK7EBZPX_cjs.joinBlocksStep; }
146
146
  });
147
147
  Object.defineProperty(exports, "keyName", {
148
148
  enumerable: true,
149
- get: function () { return chunkVZZPCYA3_cjs.keyName; }
149
+ get: function () { return chunkFK7EBZPX_cjs.keyName; }
150
150
  });
151
151
  Object.defineProperty(exports, "markInputRules", {
152
152
  enumerable: true,
153
- get: function () { return chunkVZZPCYA3_cjs.markInputRules; }
153
+ get: function () { return chunkFK7EBZPX_cjs.markInputRules; }
154
154
  });
155
155
  Object.defineProperty(exports, "moveBlocksStep", {
156
156
  enumerable: true,
157
- get: function () { return chunkVZZPCYA3_cjs.moveBlocksStep; }
157
+ get: function () { return chunkFK7EBZPX_cjs.moveBlocksStep; }
158
158
  });
159
159
  Object.defineProperty(exports, "nodeSelection", {
160
160
  enumerable: true,
161
- get: function () { return chunkVZZPCYA3_cjs.nodeSelection; }
161
+ get: function () { return chunkFK7EBZPX_cjs.nodeSelection; }
162
162
  });
163
163
  Object.defineProperty(exports, "normalizeKey", {
164
164
  enumerable: true,
165
- get: function () { return chunkVZZPCYA3_cjs.normalizeKey; }
165
+ get: function () { return chunkFK7EBZPX_cjs.normalizeKey; }
166
166
  });
167
167
  Object.defineProperty(exports, "redo", {
168
168
  enumerable: true,
169
- get: function () { return chunkVZZPCYA3_cjs.redo; }
169
+ get: function () { return chunkFK7EBZPX_cjs.redo; }
170
170
  });
171
171
  Object.defineProperty(exports, "removeBlocksStep", {
172
172
  enumerable: true,
173
- get: function () { return chunkVZZPCYA3_cjs.removeBlocksStep; }
173
+ get: function () { return chunkFK7EBZPX_cjs.removeBlocksStep; }
174
174
  });
175
175
  Object.defineProperty(exports, "removeMarkStep", {
176
176
  enumerable: true,
177
- get: function () { return chunkVZZPCYA3_cjs.removeMarkStep; }
177
+ get: function () { return chunkFK7EBZPX_cjs.removeMarkStep; }
178
178
  });
179
179
  Object.defineProperty(exports, "replaceBlockStep", {
180
180
  enumerable: true,
181
- get: function () { return chunkVZZPCYA3_cjs.replaceBlockStep; }
181
+ get: function () { return chunkFK7EBZPX_cjs.replaceBlockStep; }
182
182
  });
183
183
  Object.defineProperty(exports, "replaceDocStep", {
184
184
  enumerable: true,
185
- get: function () { return chunkVZZPCYA3_cjs.replaceDocStep; }
185
+ get: function () { return chunkFK7EBZPX_cjs.replaceDocStep; }
186
186
  });
187
187
  Object.defineProperty(exports, "replaceInlineStep", {
188
188
  enumerable: true,
189
- get: function () { return chunkVZZPCYA3_cjs.replaceInlineStep; }
189
+ get: function () { return chunkFK7EBZPX_cjs.replaceInlineStep; }
190
190
  });
191
191
  Object.defineProperty(exports, "setAttrsStep", {
192
192
  enumerable: true,
193
- get: function () { return chunkVZZPCYA3_cjs.setAttrsStep; }
193
+ get: function () { return chunkFK7EBZPX_cjs.setAttrsStep; }
194
194
  });
195
195
  Object.defineProperty(exports, "setBlockType", {
196
196
  enumerable: true,
197
- get: function () { return chunkVZZPCYA3_cjs.setBlockType; }
197
+ get: function () { return chunkFK7EBZPX_cjs.setBlockType; }
198
198
  });
199
199
  Object.defineProperty(exports, "setIndentStep", {
200
200
  enumerable: true,
201
- get: function () { return chunkVZZPCYA3_cjs.setIndentStep; }
201
+ get: function () { return chunkFK7EBZPX_cjs.setIndentStep; }
202
202
  });
203
203
  Object.defineProperty(exports, "splitBlockStep", {
204
204
  enumerable: true,
205
- get: function () { return chunkVZZPCYA3_cjs.splitBlockStep; }
205
+ get: function () { return chunkFK7EBZPX_cjs.splitBlockStep; }
206
206
  });
207
207
  Object.defineProperty(exports, "stepFromJSON", {
208
208
  enumerable: true,
209
- get: function () { return chunkVZZPCYA3_cjs.stepFromJSON; }
209
+ get: function () { return chunkFK7EBZPX_cjs.stepFromJSON; }
210
210
  });
211
211
  Object.defineProperty(exports, "textSelection", {
212
212
  enumerable: true,
213
- get: function () { return chunkVZZPCYA3_cjs.textSelection; }
213
+ get: function () { return chunkFK7EBZPX_cjs.textSelection; }
214
214
  });
215
215
  Object.defineProperty(exports, "toHTML", {
216
216
  enumerable: true,
217
- get: function () { return chunkVZZPCYA3_cjs.toHTML; }
217
+ get: function () { return chunkFK7EBZPX_cjs.toHTML; }
218
218
  });
219
219
  Object.defineProperty(exports, "toMarkdown", {
220
220
  enumerable: true,
221
- get: function () { return chunkVZZPCYA3_cjs.toMarkdown; }
221
+ get: function () { return chunkFK7EBZPX_cjs.toMarkdown; }
222
222
  });
223
223
  Object.defineProperty(exports, "toPlainText", {
224
224
  enumerable: true,
225
- get: function () { return chunkVZZPCYA3_cjs.toPlainText; }
225
+ get: function () { return chunkFK7EBZPX_cjs.toPlainText; }
226
226
  });
227
227
  Object.defineProperty(exports, "toggleMark", {
228
228
  enumerable: true,
229
- get: function () { return chunkVZZPCYA3_cjs.toggleMark; }
229
+ get: function () { return chunkFK7EBZPX_cjs.toggleMark; }
230
230
  });
231
231
  Object.defineProperty(exports, "typographyRules", {
232
232
  enumerable: true,
233
- get: function () { return chunkVZZPCYA3_cjs.typographyRules; }
233
+ get: function () { return chunkFK7EBZPX_cjs.typographyRules; }
234
234
  });
235
235
  Object.defineProperty(exports, "undo", {
236
236
  enumerable: true,
237
- get: function () { return chunkVZZPCYA3_cjs.undo; }
237
+ get: function () { return chunkFK7EBZPX_cjs.undo; }
238
238
  });
239
239
  Object.defineProperty(exports, "diffBlocks", {
240
240
  enumerable: true,
241
- get: function () { return chunkBM2GRZNM_cjs.diffBlocks; }
241
+ get: function () { return chunkDJU25PFC_cjs.diffBlocks; }
242
242
  });
243
243
  Object.defineProperty(exports, "diffInline", {
244
244
  enumerable: true,
245
- get: function () { return chunkBM2GRZNM_cjs.diffInline; }
245
+ get: function () { return chunkDJU25PFC_cjs.diffInline; }
246
246
  });
247
247
  Object.defineProperty(exports, "PALETTE", {
248
248
  enumerable: true,
249
- get: function () { return chunkWZA5S5EJ_cjs.PALETTE; }
249
+ get: function () { return chunkI7X7B3WD_cjs.PALETTE; }
250
250
  });
251
251
  Object.defineProperty(exports, "atom", {
252
252
  enumerable: true,
253
- get: function () { return chunkWZA5S5EJ_cjs.atom; }
253
+ get: function () { return chunkI7X7B3WD_cjs.atom; }
254
254
  });
255
255
  Object.defineProperty(exports, "coreBlockSpecs", {
256
256
  enumerable: true,
257
- get: function () { return chunkWZA5S5EJ_cjs.coreBlockSpecs; }
257
+ get: function () { return chunkI7X7B3WD_cjs.coreBlockSpecs; }
258
258
  });
259
259
  Object.defineProperty(exports, "createBlockCodec", {
260
260
  enumerable: true,
261
- get: function () { return chunkWZA5S5EJ_cjs.createBlockCodec; }
261
+ get: function () { return chunkI7X7B3WD_cjs.createBlockCodec; }
262
262
  });
263
263
  Object.defineProperty(exports, "createSchema", {
264
264
  enumerable: true,
265
- get: function () { return chunkWZA5S5EJ_cjs.createSchema; }
265
+ get: function () { return chunkI7X7B3WD_cjs.createSchema; }
266
266
  });
267
267
  Object.defineProperty(exports, "fromMarkdown", {
268
268
  enumerable: true,
269
- get: function () { return chunkWZA5S5EJ_cjs.fromMarkdown; }
269
+ get: function () { return chunkI7X7B3WD_cjs.fromMarkdown; }
270
270
  });
271
271
  Object.defineProperty(exports, "normalizeInline", {
272
272
  enumerable: true,
273
- get: function () { return chunkWZA5S5EJ_cjs.normalizeInline; }
273
+ get: function () { return chunkI7X7B3WD_cjs.normalizeInline; }
274
274
  });
275
275
  Object.defineProperty(exports, "parseInline", {
276
276
  enumerable: true,
277
- get: function () { return chunkWZA5S5EJ_cjs.parseInline; }
277
+ get: function () { return chunkI7X7B3WD_cjs.parseInline; }
278
278
  });
279
279
  Object.defineProperty(exports, "sanitizeHref", {
280
280
  enumerable: true,
281
- get: function () { return chunkWZA5S5EJ_cjs.sanitizeHref; }
281
+ get: function () { return chunkI7X7B3WD_cjs.sanitizeHref; }
282
282
  });
283
283
  Object.defineProperty(exports, "serializeInline", {
284
284
  enumerable: true,
285
- get: function () { return chunkWZA5S5EJ_cjs.serializeInline; }
285
+ get: function () { return chunkI7X7B3WD_cjs.serializeInline; }
286
286
  });
287
287
  Object.defineProperty(exports, "text", {
288
288
  enumerable: true,
289
- get: function () { return chunkWZA5S5EJ_cjs.text; }
289
+ get: function () { return chunkI7X7B3WD_cjs.text; }
290
290
  });
@@ -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';
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
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
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';
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,6 +31,10 @@ type CaretPoint = {
30
31
  };
31
32
  declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
32
33
 
34
+ /**
35
+ * @deprecated Internal to the view layer and removed in 2.0.0: a host reads `anchor` and `head` of the public
36
+ * `Selection` to tell a selection that spans blocks or regions from one held inside a single region.
37
+ */
33
38
  declare function isCrossSelection(selection: Selection | null): boolean;
34
39
 
35
40
  /** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
@@ -48,6 +53,11 @@ type UseQuoinEditorOptions = {
48
53
  onFiles?: (files: File[], at: Pos | null) => void;
49
54
  render?: RenderOptions;
50
55
  };
56
+ /**
57
+ * The editor and the controller that binds it to the page, for a host that draws its own chrome around `EditorView`.
58
+ * The editor, its extensions and its render options are read once; the callbacks are read through a ref, so a new
59
+ * function identity on every render changes nothing.
60
+ */
51
61
  declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
52
62
 
53
63
  /** The text an empty block shows in its main region, read again whenever the editor state changes. */
@@ -88,6 +98,10 @@ type EditorViewProps = {
88
98
  /** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
89
99
  children?: ReactNode;
90
100
  };
101
+ /**
102
+ * The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
103
+ * It keeps the element it drew for each block, so define `renderers` once rather than on every render.
104
+ */
91
105
  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
106
 
93
107
  type EditableRegionProps = {
@@ -105,16 +119,32 @@ type BlockShellProps = {
105
119
  block: EngineBlock;
106
120
  renderers: Readonly<Record<string, BlockRenderer>>;
107
121
  };
122
+ /**
123
+ * @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws a shell for every block already,
124
+ * and a second shell for a block takes that block's registration with the controller from the first.
125
+ */
108
126
  declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
109
127
 
110
128
  type SelectionSinkProps = {
111
129
  label?: string;
112
130
  blockLabel?: BlockLabel;
113
131
  };
132
+ /**
133
+ * @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws one already, and a second sink
134
+ * takes the registration with the controller from the first.
135
+ */
114
136
  declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
115
137
 
138
+ /**
139
+ * @deprecated Internal to the view layer and removed in 2.0.0: a renderer of your own draws a block's text with
140
+ * `EditableRegion`, which is what each of these three does.
141
+ */
116
142
  declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
143
+ /**
144
+ * @deprecated Internal to the view layer and removed in 2.0.0: a block shell falls back to it already when no
145
+ * renderer draws a block's type.
146
+ */
117
147
  declare const VoidBlockFallback: BlockRenderer;
118
148
 
119
149
  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 };
150
+ export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, BlockShellProps, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, SelectionSinkProps, 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';
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
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
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';
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,6 +31,10 @@ type CaretPoint = {
30
31
  };
31
32
  declare function caretFromPoint(doc: Document, x: number, y: number): CaretPoint | null;
32
33
 
34
+ /**
35
+ * @deprecated Internal to the view layer and removed in 2.0.0: a host reads `anchor` and `head` of the public
36
+ * `Selection` to tell a selection that spans blocks or regions from one held inside a single region.
37
+ */
33
38
  declare function isCrossSelection(selection: Selection | null): boolean;
34
39
 
35
40
  /** What the editor calls a block selected as a whole, given the schema it can read the block's text with. */
@@ -48,6 +53,11 @@ type UseQuoinEditorOptions = {
48
53
  onFiles?: (files: File[], at: Pos | null) => void;
49
54
  render?: RenderOptions;
50
55
  };
56
+ /**
57
+ * The editor and the controller that binds it to the page, for a host that draws its own chrome around `EditorView`.
58
+ * The editor, its extensions and its render options are read once; the callbacks are read through a ref, so a new
59
+ * function identity on every render changes nothing.
60
+ */
51
61
  declare function useQuoinEditor(options: UseQuoinEditorOptions): ViewController;
52
62
 
53
63
  /** The text an empty block shows in its main region, read again whenever the editor state changes. */
@@ -88,6 +98,10 @@ type EditorViewProps = {
88
98
  /** Controls drawn over the blocks, such as a gutter, positioned against the editor's root. */
89
99
  children?: ReactNode;
90
100
  };
101
+ /**
102
+ * The editable view with none of the canvas UI: one editable host per text block, drawn by the renderers given to it.
103
+ * It keeps the element it drew for each block, so define `renderers` once rather than on every render.
104
+ */
91
105
  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
106
 
93
107
  type EditableRegionProps = {
@@ -105,16 +119,32 @@ type BlockShellProps = {
105
119
  block: EngineBlock;
106
120
  renderers: Readonly<Record<string, BlockRenderer>>;
107
121
  };
122
+ /**
123
+ * @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws a shell for every block already,
124
+ * and a second shell for a block takes that block's registration with the controller from the first.
125
+ */
108
126
  declare const BlockShell: react.MemoExoticComponent<({ block, renderers }: BlockShellProps) => react.JSX.Element | null>;
109
127
 
110
128
  type SelectionSinkProps = {
111
129
  label?: string;
112
130
  blockLabel?: BlockLabel;
113
131
  };
132
+ /**
133
+ * @deprecated Internal to the view layer and removed in 2.0.0: `EditorView` draws one already, and a second sink
134
+ * takes the registration with the controller from the first.
135
+ */
114
136
  declare function SelectionSink({ label, blockLabel }: SelectionSinkProps): react.JSX.Element;
115
137
 
138
+ /**
139
+ * @deprecated Internal to the view layer and removed in 2.0.0: a renderer of your own draws a block's text with
140
+ * `EditableRegion`, which is what each of these three does.
141
+ */
116
142
  declare const defaultRenderers: Readonly<Record<string, BlockRenderer>>;
143
+ /**
144
+ * @deprecated Internal to the view layer and removed in 2.0.0: a block shell falls back to it already when no
145
+ * renderer draws a block's type.
146
+ */
117
147
  declare const VoidBlockFallback: BlockRenderer;
118
148
 
119
149
  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 };
150
+ export type { BlockLabel, BlockPlaceholder, BlockRenderProps, BlockRenderer, BlockShellProps, CaretPoint, DomMap, DomPoint, EditableRegionProps, EditorViewProps, SelectionSinkProps, 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 { BlockShell, EditableRegion, EditorView, SelectionSink, ViewController, VoidBlockFallback, caretFromPoint, defaultRenderers, domMapOf, hostKey, isCrossSelection, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-MSWA5ZZM.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 chunkBA5WXBGE_cjs = require('./chunk-BA5WXBGE.cjs');
6
+ require('./chunk-P6HC7RUN.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 = chunkBA5WXBGE_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-Y4EJ6UBV.js';
4
+ import './chunk-MSWA5ZZM.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;