@notectl/core 2.2.1 → 2.2.3

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 (1280) hide show
  1. package/README.md +2 -0
  2. package/dist/chunks/AlignmentPlugin-h6sx-yIf.mjs +2 -0
  3. package/dist/chunks/AlignmentPlugin-h6sx-yIf.mjs.map +1 -0
  4. package/dist/chunks/AttrRegistry-DcDVyzLm.mjs +2 -0
  5. package/dist/chunks/AttrRegistry-DcDVyzLm.mjs.map +1 -0
  6. package/dist/chunks/AttributedMarkCommands-D4W2Jgpj.mjs +2 -0
  7. package/dist/chunks/AttributedMarkCommands-D4W2Jgpj.mjs.map +1 -0
  8. package/dist/chunks/BidiIsolationPlugin-Bm3h9J15.mjs +2 -0
  9. package/dist/chunks/BidiIsolationPlugin-Bm3h9J15.mjs.map +1 -0
  10. package/dist/chunks/BlockInsertion-6rR9tIGP.mjs +2 -0
  11. package/dist/chunks/BlockInsertion-6rR9tIGP.mjs.map +1 -0
  12. package/dist/chunks/BlockTypePickerRegistry-BTET9jM-.mjs +2 -0
  13. package/dist/chunks/BlockTypePickerRegistry-BTET9jM-.mjs.map +1 -0
  14. package/dist/chunks/BlockquotePlugin-CxrCA0vY.mjs +2 -0
  15. package/dist/chunks/BlockquotePlugin-CxrCA0vY.mjs.map +1 -0
  16. package/dist/chunks/CaretNavigationPlugin-Bb7W_FMg.mjs +2 -0
  17. package/dist/chunks/CaretNavigationPlugin-Bb7W_FMg.mjs.map +1 -0
  18. package/dist/chunks/CodeBlockPlugin-CcB0WaIz.mjs +2 -0
  19. package/dist/chunks/CodeBlockPlugin-CcB0WaIz.mjs.map +1 -0
  20. package/dist/chunks/ColorGrid-CXRdpP_n.mjs +2 -0
  21. package/dist/chunks/ColorGrid-CXRdpP_n.mjs.map +1 -0
  22. package/dist/chunks/ColorPickerPopup-C_74bqid.mjs +2 -0
  23. package/dist/chunks/ColorPickerPopup-C_74bqid.mjs.map +1 -0
  24. package/dist/chunks/ColorValidation-DAijTjG9.mjs +2 -0
  25. package/dist/chunks/ColorValidation-DAijTjG9.mjs.map +1 -0
  26. package/dist/chunks/Commands-BIIpx_Zd.mjs +2 -0
  27. package/dist/chunks/Commands-BIIpx_Zd.mjs.map +1 -0
  28. package/dist/chunks/Decoration-ZeyVfwJB.mjs +2 -0
  29. package/dist/chunks/Decoration-ZeyVfwJB.mjs.map +1 -0
  30. package/dist/chunks/DirectionDetection-C7XE0nxW.mjs +2 -0
  31. package/dist/chunks/DirectionDetection-C7XE0nxW.mjs.map +1 -0
  32. package/dist/chunks/DirectionIcons-Bbawl9ei.mjs +2 -0
  33. package/dist/chunks/DirectionIcons-Bbawl9ei.mjs.map +1 -0
  34. package/dist/chunks/Document-r7vLOAGA.mjs +2 -0
  35. package/dist/chunks/Document-r7vLOAGA.mjs.map +1 -0
  36. package/dist/chunks/DocumentParser-CcTSeT1B.mjs +2 -0
  37. package/dist/chunks/DocumentParser-CcTSeT1B.mjs.map +1 -0
  38. package/dist/chunks/DomUtils-Bf7JLFlx.mjs +2 -0
  39. package/dist/chunks/DomUtils-Bf7JLFlx.mjs.map +1 -0
  40. package/dist/chunks/FontPlugin-1VYDwETg.mjs +2 -0
  41. package/dist/chunks/FontPlugin-1VYDwETg.mjs.map +1 -0
  42. package/dist/chunks/FontSizePlugin-L1uDVsKY.mjs +2 -0
  43. package/dist/chunks/FontSizePlugin-L1uDVsKY.mjs.map +1 -0
  44. package/dist/chunks/FormulaPlugin-66Cc9sH2.mjs +2 -0
  45. package/dist/chunks/FormulaPlugin-66Cc9sH2.mjs.map +1 -0
  46. package/dist/chunks/GapCursorNavigation-ycNzuQVH.mjs +2 -0
  47. package/dist/chunks/GapCursorNavigation-ycNzuQVH.mjs.map +1 -0
  48. package/dist/chunks/GapCursorPlugin-B29ieXel.mjs +2 -0
  49. package/dist/chunks/GapCursorPlugin-B29ieXel.mjs.map +1 -0
  50. package/dist/chunks/HTMLUtils-C6B4UT00.mjs +2 -0
  51. package/dist/chunks/HTMLUtils-C6B4UT00.mjs.map +1 -0
  52. package/dist/chunks/HardBreakPlugin-9DOyCyyM.mjs +2 -0
  53. package/dist/chunks/HardBreakPlugin-9DOyCyyM.mjs.map +1 -0
  54. package/dist/chunks/HeadingPlugin-SICF6Tm0.mjs +2 -0
  55. package/dist/chunks/HeadingPlugin-SICF6Tm0.mjs.map +1 -0
  56. package/dist/chunks/HighlightPlugin-B3b_qe68.mjs +2 -0
  57. package/dist/chunks/HighlightPlugin-B3b_qe68.mjs.map +1 -0
  58. package/dist/chunks/HorizontalRulePlugin-BrFlrpmb.mjs +2 -0
  59. package/dist/chunks/HorizontalRulePlugin-BrFlrpmb.mjs.map +1 -0
  60. package/dist/chunks/ImagePlugin-eRVtFFou.mjs +2 -0
  61. package/dist/chunks/ImagePlugin-eRVtFFou.mjs.map +1 -0
  62. package/dist/chunks/InlineCodePlugin-Cj1EZ3x2.mjs +2 -0
  63. package/dist/chunks/InlineCodePlugin-Cj1EZ3x2.mjs.map +1 -0
  64. package/dist/chunks/InlineStyleMarkSpec-4R6DC7ij.mjs +2 -0
  65. package/dist/chunks/InlineStyleMarkSpec-4R6DC7ij.mjs.map +1 -0
  66. package/dist/chunks/KeyboardNav-D0my3wuy.mjs +2 -0
  67. package/dist/chunks/KeyboardNav-D0my3wuy.mjs.map +1 -0
  68. package/dist/chunks/LinkPlugin-B_ysjORS.mjs +2 -0
  69. package/dist/chunks/LinkPlugin-B_ysjORS.mjs.map +1 -0
  70. package/dist/chunks/ListPlugin-C0BV8CnQ.mjs +2 -0
  71. package/dist/chunks/ListPlugin-C0BV8CnQ.mjs.map +1 -0
  72. package/dist/chunks/NavigationQueries-Bt4zZ17v.mjs +2 -0
  73. package/dist/chunks/NavigationQueries-Bt4zZ17v.mjs.map +1 -0
  74. package/dist/chunks/NodeResolver-ChgLF_IP.mjs +2 -0
  75. package/dist/chunks/NodeResolver-ChgLF_IP.mjs.map +1 -0
  76. package/dist/chunks/NodeSelectionCommands-Dj4VxLdD.mjs +2 -0
  77. package/dist/chunks/NodeSelectionCommands-Dj4VxLdD.mjs.map +1 -0
  78. package/dist/chunks/NodeSpecPatching-B_yLknTl.mjs +2 -0
  79. package/dist/chunks/NodeSpecPatching-B_yLknTl.mjs.map +1 -0
  80. package/dist/chunks/Platform-ByobkiCc.mjs +2 -0
  81. package/dist/chunks/Platform-ByobkiCc.mjs.map +1 -0
  82. package/dist/chunks/PluginHelpers-D4quRJ5a.mjs +2 -0
  83. package/dist/chunks/PluginHelpers-D4quRJ5a.mjs.map +1 -0
  84. package/dist/chunks/PopupKeyboardPatterns-tUrT9TyV.mjs +2 -0
  85. package/dist/chunks/PopupKeyboardPatterns-tUrT9TyV.mjs.map +1 -0
  86. package/dist/chunks/PopupManager-CyOfZUab.mjs +2 -0
  87. package/dist/chunks/PopupManager-CyOfZUab.mjs.map +1 -0
  88. package/dist/chunks/PopupPositioning-DtUrY9bh.mjs +2 -0
  89. package/dist/chunks/PopupPositioning-DtUrY9bh.mjs.map +1 -0
  90. package/dist/chunks/PrintPlugin-CXDFFzWB.mjs +2 -0
  91. package/dist/chunks/PrintPlugin-CXDFFzWB.mjs.map +1 -0
  92. package/dist/chunks/PrintTypes-WdtgSj74.mjs +2 -0
  93. package/dist/chunks/PrintTypes-WdtgSj74.mjs.map +1 -0
  94. package/dist/chunks/RangeIterator-o8v3msQe.mjs +2 -0
  95. package/dist/chunks/RangeIterator-o8v3msQe.mjs.map +1 -0
  96. package/dist/chunks/Selection-HYoVFpAx.mjs +2 -0
  97. package/dist/chunks/Selection-HYoVFpAx.mjs.map +1 -0
  98. package/dist/chunks/SelectionSync-BSHIw1EE.mjs +2 -0
  99. package/dist/chunks/SelectionSync-BSHIw1EE.mjs.map +1 -0
  100. package/dist/chunks/ShortcutFormatting-TwiufqeV.mjs +2 -0
  101. package/dist/chunks/ShortcutFormatting-TwiufqeV.mjs.map +1 -0
  102. package/dist/chunks/SimpleMark-Bdqjcz0G.mjs +2 -0
  103. package/dist/chunks/SimpleMark-Bdqjcz0G.mjs.map +1 -0
  104. package/dist/chunks/SmartPastePlugin-BhkoH03E.mjs +2 -0
  105. package/dist/chunks/SmartPastePlugin-BhkoH03E.mjs.map +1 -0
  106. package/dist/chunks/StrikethroughPlugin-DRuwEZhu.mjs +2 -0
  107. package/dist/chunks/StrikethroughPlugin-DRuwEZhu.mjs.map +1 -0
  108. package/dist/chunks/StyleRuntime-BAutwDZT.mjs +2 -0
  109. package/dist/chunks/StyleRuntime-BAutwDZT.mjs.map +1 -0
  110. package/dist/chunks/SuperSubPlugin-IZ_x8GS-.mjs +2 -0
  111. package/dist/chunks/SuperSubPlugin-IZ_x8GS-.mjs.map +1 -0
  112. package/dist/chunks/SyntaxTokenTypes-BUCOMtL8.mjs +2 -0
  113. package/dist/chunks/SyntaxTokenTypes-BUCOMtL8.mjs.map +1 -0
  114. package/dist/chunks/TablePlugin-CRp4qSZE.mjs +2 -0
  115. package/dist/chunks/TablePlugin-CRp4qSZE.mjs.map +1 -0
  116. package/dist/chunks/TextColorPlugin-CViEiYZk.mjs +2 -0
  117. package/dist/chunks/TextColorPlugin-CViEiYZk.mjs.map +1 -0
  118. package/dist/chunks/TextDirectionAutoPlugin-CzWJjrvG.mjs +2 -0
  119. package/dist/chunks/TextDirectionAutoPlugin-CzWJjrvG.mjs.map +1 -0
  120. package/dist/chunks/TextDirectionPlugin-CQGkaS2s.mjs +2 -0
  121. package/dist/chunks/TextDirectionPlugin-CQGkaS2s.mjs.map +1 -0
  122. package/dist/chunks/TextDirectionService-OFOU6r_s.mjs +2 -0
  123. package/dist/chunks/TextDirectionService-OFOU6r_s.mjs.map +1 -0
  124. package/dist/chunks/TextFormattingPlugin-CpyZgtLi.mjs +2 -0
  125. package/dist/chunks/TextFormattingPlugin-CpyZgtLi.mjs.map +1 -0
  126. package/dist/chunks/ToolbarPlugin-B5UUc6dY.mjs +2 -0
  127. package/dist/chunks/ToolbarPlugin-B5UUc6dY.mjs.map +1 -0
  128. package/dist/chunks/TypeBrands-Ch9856Gb.mjs +2 -0
  129. package/dist/chunks/TypeBrands-Ch9856Gb.mjs.map +1 -0
  130. package/dist/chunks/TypedKeys-CA4bfw9O.mjs +2 -0
  131. package/dist/chunks/TypedKeys-CA4bfw9O.mjs.map +1 -0
  132. package/dist/chunks/VideoPlugin-mXIDODzC.mjs +2 -0
  133. package/dist/chunks/VideoPlugin-mXIDODzC.mjs.map +1 -0
  134. package/dist/chunks/WordBoundary-DxeMBRyP.mjs +2 -0
  135. package/dist/chunks/WordBoundary-DxeMBRyP.mjs.map +1 -0
  136. package/dist/chunks/XmlDetector-D7TQpw-e.mjs +2 -0
  137. package/dist/chunks/XmlDetector-D7TQpw-e.mjs.map +1 -0
  138. package/dist/chunks/XmlPatterns-RN32-0ob.mjs +2 -0
  139. package/dist/chunks/XmlPatterns-RN32-0ob.mjs.map +1 -0
  140. package/dist/chunks/XmlSupport-BYiRwlkK.mjs +2 -0
  141. package/dist/chunks/XmlSupport-BYiRwlkK.mjs.map +1 -0
  142. package/dist/chunks/ar--Isa9OHJ.mjs +2 -0
  143. package/dist/chunks/ar--Isa9OHJ.mjs.map +1 -0
  144. package/dist/chunks/ar--O0A9OTR.mjs +2 -0
  145. package/dist/chunks/ar--O0A9OTR.mjs.map +1 -0
  146. package/dist/chunks/ar-0g2bmXTn.mjs +2 -0
  147. package/dist/chunks/ar-0g2bmXTn.mjs.map +1 -0
  148. package/dist/chunks/ar-4b8e2YSc.mjs +2 -0
  149. package/dist/chunks/ar-4b8e2YSc.mjs.map +1 -0
  150. package/dist/chunks/ar-B03uY4xr.mjs +2 -0
  151. package/dist/chunks/ar-B03uY4xr.mjs.map +1 -0
  152. package/dist/chunks/ar-BAfInw85.mjs +2 -0
  153. package/dist/chunks/ar-BAfInw85.mjs.map +1 -0
  154. package/dist/chunks/ar-BRX5E_Pw.mjs +2 -0
  155. package/dist/chunks/ar-BRX5E_Pw.mjs.map +1 -0
  156. package/dist/chunks/ar-BTShmP2E.mjs +2 -0
  157. package/dist/chunks/ar-BTShmP2E.mjs.map +1 -0
  158. package/dist/chunks/ar-BWOue6jG.mjs +2 -0
  159. package/dist/chunks/ar-BWOue6jG.mjs.map +1 -0
  160. package/dist/chunks/ar-Bdmunk5h.mjs +2 -0
  161. package/dist/chunks/ar-Bdmunk5h.mjs.map +1 -0
  162. package/dist/chunks/ar-BwaoCUVN.mjs +2 -0
  163. package/dist/chunks/ar-BwaoCUVN.mjs.map +1 -0
  164. package/dist/chunks/ar-BzqAYGER.mjs +2 -0
  165. package/dist/chunks/ar-BzqAYGER.mjs.map +1 -0
  166. package/dist/chunks/ar-C9lO1jsY.mjs +2 -0
  167. package/dist/chunks/ar-C9lO1jsY.mjs.map +1 -0
  168. package/dist/chunks/ar-CMXjVzFx.mjs +2 -0
  169. package/dist/chunks/ar-CMXjVzFx.mjs.map +1 -0
  170. package/dist/chunks/ar-CR6UdFL9.mjs +2 -0
  171. package/dist/chunks/ar-CR6UdFL9.mjs.map +1 -0
  172. package/dist/chunks/ar-CrOb0jL2.mjs +2 -0
  173. package/dist/chunks/ar-CrOb0jL2.mjs.map +1 -0
  174. package/dist/chunks/ar-Ctrv6cIi.mjs +2 -0
  175. package/dist/chunks/ar-Ctrv6cIi.mjs.map +1 -0
  176. package/dist/chunks/ar-Cy_77yRf.mjs +2 -0
  177. package/dist/chunks/ar-Cy_77yRf.mjs.map +1 -0
  178. package/dist/chunks/ar-D1jFXqLJ.mjs +2 -0
  179. package/dist/chunks/ar-D1jFXqLJ.mjs.map +1 -0
  180. package/dist/chunks/ar-DahJwMI9.mjs +2 -0
  181. package/dist/chunks/ar-DahJwMI9.mjs.map +1 -0
  182. package/dist/chunks/ar-Dcl3kgtd.mjs +2 -0
  183. package/dist/chunks/ar-Dcl3kgtd.mjs.map +1 -0
  184. package/dist/chunks/ar-Dx2lO0Nm.mjs +2 -0
  185. package/dist/chunks/ar-Dx2lO0Nm.mjs.map +1 -0
  186. package/dist/chunks/ar-NV_puwI2.mjs +2 -0
  187. package/dist/chunks/ar-NV_puwI2.mjs.map +1 -0
  188. package/dist/chunks/ar-Uzo1Azdw.mjs +2 -0
  189. package/dist/chunks/ar-Uzo1Azdw.mjs.map +1 -0
  190. package/dist/chunks/ar-XmSFrtmd.mjs +2 -0
  191. package/dist/chunks/ar-XmSFrtmd.mjs.map +1 -0
  192. package/dist/chunks/ar-jbplYWkC.mjs +2 -0
  193. package/dist/chunks/ar-jbplYWkC.mjs.map +1 -0
  194. package/dist/chunks/ar-sGZ-oZqB.mjs +2 -0
  195. package/dist/chunks/ar-sGZ-oZqB.mjs.map +1 -0
  196. package/dist/chunks/color-picker-C9B2rYw-.mjs +2 -0
  197. package/dist/chunks/color-picker-C9B2rYw-.mjs.map +1 -0
  198. package/dist/chunks/de-B8-w9gPi.mjs +2 -0
  199. package/dist/chunks/de-B8-w9gPi.mjs.map +1 -0
  200. package/dist/chunks/de-B9zSHWqY.mjs +2 -0
  201. package/dist/chunks/de-B9zSHWqY.mjs.map +1 -0
  202. package/dist/chunks/de-BX4y4PlH.mjs +2 -0
  203. package/dist/chunks/de-BX4y4PlH.mjs.map +1 -0
  204. package/dist/chunks/de-BXQBXxFJ.mjs +2 -0
  205. package/dist/chunks/de-BXQBXxFJ.mjs.map +1 -0
  206. package/dist/chunks/de-BcPntcnr.mjs +2 -0
  207. package/dist/chunks/de-BcPntcnr.mjs.map +1 -0
  208. package/dist/chunks/de-BdD3DpUB.mjs +2 -0
  209. package/dist/chunks/de-BdD3DpUB.mjs.map +1 -0
  210. package/dist/chunks/de-Bwxlcuee.mjs +2 -0
  211. package/dist/chunks/de-Bwxlcuee.mjs.map +1 -0
  212. package/dist/chunks/de-BxQIt_1Y.mjs +2 -0
  213. package/dist/chunks/de-BxQIt_1Y.mjs.map +1 -0
  214. package/dist/chunks/de-C--bRmjW.mjs +2 -0
  215. package/dist/chunks/de-C--bRmjW.mjs.map +1 -0
  216. package/dist/chunks/de-C-Yf378-.mjs +2 -0
  217. package/dist/chunks/de-C-Yf378-.mjs.map +1 -0
  218. package/dist/chunks/de-C7uehgMu.mjs +2 -0
  219. package/dist/chunks/de-C7uehgMu.mjs.map +1 -0
  220. package/dist/chunks/de-C9ZhDqPi.mjs +2 -0
  221. package/dist/chunks/de-C9ZhDqPi.mjs.map +1 -0
  222. package/dist/chunks/de-CHcv_Vmf.mjs +2 -0
  223. package/dist/chunks/de-CHcv_Vmf.mjs.map +1 -0
  224. package/dist/chunks/de-CTzAMkXC.mjs +2 -0
  225. package/dist/chunks/de-CTzAMkXC.mjs.map +1 -0
  226. package/dist/chunks/de-CaeEIyzV.mjs +2 -0
  227. package/dist/chunks/de-CaeEIyzV.mjs.map +1 -0
  228. package/dist/chunks/de-DHs9i4af.mjs +2 -0
  229. package/dist/chunks/de-DHs9i4af.mjs.map +1 -0
  230. package/dist/chunks/de-DN-e6G5A.mjs +2 -0
  231. package/dist/chunks/de-DN-e6G5A.mjs.map +1 -0
  232. package/dist/chunks/de-DViI26lG.mjs +2 -0
  233. package/dist/chunks/de-DViI26lG.mjs.map +1 -0
  234. package/dist/chunks/de-DY3obIAF.mjs +2 -0
  235. package/dist/chunks/de-DY3obIAF.mjs.map +1 -0
  236. package/dist/chunks/de-DcMhfRBu.mjs +2 -0
  237. package/dist/chunks/de-DcMhfRBu.mjs.map +1 -0
  238. package/dist/chunks/de-DiPz7abS.mjs +2 -0
  239. package/dist/chunks/de-DiPz7abS.mjs.map +1 -0
  240. package/dist/chunks/de-Dl4QFHMa.mjs +2 -0
  241. package/dist/chunks/de-Dl4QFHMa.mjs.map +1 -0
  242. package/dist/chunks/de-JhGflzS5.mjs +2 -0
  243. package/dist/chunks/de-JhGflzS5.mjs.map +1 -0
  244. package/dist/chunks/de-XCCpWyg0.mjs +2 -0
  245. package/dist/chunks/de-XCCpWyg0.mjs.map +1 -0
  246. package/dist/chunks/de-e6J6nvAD.mjs +2 -0
  247. package/dist/chunks/de-e6J6nvAD.mjs.map +1 -0
  248. package/dist/chunks/de-i95F9SDy.mjs +2 -0
  249. package/dist/chunks/de-i95F9SDy.mjs.map +1 -0
  250. package/dist/chunks/de-uKR7koQe.mjs +2 -0
  251. package/dist/chunks/de-uKR7koQe.mjs.map +1 -0
  252. package/dist/chunks/es-B0Za939C.mjs +2 -0
  253. package/dist/chunks/es-B0Za939C.mjs.map +1 -0
  254. package/dist/chunks/es-B8K3Yvf3.mjs +2 -0
  255. package/dist/chunks/es-B8K3Yvf3.mjs.map +1 -0
  256. package/dist/chunks/es-BIXm2Coj.mjs +2 -0
  257. package/dist/chunks/es-BIXm2Coj.mjs.map +1 -0
  258. package/dist/chunks/es-BJHF95J_.mjs +2 -0
  259. package/dist/chunks/es-BJHF95J_.mjs.map +1 -0
  260. package/dist/chunks/es-BMm9kqjC.mjs +2 -0
  261. package/dist/chunks/es-BMm9kqjC.mjs.map +1 -0
  262. package/dist/chunks/es-BQweZX6P.mjs +2 -0
  263. package/dist/chunks/es-BQweZX6P.mjs.map +1 -0
  264. package/dist/chunks/es-BdpTTRuX.mjs +2 -0
  265. package/dist/chunks/es-BdpTTRuX.mjs.map +1 -0
  266. package/dist/chunks/es-Bv7bDbMp.mjs +2 -0
  267. package/dist/chunks/es-Bv7bDbMp.mjs.map +1 -0
  268. package/dist/chunks/es-C7uVqFYr.mjs +2 -0
  269. package/dist/chunks/es-C7uVqFYr.mjs.map +1 -0
  270. package/dist/chunks/es-CCQFu1t1.mjs +2 -0
  271. package/dist/chunks/es-CCQFu1t1.mjs.map +1 -0
  272. package/dist/chunks/es-CM55WeEN.mjs +2 -0
  273. package/dist/chunks/es-CM55WeEN.mjs.map +1 -0
  274. package/dist/chunks/es-CUKJujcb.mjs +2 -0
  275. package/dist/chunks/es-CUKJujcb.mjs.map +1 -0
  276. package/dist/chunks/es-CXuMz87y.mjs +2 -0
  277. package/dist/chunks/es-CXuMz87y.mjs.map +1 -0
  278. package/dist/chunks/es-CgMfhkJJ.mjs +2 -0
  279. package/dist/chunks/es-CgMfhkJJ.mjs.map +1 -0
  280. package/dist/chunks/es-CtOtKQCP.mjs +2 -0
  281. package/dist/chunks/es-CtOtKQCP.mjs.map +1 -0
  282. package/dist/chunks/es-DD01rZ6N.mjs +2 -0
  283. package/dist/chunks/es-DD01rZ6N.mjs.map +1 -0
  284. package/dist/chunks/es-DDoqchUq.mjs +2 -0
  285. package/dist/chunks/es-DDoqchUq.mjs.map +1 -0
  286. package/dist/chunks/es-DFUVd7eO.mjs +2 -0
  287. package/dist/chunks/es-DFUVd7eO.mjs.map +1 -0
  288. package/dist/chunks/es-DFokqQst.mjs +2 -0
  289. package/dist/chunks/es-DFokqQst.mjs.map +1 -0
  290. package/dist/chunks/es-DHxdoEzR.mjs +2 -0
  291. package/dist/chunks/es-DHxdoEzR.mjs.map +1 -0
  292. package/dist/chunks/es-DehVGwQ8.mjs +2 -0
  293. package/dist/chunks/es-DehVGwQ8.mjs.map +1 -0
  294. package/dist/chunks/es-DrJyl38L.mjs +2 -0
  295. package/dist/chunks/es-DrJyl38L.mjs.map +1 -0
  296. package/dist/chunks/es-fTW0TkYV.mjs +2 -0
  297. package/dist/chunks/es-fTW0TkYV.mjs.map +1 -0
  298. package/dist/chunks/es-kfKiqpyD.mjs +2 -0
  299. package/dist/chunks/es-kfKiqpyD.mjs.map +1 -0
  300. package/dist/chunks/es-nRLq7bgP.mjs +2 -0
  301. package/dist/chunks/es-nRLq7bgP.mjs.map +1 -0
  302. package/dist/chunks/es-paXY7HFt.mjs +2 -0
  303. package/dist/chunks/es-paXY7HFt.mjs.map +1 -0
  304. package/dist/chunks/es-xuahrvJN.mjs +2 -0
  305. package/dist/chunks/es-xuahrvJN.mjs.map +1 -0
  306. package/dist/chunks/fonts-DQC6Uj4r.mjs +2 -0
  307. package/dist/chunks/fonts-DQC6Uj4r.mjs.map +1 -0
  308. package/dist/chunks/fr-0qEo3bRP.mjs +2 -0
  309. package/dist/chunks/fr-0qEo3bRP.mjs.map +1 -0
  310. package/dist/chunks/fr-5HkMazAf.mjs +2 -0
  311. package/dist/chunks/fr-5HkMazAf.mjs.map +1 -0
  312. package/dist/chunks/fr-B9pBLaVx.mjs +2 -0
  313. package/dist/chunks/fr-B9pBLaVx.mjs.map +1 -0
  314. package/dist/chunks/fr-BRXUnq3R.mjs +2 -0
  315. package/dist/chunks/fr-BRXUnq3R.mjs.map +1 -0
  316. package/dist/chunks/fr-BSUKEtTk.mjs +2 -0
  317. package/dist/chunks/fr-BSUKEtTk.mjs.map +1 -0
  318. package/dist/chunks/fr-BaXKyPmX.mjs +2 -0
  319. package/dist/chunks/fr-BaXKyPmX.mjs.map +1 -0
  320. package/dist/chunks/fr-BeRlON1t.mjs +2 -0
  321. package/dist/chunks/fr-BeRlON1t.mjs.map +1 -0
  322. package/dist/chunks/fr-Bg937iAy.mjs +2 -0
  323. package/dist/chunks/fr-Bg937iAy.mjs.map +1 -0
  324. package/dist/chunks/fr-BwWrFThE.mjs +2 -0
  325. package/dist/chunks/fr-BwWrFThE.mjs.map +1 -0
  326. package/dist/chunks/fr-C3EKRThN.mjs +2 -0
  327. package/dist/chunks/fr-C3EKRThN.mjs.map +1 -0
  328. package/dist/chunks/fr-CKjH6tJI.mjs +2 -0
  329. package/dist/chunks/fr-CKjH6tJI.mjs.map +1 -0
  330. package/dist/chunks/fr-CQs0-pNX.mjs +2 -0
  331. package/dist/chunks/fr-CQs0-pNX.mjs.map +1 -0
  332. package/dist/chunks/fr-C_2i5Ono.mjs +2 -0
  333. package/dist/chunks/fr-C_2i5Ono.mjs.map +1 -0
  334. package/dist/chunks/fr-CfhyYN-t.mjs +2 -0
  335. package/dist/chunks/fr-CfhyYN-t.mjs.map +1 -0
  336. package/dist/chunks/fr-D0MDdoir.mjs +2 -0
  337. package/dist/chunks/fr-D0MDdoir.mjs.map +1 -0
  338. package/dist/chunks/fr-D5ulA3Z6.mjs +2 -0
  339. package/dist/chunks/fr-D5ulA3Z6.mjs.map +1 -0
  340. package/dist/chunks/fr-DEZ_oxzS.mjs +2 -0
  341. package/dist/chunks/fr-DEZ_oxzS.mjs.map +1 -0
  342. package/dist/chunks/fr-DciSEykY.mjs +2 -0
  343. package/dist/chunks/fr-DciSEykY.mjs.map +1 -0
  344. package/dist/chunks/fr-DiDhVhyV.mjs +2 -0
  345. package/dist/chunks/fr-DiDhVhyV.mjs.map +1 -0
  346. package/dist/chunks/fr-DjMZ-3K5.mjs +2 -0
  347. package/dist/chunks/fr-DjMZ-3K5.mjs.map +1 -0
  348. package/dist/chunks/fr-DtzIu6tU.mjs +2 -0
  349. package/dist/chunks/fr-DtzIu6tU.mjs.map +1 -0
  350. package/dist/chunks/fr-F2ZrfVaF.mjs +2 -0
  351. package/dist/chunks/fr-F2ZrfVaF.mjs.map +1 -0
  352. package/dist/chunks/fr-KXmbys88.mjs +2 -0
  353. package/dist/chunks/fr-KXmbys88.mjs.map +1 -0
  354. package/dist/chunks/fr-SbpHNrQ-.mjs +2 -0
  355. package/dist/chunks/fr-SbpHNrQ-.mjs.map +1 -0
  356. package/dist/chunks/fr-ZsRdLuys.mjs +2 -0
  357. package/dist/chunks/fr-ZsRdLuys.mjs.map +1 -0
  358. package/dist/chunks/fr-eC0UdAPu.mjs +2 -0
  359. package/dist/chunks/fr-eC0UdAPu.mjs.map +1 -0
  360. package/dist/chunks/fr-fshsDD66.mjs +2 -0
  361. package/dist/chunks/fr-fshsDD66.mjs.map +1 -0
  362. package/dist/chunks/full-CHkwduuY.mjs +2 -0
  363. package/dist/chunks/full-CHkwduuY.mjs.map +1 -0
  364. package/dist/chunks/hi-4CiAKVjT.mjs +2 -0
  365. package/dist/chunks/hi-4CiAKVjT.mjs.map +1 -0
  366. package/dist/chunks/hi-B-ZuX4aN.mjs +2 -0
  367. package/dist/chunks/hi-B-ZuX4aN.mjs.map +1 -0
  368. package/dist/chunks/hi-B2YB3Bo4.mjs +2 -0
  369. package/dist/chunks/hi-B2YB3Bo4.mjs.map +1 -0
  370. package/dist/chunks/hi-B2uhiPCN.mjs +2 -0
  371. package/dist/chunks/hi-B2uhiPCN.mjs.map +1 -0
  372. package/dist/chunks/hi-B5cl8TWK.mjs +2 -0
  373. package/dist/chunks/hi-B5cl8TWK.mjs.map +1 -0
  374. package/dist/chunks/hi-BNJIGWQQ.mjs +2 -0
  375. package/dist/chunks/hi-BNJIGWQQ.mjs.map +1 -0
  376. package/dist/chunks/hi-BOMkDPqC.mjs +2 -0
  377. package/dist/chunks/hi-BOMkDPqC.mjs.map +1 -0
  378. package/dist/chunks/hi-Bl-yeeOI.mjs +2 -0
  379. package/dist/chunks/hi-Bl-yeeOI.mjs.map +1 -0
  380. package/dist/chunks/hi-Bu799xIO.mjs +2 -0
  381. package/dist/chunks/hi-Bu799xIO.mjs.map +1 -0
  382. package/dist/chunks/hi-By8YwVIX.mjs +2 -0
  383. package/dist/chunks/hi-By8YwVIX.mjs.map +1 -0
  384. package/dist/chunks/hi-BzbMD_cP.mjs +2 -0
  385. package/dist/chunks/hi-BzbMD_cP.mjs.map +1 -0
  386. package/dist/chunks/hi-C2jEsf8v.mjs +2 -0
  387. package/dist/chunks/hi-C2jEsf8v.mjs.map +1 -0
  388. package/dist/chunks/hi-C9fvG91d.mjs +2 -0
  389. package/dist/chunks/hi-C9fvG91d.mjs.map +1 -0
  390. package/dist/chunks/hi-CTWubxLY.mjs +2 -0
  391. package/dist/chunks/hi-CTWubxLY.mjs.map +1 -0
  392. package/dist/chunks/hi-CoclKAUM.mjs +2 -0
  393. package/dist/chunks/hi-CoclKAUM.mjs.map +1 -0
  394. package/dist/chunks/hi-CrmakMVj.mjs +2 -0
  395. package/dist/chunks/hi-CrmakMVj.mjs.map +1 -0
  396. package/dist/chunks/hi-DWX6k5ZD.mjs +2 -0
  397. package/dist/chunks/hi-DWX6k5ZD.mjs.map +1 -0
  398. package/dist/chunks/hi-DY55FuDK.mjs +2 -0
  399. package/dist/chunks/hi-DY55FuDK.mjs.map +1 -0
  400. package/dist/chunks/hi-DsdXcOB6.mjs +2 -0
  401. package/dist/chunks/hi-DsdXcOB6.mjs.map +1 -0
  402. package/dist/chunks/hi-Dt89SxNy.mjs +2 -0
  403. package/dist/chunks/hi-Dt89SxNy.mjs.map +1 -0
  404. package/dist/chunks/hi-J8ErB5nB.mjs +2 -0
  405. package/dist/chunks/hi-J8ErB5nB.mjs.map +1 -0
  406. package/dist/chunks/hi-L6pJxZam.mjs +2 -0
  407. package/dist/chunks/hi-L6pJxZam.mjs.map +1 -0
  408. package/dist/chunks/hi-SECtQQzq.mjs +2 -0
  409. package/dist/chunks/hi-SECtQQzq.mjs.map +1 -0
  410. package/dist/chunks/hi-aH9HZG23.mjs +2 -0
  411. package/dist/chunks/hi-aH9HZG23.mjs.map +1 -0
  412. package/dist/chunks/hi-j3TDLMYd.mjs +2 -0
  413. package/dist/chunks/hi-j3TDLMYd.mjs.map +1 -0
  414. package/dist/chunks/hi-l6DA-aOw.mjs +2 -0
  415. package/dist/chunks/hi-l6DA-aOw.mjs.map +1 -0
  416. package/dist/chunks/hi-uACJUw53.mjs +2 -0
  417. package/dist/chunks/hi-uACJUw53.mjs.map +1 -0
  418. package/dist/chunks/minimal-D5v-raei.mjs +2 -0
  419. package/dist/chunks/minimal-D5v-raei.mjs.map +1 -0
  420. package/dist/chunks/pt-5VeuNDd2.mjs +2 -0
  421. package/dist/chunks/pt-5VeuNDd2.mjs.map +1 -0
  422. package/dist/chunks/pt-BCXgUDiU.mjs +2 -0
  423. package/dist/chunks/pt-BCXgUDiU.mjs.map +1 -0
  424. package/dist/chunks/pt-BDam9cDu.mjs +2 -0
  425. package/dist/chunks/pt-BDam9cDu.mjs.map +1 -0
  426. package/dist/chunks/pt-Bb908r0n.mjs +2 -0
  427. package/dist/chunks/pt-Bb908r0n.mjs.map +1 -0
  428. package/dist/chunks/pt-BkpVtod-.mjs +2 -0
  429. package/dist/chunks/pt-BkpVtod-.mjs.map +1 -0
  430. package/dist/chunks/pt-BlFAJZo7.mjs +2 -0
  431. package/dist/chunks/pt-BlFAJZo7.mjs.map +1 -0
  432. package/dist/chunks/pt-Bu7Mbz67.mjs +2 -0
  433. package/dist/chunks/pt-Bu7Mbz67.mjs.map +1 -0
  434. package/dist/chunks/pt-C8sOyw0V.mjs +2 -0
  435. package/dist/chunks/pt-C8sOyw0V.mjs.map +1 -0
  436. package/dist/chunks/pt-CEUgbrii.mjs +2 -0
  437. package/dist/chunks/pt-CEUgbrii.mjs.map +1 -0
  438. package/dist/chunks/pt-CMrFpUWS.mjs +2 -0
  439. package/dist/chunks/pt-CMrFpUWS.mjs.map +1 -0
  440. package/dist/chunks/pt-CMx2wPPY.mjs +2 -0
  441. package/dist/chunks/pt-CMx2wPPY.mjs.map +1 -0
  442. package/dist/chunks/pt-CR4j8gtE.mjs +2 -0
  443. package/dist/chunks/pt-CR4j8gtE.mjs.map +1 -0
  444. package/dist/chunks/pt-Cc4zysaT.mjs +2 -0
  445. package/dist/chunks/pt-Cc4zysaT.mjs.map +1 -0
  446. package/dist/chunks/pt-Cv6q7x5x.mjs +2 -0
  447. package/dist/chunks/pt-Cv6q7x5x.mjs.map +1 -0
  448. package/dist/chunks/pt-DFKJVh7k.mjs +2 -0
  449. package/dist/chunks/pt-DFKJVh7k.mjs.map +1 -0
  450. package/dist/chunks/pt-DYMyMgKQ.mjs +2 -0
  451. package/dist/chunks/pt-DYMyMgKQ.mjs.map +1 -0
  452. package/dist/chunks/pt-D__tcM2T.mjs +2 -0
  453. package/dist/chunks/pt-D__tcM2T.mjs.map +1 -0
  454. package/dist/chunks/pt-Dg2ctkug.mjs +2 -0
  455. package/dist/chunks/pt-Dg2ctkug.mjs.map +1 -0
  456. package/dist/chunks/pt-DgfMoLWR.mjs +2 -0
  457. package/dist/chunks/pt-DgfMoLWR.mjs.map +1 -0
  458. package/dist/chunks/pt-DmN9u3NX.mjs +2 -0
  459. package/dist/chunks/pt-DmN9u3NX.mjs.map +1 -0
  460. package/dist/chunks/pt-GqLw5tN0.mjs +2 -0
  461. package/dist/chunks/pt-GqLw5tN0.mjs.map +1 -0
  462. package/dist/chunks/pt-Hy-0Xnnc.mjs +2 -0
  463. package/dist/chunks/pt-Hy-0Xnnc.mjs.map +1 -0
  464. package/dist/chunks/pt-OXa_IR4Q.mjs +2 -0
  465. package/dist/chunks/pt-OXa_IR4Q.mjs.map +1 -0
  466. package/dist/chunks/pt-UPF7DBlz.mjs +2 -0
  467. package/dist/chunks/pt-UPF7DBlz.mjs.map +1 -0
  468. package/dist/chunks/pt-_qxIe7zX.mjs +2 -0
  469. package/dist/chunks/pt-_qxIe7zX.mjs.map +1 -0
  470. package/dist/chunks/pt-paXY7HFt.mjs +2 -0
  471. package/dist/chunks/pt-paXY7HFt.mjs.map +1 -0
  472. package/dist/chunks/pt-zMHcNGPk.mjs +2 -0
  473. package/dist/chunks/pt-zMHcNGPk.mjs.map +1 -0
  474. package/dist/chunks/ru-4g_qsaLr.mjs +2 -0
  475. package/dist/chunks/ru-4g_qsaLr.mjs.map +1 -0
  476. package/dist/chunks/ru-B1m8J9dl.mjs +2 -0
  477. package/dist/chunks/ru-B1m8J9dl.mjs.map +1 -0
  478. package/dist/chunks/ru-BFpEOrVp.mjs +2 -0
  479. package/dist/chunks/ru-BFpEOrVp.mjs.map +1 -0
  480. package/dist/chunks/ru-BNPUT-3S.mjs +2 -0
  481. package/dist/chunks/ru-BNPUT-3S.mjs.map +1 -0
  482. package/dist/chunks/ru-BotG0MFT.mjs +2 -0
  483. package/dist/chunks/ru-BotG0MFT.mjs.map +1 -0
  484. package/dist/chunks/ru-BxySx7an.mjs +2 -0
  485. package/dist/chunks/ru-BxySx7an.mjs.map +1 -0
  486. package/dist/chunks/ru-C-APN_dm.mjs +2 -0
  487. package/dist/chunks/ru-C-APN_dm.mjs.map +1 -0
  488. package/dist/chunks/ru-C9yFslEG.mjs +2 -0
  489. package/dist/chunks/ru-C9yFslEG.mjs.map +1 -0
  490. package/dist/chunks/ru-CkG_bpfo.mjs +2 -0
  491. package/dist/chunks/ru-CkG_bpfo.mjs.map +1 -0
  492. package/dist/chunks/ru-Cs8KCNyq.mjs +2 -0
  493. package/dist/chunks/ru-Cs8KCNyq.mjs.map +1 -0
  494. package/dist/chunks/ru-CvDl-yEd.mjs +2 -0
  495. package/dist/chunks/ru-CvDl-yEd.mjs.map +1 -0
  496. package/dist/chunks/ru-CwyPz2Va.mjs +2 -0
  497. package/dist/chunks/ru-CwyPz2Va.mjs.map +1 -0
  498. package/dist/chunks/ru-D53d-_UB.mjs +2 -0
  499. package/dist/chunks/ru-D53d-_UB.mjs.map +1 -0
  500. package/dist/chunks/ru-DJMpeuey.mjs +2 -0
  501. package/dist/chunks/ru-DJMpeuey.mjs.map +1 -0
  502. package/dist/chunks/ru-DSRv3_Rg.mjs +2 -0
  503. package/dist/chunks/ru-DSRv3_Rg.mjs.map +1 -0
  504. package/dist/chunks/ru-DV-lgEtM.mjs +2 -0
  505. package/dist/chunks/ru-DV-lgEtM.mjs.map +1 -0
  506. package/dist/chunks/ru-DiwQV30V.mjs +2 -0
  507. package/dist/chunks/ru-DiwQV30V.mjs.map +1 -0
  508. package/dist/chunks/ru-DkW9XZFy.mjs +2 -0
  509. package/dist/chunks/ru-DkW9XZFy.mjs.map +1 -0
  510. package/dist/chunks/ru-DyCTlhjg.mjs +2 -0
  511. package/dist/chunks/ru-DyCTlhjg.mjs.map +1 -0
  512. package/dist/chunks/ru-QGX8lOTs.mjs +2 -0
  513. package/dist/chunks/ru-QGX8lOTs.mjs.map +1 -0
  514. package/dist/chunks/ru-QcTo2yoL.mjs +2 -0
  515. package/dist/chunks/ru-QcTo2yoL.mjs.map +1 -0
  516. package/dist/chunks/ru-Y11wuxOB.mjs +2 -0
  517. package/dist/chunks/ru-Y11wuxOB.mjs.map +1 -0
  518. package/dist/chunks/ru-Yngw7nFP.mjs +2 -0
  519. package/dist/chunks/ru-Yngw7nFP.mjs.map +1 -0
  520. package/dist/chunks/ru-d68SZpEe.mjs +2 -0
  521. package/dist/chunks/ru-d68SZpEe.mjs.map +1 -0
  522. package/dist/chunks/ru-k7o3Qks3.mjs +2 -0
  523. package/dist/chunks/ru-k7o3Qks3.mjs.map +1 -0
  524. package/dist/chunks/ru-l73diFXn.mjs +2 -0
  525. package/dist/chunks/ru-l73diFXn.mjs.map +1 -0
  526. package/dist/chunks/ru-q8kz-237.mjs +2 -0
  527. package/dist/chunks/ru-q8kz-237.mjs.map +1 -0
  528. package/dist/chunks/src-gVRDR_79.mjs +2 -0
  529. package/dist/chunks/src-gVRDR_79.mjs.map +1 -0
  530. package/dist/chunks/zh-BGYJXxVl.mjs +2 -0
  531. package/dist/chunks/zh-BGYJXxVl.mjs.map +1 -0
  532. package/dist/chunks/zh-BP97XjlS.mjs +2 -0
  533. package/dist/chunks/zh-BP97XjlS.mjs.map +1 -0
  534. package/dist/chunks/zh-BQ73oqxc.mjs +2 -0
  535. package/dist/chunks/zh-BQ73oqxc.mjs.map +1 -0
  536. package/dist/chunks/zh-BQqf3wJZ.mjs +2 -0
  537. package/dist/chunks/zh-BQqf3wJZ.mjs.map +1 -0
  538. package/dist/chunks/zh-Baxh6v0j.mjs +2 -0
  539. package/dist/chunks/zh-Baxh6v0j.mjs.map +1 -0
  540. package/dist/chunks/zh-BjoyjClN.mjs +2 -0
  541. package/dist/chunks/zh-BjoyjClN.mjs.map +1 -0
  542. package/dist/chunks/zh-BvuAbM2S.mjs +2 -0
  543. package/dist/chunks/zh-BvuAbM2S.mjs.map +1 -0
  544. package/dist/chunks/zh-C-wHnDo5.mjs +2 -0
  545. package/dist/chunks/zh-C-wHnDo5.mjs.map +1 -0
  546. package/dist/chunks/zh-C7iCgCRP.mjs +2 -0
  547. package/dist/chunks/zh-C7iCgCRP.mjs.map +1 -0
  548. package/dist/chunks/zh-CRsDvfPR.mjs +2 -0
  549. package/dist/chunks/zh-CRsDvfPR.mjs.map +1 -0
  550. package/dist/chunks/zh-CWGAPVei.mjs +2 -0
  551. package/dist/chunks/zh-CWGAPVei.mjs.map +1 -0
  552. package/dist/chunks/zh-CWIzJcXi.mjs +2 -0
  553. package/dist/chunks/zh-CWIzJcXi.mjs.map +1 -0
  554. package/dist/chunks/zh-CYV-db-K.mjs +2 -0
  555. package/dist/chunks/zh-CYV-db-K.mjs.map +1 -0
  556. package/dist/chunks/zh-CnW44JEw.mjs +2 -0
  557. package/dist/chunks/zh-CnW44JEw.mjs.map +1 -0
  558. package/dist/chunks/zh-D1HSmSOf.mjs +2 -0
  559. package/dist/chunks/zh-D1HSmSOf.mjs.map +1 -0
  560. package/dist/chunks/zh-DWN1Jqn3.mjs +2 -0
  561. package/dist/chunks/zh-DWN1Jqn3.mjs.map +1 -0
  562. package/dist/chunks/zh-DYD476c5.mjs +2 -0
  563. package/dist/chunks/zh-DYD476c5.mjs.map +1 -0
  564. package/dist/chunks/zh-DdzgYD7k.mjs +2 -0
  565. package/dist/chunks/zh-DdzgYD7k.mjs.map +1 -0
  566. package/dist/chunks/zh-DeZP08HI.mjs +2 -0
  567. package/dist/chunks/zh-DeZP08HI.mjs.map +1 -0
  568. package/dist/chunks/zh-DgSmvLyw.mjs +2 -0
  569. package/dist/chunks/zh-DgSmvLyw.mjs.map +1 -0
  570. package/dist/chunks/zh-DlVfQn4z.mjs +2 -0
  571. package/dist/chunks/zh-DlVfQn4z.mjs.map +1 -0
  572. package/dist/chunks/zh-DuucmOns.mjs +2 -0
  573. package/dist/chunks/zh-DuucmOns.mjs.map +1 -0
  574. package/dist/chunks/zh-Oj-qSUEp.mjs +2 -0
  575. package/dist/chunks/zh-Oj-qSUEp.mjs.map +1 -0
  576. package/dist/chunks/zh-YfuE_m2y.mjs +2 -0
  577. package/dist/chunks/zh-YfuE_m2y.mjs.map +1 -0
  578. package/dist/chunks/zh-dGSDBBzb.mjs +2 -0
  579. package/dist/chunks/zh-dGSDBBzb.mjs.map +1 -0
  580. package/dist/chunks/zh-ikm3rSTR.mjs +2 -0
  581. package/dist/chunks/zh-ikm3rSTR.mjs.map +1 -0
  582. package/dist/chunks/zh-oZl1P_p0.mjs +2 -0
  583. package/dist/chunks/zh-oZl1P_p0.mjs.map +1 -0
  584. package/dist/commands/BlockInsertion.d.ts +49 -2
  585. package/dist/commands/BlockInsertion.d.ts.map +1 -1
  586. package/dist/commands/Commands.d.ts.map +1 -1
  587. package/dist/commands/NodeSelectionCommands.d.ts +10 -2
  588. package/dist/commands/NodeSelectionCommands.d.ts.map +1 -1
  589. package/dist/editor/styles/list.d.ts +1 -1
  590. package/dist/editor/styles/list.d.ts.map +1 -1
  591. package/dist/fonts.mjs +1 -1
  592. package/dist/full.mjs +1 -1
  593. package/dist/html.mjs +1 -1
  594. package/dist/index.d.ts +1 -1
  595. package/dist/index.d.ts.map +1 -1
  596. package/dist/input/KeyDescriptor.d.ts +40 -0
  597. package/dist/input/KeyDescriptor.d.ts.map +1 -0
  598. package/dist/input/KeyboardHandler.d.ts +17 -5
  599. package/dist/input/KeyboardHandler.d.ts.map +1 -1
  600. package/dist/input/PasteHTMLHandler.d.ts.map +1 -1
  601. package/dist/input/PasteRichBlockHandler.d.ts +22 -3
  602. package/dist/input/PasteRichBlockHandler.d.ts.map +1 -1
  603. package/dist/model/Document.d.ts +2 -2
  604. package/dist/model/Document.d.ts.map +1 -1
  605. package/dist/notectl-core.mjs +1 -1
  606. package/dist/notectl-core.umd.js +1 -1
  607. package/dist/notectl-core.umd.js.map +1 -1
  608. package/dist/plugins/alignment.mjs +1 -1
  609. package/dist/plugins/bidi-isolation.mjs +1 -1
  610. package/dist/plugins/blockquote.mjs +1 -1
  611. package/dist/plugins/caret-navigation.mjs +1 -1
  612. package/dist/plugins/code-block.mjs +1 -1
  613. package/dist/plugins/font-size.mjs +1 -1
  614. package/dist/plugins/font.mjs +1 -1
  615. package/dist/plugins/formula/DisplayMathNodeSpec.d.ts.map +1 -1
  616. package/dist/plugins/formula/FormulaCommands.d.ts +14 -0
  617. package/dist/plugins/formula/FormulaCommands.d.ts.map +1 -1
  618. package/dist/plugins/formula/FormulaEditorMount.d.ts.map +1 -1
  619. package/dist/plugins/formula/FormulaLocale.d.ts +7 -1
  620. package/dist/plugins/formula/FormulaLocale.d.ts.map +1 -1
  621. package/dist/plugins/formula/FormulaPasteInterceptor.d.ts +12 -3
  622. package/dist/plugins/formula/FormulaPasteInterceptor.d.ts.map +1 -1
  623. package/dist/plugins/formula/FormulaSerialization.d.ts +17 -0
  624. package/dist/plugins/formula/FormulaSerialization.d.ts.map +1 -0
  625. package/dist/plugins/formula/FormulaStyles.d.ts +1 -1
  626. package/dist/plugins/formula/FormulaStyles.d.ts.map +1 -1
  627. package/dist/plugins/formula/InlineMathNodeSpec.d.ts.map +1 -1
  628. package/dist/plugins/formula/locales/ar.d.ts.map +1 -1
  629. package/dist/plugins/formula/locales/de.d.ts.map +1 -1
  630. package/dist/plugins/formula/locales/es.d.ts.map +1 -1
  631. package/dist/plugins/formula/locales/fr.d.ts.map +1 -1
  632. package/dist/plugins/formula/locales/hi.d.ts.map +1 -1
  633. package/dist/plugins/formula/locales/pt.d.ts.map +1 -1
  634. package/dist/plugins/formula/locales/ru.d.ts.map +1 -1
  635. package/dist/plugins/formula/locales/zh.d.ts.map +1 -1
  636. package/dist/plugins/formula/math-field/MathPalette.d.ts.map +1 -1
  637. package/dist/plugins/formula/math-field/MathPaletteData.d.ts +7 -1
  638. package/dist/plugins/formula/math-field/MathPaletteData.d.ts.map +1 -1
  639. package/dist/plugins/formula/mathml/MathMLDocument.d.ts +13 -0
  640. package/dist/plugins/formula/mathml/MathMLDocument.d.ts.map +1 -1
  641. package/dist/plugins/formula.mjs +1 -1
  642. package/dist/plugins/gap-cursor.mjs +1 -1
  643. package/dist/plugins/hard-break.mjs +1 -1
  644. package/dist/plugins/heading.mjs +1 -1
  645. package/dist/plugins/highlight.mjs +1 -1
  646. package/dist/plugins/horizontal-rule.mjs +1 -1
  647. package/dist/plugins/image.mjs +1 -1
  648. package/dist/plugins/inline-code.mjs +1 -1
  649. package/dist/plugins/language.mjs +1 -1
  650. package/dist/plugins/link.mjs +1 -1
  651. package/dist/plugins/list/ListCommands.d.ts +16 -3
  652. package/dist/plugins/list/ListCommands.d.ts.map +1 -1
  653. package/dist/plugins/list/ListLocale.d.ts +6 -0
  654. package/dist/plugins/list/ListLocale.d.ts.map +1 -1
  655. package/dist/plugins/list/ListMarker.d.ts +14 -0
  656. package/dist/plugins/list/ListMarker.d.ts.map +1 -0
  657. package/dist/plugins/list/ListPlugin.d.ts.map +1 -1
  658. package/dist/plugins/list/locales/ar.d.ts.map +1 -1
  659. package/dist/plugins/list/locales/de.d.ts.map +1 -1
  660. package/dist/plugins/list/locales/es.d.ts.map +1 -1
  661. package/dist/plugins/list/locales/fr.d.ts.map +1 -1
  662. package/dist/plugins/list/locales/hi.d.ts.map +1 -1
  663. package/dist/plugins/list/locales/pt.d.ts.map +1 -1
  664. package/dist/plugins/list/locales/ru.d.ts.map +1 -1
  665. package/dist/plugins/list/locales/zh.d.ts.map +1 -1
  666. package/dist/plugins/list.mjs +1 -1
  667. package/dist/plugins/print.mjs +1 -1
  668. package/dist/plugins/shared.mjs +1 -1
  669. package/dist/plugins/smart-paste.mjs +1 -1
  670. package/dist/plugins/strikethrough.mjs +1 -1
  671. package/dist/plugins/super-sub.mjs +1 -1
  672. package/dist/plugins/table/TableCommands.d.ts.map +1 -1
  673. package/dist/plugins/table.mjs +1 -1
  674. package/dist/plugins/text-color.mjs +1 -1
  675. package/dist/plugins/text-direction-auto.mjs +1 -1
  676. package/dist/plugins/text-direction.mjs +1 -1
  677. package/dist/plugins/text-formatting.mjs +1 -1
  678. package/dist/plugins/toolbar/ToolbarPopupController.d.ts.map +1 -1
  679. package/dist/plugins/toolbar.mjs +1 -1
  680. package/dist/plugins/video/VideoCommands.d.ts.map +1 -1
  681. package/dist/plugins/video.mjs +1 -1
  682. package/dist/presets/full.mjs +1 -1
  683. package/dist/presets/minimal.mjs +1 -1
  684. package/dist/presets.mjs +1 -1
  685. package/dist/state/InlineContentOps.d.ts +5 -3
  686. package/dist/state/InlineContentOps.d.ts.map +1 -1
  687. package/dist/state/StepInversion.d.ts.map +1 -1
  688. package/dist/state/StepMaps.d.ts.map +1 -1
  689. package/dist/state/Steps.d.ts +20 -3
  690. package/dist/state/Steps.d.ts.map +1 -1
  691. package/dist/state/TransactionBuilder.d.ts +3 -3
  692. package/dist/state/TransactionBuilder.d.ts.map +1 -1
  693. package/dist/test/TestUtils.d.ts +2 -0
  694. package/dist/test/TestUtils.d.ts.map +1 -1
  695. package/dist/view/SelectionSync.d.ts.map +1 -1
  696. package/package.json +2 -2
  697. package/dist/chunks/AlignmentPlugin-BLzRjrUl.mjs +0 -2
  698. package/dist/chunks/AlignmentPlugin-BLzRjrUl.mjs.map +0 -1
  699. package/dist/chunks/AttrRegistry-CRnXTPha.mjs +0 -2
  700. package/dist/chunks/AttrRegistry-CRnXTPha.mjs.map +0 -1
  701. package/dist/chunks/AttributedMarkCommands-CxhdUsuE.mjs +0 -2
  702. package/dist/chunks/AttributedMarkCommands-CxhdUsuE.mjs.map +0 -1
  703. package/dist/chunks/BidiIsolationPlugin-DNPXe5ga.mjs +0 -2
  704. package/dist/chunks/BidiIsolationPlugin-DNPXe5ga.mjs.map +0 -1
  705. package/dist/chunks/BlockInsertion-C7jFEeYB.mjs +0 -2
  706. package/dist/chunks/BlockInsertion-C7jFEeYB.mjs.map +0 -1
  707. package/dist/chunks/BlockTypePickerRegistry-U4uY7-lN.mjs +0 -2
  708. package/dist/chunks/BlockTypePickerRegistry-U4uY7-lN.mjs.map +0 -1
  709. package/dist/chunks/BlockquotePlugin-YgXcV4mT.mjs +0 -2
  710. package/dist/chunks/BlockquotePlugin-YgXcV4mT.mjs.map +0 -1
  711. package/dist/chunks/CaretNavigationPlugin-P6OYaTSq.mjs +0 -2
  712. package/dist/chunks/CaretNavigationPlugin-P6OYaTSq.mjs.map +0 -1
  713. package/dist/chunks/CodeBlockPlugin-ChPv3Edf.mjs +0 -2
  714. package/dist/chunks/CodeBlockPlugin-ChPv3Edf.mjs.map +0 -1
  715. package/dist/chunks/ColorGrid-D5-teEjD.mjs +0 -2
  716. package/dist/chunks/ColorGrid-D5-teEjD.mjs.map +0 -1
  717. package/dist/chunks/ColorPickerPopup-_Gp09pdx.mjs +0 -2
  718. package/dist/chunks/ColorPickerPopup-_Gp09pdx.mjs.map +0 -1
  719. package/dist/chunks/ColorValidation-okAvytHQ.mjs +0 -2
  720. package/dist/chunks/ColorValidation-okAvytHQ.mjs.map +0 -1
  721. package/dist/chunks/CommandHelpers-NV80Ff1G.mjs +0 -2
  722. package/dist/chunks/CommandHelpers-NV80Ff1G.mjs.map +0 -1
  723. package/dist/chunks/Commands-ixGhPiRG.mjs +0 -2
  724. package/dist/chunks/Commands-ixGhPiRG.mjs.map +0 -1
  725. package/dist/chunks/Decoration-DZK7hrL1.mjs +0 -2
  726. package/dist/chunks/Decoration-DZK7hrL1.mjs.map +0 -1
  727. package/dist/chunks/DirectionDetection-7HmMUZrx.mjs +0 -2
  728. package/dist/chunks/DirectionDetection-7HmMUZrx.mjs.map +0 -1
  729. package/dist/chunks/DirectionIcons-DhRvPVoz.mjs +0 -2
  730. package/dist/chunks/DirectionIcons-DhRvPVoz.mjs.map +0 -1
  731. package/dist/chunks/Document-znhIcvM9.mjs +0 -2
  732. package/dist/chunks/Document-znhIcvM9.mjs.map +0 -1
  733. package/dist/chunks/DocumentParser-DCjOW3us.mjs +0 -2
  734. package/dist/chunks/DocumentParser-DCjOW3us.mjs.map +0 -1
  735. package/dist/chunks/DomUtils-RKbAVBQz.mjs +0 -2
  736. package/dist/chunks/DomUtils-RKbAVBQz.mjs.map +0 -1
  737. package/dist/chunks/FontPlugin-COYtG1Uo.mjs +0 -2
  738. package/dist/chunks/FontPlugin-COYtG1Uo.mjs.map +0 -1
  739. package/dist/chunks/FontSizePlugin-CLcfdTm3.mjs +0 -2
  740. package/dist/chunks/FontSizePlugin-CLcfdTm3.mjs.map +0 -1
  741. package/dist/chunks/FormulaPlugin-DphHU4Rn.mjs +0 -2
  742. package/dist/chunks/FormulaPlugin-DphHU4Rn.mjs.map +0 -1
  743. package/dist/chunks/GapCursorNavigation-Bkuu_Ek8.mjs +0 -2
  744. package/dist/chunks/GapCursorNavigation-Bkuu_Ek8.mjs.map +0 -1
  745. package/dist/chunks/GapCursorPlugin-CRDmQEi1.mjs +0 -2
  746. package/dist/chunks/GapCursorPlugin-CRDmQEi1.mjs.map +0 -1
  747. package/dist/chunks/HTMLUtils-brwcaufP.mjs +0 -2
  748. package/dist/chunks/HTMLUtils-brwcaufP.mjs.map +0 -1
  749. package/dist/chunks/HardBreakPlugin-Cr6dMQ-H.mjs +0 -2
  750. package/dist/chunks/HardBreakPlugin-Cr6dMQ-H.mjs.map +0 -1
  751. package/dist/chunks/HeadingPlugin-3NL4ARPp.mjs +0 -2
  752. package/dist/chunks/HeadingPlugin-3NL4ARPp.mjs.map +0 -1
  753. package/dist/chunks/HighlightPlugin-dHxnAuoW.mjs +0 -2
  754. package/dist/chunks/HighlightPlugin-dHxnAuoW.mjs.map +0 -1
  755. package/dist/chunks/HorizontalRulePlugin-BYPaI4TR.mjs +0 -2
  756. package/dist/chunks/HorizontalRulePlugin-BYPaI4TR.mjs.map +0 -1
  757. package/dist/chunks/ImagePlugin-kgokm-a1.mjs +0 -2
  758. package/dist/chunks/ImagePlugin-kgokm-a1.mjs.map +0 -1
  759. package/dist/chunks/InlineCodePlugin-Bl1jyDwk.mjs +0 -2
  760. package/dist/chunks/InlineCodePlugin-Bl1jyDwk.mjs.map +0 -1
  761. package/dist/chunks/InlineStyleMarkSpec-Cc-b1tlm.mjs +0 -2
  762. package/dist/chunks/InlineStyleMarkSpec-Cc-b1tlm.mjs.map +0 -1
  763. package/dist/chunks/KeyboardNav-DZXdTg-_.mjs +0 -2
  764. package/dist/chunks/KeyboardNav-DZXdTg-_.mjs.map +0 -1
  765. package/dist/chunks/LinkPlugin-Dmcfo3On.mjs +0 -2
  766. package/dist/chunks/LinkPlugin-Dmcfo3On.mjs.map +0 -1
  767. package/dist/chunks/ListPlugin-Ch-5CsFc.mjs +0 -2
  768. package/dist/chunks/ListPlugin-Ch-5CsFc.mjs.map +0 -1
  769. package/dist/chunks/NavigationQueries-3zTaNBlp.mjs +0 -2
  770. package/dist/chunks/NavigationQueries-3zTaNBlp.mjs.map +0 -1
  771. package/dist/chunks/NodeResolver-BplmzA7c.mjs +0 -2
  772. package/dist/chunks/NodeResolver-BplmzA7c.mjs.map +0 -1
  773. package/dist/chunks/NodeSelectionCommands-dUmbRoZ2.mjs +0 -2
  774. package/dist/chunks/NodeSelectionCommands-dUmbRoZ2.mjs.map +0 -1
  775. package/dist/chunks/NodeSpecPatching-DToX09gc.mjs +0 -2
  776. package/dist/chunks/NodeSpecPatching-DToX09gc.mjs.map +0 -1
  777. package/dist/chunks/Platform-wPvKFB9m.mjs +0 -2
  778. package/dist/chunks/Platform-wPvKFB9m.mjs.map +0 -1
  779. package/dist/chunks/PluginHelpers-C3aCCGfX.mjs +0 -2
  780. package/dist/chunks/PluginHelpers-C3aCCGfX.mjs.map +0 -1
  781. package/dist/chunks/PopupKeyboardPatterns-ZdAQB78m.mjs +0 -2
  782. package/dist/chunks/PopupKeyboardPatterns-ZdAQB78m.mjs.map +0 -1
  783. package/dist/chunks/PopupManager-DsT1uRWi.mjs +0 -2
  784. package/dist/chunks/PopupManager-DsT1uRWi.mjs.map +0 -1
  785. package/dist/chunks/PopupPositioning-BEnz90Oh.mjs +0 -2
  786. package/dist/chunks/PopupPositioning-BEnz90Oh.mjs.map +0 -1
  787. package/dist/chunks/PrintPlugin-Bq-Z14K1.mjs +0 -2
  788. package/dist/chunks/PrintPlugin-Bq-Z14K1.mjs.map +0 -1
  789. package/dist/chunks/PrintTypes-DA0Cc--M.mjs +0 -2
  790. package/dist/chunks/PrintTypes-DA0Cc--M.mjs.map +0 -1
  791. package/dist/chunks/RangeIterator-Cl4_k8cx.mjs +0 -2
  792. package/dist/chunks/RangeIterator-Cl4_k8cx.mjs.map +0 -1
  793. package/dist/chunks/Selection-aeiSsvhe.mjs +0 -2
  794. package/dist/chunks/Selection-aeiSsvhe.mjs.map +0 -1
  795. package/dist/chunks/SelectionSync-DCJpNFat.mjs +0 -2
  796. package/dist/chunks/SelectionSync-DCJpNFat.mjs.map +0 -1
  797. package/dist/chunks/ShortcutFormatting-DZK70CN9.mjs +0 -2
  798. package/dist/chunks/ShortcutFormatting-DZK70CN9.mjs.map +0 -1
  799. package/dist/chunks/SimpleMark-CezTJnXh.mjs +0 -2
  800. package/dist/chunks/SimpleMark-CezTJnXh.mjs.map +0 -1
  801. package/dist/chunks/SmartPastePlugin-DlApY6Vw.mjs +0 -2
  802. package/dist/chunks/SmartPastePlugin-DlApY6Vw.mjs.map +0 -1
  803. package/dist/chunks/StrikethroughPlugin-BuFDABvz.mjs +0 -2
  804. package/dist/chunks/StrikethroughPlugin-BuFDABvz.mjs.map +0 -1
  805. package/dist/chunks/StyleRuntime-Bwde5icB.mjs +0 -2
  806. package/dist/chunks/StyleRuntime-Bwde5icB.mjs.map +0 -1
  807. package/dist/chunks/SuperSubPlugin-CiLJ7i4s.mjs +0 -2
  808. package/dist/chunks/SuperSubPlugin-CiLJ7i4s.mjs.map +0 -1
  809. package/dist/chunks/SyntaxTokenTypes-C9dGwufi.mjs +0 -2
  810. package/dist/chunks/SyntaxTokenTypes-C9dGwufi.mjs.map +0 -1
  811. package/dist/chunks/TablePlugin-5ru-y-YX.mjs +0 -2
  812. package/dist/chunks/TablePlugin-5ru-y-YX.mjs.map +0 -1
  813. package/dist/chunks/TextColorPlugin-Vz-Nz8aH.mjs +0 -2
  814. package/dist/chunks/TextColorPlugin-Vz-Nz8aH.mjs.map +0 -1
  815. package/dist/chunks/TextDirectionAutoPlugin-Behl6KMe.mjs +0 -2
  816. package/dist/chunks/TextDirectionAutoPlugin-Behl6KMe.mjs.map +0 -1
  817. package/dist/chunks/TextDirectionPlugin-C3h1n-aA.mjs +0 -2
  818. package/dist/chunks/TextDirectionPlugin-C3h1n-aA.mjs.map +0 -1
  819. package/dist/chunks/TextDirectionService-DRfeQnF6.mjs +0 -2
  820. package/dist/chunks/TextDirectionService-DRfeQnF6.mjs.map +0 -1
  821. package/dist/chunks/TextFormattingPlugin-D_nRMeBn.mjs +0 -2
  822. package/dist/chunks/TextFormattingPlugin-D_nRMeBn.mjs.map +0 -1
  823. package/dist/chunks/ToolbarPlugin-CSMSgjPM.mjs +0 -2
  824. package/dist/chunks/ToolbarPlugin-CSMSgjPM.mjs.map +0 -1
  825. package/dist/chunks/TypeBrands-BZDKMjR-.mjs +0 -2
  826. package/dist/chunks/TypeBrands-BZDKMjR-.mjs.map +0 -1
  827. package/dist/chunks/TypedKeys-E3jOGByL.mjs +0 -2
  828. package/dist/chunks/TypedKeys-E3jOGByL.mjs.map +0 -1
  829. package/dist/chunks/VideoPlugin-BUCGIYXr.mjs +0 -2
  830. package/dist/chunks/VideoPlugin-BUCGIYXr.mjs.map +0 -1
  831. package/dist/chunks/WordBoundary-CYDAtEks.mjs +0 -2
  832. package/dist/chunks/WordBoundary-CYDAtEks.mjs.map +0 -1
  833. package/dist/chunks/XmlDetector-DxBGXqua.mjs +0 -2
  834. package/dist/chunks/XmlDetector-DxBGXqua.mjs.map +0 -1
  835. package/dist/chunks/XmlPatterns-BiHS8w3k.mjs +0 -2
  836. package/dist/chunks/XmlPatterns-BiHS8w3k.mjs.map +0 -1
  837. package/dist/chunks/XmlSupport-B_F65M8G.mjs +0 -2
  838. package/dist/chunks/XmlSupport-B_F65M8G.mjs.map +0 -1
  839. package/dist/chunks/ar-B38MlRRN.mjs +0 -2
  840. package/dist/chunks/ar-B38MlRRN.mjs.map +0 -1
  841. package/dist/chunks/ar-BIeE0C5A.mjs +0 -2
  842. package/dist/chunks/ar-BIeE0C5A.mjs.map +0 -1
  843. package/dist/chunks/ar-BK0rFxF_.mjs +0 -2
  844. package/dist/chunks/ar-BK0rFxF_.mjs.map +0 -1
  845. package/dist/chunks/ar-BK4O36ep.mjs +0 -2
  846. package/dist/chunks/ar-BK4O36ep.mjs.map +0 -1
  847. package/dist/chunks/ar-BNUWuZe3.mjs +0 -2
  848. package/dist/chunks/ar-BNUWuZe3.mjs.map +0 -1
  849. package/dist/chunks/ar-BSXH8acw.mjs +0 -2
  850. package/dist/chunks/ar-BSXH8acw.mjs.map +0 -1
  851. package/dist/chunks/ar-BY8yNlGe.mjs +0 -2
  852. package/dist/chunks/ar-BY8yNlGe.mjs.map +0 -1
  853. package/dist/chunks/ar-BgHkduPE.mjs +0 -2
  854. package/dist/chunks/ar-BgHkduPE.mjs.map +0 -1
  855. package/dist/chunks/ar-BnfWtLhK.mjs +0 -2
  856. package/dist/chunks/ar-BnfWtLhK.mjs.map +0 -1
  857. package/dist/chunks/ar-BwCPhCf6.mjs +0 -2
  858. package/dist/chunks/ar-BwCPhCf6.mjs.map +0 -1
  859. package/dist/chunks/ar-Bymjd9Z_.mjs +0 -2
  860. package/dist/chunks/ar-Bymjd9Z_.mjs.map +0 -1
  861. package/dist/chunks/ar-CKPpdJ7F.mjs +0 -2
  862. package/dist/chunks/ar-CKPpdJ7F.mjs.map +0 -1
  863. package/dist/chunks/ar-C_ir5Uf4.mjs +0 -2
  864. package/dist/chunks/ar-C_ir5Uf4.mjs.map +0 -1
  865. package/dist/chunks/ar-CkE6GDVA.mjs +0 -2
  866. package/dist/chunks/ar-CkE6GDVA.mjs.map +0 -1
  867. package/dist/chunks/ar-ClgA1KQM.mjs +0 -2
  868. package/dist/chunks/ar-ClgA1KQM.mjs.map +0 -1
  869. package/dist/chunks/ar-Cm1DOK74.mjs +0 -2
  870. package/dist/chunks/ar-Cm1DOK74.mjs.map +0 -1
  871. package/dist/chunks/ar-CseGhQtS.mjs +0 -2
  872. package/dist/chunks/ar-CseGhQtS.mjs.map +0 -1
  873. package/dist/chunks/ar-D0bqkviV.mjs +0 -2
  874. package/dist/chunks/ar-D0bqkviV.mjs.map +0 -1
  875. package/dist/chunks/ar-D5d185g0.mjs +0 -2
  876. package/dist/chunks/ar-D5d185g0.mjs.map +0 -1
  877. package/dist/chunks/ar-DSwUyX47.mjs +0 -2
  878. package/dist/chunks/ar-DSwUyX47.mjs.map +0 -1
  879. package/dist/chunks/ar-DfSNWZX7.mjs +0 -2
  880. package/dist/chunks/ar-DfSNWZX7.mjs.map +0 -1
  881. package/dist/chunks/ar-Dghtfs46.mjs +0 -2
  882. package/dist/chunks/ar-Dghtfs46.mjs.map +0 -1
  883. package/dist/chunks/ar-DvNKBrJd.mjs +0 -2
  884. package/dist/chunks/ar-DvNKBrJd.mjs.map +0 -1
  885. package/dist/chunks/ar-KNULRI8r.mjs +0 -2
  886. package/dist/chunks/ar-KNULRI8r.mjs.map +0 -1
  887. package/dist/chunks/ar-NtGRavHz.mjs +0 -2
  888. package/dist/chunks/ar-NtGRavHz.mjs.map +0 -1
  889. package/dist/chunks/ar-Y9KjJLX8.mjs +0 -2
  890. package/dist/chunks/ar-Y9KjJLX8.mjs.map +0 -1
  891. package/dist/chunks/ar-odM5gkvw.mjs +0 -2
  892. package/dist/chunks/ar-odM5gkvw.mjs.map +0 -1
  893. package/dist/chunks/color-picker-C89H4SVX.mjs +0 -2
  894. package/dist/chunks/color-picker-C89H4SVX.mjs.map +0 -1
  895. package/dist/chunks/de-B1TXiyll.mjs +0 -2
  896. package/dist/chunks/de-B1TXiyll.mjs.map +0 -1
  897. package/dist/chunks/de-BDRaxLyi.mjs +0 -2
  898. package/dist/chunks/de-BDRaxLyi.mjs.map +0 -1
  899. package/dist/chunks/de-BGOpZ8Ls.mjs +0 -2
  900. package/dist/chunks/de-BGOpZ8Ls.mjs.map +0 -1
  901. package/dist/chunks/de-BfZ5qXWz.mjs +0 -2
  902. package/dist/chunks/de-BfZ5qXWz.mjs.map +0 -1
  903. package/dist/chunks/de-BibufNIa.mjs +0 -2
  904. package/dist/chunks/de-BibufNIa.mjs.map +0 -1
  905. package/dist/chunks/de-BkZqCmzL.mjs +0 -2
  906. package/dist/chunks/de-BkZqCmzL.mjs.map +0 -1
  907. package/dist/chunks/de-BzRd2oyR.mjs +0 -2
  908. package/dist/chunks/de-BzRd2oyR.mjs.map +0 -1
  909. package/dist/chunks/de-C4gnHDmk.mjs +0 -2
  910. package/dist/chunks/de-C4gnHDmk.mjs.map +0 -1
  911. package/dist/chunks/de-C4iw9SEp.mjs +0 -2
  912. package/dist/chunks/de-C4iw9SEp.mjs.map +0 -1
  913. package/dist/chunks/de-CLWzcDoW.mjs +0 -2
  914. package/dist/chunks/de-CLWzcDoW.mjs.map +0 -1
  915. package/dist/chunks/de-Cbv0otYM.mjs +0 -2
  916. package/dist/chunks/de-Cbv0otYM.mjs.map +0 -1
  917. package/dist/chunks/de-Cinp7zmo.mjs +0 -2
  918. package/dist/chunks/de-Cinp7zmo.mjs.map +0 -1
  919. package/dist/chunks/de-CvnyjI_X.mjs +0 -2
  920. package/dist/chunks/de-CvnyjI_X.mjs.map +0 -1
  921. package/dist/chunks/de-DCx3Shj3.mjs +0 -2
  922. package/dist/chunks/de-DCx3Shj3.mjs.map +0 -1
  923. package/dist/chunks/de-Dav2GzjV.mjs +0 -2
  924. package/dist/chunks/de-Dav2GzjV.mjs.map +0 -1
  925. package/dist/chunks/de-Dc7GRbWc.mjs +0 -2
  926. package/dist/chunks/de-Dc7GRbWc.mjs.map +0 -1
  927. package/dist/chunks/de-DdntlpT3.mjs +0 -2
  928. package/dist/chunks/de-DdntlpT3.mjs.map +0 -1
  929. package/dist/chunks/de-DefykdF-.mjs +0 -2
  930. package/dist/chunks/de-DefykdF-.mjs.map +0 -1
  931. package/dist/chunks/de-DfQQIP8Y.mjs +0 -2
  932. package/dist/chunks/de-DfQQIP8Y.mjs.map +0 -1
  933. package/dist/chunks/de-DkcKDkbA.mjs +0 -2
  934. package/dist/chunks/de-DkcKDkbA.mjs.map +0 -1
  935. package/dist/chunks/de-DqGfLfeV.mjs +0 -2
  936. package/dist/chunks/de-DqGfLfeV.mjs.map +0 -1
  937. package/dist/chunks/de-DudqIJho.mjs +0 -2
  938. package/dist/chunks/de-DudqIJho.mjs.map +0 -1
  939. package/dist/chunks/de-LCXA2xWj.mjs +0 -2
  940. package/dist/chunks/de-LCXA2xWj.mjs.map +0 -1
  941. package/dist/chunks/de-YygmrxGp.mjs +0 -2
  942. package/dist/chunks/de-YygmrxGp.mjs.map +0 -1
  943. package/dist/chunks/de-asI3UlFG.mjs +0 -2
  944. package/dist/chunks/de-asI3UlFG.mjs.map +0 -1
  945. package/dist/chunks/de-kvMvD3AJ.mjs +0 -2
  946. package/dist/chunks/de-kvMvD3AJ.mjs.map +0 -1
  947. package/dist/chunks/de-pnfTnS03.mjs +0 -2
  948. package/dist/chunks/de-pnfTnS03.mjs.map +0 -1
  949. package/dist/chunks/es-4tbAR0If.mjs +0 -2
  950. package/dist/chunks/es-4tbAR0If.mjs.map +0 -1
  951. package/dist/chunks/es-B9z2Xwj0.mjs +0 -2
  952. package/dist/chunks/es-B9z2Xwj0.mjs.map +0 -1
  953. package/dist/chunks/es-BJxjRQSg.mjs +0 -2
  954. package/dist/chunks/es-BJxjRQSg.mjs.map +0 -1
  955. package/dist/chunks/es-BSyxBRjn.mjs +0 -2
  956. package/dist/chunks/es-BSyxBRjn.mjs.map +0 -1
  957. package/dist/chunks/es-Bcpq2xfU.mjs +0 -2
  958. package/dist/chunks/es-Bcpq2xfU.mjs.map +0 -1
  959. package/dist/chunks/es-BhUjc8mO.mjs +0 -2
  960. package/dist/chunks/es-BhUjc8mO.mjs.map +0 -1
  961. package/dist/chunks/es-Bm7hoJSI.mjs +0 -2
  962. package/dist/chunks/es-Bm7hoJSI.mjs.map +0 -1
  963. package/dist/chunks/es-C0E-lFIC.mjs +0 -2
  964. package/dist/chunks/es-C0E-lFIC.mjs.map +0 -1
  965. package/dist/chunks/es-C2wBBQ7N.mjs +0 -2
  966. package/dist/chunks/es-C2wBBQ7N.mjs.map +0 -1
  967. package/dist/chunks/es-C9vhYpfP.mjs +0 -2
  968. package/dist/chunks/es-C9vhYpfP.mjs.map +0 -1
  969. package/dist/chunks/es-Cgslt0Hp.mjs +0 -2
  970. package/dist/chunks/es-Cgslt0Hp.mjs.map +0 -1
  971. package/dist/chunks/es-CksXDFxg.mjs +0 -2
  972. package/dist/chunks/es-CksXDFxg.mjs.map +0 -1
  973. package/dist/chunks/es-CnQUZlfY.mjs +0 -2
  974. package/dist/chunks/es-CnQUZlfY.mjs.map +0 -1
  975. package/dist/chunks/es-CrRNOn2Q.mjs +0 -2
  976. package/dist/chunks/es-CrRNOn2Q.mjs.map +0 -1
  977. package/dist/chunks/es-D0427MIH.mjs +0 -2
  978. package/dist/chunks/es-D0427MIH.mjs.map +0 -1
  979. package/dist/chunks/es-D19xfXus.mjs +0 -2
  980. package/dist/chunks/es-D19xfXus.mjs.map +0 -1
  981. package/dist/chunks/es-Dk6lCcOt.mjs +0 -2
  982. package/dist/chunks/es-Dk6lCcOt.mjs.map +0 -1
  983. package/dist/chunks/es-Dls_xPCW.mjs +0 -2
  984. package/dist/chunks/es-Dls_xPCW.mjs.map +0 -1
  985. package/dist/chunks/es-DrcsyDvI.mjs +0 -2
  986. package/dist/chunks/es-DrcsyDvI.mjs.map +0 -1
  987. package/dist/chunks/es-DwKejbO9.mjs +0 -2
  988. package/dist/chunks/es-DwKejbO9.mjs.map +0 -1
  989. package/dist/chunks/es-NcrWuNe1.mjs +0 -2
  990. package/dist/chunks/es-NcrWuNe1.mjs.map +0 -1
  991. package/dist/chunks/es-RaZerssd.mjs +0 -2
  992. package/dist/chunks/es-RaZerssd.mjs.map +0 -1
  993. package/dist/chunks/es-TIjHCFNF.mjs +0 -2
  994. package/dist/chunks/es-TIjHCFNF.mjs.map +0 -1
  995. package/dist/chunks/es-eZcDkBb-.mjs +0 -2
  996. package/dist/chunks/es-eZcDkBb-.mjs.map +0 -1
  997. package/dist/chunks/es-j_-KW9-4.mjs +0 -2
  998. package/dist/chunks/es-j_-KW9-4.mjs.map +0 -1
  999. package/dist/chunks/es-kGLwn8EB.mjs +0 -2
  1000. package/dist/chunks/es-kGLwn8EB.mjs.map +0 -1
  1001. package/dist/chunks/es-qQRDC0Ge.mjs +0 -2
  1002. package/dist/chunks/es-qQRDC0Ge.mjs.map +0 -1
  1003. package/dist/chunks/fonts-ZXAIMT3b.mjs +0 -2
  1004. package/dist/chunks/fonts-ZXAIMT3b.mjs.map +0 -1
  1005. package/dist/chunks/fr-B27zAq0X.mjs +0 -2
  1006. package/dist/chunks/fr-B27zAq0X.mjs.map +0 -1
  1007. package/dist/chunks/fr-BEd3ZHO4.mjs +0 -2
  1008. package/dist/chunks/fr-BEd3ZHO4.mjs.map +0 -1
  1009. package/dist/chunks/fr-BHXLpdaH.mjs +0 -2
  1010. package/dist/chunks/fr-BHXLpdaH.mjs.map +0 -1
  1011. package/dist/chunks/fr-BKu4eU3V.mjs +0 -2
  1012. package/dist/chunks/fr-BKu4eU3V.mjs.map +0 -1
  1013. package/dist/chunks/fr-BUrUZ5UQ.mjs +0 -2
  1014. package/dist/chunks/fr-BUrUZ5UQ.mjs.map +0 -1
  1015. package/dist/chunks/fr-BlqlUQ3b.mjs +0 -2
  1016. package/dist/chunks/fr-BlqlUQ3b.mjs.map +0 -1
  1017. package/dist/chunks/fr-BruEqDw1.mjs +0 -2
  1018. package/dist/chunks/fr-BruEqDw1.mjs.map +0 -1
  1019. package/dist/chunks/fr-BwuuFBkA.mjs +0 -2
  1020. package/dist/chunks/fr-BwuuFBkA.mjs.map +0 -1
  1021. package/dist/chunks/fr-C2lLh5Ti.mjs +0 -2
  1022. package/dist/chunks/fr-C2lLh5Ti.mjs.map +0 -1
  1023. package/dist/chunks/fr-C7N2_AlK.mjs +0 -2
  1024. package/dist/chunks/fr-C7N2_AlK.mjs.map +0 -1
  1025. package/dist/chunks/fr-COfd6sLW.mjs +0 -2
  1026. package/dist/chunks/fr-COfd6sLW.mjs.map +0 -1
  1027. package/dist/chunks/fr-COx4cSxc.mjs +0 -2
  1028. package/dist/chunks/fr-COx4cSxc.mjs.map +0 -1
  1029. package/dist/chunks/fr-CX37XjPO.mjs +0 -2
  1030. package/dist/chunks/fr-CX37XjPO.mjs.map +0 -1
  1031. package/dist/chunks/fr-CYn6fMiH.mjs +0 -2
  1032. package/dist/chunks/fr-CYn6fMiH.mjs.map +0 -1
  1033. package/dist/chunks/fr-CbsiyDEa.mjs +0 -2
  1034. package/dist/chunks/fr-CbsiyDEa.mjs.map +0 -1
  1035. package/dist/chunks/fr-CcZiELJY.mjs +0 -2
  1036. package/dist/chunks/fr-CcZiELJY.mjs.map +0 -1
  1037. package/dist/chunks/fr-CeHzUPVT.mjs +0 -2
  1038. package/dist/chunks/fr-CeHzUPVT.mjs.map +0 -1
  1039. package/dist/chunks/fr-Cv73J4QZ.mjs +0 -2
  1040. package/dist/chunks/fr-Cv73J4QZ.mjs.map +0 -1
  1041. package/dist/chunks/fr-DDLuorz7.mjs +0 -2
  1042. package/dist/chunks/fr-DDLuorz7.mjs.map +0 -1
  1043. package/dist/chunks/fr-DMA4CAyo.mjs +0 -2
  1044. package/dist/chunks/fr-DMA4CAyo.mjs.map +0 -1
  1045. package/dist/chunks/fr-DNJuGtO1.mjs +0 -2
  1046. package/dist/chunks/fr-DNJuGtO1.mjs.map +0 -1
  1047. package/dist/chunks/fr-DQOE8O6_.mjs +0 -2
  1048. package/dist/chunks/fr-DQOE8O6_.mjs.map +0 -1
  1049. package/dist/chunks/fr-DXjOwGew.mjs +0 -2
  1050. package/dist/chunks/fr-DXjOwGew.mjs.map +0 -1
  1051. package/dist/chunks/fr-DilrEvE_.mjs +0 -2
  1052. package/dist/chunks/fr-DilrEvE_.mjs.map +0 -1
  1053. package/dist/chunks/fr-P7iY3ntE.mjs +0 -2
  1054. package/dist/chunks/fr-P7iY3ntE.mjs.map +0 -1
  1055. package/dist/chunks/fr-ViUNGo_J.mjs +0 -2
  1056. package/dist/chunks/fr-ViUNGo_J.mjs.map +0 -1
  1057. package/dist/chunks/fr-gdIyLcGC.mjs +0 -2
  1058. package/dist/chunks/fr-gdIyLcGC.mjs.map +0 -1
  1059. package/dist/chunks/full-h88Sb2MR.mjs +0 -2
  1060. package/dist/chunks/full-h88Sb2MR.mjs.map +0 -1
  1061. package/dist/chunks/hi-BC82Jxjl.mjs +0 -2
  1062. package/dist/chunks/hi-BC82Jxjl.mjs.map +0 -1
  1063. package/dist/chunks/hi-BCTarnem.mjs +0 -2
  1064. package/dist/chunks/hi-BCTarnem.mjs.map +0 -1
  1065. package/dist/chunks/hi-BMStjhJF.mjs +0 -2
  1066. package/dist/chunks/hi-BMStjhJF.mjs.map +0 -1
  1067. package/dist/chunks/hi-BQ2Fyx7t.mjs +0 -2
  1068. package/dist/chunks/hi-BQ2Fyx7t.mjs.map +0 -1
  1069. package/dist/chunks/hi-Bg4-z2Os.mjs +0 -2
  1070. package/dist/chunks/hi-Bg4-z2Os.mjs.map +0 -1
  1071. package/dist/chunks/hi-BgqI_gOH.mjs +0 -2
  1072. package/dist/chunks/hi-BgqI_gOH.mjs.map +0 -1
  1073. package/dist/chunks/hi-CEPSeUBX.mjs +0 -2
  1074. package/dist/chunks/hi-CEPSeUBX.mjs.map +0 -1
  1075. package/dist/chunks/hi-CRaZj5Uo.mjs +0 -2
  1076. package/dist/chunks/hi-CRaZj5Uo.mjs.map +0 -1
  1077. package/dist/chunks/hi-CT0uK1Me.mjs +0 -2
  1078. package/dist/chunks/hi-CT0uK1Me.mjs.map +0 -1
  1079. package/dist/chunks/hi-CnIpMd8L.mjs +0 -2
  1080. package/dist/chunks/hi-CnIpMd8L.mjs.map +0 -1
  1081. package/dist/chunks/hi-CnSv0JhL.mjs +0 -2
  1082. package/dist/chunks/hi-CnSv0JhL.mjs.map +0 -1
  1083. package/dist/chunks/hi-DLLBZu67.mjs +0 -2
  1084. package/dist/chunks/hi-DLLBZu67.mjs.map +0 -1
  1085. package/dist/chunks/hi-DMg_aiSR.mjs +0 -2
  1086. package/dist/chunks/hi-DMg_aiSR.mjs.map +0 -1
  1087. package/dist/chunks/hi-DWwLzOX5.mjs +0 -2
  1088. package/dist/chunks/hi-DWwLzOX5.mjs.map +0 -1
  1089. package/dist/chunks/hi-D_4Xi4Nv.mjs +0 -2
  1090. package/dist/chunks/hi-D_4Xi4Nv.mjs.map +0 -1
  1091. package/dist/chunks/hi-D_Jtykmj.mjs +0 -2
  1092. package/dist/chunks/hi-D_Jtykmj.mjs.map +0 -1
  1093. package/dist/chunks/hi-Da5pRz8E.mjs +0 -2
  1094. package/dist/chunks/hi-Da5pRz8E.mjs.map +0 -1
  1095. package/dist/chunks/hi-DqL20WmM.mjs +0 -2
  1096. package/dist/chunks/hi-DqL20WmM.mjs.map +0 -1
  1097. package/dist/chunks/hi-DwQopxRg.mjs +0 -2
  1098. package/dist/chunks/hi-DwQopxRg.mjs.map +0 -1
  1099. package/dist/chunks/hi-IuMohSSw.mjs +0 -2
  1100. package/dist/chunks/hi-IuMohSSw.mjs.map +0 -1
  1101. package/dist/chunks/hi-PUX7dDPm.mjs +0 -2
  1102. package/dist/chunks/hi-PUX7dDPm.mjs.map +0 -1
  1103. package/dist/chunks/hi-RmfZAmwT.mjs +0 -2
  1104. package/dist/chunks/hi-RmfZAmwT.mjs.map +0 -1
  1105. package/dist/chunks/hi-UIBrTEVu.mjs +0 -2
  1106. package/dist/chunks/hi-UIBrTEVu.mjs.map +0 -1
  1107. package/dist/chunks/hi-_SjWnfeh.mjs +0 -2
  1108. package/dist/chunks/hi-_SjWnfeh.mjs.map +0 -1
  1109. package/dist/chunks/hi-dV2GZgH_.mjs +0 -2
  1110. package/dist/chunks/hi-dV2GZgH_.mjs.map +0 -1
  1111. package/dist/chunks/hi-ehh5oKz3.mjs +0 -2
  1112. package/dist/chunks/hi-ehh5oKz3.mjs.map +0 -1
  1113. package/dist/chunks/hi-yXnRBFJK.mjs +0 -2
  1114. package/dist/chunks/hi-yXnRBFJK.mjs.map +0 -1
  1115. package/dist/chunks/minimal-a40NeBQ_.mjs +0 -2
  1116. package/dist/chunks/minimal-a40NeBQ_.mjs.map +0 -1
  1117. package/dist/chunks/pt-2a8Oto6x.mjs +0 -2
  1118. package/dist/chunks/pt-2a8Oto6x.mjs.map +0 -1
  1119. package/dist/chunks/pt-ALzIyTiI.mjs +0 -2
  1120. package/dist/chunks/pt-ALzIyTiI.mjs.map +0 -1
  1121. package/dist/chunks/pt-B2hMlTc6.mjs +0 -2
  1122. package/dist/chunks/pt-B2hMlTc6.mjs.map +0 -1
  1123. package/dist/chunks/pt-BCIkSb0w.mjs +0 -2
  1124. package/dist/chunks/pt-BCIkSb0w.mjs.map +0 -1
  1125. package/dist/chunks/pt-BFotmq5x.mjs +0 -2
  1126. package/dist/chunks/pt-BFotmq5x.mjs.map +0 -1
  1127. package/dist/chunks/pt-BM7OScX6.mjs +0 -2
  1128. package/dist/chunks/pt-BM7OScX6.mjs.map +0 -1
  1129. package/dist/chunks/pt-BM7zXWxW.mjs +0 -2
  1130. package/dist/chunks/pt-BM7zXWxW.mjs.map +0 -1
  1131. package/dist/chunks/pt-BchCuzFq.mjs +0 -2
  1132. package/dist/chunks/pt-BchCuzFq.mjs.map +0 -1
  1133. package/dist/chunks/pt-BmcHFWoR.mjs +0 -2
  1134. package/dist/chunks/pt-BmcHFWoR.mjs.map +0 -1
  1135. package/dist/chunks/pt-C53W99RV.mjs +0 -2
  1136. package/dist/chunks/pt-C53W99RV.mjs.map +0 -1
  1137. package/dist/chunks/pt-CORQy8qv.mjs +0 -2
  1138. package/dist/chunks/pt-CORQy8qv.mjs.map +0 -1
  1139. package/dist/chunks/pt-CUPKr943.mjs +0 -2
  1140. package/dist/chunks/pt-CUPKr943.mjs.map +0 -1
  1141. package/dist/chunks/pt-CYkKDsLa.mjs +0 -2
  1142. package/dist/chunks/pt-CYkKDsLa.mjs.map +0 -1
  1143. package/dist/chunks/pt-Cd_SXHKt.mjs +0 -2
  1144. package/dist/chunks/pt-Cd_SXHKt.mjs.map +0 -1
  1145. package/dist/chunks/pt-CjN3Oq-6.mjs +0 -2
  1146. package/dist/chunks/pt-CjN3Oq-6.mjs.map +0 -1
  1147. package/dist/chunks/pt-CrKrgktr.mjs +0 -2
  1148. package/dist/chunks/pt-CrKrgktr.mjs.map +0 -1
  1149. package/dist/chunks/pt-Crmbkj0e.mjs +0 -2
  1150. package/dist/chunks/pt-Crmbkj0e.mjs.map +0 -1
  1151. package/dist/chunks/pt-D19IWOM_.mjs +0 -2
  1152. package/dist/chunks/pt-D19IWOM_.mjs.map +0 -1
  1153. package/dist/chunks/pt-D6zY7l2E.mjs +0 -2
  1154. package/dist/chunks/pt-D6zY7l2E.mjs.map +0 -1
  1155. package/dist/chunks/pt-DA5hufLZ.mjs +0 -2
  1156. package/dist/chunks/pt-DA5hufLZ.mjs.map +0 -1
  1157. package/dist/chunks/pt-DEfBqu-c.mjs +0 -2
  1158. package/dist/chunks/pt-DEfBqu-c.mjs.map +0 -1
  1159. package/dist/chunks/pt-DG3rw6nK.mjs +0 -2
  1160. package/dist/chunks/pt-DG3rw6nK.mjs.map +0 -1
  1161. package/dist/chunks/pt-DRoAHNZi.mjs +0 -2
  1162. package/dist/chunks/pt-DRoAHNZi.mjs.map +0 -1
  1163. package/dist/chunks/pt-Eml9QiUL.mjs +0 -2
  1164. package/dist/chunks/pt-Eml9QiUL.mjs.map +0 -1
  1165. package/dist/chunks/pt-Haa3wVmA.mjs +0 -2
  1166. package/dist/chunks/pt-Haa3wVmA.mjs.map +0 -1
  1167. package/dist/chunks/pt-aj7zOxTg.mjs +0 -2
  1168. package/dist/chunks/pt-aj7zOxTg.mjs.map +0 -1
  1169. package/dist/chunks/pt-l6dTmkQk.mjs +0 -2
  1170. package/dist/chunks/pt-l6dTmkQk.mjs.map +0 -1
  1171. package/dist/chunks/ru--JPEpdcJ.mjs +0 -2
  1172. package/dist/chunks/ru--JPEpdcJ.mjs.map +0 -1
  1173. package/dist/chunks/ru-B76ORyqe.mjs +0 -2
  1174. package/dist/chunks/ru-B76ORyqe.mjs.map +0 -1
  1175. package/dist/chunks/ru-BDQ62WuE.mjs +0 -2
  1176. package/dist/chunks/ru-BDQ62WuE.mjs.map +0 -1
  1177. package/dist/chunks/ru-BQ6W3lwr.mjs +0 -2
  1178. package/dist/chunks/ru-BQ6W3lwr.mjs.map +0 -1
  1179. package/dist/chunks/ru-BQpaitci.mjs +0 -2
  1180. package/dist/chunks/ru-BQpaitci.mjs.map +0 -1
  1181. package/dist/chunks/ru-Bm9VwJLu.mjs +0 -2
  1182. package/dist/chunks/ru-Bm9VwJLu.mjs.map +0 -1
  1183. package/dist/chunks/ru-BnNdik6i.mjs +0 -2
  1184. package/dist/chunks/ru-BnNdik6i.mjs.map +0 -1
  1185. package/dist/chunks/ru-Bo4am8cd.mjs +0 -2
  1186. package/dist/chunks/ru-Bo4am8cd.mjs.map +0 -1
  1187. package/dist/chunks/ru-C1k56xWQ.mjs +0 -2
  1188. package/dist/chunks/ru-C1k56xWQ.mjs.map +0 -1
  1189. package/dist/chunks/ru-C4rnSQlI.mjs +0 -2
  1190. package/dist/chunks/ru-C4rnSQlI.mjs.map +0 -1
  1191. package/dist/chunks/ru-CKM3t1sv.mjs +0 -2
  1192. package/dist/chunks/ru-CKM3t1sv.mjs.map +0 -1
  1193. package/dist/chunks/ru-CO6eCsxU.mjs +0 -2
  1194. package/dist/chunks/ru-CO6eCsxU.mjs.map +0 -1
  1195. package/dist/chunks/ru-CTaYpQ9_.mjs +0 -2
  1196. package/dist/chunks/ru-CTaYpQ9_.mjs.map +0 -1
  1197. package/dist/chunks/ru-CdY8d80t.mjs +0 -2
  1198. package/dist/chunks/ru-CdY8d80t.mjs.map +0 -1
  1199. package/dist/chunks/ru-CsDtaWRd.mjs +0 -2
  1200. package/dist/chunks/ru-CsDtaWRd.mjs.map +0 -1
  1201. package/dist/chunks/ru-Cy_4nn8h.mjs +0 -2
  1202. package/dist/chunks/ru-Cy_4nn8h.mjs.map +0 -1
  1203. package/dist/chunks/ru-DACtjNuJ.mjs +0 -2
  1204. package/dist/chunks/ru-DACtjNuJ.mjs.map +0 -1
  1205. package/dist/chunks/ru-DN6yN_w9.mjs +0 -2
  1206. package/dist/chunks/ru-DN6yN_w9.mjs.map +0 -1
  1207. package/dist/chunks/ru-DThFtd76.mjs +0 -2
  1208. package/dist/chunks/ru-DThFtd76.mjs.map +0 -1
  1209. package/dist/chunks/ru-Dd_P7hP7.mjs +0 -2
  1210. package/dist/chunks/ru-Dd_P7hP7.mjs.map +0 -1
  1211. package/dist/chunks/ru-Dhuxwzwy.mjs +0 -2
  1212. package/dist/chunks/ru-Dhuxwzwy.mjs.map +0 -1
  1213. package/dist/chunks/ru-Dn6UDGIG.mjs +0 -2
  1214. package/dist/chunks/ru-Dn6UDGIG.mjs.map +0 -1
  1215. package/dist/chunks/ru-DojHc5wu.mjs +0 -2
  1216. package/dist/chunks/ru-DojHc5wu.mjs.map +0 -1
  1217. package/dist/chunks/ru-DyWzWBjV.mjs +0 -2
  1218. package/dist/chunks/ru-DyWzWBjV.mjs.map +0 -1
  1219. package/dist/chunks/ru-NBxCkjlP.mjs +0 -2
  1220. package/dist/chunks/ru-NBxCkjlP.mjs.map +0 -1
  1221. package/dist/chunks/ru-_MQaVHam.mjs +0 -2
  1222. package/dist/chunks/ru-_MQaVHam.mjs.map +0 -1
  1223. package/dist/chunks/ru-wv17PPrd.mjs +0 -2
  1224. package/dist/chunks/ru-wv17PPrd.mjs.map +0 -1
  1225. package/dist/chunks/src-ooaZ_Egu.mjs +0 -2
  1226. package/dist/chunks/src-ooaZ_Egu.mjs.map +0 -1
  1227. package/dist/chunks/zh-2-Y3Limy.mjs +0 -2
  1228. package/dist/chunks/zh-2-Y3Limy.mjs.map +0 -1
  1229. package/dist/chunks/zh-B02VPMqX.mjs +0 -2
  1230. package/dist/chunks/zh-B02VPMqX.mjs.map +0 -1
  1231. package/dist/chunks/zh-BYjLBWWN.mjs +0 -2
  1232. package/dist/chunks/zh-BYjLBWWN.mjs.map +0 -1
  1233. package/dist/chunks/zh-Bt2ZdHcS.mjs +0 -2
  1234. package/dist/chunks/zh-Bt2ZdHcS.mjs.map +0 -1
  1235. package/dist/chunks/zh-BuN_C4o-.mjs +0 -2
  1236. package/dist/chunks/zh-BuN_C4o-.mjs.map +0 -1
  1237. package/dist/chunks/zh-CA3BDj0Y.mjs +0 -2
  1238. package/dist/chunks/zh-CA3BDj0Y.mjs.map +0 -1
  1239. package/dist/chunks/zh-CHuGP7RS.mjs +0 -2
  1240. package/dist/chunks/zh-CHuGP7RS.mjs.map +0 -1
  1241. package/dist/chunks/zh-CIPsF5P8.mjs +0 -2
  1242. package/dist/chunks/zh-CIPsF5P8.mjs.map +0 -1
  1243. package/dist/chunks/zh-C_YS18re.mjs +0 -2
  1244. package/dist/chunks/zh-C_YS18re.mjs.map +0 -1
  1245. package/dist/chunks/zh-CfMPFWUg.mjs +0 -2
  1246. package/dist/chunks/zh-CfMPFWUg.mjs.map +0 -1
  1247. package/dist/chunks/zh-CfjCcBIB.mjs +0 -2
  1248. package/dist/chunks/zh-CfjCcBIB.mjs.map +0 -1
  1249. package/dist/chunks/zh-CqQph809.mjs +0 -2
  1250. package/dist/chunks/zh-CqQph809.mjs.map +0 -1
  1251. package/dist/chunks/zh-Cxe42GC5.mjs +0 -2
  1252. package/dist/chunks/zh-Cxe42GC5.mjs.map +0 -1
  1253. package/dist/chunks/zh-CyMU2cTf.mjs +0 -2
  1254. package/dist/chunks/zh-CyMU2cTf.mjs.map +0 -1
  1255. package/dist/chunks/zh-Cynz1sBa.mjs +0 -2
  1256. package/dist/chunks/zh-Cynz1sBa.mjs.map +0 -1
  1257. package/dist/chunks/zh-DRKs6Q0a.mjs +0 -2
  1258. package/dist/chunks/zh-DRKs6Q0a.mjs.map +0 -1
  1259. package/dist/chunks/zh-DTuIJjx6.mjs +0 -2
  1260. package/dist/chunks/zh-DTuIJjx6.mjs.map +0 -1
  1261. package/dist/chunks/zh-DTz9l6mp.mjs +0 -2
  1262. package/dist/chunks/zh-DTz9l6mp.mjs.map +0 -1
  1263. package/dist/chunks/zh-DZwjiJmn.mjs +0 -2
  1264. package/dist/chunks/zh-DZwjiJmn.mjs.map +0 -1
  1265. package/dist/chunks/zh-D_VJDQl4.mjs +0 -2
  1266. package/dist/chunks/zh-D_VJDQl4.mjs.map +0 -1
  1267. package/dist/chunks/zh-Dt20Om7Z.mjs +0 -2
  1268. package/dist/chunks/zh-Dt20Om7Z.mjs.map +0 -1
  1269. package/dist/chunks/zh-SgsZ9f-W.mjs +0 -2
  1270. package/dist/chunks/zh-SgsZ9f-W.mjs.map +0 -1
  1271. package/dist/chunks/zh-XR7Ls7m-.mjs +0 -2
  1272. package/dist/chunks/zh-XR7Ls7m-.mjs.map +0 -1
  1273. package/dist/chunks/zh-aXPI9lKF.mjs +0 -2
  1274. package/dist/chunks/zh-aXPI9lKF.mjs.map +0 -1
  1275. package/dist/chunks/zh-cLXIKkZQ.mjs +0 -2
  1276. package/dist/chunks/zh-cLXIKkZQ.mjs.map +0 -1
  1277. package/dist/chunks/zh-cZUtN871.mjs +0 -2
  1278. package/dist/chunks/zh-cZUtN871.mjs.map +0 -1
  1279. package/dist/chunks/zh-hcdnCGUp.mjs +0 -2
  1280. package/dist/chunks/zh-hcdnCGUp.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarPopupController.d.ts","sourceRoot":"","sources":["../../../src/plugins/toolbar/ToolbarPopupController.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAkC,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG3E,qBAAa,sBAAsB;IAClC,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,iBAAiB,CAAkC;IAC3D,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuB;IACxD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IACvC,OAAO,CAAC,YAAY,CAA6B;gBAErC,gBAAgB,EAAE,MAAM,OAAO,GAAG,IAAI,EAAE,MAAM,GAAE,a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AAO,EAAE,YAAY,GAAG,IAAI;IAI5C,yCAAyC;IACzC,MAAM,IAAI,OAAO;IAIjB,oDAAoD;IACpD,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI;IASlF,6DAA6D;IAC7D,KAAK,IAAI,IAAI;IAiBb,6DAA6D;IAC7D,oBAAoB,IAAI,IAAI;IAM5B,OAAO,IAAI,IAAI;IAMf,OAAO,CAAC,cAAc;IAiCtB,OAAO,CAAC,kBAAkB;IAkC1B,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,kBAAkB;IA+B1B,OAAO,CAAC,qBAAqB;IA2B7B,OAAO,CAAC,iBAAiB;IAwCzB,OAAO,CAAC,wBAAwB;CA4BhC"}
@@ -1 +1 @@
1
- import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/ToolbarPlugin-CSMSgjPM.mjs";export{s as TOOLBAR_LOCALE_EN,i as ToolbarOverflowBehavior,m as ToolbarPlugin,r as ToolbarRegistry,o as ToolbarServiceKey,a as loadToolbarLocale};
1
+ import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/ToolbarPlugin-B5UUc6dY.mjs";export{s as TOOLBAR_LOCALE_EN,i as ToolbarOverflowBehavior,m as ToolbarPlugin,r as ToolbarRegistry,o as ToolbarServiceKey,a as loadToolbarLocale};
@@ -1 +1 @@
1
- {"version":3,"file":"VideoCommands.d.ts","sourceRoot":"","sources":["../../../src/plugins/video/VideoCommands.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAEN,KAAK,UAA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;GAIG;AACH,wBAAgB,cAAc,CAC7B,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,iBAAiB,GACvB,OAAO,CAiBT;AAED,8DAA8D;AAC9D,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,iBAAiB,GACvB,OAAO,CAQT;AAED,iEAAiE;AACjE,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAOzF;AAED,kDAAkD;AAClD,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAQ3D;AAED,sEAAsE;AACtE,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,iBAAiB,GACvB,MAAM,GAAG,IAAI,CAIf;AAED,4FAA4F;AAC5F,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAElE"}
@@ -1 +1 @@
1
- import{a as s,i as a,n as o,o as i,r,s as m,t as n}from"../chunks/VideoPlugin-BUCGIYXr.mjs";export{a as DEFAULT_VIDEO_CONFIG,s as DEFAULT_VIDEO_KEYMAP,i as DEFAULT_VIDEO_PROVIDERS,o as VIDEO_LOCALE_EN,n as VideoPlugin,r as loadVideoLocale,m as parseVideoUrl};
1
+ import{a as s,i as a,n as o,o as i,r,s as m,t as n}from"../chunks/VideoPlugin-mXIDODzC.mjs";export{a as DEFAULT_VIDEO_CONFIG,s as DEFAULT_VIDEO_KEYMAP,i as DEFAULT_VIDEO_PROVIDERS,o as VIDEO_LOCALE_EN,n as VideoPlugin,r as loadVideoLocale,m as parseVideoUrl};
@@ -1 +1 @@
1
- import{t as m}from"../chunks/full-h88Sb2MR.mjs";export{m as createFullPreset};
1
+ import{t as m}from"../chunks/full-CHkwduuY.mjs";export{m as createFullPreset};
@@ -1 +1 @@
1
- import{t as m}from"../chunks/minimal-a40NeBQ_.mjs";export{m as createMinimalPreset};
1
+ import{t as m}from"../chunks/minimal-D5v-raei.mjs";export{m as createMinimalPreset};
package/dist/presets.mjs CHANGED
@@ -1 +1 @@
1
- import{t as m}from"./chunks/minimal-a40NeBQ_.mjs";import{t as s}from"./chunks/full-h88Sb2MR.mjs";export{s as createFullPreset,m as createMinimalPreset};
1
+ import{t as m}from"./chunks/minimal-D5v-raei.mjs";import{t as s}from"./chunks/full-CHkwduuY.mjs";export{s as createFullPreset,m as createMinimalPreset};
@@ -1,4 +1,4 @@
1
- import { ChildNode, InlineNode, Mark, TextNode, TextSegment } from '../model/Document.js';
1
+ import { ChildNode, ContentSegment, InlineNode, Mark, TextNode } from '../model/Document.js';
2
2
  import { MarkTypeName } from '../model/TypeBrands.js';
3
3
  /**
4
4
  * Inserts text into mixed inline content at the given offset.
@@ -6,9 +6,11 @@ import { MarkTypeName } from '../model/TypeBrands.js';
6
6
  */
7
7
  export declare function insertTextIntoInlineContent(nodes: readonly (TextNode | InlineNode)[], offset: number, text: string, marks: readonly Mark[]): (TextNode | InlineNode)[];
8
8
  /**
9
- * Inserts segments into mixed inline content at the given offset.
9
+ * Inserts content segments (text and inline nodes) into mixed inline content
10
+ * at the given offset. Inline segments are restored as atomic nodes, so this
11
+ * round-trips the payload captured by `getBlockContentSegmentsInRange`.
10
12
  */
11
- export declare function insertSegmentsIntoInlineContent(nodes: readonly (TextNode | InlineNode)[], offset: number, segments: readonly TextSegment[]): (TextNode | InlineNode)[];
13
+ export declare function insertSegmentsIntoInlineContent(nodes: readonly (TextNode | InlineNode)[], offset: number, segments: readonly ContentSegment[]): (TextNode | InlineNode)[];
12
14
  /**
13
15
  * Deletes content from mixed inline content in the given range.
14
16
  * Removes InlineNodes that fall within the range.
@@ -1 +1 @@
1
- {"version":3,"file":"InlineContentOps.d.ts","sourceRoot":"","sources":["../../src/state/InlineContentOps.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,KAAK,SAAS,EACd,KA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EAAE,oBAAoB,GAAG,QAAQ,CAQ3F;AAID,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,GAAG,QAAQ,CAO/E;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,GAAG,QAAQ,CAOjF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,GAAG,eAAe,CAOtF;AAID;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,GAAG,kBAAkB,CAOzF;AAUD,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAEzE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAE/E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAEvF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAEnF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAE7F"}
@@ -1,4 +1,4 @@
1
- import { BlockAttrs, BlockNode, InlineNode, Mark, TextSegment } from '../model/Document.js';
1
+ import { BlockAttrs, BlockNode, ContentSegment, InlineNode, Mark } from '../model/Document.js';
2
2
  import { BlockId, NodeTypeName } from '../model/TypeBrands.js';
3
3
  export interface InsertTextStep {
4
4
  readonly type: 'insertText';
@@ -6,7 +6,13 @@ export interface InsertTextStep {
6
6
  readonly offset: number;
7
7
  readonly text: string;
8
8
  readonly marks: readonly Mark[];
9
- readonly segments?: readonly TextSegment[];
9
+ /**
10
+ * Optional per-segment payload (text with marks, or atomic inline nodes).
11
+ * When present it supersedes `text`/`marks` on apply, so it must carry the
12
+ * full content, including any inline nodes, for paste and delete-undo to
13
+ * round-trip faithfully.
14
+ */
15
+ readonly segments?: readonly ContentSegment[];
10
16
  readonly path?: readonly BlockId[];
11
17
  }
12
18
  export interface DeleteTextStep {
@@ -16,7 +22,8 @@ export interface DeleteTextStep {
16
22
  readonly to: number;
17
23
  readonly deletedText: string;
18
24
  readonly deletedMarks: readonly Mark[];
19
- readonly deletedSegments: readonly TextSegment[];
25
+ /** Full deleted content (text and inline nodes) so undo restores both. */
26
+ readonly deletedSegments: readonly ContentSegment[];
20
27
  readonly path?: readonly BlockId[];
21
28
  }
22
29
  export interface SplitBlockStep {
@@ -143,4 +150,14 @@ export interface SetInlineNodeAttrStep {
143
150
  }
144
151
  export type Step = InsertTextStep | DeleteTextStep | SplitBlockStep | MergeBlocksStep | AddMarkStep | RemoveMarkStep | SetStoredMarksStep | SetBlockTypeStep | InsertNodeStep | RemoveNodeStep | SetNodeAttrStep | InsertInlineNodeStep | RemoveInlineNodeStep | SetInlineNodeAttrStep;
145
152
  export type TransactionOrigin = 'input' | 'paste' | 'command' | 'history' | 'api';
153
+ /**
154
+ * Block-space width an {@link InsertTextStep} occupies once applied. When the
155
+ * step carries `segments` (which may include inline nodes, each width 1), the
156
+ * width is the segment span, not the plain-text length, because `applyInsertText`
157
+ * inserts the segments verbatim. The inverse delete range ({@link invertInsertText})
158
+ * and the forward position map ({@link getMapInsertText}) must both use this so
159
+ * undo/redo of a deletion that removed inline content round-trips without
160
+ * corrupting positions.
161
+ */
162
+ export declare function insertTextStepWidth(step: InsertTextStep): number;
146
163
  //# sourceMappingURL=Steps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../src/state/Steps.ts"],"names":[],"m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cAAc,GACd,eAAe,GACf,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,eAAe,GACf,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,CAAC;AAEzB,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;AAElF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAEhE"}
@@ -1,4 +1,4 @@
1
- import { BlockAttrs, BlockNode, Document, InlineNode, Mark, TextSegment } from '../model/Document.js';
1
+ import { BlockAttrs, BlockNode, ContentSegment, Document, InlineNode, Mark } from '../model/Document.js';
2
2
  import { EditorSelection } from '../model/Selection.js';
3
3
  import { BlockId, NodeTypeName } from '../model/TypeBrands.js';
4
4
  import { TransactionOrigin } from './Steps.js';
@@ -15,9 +15,9 @@ export declare class TransactionBuilder {
15
15
  private _readonlyAllowed;
16
16
  constructor(currentSelection: EditorSelection, currentStoredMarks: readonly Mark[] | null, origin?: TransactionOrigin, doc?: Document);
17
17
  /** Adds an insert-text step. Updates workingDoc if available. */
18
- insertText(blockId: BlockId, offset: number, text: string, marks: readonly Mark[], segments?: readonly TextSegment[]): this;
18
+ insertText(blockId: BlockId, offset: number, text: string, marks: readonly Mark[], segments?: readonly ContentSegment[]): this;
19
19
  /** Adds a delete-text step with explicit data. Updates workingDoc if available. */
20
- deleteText(blockId: BlockId, from: number, to: number, deletedText: string, deletedMarks: readonly Mark[], deletedSegments?: readonly TextSegment[]): this;
20
+ deleteText(blockId: BlockId, from: number, to: number, deletedText: string, deletedMarks: readonly Mark[], deletedSegments?: readonly ContentSegment[]): this;
21
21
  /**
22
22
  * Deletes text at the given range, auto-deriving deletedText, deletedMarks, and deletedSegments
23
23
  * from the working document. Requires a document to be provided at construction.
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionBuilder.d.ts","sourceRoot":"","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BAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAkBxD,4DAA4D;IAC5D,iBAAiB,CAChB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,GACxD,IAAI;IAuBP,0DAA0D;IAC1D,eAAe,IAAI,IAAI;IAKvB,kDAAkD;IAClD,YAAY,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAK9C,oDAAoD;IACpD,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI;IAKjE,iDAAiD;IACjD,cAAc,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,IAAI,EAAE,aAAa,EAAE,SAAS,IAAI,EAAE,GAAG,IAAI,GAAG,IAAI;IAM1F,oCAAoC;IACpC,KAAK,IAAI,WAAW;IAgBpB,+DAA+D;IAC/D,OAAO,CAAC,UAAU;IASlB,4DAA4D;IAC5D,OAAO,CAAC,YAAY;IAQpB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAKnB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,UAAU;CAOlB"}
@@ -127,6 +127,8 @@ export interface PluginHarnessOptions {
127
127
  readonly builtinSpecs?: boolean;
128
128
  /** When true, dispatch notifies plugins via `pm.notifyStateChange()`. */
129
129
  readonly notifyStateChange?: boolean;
130
+ /** Sink for `context.announce()` calls (screen-reader announcements). */
131
+ readonly announce?: (text: string) => void;
130
132
  }
131
133
  /**
132
134
  * Streamlined plugin test initialization.
@@ -1 +1 @@
1
- {"version":3,"file":"TestUtils.d.ts","sourceRoot":"","sources":["../../src/test/TestUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAU,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,E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CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACpC,SAAS,EAAE,WAAW,EACtB,GAAG,EAAE,UAAU,CAAC,SAAS,GACvB,kBAAkB,GAAG,IAAI,CAsC3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACxC,SAAS,EAAE,WAAW,EACtB,MAAM,EAAE,UAAU,CAAC,SAAS,GAC1B,kBAAkB,GAAG,IAAI,CAe3B;AAED,mDAAmD;AACnD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,GAAG,IAAI,CAmC3F;AAED,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAiB7E;AAsED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CACjC,SAAS,EAAE,WAAW,EACtB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,GACf,QAAQ,GAAG,IAAI,CA+DjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notectl/core",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "A modern and accessible rich text editor shipped as a single Web Component. Immutable state, transaction-based architecture, and a plugin system that powers every feature.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -409,7 +409,7 @@
409
409
  "rollup-plugin-visualizer": "^7.0.1",
410
410
  "size-limit": "^12.0.1",
411
411
  "terser": "^5.46.1",
412
- "vite": "^8.0.8",
412
+ "vite": "^8.0.16",
413
413
  "vite-plugin-dts": "^4.5.4",
414
414
  "vitest": "^4.1.2"
415
415
  }
@@ -1,2 +0,0 @@
1
- import{s as t}from"./StyleRuntime-Bwde5icB.mjs";import{a as e,i as s,r as i,s as n,t as a}from"./PluginHelpers-C3aCCGfX.mjs";import{t as l}from"./NodeSpecPatching-DToX09gc.mjs";var r={alignStart:"Align Start",alignCenter:"Align Center",alignEnd:"Align End",justify:"Justify",toolbarLabel:"Alignment",toolbarTooltip:"Alignment"},o=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("./ar-Cm1DOK74.mjs"),"./locales/de.ts":()=>import("./de-YygmrxGp.mjs"),"./locales/es.ts":()=>import("./es-DrcsyDvI.mjs"),"./locales/fr.ts":()=>import("./fr-ViUNGo_J.mjs"),"./locales/hi.ts":()=>import("./hi-_SjWnfeh.mjs"),"./locales/pt.ts":()=>import("./pt-DG3rw6nK.mjs"),"./locales/ru.ts":()=>import("./ru-C4rnSQlI.mjs"),"./locales/zh.ts":()=>import("./zh-CIPsF5P8.mjs")});async function g(t){return n(o,t,r)}var m={alignments:["start","center","end","justify"],alignableTypes:["paragraph","heading","title","subtitle","table_cell","image"],defaults:{image:"center"}},c={start:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/></svg>',center:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/></svg>',end:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/></svg>',justify:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zM3 3v2h18V3H3z"/></svg>'},h=class{id="alignment";name="Alignment";priority=90;config;locale;alignableTypes;constructor(t){this.config={...m,...t,defaults:{...m.defaults,...t?.defaults}}}async init(t){this.locale=await e(t,this.config.locale,r,g),this.alignableTypes=new Set(this.config.alignableTypes),this.patchNodeSpecs(t),this.registerCommands(t),this.registerKeymaps(t),this.registerToolbarItem(t),this.registerMiddleware(t)}patchNodeSpecs(t){l(t.getSchemaRegistry(),this.config.alignableTypes,{attrName:"align",getDefault:t=>this.config.defaults[t]??"start",applyToDOM:p})}registerCommands(t){for(const e of this.config.alignments)t.registerCommand(`align${a(e)}`,()=>this.setAlignment(t,e))}registerKeymaps(t){const e={};this.config.alignments.includes("start")&&(e["Mod-Shift-L"]=()=>t.executeCommand("alignStart")),this.config.alignments.includes("center")&&(e["Mod-Shift-E"]=()=>t.executeCommand("alignCenter")),this.config.alignments.includes("end")&&(e["Mod-Shift-R"]=()=>t.executeCommand("alignEnd")),this.config.alignments.includes("justify")&&(e["Mod-Shift-J"]=()=>t.executeCommand("alignJustify")),Object.keys(e).length>0&&t.registerKeymap(e)}registerToolbarItem(t){const e=this.config.alignments.map(t=>({label:this.getAlignmentLabel(t),command:`align${a(t)}`,icon:c[t]}));t.registerToolbarItem({id:"alignment",group:"block",icon:c.start,label:this.locale.toolbarLabel,tooltip:this.locale.toolbarTooltip,command:"alignStart",popupType:"dropdown",popupConfig:{items:e},isActive:t=>this.isNonDefaultAlignment(t),isEnabled:t=>this.isAlignable(t)})}getAlignmentLabel(t){return{start:this.locale.alignStart,center:this.locale.alignCenter,end:this.locale.alignEnd,justify:this.locale.justify}[t]}registerMiddleware(t){t.registerMiddleware((t,e,s)=>{let i=!1;const n=t.steps.map(t=>{if("setBlockType"!==t.type)return t;if(!this.alignableTypes.has(t.nodeType))return t;const e=t.previousAttrs?.align;return e&&"start"!==e?(i=!0,{...t,attrs:{...t.attrs,align:e}}):t});s(i?{...t,steps:n}:t)},{name:"alignment:preserve-align"})}setAlignment(t,e){const n=t.getState(),a=i(n);if(!a||!this.alignableTypes.has(a.type))return!1;const l=s(n);if(!l)return!1;const r=n.getNodePath(l);if(!r)return!1;const o={...a.attrs,align:e},g=n.transaction("command").setNodeAttr(r,o).setSelection(n.selection).build();return t.dispatch(g),!0}isNonDefaultAlignment(t){const e=i(t);if(!e||!this.alignableTypes.has(e.type))return!1;const s=e.attrs?.align,n=this.config.defaults[e.type]??"start";return null!=s&&s!==n}isAlignable(t){const e=i(t);return null!=e&&this.alignableTypes.has(e.type)}};function p(e,s){const i=s.attrs?.align;"string"==typeof i&&"start"!==i&&t(e,"textAlign",i)}export{g as i,h as n,r,c as t};
2
- //# sourceMappingURL=AlignmentPlugin-BLzRjrUl.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AlignmentPlugin-BLzRjrUl.mjs","names":[],"sources":["../../src/plugins/alignment/AlignmentLocale.ts","../../src/plugins/alignment/AlignmentPlugin.ts"],"sourcesContent":["/** Locale interface and default English locale for the AlignmentPlugin. */\n\nimport { type LocaleModuleMap, loadLocaleModule } from '../shared/LocaleLoader.js';\n\nexport interface AlignmentLocale {\n\treadonly alignStart: string;\n\treadonly alignCenter: string;\n\treadonly alignEnd: string;\n\treadonly justify: string;\n\treadonly toolbarLabel: string;\n\treadonly toolbarTooltip: string;\n}\n\n// --- Default English Locale ---\n\nexport const ALIGNMENT_LOCALE_EN: AlignmentLocale = {\n\talignStart: 'Align Start',\n\talignCenter: 'Align Center',\n\talignEnd: 'Align End',\n\tjustify: 'Justify',\n\ttoolbarLabel: 'Alignment',\n\ttoolbarTooltip: 'Alignment',\n};\n\n// --- Lazy Locale Loader ---\n\nconst localeModules: LocaleModuleMap<AlignmentLocale> = import.meta.glob<{\n\tdefault: AlignmentLocale;\n}>('./locales/*.ts', { eager: false });\n\nexport async function loadAlignmentLocale(lang: string): Promise<AlignmentLocale> {\n\treturn loadLocaleModule(localeModules, lang, ALIGNMENT_LOCALE_EN);\n}\n","/**\n * AlignmentPlugin: adds start/center/end/justify alignment as a block\n * attribute on paragraphs, headings, images, and other alignable types.\n * Uses logical values (`start`/`end`) instead of physical (`left`/`right`)\n * for correct behavior with RTL text direction. Patches NodeSpecs to render\n * the `align` attribute via inline `text-align` style and provides toggle\n * commands, keyboard shortcuts, and a toolbar dropdown.\n */\n\nimport type { BlockAlignment } from '../../model/BlockAlignment.js';\nimport type { BlockNode } from '../../model/Document.js';\nimport type { BlockId } from '../../model/TypeBrands.js';\nimport type { EditorState } from '../../state/EditorState.js';\nimport { setStyleProperty } from '../../style/StyleRuntime.js';\nimport type { Plugin, PluginContext } from '../Plugin.js';\nimport { patchNodeSpecAttr } from '../shared/NodeSpecPatching.js';\nimport {\n\tcapitalize,\n\tgetSelectedBlock,\n\tgetSelectedBlockId,\n\tresolveLocale,\n} from '../shared/PluginHelpers.js';\nimport {\n\tALIGNMENT_LOCALE_EN,\n\ttype AlignmentLocale,\n\tloadAlignmentLocale,\n} from './AlignmentLocale.js';\n\n// --- Public Types ---\n\nexport interface AlignmentConfig {\n\t/** Which alignments to expose. Defaults to all four. */\n\treadonly alignments: readonly BlockAlignment[];\n\t/** Block types that support alignment. Defaults to paragraph + heading + title + subtitle + table_cell + image. */\n\treadonly alignableTypes: readonly string[];\n\t/** Per-type default alignment (e.g. `{ image: 'center' }`). Falls back to `'start'`. */\n\treadonly defaults: Readonly<Record<string, BlockAlignment>>;\n\treadonly locale?: AlignmentLocale;\n}\n\n// --- Constants ---\n\nconst DEFAULT_CONFIG: AlignmentConfig = {\n\talignments: ['start', 'center', 'end', 'justify'],\n\talignableTypes: ['paragraph', 'heading', 'title', 'subtitle', 'table_cell', 'image'],\n\tdefaults: { image: 'center' },\n};\n\nexport const ALIGNMENT_ICONS: Readonly<Record<BlockAlignment, string>> = {\n\tstart:\n\t\t'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z\"/></svg>',\n\tcenter:\n\t\t'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z\"/></svg>',\n\tend: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z\"/></svg>',\n\tjustify:\n\t\t'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zM3 3v2h18V3H3z\"/></svg>',\n};\n\n// --- Plugin ---\n\nexport class AlignmentPlugin implements Plugin {\n\treadonly id = 'alignment';\n\treadonly name = 'Alignment';\n\treadonly priority = 90;\n\n\tprivate readonly config: AlignmentConfig;\n\tprivate locale!: AlignmentLocale;\n\tprivate alignableTypes!: ReadonlySet<string>;\n\n\tconstructor(config?: Partial<AlignmentConfig>) {\n\t\tthis.config = {\n\t\t\t...DEFAULT_CONFIG,\n\t\t\t...config,\n\t\t\tdefaults: { ...DEFAULT_CONFIG.defaults, ...config?.defaults },\n\t\t};\n\t}\n\n\tasync init(context: PluginContext): Promise<void> {\n\t\tthis.locale = await resolveLocale(\n\t\t\tcontext,\n\t\t\tthis.config.locale,\n\t\t\tALIGNMENT_LOCALE_EN,\n\t\t\tloadAlignmentLocale,\n\t\t);\n\n\t\tthis.alignableTypes = new Set(this.config.alignableTypes);\n\t\tthis.patchNodeSpecs(context);\n\t\tthis.registerCommands(context);\n\t\tthis.registerKeymaps(context);\n\t\tthis.registerToolbarItem(context);\n\t\tthis.registerMiddleware(context);\n\t}\n\n\t// --- NodeSpec Patching ---\n\n\t/**\n\t * Patches existing NodeSpecs for alignable block types to support the\n\t * `align` attribute and render it as an inline style. Skips types\n\t * that already define an `align` attribute in their spec.\n\t */\n\tprivate patchNodeSpecs(context: PluginContext): void {\n\t\tpatchNodeSpecAttr(context.getSchemaRegistry(), this.config.alignableTypes, {\n\t\t\tattrName: 'align',\n\t\t\tgetDefault: (type) => this.config.defaults[type] ?? 'start',\n\t\t\tapplyToDOM: applyAlignment,\n\t\t});\n\t}\n\n\t// --- Commands ---\n\n\tprivate registerCommands(context: PluginContext): void {\n\t\tfor (const alignment of this.config.alignments) {\n\t\t\tcontext.registerCommand(`align${capitalize(alignment)}`, () => {\n\t\t\t\treturn this.setAlignment(context, alignment);\n\t\t\t});\n\t\t}\n\t}\n\n\t// --- Keymaps ---\n\n\tprivate registerKeymaps(context: PluginContext): void {\n\t\tconst bindings: Record<string, () => boolean> = {};\n\n\t\tif (this.config.alignments.includes('start')) {\n\t\t\tbindings['Mod-Shift-L'] = () => context.executeCommand('alignStart');\n\t\t}\n\t\tif (this.config.alignments.includes('center')) {\n\t\t\tbindings['Mod-Shift-E'] = () => context.executeCommand('alignCenter');\n\t\t}\n\t\tif (this.config.alignments.includes('end')) {\n\t\t\tbindings['Mod-Shift-R'] = () => context.executeCommand('alignEnd');\n\t\t}\n\t\tif (this.config.alignments.includes('justify')) {\n\t\t\tbindings['Mod-Shift-J'] = () => context.executeCommand('alignJustify');\n\t\t}\n\n\t\tif (Object.keys(bindings).length > 0) {\n\t\t\tcontext.registerKeymap(bindings);\n\t\t}\n\t}\n\n\t// --- Toolbar ---\n\n\tprivate registerToolbarItem(context: PluginContext): void {\n\t\tconst dropdownItems = this.config.alignments.map((alignment) => ({\n\t\t\tlabel: this.getAlignmentLabel(alignment),\n\t\t\tcommand: `align${capitalize(alignment)}`,\n\t\t\ticon: ALIGNMENT_ICONS[alignment],\n\t\t}));\n\n\t\tcontext.registerToolbarItem({\n\t\t\tid: 'alignment',\n\t\t\tgroup: 'block',\n\t\t\ticon: ALIGNMENT_ICONS.start,\n\t\t\tlabel: this.locale.toolbarLabel,\n\t\t\ttooltip: this.locale.toolbarTooltip,\n\t\t\tcommand: 'alignStart',\n\t\t\tpopupType: 'dropdown',\n\t\t\tpopupConfig: { items: dropdownItems },\n\t\t\tisActive: (state) => this.isNonDefaultAlignment(state),\n\t\t\tisEnabled: (state) => this.isAlignable(state),\n\t\t});\n\t}\n\n\tprivate getAlignmentLabel(alignment: BlockAlignment): string {\n\t\tconst labels: Record<BlockAlignment, string> = {\n\t\t\tstart: this.locale.alignStart,\n\t\t\tcenter: this.locale.alignCenter,\n\t\t\tend: this.locale.alignEnd,\n\t\t\tjustify: this.locale.justify,\n\t\t};\n\t\treturn labels[alignment];\n\t}\n\n\t// --- Middleware ---\n\n\t/**\n\t * Preserves the `align` attribute when other plugins change the block\n\t * type (e.g. paragraph → heading) via `setBlockType`, which replaces attrs.\n\t */\n\tprivate registerMiddleware(context: PluginContext): void {\n\t\tcontext.registerMiddleware(\n\t\t\t(tr, _state, next) => {\n\t\t\t\tlet patched = false;\n\n\t\t\t\tconst patchedSteps = tr.steps.map((step) => {\n\t\t\t\t\tif (step.type !== 'setBlockType') return step;\n\t\t\t\t\tif (!this.alignableTypes.has(step.nodeType)) return step;\n\n\t\t\t\t\tconst prevAlign = step.previousAttrs?.align;\n\t\t\t\t\tif (!prevAlign || prevAlign === 'start') return step;\n\n\t\t\t\t\t// Carry forward align into new attrs\n\t\t\t\t\tpatched = true;\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...step,\n\t\t\t\t\t\tattrs: { ...step.attrs, align: prevAlign },\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\tnext(patched ? { ...tr, steps: patchedSteps } : tr);\n\t\t\t},\n\t\t\t{ name: 'alignment:preserve-align' },\n\t\t);\n\t}\n\n\t// --- Alignment Logic ---\n\n\tprivate setAlignment(context: PluginContext, alignment: BlockAlignment): boolean {\n\t\tconst state = context.getState();\n\t\tconst block = getSelectedBlock(state);\n\t\tif (!block || !this.alignableTypes.has(block.type)) return false;\n\n\t\tconst id = getSelectedBlockId(state);\n\t\tif (!id) return false;\n\n\t\tconst path = state.getNodePath(id);\n\t\tif (!path) return false;\n\n\t\tconst newAttrs = { ...block.attrs, align: alignment };\n\n\t\tconst tr = state\n\t\t\t.transaction('command')\n\t\t\t.setNodeAttr(path as BlockId[], newAttrs)\n\t\t\t.setSelection(state.selection)\n\t\t\t.build();\n\n\t\tcontext.dispatch(tr);\n\t\treturn true;\n\t}\n\n\tprivate isNonDefaultAlignment(state: EditorState): boolean {\n\t\tconst block = getSelectedBlock(state);\n\t\tif (!block || !this.alignableTypes.has(block.type)) return false;\n\t\tconst align = block.attrs?.align;\n\t\tconst defaultAlign: BlockAlignment = this.config.defaults[block.type] ?? 'start';\n\t\treturn align != null && align !== defaultAlign;\n\t}\n\n\tprivate isAlignable(state: EditorState): boolean {\n\t\tconst block = getSelectedBlock(state);\n\t\treturn block != null && this.alignableTypes.has(block.type);\n\t}\n}\n\n// --- Helpers ---\n\nfunction applyAlignment(el: HTMLElement, node: BlockNode): void {\n\tconst align = node.attrs?.align;\n\tif (typeof align === 'string' && align !== 'start') {\n\t\tsetStyleProperty(el, 'textAlign', align);\n\t}\n}\n"],"mappings":"iLAeA,IAAa,EAAuC,CACnD,WAAY,cACZ,YAAa,eACb,SAAU,YACV,QAAS,UACT,aAAc,YACd,eAAgB,aAKX,iBAAkD,OAAA,OAAA,CAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,uBAIxD,eAAsB,EAAoB,GACzC,OAAO,EAAiB,EAAe,EAAM,GCW9C,IAAM,EAAkC,CACvC,WAAY,CAAC,QAAS,SAAU,MAAO,WACvC,eAAgB,CAAC,YAAa,UAAW,QAAS,WAAY,aAAc,SAC5E,SAAU,CAAE,MAAO,WAGP,EAA4D,CACxE,MACC,6JACD,OACC,4JACD,IAAK,4JACL,QACC,4JAKW,EAAb,MACC,GAAc,YACd,KAAgB,YAChB,SAAoB,GAEpB,OACA,OACA,eAEA,WAAA,CAAY,GACX,KAAK,OAAS,IACV,KACA,EACH,SAAU,IA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AAS,EAAe,EAAiB,GACxC,MAAM,EAAQ,EAAK,OAAO,MACL,iBAAV,GAAgC,UAAV,GAChC,EAAiB,EAAI,YAAa"}
@@ -1,2 +0,0 @@
1
- import{C as n}from"./Document-znhIcvM9.mjs";function t(n,t){return n.type===t}function r(n,t){return n.type===t}function e(t,r){return n(t)&&t.inlineType===r}export{r as n,t as r,e as t};
2
- //# sourceMappingURL=AttrRegistry-CRnXTPha.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttrRegistry-CRnXTPha.mjs","names":[],"sources":["../../src/model/AttrRegistry.ts"],"sourcesContent":["/**\n * Module-augmentable attribute registries for type-safe node/mark attributes.\n *\n * Plugins extend these interfaces via `declare module`:\n * @example\n * declare module '../../model/AttrRegistry.js' {\n * interface NodeAttrRegistry {\n * heading: { level: HeadingLevel; align?: BlockAlignment };\n * }\n * }\n */\n\nimport type { BlockAlignment } from './BlockAlignment.js';\nimport type { BlockNode, InlineNode, Mark } from './Document.js';\nimport { isInlineNode } from './Document.js';\n\n/** Plugins augment this interface to register typed node attributes. */\nexport interface NodeAttrRegistry {\n\tparagraph: { align?: BlockAlignment };\n}\n\n/** Plugins augment this interface to register typed mark attributes. */\nexport interface MarkAttrRegistry {\n\tbold: Record<string, never>;\n\titalic: Record<string, never>;\n\tunderline: Record<string, never>;\n}\n\n/** Resolves typed attributes for known node types, falls back for unknown. */\nexport type NodeAttrsFor<T extends string> = T extends keyof NodeAttrRegistry\n\t? NodeAttrRegistry[T]\n\t: Record<string, string | number | boolean>;\n\n/** Resolves typed attributes for known mark types, falls back for unknown. */\nexport type MarkAttrsFor<T extends string> = T extends keyof MarkAttrRegistry\n\t? MarkAttrRegistry[T]\n\t: Record<string, string | number | boolean>;\n\n/** Narrows a BlockNode to a typed variant with known attributes. */\nexport function isNodeOfType<T extends keyof NodeAttrRegistry>(\n\tnode: BlockNode,\n\ttype: T,\n): node is BlockNode & { readonly type: T; readonly attrs: NodeAttrRegistry[T] } {\n\treturn (node.type as string) === type;\n}\n\n/** Narrows a Mark to a typed variant with known attributes. */\nexport function isMarkOfType<T extends keyof MarkAttrRegistry>(\n\tmark: Mark,\n\ttype: T,\n): mark is Mark & { readonly type: T; readonly attrs: MarkAttrRegistry[T] } {\n\treturn (mark.type as string) === type;\n}\n\n// --- InlineNode Attribute Registry ---\n\n/** Plugins augment this interface to register typed inline node attributes. */\n// biome-ignore lint/suspicious/noEmptyInterface: module augmentation requires interface\nexport interface InlineNodeAttrRegistry {}\n\n/** Resolves typed attributes for known inline node types, falls back for unknown. */\nexport type InlineNodeAttrsFor<T extends string> = T extends keyof InlineNodeAttrRegistry\n\t? InlineNodeAttrRegistry[T]\n\t: Record<string, string | number | boolean>;\n\n/** Narrows an InlineNode to a typed variant with known attributes. */\nexport function isInlineNodeOfType<T extends keyof InlineNodeAttrRegistry>(\n\tnode: InlineNode,\n\tinlineNodeType: T,\n): node is InlineNode & {\n\treadonly inlineType: T;\n\treadonly attrs: InlineNodeAttrRegistry[T];\n} {\n\treturn isInlineNode(node) && (node.inlineType as string) === inlineNodeType;\n}\n"],"mappings":"4CAuCA,SAAgB,EACf,EACA,GAEA,OAAQ,EAAK,OAAoB,EAIlC,SAAgB,EACf,EACA,GAEA,OAAQ,EAAK,OAAoB,EAelC,SAAgB,EACf,EACA,GAKA,OAAO,EAAa,IAAU,EAAK,aAA0B"}
@@ -1,2 +0,0 @@
1
- import{T as t,_ as n,b as o,p as e,v as r}from"./Document-znhIcvM9.mjs";import{d as s,o as c,u as i}from"./Selection-aeiSsvhe.mjs";import{i as a}from"./TypeBrands-BZDKMjR-.mjs";import{n as l}from"./AttrRegistry-CRnXTPha.mjs";import{n as u}from"./RangeIterator-Cl4_k8cx.mjs";function f(t,n){return!1!==t.getMarkSpec?.(n)?.inclusive}function m(t){if(t.storedMarks)return t.storedMarks;const o=t.selection;if(!i(o)||!c(o))return[];const e=t.getBlock(o.anchor.blockId);return e?n(e,o.anchor.offset,n=>f(t.schema,n)):[]}function d(t,n){const o=t.selection;if(!i(o))return null;const e=a(n.type);if(c(o)){if(!t.getBlock(o.anchor.blockId))return null;const r=[...m(t).filter(t=>t.type!==e),n];return t.transaction("command").setStoredMarks(r,t.storedMarks).setSelection(o).build()}const r=s(o,t.getBlockOrder()),l=t.transaction("command");return u(t,r,(o,r,s)=>{const c=t.getBlock(o);if(c){const t=M(c,e,r,s);t&&l.removeMark(o,r,s,t)}l.addMark(o,r,s,n)}),l.setSelection(o),l.build()}function k(t,n){const e=t.selection;if(!i(e))return null;if(c(e)){if(!t.getBlock(e.anchor.blockId))return null;const r=m(t);if(!o(r,n))return null;const s=r.filter(t=>t.type!==n);return t.transaction("command").setStoredMarks(s,t.storedMarks).setSelection(e).build()}const r=s(e,t.getBlockOrder()),a=t.transaction("command");return u(t,r,(o,e,r)=>{const s=t.getBlock(o),c=s?M(s,n,e,r):void 0;a.removeMark(o,e,r,c??{type:n})}),a.setSelection(e),a.build()}function p(t,n,o){const r=t.selection;if(!i(r))return null;let s;if(c(r))s=m(t);else{const n=t.getBlock(r.anchor.blockId);if(!n)return null;s=e(n,r.anchor.offset)}const a=s.find(t=>t.type===n);return a&&l(a,n)?o(a):null}function g(t,n){return null!==p(t,n,()=>!0)}function M(n,o,e,s){const c=r(n);let i=0;for(const r of c){if(!t(r)){i+=1;continue}const n=i+r.text.length;if(n>e&&i<s){const t=r.marks.find(t=>t.type===o);if(t)return t}i=n}}export{f as a,k as i,p as n,m as o,g as r,d as t};
2
- //# sourceMappingURL=AttributedMarkCommands-CxhdUsuE.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttributedMarkCommands-CxhdUsuE.mjs","names":[],"sources":["../../src/commands/CursorMarks.ts","../../src/commands/AttributedMarkCommands.ts"],"sourcesContent":["/**\n * Resolves the marks active at a collapsed cursor for insertion and toolbar\n * state. Centralizes the `storedMarks ?? derived-marks` lookup that several\n * command modules previously duplicated, and makes that derivation honor\n * mark inclusivity (see {@link MarkSpec.inclusive}) so non-inclusive marks\n * such as links do not bleed onto text typed at their right boundary.\n */\n\nimport type { Mark } from '../model/Document.js';\nimport { getCursorMarks } from '../model/Document.js';\nimport type { Schema } from '../model/Schema.js';\nimport { isCollapsed, isTextSelection } from '../model/Selection.js';\nimport type { MarkTypeName } from '../model/TypeBrands.js';\nimport type { EditorState } from '../state/EditorState.js';\n\n/** A mark extends onto adjacent typing unless its spec opts out via `inclusive: false`. */\nexport function isMarkInclusive(schema: Schema, type: MarkTypeName): boolean {\n\treturn schema.getMarkSpec?.(type)?.inclusive !== false;\n}\n\n/**\n * Returns the marks a collapsed cursor carries: stored marks when present,\n * otherwise the inclusivity-aware marks derived from the surrounding content.\n * Returns an empty set for non-text or non-collapsed selections.\n */\nexport function resolveCursorMarks(state: EditorState): readonly Mark[] {\n\tif (state.storedMarks) return state.storedMarks;\n\n\tconst sel = state.selection;\n\tif (!isTextSelection(sel) || !isCollapsed(sel)) return [];\n\n\tconst block = state.getBlock(sel.anchor.blockId);\n\tif (!block) return [];\n\n\treturn getCursorMarks(block, sel.anchor.offset, (type) => isMarkInclusive(state.schema, type));\n}\n","/**\n * Generic helpers for attributed marks (marks with key/value attrs).\n *\n * Unlike boolean marks (`bold`, `italic`) that toggle on/off, attributed\n * marks (`font`, `fontSize`, `textColor`, `highlight`) carry data and use\n * **replace** semantics: applying a new value removes the old one first.\n *\n * These helpers extract the duplicated collapsed-vs-range branching that\n * was previously copy-pasted across ColorMarkOperations, FontSizeOperations,\n * and FontPlugin.\n */\n\nimport { isMarkOfType } from '../model/AttrRegistry.js';\nimport type { MarkAttrRegistry } from '../model/AttrRegistry.js';\nimport type { BlockNode, Mark, TextNode } from '../model/Document.js';\nimport {\n\tgetBlockMarksAtOffset,\n\tgetInlineChildren,\n\thasMark,\n\tisTextNode,\n} from '../model/Document.js';\nimport type { InlineNode } from '../model/Document.js';\nimport { isCollapsed, isTextSelection, selectionRange } from '../model/Selection.js';\nimport { markType } from '../model/TypeBrands.js';\nimport type { MarkTypeName } from '../model/TypeBrands.js';\nimport type { EditorState } from '../state/EditorState.js';\nimport type { Transaction } from '../state/Transaction.js';\nimport { resolveCursorMarks } from './CursorMarks.js';\nimport { forEachBlockInRange } from './RangeIterator.js';\n\n/**\n * Applies an attributed mark to the current selection.\n *\n * - **Collapsed cursor**: replaces stored marks (filters out old mark of the\n * same type, appends the new one).\n * - **Range selection**: removes then re-adds the mark in every block span.\n *\n * Returns the built `Transaction`, or `null` when the selection is\n * unsupported (node-selection / gap-cursor) or the anchor block is missing.\n */\nexport function applyAttributedMark(state: EditorState, mark: Mark): Transaction | null {\n\tconst sel = state.selection;\n\tif (!isTextSelection(sel)) return null;\n\n\tconst typeName: MarkTypeName = markType(mark.type as string);\n\n\tif (isCollapsed(sel)) {\n\t\tconst anchorBlock = state.getBlock(sel.anchor.blockId);\n\t\tif (!anchorBlock) return null;\n\t\tconst currentMarks: readonly Mark[] = resolveCursorMarks(state);\n\t\tconst withoutMark: readonly Mark[] = currentMarks.filter((m) => m.type !== typeName);\n\t\tconst newMarks: readonly Mark[] = [...withoutMark, mark];\n\n\t\treturn state\n\t\t\t.transaction('command')\n\t\t\t.setStoredMarks(newMarks, state.storedMarks)\n\t\t\t.setSelection(sel)\n\t\t\t.build();\n\t}\n\n\tconst range = selectionRange(sel, state.getBlockOrder());\n\tconst builder = state.transaction('command');\n\n\tforEachBlockInRange(state, range, (blockId, from, to) => {\n\t\tconst block: BlockNode | undefined = state.getBlock(blockId);\n\t\tif (block) {\n\t\t\tconst existing: Mark | undefined = findMarkInRange(block, typeName, from, to);\n\t\t\tif (existing) {\n\t\t\t\tbuilder.removeMark(blockId, from, to, existing);\n\t\t\t}\n\t\t}\n\t\tbuilder.addMark(blockId, from, to, mark);\n\t});\n\n\tbuilder.setSelection(sel);\n\treturn builder.build();\n}\n\n/**\n * Removes an attributed mark from the current selection.\n *\n * - **Collapsed cursor**: filters the mark out of stored marks.\n * Returns `null` when the mark was not present.\n * - **Range selection**: removes the mark across all block spans.\n *\n * Returns the built `Transaction`, or `null` when the selection is\n * unsupported or the mark is absent at a collapsed cursor.\n */\nexport function removeAttributedMark(\n\tstate: EditorState,\n\tmarkTypeName: MarkTypeName,\n): Transaction | null {\n\tconst sel = state.selection;\n\tif (!isTextSelection(sel)) return null;\n\n\tif (isCollapsed(sel)) {\n\t\tconst anchorBlock = state.getBlock(sel.anchor.blockId);\n\t\tif (!anchorBlock) return null;\n\t\tconst currentMarks: readonly Mark[] = resolveCursorMarks(state);\n\t\tif (!hasMark(currentMarks, markTypeName)) return null;\n\n\t\tconst newMarks: readonly Mark[] = currentMarks.filter((m) => m.type !== markTypeName);\n\t\treturn state\n\t\t\t.transaction('command')\n\t\t\t.setStoredMarks(newMarks, state.storedMarks)\n\t\t\t.setSelection(sel)\n\t\t\t.build();\n\t}\n\n\tconst range = selectionRange(sel, state.getBlockOrder());\n\tconst builder = state.transaction('command');\n\n\tforEachBlockInRange(state, range, (blockId, from, to) => {\n\t\tconst block: BlockNode | undefined = state.getBlock(blockId);\n\t\tconst existing: Mark | undefined = block\n\t\t\t? findMarkInRange(block, markTypeName, from, to)\n\t\t\t: undefined;\n\t\tbuilder.removeMark(blockId, from, to, existing ?? { type: markTypeName });\n\t});\n\n\tbuilder.setSelection(sel);\n\treturn builder.build();\n}\n\n/**\n * Extracts a typed attribute value from the mark at the current selection.\n *\n * Looks at stored marks (collapsed w/ stored), block marks at cursor offset\n * (collapsed w/o stored), or anchor-block marks (range).\n *\n * @param extractFn — Narrows the found mark and returns the desired value,\n * or `null` when the mark's attrs don't match expectations.\n */\nexport function getMarkAttrAtSelection<K extends keyof MarkAttrRegistry, V>(\n\tstate: EditorState,\n\tmarkTypeName: K,\n\textractFn: (mark: Mark & { readonly type: K; readonly attrs: MarkAttrRegistry[K] }) => V | null,\n): V | null {\n\tconst sel = state.selection;\n\tif (!isTextSelection(sel)) return null;\n\n\t// Collapsed cursor honors stored marks and right-boundary inclusivity; a\n\t// range reads the raw content marks at its anchor.\n\tlet marks: readonly Mark[];\n\tif (isCollapsed(sel)) {\n\t\tmarks = resolveCursorMarks(state);\n\t} else {\n\t\tconst block = state.getBlock(sel.anchor.blockId);\n\t\tif (!block) return null;\n\t\tmarks = getBlockMarksAtOffset(block, sel.anchor.offset);\n\t}\n\n\tconst found = marks.find((m) => (m.type as string) === markTypeName);\n\treturn found && isMarkOfType(found, markTypeName) ? extractFn(found) : null;\n}\n\n/**\n * Returns `true` when the given attributed mark type is present at the\n * current selection (collapsed or range).\n */\nexport function isAttributedMarkActive<K extends keyof MarkAttrRegistry>(\n\tstate: EditorState,\n\tmarkTypeName: K,\n): boolean {\n\treturn getMarkAttrAtSelection(state, markTypeName, () => true as const) !== null;\n}\n\n/**\n * Finds the first mark of the given type within an offset range of a block.\n *\n * Returns the full mark (including attrs) so callers can pass it to\n * `removeMark` for correct undo inversion, or `undefined` when absent.\n */\nfunction findMarkInRange(\n\tblock: BlockNode,\n\ttypeName: MarkTypeName,\n\tfrom: number,\n\tto: number,\n): Mark | undefined {\n\tconst children: readonly (TextNode | InlineNode)[] = getInlineChildren(block);\n\tlet pos = 0;\n\n\tfor (const child of children) {\n\t\tif (!isTextNode(child)) {\n\t\t\tpos += 1;\n\t\t\tcontinue;\n\t\t}\n\t\tconst nodeEnd: number = pos + child.text.length;\n\t\tif (nodeEnd > from && pos < to) {\n\t\t\tconst found: Mark | undefined = child.marks.find((m) => m.type === typeName);\n\t\t\tif (found) return found;\n\t\t}\n\t\tpos = nodeEnd;\n\t}\n\treturn undefined;\n}\n"],"mappings":"kRAgBA,SAAgB,EAAgB,EAAgB,GAC/C,OAAiD,IAA1C,EAAO,cAAc,IAAO,UAQpC,SAAgB,EAAmB,GAClC,GAAI,EAAM,YAAa,OAAO,EAAM,YAEpC,MAAM,EAAM,EAAM,UAClB,IAAK,EAAgB,KAAS,EAAY,GAAM,MAAO,GAEvD,MAAM,EAAQ,EAAM,SAAS,EAAI,OAAO,SACxC,OAAK,EAEE,EAAe,EAAO,EAAI,OAAO,OAAS,GAAS,EAAgB,EAAM,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CAAE,KAAM,MAG3D,EAAQ,aAAa,GACd,EAAQ,QAYhB,SAAgB,EACf,EACA,EACA,GAEA,MAAM,EAAM,EAAM,UAClB,IAAK,EAAgB,GAAM,OAAO,KAIlC,IAAI,EACJ,GAAI,EAAY,GACf,EAAQ,EAAmB,OACrB,CACN,MAAM,EAAQ,EAAM,SAAS,EAAI,OAAO,SACxC,IAAK,EAAO,OAAO,KACnB,EAAQ,EAAsB,EAAO,EAAI,OAAO,QAGjD,MAAM,EAAQ,EAAM,KAAM,GAAO,EAAE,OAAoB,GACvD,OAAO,GAAS,EAAa,EAAO,GAAgB,EAAU,GAAS,KAOxE,SAAgB,EACf,EACA,GAEA,OAA4E,OAArE,EAAuB,EAAO,EAAA,KAAoB,GAS1D,SAAS,EACR,EACA,EACA,EACA,GAEA,MAAM,EAA+C,EAAkB,GACvE,IAAI,EAAM,EAEV,IAAK,MAAM,KAAS,EAAU,CAC7B,IAAK,EAAW,GAAQ,CACvB,GAAO,EACP,SAED,MAAM,EAAkB,EAAM,EAAM,KAAK,OACzC,GAAI,EAAU,GAAQ,EAAM,EAAI,CAC/B,MAAM,EAA0B,EAAM,MAAM,KAAM,GAAM,EAAE,OAAS,GACnE,GAAI,EAAO,OAAO,EAEnB,EAAM"}
@@ -1,2 +0,0 @@
1
- import{o as i,u as t}from"./Selection-aeiSsvhe.mjs";import{i as e}from"./TypeBrands-BZDKMjR-.mjs";import{r as o}from"./HTMLUtils-brwcaufP.mjs";import{i as n,r,t as s}from"./AttributedMarkCommands-CxhdUsuE.mjs";import{a as l,n as a,r as m,s as c}from"./PluginHelpers-C3aCCGfX.mjs";import{t as d}from"./ShortcutFormatting-DZK70CN9.mjs";import{t as g}from"./DirectionIcons-DhRvPVoz.mjs";import{t as p}from"./TextDirectionService-DRfeQnF6.mjs";var u={inlineLTR:"Inline LTR",inlineRTL:"Inline RTL",inlineAuto:"Inline Auto",inlineLabel:"Inline Direction",inlineTooltip:"Inline Direction",announceRemoveBidi:"Inline direction isolation removed"},h=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("./ar-BY8yNlGe.mjs"),"./locales/de.ts":()=>import("./de-asI3UlFG.mjs"),"./locales/es.ts":()=>import("./es-Bm7hoJSI.mjs"),"./locales/fr.ts":()=>import("./fr-BUrUZ5UQ.mjs"),"./locales/hi.ts":()=>import("./hi-CRaZj5Uo.mjs"),"./locales/pt.ts":()=>import("./pt-2a8Oto6x.mjs"),"./locales/ru.ts":()=>import("./ru-Cy_4nn8h.mjs"),"./locales/zh.ts":()=>import("./zh-DTuIJjx6.mjs")});async function B(i){return c(h,i,u)}var v=class{id="bidi-isolation";name="Bidi Isolation";priority=92;config;locale;constructor(i){this.config={...i}}async init(i){this.locale=await l(i,this.config.locale,u,B),this.registerBdiMark(i),this.registerCommands(i),this.registerKeymaps(i),this.registerInlineToolbarItem(i)}registerBdiMark(i){i.registerMarkSpec({type:"bdi",rank:10,attrs:{dir:{default:"auto"}},toDOM(i){const t=document.createElement("bdi"),e=String(i.attrs?.dir??"auto");return t.setAttribute("dir",e),t},toHTMLString:(i,t)=>`<bdi dir="${o(String(i.attrs?.dir??"auto"))}">${t}</bdi>`,parseHTML:[{tag:"bdi",getAttrs:i=>{const t=i.getAttribute("dir");return"ltr"===t||"rtl"===t?{dir:t}:{dir:"auto"}}}],sanitize:{tags:["bdi"],attrs:["dir"]}})}registerCommands(i){i.registerCommand("toggleBidiLTR",()=>{const t=this.applyBdi(i,"ltr");return t&&i.announce(this.locale.inlineLTR),t}),i.registerCommand("toggleBidiRTL",()=>{const t=this.applyBdi(i,"rtl");return t&&i.announce(this.locale.inlineRTL),t}),i.registerCommand("toggleBidiAuto",()=>{const t=this.applyBdi(i,"auto");return t&&i.announce(this.locale.inlineAuto),t}),i.registerCommand("removeBidi",()=>{const t=this.removeBdi(i);return t&&i.announce(this.locale.announceRemoveBidi),t}),i.registerCommand("toggleBidiIsolation",()=>this.toggleBidiIsolation(i))}registerKeymaps(i){i.registerKeymap({"Mod-Shift-B":()=>i.executeCommand("toggleBidiIsolation")})}registerInlineToolbarItem(e){const o=[{label:this.locale.inlineLTR,command:"toggleBidiLTR",icon:g.ltr},{label:this.locale.inlineRTL,command:"toggleBidiRTL",icon:g.rtl},{label:this.locale.inlineAuto,command:"toggleBidiAuto",icon:g.auto},{label:this.locale.announceRemoveBidi,command:"removeBidi"}];e.registerToolbarItem({id:"inline-direction",group:"format",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 4v7h2V4h2v7h2V4h1V2H10a3 3 0 1 0 0 6zm-3.5 9.5L3 17l3.5 3.5V18h3v-2h-3v-2.5zm14 0L17 17l3.5 3.5V18h-3v-2h3v-2.5zM11 16h2v6h-2z"/></svg>',label:this.locale.inlineLabel,tooltip:`${this.locale.inlineTooltip} (${d("Mod-Shift-B")})`,command:"toggleBidiIsolation",popupType:"dropdown",popupConfig:{items:o},isActive:i=>r(i,"bdi"),isEnabled:e=>{const o=e.selection;return t(o)&&!i(o)}})}toggleBidiIsolation(i){const t=i.getState();if(r(t,"bdi")){const t=this.removeBdi(i);return t&&i.announce(this.locale.announceRemoveBidi),t}const e=m(t),o=i.getService(p),n="rtl"===(e&&o?o.getBlockDir(e):"auto")?"ltr":"rtl",s=this.applyBdi(i,n);if(s){const t="ltr"===n?this.locale.inlineLTR:this.locale.inlineRTL;i.announce(t)}return s}applyBdi(i,t){return a(i,s(i.getState(),{type:e("bdi"),attrs:{dir:t}}))}removeBdi(i){return a(i,n(i.getState(),e("bdi")))}};export{u as n,B as r,v as t};
2
- //# sourceMappingURL=BidiIsolationPlugin-DNPXe5ga.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BidiIsolationPlugin-DNPXe5ga.mjs","names":[],"sources":["../../src/plugins/bidi-isolation/BidiIsolationLocale.ts","../../src/plugins/bidi-isolation/BidiIsolationPlugin.ts"],"sourcesContent":["/** Locale interface and default English locale for the BidiIsolationPlugin. */\n\nimport { type LocaleModuleMap, loadLocaleModule } from '../shared/LocaleLoader.js';\n\nexport interface BidiIsolationLocale {\n\treadonly inlineLTR: string;\n\treadonly inlineRTL: string;\n\treadonly inlineAuto: string;\n\treadonly inlineLabel: string;\n\treadonly inlineTooltip: string;\n\treadonly announceRemoveBidi: string;\n}\n\nexport const BIDI_ISOLATION_LOCALE_EN: BidiIsolationLocale = {\n\tinlineLTR: 'Inline LTR',\n\tinlineRTL: 'Inline RTL',\n\tinlineAuto: 'Inline Auto',\n\tinlineLabel: 'Inline Direction',\n\tinlineTooltip: 'Inline Direction',\n\tannounceRemoveBidi: 'Inline direction isolation removed',\n};\n\nconst localeModules: LocaleModuleMap<BidiIsolationLocale> = import.meta.glob<{\n\tdefault: BidiIsolationLocale;\n}>('./locales/*.ts', { eager: false });\n\nexport async function loadBidiIsolationLocale(lang: string): Promise<BidiIsolationLocale> {\n\treturn loadLocaleModule(localeModules, lang, BIDI_ISOLATION_LOCALE_EN);\n}\n","/**\n * Inline bidi isolation plugin: registers a `<bdi>` mark and the inline\n * commands / toolbar / keymap that wrap selected text in a `<bdi>` element\n * with an explicit `dir` attribute.\n *\n * Use alongside {@link TextDirectionPlugin} for the full RTL story:\n * block-level direction lives there, the optional `TextDirectionService`\n * lets this plugin pick the inline direction opposite to the block direction\n * in `toggleBidiIsolation`. Without `TextDirectionPlugin`, this plugin\n * still works — `toggleBidiIsolation` falls back to applying `'rtl'`.\n */\n\nimport {\n\tapplyAttributedMark,\n\tisAttributedMarkActive,\n\tremoveAttributedMark,\n} from '../../commands/AttributedMarkCommands.js';\nimport { escapeHTML } from '../../model/HTMLUtils.js';\nimport { isCollapsed, isTextSelection } from '../../model/Selection.js';\nimport { markType } from '../../model/TypeBrands.js';\nimport type { Plugin, PluginContext } from '../Plugin.js';\nimport { dispatchIfPresent, getSelectedBlock, resolveLocale } from '../shared/PluginHelpers.js';\nimport { formatShortcut } from '../shared/ShortcutFormatting.js';\nimport { DIRECTION_ICONS } from '../text-direction/DirectionIcons.js';\nimport {\n\tTEXT_DIRECTION_SERVICE_KEY,\n\ttype TextDirection,\n\ttype TextDirectionService,\n} from '../text-direction/TextDirectionService.js';\nimport {\n\tBIDI_ISOLATION_LOCALE_EN,\n\ttype BidiIsolationLocale,\n\tloadBidiIsolationLocale,\n} from './BidiIsolationLocale.js';\n\ndeclare module '../../model/AttrRegistry.js' {\n\tinterface MarkAttrRegistry {\n\t\tbdi: { dir: 'ltr' | 'rtl' | 'auto' };\n\t}\n}\n\nexport interface BidiIsolationConfig {\n\treadonly locale?: BidiIsolationLocale;\n}\n\nconst INLINE_BDI_ICON: string =\n\t'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M10 4v7h2V4h2v7h2V4h1V2H10a3 3 0 1 0 0 6zm-3.5 9.5L3 17l3.5 3.5V18h3v-2h-3v-2.5zm14 0L17 17l3.5 3.5V18h-3v-2h3v-2.5zM11 16h2v6h-2z\"/></svg>';\n\nexport class BidiIsolationPlugin implements Plugin {\n\treadonly id = 'bidi-isolation';\n\treadonly name = 'Bidi Isolation';\n\treadonly priority = 92;\n\n\tprivate readonly config: BidiIsolationConfig;\n\tprivate locale!: BidiIsolationLocale;\n\n\tconstructor(config?: Partial<BidiIsolationConfig>) {\n\t\tthis.config = { ...config };\n\t}\n\n\tasync init(context: PluginContext): Promise<void> {\n\t\tthis.locale = await resolveLocale(\n\t\t\tcontext,\n\t\t\tthis.config.locale,\n\t\t\tBIDI_ISOLATION_LOCALE_EN,\n\t\t\tloadBidiIsolationLocale,\n\t\t);\n\n\t\tthis.registerBdiMark(context);\n\t\tthis.registerCommands(context);\n\t\tthis.registerKeymaps(context);\n\t\tthis.registerInlineToolbarItem(context);\n\t}\n\n\tprivate registerBdiMark(context: PluginContext): void {\n\t\tcontext.registerMarkSpec({\n\t\t\ttype: 'bdi',\n\t\t\trank: 10,\n\t\t\tattrs: {\n\t\t\t\tdir: { default: 'auto' },\n\t\t\t},\n\t\t\ttoDOM(mark) {\n\t\t\t\tconst el: HTMLElement = document.createElement('bdi');\n\t\t\t\tconst dir: string = String(mark.attrs?.dir ?? 'auto');\n\t\t\t\tel.setAttribute('dir', dir);\n\t\t\t\treturn el;\n\t\t\t},\n\t\t\ttoHTMLString: (mark, content) => {\n\t\t\t\tconst dir: string = escapeHTML(String(mark.attrs?.dir ?? 'auto'));\n\t\t\t\treturn `<bdi dir=\"${dir}\">${content}</bdi>`;\n\t\t\t},\n\t\t\tparseHTML: [\n\t\t\t\t{\n\t\t\t\t\ttag: 'bdi',\n\t\t\t\t\tgetAttrs: (el) => {\n\t\t\t\t\t\tconst dir: string | null = el.getAttribute('dir');\n\t\t\t\t\t\tif (dir === 'ltr' || dir === 'rtl') return { dir };\n\t\t\t\t\t\treturn { dir: 'auto' };\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\tsanitize: { tags: ['bdi'], attrs: ['dir'] },\n\t\t});\n\t}\n\n\tprivate registerCommands(context: PluginContext): void {\n\t\tcontext.registerCommand('toggleBidiLTR', () => {\n\t\t\tconst result: boolean = this.applyBdi(context, 'ltr');\n\t\t\tif (result) context.announce(this.locale.inlineLTR);\n\t\t\treturn result;\n\t\t});\n\n\t\tcontext.registerCommand('toggleBidiRTL', () => {\n\t\t\tconst result: boolean = this.applyBdi(context, 'rtl');\n\t\t\tif (result) context.announce(this.locale.inlineRTL);\n\t\t\treturn result;\n\t\t});\n\n\t\tcontext.registerCommand('toggleBidiAuto', () => {\n\t\t\tconst result: boolean = this.applyBdi(context, 'auto');\n\t\t\tif (result) context.announce(this.locale.inlineAuto);\n\t\t\treturn result;\n\t\t});\n\n\t\tcontext.registerCommand('removeBidi', () => {\n\t\t\tconst result: boolean = this.removeBdi(context);\n\t\t\tif (result) context.announce(this.locale.announceRemoveBidi);\n\t\t\treturn result;\n\t\t});\n\n\t\tcontext.registerCommand('toggleBidiIsolation', () => {\n\t\t\treturn this.toggleBidiIsolation(context);\n\t\t});\n\t}\n\n\tprivate registerKeymaps(context: PluginContext): void {\n\t\tcontext.registerKeymap({\n\t\t\t'Mod-Shift-B': () => context.executeCommand('toggleBidiIsolation'),\n\t\t});\n\t}\n\n\tprivate registerInlineToolbarItem(context: PluginContext): void {\n\t\tconst inlineItems = [\n\t\t\t{ label: this.locale.inlineLTR, command: 'toggleBidiLTR', icon: DIRECTION_ICONS.ltr },\n\t\t\t{ label: this.locale.inlineRTL, command: 'toggleBidiRTL', icon: DIRECTION_ICONS.rtl },\n\t\t\t{ label: this.locale.inlineAuto, command: 'toggleBidiAuto', icon: DIRECTION_ICONS.auto },\n\t\t\t{ label: this.locale.announceRemoveBidi, command: 'removeBidi' },\n\t\t];\n\n\t\tcontext.registerToolbarItem({\n\t\t\tid: 'inline-direction',\n\t\t\tgroup: 'format',\n\t\t\ticon: INLINE_BDI_ICON,\n\t\t\tlabel: this.locale.inlineLabel,\n\t\t\ttooltip: `${this.locale.inlineTooltip} (${formatShortcut('Mod-Shift-B')})`,\n\t\t\tcommand: 'toggleBidiIsolation',\n\t\t\tpopupType: 'dropdown',\n\t\t\tpopupConfig: { items: inlineItems },\n\t\t\tisActive: (state) => isAttributedMarkActive(state, 'bdi'),\n\t\t\tisEnabled: (state) => {\n\t\t\t\tconst sel = state.selection;\n\t\t\t\treturn isTextSelection(sel) && !isCollapsed(sel);\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * Cycles inline bidi isolation: no-bdi → bdi (opposite of block dir) →\n\t * remove. When the {@link TextDirectionService} is registered, picks the\n\t * direction opposite to the current block; otherwise defaults to `'rtl'`.\n\t */\n\tprivate toggleBidiIsolation(context: PluginContext): boolean {\n\t\tconst state = context.getState();\n\t\tif (isAttributedMarkActive(state, 'bdi')) {\n\t\t\tconst result: boolean = this.removeBdi(context);\n\t\t\tif (result) context.announce(this.locale.announceRemoveBidi);\n\t\t\treturn result;\n\t\t}\n\n\t\tconst block = getSelectedBlock(state);\n\t\tconst directionService: TextDirectionService | undefined = context.getService(\n\t\t\tTEXT_DIRECTION_SERVICE_KEY,\n\t\t);\n\t\tconst blockDir: TextDirection =\n\t\t\tblock && directionService ? directionService.getBlockDir(block) : 'auto';\n\t\tconst bdiDir: TextDirection = blockDir === 'rtl' ? 'ltr' : 'rtl';\n\n\t\tconst result: boolean = this.applyBdi(context, bdiDir);\n\t\tif (result) {\n\t\t\tconst announcement: string = bdiDir === 'ltr' ? this.locale.inlineLTR : this.locale.inlineRTL;\n\t\t\tcontext.announce(announcement);\n\t\t}\n\t\treturn result;\n\t}\n\n\tprivate applyBdi(context: PluginContext, dir: TextDirection): boolean {\n\t\tconst state = context.getState();\n\t\tconst mark = { type: markType('bdi'), attrs: { dir } };\n\t\treturn dispatchIfPresent(context, applyAttributedMark(state, mark));\n\t}\n\n\tprivate removeBdi(context: PluginContext): boolean {\n\t\tconst state = context.getState();\n\t\treturn dispatchIfPresent(context, removeAttributedMark(state, markType('bdi')));\n\t}\n}\n"],"mappings":"wbAaA,IAAa,EAAgD,CAC5D,UAAW,aACX,UAAW,aACX,WAAY,cACZ,YAAa,mBACb,cAAe,mBACf,mBAAoB,sCAGf,iBAAsD,OAAA,OAAA,CAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,qBAAA,kBAAA,IAAA,OAAA,uBAI5D,eAAsB,EAAwB,GAC7C,OAAO,EAAiB,EAAe,EAAM,GCkB9C,IAGa,EAAb,MACC,GAAc,iBACd,KAAgB,iBAChB,SAAoB,GAEpB,OACA,OAEA,WAAA,CAAY,GACX,KAAK,OAAS,IAAK,GAGpB,UAAM,CAAK,GACV,KAAK,aAAe,EACnB,EACA,KAAK,OAAO,OACZ,EACA,GAGD,KAAK,gBAAgB,GACrB,KAAK,iBAAiB,GACtB,KAAK,gBAAgB,GACrB,KAAK,0BAA0B,GAGhC,eAAA,CAAwB,GACvB,EA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AAO,KAAK,OAAO,WAAY,QAAS,iBAAkB,KAAM,EAAgB,MAClF,CAAE,MAAO,KAAK,OAAO,mBAAoB,QAAS,eAGnD,EAAQ,oBAAoB,CAC3B,GAAI,mBACJ,MAAO,SACP,KA1GF,mNA2GE,MAAO,KAAK,OAAO,YACnB,QAAS,GAAG,KAAK,OAAO,kBAAkB,EAAe,kBACzD,QAAS,sBACT,UAAW,WACX,YAAa,CAAE,MAAO,GACtB,SAAW,GAAU,EAAuB,EAAO,OACnD,UAAY,IACX,MAAM,EAAM,EAAM,UAClB,OAAO,EAAgB,KAAS,EAAY,MAU/C,mBAAA,CAA4B,GAC3B,MAAM,EAAQ,EAAQ,WACtB,GAAI,EAAuB,EAAO,OAAQ,CACzC,MAAM,EAAkB,KAAK,UAAU,GAEvC,OADI,GAAQ,EAAQ,SAAS,KAAK,OAAO,oBAClC,EAGR,MAAM,EAAQ,EAAiB,GACzB,EAAqD,EAAQ,WAClE,GAIK,EAAqC,SAD1C,GAAS,EAAmB,EAAiB,YAAY,GAAS,QAChB,MAAQ,MAErD,EAAkB,KAAK,SAAS,EAAS,GAC/C,GAAI,EAAQ,CACX,MAAM,EAAkC,QAAX,EAAmB,KAAK,OAAO,UAAY,KAAK,OAAO,UACpF,EAAQ,SAAS,GAElB,OAAO,EAGR,QAAA,CAAiB,EAAwB,GAGxC,OAAO,EAAkB,EAAS,EAFpB,EAAQ,WACT,CAAE,KAAM,EAAS,OAAQ,MAAO,CAAE,UAIhD,SAAA,CAAkB,GAEjB,OAAO,EAAkB,EAAS,EADpB,EAAQ,WACwC,EAAS"}
@@ -1,2 +0,0 @@
1
- import{S as n,f as t,h as e,l as o,o as r,r as s,s as i}from"./Document-znhIcvM9.mjs";import{c,l as a}from"./Selection-aeiSsvhe.mjs";import{a as f,r as d}from"./TypeBrands-BZDKMjR-.mjs";import{r as u}from"./NodeResolver-BplmzA7c.mjs";import{o as p,r as l,s as m}from"./CommandHelpers-NV80Ff1G.mjs";function h(n,t,e){const o=l(u(n.doc,t)),r=p(m(n,o),t);if(!(r<0))return{parentPath:o,anchorIndex:r,isAnchorEmpty:j(n,t,e)}}function y(t,e,o,r){const s=u(t.doc,o);if(!s)return;const i=t.getBlock(o);return i?{parentPath:s,anchorIndex:i.children.findIndex(t=>n(t)&&t.id===e),isAnchorEmpty:j(t,e,r)}:void 0}function g(n,t){if("table_cell"===n.getBlock(t)?.type)return t;const e=u(n.doc,t);if(e)for(const o of e)if("table_cell"===n.getBlock(o)?.type)return o}function x(n){return a(n)?n.nodeId:c(n)?n.blockId:n.anchor.blockId}function I(n,t,e,o,r,s){const i=g(n,e);if(i){const r=y(n,e,i,s);if(!r)return!1;const c=r.anchorIndex+1;t.insertNode(r.parentPath,c,o),r.isAnchorEmpty&&r.anchorIndex>=0&&t.removeNode(r.parentPath,r.anchorIndex)}else{const i=h(n,e,s);if(!i)return!1;const a=c(r)&&"before"===r.side?0:1;t.insertNode(i.parentPath,i.anchorIndex+a,o),i.isAnchorEmpty&&!c(r)&&t.removeNode(i.parentPath,i.anchorIndex)}return!0}function k(n,e,o,r){const i=function(n,t){const e=u(n.doc,t),o=e&&e.length>0?e[0]:t;return n.doc.children.findIndex(n=>n.id===o)}(n,o);if(-1===i)return;const c=s(f("paragraph"));e.insertNode([],i+1,r).insertNode([],i+2,c);const a=n.doc.children[i];var d;return a&&"paragraph"===(d=a).type&&0===t(d)&&e.removeNode([],i),c}function v(t,e){const r=t.children.map(t=>n(t)?v(t,o()):t);return s(t.type,r,e,t.attrs)}function N(t,e){if(t.id===e)return t;for(const o of t.children){if(!n(o))continue;const t=N(o,e);if(t)return t}}function b(n,t){if(!t)return;const e={};let o=!1;for(const r of Object.keys(t)){const s=t[r],i=n?.[r];"string"==typeof i||"number"==typeof i||"boolean"==typeof i?e[r]=i:void 0!==s.default&&(e[r]=s.default),r in e&&(o=!0)}return o?e:void 0}function j(n,t,o){const r=n.getBlock(t);return!!r&&!(o?.getNodeSpec(r.type))?.isVoid&&""===e(r)}function P(n,t){if(!n.type)return;if(!t)return n;const e=t.getNodeSpec(n.type);if(!e)return;const o=b(n.attrs,e.attrs),r=n.segments?function(n,t){const e=[];for(const o of n){if("inline"===o.kind){const n=t.getInlineNodeSpec(o.inlineType);if(!n)continue;const r=b(o.attrs,n.attrs);e.push({kind:"inline",inlineType:o.inlineType,...r?{attrs:r}:{}});continue}e.push(o)}return e}(n.segments,t):void 0;return{...n,...o?{attrs:o}:{},...r?{segments:r}:n.segments?{segments:[]}:{}}}function B(n){const t=o(),e=function(n,t){return n.segments&&n.segments.length>0?function(n){const t=[];for(const e of n){if("inline"===e.kind){t.push(r(d(e.inlineType),e.attrs));continue}if(0===e.text.length)continue;const n=e.marks.map(n=>({type:n.type,...n.attrs?{attrs:n.attrs}:{}}));t.push(i(e.text,n))}return t}(n.segments):t?[i(t)]:void 0}(n,n.text??""),c=n.attrs?n.attrs:void 0;return s(f(n.type),e,t,c)}export{I as a,y as c,P as d,g as i,h as l,B as n,k as o,N as r,x as s,v as t,b as u};
2
- //# sourceMappingURL=BlockInsertion-C7jFEeYB.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockInsertion-C7jFEeYB.mjs","names":[],"sources":["../../src/commands/BlockInsertion.ts"],"sourcesContent":["/**\n * Block insertion utilities for paste/clipboard operations and block-object\n * commands (table, image, horizontal rule, display formula).\n *\n * Provides context resolution (parent path, anchor index, empty detection)\n * for inserting blocks into the document tree — both at root level and\n * inside table cells — plus the shared primitive that drops a block-level\n * object onto its own line. Also contains pure helpers for block cloning,\n * recursive lookup, and attribute sanitization against a NodeSpec.\n */\n\nimport {\n\ttype BlockAttrs,\n\ttype BlockNode,\n\ttype ChildNode,\n\ttype InlineNode,\n\ttype Mark,\n\ttype TextNode,\n\tcreateBlockNode,\n\tcreateInlineNode,\n\tcreateTextNode,\n\tgenerateBlockId,\n\tgetBlockLength,\n\tgetBlockText,\n\tisBlockNode,\n} from '../model/Document.js';\nimport { findNodePath } from '../model/NodeResolver.js';\nimport type { AttrSpec } from '../model/NodeSpec.js';\nimport type { RichBlockData, RichSegment } from '../model/RichBlockData.js';\nimport type { SchemaRegistry } from '../model/SchemaRegistry.js';\nimport type { EditorSelection } from '../model/Selection.js';\nimport { isGapCursor, isNodeSelection } from '../model/Selection.js';\nimport type { BlockId, NodeTypeName } from '../model/TypeBrands.js';\nimport { inlineType, nodeType } from '../model/TypeBrands.js';\nimport type { EditorState } from '../state/EditorState.js';\nimport type { TransactionBuilder } from '../state/Transaction.js';\nimport { extractParentPath, findSiblingIndex, getSiblings } from './CommandHelpers.js';\n\n/**\n * Resolved insertion target within the document tree.\n * Contains everything needed to insert blocks at a specific anchor position.\n */\nexport interface InsertionContext {\n\treadonly parentPath: readonly BlockId[];\n\treadonly anchorIndex: number;\n\treadonly isAnchorEmpty: boolean;\n}\n\n/**\n * Resolves an insertion context for root-level (or nested-parent-level) insertion.\n * Computes the parent path, anchor index among siblings, and whether the anchor is empty.\n */\nexport function resolveRootInsertionContext(\n\tstate: EditorState,\n\tanchorBlockId: BlockId,\n\tschemaRegistry?: SchemaRegistry,\n): InsertionContext | undefined {\n\tconst path: readonly string[] | undefined = findNodePath(state.doc, anchorBlockId);\n\tconst parentPath: BlockId[] = extractParentPath(path);\n\n\tconst siblings: readonly ChildNode[] = getSiblings(state, parentPath);\n\tconst anchorIndex: number = findSiblingIndex(siblings, anchorBlockId);\n\tif (anchorIndex < 0) return undefined;\n\n\tconst isAnchorEmpty: boolean = isBlockEmpty(state, anchorBlockId, schemaRegistry);\n\treturn { parentPath, anchorIndex, isAnchorEmpty };\n}\n\n/**\n * Resolves an insertion context within a table cell.\n * The parent path points to the cell itself; siblings are the cell's children.\n */\nexport function resolveCellInsertionContext(\n\tstate: EditorState,\n\tanchorBlockId: BlockId,\n\tcellId: BlockId,\n\tschemaRegistry?: SchemaRegistry,\n): InsertionContext | undefined {\n\tconst cellPath: BlockId[] | undefined = findNodePath(state.doc, cellId) as BlockId[] | undefined;\n\tif (!cellPath) return undefined;\n\n\tconst cell: BlockNode | undefined = state.getBlock(cellId);\n\tif (!cell) return undefined;\n\n\tconst anchorIndex: number = cell.children.findIndex(\n\t\t(c) => isBlockNode(c) && c.id === anchorBlockId,\n\t);\n\n\tconst isAnchorEmpty: boolean = isBlockEmpty(state, anchorBlockId, schemaRegistry);\n\treturn { parentPath: cellPath, anchorIndex, isAnchorEmpty };\n}\n\n/**\n * Finds a table_cell ancestor for the given block.\n * Walks the node path upward, returning the first table_cell BlockId found.\n */\nexport function findTableCellAncestor(state: EditorState, blockId: BlockId): BlockId | undefined {\n\tconst block: BlockNode | undefined = state.getBlock(blockId);\n\tif (block?.type === 'table_cell') return blockId;\n\n\tconst path: BlockId[] | undefined = findNodePath(state.doc, blockId) as BlockId[] | undefined;\n\tif (!path) return undefined;\n\n\tfor (const id of path) {\n\t\tconst node: BlockNode | undefined = state.getBlock(id as BlockId);\n\t\tif (node?.type === 'table_cell') return id as BlockId;\n\t}\n\treturn undefined;\n}\n\n/**\n * Resolves the anchor block ID from the current editor selection.\n * Handles text selection, node selection, and gap cursor uniformly.\n */\nexport function resolveAnchorBlockId(selection: EditorSelection): BlockId {\n\tif (isNodeSelection(selection)) return selection.nodeId;\n\tif (isGapCursor(selection)) return selection.blockId;\n\treturn selection.anchor.blockId;\n}\n\n/**\n * Inserts a block node after the anchor position, resolving cell vs root context.\n * Removes the anchor block if it is empty (matching standard paste behavior).\n * Returns true on success, false if context resolution fails.\n */\nexport function insertBlockAfterAnchor(\n\tstate: EditorState,\n\tbuilder: TransactionBuilder,\n\tanchorBlockId: BlockId,\n\tblock: BlockNode,\n\tselection: EditorSelection,\n\tschemaRegistry?: SchemaRegistry,\n): boolean {\n\tconst cellId: BlockId | undefined = findTableCellAncestor(state, anchorBlockId);\n\n\tif (cellId) {\n\t\tconst ctx: InsertionContext | undefined = resolveCellInsertionContext(\n\t\t\tstate,\n\t\t\tanchorBlockId,\n\t\t\tcellId,\n\t\t\tschemaRegistry,\n\t\t);\n\t\tif (!ctx) return false;\n\n\t\tconst insertIndex: number = ctx.anchorIndex + 1;\n\t\tbuilder.insertNode(ctx.parentPath, insertIndex, block);\n\n\t\tif (ctx.isAnchorEmpty && ctx.anchorIndex >= 0) {\n\t\t\tbuilder.removeNode(ctx.parentPath, ctx.anchorIndex);\n\t\t}\n\t} else {\n\t\tconst ctx: InsertionContext | undefined = resolveRootInsertionContext(\n\t\t\tstate,\n\t\t\tanchorBlockId,\n\t\t\tschemaRegistry,\n\t\t);\n\t\tif (!ctx) return false;\n\n\t\tconst insertOffset: number = isGapCursor(selection) && selection.side === 'before' ? 0 : 1;\n\t\tbuilder.insertNode(ctx.parentPath, ctx.anchorIndex + insertOffset, block);\n\n\t\tif (ctx.isAnchorEmpty && !isGapCursor(selection)) {\n\t\t\tbuilder.removeNode(ctx.parentPath, ctx.anchorIndex);\n\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Document-root index of the top-level block that contains `blockId` — the block\n * itself when it already lives at the document root. Returns -1 when the block is\n * not part of the document. Block-level objects always live at the root, so an\n * insertion triggered from inside a container (e.g. a table cell) escapes to the\n * top level via this lookup.\n */\nexport function topLevelBlockIndex(state: EditorState, blockId: BlockId): number {\n\tconst path: readonly string[] | undefined = findNodePath(state.doc, blockId);\n\tconst topId: BlockId = path && path.length > 0 ? (path[0] as BlockId) : blockId;\n\treturn state.doc.children.findIndex((b) => b.id === topId);\n}\n\n/**\n * True when the block is a blank-line paragraph. Inline-aware: a paragraph that\n * holds only an atomic inline node (e.g. an inline formula) has width > 0 and is\n * therefore never treated as blank, so it is never silently removed.\n */\nfunction isEmptyParagraph(block: BlockNode): boolean {\n\treturn block.type === 'paragraph' && getBlockLength(block) === 0;\n}\n\n/**\n * Places a block-level object on its own line at the document root: the object\n * followed by a trailing empty paragraph, so a void/atomic object always has an\n * editable line after it. The object is inserted after the top-level ancestor of\n * the current selection; when that ancestor is a blank-line paragraph it is\n * consumed, so the object is never preceded by a stray empty paragraph (#152).\n *\n * Only an empty *paragraph* is consumed — an empty heading or list item is\n * deliberate structure — and the emptiness test is inline-aware (see\n * {@link isEmptyParagraph}). This is intentionally stricter than\n * {@link insertBlockAfterAnchor}, which the paste pipeline uses with a text-only\n * emptiness notion.\n *\n * Selection is the caller's concern, since objects differ (a cursor inside a new\n * table vs. a node selection on an image or display formula). Returns the\n * appended trailing paragraph, or undefined when the selection has no resolvable\n * anchor.\n */\nexport function insertBlockObjectOnOwnLine(\n\tstate: EditorState,\n\tbuilder: TransactionBuilder,\n\tanchorBlockId: BlockId,\n\tobject: BlockNode,\n): BlockNode | undefined {\n\tconst topIndex: number = topLevelBlockIndex(state, anchorBlockId);\n\tif (topIndex === -1) return undefined;\n\n\tconst trailing: BlockNode = createBlockNode(nodeType('paragraph'));\n\tbuilder.insertNode([], topIndex + 1, object).insertNode([], topIndex + 2, trailing);\n\n\tconst anchor: BlockNode | undefined = state.doc.children[topIndex];\n\tif (anchor && isEmptyParagraph(anchor)) {\n\t\tbuilder.removeNode([], topIndex);\n\t}\n\n\treturn trailing;\n}\n\n/** Recursively clones a block tree, assigning new IDs to all block nodes. */\nexport function cloneBlockWithNewIds(block: BlockNode, newId: BlockId): BlockNode {\n\tconst children = block.children.map((child) => {\n\t\tif (isBlockNode(child)) {\n\t\t\treturn cloneBlockWithNewIds(child, generateBlockId());\n\t\t}\n\t\treturn child;\n\t});\n\treturn createBlockNode(block.type, children, newId, block.attrs);\n}\n\n/** Recursively searches a block tree for a block with the given ID (DFS). */\nexport function findBlockRecursive(block: BlockNode, blockId: BlockId): BlockNode | undefined {\n\tif (block.id === blockId) return block;\n\tfor (const child of block.children) {\n\t\tif (!isBlockNode(child)) continue;\n\t\tconst found: BlockNode | undefined = findBlockRecursive(child, blockId);\n\t\tif (found) return found;\n\t}\n\treturn undefined;\n}\n\n/**\n * Validates incoming attributes against the declared AttrSpec.\n * Only keys declared in the spec are kept; non-primitive values fall back to defaults.\n */\nexport function sanitizeAttrs(\n\tincoming: Record<string, unknown> | undefined,\n\tspecAttrs: Readonly<Record<string, AttrSpec>> | undefined,\n): Record<string, string | number | boolean> | undefined {\n\tif (!specAttrs) return undefined;\n\n\tconst result: Record<string, string | number | boolean> = {};\n\tlet hasKeys = false;\n\n\tfor (const key of Object.keys(specAttrs)) {\n\t\tconst spec: AttrSpec = specAttrs[key] as AttrSpec;\n\t\tconst raw: unknown = incoming?.[key];\n\n\t\tif (typeof raw === 'string' || typeof raw === 'number' || typeof raw === 'boolean') {\n\t\t\tresult[key] = raw;\n\t\t} else if (spec.default !== undefined) {\n\t\t\tresult[key] = spec.default;\n\t\t}\n\t\tif (key in result) hasKeys = true;\n\t}\n\n\treturn hasKeys ? result : undefined;\n}\n\n/** Checks whether a block is empty (has no text and is not a void block). */\nfunction isBlockEmpty(\n\tstate: EditorState,\n\tblockId: BlockId,\n\tschemaRegistry?: SchemaRegistry,\n): boolean {\n\tconst block: BlockNode | undefined = state.getBlock(blockId);\n\tif (!block) return false;\n\n\tconst spec = schemaRegistry?.getNodeSpec(block.type);\n\treturn !spec?.isVoid && getBlockText(block) === '';\n}\n\n// --- Rich block creation ---\n\n/**\n * Validates a rich block against the schema registry.\n * Returns undefined for blocks with unknown types; sanitizes attributes\n * against the declared spec.\n */\nexport function validateRichBlockData(\n\traw: RichBlockData,\n\tschemaRegistry?: SchemaRegistry,\n): RichBlockData | undefined {\n\tif (!raw.type) return undefined;\n\tif (!schemaRegistry) return raw;\n\n\tconst spec = schemaRegistry.getNodeSpec(raw.type);\n\tif (!spec) return undefined;\n\n\tconst attrs: Record<string, string | number | boolean> | undefined = sanitizeAttrs(\n\t\traw.attrs,\n\t\tspec.attrs,\n\t);\n\tconst segments: RichSegment[] | undefined = raw.segments\n\t\t? sanitizeRichSegments(raw.segments, schemaRegistry)\n\t\t: undefined;\n\treturn {\n\t\t...raw,\n\t\t...(attrs ? { attrs } : {}),\n\t\t...(segments ? { segments } : raw.segments ? { segments: [] } : {}),\n\t};\n}\n\n/**\n * Creates a BlockNode from validated rich block data.\n * Converts segments or plain text into inline children.\n */\nexport function createBlockFromRichData(blockData: RichBlockData): BlockNode {\n\tconst newId: BlockId = generateBlockId();\n\tconst text: string = blockData.text ?? '';\n\tconst children: readonly (TextNode | InlineNode)[] | undefined = createChildrenFromRichBlock(\n\t\tblockData,\n\t\ttext,\n\t);\n\tconst attrs: BlockAttrs | undefined = blockData.attrs\n\t\t? (blockData.attrs as BlockAttrs)\n\t\t: undefined;\n\n\treturn createBlockNode(nodeType(blockData.type) as NodeTypeName, children, newId, attrs);\n}\n\n/**\n * Creates inline children from rich block data.\n * Uses mark-preserving segments when available, falls back to plain text.\n */\nfunction createChildrenFromRichBlock(\n\tblockData: RichBlockData,\n\ttext: string,\n): readonly (TextNode | InlineNode)[] | undefined {\n\tif (blockData.segments && blockData.segments.length > 0) {\n\t\treturn createChildrenFromSegments(blockData.segments);\n\t}\n\treturn text ? [createTextNode(text)] : undefined;\n}\n\n/** Converts rich segments into TextNode children with marks. */\nfunction createChildrenFromSegments(\n\tsegments: readonly RichSegment[],\n): readonly (TextNode | InlineNode)[] {\n\tconst children: (TextNode | InlineNode)[] = [];\n\tfor (const seg of segments) {\n\t\tif (seg.kind === 'inline') {\n\t\t\tchildren.push(\n\t\t\t\tcreateInlineNode(\n\t\t\t\t\tinlineType(seg.inlineType),\n\t\t\t\t\tseg.attrs as Readonly<Record<string, string | number | boolean>> | undefined,\n\t\t\t\t),\n\t\t\t);\n\t\t\tcontinue;\n\t\t}\n\t\tif (seg.text.length === 0) continue;\n\t\tconst marks: readonly Mark[] = seg.marks.map((m) => ({\n\t\t\ttype: m.type as Mark['type'],\n\t\t\t...(m.attrs ? { attrs: m.attrs as Mark['attrs'] } : {}),\n\t\t}));\n\t\tchildren.push(createTextNode(seg.text, marks));\n\t}\n\treturn children;\n}\n\nfunction sanitizeRichSegments(\n\tsegments: readonly RichSegment[],\n\tschemaRegistry: SchemaRegistry,\n): RichSegment[] {\n\tconst sanitized: RichSegment[] = [];\n\tfor (const segment of segments) {\n\t\tif (segment.kind === 'inline') {\n\t\t\tconst spec = schemaRegistry.getInlineNodeSpec(segment.inlineType);\n\t\t\tif (!spec) continue;\n\t\t\tconst attrs = sanitizeAttrs(segment.attrs, spec.attrs);\n\t\t\tsanitized.push({\n\t\t\t\tkind: 'inline',\n\t\t\t\tinlineType: segment.inlineType,\n\t\t\t\t...(attrs ? { attrs } : {}),\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tsanitized.push(segment);\n\t}\n\treturn sanitized;\n}\n"],"mappings":"0SAoDA,SAAgB,EACf,EACA,EACA,GAGA,MAAM,EAAwB,EADc,EAAa,EAAM,IAAK,IAI9D,EAAsB,EADW,EAAY,EAAO,GACH,GACvD,KAAI,EAAc,GAGlB,MAAO,CAAE,aAAY,cAAa,cADH,EAAa,EAAO,EAAe,IAQnE,SAAgB,EACf,EACA,EACA,EACA,GAEA,MAAM,EAAkC,EAAa,EAAM,IAAK,GAChE,IAAK,EAAU,OAEf,MAAM,EAA8B,EAAM,SAAS,GACnD,OAAK,EAOE,CAAE,WAAY,EAAU,YALH,EAAK,SAAS,UACxC,GAAM,EAAY,IAAM,EAAE,KAAO,GAIS,cADb,EAAa,EAAO,EAAe,SANlE,EAcD,SAAgB,EAAsB,EAAoB,GAEzD,GAAoB,eADiB,EAAM,SAAS,IACzC,KAAuB,OAAO,EAEzC,MAAM,EAA8B,EAAa,EAAM,IAAK,GAC5D,GAAK,EAEL,IAAK,MAAM,KAAM,EAEhB,GAAmB,eADiB,EAAM,SAAS,IACzC,KAAuB,OAAO,EAS1C,SAAgB,EAAqB,GACpC,OAAI,EAAgB,GAAmB,EAAU,OAC7C,EAAY,GAAmB,EAAU,QACtC,EAAU,OAAO,QAQzB,SAAgB,EACf,EACA,EACA,EACA,EACA,EACA,GAEA,MAAM,EAA8B,EAAsB,EAAO,GAEjE,GAAI,EAAQ,CACX,MAAM,EAAoC,EACzC,EACA,EACA,EACA,GAED,IAAK,EAAK,OAAO,EAEjB,MAAM,EAAsB,EAAI,YAAc,EAC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O,EAAU,CAC3B,GAAiB,WAAb,EAAI,KAAmB,CAC1B,EAAS,KACR,EACC,EAAW,EAAI,YACf,EAAI,QAGN,SAED,GAAwB,IAApB,EAAI,KAAK,OAAc,SAC3B,MAAM,EAAyB,EAAI,MAAM,IAAK,IAAA,CAC7C,KAAM,EAAE,QACJ,EAAE,MAAQ,CAAE,MAAO,EAAE,OAA2B,CAAA,KAErD,EAAS,KAAK,EAAe,EAAI,KAAM,IAExC,OAAO,EA3BC,CAA2B,EAAU,UAEtC,EAAO,CAAC,EAAe,SAAS,EAtB0B,CAChE,EAFoB,EAAU,MAAQ,IAKjC,EAAgC,EAAU,MAC5C,EAAU,WACX,EAEH,OAAO,EAAgB,EAAS,EAAU,MAAuB,EAAU,EAAO"}
@@ -1,2 +0,0 @@
1
- var e=class{_entries=/* @__PURE__ */new Map;registerBlockTypePickerEntry(e){if(this._entries.has(e.id))throw new Error(`BlockTypePickerEntry with id "${e.id}" is already registered.`);this._entries.set(e.id,e)}getBlockTypePickerEntries(){return[...this._entries.values()].sort((e,r)=>e.priority-r.priority)}removeBlockTypePickerEntry(e){this._entries.delete(e)}clear(){this._entries.clear()}};export{e as t};
2
- //# sourceMappingURL=BlockTypePickerRegistry-U4uY7-lN.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockTypePickerRegistry-U4uY7-lN.mjs","names":[],"sources":["../../src/plugins/heading/BlockTypePickerRegistry.ts"],"sourcesContent":["/**\n * BlockTypePickerRegistry: manages plugin-registered block type picker entries\n * displayed in the heading/block type dropdown, sorted by priority.\n */\n\nimport type { BlockTypePickerEntry } from './BlockTypePickerEntry.js';\n\nexport class BlockTypePickerRegistry {\n\tprivate readonly _entries = new Map<string, BlockTypePickerEntry>();\n\n\tregisterBlockTypePickerEntry(entry: BlockTypePickerEntry): void {\n\t\tif (this._entries.has(entry.id)) {\n\t\t\tthrow new Error(`BlockTypePickerEntry with id \"${entry.id}\" is already registered.`);\n\t\t}\n\t\tthis._entries.set(entry.id, entry);\n\t}\n\n\tgetBlockTypePickerEntries(): readonly BlockTypePickerEntry[] {\n\t\treturn [...this._entries.values()].sort((a, b) => a.priority - b.priority);\n\t}\n\n\tremoveBlockTypePickerEntry(id: string): void {\n\t\tthis._entries.delete(id);\n\t}\n\n\tclear(): void {\n\t\tthis._entries.clear();\n\t}\n}\n"],"mappings":"AAOA,IAAa,EAAb,MACC,wBAA4B,IAAI,IAEhC,4BAAA,CAA6B,GAC5B,GAAI,KAAK,SAAS,IAAI,EAAM,IAC3B,MAAM,IAAI,MAAM,iCAAiC,EAAM,8BAExD,KAAK,SAAS,IAAI,EAAM,GAAI,GAG7B,yBAAA,GACC,MAAO,IAAI,KAAK,SAAS,UAAU,KAAA,CAAM,EAAG,IAAM,EAAE,SAAW,EAAE,UAGlE,0BAAA,CAA2B,GAC1B,KAAK,SAAS,OAAO,GAGtB,KAAA,GACC,KAAK,SAAS"}
@@ -1,2 +0,0 @@
1
- import{a as t,f as e,l as o,r as n,u as r}from"./Document-znhIcvM9.mjs";import{d as i,o as c,t as s,u as l}from"./Selection-aeiSsvhe.mjs";import{a}from"./TypeBrands-BZDKMjR-.mjs";import{n as u}from"./DomUtils-RKbAVBQz.mjs";import{a as d,c as h,t as m}from"./NodeResolver-BplmzA7c.mjs";import{a as p,s as g}from"./PluginHelpers-C3aCCGfX.mjs";import{t as f}from"./ShortcutFormatting-DZK70CN9.mjs";function b(t,e){const o=t.getNodePath(e)?.[0];return o?t.doc.children.findIndex(t=>t.id===o):-1}function q(t,e,r,c){const s=i(r,t.getBlockOrder()),l=b(t,s.from.blockId),a=b(t,s.to.blockId);if(l<0||a<0)return null;const u=Math.min(l,a),d=Math.max(l,a),h=t.doc.children.slice(u,d+1),m=c??(()=>!0),p=[];let g=[],f=!1;const q=()=>{0!==g.length&&(p.push(n(e,g,o())),f=!0,g=[])};for(const o of h)m(o)?g.push(o):(q(),p.push(o));if(q(),!f)return null;const k=t.transaction("command");for(let o=d;o>=u;o--)k.removeNode([],o);return p.forEach((t,e)=>{k.insertNode([],u+e,t)}),k.setSelection(r),k.build()}function k(t,e){const o=t.getState();if(!l(o.selection))return!1;const n=o.selection;if(!c(n))return!1;const i=n.anchor.blockId,s=o.getParent(i);if(!s||"blockquote"!==s.type)return!1;const a=o.getBlock(i);if(!a)return!1;const u=o.getNodePath(s.id);if(!u)return!1;const d=h(o.doc,u);if(!d)return!1;const m=r(s),p=m.findIndex(t=>t.id===i);return!(p<0)&&e({state:o,quotePath:u,quoteParentPath:u.slice(0,-1),quoteIndex:d.index,child:a,childIndex:p,childCount:m.length,offset:n.anchor.offset})}var I={label:"Blockquote",tooltip:t=>`Blockquote (${t})`},x=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("./ar-CKPpdJ7F.mjs"),"./locales/de.ts":()=>import("./de-Dc7GRbWc.mjs"),"./locales/es.ts":()=>import("./es-Cgslt0Hp.mjs"),"./locales/fr.ts":()=>import("./fr-COfd6sLW.mjs"),"./locales/hi.ts":()=>import("./hi-DwQopxRg.mjs"),"./locales/pt.ts":()=>import("./pt-DA5hufLZ.mjs"),"./locales/ru.ts":()=>import("./ru-BQ6W3lwr.mjs"),"./locales/zh.ts":()=>import("./zh-Dt20Om7Z.mjs")});async function v(t){return g(x,t,I)}var N={},P=class{id="blockquote";name="Blockquote";priority=35;config;locale;constructor(t){this.config={...N,...t}}async init(t){this.locale=await p(t,this.config.locale,I,v),t.registerStyleSheet("\n.notectl-content blockquote {\n\tmargin: 0;\n\tpadding: 2px 0;\n\tpadding-inline-start: 16px;\n\tborder-inline-start: 3px solid var(--notectl-blockquote-border, var(--notectl-border));\n\tbackground: var(--notectl-blockquote-bg, transparent);\n\tcolor: var(--notectl-blockquote-fg, inherit);\n\tmin-height: 1.6em;\n}\n"),this.registerNodeSpec(t),this.registerCommands(t),this.registerKeymap(t),this.registerInputRule(t),this.registerToolbarItem(t)}registerNodeSpec(t){t.registerNodeSpec({type:"blockquote",group:"block",content:{allow:["paragraph","heading","list_item","blockquote","horizontal_rule","code_block"],min:1},toDOM(t){const e=u("blockquote",t.id);return e.setAttribute("part","blockquote"),e},toHTML:(t,e)=>`<blockquote>${e||"<br>"}</blockquote>`,parseHTML:[{tag:"blockquote"}],sanitize:{tags:["blockquote"]}})}registerCommands(t){t.registerCommand("toggleBlockquote",()=>this.toggleBlockquote(t)),t.registerCommand("setBlockquote",()=>this.wrapInBlockquote(t))}registerKeymap(o){o.registerKeymap({"Mod-Shift->":()=>o.executeCommand("toggleBlockquote")}),function(o){o.registerKeymap({Enter:()=>function(o){return k(o,n=>{if("list_item"===n.child.type)return!1;if(n.childIndex!==n.childCount-1||e(n.child)>0)return!1;const r=t(),i=n.state.transaction("input");return 1===n.childCount?(i.removeNode(n.quoteParentPath,n.quoteIndex),i.insertNode(n.quoteParentPath,n.quoteIndex,r)):(i.removeNode(n.quotePath,n.childIndex),i.insertNode(n.quoteParentPath,n.quoteIndex+1,r)),i.setSelection(s(r.id,0)),o.dispatch(i.build()),!0})}(o),Backspace:()=>function(t){return k(t,e=>{if(0!==e.offset||0!==e.childIndex)return!1;if("list_item"===e.child.type)return!1;const o=e.state.transaction("input");return 1===e.childCount?(o.removeNode(e.quoteParentPath,e.quoteIndex),o.insertNode(e.quoteParentPath,e.quoteIndex,e.child)):(o.removeNode(e.quotePath,0),o.insertNode(e.quoteParentPath,e.quoteIndex,e.child)),o.setSelection(s(e.child.id,0)),t.dispatch(o.build()),!0})}(o)},{priority:"context"})}(o)}registerInputRule(t){t.registerInputRule({pattern:/^> $/,handler(t,e,r,i){const s=t.selection;if(!l(s))return null;if(!c(s))return null;const u=t.getBlock(s.anchor.blockId);if(!u||"paragraph"!==u.type)return null;const d=t.doc.children.findIndex(t=>t.id===u.id);if(d<0)return null;const h=n(a("blockquote"),[u],o());return t.transaction("input").removeNode([],d).insertNode([],d,h).deleteTextAt(s.anchor.blockId,r,r+2).setSelection(s).build()}})}registerToolbarItem(t){t.registerToolbarItem({id:"blockquote",group:"block",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/></svg>',label:this.locale.label,tooltip:this.locale.tooltip(f("Mod-Shift->")),command:"toggleBlockquote",isActive:t=>!!l(t.selection)&&d(t.doc,t.selection.anchor.blockId,"blockquote")})}toggleBlockquote(t){const e=t.getState(),o=e.selection;if(!l(o))return!1;const n=d(e.doc,o.anchor.blockId,"blockquote")?function(t,e,o){const n=m(t.doc,o.anchor.blockId,e);if(!n||1!==n.path.length)return null;const i=t.doc.children.findIndex(t=>t.id===n.node.id);if(i<0)return null;const c=r(n.node),s=t.transaction("command");return s.removeNode([],i),c.forEach((t,e)=>{s.insertNode([],i+e,t)}),s.setSelection(o),s.build()}(e,a("blockquote"),o):q(e,a("blockquote"),o,this.isQuoteChild(t));return!!n&&(t.dispatch(n),!0)}wrapInBlockquote(t){const e=t.getState(),o=e.selection;if(!l(o))return!1;const n=q(e,a("blockquote"),o,this.isQuoteChild(t));return!!n&&(t.dispatch(n),!0)}isQuoteChild(t){const e=t.getSchemaRegistry(),o=new Set(e.getNodeSpec(a("blockquote"))?.content?.allow??[]);return t=>{if(o.has(t.type))return!0;const n=e.getNodeSpec(t.type)?.group;return void 0!==n&&o.has(n)}}};export{I as n,v as r,P as t};
2
- //# sourceMappingURL=BlockquotePlugin-YgXcV4mT.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockquotePlugin-YgXcV4mT.mjs","names":[],"sources":["../../src/commands/ContainerCommands.ts","../../src/plugins/blockquote/BlockquoteKeyboardHandlers.ts","../../src/plugins/blockquote/BlockquoteLocale.ts","../../src/plugins/blockquote/BlockquoteStyles.ts","../../src/plugins/blockquote/BlockquotePlugin.ts"],"sourcesContent":["/**\n * Generic wrap/lift commands for container blocks (issue #136).\n *\n * A container block (e.g. `blockquote`) holds other blocks as children, mirroring\n * HTML flow-content semantics. Wrapping moves the selected top-level blocks into a\n * new container; lifting dissolves a container and returns its children to the\n * parent. Block identity (IDs) is preserved across both operations so the active\n * selection survives the structural change.\n *\n * Scope: operations act on top-level containers. Nested containers (quote-in-quote,\n * quote-in-cell) are intentionally out of scope here and return `null`.\n */\n\nimport type { BlockNode } from '../model/Document.js';\nimport { createBlockNode, generateBlockId, getBlockChildren } from '../model/Document.js';\nimport { findAncestorOfType } from '../model/NodeResolver.js';\nimport type { Selection } from '../model/Selection.js';\nimport { selectionRange } from '../model/Selection.js';\nimport type { BlockId, NodeTypeName } from '../model/TypeBrands.js';\nimport type { EditorState } from '../state/EditorState.js';\nimport type { Transaction } from '../state/Transaction.js';\n\n/** Returns the index in `doc.children` of the top-level ancestor of the given block. */\nfunction topLevelIndexOf(state: EditorState, blockId: BlockId): number {\n\tconst topId: BlockId | undefined = state.getNodePath(blockId)?.[0];\n\tif (!topId) return -1;\n\treturn state.doc.children.findIndex((b) => b.id === topId);\n}\n\n/**\n * Wraps the top-level blocks spanned by `selection` into new container blocks of\n * `containerType`. Returns `null` when the range cannot be resolved.\n *\n * `isAllowedChild` guards the container's schema (`content.allow`): blocks the\n * container cannot legally hold (e.g. a `table` inside a `blockquote`) are left at\n * the top level instead of being nested into an invalid document. Disallowed blocks\n * therefore split the range into separate contiguous runs, each wrapped in its own\n * container, mirroring `wrapIn`. Defaults to wrapping everything when omitted.\n * Returns `null` when no block in the range is wrappable.\n */\nexport function wrapSelectionInContainer(\n\tstate: EditorState,\n\tcontainerType: NodeTypeName,\n\tselection: Selection,\n\tisAllowedChild?: (block: BlockNode) => boolean,\n): Transaction | null {\n\tconst range = selectionRange(selection, state.getBlockOrder());\n\tconst fromIdx: number = topLevelIndexOf(state, range.from.blockId);\n\tconst toIdx: number = topLevelIndexOf(state, range.to.blockId);\n\tif (fromIdx < 0 || toIdx < 0) return null;\n\n\tconst lo: number = Math.min(fromIdx, toIdx);\n\tconst hi: number = Math.max(fromIdx, toIdx);\n\n\tconst blocks: readonly BlockNode[] = state.doc.children.slice(lo, hi + 1);\n\tconst allowed: (block: BlockNode) => boolean = isAllowedChild ?? (() => true);\n\n\t// Group the range into maximal runs of wrappable blocks; each run becomes one\n\t// container, disallowed blocks pass through unchanged and break the run.\n\tconst sequence: BlockNode[] = [];\n\tlet run: BlockNode[] = [];\n\tlet wrappedAny = false;\n\tconst flushRun = (): void => {\n\t\tif (run.length === 0) return;\n\t\tsequence.push(createBlockNode(containerType, run, generateBlockId()));\n\t\twrappedAny = true;\n\t\trun = [];\n\t};\n\tfor (const block of blocks) {\n\t\tif (allowed(block)) {\n\t\t\trun.push(block);\n\t\t} else {\n\t\t\tflushRun();\n\t\t\tsequence.push(block);\n\t\t}\n\t}\n\tflushRun();\n\n\tif (!wrappedAny) return null;\n\n\tconst builder = state.transaction('command');\n\tfor (let i: number = hi; i >= lo; i--) {\n\t\tbuilder.removeNode([], i);\n\t}\n\tsequence.forEach((node, i) => {\n\t\tbuilder.insertNode([], lo + i, node);\n\t});\n\tbuilder.setSelection(selection);\n\treturn builder.build();\n}\n\n/**\n * Lifts the children of the nearest top-level `containerType` ancestor of the\n * selection anchor back out to the top level, dissolving the container. Returns\n * `null` when no such top-level container surrounds the selection.\n */\nexport function liftSelectionFromContainer(\n\tstate: EditorState,\n\tcontainerType: NodeTypeName,\n\tselection: Selection,\n): Transaction | null {\n\tconst ancestor = findAncestorOfType(state.doc, selection.anchor.blockId, containerType);\n\t// Only top-level containers are dissolved (path === [containerId]).\n\tif (!ancestor || ancestor.path.length !== 1) return null;\n\n\tconst containerIdx: number = state.doc.children.findIndex((b) => b.id === ancestor.node.id);\n\tif (containerIdx < 0) return null;\n\n\tconst children: readonly BlockNode[] = getBlockChildren(ancestor.node);\n\n\tconst builder = state.transaction('command');\n\tbuilder.removeNode([], containerIdx);\n\tchildren.forEach((child, i) => {\n\t\tbuilder.insertNode([], containerIdx + i, child);\n\t});\n\tbuilder.setSelection(selection);\n\treturn builder.build();\n}\n","/**\n * Keyboard handlers for the blockquote container (issue #136, B2 model).\n *\n * Under the container model the caret lives in a child block of the blockquote,\n * not in the blockquote itself. These handlers manage the two container\n * boundaries; everything in between (splitting, merging, arrow navigation) is\n * left to the default commands, which already operate correctly on the nested\n * child blocks:\n *\n * - Enter in an empty last child → exit the blockquote (paragraph after it).\n * - Backspace at start of the first child → lift that child out of the quote.\n *\n * List items are deferred to the list plugin's own handlers.\n */\n\nimport type { BlockNode } from '../../model/Document.js';\nimport { createEmptyParagraph, getBlockChildren, getBlockLength } from '../../model/Document.js';\nimport { resolveParentByPath } from '../../model/NodeResolver.js';\nimport { createCollapsedSelection, isCollapsed, isTextSelection } from '../../model/Selection.js';\nimport type { BlockId } from '../../model/TypeBrands.js';\nimport type { EditorState } from '../../state/EditorState.js';\nimport type { PluginContext } from '../Plugin.js';\n\n// --- Context Guard ---\n\ninterface QuoteChildContext {\n\treadonly state: EditorState;\n\treadonly quotePath: readonly BlockId[];\n\treadonly quoteParentPath: readonly BlockId[];\n\treadonly quoteIndex: number;\n\treadonly child: BlockNode;\n\treadonly childIndex: number;\n\treadonly childCount: number;\n\treadonly offset: number;\n}\n\n/**\n * Resolves the caret context when the cursor sits in a direct child of a\n * blockquote. Returns false (not handled) otherwise, so the default keymap and\n * other plugins keep their behavior.\n */\nfunction withBlockquoteChildContext(\n\tcontext: PluginContext,\n\thandler: (ctx: QuoteChildContext) => boolean,\n): boolean {\n\tconst state: EditorState = context.getState();\n\tif (!isTextSelection(state.selection)) return false;\n\tconst sel = state.selection;\n\tif (!isCollapsed(sel)) return false;\n\n\tconst childId: BlockId = sel.anchor.blockId;\n\tconst quote: BlockNode | undefined = state.getParent(childId);\n\tif (!quote || quote.type !== 'blockquote') return false;\n\n\tconst child: BlockNode | undefined = state.getBlock(childId);\n\tif (!child) return false;\n\n\tconst quotePath: BlockId[] | undefined = state.getNodePath(quote.id);\n\tif (!quotePath) return false;\n\tconst parentRef = resolveParentByPath(state.doc, quotePath);\n\tif (!parentRef) return false;\n\n\tconst children: readonly BlockNode[] = getBlockChildren(quote);\n\tconst childIndex: number = children.findIndex((b) => b.id === childId);\n\tif (childIndex < 0) return false;\n\n\treturn handler({\n\t\tstate,\n\t\tquotePath,\n\t\tquoteParentPath: quotePath.slice(0, -1),\n\t\tquoteIndex: parentRef.index,\n\t\tchild,\n\t\tchildIndex,\n\t\tchildCount: children.length,\n\t\toffset: sel.anchor.offset,\n\t});\n}\n\n/** Registers the blockquote container keyboard handlers at context priority. */\nexport function registerBlockquoteKeymaps(context: PluginContext): void {\n\tcontext.registerKeymap(\n\t\t{\n\t\t\tEnter: () => handleEnterExit(context),\n\t\t\tBackspace: () => handleBackspaceLift(context),\n\t\t},\n\t\t{ priority: 'context' },\n\t);\n}\n\n// --- Handlers ---\n\n/**\n * Enter in an empty last child of the blockquote exits the container: a fresh\n * paragraph is created after the quote (or, when that child is the quote's only\n * child, the quote dissolves into that paragraph). Any other case returns false\n * so the default splitBlock creates a new line inside the quote.\n */\nfunction handleEnterExit(context: PluginContext): boolean {\n\treturn withBlockquoteChildContext(context, (ctx) => {\n\t\tif (ctx.child.type === 'list_item') return false;\n\t\tconst isLast: boolean = ctx.childIndex === ctx.childCount - 1;\n\t\tif (!isLast || getBlockLength(ctx.child) > 0) return false;\n\n\t\tconst paragraph: BlockNode = createEmptyParagraph();\n\t\tconst builder = ctx.state.transaction('input');\n\n\t\tif (ctx.childCount === 1) {\n\t\t\t// Sole child: dissolve the quote, replacing it with the paragraph.\n\t\t\tbuilder.removeNode(ctx.quoteParentPath, ctx.quoteIndex);\n\t\t\tbuilder.insertNode(ctx.quoteParentPath, ctx.quoteIndex, paragraph);\n\t\t} else {\n\t\t\t// Drop the empty trailing child and continue after the quote.\n\t\t\tbuilder.removeNode(ctx.quotePath, ctx.childIndex);\n\t\t\tbuilder.insertNode(ctx.quoteParentPath, ctx.quoteIndex + 1, paragraph);\n\t\t}\n\n\t\tbuilder.setSelection(createCollapsedSelection(paragraph.id, 0));\n\t\tcontext.dispatch(builder.build());\n\t\treturn true;\n\t});\n}\n\n/**\n * Backspace at the start of the blockquote's first child lifts that child out of\n * the quote (placing it directly before the quote, or dissolving the quote when\n * it was the only child). Inner children at offset 0 fall through to the default\n * merge, which joins adjacent siblings within the quote.\n */\nfunction handleBackspaceLift(context: PluginContext): boolean {\n\treturn withBlockquoteChildContext(context, (ctx) => {\n\t\tif (ctx.offset !== 0 || ctx.childIndex !== 0) return false;\n\t\tif (ctx.child.type === 'list_item') return false;\n\n\t\tconst builder = ctx.state.transaction('input');\n\n\t\tif (ctx.childCount === 1) {\n\t\t\t// Sole child: dissolve the quote, the child takes its place.\n\t\t\tbuilder.removeNode(ctx.quoteParentPath, ctx.quoteIndex);\n\t\t\tbuilder.insertNode(ctx.quoteParentPath, ctx.quoteIndex, ctx.child);\n\t\t} else {\n\t\t\t// Lift the first child out, immediately before the quote.\n\t\t\tbuilder.removeNode(ctx.quotePath, 0);\n\t\t\tbuilder.insertNode(ctx.quoteParentPath, ctx.quoteIndex, ctx.child);\n\t\t}\n\n\t\tbuilder.setSelection(createCollapsedSelection(ctx.child.id, 0));\n\t\tcontext.dispatch(builder.build());\n\t\treturn true;\n\t});\n}\n","/**\n * Locale interface and default English locale for the BlockquotePlugin.\n */\n\nimport { type LocaleModuleMap, loadLocaleModule } from '../shared/LocaleLoader.js';\n\n// --- Locale Interface ---\n\nexport interface BlockquoteLocale {\n\treadonly label: string;\n\treadonly tooltip: (shortcut: string) => string;\n}\n\n// --- Default English Locale ---\n\nexport const BLOCKQUOTE_LOCALE_EN: BlockquoteLocale = {\n\tlabel: 'Blockquote',\n\ttooltip: (shortcut: string) => `Blockquote (${shortcut})`,\n};\n\n// --- Lazy Locale Loader ---\n\nconst localeModules: LocaleModuleMap<BlockquoteLocale> = import.meta.glob<{\n\tdefault: BlockquoteLocale;\n}>('./locales/*.ts', { eager: false });\n\nexport async function loadBlockquoteLocale(lang: string): Promise<BlockquoteLocale> {\n\treturn loadLocaleModule(localeModules, lang, BLOCKQUOTE_LOCALE_EN);\n}\n","/** Blockquote styles using CSS logical properties for RTL support. */\nexport const BLOCKQUOTE_CSS = `\n.notectl-content blockquote {\n\tmargin: 0;\n\tpadding: 2px 0;\n\tpadding-inline-start: 16px;\n\tborder-inline-start: 3px solid var(--notectl-blockquote-border, var(--notectl-border));\n\tbackground: var(--notectl-blockquote-bg, transparent);\n\tcolor: var(--notectl-blockquote-fg, inherit);\n\tmin-height: 1.6em;\n}\n`;\n","/**\n * BlockquotePlugin: registers a blockquote block type with NodeSpec,\n * toggle command, keyboard shortcut, input rule, and a toolbar button.\n */\n\nimport {\n\tliftSelectionFromContainer,\n\twrapSelectionInContainer,\n} from '../../commands/ContainerCommands.js';\nimport type { BlockNode } from '../../model/Document.js';\nimport { createBlockNode, generateBlockId } from '../../model/Document.js';\nimport { hasAncestorOfType } from '../../model/NodeResolver.js';\nimport { isCollapsed, isTextSelection } from '../../model/Selection.js';\nimport { nodeType } from '../../model/TypeBrands.js';\nimport { createBlockElement } from '../../view/DomUtils.js';\nimport type { Plugin, PluginContext } from '../Plugin.js';\nimport { resolveLocale } from '../shared/PluginHelpers.js';\nimport { formatShortcut } from '../shared/ShortcutFormatting.js';\nimport { registerBlockquoteKeymaps } from './BlockquoteKeyboardHandlers.js';\nimport {\n\tBLOCKQUOTE_LOCALE_EN,\n\ttype BlockquoteLocale,\n\tloadBlockquoteLocale,\n} from './BlockquoteLocale.js';\nimport { BLOCKQUOTE_CSS } from './BlockquoteStyles.js';\n\n// --- Attribute Registry Augmentation ---\n\ndeclare module '../../model/AttrRegistry.js' {\n\tinterface NodeAttrRegistry {\n\t\tblockquote: Record<string, never>;\n\t}\n}\n\n// --- Configuration ---\n\nexport interface BlockquoteConfig {\n\treadonly locale?: BlockquoteLocale;\n}\n\nconst DEFAULT_CONFIG: BlockquoteConfig = {};\n\n// --- Plugin ---\n\nexport class BlockquotePlugin implements Plugin {\n\treadonly id = 'blockquote';\n\treadonly name = 'Blockquote';\n\treadonly priority = 35;\n\n\tprivate readonly config: BlockquoteConfig;\n\tprivate locale!: BlockquoteLocale;\n\n\tconstructor(config?: Partial<BlockquoteConfig>) {\n\t\tthis.config = { ...DEFAULT_CONFIG, ...config };\n\t}\n\n\tasync init(context: PluginContext): Promise<void> {\n\t\tthis.locale = await resolveLocale(\n\t\t\tcontext,\n\t\t\tthis.config.locale,\n\t\t\tBLOCKQUOTE_LOCALE_EN,\n\t\t\tloadBlockquoteLocale,\n\t\t);\n\t\tcontext.registerStyleSheet(BLOCKQUOTE_CSS);\n\t\tthis.registerNodeSpec(context);\n\t\tthis.registerCommands(context);\n\t\tthis.registerKeymap(context);\n\t\tthis.registerInputRule(context);\n\t\tthis.registerToolbarItem(context);\n\t}\n\n\tprivate registerNodeSpec(context: PluginContext): void {\n\t\tcontext.registerNodeSpec({\n\t\t\ttype: 'blockquote',\n\t\t\tgroup: 'block',\n\t\t\t// Container block (issue #136): a blockquote wraps other blocks, mirroring\n\t\t\t// HTML flow-content semantics. `isolating` is intentionally NOT set so the\n\t\t\t// caret can flow across the container boundary (unlike table_cell).\n\t\t\tcontent: {\n\t\t\t\tallow: ['paragraph', 'heading', 'list_item', 'blockquote', 'horizontal_rule', 'code_block'],\n\t\t\t\tmin: 1,\n\t\t\t},\n\t\t\ttoDOM(node) {\n\t\t\t\tconst el = createBlockElement('blockquote', node.id);\n\t\t\t\tel.setAttribute('part', 'blockquote');\n\t\t\t\treturn el;\n\t\t\t},\n\t\t\ttoHTML(_node, content) {\n\t\t\t\treturn `<blockquote>${content || '<br>'}</blockquote>`;\n\t\t\t},\n\t\t\tparseHTML: [{ tag: 'blockquote' }],\n\t\t\tsanitize: { tags: ['blockquote'] },\n\t\t});\n\t}\n\n\tprivate registerCommands(context: PluginContext): void {\n\t\tcontext.registerCommand('toggleBlockquote', () => {\n\t\t\treturn this.toggleBlockquote(context);\n\t\t});\n\n\t\tcontext.registerCommand('setBlockquote', () => {\n\t\t\treturn this.wrapInBlockquote(context);\n\t\t});\n\t}\n\n\tprivate registerKeymap(context: PluginContext): void {\n\t\tcontext.registerKeymap({\n\t\t\t'Mod-Shift->': () => context.executeCommand('toggleBlockquote'),\n\t\t});\n\t\tregisterBlockquoteKeymaps(context);\n\t}\n\n\tprivate registerInputRule(context: PluginContext): void {\n\t\tcontext.registerInputRule({\n\t\t\tpattern: /^> $/,\n\t\t\thandler(state, _match, start, _end) {\n\t\t\t\tconst sel = state.selection;\n\t\t\t\tif (!isTextSelection(sel)) return null;\n\t\t\t\tif (!isCollapsed(sel)) return null;\n\n\t\t\t\tconst block = state.getBlock(sel.anchor.blockId);\n\t\t\t\tif (!block || block.type !== 'paragraph') return null;\n\n\t\t\t\tconst index: number = state.doc.children.findIndex((b) => b.id === block.id);\n\t\t\t\tif (index < 0) return null;\n\n\t\t\t\t// B2: wrap the paragraph into a blockquote container, then strip the\n\t\t\t\t// \"> \" marker from the (now nested) paragraph in the same transaction.\n\t\t\t\tconst container = createBlockNode(nodeType('blockquote'), [block], generateBlockId());\n\t\t\t\treturn state\n\t\t\t\t\t.transaction('input')\n\t\t\t\t\t.removeNode([], index)\n\t\t\t\t\t.insertNode([], index, container)\n\t\t\t\t\t.deleteTextAt(sel.anchor.blockId, start, start + 2)\n\t\t\t\t\t.setSelection(sel)\n\t\t\t\t\t.build();\n\t\t\t},\n\t\t});\n\t}\n\n\tprivate registerToolbarItem(context: PluginContext): void {\n\t\tconst icon =\n\t\t\t'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z\"/></svg>';\n\n\t\tcontext.registerToolbarItem({\n\t\t\tid: 'blockquote',\n\t\t\tgroup: 'block',\n\t\t\ticon,\n\t\t\tlabel: this.locale.label,\n\t\t\ttooltip: this.locale.tooltip(formatShortcut('Mod-Shift->')),\n\t\t\tcommand: 'toggleBlockquote',\n\t\t\tisActive: (state) => {\n\t\t\t\tif (!isTextSelection(state.selection)) return false;\n\t\t\t\treturn hasAncestorOfType(state.doc, state.selection.anchor.blockId, 'blockquote');\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * Toggles the blockquote container around the selection.\n\t * If the selection already lives inside a blockquote, its blocks are lifted\n\t * back out; otherwise the selected blocks are wrapped into one blockquote.\n\t */\n\tprivate toggleBlockquote(context: PluginContext): boolean {\n\t\tconst state = context.getState();\n\t\tconst sel = state.selection;\n\t\tif (!isTextSelection(sel)) return false;\n\n\t\tconst tr = hasAncestorOfType(state.doc, sel.anchor.blockId, 'blockquote')\n\t\t\t? liftSelectionFromContainer(state, nodeType('blockquote'), sel)\n\t\t\t: wrapSelectionInContainer(state, nodeType('blockquote'), sel, this.isQuoteChild(context));\n\n\t\tif (!tr) return false;\n\t\tcontext.dispatch(tr);\n\t\treturn true;\n\t}\n\n\t/** Wraps the selected blocks into a blockquote container (no toggle-off). */\n\tprivate wrapInBlockquote(context: PluginContext): boolean {\n\t\tconst state = context.getState();\n\t\tconst sel = state.selection;\n\t\tif (!isTextSelection(sel)) return false;\n\n\t\tconst tr = wrapSelectionInContainer(\n\t\t\tstate,\n\t\t\tnodeType('blockquote'),\n\t\t\tsel,\n\t\t\tthis.isQuoteChild(context),\n\t\t);\n\t\tif (!tr) return false;\n\t\tcontext.dispatch(tr);\n\t\treturn true;\n\t}\n\n\t/**\n\t * Builds a predicate that reports whether a block may legally become a direct\n\t * child of the blockquote container, derived from the registered NodeSpec's\n\t * `content.allow` (single source of truth). Matches both concrete child types\n\t * and group names (e.g. `block`), so blocks the quote cannot hold (e.g. a\n\t * `table`) are excluded rather than nested into an invalid document.\n\t */\n\tprivate isQuoteChild(context: PluginContext): (block: BlockNode) => boolean {\n\t\tconst registry = context.getSchemaRegistry();\n\t\tconst allow: ReadonlySet<string> = new Set(\n\t\t\tregistry.getNodeSpec(nodeType('blockquote'))?.content?.allow ?? [],\n\t\t);\n\t\treturn (block: BlockNode): boolean => {\n\t\t\tif (allow.has(block.type)) return true;\n\t\t\tconst group: string | undefined = registry.getNodeSpec(block.type)?.group;\n\t\t\treturn group !== undefined && allow.has(group);\n\t\t};\n\t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