@notectl/core 2.0.1 → 2.0.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 (1053) hide show
  1. package/README.md +258 -121
  2. package/dist/chunks/AlignmentPlugin-CIkPaP2h.mjs +2 -0
  3. package/dist/chunks/AlignmentPlugin-CIkPaP2h.mjs.map +1 -0
  4. package/dist/chunks/AttrRegistry-B1iBFcKO.mjs +2 -0
  5. package/dist/chunks/AttrRegistry-B1iBFcKO.mjs.map +1 -0
  6. package/dist/chunks/AttributedMarkCommands-Cmet1IuC.mjs +2 -0
  7. package/dist/chunks/AttributedMarkCommands-Cmet1IuC.mjs.map +1 -0
  8. package/dist/chunks/BlockInsertion-DTIE2BiH.mjs +2 -0
  9. package/dist/chunks/BlockInsertion-DTIE2BiH.mjs.map +1 -0
  10. package/dist/chunks/BlockTypePickerRegistry-U4uY7-lN.mjs +2 -0
  11. package/dist/chunks/BlockTypePickerRegistry-U4uY7-lN.mjs.map +1 -0
  12. package/dist/chunks/BlockquotePlugin-DmbnFmNj.mjs +2 -0
  13. package/dist/chunks/BlockquotePlugin-DmbnFmNj.mjs.map +1 -0
  14. package/dist/chunks/CaretNavigationPlugin-4EaHvYXR.mjs +2 -0
  15. package/dist/chunks/CaretNavigationPlugin-4EaHvYXR.mjs.map +1 -0
  16. package/dist/chunks/CodeBlockPlugin-BP3XaOGj.mjs +2 -0
  17. package/dist/chunks/CodeBlockPlugin-BP3XaOGj.mjs.map +1 -0
  18. package/dist/chunks/ColorGrid-taTKtdsm.mjs +2 -0
  19. package/dist/chunks/ColorGrid-taTKtdsm.mjs.map +1 -0
  20. package/dist/chunks/ColorPickerPopup-JJQ-gMBN.mjs +2 -0
  21. package/dist/chunks/ColorPickerPopup-JJQ-gMBN.mjs.map +1 -0
  22. package/dist/chunks/ColorValidation-3viVw_tK.mjs +2 -0
  23. package/dist/chunks/ColorValidation-3viVw_tK.mjs.map +1 -0
  24. package/dist/chunks/CommandHelpers-D0LIFM4O.mjs +2 -0
  25. package/dist/chunks/CommandHelpers-D0LIFM4O.mjs.map +1 -0
  26. package/dist/chunks/Commands-DJSVqp7b.mjs +2 -0
  27. package/dist/chunks/Commands-DJSVqp7b.mjs.map +1 -0
  28. package/dist/chunks/Decoration-6dhb8k3b.mjs +2 -0
  29. package/dist/chunks/Decoration-6dhb8k3b.mjs.map +1 -0
  30. package/dist/chunks/Document-CkQLx84k.mjs +2 -0
  31. package/dist/chunks/Document-CkQLx84k.mjs.map +1 -0
  32. package/dist/chunks/DocumentParser-QJUmtPp9.mjs +2 -0
  33. package/dist/chunks/DocumentParser-QJUmtPp9.mjs.map +1 -0
  34. package/dist/chunks/DocumentSerializer-bwcxM9WV.mjs +2 -0
  35. package/dist/chunks/DocumentSerializer-bwcxM9WV.mjs.map +1 -0
  36. package/dist/chunks/DomUtils-BkyCg-OO.mjs +2 -0
  37. package/dist/chunks/DomUtils-BkyCg-OO.mjs.map +1 -0
  38. package/dist/chunks/FontPlugin-Cz4qEYGh.mjs +2 -0
  39. package/dist/chunks/FontPlugin-Cz4qEYGh.mjs.map +1 -0
  40. package/dist/chunks/FontSizePlugin-D1WtDqrH.mjs +2 -0
  41. package/dist/chunks/FontSizePlugin-D1WtDqrH.mjs.map +1 -0
  42. package/dist/chunks/GapCursorNavigation-CKKq42kA.mjs +2 -0
  43. package/dist/chunks/GapCursorNavigation-CKKq42kA.mjs.map +1 -0
  44. package/dist/chunks/GapCursorPlugin-0CyOaciK.mjs +2 -0
  45. package/dist/chunks/GapCursorPlugin-0CyOaciK.mjs.map +1 -0
  46. package/dist/chunks/HTMLUtils-BLwp5G4f.mjs +2 -0
  47. package/dist/chunks/HTMLUtils-BLwp5G4f.mjs.map +1 -0
  48. package/dist/chunks/HardBreakPlugin-BOz-L53p.mjs +2 -0
  49. package/dist/chunks/HardBreakPlugin-BOz-L53p.mjs.map +1 -0
  50. package/dist/chunks/HeadingPlugin-C1F-5Ail.mjs +2 -0
  51. package/dist/chunks/HeadingPlugin-C1F-5Ail.mjs.map +1 -0
  52. package/dist/chunks/HighlightPlugin-LYARYuDC.mjs +2 -0
  53. package/dist/chunks/HighlightPlugin-LYARYuDC.mjs.map +1 -0
  54. package/dist/chunks/HorizontalRulePlugin-fmdbzWDQ.mjs +2 -0
  55. package/dist/chunks/HorizontalRulePlugin-fmdbzWDQ.mjs.map +1 -0
  56. package/dist/chunks/ImagePlugin-CrfnT1sD.mjs +2 -0
  57. package/dist/chunks/ImagePlugin-CrfnT1sD.mjs.map +1 -0
  58. package/dist/chunks/KeyboardNav-BZIHDPDV.mjs +2 -0
  59. package/dist/chunks/KeyboardNav-BZIHDPDV.mjs.map +1 -0
  60. package/dist/chunks/LinkPlugin-DzFJLnfQ.mjs +2 -0
  61. package/dist/chunks/LinkPlugin-DzFJLnfQ.mjs.map +1 -0
  62. package/dist/chunks/ListPlugin-C_Rcz3bV.mjs +2 -0
  63. package/dist/chunks/ListPlugin-C_Rcz3bV.mjs.map +1 -0
  64. package/dist/chunks/NavigationQueries-CgYPG6oY.mjs +2 -0
  65. package/dist/chunks/NavigationQueries-CgYPG6oY.mjs.map +1 -0
  66. package/dist/chunks/NodeResolver-CCA8UVRr.mjs +2 -0
  67. package/dist/chunks/NodeResolver-CCA8UVRr.mjs.map +1 -0
  68. package/dist/chunks/NodeSelectionCommands-CE_73CxF.mjs +2 -0
  69. package/dist/chunks/NodeSelectionCommands-CE_73CxF.mjs.map +1 -0
  70. package/dist/chunks/Platform-D9TRT4Mn.mjs +2 -0
  71. package/dist/chunks/Platform-D9TRT4Mn.mjs.map +1 -0
  72. package/dist/chunks/PluginHelpers-DLKHJWJn.mjs +2 -0
  73. package/dist/chunks/PluginHelpers-DLKHJWJn.mjs.map +1 -0
  74. package/dist/chunks/PopupManager-RWOaksC0.mjs +2 -0
  75. package/dist/chunks/PopupManager-RWOaksC0.mjs.map +1 -0
  76. package/dist/chunks/PopupPositioning-a1ADYSmx.mjs +2 -0
  77. package/dist/chunks/PopupPositioning-a1ADYSmx.mjs.map +1 -0
  78. package/dist/chunks/PrintPlugin-CwbEz3eP.mjs +2 -0
  79. package/dist/chunks/PrintPlugin-CwbEz3eP.mjs.map +1 -0
  80. package/dist/chunks/PrintTypes-B2DXeAEG.mjs +2 -0
  81. package/dist/chunks/PrintTypes-B2DXeAEG.mjs.map +1 -0
  82. package/dist/chunks/Selection-B14e7gd0.mjs +2 -0
  83. package/dist/chunks/Selection-B14e7gd0.mjs.map +1 -0
  84. package/dist/chunks/ShortcutFormatting-DQPMvupx.mjs +2 -0
  85. package/dist/chunks/ShortcutFormatting-DQPMvupx.mjs.map +1 -0
  86. package/dist/chunks/SmartPastePlugin-CXqJ0CPO.mjs +2 -0
  87. package/dist/chunks/SmartPastePlugin-CXqJ0CPO.mjs.map +1 -0
  88. package/dist/chunks/StrikethroughPlugin-CRl69jm3.mjs +2 -0
  89. package/dist/chunks/StrikethroughPlugin-CRl69jm3.mjs.map +1 -0
  90. package/dist/chunks/StyleRuntime-0yPPJK9H.mjs +2 -0
  91. package/dist/chunks/StyleRuntime-0yPPJK9H.mjs.map +1 -0
  92. package/dist/chunks/SuperSubPlugin-CAnaTJVm.mjs +2 -0
  93. package/dist/chunks/SuperSubPlugin-CAnaTJVm.mjs.map +1 -0
  94. package/dist/chunks/TablePlugin-D_7bgrqm.mjs +2 -0
  95. package/dist/chunks/TablePlugin-D_7bgrqm.mjs.map +1 -0
  96. package/dist/chunks/TextColorPlugin-Dfhvl1qG.mjs +2 -0
  97. package/dist/chunks/TextColorPlugin-Dfhvl1qG.mjs.map +1 -0
  98. package/dist/chunks/TextDirectionCorePlugin-CyKw-C8X.mjs +2 -0
  99. package/dist/chunks/TextDirectionCorePlugin-CyKw-C8X.mjs.map +1 -0
  100. package/dist/chunks/TextDirectionLocale-rlU1yNly.mjs +2 -0
  101. package/dist/chunks/TextDirectionLocale-rlU1yNly.mjs.map +1 -0
  102. package/dist/chunks/TextFormattingPlugin-xtQczzCs.mjs +2 -0
  103. package/dist/chunks/TextFormattingPlugin-xtQczzCs.mjs.map +1 -0
  104. package/dist/chunks/ToolbarPlugin-BFEniyH-.mjs +2 -0
  105. package/dist/chunks/ToolbarPlugin-BFEniyH-.mjs.map +1 -0
  106. package/dist/chunks/TypeBrands-BQR8dEYU.mjs +2 -0
  107. package/dist/chunks/TypeBrands-BQR8dEYU.mjs.map +1 -0
  108. package/dist/chunks/WordBoundary-iZXLMFyk.mjs +2 -0
  109. package/dist/chunks/WordBoundary-iZXLMFyk.mjs.map +1 -0
  110. package/dist/chunks/XmlPatterns-Ub8I1jdE.mjs +2 -0
  111. package/dist/chunks/XmlPatterns-Ub8I1jdE.mjs.map +1 -0
  112. package/dist/chunks/ar-3-z4mZhh.mjs +2 -0
  113. package/dist/chunks/ar-3-z4mZhh.mjs.map +1 -0
  114. package/dist/chunks/ar-B-l6wR4D.mjs +2 -0
  115. package/dist/chunks/ar-B-l6wR4D.mjs.map +1 -0
  116. package/dist/chunks/ar-B3NByR5H.mjs +2 -0
  117. package/dist/chunks/ar-B3NByR5H.mjs.map +1 -0
  118. package/dist/chunks/ar-BRvm4F78.mjs +2 -0
  119. package/dist/chunks/ar-BRvm4F78.mjs.map +1 -0
  120. package/dist/chunks/ar-BUMXujtS.mjs +2 -0
  121. package/dist/chunks/ar-BUMXujtS.mjs.map +1 -0
  122. package/dist/chunks/ar-BhVHv8Lx.mjs +2 -0
  123. package/dist/chunks/ar-BhVHv8Lx.mjs.map +1 -0
  124. package/dist/chunks/ar-BhwRD9Cg.mjs +2 -0
  125. package/dist/chunks/ar-BhwRD9Cg.mjs.map +1 -0
  126. package/dist/chunks/ar-Bm8ORJ3H.mjs +2 -0
  127. package/dist/chunks/ar-Bm8ORJ3H.mjs.map +1 -0
  128. package/dist/chunks/ar-BpxuRQB2.mjs +2 -0
  129. package/dist/chunks/ar-BpxuRQB2.mjs.map +1 -0
  130. package/dist/chunks/ar-CA0-ysCj.mjs +2 -0
  131. package/dist/chunks/ar-CA0-ysCj.mjs.map +1 -0
  132. package/dist/chunks/ar-CAkFpIju.mjs +2 -0
  133. package/dist/chunks/ar-CAkFpIju.mjs.map +1 -0
  134. package/dist/chunks/ar-CU6qxyFp.mjs +2 -0
  135. package/dist/chunks/ar-CU6qxyFp.mjs.map +1 -0
  136. package/dist/chunks/ar-CXcTrZVc.mjs +2 -0
  137. package/dist/chunks/ar-CXcTrZVc.mjs.map +1 -0
  138. package/dist/chunks/ar-CeO_osWz.mjs +2 -0
  139. package/dist/chunks/ar-CeO_osWz.mjs.map +1 -0
  140. package/dist/chunks/ar-CxRSPJDE.mjs +2 -0
  141. package/dist/chunks/ar-CxRSPJDE.mjs.map +1 -0
  142. package/dist/chunks/ar-DHes6Igy.mjs +2 -0
  143. package/dist/chunks/ar-DHes6Igy.mjs.map +1 -0
  144. package/dist/chunks/ar-DN1aHdqb.mjs +2 -0
  145. package/dist/chunks/ar-DN1aHdqb.mjs.map +1 -0
  146. package/dist/chunks/ar-DNzmHN3q.mjs +2 -0
  147. package/dist/chunks/ar-DNzmHN3q.mjs.map +1 -0
  148. package/dist/chunks/ar-DVdWier2.mjs +2 -0
  149. package/dist/chunks/ar-DVdWier2.mjs.map +1 -0
  150. package/dist/chunks/ar-G_ADWoCx.mjs +2 -0
  151. package/dist/chunks/ar-G_ADWoCx.mjs.map +1 -0
  152. package/dist/chunks/ar-KAaQxKMo.mjs +2 -0
  153. package/dist/chunks/ar-KAaQxKMo.mjs.map +1 -0
  154. package/dist/chunks/ar-MHdV5PAO.mjs +2 -0
  155. package/dist/chunks/ar-MHdV5PAO.mjs.map +1 -0
  156. package/dist/chunks/ar-S2VfgLMv.mjs +2 -0
  157. package/dist/chunks/ar-S2VfgLMv.mjs.map +1 -0
  158. package/dist/chunks/color-picker-DumtHdqh.mjs +2 -0
  159. package/dist/chunks/color-picker-DumtHdqh.mjs.map +1 -0
  160. package/dist/chunks/de-0x8V-vch.mjs +2 -0
  161. package/dist/chunks/de-0x8V-vch.mjs.map +1 -0
  162. package/dist/chunks/de-B5xIP9en.mjs +2 -0
  163. package/dist/chunks/de-B5xIP9en.mjs.map +1 -0
  164. package/dist/chunks/de-BBohFIqw.mjs +2 -0
  165. package/dist/chunks/de-BBohFIqw.mjs.map +1 -0
  166. package/dist/chunks/de-BWPmC-2S.mjs +2 -0
  167. package/dist/chunks/de-BWPmC-2S.mjs.map +1 -0
  168. package/dist/chunks/de-Bo1kM9rb.mjs +2 -0
  169. package/dist/chunks/de-Bo1kM9rb.mjs.map +1 -0
  170. package/dist/chunks/de-BqzR2XMP.mjs +2 -0
  171. package/dist/chunks/de-BqzR2XMP.mjs.map +1 -0
  172. package/dist/chunks/de-CIZibvOC.mjs +2 -0
  173. package/dist/chunks/de-CIZibvOC.mjs.map +1 -0
  174. package/dist/chunks/de-CLToQn0o.mjs +2 -0
  175. package/dist/chunks/de-CLToQn0o.mjs.map +1 -0
  176. package/dist/chunks/de-CNoAAJul.mjs +2 -0
  177. package/dist/chunks/de-CNoAAJul.mjs.map +1 -0
  178. package/dist/chunks/de-CPb7rgkk.mjs +2 -0
  179. package/dist/chunks/de-CPb7rgkk.mjs.map +1 -0
  180. package/dist/chunks/de-CdmBKVDW.mjs +2 -0
  181. package/dist/chunks/de-CdmBKVDW.mjs.map +1 -0
  182. package/dist/chunks/de-DDgeyWgp.mjs +2 -0
  183. package/dist/chunks/de-DDgeyWgp.mjs.map +1 -0
  184. package/dist/chunks/de-DGXQ4OiR.mjs +2 -0
  185. package/dist/chunks/de-DGXQ4OiR.mjs.map +1 -0
  186. package/dist/chunks/de-DJbvKl4E.mjs +2 -0
  187. package/dist/chunks/de-DJbvKl4E.mjs.map +1 -0
  188. package/dist/chunks/de-DKNvYM_G.mjs +2 -0
  189. package/dist/chunks/de-DKNvYM_G.mjs.map +1 -0
  190. package/dist/chunks/de-DOHm_P4A.mjs +2 -0
  191. package/dist/chunks/de-DOHm_P4A.mjs.map +1 -0
  192. package/dist/chunks/de-DTMX75rn.mjs +2 -0
  193. package/dist/chunks/de-DTMX75rn.mjs.map +1 -0
  194. package/dist/chunks/de-DfkQds5F.mjs +2 -0
  195. package/dist/chunks/de-DfkQds5F.mjs.map +1 -0
  196. package/dist/chunks/de-TEQW-F4t.mjs +2 -0
  197. package/dist/chunks/de-TEQW-F4t.mjs.map +1 -0
  198. package/dist/chunks/de-WzdZ_NJ6.mjs +2 -0
  199. package/dist/chunks/de-WzdZ_NJ6.mjs.map +1 -0
  200. package/dist/chunks/de-_vqVfXeo.mjs +2 -0
  201. package/dist/chunks/de-_vqVfXeo.mjs.map +1 -0
  202. package/dist/chunks/de-gR6jt-sS.mjs +2 -0
  203. package/dist/chunks/de-gR6jt-sS.mjs.map +1 -0
  204. package/dist/chunks/de-qOBFRCGL.mjs +2 -0
  205. package/dist/chunks/de-qOBFRCGL.mjs.map +1 -0
  206. package/dist/chunks/es-1udUsTJd.mjs +2 -0
  207. package/dist/chunks/es-1udUsTJd.mjs.map +1 -0
  208. package/dist/chunks/es-3H7h0_G5.mjs +2 -0
  209. package/dist/chunks/es-3H7h0_G5.mjs.map +1 -0
  210. package/dist/chunks/es-4-5iRK0M.mjs +2 -0
  211. package/dist/chunks/es-4-5iRK0M.mjs.map +1 -0
  212. package/dist/chunks/es-89LD3TlT.mjs +2 -0
  213. package/dist/chunks/es-89LD3TlT.mjs.map +1 -0
  214. package/dist/chunks/es-B2KFVoHa.mjs +2 -0
  215. package/dist/chunks/es-B2KFVoHa.mjs.map +1 -0
  216. package/dist/chunks/es-BUP1scLX.mjs +2 -0
  217. package/dist/chunks/es-BUP1scLX.mjs.map +1 -0
  218. package/dist/chunks/es-Bhhj-yh0.mjs +2 -0
  219. package/dist/chunks/es-Bhhj-yh0.mjs.map +1 -0
  220. package/dist/chunks/es-Bo0NTtQH.mjs +2 -0
  221. package/dist/chunks/es-Bo0NTtQH.mjs.map +1 -0
  222. package/dist/chunks/es-Bovw7l2W.mjs +2 -0
  223. package/dist/chunks/es-Bovw7l2W.mjs.map +1 -0
  224. package/dist/chunks/es-C7xAs1yn.mjs +2 -0
  225. package/dist/chunks/es-C7xAs1yn.mjs.map +1 -0
  226. package/dist/chunks/es-CIdF7MzV.mjs +2 -0
  227. package/dist/chunks/es-CIdF7MzV.mjs.map +1 -0
  228. package/dist/chunks/es-CPit7Z6w.mjs +2 -0
  229. package/dist/chunks/es-CPit7Z6w.mjs.map +1 -0
  230. package/dist/chunks/es-CQzgvQI6.mjs +2 -0
  231. package/dist/chunks/es-CQzgvQI6.mjs.map +1 -0
  232. package/dist/chunks/es-CSteuqi5.mjs +2 -0
  233. package/dist/chunks/es-CSteuqi5.mjs.map +1 -0
  234. package/dist/chunks/es-ClJxqhu_.mjs +2 -0
  235. package/dist/chunks/es-ClJxqhu_.mjs.map +1 -0
  236. package/dist/chunks/es-CrmqYoVh.mjs +2 -0
  237. package/dist/chunks/es-CrmqYoVh.mjs.map +1 -0
  238. package/dist/chunks/es-CwRwLkfr.mjs +2 -0
  239. package/dist/chunks/es-CwRwLkfr.mjs.map +1 -0
  240. package/dist/chunks/es-D7DRGnkZ.mjs +2 -0
  241. package/dist/chunks/es-D7DRGnkZ.mjs.map +1 -0
  242. package/dist/chunks/es-DET1uMu-.mjs +2 -0
  243. package/dist/chunks/es-DET1uMu-.mjs.map +1 -0
  244. package/dist/chunks/es-Dj83hJxy.mjs +2 -0
  245. package/dist/chunks/es-Dj83hJxy.mjs.map +1 -0
  246. package/dist/chunks/es-DwYWucI6.mjs +2 -0
  247. package/dist/chunks/es-DwYWucI6.mjs.map +1 -0
  248. package/dist/chunks/es-DwrcpThR.mjs +2 -0
  249. package/dist/chunks/es-DwrcpThR.mjs.map +1 -0
  250. package/dist/chunks/es-z7xjgDdk.mjs +2 -0
  251. package/dist/chunks/es-z7xjgDdk.mjs.map +1 -0
  252. package/dist/chunks/fonts-CG5ZnGux.mjs +2 -0
  253. package/dist/chunks/fonts-CG5ZnGux.mjs.map +1 -0
  254. package/dist/chunks/fr-B73tOEzO.mjs +2 -0
  255. package/dist/chunks/fr-B73tOEzO.mjs.map +1 -0
  256. package/dist/chunks/fr-BEbsFEkX.mjs +2 -0
  257. package/dist/chunks/fr-BEbsFEkX.mjs.map +1 -0
  258. package/dist/chunks/fr-BFCaEBSV.mjs +2 -0
  259. package/dist/chunks/fr-BFCaEBSV.mjs.map +1 -0
  260. package/dist/chunks/fr-BJ69XrDO.mjs +2 -0
  261. package/dist/chunks/fr-BJ69XrDO.mjs.map +1 -0
  262. package/dist/chunks/fr-BdQ_-Iwg.mjs +2 -0
  263. package/dist/chunks/fr-BdQ_-Iwg.mjs.map +1 -0
  264. package/dist/chunks/fr-BhnuBA0i.mjs +2 -0
  265. package/dist/chunks/fr-BhnuBA0i.mjs.map +1 -0
  266. package/dist/chunks/fr-BiLmpXZ9.mjs +2 -0
  267. package/dist/chunks/fr-BiLmpXZ9.mjs.map +1 -0
  268. package/dist/chunks/fr-C1Pak7kS.mjs +2 -0
  269. package/dist/chunks/fr-C1Pak7kS.mjs.map +1 -0
  270. package/dist/chunks/fr-CFDoFELm.mjs +2 -0
  271. package/dist/chunks/fr-CFDoFELm.mjs.map +1 -0
  272. package/dist/chunks/fr-CmsH8BnY.mjs +2 -0
  273. package/dist/chunks/fr-CmsH8BnY.mjs.map +1 -0
  274. package/dist/chunks/fr-Cz2qWiuV.mjs +2 -0
  275. package/dist/chunks/fr-Cz2qWiuV.mjs.map +1 -0
  276. package/dist/chunks/fr-CzTPuD1P.mjs +2 -0
  277. package/dist/chunks/fr-CzTPuD1P.mjs.map +1 -0
  278. package/dist/chunks/fr-D1LQMsjB.mjs +2 -0
  279. package/dist/chunks/fr-D1LQMsjB.mjs.map +1 -0
  280. package/dist/chunks/fr-D84mXQrZ.mjs +2 -0
  281. package/dist/chunks/fr-D84mXQrZ.mjs.map +1 -0
  282. package/dist/chunks/fr-DX7z_ld0.mjs +2 -0
  283. package/dist/chunks/fr-DX7z_ld0.mjs.map +1 -0
  284. package/dist/chunks/fr-DXkQUerf.mjs +2 -0
  285. package/dist/chunks/fr-DXkQUerf.mjs.map +1 -0
  286. package/dist/chunks/fr-Di5gv5P8.mjs +2 -0
  287. package/dist/chunks/fr-Di5gv5P8.mjs.map +1 -0
  288. package/dist/chunks/fr-Dq5MrVWd.mjs +2 -0
  289. package/dist/chunks/fr-Dq5MrVWd.mjs.map +1 -0
  290. package/dist/chunks/fr-DtfEjLSL.mjs +2 -0
  291. package/dist/chunks/fr-DtfEjLSL.mjs.map +1 -0
  292. package/dist/chunks/fr-DvW-dpp3.mjs +2 -0
  293. package/dist/chunks/fr-DvW-dpp3.mjs.map +1 -0
  294. package/dist/chunks/fr-UJFNrn-V.mjs +2 -0
  295. package/dist/chunks/fr-UJFNrn-V.mjs.map +1 -0
  296. package/dist/chunks/fr-hK8X-sM6.mjs +2 -0
  297. package/dist/chunks/fr-hK8X-sM6.mjs.map +1 -0
  298. package/dist/chunks/fr-uuOSXj4L.mjs +2 -0
  299. package/dist/chunks/fr-uuOSXj4L.mjs.map +1 -0
  300. package/dist/chunks/full-216JgIG1.mjs +2 -0
  301. package/dist/chunks/full-216JgIG1.mjs.map +1 -0
  302. package/dist/chunks/hi-B2kXjElO.mjs +2 -0
  303. package/dist/chunks/hi-B2kXjElO.mjs.map +1 -0
  304. package/dist/chunks/hi-B2mEQ5gX.mjs +2 -0
  305. package/dist/chunks/hi-B2mEQ5gX.mjs.map +1 -0
  306. package/dist/chunks/hi-B61lTO2W.mjs +2 -0
  307. package/dist/chunks/hi-B61lTO2W.mjs.map +1 -0
  308. package/dist/chunks/hi-BD5HrbxU.mjs +2 -0
  309. package/dist/chunks/hi-BD5HrbxU.mjs.map +1 -0
  310. package/dist/chunks/hi-BHTvSWXw.mjs +2 -0
  311. package/dist/chunks/hi-BHTvSWXw.mjs.map +1 -0
  312. package/dist/chunks/hi-BYyaOBqY.mjs +2 -0
  313. package/dist/chunks/hi-BYyaOBqY.mjs.map +1 -0
  314. package/dist/chunks/hi-Bhlbz5gX.mjs +2 -0
  315. package/dist/chunks/hi-Bhlbz5gX.mjs.map +1 -0
  316. package/dist/chunks/hi-BniuSk3L.mjs +2 -0
  317. package/dist/chunks/hi-BniuSk3L.mjs.map +1 -0
  318. package/dist/chunks/hi-CBODdhOq.mjs +2 -0
  319. package/dist/chunks/hi-CBODdhOq.mjs.map +1 -0
  320. package/dist/chunks/hi-CKWQCooT.mjs +2 -0
  321. package/dist/chunks/hi-CKWQCooT.mjs.map +1 -0
  322. package/dist/chunks/hi-CkoruGVs.mjs +2 -0
  323. package/dist/chunks/hi-CkoruGVs.mjs.map +1 -0
  324. package/dist/chunks/hi-D6Ge3Lp5.mjs +2 -0
  325. package/dist/chunks/hi-D6Ge3Lp5.mjs.map +1 -0
  326. package/dist/chunks/hi-DEreeBFj.mjs +2 -0
  327. package/dist/chunks/hi-DEreeBFj.mjs.map +1 -0
  328. package/dist/chunks/hi-Dj4JW-9k.mjs +2 -0
  329. package/dist/chunks/hi-Dj4JW-9k.mjs.map +1 -0
  330. package/dist/chunks/hi-DkP4pHSX.mjs +2 -0
  331. package/dist/chunks/hi-DkP4pHSX.mjs.map +1 -0
  332. package/dist/chunks/hi-DknCX8Nx.mjs +2 -0
  333. package/dist/chunks/hi-DknCX8Nx.mjs.map +1 -0
  334. package/dist/chunks/hi-Dm1KJQQ5.mjs +2 -0
  335. package/dist/chunks/hi-Dm1KJQQ5.mjs.map +1 -0
  336. package/dist/chunks/hi-Dx-LTWg-.mjs +2 -0
  337. package/dist/chunks/hi-Dx-LTWg-.mjs.map +1 -0
  338. package/dist/chunks/hi-RDoZtwMm.mjs +2 -0
  339. package/dist/chunks/hi-RDoZtwMm.mjs.map +1 -0
  340. package/dist/chunks/hi-Tq9eDRk7.mjs +2 -0
  341. package/dist/chunks/hi-Tq9eDRk7.mjs.map +1 -0
  342. package/dist/chunks/hi-_vJ_Eo4p.mjs +2 -0
  343. package/dist/chunks/hi-_vJ_Eo4p.mjs.map +1 -0
  344. package/dist/chunks/hi-l8E-czFm.mjs +2 -0
  345. package/dist/chunks/hi-l8E-czFm.mjs.map +1 -0
  346. package/dist/chunks/hi-ydmPh3HB.mjs +2 -0
  347. package/dist/chunks/hi-ydmPh3HB.mjs.map +1 -0
  348. package/dist/chunks/minimal-D-QxXO1C.mjs +2 -0
  349. package/dist/chunks/minimal-D-QxXO1C.mjs.map +1 -0
  350. package/dist/chunks/pt-B4NUSLW8.mjs +2 -0
  351. package/dist/chunks/pt-B4NUSLW8.mjs.map +1 -0
  352. package/dist/chunks/pt-B8VKEboV.mjs +2 -0
  353. package/dist/chunks/pt-B8VKEboV.mjs.map +1 -0
  354. package/dist/chunks/pt-BMDKykEi.mjs +2 -0
  355. package/dist/chunks/pt-BMDKykEi.mjs.map +1 -0
  356. package/dist/chunks/pt-BmWE3xXF.mjs +2 -0
  357. package/dist/chunks/pt-BmWE3xXF.mjs.map +1 -0
  358. package/dist/chunks/pt-CJWKE1SW.mjs +2 -0
  359. package/dist/chunks/pt-CJWKE1SW.mjs.map +1 -0
  360. package/dist/chunks/pt-CKETXoPa.mjs +2 -0
  361. package/dist/chunks/pt-CKETXoPa.mjs.map +1 -0
  362. package/dist/chunks/pt-CKRs16QH.mjs +2 -0
  363. package/dist/chunks/pt-CKRs16QH.mjs.map +1 -0
  364. package/dist/chunks/pt-Cb-1GHq4.mjs +2 -0
  365. package/dist/chunks/pt-Cb-1GHq4.mjs.map +1 -0
  366. package/dist/chunks/pt-CgpU74p4.mjs +2 -0
  367. package/dist/chunks/pt-CgpU74p4.mjs.map +1 -0
  368. package/dist/chunks/pt-CtOdAphq.mjs +2 -0
  369. package/dist/chunks/pt-CtOdAphq.mjs.map +1 -0
  370. package/dist/chunks/pt-CzaPFMSx.mjs +2 -0
  371. package/dist/chunks/pt-CzaPFMSx.mjs.map +1 -0
  372. package/dist/chunks/pt-DGuLcW0m.mjs +2 -0
  373. package/dist/chunks/pt-DGuLcW0m.mjs.map +1 -0
  374. package/dist/chunks/pt-DHzSXzlf.mjs +2 -0
  375. package/dist/chunks/pt-DHzSXzlf.mjs.map +1 -0
  376. package/dist/chunks/pt-DWDdBfLk.mjs +2 -0
  377. package/dist/chunks/pt-DWDdBfLk.mjs.map +1 -0
  378. package/dist/chunks/pt-DZ6Liq_x.mjs +2 -0
  379. package/dist/chunks/pt-DZ6Liq_x.mjs.map +1 -0
  380. package/dist/chunks/pt-D_MD7MJu.mjs +2 -0
  381. package/dist/chunks/pt-D_MD7MJu.mjs.map +1 -0
  382. package/dist/chunks/pt-DgaY_yNG.mjs +2 -0
  383. package/dist/chunks/pt-DgaY_yNG.mjs.map +1 -0
  384. package/dist/chunks/pt-DgzgCxdH.mjs +2 -0
  385. package/dist/chunks/pt-DgzgCxdH.mjs.map +1 -0
  386. package/dist/chunks/pt-Dh7nUcAM.mjs +2 -0
  387. package/dist/chunks/pt-Dh7nUcAM.mjs.map +1 -0
  388. package/dist/chunks/pt-P914L5AX.mjs +2 -0
  389. package/dist/chunks/pt-P914L5AX.mjs.map +1 -0
  390. package/dist/chunks/pt-XT1vsWZj.mjs +2 -0
  391. package/dist/chunks/pt-XT1vsWZj.mjs.map +1 -0
  392. package/dist/chunks/pt-jJ0XXSVz.mjs +2 -0
  393. package/dist/chunks/pt-jJ0XXSVz.mjs.map +1 -0
  394. package/dist/chunks/pt-tuOLwYkM.mjs +2 -0
  395. package/dist/chunks/pt-tuOLwYkM.mjs.map +1 -0
  396. package/dist/chunks/rolldown-runtime-B8Ku5yk6.mjs +1 -0
  397. package/dist/chunks/ru-7m8CMM17.mjs +2 -0
  398. package/dist/chunks/ru-7m8CMM17.mjs.map +1 -0
  399. package/dist/chunks/ru-9Qh1fR-K.mjs +2 -0
  400. package/dist/chunks/ru-9Qh1fR-K.mjs.map +1 -0
  401. package/dist/chunks/ru-B5gK8OLp.mjs +2 -0
  402. package/dist/chunks/ru-B5gK8OLp.mjs.map +1 -0
  403. package/dist/chunks/ru-BRNN6ldH.mjs +2 -0
  404. package/dist/chunks/ru-BRNN6ldH.mjs.map +1 -0
  405. package/dist/chunks/ru-BiyE9o-D.mjs +2 -0
  406. package/dist/chunks/ru-BiyE9o-D.mjs.map +1 -0
  407. package/dist/chunks/ru-BpGTIPbv.mjs +2 -0
  408. package/dist/chunks/ru-BpGTIPbv.mjs.map +1 -0
  409. package/dist/chunks/ru-CAzMaI4y.mjs +2 -0
  410. package/dist/chunks/ru-CAzMaI4y.mjs.map +1 -0
  411. package/dist/chunks/ru-COo6HpcD.mjs +2 -0
  412. package/dist/chunks/ru-COo6HpcD.mjs.map +1 -0
  413. package/dist/chunks/ru-CgEOZsUs.mjs +2 -0
  414. package/dist/chunks/ru-CgEOZsUs.mjs.map +1 -0
  415. package/dist/chunks/ru-CptzezhV.mjs +2 -0
  416. package/dist/chunks/ru-CptzezhV.mjs.map +1 -0
  417. package/dist/chunks/ru-Ct0qNMLS.mjs +2 -0
  418. package/dist/chunks/ru-Ct0qNMLS.mjs.map +1 -0
  419. package/dist/chunks/ru-Ct2IrzbA.mjs +2 -0
  420. package/dist/chunks/ru-Ct2IrzbA.mjs.map +1 -0
  421. package/dist/chunks/ru-CyHnlWLN.mjs +2 -0
  422. package/dist/chunks/ru-CyHnlWLN.mjs.map +1 -0
  423. package/dist/chunks/ru-DF0vhzeC.mjs +2 -0
  424. package/dist/chunks/ru-DF0vhzeC.mjs.map +1 -0
  425. package/dist/chunks/ru-DH6rsOWL.mjs +2 -0
  426. package/dist/chunks/ru-DH6rsOWL.mjs.map +1 -0
  427. package/dist/chunks/ru-DHH8k6G8.mjs +2 -0
  428. package/dist/chunks/ru-DHH8k6G8.mjs.map +1 -0
  429. package/dist/chunks/ru-GVReqjM4.mjs +2 -0
  430. package/dist/chunks/ru-GVReqjM4.mjs.map +1 -0
  431. package/dist/chunks/ru-IzloX5CY.mjs +2 -0
  432. package/dist/chunks/ru-IzloX5CY.mjs.map +1 -0
  433. package/dist/chunks/ru-ZrzXB0f6.mjs +2 -0
  434. package/dist/chunks/ru-ZrzXB0f6.mjs.map +1 -0
  435. package/dist/chunks/ru-asRKygvE.mjs +2 -0
  436. package/dist/chunks/ru-asRKygvE.mjs.map +1 -0
  437. package/dist/chunks/ru-m19l8nRA.mjs +2 -0
  438. package/dist/chunks/ru-m19l8nRA.mjs.map +1 -0
  439. package/dist/chunks/ru-vfQ5Xaz4.mjs +2 -0
  440. package/dist/chunks/ru-vfQ5Xaz4.mjs.map +1 -0
  441. package/dist/chunks/ru-wVOlNily.mjs +2 -0
  442. package/dist/chunks/ru-wVOlNily.mjs.map +1 -0
  443. package/dist/chunks/shared-DxmfXZH7.mjs +2 -0
  444. package/dist/chunks/shared-DxmfXZH7.mjs.map +1 -0
  445. package/dist/chunks/src-DFXIsulM.mjs +2 -0
  446. package/dist/chunks/src-DFXIsulM.mjs.map +1 -0
  447. package/dist/chunks/text-direction-advanced-B5JuIs0P.mjs +2 -0
  448. package/dist/chunks/text-direction-advanced-B5JuIs0P.mjs.map +1 -0
  449. package/dist/chunks/zh-0uhsRxfq.mjs +2 -0
  450. package/dist/chunks/zh-0uhsRxfq.mjs.map +1 -0
  451. package/dist/chunks/zh-1BrLr5Wk.mjs +2 -0
  452. package/dist/chunks/zh-1BrLr5Wk.mjs.map +1 -0
  453. package/dist/chunks/zh-BNHeXa_M.mjs +2 -0
  454. package/dist/chunks/zh-BNHeXa_M.mjs.map +1 -0
  455. package/dist/chunks/zh-BOpBzSX3.mjs +2 -0
  456. package/dist/chunks/zh-BOpBzSX3.mjs.map +1 -0
  457. package/dist/chunks/zh-BV2uDDGf.mjs +2 -0
  458. package/dist/chunks/zh-BV2uDDGf.mjs.map +1 -0
  459. package/dist/chunks/zh-BkoPteNb.mjs +2 -0
  460. package/dist/chunks/zh-BkoPteNb.mjs.map +1 -0
  461. package/dist/chunks/zh-C2z0g7OC.mjs +2 -0
  462. package/dist/chunks/zh-C2z0g7OC.mjs.map +1 -0
  463. package/dist/chunks/zh-CeJw45yo.mjs +2 -0
  464. package/dist/chunks/zh-CeJw45yo.mjs.map +1 -0
  465. package/dist/chunks/zh-CwVkxL4q.mjs +2 -0
  466. package/dist/chunks/zh-CwVkxL4q.mjs.map +1 -0
  467. package/dist/chunks/zh-Cy7mujpx.mjs +2 -0
  468. package/dist/chunks/zh-Cy7mujpx.mjs.map +1 -0
  469. package/dist/chunks/zh-D-P00ENX.mjs +2 -0
  470. package/dist/chunks/zh-D-P00ENX.mjs.map +1 -0
  471. package/dist/chunks/zh-D5d-NAuv.mjs +2 -0
  472. package/dist/chunks/zh-D5d-NAuv.mjs.map +1 -0
  473. package/dist/chunks/zh-D6gTQA2W.mjs +2 -0
  474. package/dist/chunks/zh-D6gTQA2W.mjs.map +1 -0
  475. package/dist/chunks/zh-DLwq4e4-.mjs +2 -0
  476. package/dist/chunks/zh-DLwq4e4-.mjs.map +1 -0
  477. package/dist/chunks/zh-D_Yb8Eg6.mjs +2 -0
  478. package/dist/chunks/zh-D_Yb8Eg6.mjs.map +1 -0
  479. package/dist/chunks/zh-DaNHqNDY.mjs +2 -0
  480. package/dist/chunks/zh-DaNHqNDY.mjs.map +1 -0
  481. package/dist/chunks/zh-De7-Y4O5.mjs +2 -0
  482. package/dist/chunks/zh-De7-Y4O5.mjs.map +1 -0
  483. package/dist/chunks/zh-Dj7kHEcp.mjs +2 -0
  484. package/dist/chunks/zh-Dj7kHEcp.mjs.map +1 -0
  485. package/dist/chunks/zh-Dl0oVWiK.mjs +2 -0
  486. package/dist/chunks/zh-Dl0oVWiK.mjs.map +1 -0
  487. package/dist/chunks/zh-Do0plBjM.mjs +2 -0
  488. package/dist/chunks/zh-Do0plBjM.mjs.map +1 -0
  489. package/dist/chunks/zh-Q0aDk5UA.mjs +2 -0
  490. package/dist/chunks/zh-Q0aDk5UA.mjs.map +1 -0
  491. package/dist/chunks/zh-eSgs8mzc.mjs +2 -0
  492. package/dist/chunks/zh-eSgs8mzc.mjs.map +1 -0
  493. package/dist/chunks/zh-giWyGMSZ.mjs +2 -0
  494. package/dist/chunks/zh-giWyGMSZ.mjs.map +1 -0
  495. package/dist/commands/BlockInsertion.d.ts.map +1 -1
  496. package/dist/commands/CommandHelpers.d.ts +13 -2
  497. package/dist/commands/CommandHelpers.d.ts.map +1 -1
  498. package/dist/commands/NodeSelectionCommands.d.ts +3 -8
  499. package/dist/commands/NodeSelectionCommands.d.ts.map +1 -1
  500. package/dist/editor/ContentSerializer.d.ts.map +1 -1
  501. package/dist/editor/EditorConfig.d.ts +50 -0
  502. package/dist/editor/EditorConfig.d.ts.map +1 -0
  503. package/dist/editor/EditorConfigController.d.ts +1 -1
  504. package/dist/editor/EditorConfigController.d.ts.map +1 -1
  505. package/dist/editor/EditorDOM.d.ts.map +1 -1
  506. package/dist/editor/EditorInitializer.d.ts +37 -0
  507. package/dist/editor/EditorInitializer.d.ts.map +1 -0
  508. package/dist/editor/EditorLifecycleCoordinator.d.ts +6 -1
  509. package/dist/editor/EditorLifecycleCoordinator.d.ts.map +1 -1
  510. package/dist/editor/NotectlEditor.d.ts +13 -51
  511. package/dist/editor/NotectlEditor.d.ts.map +1 -1
  512. package/dist/editor/PluginBootstrapper.d.ts +1 -1
  513. package/dist/editor/PluginBootstrapper.d.ts.map +1 -1
  514. package/dist/fonts.mjs +1 -2
  515. package/dist/full.mjs +1 -2
  516. package/dist/html.mjs +1 -2
  517. package/dist/input/ClipboardHandler.d.ts +5 -0
  518. package/dist/input/ClipboardHandler.d.ts.map +1 -1
  519. package/dist/input/HTMLParser.d.ts +9 -5
  520. package/dist/input/HTMLParser.d.ts.map +1 -1
  521. package/dist/input/InputHandler.d.ts +1 -0
  522. package/dist/input/InputHandler.d.ts.map +1 -1
  523. package/dist/input/PasteHTMLHandler.d.ts +25 -0
  524. package/dist/input/PasteHTMLHandler.d.ts.map +1 -0
  525. package/dist/input/PasteHandler.d.ts +2 -27
  526. package/dist/input/PasteHandler.d.ts.map +1 -1
  527. package/dist/input/PasteRichBlockHandler.d.ts +23 -0
  528. package/dist/input/PasteRichBlockHandler.d.ts.map +1 -0
  529. package/dist/input/SelectionDocument.d.ts +10 -0
  530. package/dist/input/SelectionDocument.d.ts.map +1 -0
  531. package/dist/model/RichBlockData.d.ts +12 -2
  532. package/dist/model/RichBlockData.d.ts.map +1 -1
  533. package/dist/notectl-core.mjs +1 -2
  534. package/dist/notectl-core.umd.js +2 -2
  535. package/dist/notectl-core.umd.js.map +1 -1
  536. package/dist/plugins/PluginContextFactory.d.ts +73 -0
  537. package/dist/plugins/PluginContextFactory.d.ts.map +1 -0
  538. package/dist/plugins/PluginManager.d.ts +5 -0
  539. package/dist/plugins/PluginManager.d.ts.map +1 -1
  540. package/dist/plugins/alignment.mjs +1 -2
  541. package/dist/plugins/blockquote.mjs +1 -2
  542. package/dist/plugins/caret-navigation.mjs +1 -2
  543. package/dist/plugins/code-block.mjs +1 -2
  544. package/dist/plugins/font-size.mjs +1 -2
  545. package/dist/plugins/font.mjs +1 -2
  546. package/dist/plugins/gap-cursor.mjs +1 -2
  547. package/dist/plugins/hard-break.mjs +1 -2
  548. package/dist/plugins/heading.mjs +1 -2
  549. package/dist/plugins/highlight.mjs +1 -2
  550. package/dist/plugins/horizontal-rule.mjs +1 -2
  551. package/dist/plugins/image/ImageCommands.d.ts.map +1 -1
  552. package/dist/plugins/image.mjs +1 -2
  553. package/dist/plugins/link.mjs +1 -2
  554. package/dist/plugins/list.mjs +1 -2
  555. package/dist/plugins/print/PrintContentPreparer.d.ts.map +1 -1
  556. package/dist/plugins/print.mjs +1 -2
  557. package/dist/plugins/shared/PopupManager.d.ts.map +1 -1
  558. package/dist/plugins/shared.mjs +1 -2
  559. package/dist/plugins/smart-paste.mjs +1 -2
  560. package/dist/plugins/strikethrough.mjs +1 -2
  561. package/dist/plugins/super-sub.mjs +1 -2
  562. package/dist/plugins/table/TableCommands.d.ts +1 -0
  563. package/dist/plugins/table/TableCommands.d.ts.map +1 -1
  564. package/dist/plugins/table/TableContextMenu.d.ts.map +1 -1
  565. package/dist/plugins/table/TableSelection.d.ts.map +1 -1
  566. package/dist/plugins/table.mjs +1 -2
  567. package/dist/plugins/text-color.mjs +1 -2
  568. package/dist/plugins/text-direction-advanced.mjs +1 -2
  569. package/dist/plugins/text-direction.mjs +1 -2
  570. package/dist/plugins/text-formatting.mjs +1 -2
  571. package/dist/plugins/toolbar/ToolbarOverflowController.d.ts +2 -0
  572. package/dist/plugins/toolbar/ToolbarOverflowController.d.ts.map +1 -1
  573. package/dist/plugins/toolbar.mjs +1 -2
  574. package/dist/presets/full.mjs +1 -2
  575. package/dist/presets/minimal.mjs +1 -2
  576. package/dist/presets.mjs +1 -2
  577. package/dist/state/StepInversion.d.ts.map +1 -1
  578. package/dist/view/EditorView.d.ts +8 -58
  579. package/dist/view/EditorView.d.ts.map +1 -1
  580. package/dist/view/EditorViewEvents.d.ts +54 -0
  581. package/dist/view/EditorViewEvents.d.ts.map +1 -0
  582. package/dist/view/EditorViewNavigation.d.ts +47 -0
  583. package/dist/view/EditorViewNavigation.d.ts.map +1 -0
  584. package/dist/view/SelectionSync.d.ts.map +1 -1
  585. package/package.json +5 -5
  586. package/dist/chunks/AttrRegistry-Ckj9eCHj.mjs +0 -2
  587. package/dist/chunks/AttrRegistry-Ckj9eCHj.mjs.map +0 -1
  588. package/dist/chunks/AttributedMarkCommands-x7h4Xy7V.mjs +0 -2
  589. package/dist/chunks/AttributedMarkCommands-x7h4Xy7V.mjs.map +0 -1
  590. package/dist/chunks/BlockInsertion-zPxm6oa_.mjs +0 -2
  591. package/dist/chunks/BlockInsertion-zPxm6oa_.mjs.map +0 -1
  592. package/dist/chunks/BlockTypePickerRegistry-DcSE6IXB.mjs +0 -2
  593. package/dist/chunks/BlockTypePickerRegistry-DcSE6IXB.mjs.map +0 -1
  594. package/dist/chunks/ColorGrid-CpkbKfXg.mjs +0 -2
  595. package/dist/chunks/ColorGrid-CpkbKfXg.mjs.map +0 -1
  596. package/dist/chunks/ColorPickerPopup-CDUvkgcK.mjs +0 -2
  597. package/dist/chunks/ColorPickerPopup-CDUvkgcK.mjs.map +0 -1
  598. package/dist/chunks/ColorValidation-DCSKq9B2.mjs +0 -2
  599. package/dist/chunks/ColorValidation-DCSKq9B2.mjs.map +0 -1
  600. package/dist/chunks/Commands-DwXBBVGR.mjs +0 -2
  601. package/dist/chunks/Commands-DwXBBVGR.mjs.map +0 -1
  602. package/dist/chunks/Decoration-D49mFXrH.mjs +0 -2
  603. package/dist/chunks/Decoration-D49mFXrH.mjs.map +0 -1
  604. package/dist/chunks/Document-HC8s50qJ.mjs +0 -2
  605. package/dist/chunks/Document-HC8s50qJ.mjs.map +0 -1
  606. package/dist/chunks/DocumentParser-w70-Axud.mjs +0 -2
  607. package/dist/chunks/DocumentParser-w70-Axud.mjs.map +0 -1
  608. package/dist/chunks/DomUtils-CznMAZZg.mjs +0 -2
  609. package/dist/chunks/DomUtils-CznMAZZg.mjs.map +0 -1
  610. package/dist/chunks/HTMLUtils-Cxy99Ak2.mjs +0 -2
  611. package/dist/chunks/HTMLUtils-Cxy99Ak2.mjs.map +0 -1
  612. package/dist/chunks/HeadingPlugin-B-LF-AMM.mjs +0 -2
  613. package/dist/chunks/HeadingPlugin-B-LF-AMM.mjs.map +0 -1
  614. package/dist/chunks/KeyboardNav-DsYhKKuV.mjs +0 -2
  615. package/dist/chunks/KeyboardNav-DsYhKKuV.mjs.map +0 -1
  616. package/dist/chunks/MarkCommands-CTuVDqnn.mjs +0 -2
  617. package/dist/chunks/MarkCommands-CTuVDqnn.mjs.map +0 -1
  618. package/dist/chunks/NavigationQueries-DCOv4Ca5.mjs +0 -2
  619. package/dist/chunks/NavigationQueries-DCOv4Ca5.mjs.map +0 -1
  620. package/dist/chunks/NotectlEditor-DBBJkPCW.mjs +0 -3
  621. package/dist/chunks/NotectlEditor-DBBJkPCW.mjs.map +0 -1
  622. package/dist/chunks/Platform-CU6itXZo.mjs +0 -2
  623. package/dist/chunks/Platform-CU6itXZo.mjs.map +0 -1
  624. package/dist/chunks/PluginHelpers-CdPR0MuT.mjs +0 -2
  625. package/dist/chunks/PluginHelpers-CdPR0MuT.mjs.map +0 -1
  626. package/dist/chunks/PopupManager-Du3dYnsJ.mjs +0 -2
  627. package/dist/chunks/PopupManager-Du3dYnsJ.mjs.map +0 -1
  628. package/dist/chunks/PopupPositioning-DtvqMSop.mjs +0 -2
  629. package/dist/chunks/PopupPositioning-DtvqMSop.mjs.map +0 -1
  630. package/dist/chunks/PrintTypes-DukwDSWS.mjs +0 -2
  631. package/dist/chunks/PrintTypes-DukwDSWS.mjs.map +0 -1
  632. package/dist/chunks/RangeIterator-CprUbOWv.mjs +0 -2
  633. package/dist/chunks/RangeIterator-CprUbOWv.mjs.map +0 -1
  634. package/dist/chunks/Selection-DhbizDM4.mjs +0 -2
  635. package/dist/chunks/Selection-DhbizDM4.mjs.map +0 -1
  636. package/dist/chunks/SelectionTransactions-DB3YDIEa.mjs +0 -2
  637. package/dist/chunks/SelectionTransactions-DB3YDIEa.mjs.map +0 -1
  638. package/dist/chunks/ShortcutFormatting-BLKS0Gys.mjs +0 -2
  639. package/dist/chunks/ShortcutFormatting-BLKS0Gys.mjs.map +0 -1
  640. package/dist/chunks/StyleRuntime-BmsLoEa8.mjs +0 -2
  641. package/dist/chunks/StyleRuntime-BmsLoEa8.mjs.map +0 -1
  642. package/dist/chunks/TextDirectionLocale-BraFI9JF.mjs +0 -2
  643. package/dist/chunks/TextDirectionLocale-BraFI9JF.mjs.map +0 -1
  644. package/dist/chunks/TypeBrands-Bp_Z_o5Y.mjs +0 -2
  645. package/dist/chunks/TypeBrands-Bp_Z_o5Y.mjs.map +0 -1
  646. package/dist/chunks/XmlPatterns-DxQXGjP8.mjs +0 -2
  647. package/dist/chunks/XmlPatterns-DxQXGjP8.mjs.map +0 -1
  648. package/dist/chunks/ar-B93SPJT7.mjs +0 -2
  649. package/dist/chunks/ar-B93SPJT7.mjs.map +0 -1
  650. package/dist/chunks/ar-BAmGa08u.mjs +0 -2
  651. package/dist/chunks/ar-BAmGa08u.mjs.map +0 -1
  652. package/dist/chunks/ar-BYNFEVLc.mjs +0 -2
  653. package/dist/chunks/ar-BYNFEVLc.mjs.map +0 -1
  654. package/dist/chunks/ar-Bnc7y8BP.mjs +0 -2
  655. package/dist/chunks/ar-Bnc7y8BP.mjs.map +0 -1
  656. package/dist/chunks/ar-Bp3rDZky.mjs +0 -2
  657. package/dist/chunks/ar-Bp3rDZky.mjs.map +0 -1
  658. package/dist/chunks/ar-BtOQ7lro.mjs +0 -2
  659. package/dist/chunks/ar-BtOQ7lro.mjs.map +0 -1
  660. package/dist/chunks/ar-C5JEHhw9.mjs +0 -2
  661. package/dist/chunks/ar-C5JEHhw9.mjs.map +0 -1
  662. package/dist/chunks/ar-CL3QL0tw.mjs +0 -2
  663. package/dist/chunks/ar-CL3QL0tw.mjs.map +0 -1
  664. package/dist/chunks/ar-CYtG-XlN.mjs +0 -2
  665. package/dist/chunks/ar-CYtG-XlN.mjs.map +0 -1
  666. package/dist/chunks/ar-CzVj8p__.mjs +0 -2
  667. package/dist/chunks/ar-CzVj8p__.mjs.map +0 -1
  668. package/dist/chunks/ar-D7PS3e2g.mjs +0 -2
  669. package/dist/chunks/ar-D7PS3e2g.mjs.map +0 -1
  670. package/dist/chunks/ar-D8adM2Uy.mjs +0 -2
  671. package/dist/chunks/ar-D8adM2Uy.mjs.map +0 -1
  672. package/dist/chunks/ar-D9jyShaB.mjs +0 -2
  673. package/dist/chunks/ar-D9jyShaB.mjs.map +0 -1
  674. package/dist/chunks/ar-DR6OA3ZO.mjs +0 -2
  675. package/dist/chunks/ar-DR6OA3ZO.mjs.map +0 -1
  676. package/dist/chunks/ar-Deibepjm.mjs +0 -2
  677. package/dist/chunks/ar-Deibepjm.mjs.map +0 -1
  678. package/dist/chunks/ar-Dlb5riUN.mjs +0 -2
  679. package/dist/chunks/ar-Dlb5riUN.mjs.map +0 -1
  680. package/dist/chunks/ar-DmmxE2W7.mjs +0 -2
  681. package/dist/chunks/ar-DmmxE2W7.mjs.map +0 -1
  682. package/dist/chunks/ar-Ds6Z2Gzf.mjs +0 -2
  683. package/dist/chunks/ar-Ds6Z2Gzf.mjs.map +0 -1
  684. package/dist/chunks/ar-DtIHQ8nU.mjs +0 -2
  685. package/dist/chunks/ar-DtIHQ8nU.mjs.map +0 -1
  686. package/dist/chunks/ar-J8B-on-0.mjs +0 -2
  687. package/dist/chunks/ar-J8B-on-0.mjs.map +0 -1
  688. package/dist/chunks/ar-b6VdnxAs.mjs +0 -2
  689. package/dist/chunks/ar-b6VdnxAs.mjs.map +0 -1
  690. package/dist/chunks/ar-iU02mRe5.mjs +0 -2
  691. package/dist/chunks/ar-iU02mRe5.mjs.map +0 -1
  692. package/dist/chunks/ar-mSCYQYnL.mjs +0 -2
  693. package/dist/chunks/ar-mSCYQYnL.mjs.map +0 -1
  694. package/dist/chunks/color-picker-Byjl_xr9.mjs +0 -2
  695. package/dist/chunks/color-picker-Byjl_xr9.mjs.map +0 -1
  696. package/dist/chunks/de-8aCC5jBM.mjs +0 -2
  697. package/dist/chunks/de-8aCC5jBM.mjs.map +0 -1
  698. package/dist/chunks/de-B4y4ndUw.mjs +0 -2
  699. package/dist/chunks/de-B4y4ndUw.mjs.map +0 -1
  700. package/dist/chunks/de-B5fcZ0FQ.mjs +0 -2
  701. package/dist/chunks/de-B5fcZ0FQ.mjs.map +0 -1
  702. package/dist/chunks/de-BT9VmwoJ.mjs +0 -2
  703. package/dist/chunks/de-BT9VmwoJ.mjs.map +0 -1
  704. package/dist/chunks/de-BZWSyJTG.mjs +0 -2
  705. package/dist/chunks/de-BZWSyJTG.mjs.map +0 -1
  706. package/dist/chunks/de-CFD_Wgik.mjs +0 -2
  707. package/dist/chunks/de-CFD_Wgik.mjs.map +0 -1
  708. package/dist/chunks/de-CLYtb6kD.mjs +0 -2
  709. package/dist/chunks/de-CLYtb6kD.mjs.map +0 -1
  710. package/dist/chunks/de-CP5v-98M.mjs +0 -2
  711. package/dist/chunks/de-CP5v-98M.mjs.map +0 -1
  712. package/dist/chunks/de-CYJ6uWno.mjs +0 -2
  713. package/dist/chunks/de-CYJ6uWno.mjs.map +0 -1
  714. package/dist/chunks/de-ChcKkF7A.mjs +0 -2
  715. package/dist/chunks/de-ChcKkF7A.mjs.map +0 -1
  716. package/dist/chunks/de-CicoU066.mjs +0 -2
  717. package/dist/chunks/de-CicoU066.mjs.map +0 -1
  718. package/dist/chunks/de-CjLAdBt2.mjs +0 -2
  719. package/dist/chunks/de-CjLAdBt2.mjs.map +0 -1
  720. package/dist/chunks/de-CtFvAXwF.mjs +0 -2
  721. package/dist/chunks/de-CtFvAXwF.mjs.map +0 -1
  722. package/dist/chunks/de-D1OAXtxJ.mjs +0 -2
  723. package/dist/chunks/de-D1OAXtxJ.mjs.map +0 -1
  724. package/dist/chunks/de-DBbzCQrm.mjs +0 -2
  725. package/dist/chunks/de-DBbzCQrm.mjs.map +0 -1
  726. package/dist/chunks/de-DOLwx_M7.mjs +0 -2
  727. package/dist/chunks/de-DOLwx_M7.mjs.map +0 -1
  728. package/dist/chunks/de-De2miMxo.mjs +0 -2
  729. package/dist/chunks/de-De2miMxo.mjs.map +0 -1
  730. package/dist/chunks/de-OTfhhinm.mjs +0 -2
  731. package/dist/chunks/de-OTfhhinm.mjs.map +0 -1
  732. package/dist/chunks/de-PZ9-LlBp.mjs +0 -2
  733. package/dist/chunks/de-PZ9-LlBp.mjs.map +0 -1
  734. package/dist/chunks/de-UREymH-5.mjs +0 -2
  735. package/dist/chunks/de-UREymH-5.mjs.map +0 -1
  736. package/dist/chunks/de-chYdoK9q.mjs +0 -2
  737. package/dist/chunks/de-chYdoK9q.mjs.map +0 -1
  738. package/dist/chunks/de-fXvs5vQT.mjs +0 -2
  739. package/dist/chunks/de-fXvs5vQT.mjs.map +0 -1
  740. package/dist/chunks/de-xJh5C_pk.mjs +0 -2
  741. package/dist/chunks/de-xJh5C_pk.mjs.map +0 -1
  742. package/dist/chunks/es-B9UhsaEI.mjs +0 -2
  743. package/dist/chunks/es-B9UhsaEI.mjs.map +0 -1
  744. package/dist/chunks/es-BHGwPgrP.mjs +0 -2
  745. package/dist/chunks/es-BHGwPgrP.mjs.map +0 -1
  746. package/dist/chunks/es-BTqy_aQ4.mjs +0 -2
  747. package/dist/chunks/es-BTqy_aQ4.mjs.map +0 -1
  748. package/dist/chunks/es-BbGOZGS_.mjs +0 -2
  749. package/dist/chunks/es-BbGOZGS_.mjs.map +0 -1
  750. package/dist/chunks/es-BjPsub0k.mjs +0 -2
  751. package/dist/chunks/es-BjPsub0k.mjs.map +0 -1
  752. package/dist/chunks/es-Bk0bRDFE.mjs +0 -2
  753. package/dist/chunks/es-Bk0bRDFE.mjs.map +0 -1
  754. package/dist/chunks/es-BkS6DsrM.mjs +0 -2
  755. package/dist/chunks/es-BkS6DsrM.mjs.map +0 -1
  756. package/dist/chunks/es-BzEpr4Bk.mjs +0 -2
  757. package/dist/chunks/es-BzEpr4Bk.mjs.map +0 -1
  758. package/dist/chunks/es-C2lnWyA0.mjs +0 -2
  759. package/dist/chunks/es-C2lnWyA0.mjs.map +0 -1
  760. package/dist/chunks/es-C7e35Muh.mjs +0 -2
  761. package/dist/chunks/es-C7e35Muh.mjs.map +0 -1
  762. package/dist/chunks/es-CBk43isB.mjs +0 -2
  763. package/dist/chunks/es-CBk43isB.mjs.map +0 -1
  764. package/dist/chunks/es-CE8t9fuM.mjs +0 -2
  765. package/dist/chunks/es-CE8t9fuM.mjs.map +0 -1
  766. package/dist/chunks/es-CFjzqIbS.mjs +0 -2
  767. package/dist/chunks/es-CFjzqIbS.mjs.map +0 -1
  768. package/dist/chunks/es-Ce-AEYxc.mjs +0 -2
  769. package/dist/chunks/es-Ce-AEYxc.mjs.map +0 -1
  770. package/dist/chunks/es-Co4AJr8Y.mjs +0 -2
  771. package/dist/chunks/es-Co4AJr8Y.mjs.map +0 -1
  772. package/dist/chunks/es-Cu5_OA4X.mjs +0 -2
  773. package/dist/chunks/es-Cu5_OA4X.mjs.map +0 -1
  774. package/dist/chunks/es-Cud6JXHf.mjs +0 -2
  775. package/dist/chunks/es-Cud6JXHf.mjs.map +0 -1
  776. package/dist/chunks/es-D-II7LZC.mjs +0 -2
  777. package/dist/chunks/es-D-II7LZC.mjs.map +0 -1
  778. package/dist/chunks/es-DBBSeOaD.mjs +0 -2
  779. package/dist/chunks/es-DBBSeOaD.mjs.map +0 -1
  780. package/dist/chunks/es-DCwjeUUu.mjs +0 -2
  781. package/dist/chunks/es-DCwjeUUu.mjs.map +0 -1
  782. package/dist/chunks/es-DvgH3-WZ.mjs +0 -2
  783. package/dist/chunks/es-DvgH3-WZ.mjs.map +0 -1
  784. package/dist/chunks/es-MgguVgIs.mjs +0 -2
  785. package/dist/chunks/es-MgguVgIs.mjs.map +0 -1
  786. package/dist/chunks/es-yXjjcxgb.mjs +0 -2
  787. package/dist/chunks/es-yXjjcxgb.mjs.map +0 -1
  788. package/dist/chunks/fr-B-_yKIAY.mjs +0 -2
  789. package/dist/chunks/fr-B-_yKIAY.mjs.map +0 -1
  790. package/dist/chunks/fr-BGyF2ym0.mjs +0 -2
  791. package/dist/chunks/fr-BGyF2ym0.mjs.map +0 -1
  792. package/dist/chunks/fr-BoRJ3B2-.mjs +0 -2
  793. package/dist/chunks/fr-BoRJ3B2-.mjs.map +0 -1
  794. package/dist/chunks/fr-BrKk4SPg.mjs +0 -2
  795. package/dist/chunks/fr-BrKk4SPg.mjs.map +0 -1
  796. package/dist/chunks/fr-C-y09LKg.mjs +0 -2
  797. package/dist/chunks/fr-C-y09LKg.mjs.map +0 -1
  798. package/dist/chunks/fr-C1W7jyd6.mjs +0 -2
  799. package/dist/chunks/fr-C1W7jyd6.mjs.map +0 -1
  800. package/dist/chunks/fr-C8CtmWBj.mjs +0 -2
  801. package/dist/chunks/fr-C8CtmWBj.mjs.map +0 -1
  802. package/dist/chunks/fr-C9oiPW0k.mjs +0 -2
  803. package/dist/chunks/fr-C9oiPW0k.mjs.map +0 -1
  804. package/dist/chunks/fr-CEkk4UyZ.mjs +0 -2
  805. package/dist/chunks/fr-CEkk4UyZ.mjs.map +0 -1
  806. package/dist/chunks/fr-Ccaetiwi.mjs +0 -2
  807. package/dist/chunks/fr-Ccaetiwi.mjs.map +0 -1
  808. package/dist/chunks/fr-Ccku5KzA.mjs +0 -2
  809. package/dist/chunks/fr-Ccku5KzA.mjs.map +0 -1
  810. package/dist/chunks/fr-CfUg1FxU.mjs +0 -2
  811. package/dist/chunks/fr-CfUg1FxU.mjs.map +0 -1
  812. package/dist/chunks/fr-DDkBcjmO.mjs +0 -2
  813. package/dist/chunks/fr-DDkBcjmO.mjs.map +0 -1
  814. package/dist/chunks/fr-DNwLChcm.mjs +0 -2
  815. package/dist/chunks/fr-DNwLChcm.mjs.map +0 -1
  816. package/dist/chunks/fr-DvneSjCf.mjs +0 -2
  817. package/dist/chunks/fr-DvneSjCf.mjs.map +0 -1
  818. package/dist/chunks/fr-Dx4Qqimj.mjs +0 -2
  819. package/dist/chunks/fr-Dx4Qqimj.mjs.map +0 -1
  820. package/dist/chunks/fr-RHXmueoO.mjs +0 -2
  821. package/dist/chunks/fr-RHXmueoO.mjs.map +0 -1
  822. package/dist/chunks/fr-VdiCNF4J.mjs +0 -2
  823. package/dist/chunks/fr-VdiCNF4J.mjs.map +0 -1
  824. package/dist/chunks/fr-Wiobfk5s.mjs +0 -2
  825. package/dist/chunks/fr-Wiobfk5s.mjs.map +0 -1
  826. package/dist/chunks/fr-YMiDtWuG.mjs +0 -2
  827. package/dist/chunks/fr-YMiDtWuG.mjs.map +0 -1
  828. package/dist/chunks/fr-_Oxf0k66.mjs +0 -2
  829. package/dist/chunks/fr-_Oxf0k66.mjs.map +0 -1
  830. package/dist/chunks/fr-gurfH-7T.mjs +0 -2
  831. package/dist/chunks/fr-gurfH-7T.mjs.map +0 -1
  832. package/dist/chunks/fr-zP7EjxDL.mjs +0 -2
  833. package/dist/chunks/fr-zP7EjxDL.mjs.map +0 -1
  834. package/dist/chunks/hi-B2W8pFqK.mjs +0 -2
  835. package/dist/chunks/hi-B2W8pFqK.mjs.map +0 -1
  836. package/dist/chunks/hi-B2m69ZCq.mjs +0 -2
  837. package/dist/chunks/hi-B2m69ZCq.mjs.map +0 -1
  838. package/dist/chunks/hi-BMIt3y_-.mjs +0 -2
  839. package/dist/chunks/hi-BMIt3y_-.mjs.map +0 -1
  840. package/dist/chunks/hi-BdtVhAzs.mjs +0 -2
  841. package/dist/chunks/hi-BdtVhAzs.mjs.map +0 -1
  842. package/dist/chunks/hi-BmkfaZpg.mjs +0 -2
  843. package/dist/chunks/hi-BmkfaZpg.mjs.map +0 -1
  844. package/dist/chunks/hi-C-l_R2SO.mjs +0 -2
  845. package/dist/chunks/hi-C-l_R2SO.mjs.map +0 -1
  846. package/dist/chunks/hi-C1LhM-oY.mjs +0 -2
  847. package/dist/chunks/hi-C1LhM-oY.mjs.map +0 -1
  848. package/dist/chunks/hi-CGEbGI1l.mjs +0 -2
  849. package/dist/chunks/hi-CGEbGI1l.mjs.map +0 -1
  850. package/dist/chunks/hi-CPuhj7IA.mjs +0 -2
  851. package/dist/chunks/hi-CPuhj7IA.mjs.map +0 -1
  852. package/dist/chunks/hi-CT5WERqi.mjs +0 -2
  853. package/dist/chunks/hi-CT5WERqi.mjs.map +0 -1
  854. package/dist/chunks/hi-CbLPPQ0b.mjs +0 -2
  855. package/dist/chunks/hi-CbLPPQ0b.mjs.map +0 -1
  856. package/dist/chunks/hi-ClvEtEKe.mjs +0 -2
  857. package/dist/chunks/hi-ClvEtEKe.mjs.map +0 -1
  858. package/dist/chunks/hi-CpBWHmYH.mjs +0 -2
  859. package/dist/chunks/hi-CpBWHmYH.mjs.map +0 -1
  860. package/dist/chunks/hi-DAfl8nU_.mjs +0 -2
  861. package/dist/chunks/hi-DAfl8nU_.mjs.map +0 -1
  862. package/dist/chunks/hi-DVof3w0y.mjs +0 -2
  863. package/dist/chunks/hi-DVof3w0y.mjs.map +0 -1
  864. package/dist/chunks/hi-DtlvSQkD.mjs +0 -2
  865. package/dist/chunks/hi-DtlvSQkD.mjs.map +0 -1
  866. package/dist/chunks/hi-FH3CAJuR.mjs +0 -2
  867. package/dist/chunks/hi-FH3CAJuR.mjs.map +0 -1
  868. package/dist/chunks/hi-Ga9h9a_1.mjs +0 -2
  869. package/dist/chunks/hi-Ga9h9a_1.mjs.map +0 -1
  870. package/dist/chunks/hi-Zc17M1T-.mjs +0 -2
  871. package/dist/chunks/hi-Zc17M1T-.mjs.map +0 -1
  872. package/dist/chunks/hi-g7i0bmig.mjs +0 -2
  873. package/dist/chunks/hi-g7i0bmig.mjs.map +0 -1
  874. package/dist/chunks/hi-js2P6byR.mjs +0 -2
  875. package/dist/chunks/hi-js2P6byR.mjs.map +0 -1
  876. package/dist/chunks/hi-ntUsOspQ.mjs +0 -2
  877. package/dist/chunks/hi-ntUsOspQ.mjs.map +0 -1
  878. package/dist/chunks/hi-yxAcR3w6.mjs +0 -2
  879. package/dist/chunks/hi-yxAcR3w6.mjs.map +0 -1
  880. package/dist/chunks/index-CVwf0cdH.mjs +0 -2
  881. package/dist/chunks/index-CVwf0cdH.mjs.map +0 -1
  882. package/dist/chunks/index-D3BZFsAD.mjs +0 -2
  883. package/dist/chunks/index-D3BZFsAD.mjs.map +0 -1
  884. package/dist/chunks/pt--IiroJQw.mjs +0 -2
  885. package/dist/chunks/pt--IiroJQw.mjs.map +0 -1
  886. package/dist/chunks/pt-BF72W8M5.mjs +0 -2
  887. package/dist/chunks/pt-BF72W8M5.mjs.map +0 -1
  888. package/dist/chunks/pt-BX_t4luI.mjs +0 -2
  889. package/dist/chunks/pt-BX_t4luI.mjs.map +0 -1
  890. package/dist/chunks/pt-B_XJ2s9X.mjs +0 -2
  891. package/dist/chunks/pt-B_XJ2s9X.mjs.map +0 -1
  892. package/dist/chunks/pt-C-Vp7Rxj.mjs +0 -2
  893. package/dist/chunks/pt-C-Vp7Rxj.mjs.map +0 -1
  894. package/dist/chunks/pt-CD2aCZXf.mjs +0 -2
  895. package/dist/chunks/pt-CD2aCZXf.mjs.map +0 -1
  896. package/dist/chunks/pt-CFjzqIbS.mjs +0 -2
  897. package/dist/chunks/pt-CFjzqIbS.mjs.map +0 -1
  898. package/dist/chunks/pt-CHjmBegF.mjs +0 -2
  899. package/dist/chunks/pt-CHjmBegF.mjs.map +0 -1
  900. package/dist/chunks/pt-CQRzEocL.mjs +0 -2
  901. package/dist/chunks/pt-CQRzEocL.mjs.map +0 -1
  902. package/dist/chunks/pt-Cem2WxUk.mjs +0 -2
  903. package/dist/chunks/pt-Cem2WxUk.mjs.map +0 -1
  904. package/dist/chunks/pt-D6kdF3fH.mjs +0 -2
  905. package/dist/chunks/pt-D6kdF3fH.mjs.map +0 -1
  906. package/dist/chunks/pt-DJfJVeY8.mjs +0 -2
  907. package/dist/chunks/pt-DJfJVeY8.mjs.map +0 -1
  908. package/dist/chunks/pt-DfB-IaYi.mjs +0 -2
  909. package/dist/chunks/pt-DfB-IaYi.mjs.map +0 -1
  910. package/dist/chunks/pt-DlNdH9pu.mjs +0 -2
  911. package/dist/chunks/pt-DlNdH9pu.mjs.map +0 -1
  912. package/dist/chunks/pt-DrJ0-8Yo.mjs +0 -2
  913. package/dist/chunks/pt-DrJ0-8Yo.mjs.map +0 -1
  914. package/dist/chunks/pt-DsBJpgpe.mjs +0 -2
  915. package/dist/chunks/pt-DsBJpgpe.mjs.map +0 -1
  916. package/dist/chunks/pt-DwdSYJzC.mjs +0 -2
  917. package/dist/chunks/pt-DwdSYJzC.mjs.map +0 -1
  918. package/dist/chunks/pt-Dx9UkZ3j.mjs +0 -2
  919. package/dist/chunks/pt-Dx9UkZ3j.mjs.map +0 -1
  920. package/dist/chunks/pt-K0BUlM9X.mjs +0 -2
  921. package/dist/chunks/pt-K0BUlM9X.mjs.map +0 -1
  922. package/dist/chunks/pt-TuA3_GDM.mjs +0 -2
  923. package/dist/chunks/pt-TuA3_GDM.mjs.map +0 -1
  924. package/dist/chunks/pt-cN6r-f7f.mjs +0 -2
  925. package/dist/chunks/pt-cN6r-f7f.mjs.map +0 -1
  926. package/dist/chunks/pt-uNGpVM3D.mjs +0 -2
  927. package/dist/chunks/pt-uNGpVM3D.mjs.map +0 -1
  928. package/dist/chunks/pt-v1E9u-Jx.mjs +0 -2
  929. package/dist/chunks/pt-v1E9u-Jx.mjs.map +0 -1
  930. package/dist/chunks/ru-0h51zrqE.mjs +0 -2
  931. package/dist/chunks/ru-0h51zrqE.mjs.map +0 -1
  932. package/dist/chunks/ru-4S8w6UN_.mjs +0 -2
  933. package/dist/chunks/ru-4S8w6UN_.mjs.map +0 -1
  934. package/dist/chunks/ru-B0cRw90L.mjs +0 -2
  935. package/dist/chunks/ru-B0cRw90L.mjs.map +0 -1
  936. package/dist/chunks/ru-B3O7WXNM.mjs +0 -2
  937. package/dist/chunks/ru-B3O7WXNM.mjs.map +0 -1
  938. package/dist/chunks/ru-B6zVAzvI.mjs +0 -2
  939. package/dist/chunks/ru-B6zVAzvI.mjs.map +0 -1
  940. package/dist/chunks/ru-B8teJin_.mjs +0 -2
  941. package/dist/chunks/ru-B8teJin_.mjs.map +0 -1
  942. package/dist/chunks/ru-BCriPw-8.mjs +0 -2
  943. package/dist/chunks/ru-BCriPw-8.mjs.map +0 -1
  944. package/dist/chunks/ru-BNOU16E5.mjs +0 -2
  945. package/dist/chunks/ru-BNOU16E5.mjs.map +0 -1
  946. package/dist/chunks/ru-BO6BIS5W.mjs +0 -2
  947. package/dist/chunks/ru-BO6BIS5W.mjs.map +0 -1
  948. package/dist/chunks/ru-Bdy1lLuc.mjs +0 -2
  949. package/dist/chunks/ru-Bdy1lLuc.mjs.map +0 -1
  950. package/dist/chunks/ru-BgBctNVm.mjs +0 -2
  951. package/dist/chunks/ru-BgBctNVm.mjs.map +0 -1
  952. package/dist/chunks/ru-CNLx7T3O.mjs +0 -2
  953. package/dist/chunks/ru-CNLx7T3O.mjs.map +0 -1
  954. package/dist/chunks/ru-CVSCT776.mjs +0 -2
  955. package/dist/chunks/ru-CVSCT776.mjs.map +0 -1
  956. package/dist/chunks/ru-CZvkdGnf.mjs +0 -2
  957. package/dist/chunks/ru-CZvkdGnf.mjs.map +0 -1
  958. package/dist/chunks/ru-CegMPuML.mjs +0 -2
  959. package/dist/chunks/ru-CegMPuML.mjs.map +0 -1
  960. package/dist/chunks/ru-CiLrD2Nz.mjs +0 -2
  961. package/dist/chunks/ru-CiLrD2Nz.mjs.map +0 -1
  962. package/dist/chunks/ru-ClEM6OKY.mjs +0 -2
  963. package/dist/chunks/ru-ClEM6OKY.mjs.map +0 -1
  964. package/dist/chunks/ru-CrbxCeQf.mjs +0 -2
  965. package/dist/chunks/ru-CrbxCeQf.mjs.map +0 -1
  966. package/dist/chunks/ru-D3j2x2xu.mjs +0 -2
  967. package/dist/chunks/ru-D3j2x2xu.mjs.map +0 -1
  968. package/dist/chunks/ru-DdHqb4Mh.mjs +0 -2
  969. package/dist/chunks/ru-DdHqb4Mh.mjs.map +0 -1
  970. package/dist/chunks/ru-DjgNdOdJ.mjs +0 -2
  971. package/dist/chunks/ru-DjgNdOdJ.mjs.map +0 -1
  972. package/dist/chunks/ru-Tzd5N37W.mjs +0 -2
  973. package/dist/chunks/ru-Tzd5N37W.mjs.map +0 -1
  974. package/dist/chunks/ru-XKNCzkR2.mjs +0 -2
  975. package/dist/chunks/ru-XKNCzkR2.mjs.map +0 -1
  976. package/dist/chunks/zh--oNSMazK.mjs +0 -2
  977. package/dist/chunks/zh--oNSMazK.mjs.map +0 -1
  978. package/dist/chunks/zh-BfeWdPIz.mjs +0 -2
  979. package/dist/chunks/zh-BfeWdPIz.mjs.map +0 -1
  980. package/dist/chunks/zh-BnOxGKxF.mjs +0 -2
  981. package/dist/chunks/zh-BnOxGKxF.mjs.map +0 -1
  982. package/dist/chunks/zh-BqMtE-jN.mjs +0 -2
  983. package/dist/chunks/zh-BqMtE-jN.mjs.map +0 -1
  984. package/dist/chunks/zh-C3aI7A2o.mjs +0 -2
  985. package/dist/chunks/zh-C3aI7A2o.mjs.map +0 -1
  986. package/dist/chunks/zh-C6YALJZt.mjs +0 -2
  987. package/dist/chunks/zh-C6YALJZt.mjs.map +0 -1
  988. package/dist/chunks/zh-CWdTbUOP.mjs +0 -2
  989. package/dist/chunks/zh-CWdTbUOP.mjs.map +0 -1
  990. package/dist/chunks/zh-CY01pMD4.mjs +0 -2
  991. package/dist/chunks/zh-CY01pMD4.mjs.map +0 -1
  992. package/dist/chunks/zh-Cmt7n9FY.mjs +0 -2
  993. package/dist/chunks/zh-Cmt7n9FY.mjs.map +0 -1
  994. package/dist/chunks/zh-CpP2kee3.mjs +0 -2
  995. package/dist/chunks/zh-CpP2kee3.mjs.map +0 -1
  996. package/dist/chunks/zh-Cpbg4evx.mjs +0 -2
  997. package/dist/chunks/zh-Cpbg4evx.mjs.map +0 -1
  998. package/dist/chunks/zh-Cqb55JWa.mjs +0 -2
  999. package/dist/chunks/zh-Cqb55JWa.mjs.map +0 -1
  1000. package/dist/chunks/zh-DCQZ6gss.mjs +0 -2
  1001. package/dist/chunks/zh-DCQZ6gss.mjs.map +0 -1
  1002. package/dist/chunks/zh-DG2CNTUU.mjs +0 -2
  1003. package/dist/chunks/zh-DG2CNTUU.mjs.map +0 -1
  1004. package/dist/chunks/zh-DTiTJbzz.mjs +0 -2
  1005. package/dist/chunks/zh-DTiTJbzz.mjs.map +0 -1
  1006. package/dist/chunks/zh-Da1z6qbB.mjs +0 -2
  1007. package/dist/chunks/zh-Da1z6qbB.mjs.map +0 -1
  1008. package/dist/chunks/zh-Di3WqY4_.mjs +0 -2
  1009. package/dist/chunks/zh-Di3WqY4_.mjs.map +0 -1
  1010. package/dist/chunks/zh-DlBt06Pr.mjs +0 -2
  1011. package/dist/chunks/zh-DlBt06Pr.mjs.map +0 -1
  1012. package/dist/chunks/zh-Dt-wVrNr.mjs +0 -2
  1013. package/dist/chunks/zh-Dt-wVrNr.mjs.map +0 -1
  1014. package/dist/chunks/zh-ND6vW2M-.mjs +0 -2
  1015. package/dist/chunks/zh-ND6vW2M-.mjs.map +0 -1
  1016. package/dist/chunks/zh-Yd3GNsa0.mjs +0 -2
  1017. package/dist/chunks/zh-Yd3GNsa0.mjs.map +0 -1
  1018. package/dist/chunks/zh-lhynyH6Q.mjs +0 -2
  1019. package/dist/chunks/zh-lhynyH6Q.mjs.map +0 -1
  1020. package/dist/chunks/zh-v9NmlEIN.mjs +0 -2
  1021. package/dist/chunks/zh-v9NmlEIN.mjs.map +0 -1
  1022. package/dist/fonts.mjs.map +0 -1
  1023. package/dist/full.mjs.map +0 -1
  1024. package/dist/html.mjs.map +0 -1
  1025. package/dist/notectl-core.mjs.map +0 -1
  1026. package/dist/plugins/alignment.mjs.map +0 -1
  1027. package/dist/plugins/blockquote.mjs.map +0 -1
  1028. package/dist/plugins/caret-navigation.mjs.map +0 -1
  1029. package/dist/plugins/code-block.mjs.map +0 -1
  1030. package/dist/plugins/font-size.mjs.map +0 -1
  1031. package/dist/plugins/font.mjs.map +0 -1
  1032. package/dist/plugins/gap-cursor.mjs.map +0 -1
  1033. package/dist/plugins/hard-break.mjs.map +0 -1
  1034. package/dist/plugins/heading.mjs.map +0 -1
  1035. package/dist/plugins/highlight.mjs.map +0 -1
  1036. package/dist/plugins/horizontal-rule.mjs.map +0 -1
  1037. package/dist/plugins/image.mjs.map +0 -1
  1038. package/dist/plugins/link.mjs.map +0 -1
  1039. package/dist/plugins/list.mjs.map +0 -1
  1040. package/dist/plugins/print.mjs.map +0 -1
  1041. package/dist/plugins/shared.mjs.map +0 -1
  1042. package/dist/plugins/smart-paste.mjs.map +0 -1
  1043. package/dist/plugins/strikethrough.mjs.map +0 -1
  1044. package/dist/plugins/super-sub.mjs.map +0 -1
  1045. package/dist/plugins/table.mjs.map +0 -1
  1046. package/dist/plugins/text-color.mjs.map +0 -1
  1047. package/dist/plugins/text-direction-advanced.mjs.map +0 -1
  1048. package/dist/plugins/text-direction.mjs.map +0 -1
  1049. package/dist/plugins/text-formatting.mjs.map +0 -1
  1050. package/dist/plugins/toolbar.mjs.map +0 -1
  1051. package/dist/presets/full.mjs.map +0 -1
  1052. package/dist/presets/minimal.mjs.map +0 -1
  1053. package/dist/presets.mjs.map +0 -1
@@ -22,6 +22,7 @@ export declare function buildDeleteColumnTransaction(state: EditorState, tableId
22
22
  /**
23
23
  * Creates a transaction that removes the given root-level table node.
24
24
  * Cursor placement prefers the next root block, then previous.
25
+ * If the table is the only root block, it is replaced with an empty paragraph.
25
26
  */
26
27
  export declare function createDeleteTableTransaction(state: EditorState, tableId: BlockId): Transaction | null;
27
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"TableCommands.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableCommands.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,2BAA2B,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAUlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD,sEAAsE;AACtE,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,GACd,WAAW,GAAG,IAAI,CAoBpB;AAED,yEAAyE;AACzE,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,GACd,WAAW,GAAG,IAAI,CAcpB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,SAAI,GACd,WAAW,GAAG,IAAI,CAmBpB;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,SAAI,GACd,WAAW,GAAG,IAAI,CA2BpB;AAED;;;GAGG;AACH,wBAAgB,4BAA4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I,CAAC;CAChB;AAyCD;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,EACrB,MAAM,GAAE,WAA6B,EACrC,YAAY,CAAC,EAAE,YAAY,GACzB,sBAAsB,CAuSxB"}
1
+ {"version":3,"file":"TableContextMenu.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableContextMenu.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG3E,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIrE,MAAM,WAAW,sBAAsB;IACtC,MAAM,IAAI,OAAO,CAAC;IAClB,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,IAAI,IAAI,CAAC;CAChB;AAyCD;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,EACrB,MAAM,GAAE,WAA6B,EACrC,YAAY,CAAC,EAAE,YAAY,GACzB,sBAAsB,CAkTxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableSelection.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableSelection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MA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OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACvB;AAED,iDAAiD;AACjD,MAAM,WAAW,qBAAqB;IACrC,gBAAgB,IAAI,SAAS,GAAG,IAAI,CAAC;IACrC,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IAChD,yFAAyF;IACzF,oBAAoB,IAAI,IAAI,CAAC;IAC7B,kBAAkB,IAAI,SAAS,OAAO,EAAE,CAAC;IACzC,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,wBAAwB,mCAA0D,CAAC;AAEhG,uDAAuD;AACvD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,qBAAqB,CA2DzF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,qBAAqB,GAC5B,MAAM,IAAI,CA+FZ"}
@@ -1,2 +1 @@
1
- import{D as t,n as e}from"../chunks/Decoration-D49mFXrH.mjs";import{a as n}from"../chunks/HTMLUtils-Cxy99Ak2.mjs";import{j as o,c as r,h as i,g as l,b as s,i as a}from"../chunks/Selection-DhbizDM4.mjs";import{c}from"../chunks/ColorValidation-DCSKq9B2.mjs";import{S as d,r as u}from"../chunks/PluginHelpers-CdPR0MuT.mjs";import{r as b,g as p}from"../chunks/ColorGrid-CpkbKfXg.mjs";import{g as h,s as f,c as m,e as g,f as v}from"../chunks/Document-HC8s50qJ.mjs";import{n as x}from"../chunks/TypeBrands-Bp_Z_o5Y.mjs";import{a as w,s as C,e as I}from"../chunks/StyleRuntime-BmsLoEa8.mjs";import{a as y}from"../chunks/KeyboardNav-DsYhKKuV.mjs";import{p as k}from"../chunks/PopupPositioning-DtvqMSop.mjs";function S(){const t=m(x("paragraph"),[g("")],f());return m(x("table_cell"),[t],f())}function L(t,e){const n=t.getNodePath(e);if(!n)return null;let o=null,r=null,i=null,l=null;for(const h of n){const e=t.getBlock(h);e&&("table"===e.type?(o=h,r=e):"table_row"===e.type?i=h:"table_cell"===e.type&&(l=h))}const s=t.getBlock(e);if("table_cell"===s?.type&&(l=e),!(o&&r&&l&&i))return null;const a=t.doc.children.findIndex(t=>t.id===o),c=h(r),d=c.findIndex(t=>t.id===i);if(-1===d)return null;const u=c[d];if(!u)return null;const b=h(u),p=b.findIndex(t=>t.id===l);if(-1===p)return null;const f=b.length,m=c.length;return{tableId:o,tableIndex:a,rowId:i,rowIndex:d,cellId:l,colIndex:p,totalRows:m,totalCols:f}}function A(t,e,n,o){const r=t.getBlock(e);if(!r)return null;const i=h(r)[n];if(!i)return null;const l=h(i)[o];return l?.id??null}function B(t,e){const n=t.getBlock(e);if(!n)return e;const o=h(n)[0];if(!o)return e;let r=o;for(;;){const t=h(r)[0];if(!t)return r.id;r=t}}function R(t,e){const n=t.getBlock(e);if(!n)return e;const o=h(n),r=o[o.length-1];if(!r)return e;let i=r;for(;;){const t=h(i),e=t[t.length-1];if(!e)return i.id;i=e}}function E(t,e){const n=t.getNodePath(e);if(!n)return!1;for(const o of n){const e=t.getBlock(o);if("table"===e?.type)return!0}return!1}const T={insertRowAbove:"Insert Row Above",insertRowBelow:"Insert Row Below",insertColumnLeft:"Insert Column Left",insertColumnRight:"Insert Column Right",deleteRow:"Delete Row",deleteColumn:"Delete Column",borderColorLabel:"Border Color...",deleteTable:"Delete Table",tableActions:"Table actions",menuKeyboardHint:"↑↓ Navigate · Enter Select · Esc Close",insertRow:"Insert row",insertColumn:"Insert column",addRow:"Add row",addColumn:"Add column",tableActionsHint:"Table actions (Right-click or Shift+F10)",contextMenuHint:"Right-click or Shift+F10 for table actions",borderColor:"Border color",defaultColor:"Default",noBorders:"No borders",borderColorPicker:"Border color picker",announceBorderColorSet:t=>`Table border color set to ${t}`,announceBorderReset:"Table borders reset to default",borderSwatchLabel:t=>`Border ${t}`,announceRowInsertedAbove:"Row inserted above",announceRowInsertedBelow:"Row inserted below",announceColumnInserted:t=>`Column inserted ${t}`,announceRowDeleted:"Row deleted",announceColumnDeleted:"Column deleted",announceTableDeleted:"Table deleted",insertTable:"Insert Table",tableAriaLabel:(t,e)=>`Table with ${t} rows and ${e} columns`,tableAriaDescription:"Right-click or press Shift+F10 for table actions"},M=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("../chunks/ar-CzVj8p__.mjs"),"./locales/de.ts":()=>import("../chunks/de-B4y4ndUw.mjs"),"./locales/es.ts":()=>import("../chunks/es-MgguVgIs.mjs"),"./locales/fr.ts":()=>import("../chunks/fr-RHXmueoO.mjs"),"./locales/hi.ts":()=>import("../chunks/hi-g7i0bmig.mjs"),"./locales/pt.ts":()=>import("../chunks/pt-DJfJVeY8.mjs"),"./locales/ru.ts":()=>import("../chunks/ru-B8teJin_.mjs"),"./locales/zh.ts":()=>import("../chunks/zh-Cpbg4evx.mjs")});async function N(t){if("en"===t)return T;const e=M[`./locales/${t}.ts`];if(!e)return T;try{return(await e()).default}catch{return T}}const H=["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#980000","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3c78d8","#3d85c6","#674ea7","#a64d79","#0b5394","#38761d"];function D(t,e,n){const o=t.getBlock(e);if(!o||"table"!==o.type)return null;const r=t.getNodePath(e);if(!r)return null;if(void 0===n){const{borderColor:e,...n}=o.attrs??{},i=n;return t.transaction("command").setNodeAttr(r,i).setSelection(t.selection).build()}const i={...o.attrs,borderColor:n};return t.transaction("command").setNodeAttr(r,i).setSelection(t.selection).build()}function P(t,e,n=T){const r=t.getState();if(!o(r.selection))return!1;const i=L(r,r.selection.anchor.blockId);if(!i)return!1;const l=D(r,i.tableId,e);if(!l)return!1;t.dispatch(l);const s="none"===e?"none":p(e);return t.announce(n.announceBorderColorSet(s)),!0}function z(t,e=T){const n=t.getState();if(!o(n.selection))return!1;const r=L(n,n.selection.anchor.blockId);if(!r)return!1;const i=D(n,r.tableId,void 0);return!!i&&(t.dispatch(i),t.announce(e.announceBorderReset),!0)}function $(t,e){const n=t.getBlock(e);if(n)return n.attrs?.borderColor}function j(t,e,n,o,r=T){t.classList.add("notectl-color-picker");const i=$(e.getState(),n),l=document.createElement("button");l.type="button",l.className="notectl-color-picker__default",l.textContent=r.defaultColor,l.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),z(e,r),o()}),l.addEventListener("keydown",t=>{"Escape"===t.key&&(t.preventDefault(),o())}),t.appendChild(l);const s=document.createElement("button");s.type="button",s.className="notectl-color-picker__default",s.textContent=r.noBorders,s.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),P(e,"none",r),o()}),s.addEventListener("keydown",t=>{"Escape"===t.key&&(t.preventDefault(),o())}),t.appendChild(s),b(t,{colors:H,columns:5,ariaLabel:r.borderColorPicker,ariaLabelPrefix:"",activeColor:i??null,swatchLabel:r.borderSwatchLabel,titleAsName:!0,onSelect:t=>{P(e,t,r),o()},onClose:o})}function _(t,e,n){const o=t.getBlock(e);if(!o)return null;const i=h(o),l=i[0]?h(i[0]).length:0;if(0===l)return null;const s=function(t){const e=[];for(let n=0;n<t;n++)e.push(S());return m(x("table_row"),e,f())}(l),a=t.transaction("command").insertNode([e],n,s),c=h(s)[0],d=c?h(c)[0]:void 0;return d?a.setSelection(r(d.id,0)):c&&a.setSelection(r(c.id,0)),a.build()}function V(t,e,n){const o=t.getBlock(e);if(!o)return null;const r=h(o),i=t.transaction("command");for(const l of r){const t=S();i.insertNode([e,l.id],n,t)}return i.setSelection(t.selection),i.build()}function O(t,e,n,o=0){const i=t.getBlock(e);if(!i)return null;if(h(i).length<=1)return F(t,e);const l=t.transaction("command").removeNode([e],n),s=A(t,e,n>0?n-1:1,o);if(s){const e=B(t,s);l.setSelection(r(e,0))}return l.build()}function q(t,e,n,o=0){const i=t.getBlock(e);if(!i)return null;const l=h(i);if((l[0]?h(l[0]).length:0)<=1)return F(t,e);const s=t.transaction("command");for(let r=l.length-1;r>=0;r--){const t=l[r];t&&s.removeNode([e,t.id],n)}const a=A(t,e,o,n>0?n-1:1);if(a){const e=B(t,a);s.setSelection(r(e,0))}return s.build()}function F(t,e){const n=t.doc.children.findIndex(t=>t.id===e);if(-1===n)return null;const o=t.transaction("command").removeNode([],n),i=t.doc.children[n+1];if(i)return o.setSelection(r(i.id,0)),o.build();const l=t.doc.children[n-1];return l&&o.setSelection(r(l.id,0)),o.build()}function Z(t,e,n){const i=t.getState(),l=i.selection;if(!o(l))return!1;const s=l.anchor.blockId;let a=-1;for(let o=0;o<i.doc.children.length;o++){const t=i.doc.children[o];if(!t)continue;if(t.id===s){a=o;break}const e=i.getNodePath(s);if(e&&e[0]===t.id){a=o;break}}-1===a&&(a=i.doc.children.length-1);const c=function(t,e){const n=f(),o=[];for(let r=0;r<t;r++){const t=[];for(let n=0;n<e;n++)t.push(S());o.push(m(x("table_row"),t,f()))}return m(x("table"),o,n)}(e,n),d=m(x("paragraph")),u=a+1,b=i.transaction("command").insertNode([],u,c).insertNode([],u+1,d),p=h(c)[0],g=p?h(p)[0]:void 0,v=g?h(g)[0]:void 0;return v?b.setSelection(r(v.id,0)):g&&b.setSelection(r(g.id,0)),t.dispatch(b.build()),!0}function Y(t,e){const n=t.getState();if(!o(n.selection))return!1;const r=L(n,n.selection.anchor.blockId);if(!r)return!1;const i=_(n,r.tableId,r.rowIndex+1);return!!i&&(t.dispatch(i),t.announce(e.announceRowInsertedBelow),!0)}function K(t,e,n){const r=t.getState();if(!o(r.selection))return!1;const i=L(r,r.selection.anchor.blockId);if(!i)return!1;const l="left"===e?i.colIndex:i.colIndex+1,s=V(r,i.tableId,l);return!!s&&(t.dispatch(s),t.announce(n.announceColumnInserted(e)),!0)}function X(t,e){t.registerCommand("insertTable",()=>Z(t,3,3)),t.registerCommand("addRowAbove",()=>function(t,e){const n=t.getState();if(!o(n.selection))return!1;const r=L(n,n.selection.anchor.blockId);if(!r)return!1;const i=_(n,r.tableId,r.rowIndex);return!!i&&(t.dispatch(i),t.announce(e.announceRowInsertedAbove),!0)}(t,e)),t.registerCommand("addRowBelow",()=>Y(t,e)),t.registerCommand("addColumnLeft",()=>function(t,e){return K(t,"left",e)}(t,e)),t.registerCommand("addColumnRight",()=>function(t,e){return K(t,"right",e)}(t,e)),t.registerCommand("deleteRow",()=>function(t,e){const n=t.getState();if(!o(n.selection))return!1;const r=L(n,n.selection.anchor.blockId);if(!r)return!1;const i=O(n,r.tableId,r.rowIndex,r.colIndex);return!!i&&(t.dispatch(i),t.announce(e.announceRowDeleted),!0)}(t,e)),t.registerCommand("deleteColumn",()=>function(t,e){const n=t.getState();if(!o(n.selection))return!1;const r=L(n,n.selection.anchor.blockId);if(!r)return!1;const i=q(n,r.tableId,r.colIndex,r.rowIndex);return!!i&&(t.dispatch(i),t.announce(e.announceColumnDeleted),!0)}(t,e)),t.registerCommand("selectTable",()=>function(t){const e=t.getState(),n=e.selection;if(i(n)){const t=e.getBlock(n.nodeId);return"table"===t?.type}if(l(n))return!1;const o=L(e,n.anchor.blockId);if(!o)return!1;const r=e.getNodePath(o.tableId);if(!r)return!1;const a=e.transaction("command").setSelection(s(o.tableId,r)).build();return t.dispatch(a),!0}(t)),t.registerCommand("deleteTable",()=>function(t,e){const n=t.getState(),o=function(t){if(i(t.selection)){const e=t.getBlock(t.selection.nodeId);return"table"!==e?.type?null:{tableId:e.id}}if(l(t.selection))return null;const e=L(t,t.selection.anchor.blockId);return e?{tableId:e.tableId}:null}(n);if(!o)return!1;const r=F(n,o.tableId);return!!r&&(t.dispatch(r),t.announce(e.announceTableDeleted),!0)}(t,e))}function W(t,e,n,o,r,i=T,l){let s=!0,a=null;const c=document.createElement("div");c.className="notectl-table-context-menu",c.setAttribute("role","menu"),c.setAttribute("aria-label",i.tableActions),c.setAttribute("contenteditable","false");const d=[];let u=0;const b=function(t){return[{type:"item",label:t.insertRowAbove,command:"addRowAbove"},{type:"item",label:t.insertRowBelow,command:"addRowBelow"},{type:"separator"},{type:"item",label:t.insertColumnLeft,command:"addColumnLeft"},{type:"item",label:t.insertColumnRight,command:"addColumnRight"},{type:"separator"},{type:"item",label:t.deleteRow,command:"deleteRow"},{type:"item",label:t.deleteColumn,command:"deleteColumn"},{type:"separator"},{type:"submenu",label:t.borderColorLabel,id:"borderColor"},{type:"separator"},{type:"item",label:t.deleteTable,command:"deleteTable"}]}(i);for(const v of b){if("separator"===v.type){const t=document.createElement("div");t.setAttribute("role","separator"),c.appendChild(t);continue}const t=document.createElement("button");t.type="button",t.setAttribute("role","menuitem"),t.textContent=v.label,"submenu"===v.type&&(t.dataset.submenu=v.id,t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded","false")),"item"===v.type&&(t.dataset.command=v.command),t.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",n=>{n.stopPropagation(),"item"===v.type?(e.executeCommand(v.command),g()):"submenu"===v.type&&h(t)}),d.push(t),c.appendChild(t)}const p=document.createElement("div");function h(o){f(),o.setAttribute("aria-expanded","true");{a=document.createElement("div"),a.className="notectl-table-context-menu",w(a,"position","fixed"),a.setAttribute("contenteditable","false"),a.addEventListener("keydown",t=>{t.stopPropagation();const e="rtl"===getComputedStyle(c).direction?"ArrowRight":"ArrowLeft";t.key===e&&(t.preventDefault(),f(),o.focus())}),j(a,e,n,()=>g(),i),t.appendChild(a);const r=o.getBoundingClientRect(),l=c.getBoundingClientRect();let s=r.top;const d=window.innerWidth,u=window.innerHeight;let b;"rtl"===getComputedStyle(c).direction?(b=l.left-200-2,b<0&&(b=l.right+2)):(b=l.right+2,b+200>d&&(b=l.left-200-2)),s+200>u&&(s=u-200),C(a,{left:`${b}px`,top:`${s}px`}),requestAnimationFrame(()=>{const t=a?.querySelector("button");t?.focus()})}}function f(){a&&(a.remove(),a=null),function(){for(const t of d)t.dataset.submenu&&t.setAttribute("aria-expanded","false")}()}p.className="notectl-table-context-menu__hint",p.setAttribute("aria-hidden","true"),p.textContent=i.menuKeyboardHint,c.appendChild(p),y(d,u),c.addEventListener("keydown",t=>{switch(t.stopPropagation(),t.key){case"Escape":return t.preventDefault(),void g();case"ArrowDown":return t.preventDefault(),u=(u+1)%d.length,y(d,u),void d[u]?.focus();case"ArrowUp":return t.preventDefault(),u=(u-1+d.length)%d.length,y(d,u),void d[u]?.focus();case"ArrowRight":case"ArrowLeft":{t.preventDefault();const e="rtl"===getComputedStyle(c).direction?"ArrowLeft":"ArrowRight";if(t.key===e){const t=d[u];t?.dataset.submenu&&h(t)}else f(),d[u]?.focus();return}case"Enter":case" ":{t.preventDefault();const n=d[u];if(!n)return;return void(n.dataset.submenu?h(n):n.dataset.command&&(e.executeCommand(n.dataset.command),g()))}case"Home":return t.preventDefault(),u=0,y(d,u),void d[u]?.focus();case"End":return t.preventDefault(),u=d.length-1,y(d,u),void d[u]?.focus()}}),k(c,o,{position:"below-start"}),t.appendChild(c),d[0]?.focus(),requestAnimationFrame(()=>{s&&d[0]&&d[0].focus()});const m=t=>{const e=t.composedPath();e.includes(c)||a&&e.includes(a)||g()};function g(){s&&(s=!1,f(),c.remove(),document.removeEventListener("mousedown",m,!0),r?.())}return setTimeout(()=>{document.addEventListener("mousedown",m,!0)},0),{isOpen:()=>s,close:g,destroy:g}}function U(t,e){const n=t.getState();if(!o(n.selection))return!1;const r=n.selection,i=L(n,r.anchor.blockId);return!!i&&e(n,r,i)}function G(t){return U(t,(e,n,o)=>{const i=o.tableIndex+1;if(i>=e.doc.children.length)return!1;const l=e.doc.children[i];if(!l)return!1;const s=e.transaction("command").setSelection(r(l.id,0)).build();return t.dispatch(s),!0})}let J=null;function Q(t,e,n,o){const i=t.getState(),l=A(i,e,n,o);if(!l)return!1;const s=B(i,l),a=i.transaction("command").setSelection(r(s,0)).build();return t.dispatch(a),!0}function tt(t,e,n,o){const i=t.getState(),l=A(i,e,n,o);if(!l)return!1;const s=R(i,l),a=i.getBlock(s);if(!a)return!1;const c=v(a),d=i.transaction("command").setSelection(r(s,c)).build();return t.dispatch(d),!0}function et(t,e){const n=t.getState(),o=n.getNodePath(e);if(!o)return!1;const r=n.transaction("input").setSelection(s(e,o)).build();return t.dispatch(r),!0}const nt='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M6 1v10M1 6h10" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>';function ot(t,e,n){const o=document.createElement("button");return o.className=t,o.innerHTML=e,o.title=n,o.type="button",o.setAttribute("aria-label",n),o.setAttribute("contenteditable","false"),o.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation()}),o}function rt(t,e){const n=document.createElement("div");n.className=`ntbl-insert-line ntbl-insert-line--${t}`,n.setAttribute("contenteditable","false"),n.setAttribute("data-notectl-no-print","");const o=ot("ntbl-insert-btn",nt,e);return n.appendChild(o),n}function it(t,e){const n=document.createElement("button");n.className=`ntbl-add-zone ${t}`,n.type="button",n.setAttribute("contenteditable","false"),n.setAttribute("aria-label",e),n.setAttribute("data-notectl-no-print",""),n.title=e;const o=document.createElement("span");return o.className="ntbl-add-icon",o.innerHTML=nt,n.appendChild(o),n.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation()}),n}function lt(t){const e=document.createElement("div");return e.className=t,e.setAttribute("contenteditable","false"),e.setAttribute("data-notectl-no-print",""),e}function st(t,e){C(t,"none"===e?{backgroundColor:"transparent",border:"1px dashed rgba(128,128,128,0.4)"}:e?{backgroundColor:e,border:"1px solid rgba(0,0,0,0.15)"}:{backgroundColor:"var(--notectl-border)",border:"1px solid rgba(0,0,0,0.15)"})}function at(t,e,n,o){const r=document.createElement("div");r.className=`ntbl-handle ${t}`,r.dataset.index=String(e);const i=ot("ntbl-handle-delete",'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none"><path d="M2 2l6 6M8 2l-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>',n);return i.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),o(e)}),r.appendChild(i),r}function ct(t,e){let n=0,o=0,r=t;for(;r&&r!==e;)n+=r.offsetTop,o+=r.offsetLeft,r=r.offsetParent;return{top:n,left:o}}class dt{tableId;numRows;numCols;activeRowIndex=-1;activeColIndex=-1;colBar;rowBar;insertLineH;insertLineV;addRowZone;addColZone;deleteTableBtn;borderColorBtn;actionsBtn;contextHint;observer;borderColorPopup=null;activeContextMenu=null;container;tableEl;getState;dispatchFn;pluginContext;locale;onMouseMove=t=>{const e=this.tableEl.getBoundingClientRect(),n=t.clientX-e.left,o=t.clientY-e.top;if(!(n>=-10&&n<=e.width+10&&o>=-10&&o<=e.height+10))return void this.hideInsertLines();const r=function(t,e,n,o){let r=Number.POSITIVE_INFINITY,i=null;for(const a of n){const t=Math.abs(e-a.position);t<r&&t<10&&(r=t,i=a)}let l=Number.POSITIVE_INFINITY,s=null;for(const a of o){const e=Math.abs(t-a.position);e<l&&e<10&&(l=e,s=a)}return i&&(!s||r<=l)?{type:"row",border:i}:s?{type:"col",border:s}:{type:"none",border:null}}(n,o,function(t){const e=t.querySelectorAll(":scope > tbody > tr"),n=t.offsetTop,o=[];for(let r=1;r<e.length;r++){const t=e[r];t&&o.push({position:t.offsetTop-n,index:r})}return o}(this.tableEl),function(t,e){if(e<=1)return[];const n=t/e,o=[];for(let r=1;r<e;r++)o.push({position:Math.round(n*r),index:r});return o}(this.tableEl.offsetWidth,this.numCols));"row"===r.type&&r.border?(this.showHorizontalLine(r.border),this.hideVerticalLine()):"col"===r.type&&r.border?(this.showVerticalLine(r.border),this.hideHorizontalLine()):this.hideInsertLines()};onMouseLeave=()=>{this.hideInsertLines()};constructor(t,e,n,o,r,i,l=T){if(this.container=t,this.tableEl=e,this.getState=o,this.dispatchFn=r,this.pluginContext=i??null,this.locale=l,this.tableId=n.id,this.numRows=h(n).length,this.numCols=this.countCols(n),this.colBar=lt("ntbl-col-bar"),this.rowBar=lt("ntbl-row-bar"),this.insertLineH=rt("horizontal",l.insertRow),this.insertLineV=rt("vertical",l.insertColumn),this.addRowZone=it("ntbl-add-row",l.addRow),this.addColZone=it("ntbl-add-col",l.addColumn),this.deleteTableBtn=ot("ntbl-delete-table-btn",'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M9 3h6m-9 4h12M10 11v6m4-6v6m-9 3h14l-1-13H6L5 20z" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>',l.deleteTable),this.deleteTableBtn.setAttribute("data-notectl-no-print",""),i){const t=$(o(),this.tableId);this.borderColorBtn=function(t,e){const n=ot("ntbl-border-color-btn",'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M3 3h18v18H3V3zm0 6h18M3 15h18M9 3v18M15 3v18" stroke="currentColor" stroke-width="1.5"/></svg>',t);n.setAttribute("data-notectl-no-print","");const o=document.createElement("span");return o.className="ntbl-border-color-swatch",st(o,e),n.appendChild(o),n}(l.borderColor,t),this.actionsBtn=function(t){const e=ot("ntbl-actions-btn",'<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="5" r="2"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="19" r="2"/></svg>',t);return e.setAttribute("data-notectl-no-print",""),e}(l.tableActionsHint)}else this.borderColorBtn=null,this.actionsBtn=null;t.append(this.colBar,this.rowBar,this.insertLineH,this.insertLineV,this.addRowZone,this.addColZone,this.deleteTableBtn),this.borderColorBtn&&t.appendChild(this.borderColorBtn),this.actionsBtn&&t.appendChild(this.actionsBtn),this.contextHint=function(t){const e=document.createElement("div");return e.className="ntbl-context-hint",e.setAttribute("aria-hidden","true"),e.setAttribute("contenteditable","false"),e.setAttribute("data-notectl-no-print",""),e.textContent=t,e}(l.contextMenuHint),t.appendChild(this.contextHint),this.rebuildColHandles(),this.rebuildRowHandles(),this.bindEventListeners(),this.observer=new ResizeObserver(()=>{this.positionControls()}),this.observer.observe(e),requestAnimationFrame(()=>this.positionControls())}update(t){this.tableId=t.id;const e=h(t).length,n=this.countCols(t);if(e===this.numRows&&n===this.numCols||(this.numRows=e,this.numCols=n,this.rebuildColHandles(),this.rebuildRowHandles()),this.borderColorBtn){const e=this.borderColorBtn.querySelector(".ntbl-border-color-swatch");if(e){const n=t.attrs?.borderColor;st(e,n)}}requestAnimationFrame(()=>this.positionControls())}destroy(){this.activeContextMenu?.destroy(),this.closeBorderColorPopup(),this.observer.disconnect(),this.container.removeEventListener("mousemove",this.onMouseMove),this.container.removeEventListener("mouseleave",this.onMouseLeave),this.colBar.remove(),this.rowBar.remove(),this.insertLineH.remove(),this.insertLineV.remove(),this.addRowZone.remove(),this.addColZone.remove(),this.deleteTableBtn.remove(),this.borderColorBtn?.remove(),this.actionsBtn?.remove(),this.contextHint.remove()}bindEventListeners(){const t=this.insertLineH.querySelector(".ntbl-insert-btn"),e=this.insertLineV.querySelector(".ntbl-insert-btn");if(t.addEventListener("click",()=>{this.activeRowIndex>=0&&this.dispatchTransaction(_(this.getState(),this.tableId,this.activeRowIndex))}),e.addEventListener("click",()=>{this.activeColIndex>=0&&this.dispatchTransaction(V(this.getState(),this.tableId,this.activeColIndex))}),this.addRowZone.addEventListener("click",()=>{this.dispatchTransaction(_(this.getState(),this.tableId,this.numRows))}),this.addColZone.addEventListener("click",()=>{this.dispatchTransaction(V(this.getState(),this.tableId,this.numCols))}),this.deleteTableBtn.addEventListener("click",()=>{this.dispatchTransaction(F(this.getState(),this.tableId))}),this.borderColorBtn&&this.pluginContext){const t=this.pluginContext;this.borderColorBtn.addEventListener("click",()=>{this.toggleBorderColorPopup(t)})}if(this.actionsBtn&&this.pluginContext){const t=this.pluginContext;this.actionsBtn.addEventListener("click",()=>{this.openActionsMenu(t)})}this.container.addEventListener("mousemove",this.onMouseMove),this.container.addEventListener("mouseleave",this.onMouseLeave)}openActionsMenu(t){if(this.activeContextMenu?.isOpen())return this.activeContextMenu.close(),void(this.activeContextMenu=null);if(!this.actionsBtn)return;const e=this.actionsBtn.getBoundingClientRect(),n=new DOMRect(e.left,e.bottom+4,0,0);this.activeContextMenu=W(this.container,t,this.tableId,n,()=>{this.activeContextMenu=null},this.locale)}toggleBorderColorPopup(t){this.borderColorPopup?this.closeBorderColorPopup():(this.borderColorPopup=document.createElement("div"),this.borderColorPopup.className="notectl-table-context-menu",C(this.borderColorPopup,{position:"absolute",top:"24px",left:"24px",zIndex:"10000"}),this.borderColorPopup.setAttribute("contenteditable","false"),j(this.borderColorPopup,t,this.tableId,()=>{this.closeBorderColorPopup()},this.locale),this.container.appendChild(this.borderColorPopup))}closeBorderColorPopup(){this.borderColorPopup&&(this.borderColorPopup.remove(),this.borderColorPopup=null)}dispatchTransaction(t){t&&this.dispatchFn(t)}countCols(t){const e=h(t);return e[0]?h(e[0]).length:0}positionControls(){!function(t,e,n){const o=t.children;if(0===o.length)return;const r=e/n;for(let i=0;i<o.length;i++){const t=o[i];C(t,{left:`${Math.round(r*i)}px`,width:`${Math.round(r)}px`})}w(t,"width",`${e}px`)}(this.colBar,this.tableEl.offsetWidth,this.numCols),function(t,e){const n=t.children;if(0===n.length)return;const o=e.querySelectorAll(":scope > tbody > tr"),r=e.offsetTop;let i=0;for(let l=0;l<n.length;l++){const t=n[l],e=o[l];if(e){const n=e.offsetTop-r,o=e.offsetHeight;C(t,{top:`${n}px`,height:`${o}px`}),i=n+o}}w(t,"height",`${i}px`)}(this.rowBar,this.tableEl),function(t,e,n,o){const r=ct(n,o),i=n.offsetHeight,l=n.offsetWidth;C(t,{width:`${l}px`,left:`${r.left}px`}),C(e,{height:`${i}px`,top:`${r.top}px`})}(this.addRowZone,this.addColZone,this.tableEl,this.container)}showHorizontalLine(t){this.activeRowIndex=t.index;const e=ct(this.tableEl,this.container);C(this.insertLineH,{top:e.top+t.position-1+"px",left:`${e.left}px`,width:`${this.tableEl.offsetWidth}px`}),this.insertLineH.classList.add("ntbl-insert-line--visible")}showVerticalLine(t){this.activeColIndex=t.index;const e=ct(this.tableEl,this.container);C(this.insertLineV,{left:e.left+t.position-1+"px",top:`${e.top}px`,height:`${this.tableEl.offsetHeight}px`}),this.insertLineV.classList.add("ntbl-insert-line--visible")}hideInsertLines(){this.hideHorizontalLine(),this.hideVerticalLine()}hideHorizontalLine(){this.insertLineH.classList.remove("ntbl-insert-line--visible"),this.activeRowIndex=-1}hideVerticalLine(){this.insertLineV.classList.remove("ntbl-insert-line--visible"),this.activeColIndex=-1}rebuildColHandles(){this.colBar.innerHTML="";for(let t=0;t<this.numCols;t++){const e=at("ntbl-col-handle",t,this.locale.deleteColumn,t=>{this.dispatchTransaction(q(this.getState(),this.tableId,t))});this.colBar.appendChild(e)}}rebuildRowHandles(){this.rowBar.innerHTML="";for(let t=0;t<this.numRows;t++){const e=at("ntbl-row-handle",t,this.locale.deleteRow,t=>{this.dispatchTransaction(O(this.getState(),this.tableId,t))});this.rowBar.appendChild(e)}}}function ut(t,e){"none"===e?(w(t,"--ntbl-border-color","transparent"),t.classList.add("notectl-table--borderless")):e?(w(t,"--ntbl-border-color",e),t.classList.remove("notectl-table--borderless")):(I(t,"--ntbl-border-color"),t.classList.remove("notectl-table--borderless"))}const bt=new d("tableSelection"),pt={maxPickerRows:8,maxPickerCols:8},ht="border-collapse: collapse; width: 100%; table-layout: fixed",ft="border: 1px solid var(--ntbl-bc, #d0d0d0); padding: 8px 12px; vertical-align: top";class mt{id="table";name="Table";priority=40;config;locale;selectionService=null;cleanupMouseSelection=null;context=null;constructor(t){this.config={...pt,...t}}async init(t){this.locale=await u(t,this.config.locale,T,N),t.registerStyleSheet('\n/* Table */\n.notectl-table-wrapper {\n\tmargin: 8px 0;\n\toverflow-x: auto;\n\tposition: relative;\n}\n\n.notectl-table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n\ttable-layout: fixed;\n}\n\n.notectl-table td {\n\tborder: 1px solid var(--ntbl-border-color, var(--notectl-border));\n\tpadding: 8px 12px;\n\tmin-width: 60px;\n\tvertical-align: top;\n\tmin-height: 1.6em;\n}\n\n.notectl-table--borderless td {\n\tborder: 1px dashed rgba(128, 128, 128, 0.15);\n}\n\n@media print {\n\t.notectl-table--borderless td {\n\t\tborder: none;\n\t}\n}\n\n.notectl-table td:focus-within {\n\toutline: 2px solid var(--notectl-primary);\n\toutline-offset: -2px;\n}\n\n.notectl-table-cell--selected {\n\tbackground: var(--notectl-primary-muted);\n}\n\n/* Table Context Menu */\n.notectl-table-context-menu {\n\tposition: fixed;\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tbox-shadow: 0 4px 12px var(--notectl-shadow);\n\tpadding: 4px 0;\n\tmin-width: 180px;\n\tz-index: 10000;\n}\n\n.notectl-table-context-menu button {\n\tdisplay: block;\n\twidth: 100%;\n\tpadding: 8px 12px;\n\ttext-align: start;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tfont-family: inherit;\n}\n\n.notectl-table-context-menu button:hover {\n\tbackground: var(--notectl-hover-bg);\n}\n\n.notectl-table-context-menu hr {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 4px 0;\n}\n\n/* === Table Controls === */\n\n/* Outer container for table + controls */\n.ntbl-container {\n\tposition: relative;\n\tmargin: 8px 0;\n\tpadding-block-start: 24px;\n\tpadding-inline-start: 24px;\n}\n\n.ntbl-container .notectl-table-wrapper {\n\tmargin: 0;\n}\n\n.ntbl-container.notectl-table--selected .notectl-table-wrapper {\n\toutline: 2px solid var(--notectl-primary-fg);\n\toutline-offset: 2px;\n\tborder-radius: 6px;\n}\n\n/* --- Column Handle Bar --- */\n.ntbl-col-bar {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 24px;\n\theight: 20px;\n\tdisplay: flex;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tz-index: 3;\n\tpointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-col-bar,\n.ntbl-container:focus-within .ntbl-col-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-col-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n/* --- Row Handle Bar --- */\n.ntbl-row-bar {\n\tposition: absolute;\n\ttop: 24px;\n\tinset-inline-start: 0;\n\twidth: 20px;\n\tdisplay: flex;\n\tflex-direction: column;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tz-index: 3;\n\tpointer-events: none;\n}\n\n.ntbl-container:hover .ntbl-row-bar,\n.ntbl-container:focus-within .ntbl-row-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-row-bar {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n/* --- Handle (shared base) --- */\n.ntbl-handle {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\ttransition: background 0.15s ease;\n\tborder-radius: 3px;\n}\n\n.ntbl-col-handle {\n\theight: 100%;\n\tbackground: var(--notectl-hover-bg);\n\tborder-radius: 4px 4px 0 0;\n}\n\n.ntbl-col-handle:hover {\n\tbackground: var(--notectl-border);\n}\n\n.ntbl-row-handle {\n\twidth: 100%;\n\tbackground: var(--notectl-hover-bg);\n\tborder-start-start-radius: 4px;\n\tborder-end-start-radius: 4px;\n}\n\n.ntbl-row-handle:hover {\n\tbackground: var(--notectl-border);\n}\n\n/* --- Handle Delete Button --- */\n.ntbl-handle-delete {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 16px;\n\theight: 16px;\n\tborder: none;\n\tbackground: transparent;\n\tcolor: var(--notectl-fg-muted);\n\tcursor: pointer;\n\tborder-radius: 3px;\n\tpadding: 0;\n\topacity: 0;\n\ttransform: scale(0.7);\n\ttransition: opacity 0.15s, transform 0.15s,\n\t\tbackground 0.15s, color 0.15s;\n}\n\n.ntbl-handle:hover .ntbl-handle-delete,\n.ntbl-handle:focus-within .ntbl-handle-delete {\n\topacity: 1;\n\ttransform: scale(1);\n}\n\n.ntbl-handle-delete:hover,\n.ntbl-handle-delete:focus-visible {\n\tbackground: var(--notectl-danger-muted);\n\tcolor: var(--notectl-danger);\n}\n\n.ntbl-handle-delete:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Insert Lines --- */\n.ntbl-insert-line {\n\tposition: absolute;\n\tpointer-events: none;\n\topacity: 0;\n\ttransition: opacity 0.15s ease;\n\tz-index: 6;\n}\n\n.ntbl-insert-line--visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n.ntbl-insert-line--horizontal {\n\theight: 2px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\ttransparent,\n\t\tvar(--notectl-primary) 8%,\n\t\tvar(--notectl-primary) 92%,\n\t\ttransparent\n\t);\n\tbox-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--vertical {\n\twidth: 2px;\n\tbackground: linear-gradient(\n\t\t180deg,\n\t\ttransparent,\n\t\tvar(--notectl-primary) 8%,\n\t\tvar(--notectl-primary) 92%,\n\t\ttransparent\n\t);\n\tbox-shadow: 0 0 6px var(--notectl-focus-ring);\n}\n\n/* --- Insert Button on Line --- */\n.ntbl-insert-btn {\n\tposition: absolute;\n\twidth: 20px;\n\theight: 20px;\n\tborder-radius: 50%;\n\tbackground: var(--notectl-bg);\n\tborder: 2px solid var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n\tcursor: pointer;\n\tpointer-events: all;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tpadding: 0;\n\tbox-shadow: 0 2px 8px var(--notectl-focus-ring);\n\ttransition: background 0.15s, color 0.15s,\n\t\ttransform 0.15s, box-shadow 0.15s;\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn {\n\tleft: 50%;\n\ttop: -9px;\n\ttransform: translateX(-50%);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn {\n\ttop: 50%;\n\tinset-inline-start: -9px;\n\ttransform: translateY(-50%);\n}\n\n.ntbl-insert-btn:hover,\n.ntbl-insert-btn:focus-visible {\n\tbackground: var(--notectl-primary);\n\tcolor: var(--notectl-bg);\n\tbox-shadow: 0 2px 12px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-insert-line--horizontal .ntbl-insert-btn:hover {\n\ttransform: translateX(-50%) scale(1.2);\n}\n\n.ntbl-insert-line--vertical .ntbl-insert-btn:hover {\n\ttransform: translateY(-50%) scale(1.2);\n}\n\n/* --- Add Row / Add Column Zones --- */\n.ntbl-add-zone {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\tuser-select: none;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.2s ease,\n\t\tborder-color 0.2s ease;\n}\n\n.ntbl-container:hover .ntbl-add-zone,\n.ntbl-container:focus-within .ntbl-add-zone {\n\topacity: 1;\n}\n\n.ntbl-container.notectl-table--selected .ntbl-add-zone {\n\topacity: 1;\n}\n\n.ntbl-delete-table-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 0;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-danger);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n\tcolor: var(--notectl-danger);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n}\n\n.ntbl-container:hover .ntbl-delete-table-btn,\n.ntbl-container:focus-within .ntbl-delete-table-btn,\n.ntbl-container.notectl-table--selected .ntbl-delete-table-btn {\n\topacity: 1;\n}\n\n.ntbl-delete-table-btn:hover,\n.ntbl-delete-table-btn:focus-visible {\n\tbackground: var(--notectl-danger-muted);\n\tborder-color: var(--notectl-danger);\n}\n\n.ntbl-delete-table-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Context Menu Discovery Hint --- */\n.ntbl-context-hint {\n\tposition: absolute;\n\ttop: 4px;\n\tinset-inline-end: 0;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tpadding: 2px 8px;\n\tborder-radius: 4px;\n\topacity: 0;\n\ttransition: opacity 0.2s ease;\n\tpointer-events: none;\n\twhite-space: nowrap;\n\tz-index: 5;\n}\n\n.ntbl-container:hover .ntbl-context-hint,\n.ntbl-container:focus-within .ntbl-context-hint,\n.ntbl-container.notectl-table--selected .ntbl-context-hint {\n\topacity: 1;\n}\n\n/* --- Table Actions Button --- */\n.ntbl-actions-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 48px;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n\tcolor: var(--notectl-fg-muted);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n\tcursor: pointer;\n\tpadding: 0;\n}\n\n.ntbl-container:hover .ntbl-actions-btn,\n.ntbl-container:focus-within .ntbl-actions-btn,\n.ntbl-container.notectl-table--selected .ntbl-actions-btn {\n\topacity: 1;\n}\n\n.ntbl-actions-btn:hover,\n.ntbl-actions-btn:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\tborder-color: var(--notectl-primary);\n}\n\n.ntbl-actions-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n/* --- Border Color Button --- */\n.ntbl-border-color-btn {\n\tposition: absolute;\n\ttop: 0;\n\tinset-inline-start: 24px;\n\twidth: 20px;\n\theight: 20px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n\tcolor: var(--notectl-fg-muted);\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\topacity: 0;\n\ttransition: opacity 0.2s ease, background 0.15s, border-color 0.15s;\n\tz-index: 7;\n\tcursor: pointer;\n\tpadding: 0;\n}\n\n.ntbl-container:hover .ntbl-border-color-btn,\n.ntbl-container:focus-within .ntbl-border-color-btn,\n.ntbl-container.notectl-table--selected .ntbl-border-color-btn {\n\topacity: 1;\n}\n\n.ntbl-border-color-btn:hover,\n.ntbl-border-color-btn:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\tborder-color: var(--notectl-primary);\n}\n\n.ntbl-border-color-btn:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-border-color-swatch {\n\twidth: 10px;\n\theight: 10px;\n\tborder-radius: 2px;\n\tborder: 1px solid rgba(0, 0, 0, 0.15);\n}\n\n/* --- Context Menu Keyboard Hint --- */\n.notectl-table-context-menu__hint {\n\tpadding: 4px 12px 6px;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin-top: 4px;\n\ttext-align: center;\n\tuser-select: none;\n}\n\n/* --- Context Menu Focus --- */\n.notectl-table-context-menu button:focus-visible {\n\toutline: none;\n\tbackground: var(--notectl-primary-muted);\n\tbox-shadow: inset 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.notectl-table-context-menu [role="separator"] {\n\tborder: none;\n\tborder-top: 1px solid var(--notectl-border);\n\tmargin: 4px 0;\n\theight: 0;\n}\n\n.ntbl-add-row {\n\tbottom: 0;\n\theight: 24px;\n\tborder: 1px dashed var(--notectl-border);\n\tborder-end-start-radius: 6px;\n\tborder-end-end-radius: 6px;\n\tborder-block-start: none;\n\tcolor: var(--notectl-fg-muted);\n\ttransform: translateY(100%);\n}\n\n.ntbl-add-row:hover,\n.ntbl-add-row:focus-visible {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n}\n\n.ntbl-add-row:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-col {\n\tinset-inline-end: 0;\n\ttop: 24px;\n\twidth: 24px;\n\tborder: 1px dashed var(--notectl-border);\n\tborder-start-end-radius: 6px;\n\tborder-end-end-radius: 6px;\n\tborder-inline-start: none;\n\tcolor: var(--notectl-fg-muted);\n\ttransform: translateX(100%);\n}\n\n[dir="rtl"] .ntbl-add-col {\n\ttransform: translateX(-100%);\n}\n\n.ntbl-add-col:hover,\n.ntbl-add-col:focus-visible {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n\tcolor: var(--notectl-primary);\n}\n\n.ntbl-add-col:focus-visible {\n\toutline: none;\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n}\n\n.ntbl-add-icon {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttransition: transform 0.2s ease;\n}\n\n.ntbl-add-zone:hover .ntbl-add-icon {\n\ttransform: scale(1.15);\n}\n'),this.context=t,this.registerNodeSpecs(t),this.registerNodeViews(t),X(t,this.locale),t.registerCommand("resetTableBorderColor",()=>z(t,this.locale)),function(t,e){const n={Tab:()=>function(t,e){return U(t,(n,o,r)=>r.colIndex<r.totalCols-1?Q(t,r.tableId,r.rowIndex,r.colIndex+1):r.rowIndex<r.totalRows-1?Q(t,r.tableId,r.rowIndex+1,0):(Y(t,e),!0))}(t,e),"Shift-Tab":()=>function(t){return U(t,(e,n,o)=>o.colIndex>0?Q(t,o.tableId,o.rowIndex,o.colIndex-1):!(o.rowIndex>0)||Q(t,o.tableId,o.rowIndex-1,o.totalCols-1))}(t),Backspace:()=>function(t){return U(t,(e,n,o)=>{if(!a(n))return!1;if(0!==n.anchor.offset)return!1;if(0!==o.rowIndex||0!==o.colIndex)return!1;const r=B(e,o.cellId);return n.anchor.blockId===r&&et(t,o.tableId)})}(t),Delete:()=>function(t){return U(t,(e,n,o)=>{if(!a(n))return!1;const r=e.getBlock(n.anchor.blockId);if(!r)return!1;const i=v(r);if(n.anchor.offset!==i)return!1;if(o.rowIndex!==o.totalRows-1||o.colIndex!==o.totalCols-1)return!1;const l=R(e,o.cellId);return n.anchor.blockId===l&&et(t,o.tableId)})}(t),ArrowDown:()=>function(t){return U(t,(e,n,o)=>{const r=R(e,o.cellId);return n.anchor.blockId===r&&(o.rowIndex>=o.totalRows-1?G(t):Q(t,o.tableId,o.rowIndex+1,o.colIndex))})}(t),ArrowUp:()=>function(t){return U(t,(e,n,o)=>{const r=B(e,o.cellId);return n.anchor.blockId===r&&!(o.rowIndex<=0)&&Q(t,o.tableId,o.rowIndex-1,o.colIndex)})}(t),ArrowRight:()=>function(t){return U(t,(e,n,o)=>{if(!a(n))return!1;const r=e.getBlock(n.anchor.blockId);if(!r)return!1;const i=v(r);if(n.anchor.offset!==i)return!1;const l=R(e,o.cellId);return n.anchor.blockId===l&&(o.colIndex<o.totalCols-1?Q(t,o.tableId,o.rowIndex,o.colIndex+1):!(o.rowIndex<o.totalRows-1)||Q(t,o.tableId,o.rowIndex+1,0))})}(t),ArrowLeft:()=>function(t){return U(t,(e,n,o)=>{if(!a(n))return!1;if(0!==n.anchor.offset)return!1;const r=B(e,o.cellId);return n.anchor.blockId===r&&(o.colIndex>0?tt(t,o.tableId,o.rowIndex,o.colIndex-1):!(o.rowIndex>0)||tt(t,o.tableId,o.rowIndex-1,o.totalCols-1))})}(t),Escape:()=>G(t),"Shift-F10":()=>function(t){return U(t,(e,n,o)=>{const r=t.getContainer(),i=r.querySelector(`[data-block-id="${o.cellId}"]`);if(!i)return!1;const l=i.getBoundingClientRect(),s=new DOMRect(l.left+l.width/2,l.bottom,0,0),a=r.querySelector(`[data-block-id="${o.tableId}"].ntbl-container`)??r;return J?.close(),J=W(a,t,o.tableId,s,()=>{J=null}),!0})}(t)};t.registerKeymap(n,{priority:"context"})}(t,this.locale),this.registerToolbarItem(t),this.selectionService=function(t){let e=null,n=[],o=/* @__PURE__ */new Set;function r(){if(!e)return n=[],void(o=/* @__PURE__ */new Set);const r=t.getState(),i=[],l=Math.min(e.fromRow,e.toRow),s=Math.max(e.fromRow,e.toRow),a=Math.min(e.fromCol,e.toCol),c=Math.max(e.fromCol,e.toCol);for(let t=l;t<=s;t++)for(let n=a;n<=c;n++){const o=A(r,e.tableId,t,n);o&&i.push(o)}n=i,o=new Set(i)}const i={getSelectedRange:()=>e,setSelectedRange(n){e=n,r();const o=t.getState();t.dispatch(o.transaction("api").setSelection(o.selection).build())},clearSelectionSilent(){e=null,r()},getSelectedCellIds:()=>n,isSelected:t=>o.has(t)};return t.registerService(bt,i),i}(t)}onReady(){this.context&&this.selectionService&&(this.cleanupMouseSelection=function(t,e){const n=t.getContainer();let o=null,r=!1;function i(n){const i=n.target.closest("td[data-block-id]");if(i)if(n.shiftKey){if(o){const r=L(t.getState(),i.getAttribute("data-block-id"));if(!r||r.tableId!==o.tableId)return;n.preventDefault(),e.setSelectedRange({tableId:o.tableId,fromRow:o.row,fromCol:o.col,toRow:r.rowIndex,toCol:r.colIndex})}}else{e.setSelectedRange(null);const n=L(t.getState(),i.getAttribute("data-block-id"));if(!n)return;o={tableId:n.tableId,row:n.rowIndex,col:n.colIndex},r=!0}else e.setSelectedRange(null)}function l(n){if(!r||!o)return;const i=n.target.closest("td[data-block-id]");if(!i)return;const l=L(t.getState(),i.getAttribute("data-block-id"));l&&l.tableId===o.tableId&&(l.rowIndex===o.row&&l.colIndex===o.col||(n.preventDefault(),e.setSelectedRange({tableId:o.tableId,fromRow:o.row,fromCol:o.col,toRow:l.rowIndex,toCol:l.colIndex})))}function s(){r=!1}return n.addEventListener("mousedown",i),n.addEventListener("mousemove",l),document.addEventListener("mouseup",s),()=>{n.removeEventListener("mousedown",i),n.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)}}(this.context,this.selectionService))}destroy(){this.cleanupMouseSelection?.(),this.cleanupMouseSelection=null,this.selectionService=null,this.context=null}decorations(n){if(!this.selectionService)return t.empty;if(!this.selectionService.getSelectedRange())return t.empty;const r=n.selection;if(!o(r)||!E(n,r.anchor.blockId))return this.selectionService.clearSelectionSilent(),t.empty;const i=this.selectionService.getSelectedCellIds();if(0===i.length)return t.empty;const l=[];for(const t of i)l.push(e(t,{class:"notectl-table-cell--selected"}));return t.create(l)}registerNodeSpecs(t){t.registerNodeSpec({type:"table",group:"block",content:{allow:["table_row"],min:1},isolating:!0,selectable:!0,toDOM(t){const e=document.createElement("div");return e.className="notectl-table-wrapper",e.setAttribute("data-block-id",t.id),e},toHTML(t,e,o){const r=t.attrs?.borderColor,i=function(t){return t?"none"===t?`${ht}; --ntbl-bc: transparent`:c(t)?`${ht}; --ntbl-bc: ${n(t)}`:ht:ht}(r);return`<table${o?.styleAttr(i)??` style="${i}"`}>${e}</table>`},sanitize:{tags:["table","tbody"]}}),t.registerNodeSpec({type:"table_row",group:"table_content",content:{allow:["table_cell"],min:1},toDOM(t){const e=document.createElement("tr");return e.setAttribute("data-block-id",t.id),e.setAttribute("role","row"),e},toHTML:(t,e)=>`<tr>${e}</tr>`,sanitize:{tags:["tr"]}}),t.registerNodeSpec({type:"table_cell",group:"table_content",content:{allow:["paragraph","list_item","heading","blockquote","image","horizontal_rule"]},isolating:!0,toDOM(t){const e=document.createElement("td");return e.setAttribute("data-block-id",t.id),e.setAttribute("role","cell"),e},toHTML(t,e,n){const o=t.attrs?.colspan??1,r=t.attrs?.rowspan??1,i=[n?.styleAttr(ft)??` style="${ft}"`];return o>1&&i.push(` colspan="${o}"`),r>1&&i.push(` rowspan="${r}"`),`<td${i.join("")}>${e}</td>`},sanitize:{tags:["td"],attrs:["colspan","rowspan"]}})}registerNodeViews(t){t.getSchemaRegistry(),t.registerNodeView("table",function(t,e,n=T){return(t,o,r)=>{const i=document.createElement("div");i.className="ntbl-container",i.setAttribute("data-block-id",t.id),i.setAttribute("data-selectable","true");const l=document.createElement("div");l.className="notectl-table-wrapper";const s=document.createElement("table");s.className="notectl-table",s.setAttribute("role","table");const a=h(t),c=a.length,d=a[0]?h(a[0]).length:0;s.setAttribute("aria-label",n.tableAriaLabel(c,d)),s.setAttribute("aria-description",n.tableAriaDescription);const u=document.createElement("tbody");s.appendChild(u),l.appendChild(s),i.appendChild(l),ut(s,t.attrs?.borderColor);const b=document.createElement("div");b.className="notectl-sr-only",b.setAttribute("aria-live","polite"),b.setAttribute("aria-atomic","true"),i.appendChild(b);const p=function(t,e,n,o,r,i,l){return new dt(t,e,n,o,r,i,l)}(i,s,t,o,r,e,n);let f=null,m=t.id;const g=t=>{if(!e)return;t.preventDefault(),t.stopPropagation(),f?.close();const o=new DOMRect(t.clientX,t.clientY,0,0);f=W(i,e,m,o,()=>{f=null},n)};return s.addEventListener("contextmenu",g),{dom:i,contentDOM:u,update(t){if("table"!==t.type)return!1;m=t.id,i.setAttribute("data-block-id",t.id),i.setAttribute("data-selectable","true");const e=h(t),o=e.length,r=e[0]?h(e[0]).length:0;return s.setAttribute("aria-label",n.tableAriaLabel(o,r)),ut(s,t.attrs?.borderColor),p.update(t),!1},destroy(){f?.destroy(),s.removeEventListener("contextmenu",g),p.destroy()},selectNode(){i.classList.add("notectl-table--selected")},deselectNode(){i.classList.remove("notectl-table--selected")}}}}(0,t,this.locale)),t.registerNodeView("table_row",(t,e,n)=>{const o=document.createElement("tr");return o.setAttribute("data-block-id",t.id),o.setAttribute("role","row"),{dom:o,contentDOM:o,update:t=>("table_row"!==t.type||o.setAttribute("data-block-id",t.id),!1),destroy(){}}}),t.registerNodeView("table_cell",(t,e,n)=>{const o=document.createElement("td");o.setAttribute("data-block-id",t.id),o.setAttribute("role","cell");const r=t.attrs?.colspan??1,i=t.attrs?.rowspan??1;r>1&&(o.colSpan=r),i>1&&(o.rowSpan=i);const l=t.attrs?.align;return l&&"left"!==l&&w(o,"textAlign",l),{dom:o,contentDOM:o,update(t){if("table_cell"!==t.type)return!1;o.setAttribute("data-block-id",t.id);const e=t.attrs?.colspan??1,n=t.attrs?.rowspan??1;return e>1?o.colSpan=e:o.removeAttribute("colspan"),n>1?o.rowSpan=n:o.removeAttribute("rowspan"),!1},destroy(){}}})}registerToolbarItem(t){const e=this.config.maxPickerRows??8,n=this.config.maxPickerCols??8;t.registerToolbarItem({id:"table",group:"insert",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3h18v18H3V3zm2 2v4h6V5H5zm8 0v4h6V5h-6zm-8 6v4h6v-4H5zm8 0v4h6v-4h-6zm-8 6v4h6v-4H5zm8 0v4h6v-4h-6z"/></svg>',label:this.locale.insertTable,tooltip:this.locale.insertTable,command:"insertTable",popupType:"gridPicker",popupConfig:{maxRows:e,maxCols:n,onSelect:(e,n)=>{Z(t,e,n)}},isActive:t=>!!o(t.selection)&&E(t,t.selection.anchor.blockId)})}}export{mt as TablePlugin,bt as TableSelectionServiceKey};
2
- //# sourceMappingURL=table.mjs.map
1
+ import{n as s,t as a}from"../chunks/TablePlugin-D_7bgrqm.mjs";export{a as TablePlugin,s as TableSelectionServiceKey};
@@ -1,2 +1 @@
1
- import{C as e}from"../chunks/color-picker-Byjl_xr9.mjs";import{a as t}from"../chunks/HTMLUtils-Cxy99Ak2.mjs";import{a as o}from"../chunks/StyleRuntime-BmsLoEa8.mjs";import{r,i as s,b as c}from"../chunks/ColorPickerPopup-CDUvkgcK.mjs";import{r as a,i as l}from"../chunks/ColorValidation-DCSKq9B2.mjs";import{r as i}from"../chunks/PluginHelpers-CdPR0MuT.mjs";const f={label:"Text Color",tooltip:"Text Color",resetLabel:"Default",ariaLabelPrefix:"Text color"},n=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("../chunks/ar-CL3QL0tw.mjs"),"./locales/de.ts":()=>import("../chunks/de-D1OAXtxJ.mjs"),"./locales/es.ts":()=>import("../chunks/es-CBk43isB.mjs"),"./locales/fr.ts":()=>import("../chunks/fr-gurfH-7T.mjs"),"./locales/hi.ts":()=>import("../chunks/hi-DtlvSQkD.mjs"),"./locales/pt.ts":()=>import("../chunks/pt-C-Vp7Rxj.mjs"),"./locales/ru.ts":()=>import("../chunks/ru-B3O7WXNM.mjs"),"./locales/zh.ts":()=>import("../chunks/zh-BfeWdPIz.mjs")});async function m(e){if("en"===e)return f;const t=n[`./locales/${e}.ts`];if(!t)return f;try{return(await t()).default}catch{return f}}const p=["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff","#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff","#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc","#dd7e6b","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#a4c2f4","#9fc5e8","#b4a7d6","#d5a6bd","#cc4125","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6d9eeb","#6fa8dc","#8e7cc3","#c27ba0","#a61c00","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3c78d8","#3d85c6","#674ea7","#a64d79","#85200c","#990000","#b45f06","#bf9000","#38761d","#134f5c","#1155cc","#0b5394","#351c75","#741b47"];class d{id="textColor";name="Text Color";priority=23;config;colors;locale;constructor(e){this.config={...e},this.colors=a(e?.colors,p,"TextColorPlugin")}async init(t){this.locale=await i(t,this.config.locale,f,m),t.registerStyleSheet(e),this.registerMarkSpec(t),this.registerCommands(t),this.registerToolbarItem(t)}registerMarkSpec(e){e.registerMarkSpec({type:"textColor",rank:5,attrs:{color:{default:""}},toDOM(e){const t=document.createElement("span"),r=e.attrs?.color??"";return o(t,"color",r),t},toHTMLString:(e,o,r)=>{const s=String(e.attrs?.color??"");if(!s||!l(s))return o;const c=`color: ${t(s)}`;return`<span${r?.styleAttr(c)??` style="${c}"`}>${o}</span>`},toHTMLStyle:e=>{const o=String(e.attrs?.color??"");return o&&l(o)?`color: ${t(o)}`:null},parseHTML:[{tag:"span",getAttrs:e=>{const t=e.style.color;return!(!t||!l(t))&&{color:t}}}],sanitize:{tags:["span"]}})}registerCommands(e){e.registerCommand("removeTextColor",()=>r(e,e.getState(),"textColor"))}registerToolbarItem(e){const t=['<svg xmlns="http://www.w3.org/2000/svg"',' viewBox="0 0 24 24">','<path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/>','<rect x="3" y="19.5" width="18" height="3"',' rx="0.5" fill="#e53935"/>',"</svg>"].join("");e.registerToolbarItem({id:"textColor",group:"format",icon:t,label:this.locale.label,tooltip:this.locale.tooltip,command:"removeTextColor",popupType:"custom",renderPopup:(e,t,o)=>{c(e,t,{markType:"textColor",colors:this.colors,columns:10,resetLabel:this.locale.resetLabel,resetCommand:"removeTextColor",ariaLabelPrefix:this.locale.ariaLabelPrefix,onClose:o})},isActive:e=>s(e,"textColor")})}}export{f as TEXT_COLOR_LOCALE_EN,d as TextColorPlugin,m as loadTextColorLocale};
2
- //# sourceMappingURL=text-color.mjs.map
1
+ import{n as o,r,t as s}from"../chunks/TextColorPlugin-Dfhvl1qG.mjs";export{o as TEXT_COLOR_LOCALE_EN,s as TextColorPlugin,r as loadTextColorLocale};
@@ -1,2 +1 @@
1
- import{i as t,a as e,r as i}from"../chunks/AttributedMarkCommands-x7h4Xy7V.mjs";import{a as o}from"../chunks/HTMLUtils-Cxy99Ak2.mjs";import{j as r,i as n,h as s}from"../chunks/Selection-DhbizDM4.mjs";import{m as a}from"../chunks/TypeBrands-Bp_Z_o5Y.mjs";import{a as l}from"../chunks/Platform-CU6itXZo.mjs";import{r as c,g as d}from"../chunks/PluginHelpers-CdPR0MuT.mjs";import{f as u}from"../chunks/ShortcutFormatting-BLKS0Gys.mjs";import{d as h,f as m,g,S as p,l as f,T as b}from"../chunks/TextDirectionLocale-BraFI9JF.mjs";import{i as v,b as T}from"../chunks/Document-HC8s50qJ.mjs";function y(t,e,i){const o=t.getNodePath(e.id);if(o)return{type:"setNodeAttr",path:o,attrs:{...e.attrs,dir:i},previousAttrs:e.attrs}}function B(t,e,i,o){const r=e.getBlock(t.blockId);if(!r||!i.has(r.type))return;const n=v(r);if("auto"!==g(r)&&n.length>0)return;const s=T(r,t.offset),a=n.slice(0,s)+t.text+n.slice(s),l=h(a);if(!l)return;const c=y(e,r,l);c&&o.push(c)}function D(t,e,i,o){const r=e.getBlock(t.blockId);if(!r||!i.has(r.type))return;const n=g(r);if("auto"===n)return;const s=v(r),a=T(r,t.from),l=T(r,t.to),c=s.slice(0,a)+s.slice(l);if(0===c.length){const t=y(e,r,"auto");return void(t&&o.push(t))}const d=h(c);if(!d||d===n)return;const u=y(e,r,d);u&&o.push(u)}const w={directableTypes:["paragraph","heading","title","subtitle","table_cell","blockquote","list_item"]},k={ltr:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/></svg>',rtl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zM8 14l-4 4 4 4v-3h12v-2H8v-3z"/></svg>',auto:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm3 8l-4-4v3H3v2h5v3l4-4zm7 0v-3l4 4-4 4v-3h-5v-2h5z"/></svg>'},S=["ltr","rtl","auto"];class x{id="text-direction";name="Text Direction";priority=91;config;locale;directableTypes;shiftDirHandler=null;constructor(t){this.config={...w,...t}}async init(t){this.locale=await c(t,this.config.locale,b,f),this.directableTypes=new Set(this.config.directableTypes),this.patchNodeSpecs(t),this.registerBdiMark(t),this.registerCommands(t),this.registerKeymaps(t),this.registerToolbarItem(t),this.registerInlineToolbarItem(t),function(t,e){t.registerMiddleware((t,i,o)=>{let r=!1;const n=t.steps.map(t=>{if("setBlockType"!==t.type)return t;if(!e.has(t.nodeType))return t;const i=t.previousAttrs?.dir;return i&&"auto"!==i?(r=!0,{...t,attrs:{...t.attrs,dir:i}}):t});o(r?{...t,steps:n}:t)},{name:"text-direction:preserve-dir"})}(t,this.directableTypes),function(t,e){t.registerMiddleware((t,i,o)=>{const r=[];for(const n of t.steps)"insertText"===n.type?B(n,i,e,r):"deleteText"===n.type&&D(n,i,e,r);o(r.length>0?{...t,steps:[...t.steps,...r]}:t)},{name:"text-direction:auto-detect"})}(t,this.directableTypes),function(t,e){t.registerMiddleware((t,i,o)=>{let r=!1;const n=t.steps.map(t=>{if("insertNode"!==t.type)return t;if(!e.has(t.node.type))return t;if("auto"!==String(t.node.attrs?.dir??"auto"))return t;const o=v(t.node);if(o.length>0){const e=h(o);if(e)return r=!0,{...t,node:{...t.node,attrs:{...t.node.attrs,dir:e}}}}const n=m(i,t.parentPath,t.index);return n&&"auto"!==n?(r=!0,{...t,node:{...t.node,attrs:{...t.node.attrs,dir:n}}}):t});o(r?{...t,steps:n}:t)},{name:"text-direction:inherit-dir"})}(t,this.directableTypes),l()||(this.shiftDirHandler=new p(t),this.shiftDirHandler.attach(t.getContainer()))}destroy(){this.shiftDirHandler?.detach(),this.shiftDirHandler=null}patchNodeSpecs(t){const e=t.getSchemaRegistry();for(const i of this.config.directableTypes){const t=e.getNodeSpec(i);if(!t)continue;if(t.attrs?.dir)continue;const o=t.toDOM;e.removeNodeSpec(i),e.registerNodeSpec({...t,attrs:{...t.attrs,dir:{default:"auto"}},toDOM(e){const i=o.call(t,e);return L(i,e),i}})}}registerBdiMark(t){t.registerMarkSpec({type:"bdi",rank:10,attrs:{dir:{default:"auto"}},toDOM(t){const e=document.createElement("bdi"),i=String(t.attrs?.dir??"auto");return e.setAttribute("dir",i),e},toHTMLString:(t,e)=>`<bdi dir="${o(String(t.attrs?.dir??"auto"))}">${e}</bdi>`,parseHTML:[{tag:"bdi",getAttrs:t=>{const e=t.getAttribute("dir");return"ltr"===e||"rtl"===e?{dir:e}:{dir:"auto"}}}],sanitize:{tags:["bdi"],attrs:["dir"]}})}registerCommands(t){t.registerCommand("setDirectionLTR",()=>{const e=this.setDirection(t,"ltr");return e&&t.announce(this.locale.announceLTR),e}),t.registerCommand("setDirectionRTL",()=>{const e=this.setDirection(t,"rtl");return e&&t.announce(this.locale.announceRTL),e}),t.registerCommand("setDirectionAuto",()=>{const e=this.setDirection(t,"auto");return e&&t.announce(this.locale.announceAuto),e}),t.registerCommand("toggleBidiLTR",()=>{const e=this.applyBdi(t,"ltr");return e&&t.announce(this.locale.inlineLTR),e}),t.registerCommand("toggleBidiRTL",()=>{const e=this.applyBdi(t,"rtl");return e&&t.announce(this.locale.inlineRTL),e}),t.registerCommand("toggleBidiAuto",()=>{const e=this.applyBdi(t,"auto");return e&&t.announce(this.locale.inlineAuto),e}),t.registerCommand("removeBidi",()=>{const e=this.removeBdi(t);return e&&t.announce(this.locale.announceRemoveBidi),e}),t.registerCommand("toggleBidiIsolation",()=>this.toggleBidiIsolation(t)),t.registerCommand("toggleDirection",()=>{const e=t.getState(),i=d(e);if(!i||!this.directableTypes.has(i.type))return!1;const o=g(i),r="auto"===o?"rtl":"rtl"===o?"ltr":"auto";return this.setDirection(t,r)})}registerKeymaps(t){t.registerKeymap({"Mod-Shift-D":()=>t.executeCommand("toggleDirection"),"Mod-Shift-B":()=>t.executeCommand("toggleBidiIsolation")})}registerToolbarItem(t){const e={ltr:"setDirectionLTR",rtl:"setDirectionRTL",auto:"setDirectionAuto"},i=S.map(t=>({label:this.getDirectionLabel(t),command:e[t],icon:k[t]}));t.registerToolbarItem({id:"text-direction",group:"block",icon:k.auto,label:this.locale.toolbarLabel,tooltip:`${this.locale.toolbarTooltip} (${u("Mod-Shift-D")})`,command:"setDirectionAuto",popupType:"dropdown",popupConfig:{items:i},isActive:t=>this.isNonDefaultDirection(t),isEnabled:t=>this.isDirectable(t),getIcon:t=>{const e=d(t);if(!e)return k.auto;const i=g(e);return k[i]??k.auto}})}registerInlineToolbarItem(e){const i=[{label:this.locale.inlineLTR,command:"toggleBidiLTR",icon:k.ltr},{label:this.locale.inlineRTL,command:"toggleBidiRTL",icon:k.rtl},{label:this.locale.inlineAuto,command:"toggleBidiAuto",icon:k.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} (${u("Mod-Shift-B")})`,command:"toggleBidiIsolation",popupType:"dropdown",popupConfig:{items:i},isActive:e=>t(e,"bdi"),isEnabled:t=>{const e=t.selection;return r(e)&&!n(e)}})}getDirectionLabel(t){return"ltr"===t?this.locale.ltr:"rtl"===t?this.locale.rtl:this.locale.auto}setDirection(t,e){const i=t.getState(),o=this.getSelectedBlockIds(i);if(0===o.length)return!1;const r=i.transaction("command");let n=!1;for(const a of o){const t=i.getBlock(a);if(!t||!this.directableTypes.has(t.type))continue;const o=i.getNodePath(a);o&&(r.setNodeAttr(o,{...t.attrs,dir:e}),n=!0)}if(!n)return!1;const s=r.setSelection(i.selection).build();return t.dispatch(s),!0}getSelectedBlockIds(t){const e=t.selection;if(s(e))return[e.nodeId];if(!r(e))return[];const i=e.anchor.blockId,o=e.head.blockId;if(i===o)return[i];const n=t.getBlockOrder(),a=n.indexOf(i),l=n.indexOf(o);if(-1===a||-1===l)return[];const c=Math.min(a,l),d=Math.max(a,l);return n.slice(c,d+1)}isNonDefaultDirection(t){const e=d(t);if(!e||!this.directableTypes.has(e.type))return!1;const i=e.attrs?.dir;return null!=i&&"auto"!==i}isDirectable(t){const e=d(t);return null!=e&&this.directableTypes.has(e.type)}toggleBidiIsolation(e){const i=e.getState();if(t(i,"bdi")){const t=this.removeBdi(e);return t&&e.announce(this.locale.announceRemoveBidi),t}const o=d(i),r="rtl"===(o?g(o):"auto")?"ltr":"rtl",n=this.applyBdi(e,r);if(n){const t="ltr"===r?this.locale.inlineLTR:this.locale.inlineRTL;e.announce(t)}return n}applyBdi(t,i){const o=t.getState(),r={type:a("bdi"),attrs:{dir:i}},n=e(o,r);return!!n&&(t.dispatch(n),!0)}removeBdi(t){const e=t.getState(),o=i(e,a("bdi"));return!!o&&(t.dispatch(o),!0)}}function L(t,e){const i=e.attrs?.dir;"ltr"!==i&&"rtl"!==i&&"auto"!==i||t.setAttribute("dir",i)}export{k as DIRECTION_ICONS,b as TEXT_DIRECTION_LOCALE_EN,x as TextDirectionAdvancedPlugin,h as detectTextDirection,m as findSiblingDirection,g as getBlockDir,f as loadTextDirectionLocale};
2
- //# sourceMappingURL=text-direction-advanced.mjs.map
1
+ import{a,i as s,n as t,o as e,t as i}from"../chunks/TextDirectionLocale-rlU1yNly.mjs";import{n,t as o}from"../chunks/text-direction-advanced-B5JuIs0P.mjs";export{o as DIRECTION_ICONS,i as TEXT_DIRECTION_LOCALE_EN,n as TextDirectionAdvancedPlugin,s as detectTextDirection,a as findSiblingDirection,e as getBlockDir,t as loadTextDirectionLocale};
@@ -1,2 +1 @@
1
- import{h as t,j as e}from"../chunks/Selection-DhbizDM4.mjs";import{a as i}from"../chunks/Platform-CU6itXZo.mjs";import{r as o,g as r}from"../chunks/PluginHelpers-CdPR0MuT.mjs";import{f as s}from"../chunks/ShortcutFormatting-BLKS0Gys.mjs";import{S as n,g as c,l as a,T as l}from"../chunks/TextDirectionLocale-BraFI9JF.mjs";import{d as h,f as u}from"../chunks/TextDirectionLocale-BraFI9JF.mjs";const d={directableTypes:["paragraph","heading","title","subtitle","table_cell","blockquote","list_item"]},m={ltr:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/></svg>',rtl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zM8 14l-4 4 4 4v-3h12v-2H8v-3z"/></svg>',auto:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm3 8l-4-4v3H3v2h5v3l4-4zm7 0v-3l4 4-4 4v-3h-5v-2h5z"/></svg>'},g=["ltr","rtl","auto"];class p{id="text-direction";name="Text Direction";priority=91;config;locale;directableTypes;shiftDirHandler=null;constructor(t){this.config={...d,...t}}async init(t){this.locale=await o(t,this.config.locale,l,a),this.directableTypes=new Set(this.config.directableTypes),this.patchNodeSpecs(t),this.registerCommands(t),this.registerKeymaps(t),this.registerToolbarItem(t),i()||(this.shiftDirHandler=new n(t),this.shiftDirHandler.attach(t.getContainer()))}destroy(){this.shiftDirHandler?.detach(),this.shiftDirHandler=null}patchNodeSpecs(t){const e=t.getSchemaRegistry();for(const i of this.config.directableTypes){const t=e.getNodeSpec(i);if(!t)continue;if(t.attrs?.dir)continue;const o=t.toDOM;e.removeNodeSpec(i),e.registerNodeSpec({...t,attrs:{...t.attrs,dir:{default:"auto"}},toDOM(e){const i=o.call(t,e);return f(i,e),i}})}}registerCommands(t){t.registerCommand("setDirectionLTR",()=>{const e=this.setDirection(t,"ltr");return e&&t.announce(this.locale.announceLTR),e}),t.registerCommand("setDirectionRTL",()=>{const e=this.setDirection(t,"rtl");return e&&t.announce(this.locale.announceRTL),e}),t.registerCommand("setDirectionAuto",()=>{const e=this.setDirection(t,"auto");return e&&t.announce(this.locale.announceAuto),e}),t.registerCommand("toggleDirection",()=>{const e=t.getState(),i=r(e);if(!i||!this.directableTypes.has(i.type))return!1;const o=c(i),s="auto"===o?"rtl":"rtl"===o?"ltr":"auto";return this.setDirection(t,s)})}registerKeymaps(t){t.registerKeymap({"Mod-Shift-D":()=>t.executeCommand("toggleDirection")})}registerToolbarItem(t){const e={ltr:"setDirectionLTR",rtl:"setDirectionRTL",auto:"setDirectionAuto"},i=g.map(t=>({label:this.getDirectionLabel(t),command:e[t],icon:m[t]}));t.registerToolbarItem({id:"text-direction",group:"block",icon:m.auto,label:this.locale.toolbarLabel,tooltip:`${this.locale.toolbarTooltip} (${s("Mod-Shift-D")})`,command:"setDirectionAuto",popupType:"dropdown",popupConfig:{items:i},isActive:t=>this.isNonDefaultDirection(t),isEnabled:t=>this.isDirectable(t),getIcon:t=>{const e=r(t);if(!e)return m.auto;const i=c(e);return m[i]??m.auto}})}getDirectionLabel(t){return"ltr"===t?this.locale.ltr:"rtl"===t?this.locale.rtl:this.locale.auto}setDirection(t,e){const i=t.getState(),o=this.getSelectedBlockIds(i);if(0===o.length)return!1;const r=i.transaction("command");let s=!1;for(const c of o){const t=i.getBlock(c);if(!t||!this.directableTypes.has(t.type))continue;const o=i.getNodePath(c);o&&(r.setNodeAttr(o,{...t.attrs,dir:e}),s=!0)}if(!s)return!1;const n=r.setSelection(i.selection).build();return t.dispatch(n),!0}getSelectedBlockIds(i){const o=i.selection;if(t(o))return[o.nodeId];if(!e(o))return[];const r=o.anchor.blockId,s=o.head.blockId;if(r===s)return[r];const n=i.getBlockOrder(),c=n.indexOf(r),a=n.indexOf(s);if(-1===c||-1===a)return[];const l=Math.min(c,a),h=Math.max(c,a);return n.slice(l,h+1)}isNonDefaultDirection(t){const e=r(t);if(!e||!this.directableTypes.has(e.type))return!1;const i=e.attrs?.dir;return null!=i&&"auto"!==i}isDirectable(t){const e=r(t);return null!=e&&this.directableTypes.has(e.type)}}function f(t,e){const i=e.attrs?.dir;"ltr"!==i&&"rtl"!==i&&"auto"!==i||t.setAttribute("dir",i)}export{m as DIRECTION_ICONS,l as TEXT_DIRECTION_LOCALE_EN,p as TextDirectionPlugin,h as detectTextDirection,u as findSiblingDirection,c as getBlockDir,a as loadTextDirectionLocale};
2
- //# sourceMappingURL=text-direction.mjs.map
1
+ import{a as s,i,n as o,o as t,t as a}from"../chunks/TextDirectionLocale-rlU1yNly.mjs";import{n as e,t as n}from"../chunks/TextDirectionCorePlugin-CyKw-C8X.mjs";export{n as DIRECTION_ICONS,a as TEXT_DIRECTION_LOCALE_EN,e as TextDirectionPlugin,i as detectTextDirection,s as findSiblingDirection,t as getBlockDir,o as loadTextDirectionLocale};
@@ -1,2 +1 @@
1
- import{m as t}from"../chunks/TypeBrands-Bp_Z_o5Y.mjs";import{r as e,t as s}from"../chunks/PluginHelpers-CdPR0MuT.mjs";import{f as i}from"../chunks/ShortcutFormatting-BLKS0Gys.mjs";import{c as o,i as r}from"../chunks/MarkCommands-CTuVDqnn.mjs";const n={boldLabel:"Bold",italicLabel:"Italic",underlineLabel:"Underline"},a=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("../chunks/ar-BYNFEVLc.mjs"),"./locales/de.ts":()=>import("../chunks/de-CFD_Wgik.mjs"),"./locales/es.ts":()=>import("../chunks/es-Ce-AEYxc.mjs"),"./locales/fr.ts":()=>import("../chunks/fr-B-_yKIAY.mjs"),"./locales/hi.ts":()=>import("../chunks/hi-BMIt3y_-.mjs"),"./locales/pt.ts":()=>import("../chunks/pt-Dx9UkZ3j.mjs"),"./locales/ru.ts":()=>import("../chunks/ru-BCriPw-8.mjs"),"./locales/zh.ts":()=>import("../chunks/zh-CY01pMD4.mjs")});async function c(t){if("en"===t)return n;const e=a[`./locales/${t}.ts`];if(!e)return n;try{return(await e()).default}catch{return n}}const l={bold:!0,italic:!0,underline:!0},g=[{type:"bold",configKey:"bold",rank:0,tag:"strong",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"/></svg>',keyBinding:"Mod-B",toHTMLString:t=>`<strong>${t}</strong>`,parseHTML:[{tag:"strong"},{tag:"b",getAttrs:t=>{const e=t.style.fontWeight;return"normal"!==e&&"400"!==e&&{}}},{tag:"span",getAttrs:t=>{const e=t.style.fontWeight;if(!e)return!1;if("bold"===e)return{};const s=Number.parseInt(e,10);return!Number.isNaN(s)&&s>=700&&{}}}],sanitize:{tags:["strong","b"]}},{type:"italic",configKey:"italic",rank:1,tag:"em",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/></svg>',keyBinding:"Mod-I",toHTMLString:t=>`<em>${t}</em>`,parseHTML:[{tag:"em"},{tag:"i"},{tag:"span",getAttrs:t=>"italic"===t.style.fontStyle&&{}}],sanitize:{tags:["em","i"]}},{type:"underline",configKey:"underline",rank:2,tag:"u",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/></svg>',keyBinding:"Mod-U",toHTMLString:t=>`<u>${t}</u>`,parseHTML:[{tag:"u"},{tag:"span",getAttrs:t=>!!t.style.textDecoration.includes("underline")&&{}}],sanitize:{tags:["u"]}}];class m{id="text-formatting";name="Text Formatting";priority=20;config;locale;constructor(t){this.config={...l,...t}}async init(t){this.locale=await e(t,this.config.locale,n,c);const s=g.filter(t=>this.config[t.configKey]);for(const e of s)this.registerMark(t,e);this.registerKeymaps(t,s),this.registerDisabledToolbarItems(t)}registerMark(e,n){const a=s(n.type),c=this.isToolbarVisible(n.configKey);if(e.registerMarkSpec({type:n.type,rank:n.rank,toDOM:()=>document.createElement(n.tag),toHTMLString:(t,e)=>n.toHTMLString(e),parseHTML:n.parseHTML,sanitize:n.sanitize}),e.registerCommand(a,()=>{const s=o(e.getState(),t(n.type));return!!s&&(e.dispatch(s),!0)}),c){const s=this.getMarkLabel(n.type);e.registerToolbarItem({id:n.type,group:"format",icon:n.icon,label:s,tooltip:`${s} (${i(n.keyBinding)})`,command:a,isActive:e=>r(e,t(n.type))})}}registerKeymaps(t,e){const i={};for(const o of e){const e=s(o.type);i[o.keyBinding]=()=>t.executeCommand(e)}Object.keys(i).length>0&&t.registerKeymap(i)}registerDisabledToolbarItems(t){if(this.config.toolbar)for(const e of g){const i=this.config[e.configKey],o=this.config.toolbar[e.configKey]??!0;!i&&o&&t.registerToolbarItem({id:e.type,group:"format",icon:e.icon,label:this.getMarkLabel(e.type),command:s(e.type),isEnabled:()=>!1})}}getMarkLabel(t){const e=`${t}Label`;return this.locale[e]}isToolbarVisible(t){return!this.config.toolbar||(this.config.toolbar[t]??!0)}}export{n as TEXT_FORMATTING_LOCALE_EN,m as TextFormattingPlugin,c as loadTextFormattingLocale};
2
- //# sourceMappingURL=text-formatting.mjs.map
1
+ import{n as t,r,t as s}from"../chunks/TextFormattingPlugin-xtQczzCs.mjs";export{t as TEXT_FORMATTING_LOCALE_EN,s as TextFormattingPlugin,r as loadTextFormattingLocale};
@@ -28,6 +28,8 @@ export declare class ToolbarOverflowController {
28
28
  private overflowEntries;
29
29
  private resizeObserver;
30
30
  private closeHandler;
31
+ private closeHandlerTimer;
32
+ private closeHandlerAttached;
31
33
  constructor(config: OverflowControllerConfig);
32
34
  /** Called after renderItems() — stores button references and recalculates. */
33
35
  update(buttons: readonly {
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarOverflowController.d.ts","sourceRoot":"","sources":["../../../src/plugins/toolbar/ToolbarOverflowController.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASpD,KAAK,gBAAgB,GAAG,CACvB,cAAc,EAAE,SAAS,iBAAiB,EAAE,EAC5C,cAAc,EAAE,iBAAiB,GAAG,IAAI,KACpC,IAAI,CAAC;AAEV,KAAK,eAAe,GAAG,CAAC,cAAc,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;AAEtF,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC;IAChD,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;CACrC;AAcD,qBAAa,yBAAyB;IACrC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IACpD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAClD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuB;IACxD,O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AuB;IAC9C,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,YAAY,CAA0C;IAC9D,OAAO,CAAC,iBAAiB,CAA8C;IACvE,OAAO,CAAC,oBAAoB,CAAS;gBAEzB,MAAM,EAAE,wBAAwB;IAa5C,8EAA8E;IAC9E,MAAM,CAAC,OAAO,EAAE,SAAS;QAAE,OAAO,EAAE,iBAAiB,CAAC;QAAC,IAAI,EAAE,WAAW,CAAA;KAAE,EAAE,GAAG,IAAI;IAKnF,6EAA6E;IAC7E,WAAW,IAAI,IAAI;IA8DnB,8EAA8E;IAC9E,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAuC1C,mEAAmE;IACnE,OAAO,IAAI,IAAI;IAYf,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,wBAAwB;IAQhC,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,YAAY;IA+CpB,OAAO,CAAC,mBAAmB;IA4C3B,OAAO,CAAC,gBAAgB;IA0BxB,OAAO,CAAC,oBAAoB;IAoB5B,OAAO,CAAC,aAAa;IAgCrB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,qBAAqB;IA8C7B,OAAO,CAAC,sBAAsB;IAe9B,OAAO,CAAC,YAAY;CAMpB"}
@@ -1,2 +1 @@
1
- import{b as t}from"../chunks/Platform-CU6itXZo.mjs";import{S as e,r as o}from"../chunks/PluginHelpers-CdPR0MuT.mjs";import{f as n,n as r,a as i}from"../chunks/KeyboardNav-DsYhKKuV.mjs";import{P as l,a as s}from"../chunks/PopupManager-Du3dYnsJ.mjs";import{s as a,a as c}from"../chunks/StyleRuntime-BmsLoEa8.mjs";import{a as d}from"../chunks/PopupPositioning-DtvqMSop.mjs";class p{_toolbarItems=/* @__PURE__ */new Map;_toolbarItemPluginMap=/* @__PURE__ */new Map;registerToolbarItem(t,e){if(this._toolbarItems.has(t.id))throw new Error(`ToolbarItem with id "${t.id}" is already registered.`);if(this._toolbarItems.set(t.id,t),e){const o=this._toolbarItemPluginMap.get(e)??[];o.push(t.id),this._toolbarItemPluginMap.set(e,o)}}getToolbarItemsByPlugin(t){const e=this._toolbarItemPluginMap.get(t)??[],o=[];for(const n of e){const t=this._toolbarItems.get(n);t&&o.push(t)}return o}getToolbarItem(t){return this._toolbarItems.get(t)}getToolbarItems(){return[...this._toolbarItems.values()]}removeToolbarItem(t){this._toolbarItems.delete(t);for(const[e,o]of this._toolbarItemPluginMap){const n=o.indexOf(t);if(-1!==n){o.splice(n,1),0===o.length&&this._toolbarItemPluginMap.delete(e);break}}}clear(){this._toolbarItems.clear(),this._toolbarItemPluginMap.clear()}}function u(t){for(let e=0;e<t.length;e++)if(!t[e]?.disabled)return e;return-1}const h={formattingOptionsAria:"Formatting options",moreToolsAria:"More tools",gridPickerLabel:(t,e)=>`${t} x ${e}`},b=/* @__PURE__ */Object.assign({"./locales/ar.ts":()=>import("../chunks/ar-D7PS3e2g.mjs"),"./locales/de.ts":()=>import("../chunks/de-BZWSyJTG.mjs"),"./locales/es.ts":()=>import("../chunks/es-Co4AJr8Y.mjs"),"./locales/fr.ts":()=>import("../chunks/fr-CEkk4UyZ.mjs"),"./locales/hi.ts":()=>import("../chunks/hi-CPuhj7IA.mjs"),"./locales/pt.ts":()=>import("../chunks/pt-CQRzEocL.mjs"),"./locales/ru.ts":()=>import("../chunks/ru-ClEM6OKY.mjs"),"./locales/zh.ts":()=>import("../chunks/zh-DCQZ6gss.mjs")});async function m(t){if("en"===t)return h;const e=b[`./locales/${t}.ts`];if(!e)return h;try{return(await e()).default}catch{return h}}const f={BurgerMenu:"burger-menu",Flow:"flow",None:"none"},v="notectl-toolbar-btn--overflow-hidden",g="notectl-toolbar-separator--overflow-hidden";class w{toolbar;context;onOverflowChange;onItemActivated;getActiveElement;ariaLabel;popupManager;entries=[];overflowButton=null;overflowDropdown=null;overflowHandle=null;overflowEntries=[];resizeObserver=null;closeHandler=null;constructor(t){this.toolbar=t.toolbar,this.ariaLabel=t.ariaLabel,this.context=t.context,this.onOverflowChange=t.onOverflowChange,this.onItemActivated=t.onItemActivated,this.getActiveElement=t.getActiveElement,this.popupManager=t.popupManager??null,this.resizeObserver=new ResizeObserver(()=>this.recalculate()),this.resizeObserver.observe(this.toolbar)}update(t){this.entries=t.map(t=>({element:t.element,item:t.item})),this.recalculate()}recalculate(){if(0===this.entries.length)return;this.closeDropdown(),this.resetVisibility(),this.ensureOverflowButton(),this.setOverflowButtonVisible(!1);const t=this.measureAvailableWidth(),e=Array.from(this.toolbar.children),o=this.measureChildWidths(e),n=t-34-2;let r=0,i=!1;const l=[];for(const s of e){if(s===this.overflowButton)continue;if(s.classList.contains("notectl-toolbar-separator")){if(i){s.classList.add(g);continue}const t=(o.get(s)??0)+2;r+t>n?(i=!0,s.classList.add(g)):r+=t;continue}const t=this.entries.find(t=>t.element===s);if(!t)continue;if(i){t.element.classList.add(v),l.push(t);continue}const e=(o.get(s)??0)+2;r+e>n?(i=!0,t.element.classList.add(v),l.push(t)):r+=e}this.overflowEntries=l,this.hideTrailingSeparators(),this.setOverflowButtonVisible(l.length>0),this.notifyChange()}updateItemStates(t){if(!this.overflowDropdown)return;const e=Array.from(this.overflowDropdown.querySelectorAll(".notectl-dropdown__item"));for(const o of e){const e=o.getAttribute("data-toolbar-item"),n=this.overflowEntries.find(t=>t.item.id===e);if(!n)continue;const r=n.item.isActive?.(t)??!1,i=n.item.isEnabled?.(t)??!0;if(o.classList.toggle("notectl-dropdown__item--active",r),o.disabled=!i,"combobox"===n.item.popupType){const e=o.querySelector(".notectl-dropdown__item-label");e&&(e.textContent=n.item.getLabel(t))}if(n.item.getIcon){const e=n.item.getIcon(t),r=o.querySelector(".notectl-dropdown__item-icon");r&&r.innerHTML!==e&&(r.innerHTML=e)}}}destroy(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.closeDropdown(),this.overflowButton?.remove(),this.overflowButton=null,this.entries=[],this.overflowEntries=[]}measureChildWidths(t){const e=/* @__PURE__ */new Map;for(const o of t)o!==this.overflowButton&&e.set(o,o.offsetWidth);return e}measureAvailableWidth(){const t=getComputedStyle(this.toolbar),e=Number.parseFloat(t.paddingLeft)||0,o=Number.parseFloat(t.paddingRight)||0;return this.toolbar.clientWidth-e-o}resetVisibility(){for(const e of this.entries)e.element.classList.remove(v);const t=Array.from(this.toolbar.querySelectorAll(".notectl-toolbar-separator"));for(const e of t)e.classList.remove(g)}setOverflowButtonVisible(t){this.overflowButton&&(this.overflowButton.classList.toggle("notectl-toolbar-overflow-btn--hidden",!t),t||this.overflowButton.removeAttribute("tabindex"))}ensureOverflowButton(){if(this.overflowButton)return;const t=document.createElement("button");t.type="button",t.className="notectl-toolbar-overflow-btn",t.setAttribute("aria-label",this.ariaLabel),t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded","false"),t.innerHTML='<svg viewBox="0 0 16 16" width="16" height="16"><circle cx="3" cy="8" r="1.5" fill="currentColor"/><circle cx="8" cy="8" r="1.5" fill="currentColor"/><circle cx="13" cy="8" r="1.5" fill="currentColor"/></svg>',t.addEventListener("mousedown",t=>{t.preventDefault(),this.toggleDropdown()}),this.toolbar.appendChild(t),this.overflowButton=t}toggleDropdown(){this.overflowDropdown?this.closeDropdown():this.openDropdown()}openDropdown(){if(!this.overflowButton||0===this.overflowEntries.length)return;const t=document.createElement("div");t.className="notectl-toolbar-popup notectl-dropdown",t.setAttribute("role","menu"),this.renderDropdownItems(t,this.context.getState()),this.popupManager?(this.overflowHandle=this.popupManager.open({anchor:this.overflowButton,className:"notectl-toolbar-popup notectl-dropdown",ariaRole:"menu",position:"below-end",referenceNode:this.overflowButton,restoreFocusTo:this.overflowButton,onClose:()=>{this.overflowHandle=null,this.overflowDropdown=null,this.overflowButton&&this.overflowButton.setAttribute("aria-expanded","false")},content:t=>{this.renderDropdownItems(t,this.context.getState()),this.overflowDropdown=t,t.addEventListener("keydown",t=>this.handleDropdownKeydown(t))}}),this.overflowButton.setAttribute("aria-expanded","true")):(this.positionDropdown(t),d(t,this.overflowButton),this.overflowDropdown=t,this.overflowButton.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>{const e=t.querySelector('[role="menuitem"]');e?.focus()}),t.addEventListener("keydown",t=>this.handleDropdownKeydown(t)),this.registerCloseHandler())}renderDropdownItems(t,e){let o=null;for(const n of this.overflowEntries){if(null!==o&&n.item.group!==o){const e=document.createElement("div");e.className="notectl-dropdown__separator",e.setAttribute("role","separator"),t.appendChild(e)}o=n.item.group;const r=document.createElement("button");r.type="button",r.className="notectl-dropdown__item",r.setAttribute("role","menuitem"),r.setAttribute("tabindex","-1"),r.setAttribute("data-toolbar-item",n.item.id);const i=document.createElement("span");i.className="notectl-dropdown__item-icon","combobox"!==n.item.popupType&&(i.innerHTML=n.item.icon),r.appendChild(i);const l=document.createElement("span");l.className="notectl-dropdown__item-label",l.textContent="combobox"===n.item.popupType?n.item.getLabel(e):n.item.tooltip??n.item.label,r.appendChild(l),r.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),this.activateOverflowItem(n)}),t.appendChild(r)}}positionDropdown(e){if(!this.overflowButton)return;const o=this.overflowButton.getBoundingClientRect();if(t(this.toolbar))a(e,{position:"fixed",top:`${o.bottom+2}px`,left:`${o.left}px`,right:"auto",zIndex:"10000"});else{const t=window.innerWidth-o.right;a(e,{position:"fixed",top:`${o.bottom+2}px`,right:`${t}px`,left:"auto",zIndex:"10000"})}}registerCloseHandler(){this.closeHandler=t=>{const e=t.composedPath();this.overflowDropdown&&!e.includes(this.overflowDropdown)&&this.overflowButton&&!e.includes(this.overflowButton)&&this.closeDropdown()},setTimeout(()=>{this.closeHandler&&document.addEventListener("mousedown",this.closeHandler)},0)}closeDropdown(){if(this.overflowHandle){const t=this.overflowHandle;return this.overflowHandle=null,this.overflowDropdown=null,t.close(),void(this.overflowButton&&this.overflowButton.setAttribute("aria-expanded","false"))}this.overflowDropdown&&(this.overflowDropdown.remove(),this.overflowDropdown=null),this.overflowButton&&this.overflowButton.setAttribute("aria-expanded","false"),this.closeHandler&&(document.removeEventListener("mousedown",this.closeHandler),this.closeHandler=null)}activateOverflowItem(t){this.closeDropdown(),t.item.popupType&&this.overflowButton?this.onItemActivated(this.overflowButton,t.item):this.context.executeCommand(t.item.command)}handleDropdownKeydown(t){if(!this.overflowDropdown)return;if("Escape"===t.key||"Tab"===t.key)return t.preventDefault(),t.stopPropagation(),this.closeDropdown(),void this.overflowButton?.focus();const e=Array.from(this.overflowDropdown.querySelectorAll('[role="menuitem"]')),o=e.indexOf(this.getActiveElement());switch(t.key){case"ArrowDown":{t.preventDefault();const r=n(e,o,1);e[r]?.focus();break}case"ArrowUp":{t.preventDefault();const r=n(e,o,-1);e[r]?.focus();break}case"Enter":case" ":{t.preventDefault();const n=e[o];if(!n)break;const r=n.getAttribute("data-toolbar-item"),i=this.overflowEntries.find(t=>t.item.id===r);i&&this.activateOverflowItem(i);break}}}hideTrailingSeparators(){const t=Array.from(this.toolbar.children);for(let e=t.length-1;e>=0;e--){const o=t[e];if(o&&o!==this.overflowButton)if(o.classList.contains("notectl-toolbar-separator"))o.classList.contains(g)||o.classList.add(g);else if(!o.classList.contains(v))break}}notifyChange(){const t=this.entries.filter(t=>!t.element.classList.contains(v)).map(t=>t.element);this.onOverflowChange(t,this.overflowEntries.length>0?this.overflowButton:null)}}function x(t,e,o){const n=t.querySelectorAll(".notectl-grid-picker__cell");for(const r of n){const t=Number(r.getAttribute("data-row")),n=Number(r.getAttribute("data-col"));r.classList.toggle("notectl-grid-picker__cell--highlighted",t<=e&&n<=o)}}function y(){const t=document.createElement("span");return t.className="notectl-toolbar-separator",t.setAttribute("role","separator"),t}class E{activePopup=null;activePopupButton=null;activeHandle=null;getActiveElement;locale;popupManager=null;constructor(t,e=h){this.getActiveElement=t,this.locale=e}setPopupManager(t){this.popupManager=t}isOpen(){return null!==this.activePopup}toggle(t,e,o){this.activePopup?this.close():this.openViaManager(t,e,o)}close(){if(this.activeHandle){const t=this.activeHandle;return this.activeHandle=null,this.clearButtonState(),void t.close()}this.clearButtonState(),this.activePopup&&(this.activePopup.remove(),this.activePopup=null)}closeAndRestoreFocus(){const t=this.activePopupButton;this.close(),t?.focus()}destroy(){this.close()}openViaManager(t,e,o){this.popupManager&&(this.activePopupButton=t,t.classList.add("notectl-toolbar-btn--popup-open"),t.setAttribute("aria-expanded","true"),this.activeHandle=this.popupManager.open({anchor:t,className:"notectl-toolbar-popup",referenceNode:t,restoreFocusTo:t,position:"below-start",onClose:()=>{this.activeHandle=null,this.clearButtonState(),this.activePopup=null},content:(t,n)=>{this.activePopup=t,this.renderPopupContent(t,e,o,n),t.addEventListener("keydown",t=>this.handlePopupKeydown(t))}}))}renderPopupContent(t,e,o,n){const r=()=>{n({restoreFocusTo:null}),o.getContainer().focus()};switch(e.popupType){case"gridPicker":!function(t,e,o,n=h){t.className+=" notectl-grid-picker";const r=document.createElement("div");r.className="notectl-grid-picker__grid",r.setAttribute("role","grid"),a(r,{display:"grid",gridTemplateColumns:`repeat(${e.maxCols}, 1fr)`,gap:"2px",padding:"8px"});const i=document.createElement("div");i.className="notectl-grid-picker__label",i.textContent=n.gridPickerLabel(1,1),a(i,{textAlign:"center",padding:"4px",fontSize:"12px"}),i.setAttribute("aria-live","polite");for(let l=1;l<=e.maxRows;l++)for(let t=1;t<=e.maxCols;t++){const s=document.createElement("div");s.className="notectl-grid-picker__cell",s.setAttribute("role","gridcell"),s.setAttribute("tabindex","-1"),s.setAttribute("aria-label",n.gridPickerLabel(l,t)),a(s,{width:"20px",height:"20px",border:"1px solid #ccc",cursor:"pointer"}),s.setAttribute("data-row",String(l)),s.setAttribute("data-col",String(t)),s.addEventListener("mouseenter",()=>{x(r,l,t),i.textContent=n.gridPickerLabel(l,t)}),s.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation()}),s.addEventListener("click",()=>{e.onSelect(l,t),o()}),r.appendChild(s)}t.appendChild(r),t.appendChild(i)}(t,e.popupConfig,r,this.locale);break;case"dropdown":!function(t,e,n,r){t.classList.add("notectl-dropdown"),t.setAttribute("role","menu");for(const i of e.items){const e=document.createElement("button");if(e.type="button",e.className="notectl-dropdown__item",e.setAttribute("role","menuitem"),e.setAttribute("tabindex","-1"),i.icon){const t=document.createElement("span");t.className="notectl-dropdown__item-icon",t.innerHTML=i.icon,e.appendChild(t)}const n=document.createElement("span");n.className="notectl-dropdown__item-label",n.textContent=i.label,e.appendChild(n),e.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation()}),e.addEventListener("click",()=>{var t;t=i.command,o.executeCommand(t),r()}),t.appendChild(e)}}(t,e.popupConfig,0,r);break;case"custom":case"combobox":e.renderPopup(t,o,n)}}clearButtonState(){this.activePopupButton&&(this.activePopupButton.classList.remove("notectl-toolbar-btn--popup-open"),this.activePopupButton.setAttribute("aria-expanded","false"),this.activePopupButton=null)}handlePopupKeydown(t){if(!this.activePopup)return;if("Escape"===t.key)return t.preventDefault(),t.stopPropagation(),void this.closeAndRestoreFocus();if("Tab"===t.key)return t.preventDefault(),void this.closeAndRestoreFocus();const e=this.activePopup.querySelectorAll('[role="menuitem"]');e.length>0?this.handleDropdownKeydown(t,e):null!==this.activePopup.querySelector(".notectl-grid-picker__cell")?this.handleGridKeydown(t):this.handleCustomPopupKeydown(t)}handleDropdownKeydown(t,e){const o=Array.from(e),r=o.indexOf(this.getActiveElement());switch(t.key){case"ArrowDown":{t.preventDefault();const e=n(o,r,1);o[e]?.focus();break}case"ArrowUp":{t.preventDefault();const e=n(o,r,-1);o[e]?.focus();break}case"Enter":case" ":{t.preventDefault();const e=o[r];e&&e.click();break}}}handleGridKeydown(e){const o=this.getActiveElement(),n=Number(o?.getAttribute("data-row")??1),i=Number(o?.getAttribute("data-col")??1),l=this.activePopup?.querySelector(".notectl-grid-picker__grid")??null;if(!l)return;const s=l.querySelector(".notectl-grid-picker__cell:last-child"),a=Number(s?.getAttribute("data-col")??1),c=Number(s?.getAttribute("data-row")??1);if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)){e.preventDefault();const[o,s]=r(n,i,c,a,e.key,!!this.activePopup&&t(this.activePopup)),d=l.querySelector(`.notectl-grid-picker__cell[data-row="${o}"][data-col="${s}"]`);d?.focus(),x(l,o,s);const p=this.activePopup?.querySelector(".notectl-grid-picker__label")??null;p&&(p.textContent=this.locale.gridPickerLabel(o,s))}"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o?.click())}handleCustomPopupKeydown(t){if(!this.activePopup)return;const e=Array.from(this.activePopup.querySelectorAll("button"));if(0===e.length)return;const o=this.getActiveElement(),r=e.indexOf(o);switch(t.key){case"ArrowDown":{t.preventDefault();const o=n(e,r,1);e[o]?.focus();break}case"ArrowUp":{t.preventDefault();const o=n(e,r,-1);e[o]?.focus();break}case"Enter":case" ":t.preventDefault(),o&&o.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0}))}}}class A{element;timer=null;target=null;isPopupActive;static TOOLTIP_ID="notectl-toolbar-tooltip";constructor(t){this.isPopupActive=t,this.element=document.createElement("div"),this.element.className="notectl-toolbar-tooltip",this.element.id=A.TOOLTIP_ID,this.element.setAttribute("role","tooltip"),c(this.element,"display","none")}show(t){if(this.hide(),this.isPopupActive()||t.disabled)return;const e=t.getAttribute("data-tooltip");e&&(this.target=t,this.timer=setTimeout(()=>{if(this.isPopupActive())return;this.element.textContent=e,c(this.element,"display","");const o=t.getRootNode();o instanceof ShadowRoot&&!this.element.parentNode?o.appendChild(this.element):o instanceof ShadowRoot||this.element.parentNode||document.body.appendChild(this.element),t.setAttribute("aria-describedby",A.TOOLTIP_ID);const n=t.getBoundingClientRect();a(this.element,{position:"fixed",top:`${n.bottom+6}px`,left:`${n.left+n.width/2}px`,transform:"translateX(-50%)"})},500))}hide(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.target&&(this.target.removeAttribute("aria-describedby"),this.target=null),c(this.element,"display","none")}destroy(){this.hide(),this.element.remove()}}const k=new e("toolbar");class _{id="toolbar";name="Toolbar";priority=10;context=null;toolbarElement=null;buttons=[];hiddenItems=/* @__PURE__ */new Set;layoutConfig;overflowBehavior;focusedIndex=0;tooltip=null;popupController=null;popupManager=null;overflowController=null;visibleElements=[];locale;constructor(t){this.layoutConfig=t??null,this.overflowBehavior=t?.overflow??f.BurgerMenu}async init(t){this.locale=await o(t,void 0,h,m),t.registerStyleSheet('\n/* Toolbar */\n.notectl-plugin-container--top {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: nowrap;\n\tborder-bottom: 1px solid var(--notectl-border);\n\tbackground: var(--notectl-toolbar-bg, var(--notectl-surface-raised));\n\tmin-height: 40px;\n}\n\n.notectl-toolbar {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-wrap: nowrap;\n\toverflow: hidden;\n\tflex: 1;\n\tmin-width: 0;\n\tgap: 2px;\n\tpadding: 4px 8px;\n}\n\n.notectl-toolbar[hidden] {\n\tdisplay: none;\n}\n\n.notectl-toolbar-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcursor: pointer;\n\tcolor: var(--notectl-fg);\n\tfont-size: 14px;\n\tline-height: 1;\n\tpadding: 0;\n\tflex-shrink: 0;\n\ttransition: background 0.1s, border-color 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-border);\n\t}\n}\n\n.notectl-toolbar-btn--active {\n\tbackground: var(--notectl-active-bg);\n\tborder-color: var(--notectl-primary-muted);\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-toolbar-btn:focus-visible {\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n\toutline: none;\n}\n\n.notectl-toolbar-btn:disabled {\n\topacity: 0.4;\n\tcursor: not-allowed;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn:disabled:hover {\n\t\tbackground: transparent;\n\t\tborder-color: transparent;\n\t}\n}\n\n.notectl-toolbar-btn__icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tpointer-events: none;\n}\n\n.notectl-toolbar-btn__icon svg {\n\tdisplay: block;\n\twidth: 18px;\n\theight: 18px;\n\tfill: currentColor;\n}\n\n/* Tooltip (rendered as fixed-position element in shadow root) */\n.notectl-toolbar-tooltip {\n\tposition: fixed;\n\tpadding: 4px 8px;\n\tborder-radius: 4px;\n\tbackground: var(--notectl-tooltip-bg);\n\tcolor: var(--notectl-tooltip-fg);\n\tfont-size: 11px;\n\tfont-weight: 500;\n\twhite-space: nowrap;\n\tpointer-events: none;\n\tz-index: 10001;\n\tline-height: 1.4;\n\tletter-spacing: 0.01em;\n\tfont-family: -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif;\n}\n\n.notectl-toolbar-separator {\n\tdisplay: inline-block;\n\twidth: 1px;\n\theight: 20px;\n\tbackground: var(--notectl-border);\n\tmargin: 0 4px;\n\tvertical-align: middle;\n}\n\n/* Toolbar Popups */\n.notectl-toolbar-popup {\n\tbackground: var(--notectl-surface-overlay);\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 6px;\n\tbox-shadow: 0 4px 12px var(--notectl-shadow);\n\toverflow: hidden;\n}\n\n/* Grid Picker */\n.notectl-grid-picker__cell:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n\n.notectl-grid-picker__cell--highlighted {\n\tbackground: var(--notectl-primary-muted);\n\tborder-color: var(--notectl-primary);\n}\n\n/* Dropdown */\n.notectl-dropdown {\n\tmin-width: 160px;\n\tpadding: 4px 0;\n}\n\n.notectl-dropdown__item {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n\tpadding: 8px 12px;\n\ttext-align: start;\n\tborder: none;\n\tbackground: none;\n\tcursor: pointer;\n\tfont-size: 14px;\n\tcolor: var(--notectl-fg);\n\tline-height: 1.4;\n\tfont-family: inherit;\n\twhite-space: nowrap;\n}\n\n@media (hover: hover) {\n\t.notectl-dropdown__item:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-dropdown__item:focus-visible {\n\tbackground: var(--notectl-hover-bg);\n\toutline: none;\n}\n\n.notectl-dropdown__item-icon {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\tfont-weight: 600;\n\tcolor: var(--notectl-fg-muted);\n\tflex-shrink: 0;\n}\n\n.notectl-dropdown__item-label {\n\tflex: 1;\n}\n\n/* Overflow behavior: flow mode — toolbar wraps to additional rows */\n.notectl-toolbar[data-overflow="flow"] {\n\tflex-wrap: wrap;\n\toverflow: visible;\n}\n\n/* Overflow behavior: none — toolbar clips without any responsive behavior */\n.notectl-toolbar[data-overflow="none"] {\n\tflex-wrap: nowrap;\n\toverflow: hidden;\n}\n\n/* Overflow: hidden items (burger-menu mode) */\n.notectl-toolbar-btn--overflow-hidden,\n.notectl-toolbar-separator--overflow-hidden {\n\tdisplay: none;\n}\n\n/* Overflow "more" button */\n.notectl-toolbar-overflow-btn {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 32px;\n\theight: 32px;\n\tborder: 1px solid transparent;\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcursor: pointer;\n\tcolor: var(--notectl-fg);\n\tfont-size: 16px;\n\tline-height: 1;\n\tpadding: 0;\n\tflex-shrink: 0;\n\tmargin-inline-start: auto;\n\ttransition: background 0.1s, border-color 0.1s;\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-overflow-btn:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-border);\n\t}\n}\n\n.notectl-toolbar-overflow-btn--hidden {\n\tdisplay: none;\n}\n\n.notectl-toolbar-overflow-btn:focus-visible {\n\tbox-shadow: 0 0 0 2px var(--notectl-focus-ring);\n\toutline: none;\n}\n\n/* Dropdown item states shared by all dropdown menus (including overflow) */\n.notectl-dropdown__item:disabled {\n\topacity: 0.4;\n\tcursor: not-allowed;\n}\n\n@media (hover: hover) {\n\t.notectl-dropdown__item:disabled:hover {\n\t\tbackground: none;\n\t}\n}\n\n.notectl-dropdown__item--active {\n\tcolor: var(--notectl-primary-fg);\n}\n\n.notectl-dropdown__item-icon svg {\n\tdisplay: block;\n\twidth: 16px;\n\theight: 16px;\n\tfill: currentColor;\n}\n\n.notectl-dropdown__separator {\n\theight: 1px;\n\tbackground: var(--notectl-border);\n\tmargin: 4px 0;\n}\n\n/* Combobox-style toolbar buttons (shared base for font, fontSize, heading, etc.) */\n.notectl-toolbar-btn[role="combobox"] {\n\twidth: auto;\n\tpadding: 0 8px;\n\tgap: 4px;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n}\n\n@media (hover: hover) {\n\t.notectl-toolbar-btn[role="combobox"]:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t\tborder-color: var(--notectl-fg-muted);\n\t}\n}\n\n.notectl-toolbar-btn[role="combobox"].notectl-toolbar-btn--active {\n\tbackground: var(--notectl-bg);\n\tborder-color: var(--notectl-primary-muted);\n}\n\n.notectl-toolbar-combobox__label {\n\tflex: 1;\n\tfont-size: 13px;\n\tfont-weight: 500;\n\tcolor: var(--notectl-fg);\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\ttext-align: start;\n\tline-height: 30px;\n}\n\n.notectl-toolbar-combobox__arrow {\n\tflex-shrink: 0;\n\tfont-size: 11px;\n\tcolor: var(--notectl-fg-muted);\n\tline-height: 30px;\n}\n\n/* Link Popup */\n.notectl-link-popup {\n\tpadding: 8px;\n\tmin-width: 200px;\n}\n\n.notectl-link-popup__input {\n\twidth: 100%;\n\tpadding: 4px;\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tfont-size: 13px;\n\tcolor: var(--notectl-fg);\n\tbackground: var(--notectl-bg);\n}\n\n.notectl-link-popup__input:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n\n.notectl-link-popup__button {\n\twidth: 100%;\n\tpadding: 6px 12px;\n\tcursor: pointer;\n\tborder: 1px solid var(--notectl-border);\n\tborder-radius: 4px;\n\tbackground: var(--notectl-bg);\n\tcolor: var(--notectl-fg);\n\tfont-size: 13px;\n}\n\n.notectl-link-popup__button--apply {\n\tmargin-top: 4px;\n}\n\n@media (hover: hover) {\n\t.notectl-link-popup__button:hover {\n\t\tbackground: var(--notectl-hover-bg);\n\t}\n}\n\n.notectl-link-popup__button:focus-visible {\n\toutline: 2px solid var(--notectl-focus-ring);\n\toutline-offset: -1px;\n}\n'),this.context=t,this.popupManager=new l(t.getContainer()),t.registerService(s,this.popupManager),this.popupController=new E(()=>this.getActiveElement(),this.locale),this.popupController.setPopupManager(this.popupManager),this.tooltip=new A(()=>this.popupController?.isOpen()??!1),t.registerService(k,{refresh:()=>this.updateButtonStates(t.getState()),closePopup:()=>this.popupController?.close()}),this.createToolbarElement()}getOverflowBehavior(){return this.overflowBehavior}setOverflowBehavior(t){t!==this.overflowBehavior&&(this.overflowBehavior=t,this.applyOverflowBehavior(),this.renderItems())}onReady(){this.renderItems()}destroy(){this.overflowController?.destroy(),this.overflowController=null,this.popupController?.destroy(),this.popupController=null,this.popupManager?.destroy(),this.popupManager=null,this.tooltip?.destroy(),this.tooltip=null,this.toolbarElement&&(this.toolbarElement.remove(),this.toolbarElement=null),this.buttons=[],this.visibleElements=[],this.context=null}onStateChange(t,e,o){this.updateButtonStates(e)}onReadOnlyChange(t){this.toolbarElement&&(this.toolbarElement.hidden=t)}onConfigure(t){for(const[e,o]of Object.entries(t))!1===o?this.hiddenItems.add(e):this.hiddenItems.delete(e);this.renderItems()}createToolbarElement(){if(!this.context)return;this.toolbarElement&&this.toolbarElement.remove(),this.buttons=[];const t=this.context.getPluginContainer("top");this.toolbarElement=document.createElement("div"),this.toolbarElement.setAttribute("role","toolbar"),this.toolbarElement.setAttribute("aria-label",this.locale.formattingOptionsAria),this.toolbarElement.setAttribute("data-notectl-no-print",""),this.toolbarElement.className="notectl-toolbar",this.toolbarElement.addEventListener("keydown",t=>this.handleToolbarKeydown(t)),this.applyOverflowBehavior(),t.appendChild(this.toolbarElement)}applyOverflowBehavior(){this.toolbarElement&&this.context&&(this.overflowController?.destroy(),this.overflowController=null,this.toolbarElement.setAttribute("data-overflow",this.overflowBehavior),this.overflowBehavior===f.BurgerMenu?this.overflowController=new w({toolbar:this.toolbarElement,ariaLabel:this.locale.moreToolsAria,context:this.context,popupManager:this.popupManager??void 0,onOverflowChange:(t,e)=>{this.visibleElements=e?[...t,e]:[...t],this.initRovingTabindex()},onItemActivated:(t,e)=>{this.activateButton(t,e)},getActiveElement:()=>this.getActiveElement()}):this.visibleElements=[])}renderItems(){if(this.context&&this.toolbarElement){for(const t of this.buttons)t.element.remove();this.buttons=[];for(const t of this.toolbarElement.querySelectorAll(".notectl-toolbar-separator"))t.remove();this.layoutConfig?this.renderItemsByLayout():this.renderItemsByGroup(),this.buttons.length>0&&!this.toolbarElement.parentElement&&this.context.getPluginContainer("top").appendChild(this.toolbarElement),this.overflowController?.update(this.buttons),this.initRovingTabindex(),this.updateButtonStates(this.context.getState())}}getTabElements(){return this.visibleElements.length>0?this.visibleElements:this.buttons.map(t=>t.element)}initRovingTabindex(){const t=this.getTabElements(),e=u(t);this.focusedIndex=e>=0?e:0,i(t,this.focusedIndex)}setRovingFocus(t){const e=this.getTabElements();t<0||t>=e.length||(this.focusedIndex=t,i(e,t),e[t]?.focus())}getActiveElement(){const t=this.toolbarElement?.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}syncFocusedIndex(){const t=this.getActiveElement(),e=this.getTabElements().findIndex(e=>e===t);e>=0&&(this.focusedIndex=e)}handleToolbarKeydown(e){const o=this.getTabElements();var n;if(0!==o.length)switch(this.syncFocusedIndex(),e.key){case"ArrowRight":case"ArrowLeft":{e.preventDefault();const r=(n=!!this.toolbarElement&&t(this.toolbarElement),"ArrowRight"===e.key?n?-1:1:n?1:-1),i=function(t,e,o){const n=t.length;if(0===n)return-1;let r=e;for(let i=0;i<n;i++)if(r=(r+o+n)%n,!t[r]?.disabled)return r;return e}(o,this.focusedIndex,r);this.setRovingFocus(i);break}case"Home":{e.preventDefault();const t=u(o);t>=0&&this.setRovingFocus(t);break}case"End":{e.preventDefault();const t=function(t){for(let e=t.length-1;e>=0;e--)if(!t[e]?.disabled)return e;return-1}(o);t>=0&&this.setRovingFocus(t);break}case"Enter":case" ":{e.preventDefault();const t=o[this.focusedIndex],n=this.buttons.find(e=>e.element===t);n&&this.activateButton(n.element,n.item);break}}}activateButton(t,e){this.tooltip?.hide(),e.popupType&&this.context?this.popupController?.toggle(t,e,this.context):this.context?.executeCommand(e.command)}renderItemsByLayout(){if(!this.context||!this.toolbarElement||!this.layoutConfig)return;const t=this.context.getToolbarRegistry();let e=!0;for(const o of this.layoutConfig.groups){const n=[];for(const e of o){const o=t.getToolbarItemsByPlugin(e).filter(t=>!this.hiddenItems.has(t.id));n.push(...o)}if(0!==n.length){e||this.toolbarElement.appendChild(y()),e=!1;for(const t of n){const e=this.createButton(t);this.toolbarElement.appendChild(e.element),this.buttons.push(e)}}}0===this.buttons.length&&this.toolbarElement.remove()}renderItemsByGroup(){if(!this.context||!this.toolbarElement)return;const t=this.context.getToolbarRegistry().getToolbarItems().filter(t=>!this.hiddenItems.has(t.id));if(0===t.length)return void this.toolbarElement.remove();const e=/* @__PURE__ */new Map;for(const n of t){const t=e.get(n.group)??[];t.push(n),e.set(n.group,t)}let o=!0;for(const[,n]of e){o||this.toolbarElement.appendChild(y()),o=!1;for(const t of n){const e=this.createButton(t);this.toolbarElement.appendChild(e.element),this.buttons.push(e)}}}createButton(t){const e=document.createElement("button");e.type="button",e.className=`notectl-toolbar-btn notectl-toolbar-btn--${t.id}`,e.setAttribute("aria-pressed","false"),e.setAttribute("aria-label",t.label),e.setAttribute("data-toolbar-item",t.id),e.setAttribute("data-tooltip",t.tooltip??t.label);let o=null;if("combobox"===t.popupType){e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","listbox"),e.setAttribute("aria-expanded","false");const n=document.createElement("span");n.className="notectl-toolbar-combobox__label";const r=this.context?.getState();r&&(n.textContent=t.getLabel(r)),e.appendChild(n),o=n;const i=document.createElement("span");i.className="notectl-toolbar-combobox__arrow",i.setAttribute("aria-hidden","true"),i.textContent="▾",e.appendChild(i)}else{t.popupType&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const o=document.createElement("span");o.className="notectl-toolbar-btn__icon",o.innerHTML=t.icon,e.appendChild(o)}return e.addEventListener("mousedown",o=>{o.preventDefault(),this.activateButton(e,t)}),e.addEventListener("mouseenter",()=>this.tooltip?.show(e)),e.addEventListener("mouseleave",()=>this.tooltip?.hide()),e.addEventListener("focus",()=>this.tooltip?.show(e)),e.addEventListener("blur",()=>this.tooltip?.hide()),{element:e,item:t,comboLabelEl:o}}updateButtonStates(t){for(const e of this.buttons){const o=e.item.isActive?.(t)??!1,n=e.item.isEnabled?.(t)??!0;if(e.element.setAttribute("aria-pressed",String(o)),e.element.classList.toggle("notectl-toolbar-btn--active",o),e.element.disabled=!n,n?e.element.removeAttribute("aria-disabled"):e.element.setAttribute("aria-disabled","true"),e.comboLabelEl&&"combobox"===e.item.popupType&&(e.comboLabelEl.textContent=e.item.getLabel(t)),e.item.getIcon){const o=e.item.getIcon(t),n=e.element.querySelector(".notectl-toolbar-btn__icon");n&&n.innerHTML!==o&&(n.innerHTML=o)}}this.overflowController?.updateItemStates(t)}}export{h as TOOLBAR_LOCALE_EN,f as ToolbarOverflowBehavior,_ as ToolbarPlugin,p as ToolbarRegistry,k as ToolbarServiceKey,m as loadToolbarLocale};
2
- //# sourceMappingURL=toolbar.mjs.map
1
+ import{a,i as s,n as o,o as r,r as i,t as m}from"../chunks/ToolbarPlugin-BFEniyH-.mjs";export{s as TOOLBAR_LOCALE_EN,i as ToolbarOverflowBehavior,m as ToolbarPlugin,r as ToolbarRegistry,o as ToolbarServiceKey,a as loadToolbarLocale};
@@ -1,2 +1 @@
1
- import{AlignmentPlugin as i}from"../plugins/alignment.mjs";import{BlockquotePlugin as o}from"../plugins/blockquote.mjs";import{CodeBlockPlugin as t}from"../plugins/code-block.mjs";import{FontSizePlugin as m}from"../plugins/font-size.mjs";import{FontPlugin as n}from"../plugins/font.mjs";import{HardBreakPlugin as r}from"../plugins/hard-break.mjs";import{a as s}from"../chunks/HeadingPlugin-B-LF-AMM.mjs";import{HighlightPlugin as e}from"../plugins/highlight.mjs";import{HorizontalRulePlugin as p}from"../plugins/horizontal-rule.mjs";import{ImagePlugin as l}from"../plugins/image.mjs";import{LinkPlugin as g}from"../plugins/link.mjs";import{ListPlugin as u}from"../plugins/list.mjs";import{PrintPlugin as f}from"../plugins/print.mjs";import{SmartPastePlugin as a}from"../plugins/smart-paste.mjs";import{StrikethroughPlugin as j}from"../plugins/strikethrough.mjs";import{SuperSubPlugin as w}from"../plugins/super-sub.mjs";import{TablePlugin as h}from"../plugins/table.mjs";import{TextColorPlugin as c}from"../plugins/text-color.mjs";import{TextDirectionPlugin as k}from"../plugins/text-direction.mjs";import{TextFormattingPlugin as b}from"../plugins/text-formatting.mjs";function x(x){return{toolbar:[[new n({fonts:[],...x?.font}),new m(x?.fontSize)],[new b(x?.textFormatting),new j(x?.strikethrough),new w(x?.superSub)],[new c(x?.textColor),new e(x?.highlight)],[new s(x?.heading),new o(x?.blockquote),new t(x?.codeBlock)],[new i(x?.alignment),new k(x?.textDirection)],[new u(x?.list)],[new g(x?.link),new h(x?.table),new p(x?.horizontalRule),new l(x?.image)],[new f(x?.print)]],plugins:[new r,new a(x?.smartPaste)]}}export{x as createFullPreset};
2
- //# sourceMappingURL=full.mjs.map
1
+ import{t as m}from"../chunks/full-216JgIG1.mjs";export{m as createFullPreset};
@@ -1,2 +1 @@
1
- import{FontPlugin as n}from"../plugins/font.mjs";function o(o){return{toolbar:[[new n({fonts:[],...o?.font})]],plugins:[]}}export{o as createMinimalPreset};
2
- //# sourceMappingURL=minimal.mjs.map
1
+ import{t as m}from"../chunks/minimal-D-QxXO1C.mjs";export{m as createMinimalPreset};
package/dist/presets.mjs CHANGED
@@ -1,2 +1 @@
1
- import{createMinimalPreset as m}from"./presets/minimal.mjs";import{createFullPreset as r}from"./presets/full.mjs";export{r as createFullPreset,m as createMinimalPreset};
2
- //# sourceMappingURL=presets.mjs.map
1
+ import{t as m}from"./chunks/minimal-D-QxXO1C.mjs";import{t as s}from"./chunks/full-216JgIG1.mjs";export{s as createFullPreset,m as createMinimalPreset};
@@ -1 +1 @@
1
- {"version":3,"file":"StepInversion.d.ts","sourceRoot":"","sources":["../../src/state/StepInversion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASpD,sCAAsC;AACtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAwH3C;AAED,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,WAAW,CAW9D"}
1
+ {"version":3,"file":"StepInversion.d.ts","sourceRoot":"","sources":["../../src/state/StepInversion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASpD,sCAAsC;AACtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAwH3C;AAWD,gFAAgF;AAChF,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,WAAW,CAW9D"}
@@ -25,37 +25,27 @@ export declare class EditorView {
25
25
  private readonly contentElement;
26
26
  readonly history: HistoryManager;
27
27
  private readonly stateChangeCallbacks;
28
- private readonly handleSelectionChange;
29
- private readonly handleMousedown;
30
- private readonly handleDragover;
31
- private readonly handleDrop;
32
- private readonly handleCompositionStartForWrapper;
33
- private readonly handleCompositionEndForWrapper;
34
28
  private isUpdating;
35
- private pendingNodeSelectionClear;
36
- private pendingGapCursorClear;
37
29
  private readonly schemaRegistry?;
38
- private readonly keymapRegistry?;
39
- private readonly fileHandlerRegistry?;
40
30
  private readonly nodeViewRegistry?;
41
31
  private readonly nodeViews;
42
32
  private decorations;
43
33
  private readonly getDecorations?;
44
34
  private readonly isReadOnly;
45
- private navigationKeymap;
46
35
  private readonly compositionState;
47
36
  private readonly cursorWrapper;
48
- private goalColumn;
49
- private preserveGoalColumn;
37
+ private readonly navigation;
38
+ private readonly events;
50
39
  constructor(contentElement: HTMLElement, options: EditorViewOptions);
51
40
  /** Returns the current editor state. */
52
41
  getState(): EditorState;
53
42
  /**
54
- * Central update cycle: sets state, collects decorations, reconciles DOM,
55
- * syncs selection, and notifies listeners. Guarded against re-entrancy.
43
+ * Central update cycle: sets state, collects decorations, reconciles
44
+ * DOM, syncs selection, and notifies listeners.
45
+ * Guarded against re-entrancy.
56
46
  */
57
47
  private applyUpdate;
58
- /** Dispatches a transaction, updates state, reconciles DOM, syncs selection. */
48
+ /** Dispatches a transaction, updates state, reconciles DOM. */
59
49
  dispatch(tr: Transaction): void;
60
50
  /** Performs undo. */
61
51
  undo(): void;
@@ -65,51 +55,11 @@ export declare class EditorView {
65
55
  onStateChange(callback: StateChangeCallback): () => void;
66
56
  /** Replaces the editor state without destroying handlers or history. */
67
57
  replaceState(newState: EditorState): void;
68
- /** Syncs the DOM selection to the editor state. */
69
- private syncSelectionFromDOM;
70
- /** Handles mousedown on selectable/void blocks to create NodeSelection. */
71
- private onMousedown;
72
- /**
73
- * When the user clicks in empty space below all rendered blocks,
74
- * appends a new paragraph after the last block and focuses it.
75
- */
76
- private handleClickBelowContent;
77
- /** Allows file drop by preventing default on dragover when files are present. */
78
- private onDragover;
79
- /** Handles file drop by delegating to registered file handlers. */
80
- private onDrop;
81
- /** Converts screen coordinates to an editor Position. */
82
- private getPositionFromPoint;
83
- /** Handles DOM selection changes (clicks, arrow keys). */
84
- private onSelectionChange;
58
+ /** Syncs the DOM selection into editor state. */
59
+ syncSelection(): void;
85
60
  /** Reconciles DOM and syncs selection, updating decoration state. */
86
61
  private reconcileAndSync;
87
62
  private reconcileOptions;
88
- /** Registers arrow-key keymaps with navigation priority for cross-block movement. */
89
- private registerNavigationKeymaps;
90
- /** Handles a navigation arrow key: cross-block movement if at textblock boundary. */
91
- private handleNavigationArrow;
92
- /** Handles horizontal arrow navigation: InlineNode skip + cross-block. */
93
- private handleHorizontalArrow;
94
- /**
95
- * Maps visual horizontal arrow intent (left/right key) to logical movement
96
- * direction in offset space for the current block direction.
97
- */
98
- private resolveLogicalHorizontalDirection;
99
- /** Handles vertical arrow navigation with goalColumn preservation. */
100
- private handleVerticalArrow;
101
- /**
102
- * Validates the DOM cursor position after an InlineNode skip.
103
- *
104
- * Chrome can place the cursor inside a `contenteditable="false"` element
105
- * (phantom position), and Firefox may lose the cursor entirely next to such
106
- * elements. This read-back roundtrip detects drift between the model
107
- * selection and the actual DOM selection. If they diverge, we force
108
- * `syncSelectionToDOM()` a second time to correct the position.
109
- */
110
- private validateSelectionAfterInlineSkip;
111
- /** Syncs the DOM selection into editor state. Exposed for external callers. */
112
- syncSelection(): void;
113
63
  /** Cleans up all event listeners and handlers. */
114
64
  destroy(): void;
115
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EditorView.d.ts","sourceRoot":"","sources":["../../src/view/EditorView.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK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;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IACpD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;gBAE9B,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB;IAmDnE,wCAAwC;IACxC,QAAQ,IAAI,WAAW;IAIvB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAmCnB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI;IAK/B,qBAAqB;IACrB,IAAI,IAAI,IAAI;IAOZ,qBAAqB;IACrB,IAAI,IAAI,IAAI;IAOZ,yCAAyC;IACzC,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,IAAI;IAQxD,wEAAwE;IACxE,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAkCzC,iDAAiD;IACjD,aAAa,IAAI,IAAI;IAIrB,qEAAqE;IACrE,OAAO,CAAC,gBAAgB;IAqBxB,OAAO,CAAC,gBAAgB;IAmBxB,kDAAkD;IAClD,OAAO,IAAI,IAAI;CASf"}
@@ -0,0 +1,54 @@
1
+ import { CompositionState } from '../model/CompositionState.js';
2
+ import { FileHandlerRegistry } from '../model/FileHandlerRegistry.js';
3
+ import { EditorState } from '../state/EditorState.js';
4
+ import { Transaction } from '../state/Transaction.js';
5
+ import { CursorWrapper } from './CursorWrapper.js';
6
+ export interface EventCoordinatorDeps {
7
+ readonly contentElement: HTMLElement;
8
+ readonly getState: () => EditorState;
9
+ readonly dispatch: (tr: Transaction) => void;
10
+ readonly applyUpdate: (newState: EditorState, tr: Transaction) => void;
11
+ readonly isUpdating: () => boolean;
12
+ readonly compositionState: CompositionState;
13
+ readonly cursorWrapper: CursorWrapper;
14
+ readonly isReadOnly: () => boolean;
15
+ readonly fileHandlerRegistry?: FileHandlerRegistry;
16
+ readonly onMousedown?: () => void;
17
+ }
18
+ export declare class EditorViewEvents {
19
+ private readonly deps;
20
+ private readonly handleSelectionChange;
21
+ private readonly handleMousedown;
22
+ private readonly handleDragover;
23
+ private readonly handleDrop;
24
+ private readonly handleCompositionStart;
25
+ private readonly handleCompositionEnd;
26
+ private pendingNodeSelectionClear;
27
+ private pendingGapCursorClear;
28
+ constructor(deps: EventCoordinatorDeps);
29
+ /** Syncs the DOM selection into editor state. */
30
+ syncSelectionFromDOM(): void;
31
+ /** Removes all event listeners. */
32
+ destroy(): void;
33
+ /** Handles DOM selection changes (clicks, arrow keys). */
34
+ private onSelectionChange;
35
+ /** Handles mousedown on selectable/void blocks. */
36
+ private onMousedown;
37
+ /**
38
+ * When the user clicks below all rendered blocks, appends a
39
+ * new paragraph after the last block and focuses it.
40
+ */
41
+ private handleClickBelowContent;
42
+ /** Allows file drop by preventing default on dragover. */
43
+ private onDragover;
44
+ /** Handles file drop via registered file handlers. */
45
+ private onDrop;
46
+ /** Converts screen coordinates to an editor Position. */
47
+ private getPositionFromPoint;
48
+ /**
49
+ * Marks pending clear flags when clicking non-selectable blocks
50
+ * while NodeSelection or GapCursor is active.
51
+ */
52
+ private markPendingSelectionClear;
53
+ }
54
+ //# sourceMappingURL=EditorViewEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorViewEvents.d.ts","sourceRoot":"","sources":["../../src/view/EditorViewEvents.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAW3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD,MAAM,WAAW,oB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