@notectl/core 2.2.5 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/dist/chunks/{AlignmentPlugin-BCHxo16v.mjs → AlignmentPlugin--xAFlRqE.mjs} +2 -2
  2. package/dist/chunks/{AlignmentPlugin-BCHxo16v.mjs.map → AlignmentPlugin--xAFlRqE.mjs.map} +1 -1
  3. package/dist/chunks/{AttrRegistry-DcDVyzLm.mjs → AttrRegistry-B3zB02z9.mjs} +2 -2
  4. package/dist/chunks/AttrRegistry-B3zB02z9.mjs.map +1 -0
  5. package/dist/chunks/{AttributedMarkCommands-D4W2Jgpj.mjs → AttributedMarkCommands-bagbH8Qt.mjs} +2 -2
  6. package/dist/chunks/{AttributedMarkCommands-D4W2Jgpj.mjs.map → AttributedMarkCommands-bagbH8Qt.mjs.map} +1 -1
  7. package/dist/chunks/{BidiIsolationPlugin-BddRbDCN.mjs → BidiIsolationPlugin-DBXyXpgm.mjs} +2 -2
  8. package/dist/chunks/{BidiIsolationPlugin-BddRbDCN.mjs.map → BidiIsolationPlugin-DBXyXpgm.mjs.map} +1 -1
  9. package/dist/chunks/BlockInsertion-CJusvrDL.mjs +2 -0
  10. package/dist/chunks/BlockInsertion-CJusvrDL.mjs.map +1 -0
  11. package/dist/chunks/BlockquotePlugin-Bz2glHwX.mjs +2 -0
  12. package/dist/chunks/{BlockquotePlugin-4V7KV_Sb.mjs.map → BlockquotePlugin-Bz2glHwX.mjs.map} +1 -1
  13. package/dist/chunks/{CaretNavigationPlugin-C6XBwp0N.mjs → CaretNavigationPlugin-CNsT0eb4.mjs} +2 -2
  14. package/dist/chunks/{CaretNavigationPlugin-C6XBwp0N.mjs.map → CaretNavigationPlugin-CNsT0eb4.mjs.map} +1 -1
  15. package/dist/chunks/CodeBlockPlugin-C1hrdbSZ.mjs +2 -0
  16. package/dist/chunks/CodeBlockPlugin-C1hrdbSZ.mjs.map +1 -0
  17. package/dist/chunks/{ColorGrid-CXRdpP_n.mjs → ColorGrid-C9RQoEWF.mjs} +2 -2
  18. package/dist/chunks/{ColorGrid-CXRdpP_n.mjs.map → ColorGrid-C9RQoEWF.mjs.map} +1 -1
  19. package/dist/chunks/ColorPickerPopup-DiA68Pzz.mjs +2 -0
  20. package/dist/chunks/{ColorPickerPopup-C_74bqid.mjs.map → ColorPickerPopup-DiA68Pzz.mjs.map} +1 -1
  21. package/dist/chunks/Commands-1dFFldi7.mjs +2 -0
  22. package/dist/chunks/Commands-1dFFldi7.mjs.map +1 -0
  23. package/dist/chunks/ContentModel-NpAj7vGW.mjs +2 -0
  24. package/dist/chunks/ContentModel-NpAj7vGW.mjs.map +1 -0
  25. package/dist/chunks/Decoration-BpoEOANl.mjs +2 -0
  26. package/dist/chunks/Decoration-BpoEOANl.mjs.map +1 -0
  27. package/dist/chunks/{DirectionDetection-C7XE0nxW.mjs → DirectionDetection-CDVSEWQ6.mjs} +2 -2
  28. package/dist/chunks/{DirectionDetection-C7XE0nxW.mjs.map → DirectionDetection-CDVSEWQ6.mjs.map} +1 -1
  29. package/dist/chunks/Document-827l3P80.mjs +2 -0
  30. package/dist/chunks/Document-827l3P80.mjs.map +1 -0
  31. package/dist/chunks/DocumentParser-D2tr3ZKn.mjs +2 -0
  32. package/dist/chunks/DocumentParser-D2tr3ZKn.mjs.map +1 -0
  33. package/dist/chunks/EditorEventBoundary-zpYRxryo.mjs +2 -0
  34. package/dist/chunks/EditorEventBoundary-zpYRxryo.mjs.map +1 -0
  35. package/dist/chunks/FontPlugin-By-TGrQo.mjs +2 -0
  36. package/dist/chunks/{FontPlugin-DB1_bgam.mjs.map → FontPlugin-By-TGrQo.mjs.map} +1 -1
  37. package/dist/chunks/{FontSizePlugin-DFvp7Ki9.mjs → FontSizePlugin-Dln-tYXV.mjs} +2 -2
  38. package/dist/chunks/FontSizePlugin-Dln-tYXV.mjs.map +1 -0
  39. package/dist/chunks/FormulaPlugin-By1befrR.mjs +2 -0
  40. package/dist/chunks/FormulaPlugin-By1befrR.mjs.map +1 -0
  41. package/dist/chunks/GapCursorNavigation-BuXngVu-.mjs +2 -0
  42. package/dist/chunks/{GapCursorNavigation-ycNzuQVH.mjs.map → GapCursorNavigation-BuXngVu-.mjs.map} +1 -1
  43. package/dist/chunks/{GapCursorPlugin-Zvxjnr82.mjs → GapCursorPlugin-DAxVzXRs.mjs} +2 -2
  44. package/dist/chunks/{GapCursorPlugin-Zvxjnr82.mjs.map → GapCursorPlugin-DAxVzXRs.mjs.map} +1 -1
  45. package/dist/chunks/HTMLUtils-Bhg3_P8B.mjs +2 -0
  46. package/dist/chunks/HTMLUtils-Bhg3_P8B.mjs.map +1 -0
  47. package/dist/chunks/{HardBreakPlugin-9DOyCyyM.mjs → HardBreakPlugin-DlbSlrdq.mjs} +2 -2
  48. package/dist/chunks/{HardBreakPlugin-9DOyCyyM.mjs.map → HardBreakPlugin-DlbSlrdq.mjs.map} +1 -1
  49. package/dist/chunks/HeadingPlugin-uMAjPOk5.mjs +2 -0
  50. package/dist/chunks/{HeadingPlugin-D9yvG2Aw.mjs.map → HeadingPlugin-uMAjPOk5.mjs.map} +1 -1
  51. package/dist/chunks/{HighlightPlugin-D4gh4RP7.mjs → HighlightPlugin-Bj7FPkIQ.mjs} +2 -2
  52. package/dist/chunks/{HighlightPlugin-D4gh4RP7.mjs.map → HighlightPlugin-Bj7FPkIQ.mjs.map} +1 -1
  53. package/dist/chunks/HorizontalRulePlugin-DUVmTQpX.mjs +2 -0
  54. package/dist/chunks/HorizontalRulePlugin-DUVmTQpX.mjs.map +1 -0
  55. package/dist/chunks/ImagePlugin-FToCOjd5.mjs +2 -0
  56. package/dist/chunks/{ImagePlugin-Cp_RINtc.mjs.map → ImagePlugin-FToCOjd5.mjs.map} +1 -1
  57. package/dist/chunks/{InlineCodePlugin-DMr4O7c7.mjs → InlineCodePlugin-pISIoGQE.mjs} +2 -2
  58. package/dist/chunks/InlineCodePlugin-pISIoGQE.mjs.map +1 -0
  59. package/dist/chunks/InlineStyleMarkSpec-CjSRj4f_.mjs +2 -0
  60. package/dist/chunks/{InlineStyleMarkSpec-4R6DC7ij.mjs.map → InlineStyleMarkSpec-CjSRj4f_.mjs.map} +1 -1
  61. package/dist/chunks/LinkPlugin-Ct5Z180S.mjs +2 -0
  62. package/dist/chunks/LinkPlugin-Ct5Z180S.mjs.map +1 -0
  63. package/dist/chunks/ListPlugin-DAY5ezNs.mjs +2 -0
  64. package/dist/chunks/ListPlugin-DAY5ezNs.mjs.map +1 -0
  65. package/dist/chunks/MarkInputRule-Bdi8KPus.mjs +2 -0
  66. package/dist/chunks/MarkInputRule-Bdi8KPus.mjs.map +1 -0
  67. package/dist/chunks/MarkdownHTMLRegistry-CKEx7LkR.mjs +2 -0
  68. package/dist/chunks/MarkdownHTMLRegistry-CKEx7LkR.mjs.map +1 -0
  69. package/dist/chunks/MarkdownParser-CWt3M6jR.mjs +2 -0
  70. package/dist/chunks/MarkdownParser-CWt3M6jR.mjs.map +1 -0
  71. package/dist/chunks/MarkdownSerializer-J-i28out.mjs +2 -0
  72. package/dist/chunks/MarkdownSerializer-J-i28out.mjs.map +1 -0
  73. package/dist/chunks/{NodeResolver-ChgLF_IP.mjs → NodeResolver-Dleih-8R.mjs} +2 -2
  74. package/dist/chunks/{NodeResolver-ChgLF_IP.mjs.map → NodeResolver-Dleih-8R.mjs.map} +1 -1
  75. package/dist/chunks/NodeSelectionCommands-1PjwUDTJ.mjs +2 -0
  76. package/dist/chunks/{NodeSelectionCommands-Dj4VxLdD.mjs.map → NodeSelectionCommands-1PjwUDTJ.mjs.map} +1 -1
  77. package/dist/chunks/PluginHelpers-Dx_0hfDe.mjs +2 -0
  78. package/dist/chunks/{PluginHelpers-KDuTlmXm.mjs.map → PluginHelpers-Dx_0hfDe.mjs.map} +1 -1
  79. package/dist/chunks/{PopupManager-CyOfZUab.mjs → PopupManager-CT-fMZJn.mjs} +2 -2
  80. package/dist/chunks/{PopupManager-CyOfZUab.mjs.map → PopupManager-CT-fMZJn.mjs.map} +1 -1
  81. package/dist/chunks/PopupPositioning-BFh6Ed1D.mjs +2 -0
  82. package/dist/chunks/{PopupPositioning-DtUrY9bh.mjs.map → PopupPositioning-BFh6Ed1D.mjs.map} +1 -1
  83. package/dist/chunks/PrintPlugin-7zz9mhhU.mjs +2 -0
  84. package/dist/chunks/PrintPlugin-7zz9mhhU.mjs.map +1 -0
  85. package/dist/chunks/{PrintTypes-WdtgSj74.mjs → PrintTypes-CxU69qu3.mjs} +3 -2
  86. package/dist/chunks/PrintTypes-CxU69qu3.mjs.map +1 -0
  87. package/dist/chunks/{RangeIterator-o8v3msQe.mjs → RangeIterator-DP7Ud3Gp.mjs} +2 -2
  88. package/dist/chunks/{RangeIterator-o8v3msQe.mjs.map → RangeIterator-DP7Ud3Gp.mjs.map} +1 -1
  89. package/dist/chunks/SchemaRegistry-CkBN-1yW.mjs +2 -0
  90. package/dist/chunks/SchemaRegistry-CkBN-1yW.mjs.map +1 -0
  91. package/dist/chunks/{SimpleMark-CaQtFAau.mjs → SimpleMark-7CQcA4RK.mjs} +2 -2
  92. package/dist/chunks/{SimpleMark-CaQtFAau.mjs.map → SimpleMark-7CQcA4RK.mjs.map} +1 -1
  93. package/dist/chunks/{SmartPastePlugin-Bi_wpTCV.mjs → SmartPastePlugin-CYa_nD9v.mjs} +2 -2
  94. package/dist/chunks/{SmartPastePlugin-Bi_wpTCV.mjs.map → SmartPastePlugin-CYa_nD9v.mjs.map} +1 -1
  95. package/dist/chunks/StrikethroughPlugin-C2oWvGc3.mjs +2 -0
  96. package/dist/chunks/StrikethroughPlugin-C2oWvGc3.mjs.map +1 -0
  97. package/dist/chunks/StyleRuntime-DW6omotc.mjs +2 -0
  98. package/dist/chunks/StyleRuntime-DW6omotc.mjs.map +1 -0
  99. package/dist/chunks/{SuperSubPlugin-DVP7VnIz.mjs → SuperSubPlugin-D1xaKrSu.mjs} +2 -2
  100. package/dist/chunks/{SuperSubPlugin-DVP7VnIz.mjs.map → SuperSubPlugin-D1xaKrSu.mjs.map} +1 -1
  101. package/dist/chunks/TableDimensions-BBhjHNjQ.mjs +2 -0
  102. package/dist/chunks/TableDimensions-BBhjHNjQ.mjs.map +1 -0
  103. package/dist/chunks/TablePlugin-PJe3zwr-.mjs +2 -0
  104. package/dist/chunks/TablePlugin-PJe3zwr-.mjs.map +1 -0
  105. package/dist/chunks/TextColorPlugin-CTd9tfeG.mjs +2 -0
  106. package/dist/chunks/{TextColorPlugin-C1qpzEOa.mjs.map → TextColorPlugin-CTd9tfeG.mjs.map} +1 -1
  107. package/dist/chunks/TextDirectionAutoPlugin-CPnKVVuI.mjs +2 -0
  108. package/dist/chunks/{TextDirectionAutoPlugin-CzWJjrvG.mjs.map → TextDirectionAutoPlugin-CPnKVVuI.mjs.map} +1 -1
  109. package/dist/chunks/{TextDirectionPlugin-DHB88HKf.mjs → TextDirectionPlugin-Bns_03vL.mjs} +2 -2
  110. package/dist/chunks/{TextDirectionPlugin-DHB88HKf.mjs.map → TextDirectionPlugin-Bns_03vL.mjs.map} +1 -1
  111. package/dist/chunks/TextDirectionService-BcX07mw2.mjs +2 -0
  112. package/dist/chunks/{TextDirectionService-OFOU6r_s.mjs.map → TextDirectionService-BcX07mw2.mjs.map} +1 -1
  113. package/dist/chunks/TextFormattingPlugin-DBVlePqj.mjs +2 -0
  114. package/dist/chunks/TextFormattingPlugin-DBVlePqj.mjs.map +1 -0
  115. package/dist/chunks/{ToolbarPlugin-CLz2wa2c.mjs → ToolbarPlugin-DtfGTO_V.mjs} +2 -2
  116. package/dist/chunks/{ToolbarPlugin-CLz2wa2c.mjs.map → ToolbarPlugin-DtfGTO_V.mjs.map} +1 -1
  117. package/dist/chunks/VideoPlugin-BrR8g6Rz.mjs +2 -0
  118. package/dist/chunks/VideoPlugin-BrR8g6Rz.mjs.map +1 -0
  119. package/dist/chunks/WordBoundary-CFpIJDNP.mjs +2 -0
  120. package/dist/chunks/{WordBoundary-DxeMBRyP.mjs.map → WordBoundary-CFpIJDNP.mjs.map} +1 -1
  121. package/dist/chunks/ar-Dg9PdDet.mjs +2 -0
  122. package/dist/chunks/ar-Dg9PdDet.mjs.map +1 -0
  123. package/dist/chunks/ar-eOA3UmiE.mjs +2 -0
  124. package/dist/chunks/{ar-BTShmP2E.mjs.map → ar-eOA3UmiE.mjs.map} +1 -1
  125. package/dist/chunks/de-DJ5EkXQo.mjs +2 -0
  126. package/dist/chunks/de-DJ5EkXQo.mjs.map +1 -0
  127. package/dist/chunks/{de-C--bRmjW.mjs → de-DRbhnS4T.mjs} +2 -2
  128. package/dist/chunks/{de-C--bRmjW.mjs.map → de-DRbhnS4T.mjs.map} +1 -1
  129. package/dist/chunks/{es-DFUVd7eO.mjs → es-BQ9dox_E.mjs} +2 -2
  130. package/dist/chunks/{es-DFUVd7eO.mjs.map → es-BQ9dox_E.mjs.map} +1 -1
  131. package/dist/chunks/es-CEAJj7aB.mjs +2 -0
  132. package/dist/chunks/es-CEAJj7aB.mjs.map +1 -0
  133. package/dist/chunks/fr-DhWQzZy3.mjs +2 -0
  134. package/dist/chunks/fr-DhWQzZy3.mjs.map +1 -0
  135. package/dist/chunks/{fr-BaXKyPmX.mjs → fr-NVOinLyF.mjs} +2 -2
  136. package/dist/chunks/{fr-BaXKyPmX.mjs.map → fr-NVOinLyF.mjs.map} +1 -1
  137. package/dist/chunks/full-DSWM4cKQ.mjs +2 -0
  138. package/dist/chunks/{full-Cah3qjCT.mjs.map → full-DSWM4cKQ.mjs.map} +1 -1
  139. package/dist/chunks/hi-BsZzSMfL.mjs +2 -0
  140. package/dist/chunks/hi-BsZzSMfL.mjs.map +1 -0
  141. package/dist/chunks/{hi-aH9HZG23.mjs → hi-DrC2H81d.mjs} +2 -2
  142. package/dist/chunks/{hi-aH9HZG23.mjs.map → hi-DrC2H81d.mjs.map} +1 -1
  143. package/dist/chunks/minimal-CFkkPXef.mjs +2 -0
  144. package/dist/chunks/{minimal-DqATlnAL.mjs.map → minimal-CFkkPXef.mjs.map} +1 -1
  145. package/dist/chunks/pt-BuZ7acHF.mjs +2 -0
  146. package/dist/chunks/pt-BuZ7acHF.mjs.map +1 -0
  147. package/dist/chunks/{pt-Hy-0Xnnc.mjs → pt-CFrcl1v_.mjs} +2 -2
  148. package/dist/chunks/{pt-Hy-0Xnnc.mjs.map → pt-CFrcl1v_.mjs.map} +1 -1
  149. package/dist/chunks/rolldown-runtime-H_PjY6_i.mjs +1 -0
  150. package/dist/chunks/ru-CsP6mLxp.mjs +2 -0
  151. package/dist/chunks/ru-CsP6mLxp.mjs.map +1 -0
  152. package/dist/chunks/{ru-BFpEOrVp.mjs → ru-gxbzqLL8.mjs} +2 -2
  153. package/dist/chunks/{ru-BFpEOrVp.mjs.map → ru-gxbzqLL8.mjs.map} +1 -1
  154. package/dist/chunks/src-DiAOfuOT.mjs +2 -0
  155. package/dist/chunks/src-DiAOfuOT.mjs.map +1 -0
  156. package/dist/chunks/zh-BFZOM3lF.mjs +2 -0
  157. package/dist/chunks/{zh-BjoyjClN.mjs.map → zh-BFZOM3lF.mjs.map} +1 -1
  158. package/dist/chunks/zh-CiIyOm6U.mjs +2 -0
  159. package/dist/chunks/zh-CiIyOm6U.mjs.map +1 -0
  160. package/dist/commands/BlockInsertion.d.ts +5 -3
  161. package/dist/commands/BlockInsertion.d.ts.map +1 -1
  162. package/dist/commands/SelectionDeletion.d.ts +13 -2
  163. package/dist/commands/SelectionDeletion.d.ts.map +1 -1
  164. package/dist/editor/ContentSerializer.d.ts +21 -0
  165. package/dist/editor/ContentSerializer.d.ts.map +1 -1
  166. package/dist/editor/EditorConfig.d.ts +17 -0
  167. package/dist/editor/EditorConfig.d.ts.map +1 -1
  168. package/dist/editor/EditorConfigController.d.ts +10 -0
  169. package/dist/editor/EditorConfigController.d.ts.map +1 -1
  170. package/dist/editor/EditorInitializer.d.ts +4 -0
  171. package/dist/editor/EditorInitializer.d.ts.map +1 -1
  172. package/dist/editor/EditorLocale.d.ts +2 -0
  173. package/dist/editor/EditorLocale.d.ts.map +1 -1
  174. package/dist/editor/MarkdownMode.d.ts +46 -0
  175. package/dist/editor/MarkdownMode.d.ts.map +1 -0
  176. package/dist/editor/NotectlEditor.d.ts +46 -3
  177. package/dist/editor/NotectlEditor.d.ts.map +1 -1
  178. package/dist/editor/locales/ar.d.ts.map +1 -1
  179. package/dist/editor/locales/de.d.ts.map +1 -1
  180. package/dist/editor/locales/es.d.ts.map +1 -1
  181. package/dist/editor/locales/fr.d.ts.map +1 -1
  182. package/dist/editor/locales/hi.d.ts.map +1 -1
  183. package/dist/editor/locales/pt.d.ts.map +1 -1
  184. package/dist/editor/locales/ru.d.ts.map +1 -1
  185. package/dist/editor/locales/zh.d.ts.map +1 -1
  186. package/dist/editor/styles/list.d.ts +1 -1
  187. package/dist/editor/styles/list.d.ts.map +1 -1
  188. package/dist/editor/styles/table.d.ts +1 -1
  189. package/dist/editor/styles/table.d.ts.map +1 -1
  190. package/dist/full.mjs +1 -1
  191. package/dist/html.d.ts +1 -0
  192. package/dist/html.d.ts.map +1 -1
  193. package/dist/html.mjs +1 -1
  194. package/dist/index.d.ts +5 -5
  195. package/dist/index.d.ts.map +1 -1
  196. package/dist/input/ClipboardHandler.d.ts +2 -0
  197. package/dist/input/ClipboardHandler.d.ts.map +1 -1
  198. package/dist/input/InputHandler.d.ts +7 -0
  199. package/dist/input/InputHandler.d.ts.map +1 -1
  200. package/dist/input/InputManager.d.ts +10 -0
  201. package/dist/input/InputManager.d.ts.map +1 -1
  202. package/dist/input/KeyboardHandler.d.ts.map +1 -1
  203. package/dist/input/MarkdownPasteDetector.d.ts +26 -0
  204. package/dist/input/MarkdownPasteDetector.d.ts.map +1 -0
  205. package/dist/input/PasteHTMLHandler.d.ts +18 -1
  206. package/dist/input/PasteHTMLHandler.d.ts.map +1 -1
  207. package/dist/input/PasteHandler.d.ts +30 -0
  208. package/dist/input/PasteHandler.d.ts.map +1 -1
  209. package/dist/input/PasteRichBlockHandler.d.ts.map +1 -1
  210. package/dist/input/SelectionDocument.d.ts +2 -1
  211. package/dist/input/SelectionDocument.d.ts.map +1 -1
  212. package/dist/markdown.d.ts +17 -0
  213. package/dist/markdown.d.ts.map +1 -0
  214. package/dist/markdown.mjs +1 -0
  215. package/dist/model/AttrRegistry.d.ts +2 -2
  216. package/dist/model/AttrRegistry.d.ts.map +1 -1
  217. package/dist/model/ContentModel.d.ts +12 -0
  218. package/dist/model/ContentModel.d.ts.map +1 -1
  219. package/dist/model/Document.d.ts +28 -3
  220. package/dist/model/Document.d.ts.map +1 -1
  221. package/dist/model/HTMLUtils.d.ts +15 -0
  222. package/dist/model/HTMLUtils.d.ts.map +1 -1
  223. package/dist/model/InlineNodeSpec.d.ts +7 -1
  224. package/dist/model/InlineNodeSpec.d.ts.map +1 -1
  225. package/dist/model/InputRule.d.ts +11 -0
  226. package/dist/model/InputRule.d.ts.map +1 -1
  227. package/dist/model/MarkSpec.d.ts +7 -1
  228. package/dist/model/MarkSpec.d.ts.map +1 -1
  229. package/dist/model/MarkdownSyntaxRegistry.d.ts +51 -0
  230. package/dist/model/MarkdownSyntaxRegistry.d.ts.map +1 -0
  231. package/dist/model/NodeSpec.d.ts +47 -1
  232. package/dist/model/NodeSpec.d.ts.map +1 -1
  233. package/dist/model/RichBlockData.d.ts +2 -0
  234. package/dist/model/RichBlockData.d.ts.map +1 -1
  235. package/dist/model/SchemaRegistry.d.ts.map +1 -1
  236. package/dist/model/TableDimensions.d.ts +11 -0
  237. package/dist/model/TableDimensions.d.ts.map +1 -0
  238. package/dist/notectl-core.mjs +1 -1
  239. package/dist/notectl-core.umd.js +1 -1
  240. package/dist/notectl-core.umd.js.map +1 -1
  241. package/dist/platform/EditorEventBoundary.d.ts +12 -0
  242. package/dist/platform/EditorEventBoundary.d.ts.map +1 -0
  243. package/dist/plugins/Plugin.d.ts +7 -0
  244. package/dist/plugins/Plugin.d.ts.map +1 -1
  245. package/dist/plugins/PluginContextFactory.d.ts +2 -0
  246. package/dist/plugins/PluginContextFactory.d.ts.map +1 -1
  247. package/dist/plugins/PluginManager.d.ts +2 -0
  248. package/dist/plugins/PluginManager.d.ts.map +1 -1
  249. package/dist/plugins/alignment.mjs +1 -1
  250. package/dist/plugins/bidi-isolation.mjs +1 -1
  251. package/dist/plugins/blockquote/BlockquotePlugin.d.ts +2 -0
  252. package/dist/plugins/blockquote/BlockquotePlugin.d.ts.map +1 -1
  253. package/dist/plugins/blockquote.mjs +1 -1
  254. package/dist/plugins/caret-navigation.mjs +1 -1
  255. package/dist/plugins/code-block/CodeBlockTypes.d.ts +2 -0
  256. package/dist/plugins/code-block/CodeBlockTypes.d.ts.map +1 -1
  257. package/dist/plugins/code-block.mjs +1 -1
  258. package/dist/plugins/font-size/FontSizeOperations.d.ts.map +1 -1
  259. package/dist/plugins/font-size.mjs +1 -1
  260. package/dist/plugins/font.mjs +1 -1
  261. package/dist/plugins/formula/DisplayMathNodeSpec.d.ts.map +1 -1
  262. package/dist/plugins/formula/FormulaInputRules.d.ts.map +1 -1
  263. package/dist/plugins/formula/FormulaMarkdownSyntax.d.ts +4 -0
  264. package/dist/plugins/formula/FormulaMarkdownSyntax.d.ts.map +1 -0
  265. package/dist/plugins/formula/FormulaPlugin.d.ts.map +1 -1
  266. package/dist/plugins/formula/FormulaTypes.d.ts +2 -0
  267. package/dist/plugins/formula/FormulaTypes.d.ts.map +1 -1
  268. package/dist/plugins/formula/InlineMathNodeSpec.d.ts.map +1 -1
  269. package/dist/plugins/formula.mjs +1 -1
  270. package/dist/plugins/gap-cursor.mjs +1 -1
  271. package/dist/plugins/hard-break.mjs +1 -1
  272. package/dist/plugins/heading/HeadingPlugin.d.ts +2 -0
  273. package/dist/plugins/heading/HeadingPlugin.d.ts.map +1 -1
  274. package/dist/plugins/heading.mjs +1 -1
  275. package/dist/plugins/highlight.mjs +1 -1
  276. package/dist/plugins/horizontal-rule/HorizontalRulePlugin.d.ts +2 -0
  277. package/dist/plugins/horizontal-rule/HorizontalRulePlugin.d.ts.map +1 -1
  278. package/dist/plugins/horizontal-rule.mjs +1 -1
  279. package/dist/plugins/image/ImagePlugin.d.ts +14 -0
  280. package/dist/plugins/image/ImagePlugin.d.ts.map +1 -1
  281. package/dist/plugins/image.mjs +1 -1
  282. package/dist/plugins/inline-code/InlineCodePlugin.d.ts.map +1 -1
  283. package/dist/plugins/inline-code.mjs +1 -1
  284. package/dist/plugins/link/LinkPlugin.d.ts +14 -0
  285. package/dist/plugins/link/LinkPlugin.d.ts.map +1 -1
  286. package/dist/plugins/link.mjs +1 -1
  287. package/dist/plugins/list/ListCommands.d.ts +5 -1
  288. package/dist/plugins/list/ListCommands.d.ts.map +1 -1
  289. package/dist/plugins/list/ListInputRules.d.ts.map +1 -1
  290. package/dist/plugins/list/ListItemContext.d.ts +27 -0
  291. package/dist/plugins/list/ListItemContext.d.ts.map +1 -0
  292. package/dist/plugins/list/ListKeyboardHandlers.d.ts.map +1 -1
  293. package/dist/plugins/list/ListPlugin.d.ts +2 -0
  294. package/dist/plugins/list/ListPlugin.d.ts.map +1 -1
  295. package/dist/plugins/list/ListToolbarItems.d.ts.map +1 -1
  296. package/dist/plugins/list.mjs +1 -1
  297. package/dist/plugins/print/PrintContentPreparer.d.ts.map +1 -1
  298. package/dist/plugins/print/PrintDestinationBridge.d.ts +23 -0
  299. package/dist/plugins/print/PrintDestinationBridge.d.ts.map +1 -0
  300. package/dist/plugins/print/PrintHostStyles.d.ts +50 -0
  301. package/dist/plugins/print/PrintHostStyles.d.ts.map +1 -0
  302. package/dist/plugins/print/PrintPlugin.d.ts.map +1 -1
  303. package/dist/plugins/print/PrintServiceImpl.d.ts +76 -3
  304. package/dist/plugins/print/PrintServiceImpl.d.ts.map +1 -1
  305. package/dist/plugins/print/PrintStyleCollector.d.ts +150 -21
  306. package/dist/plugins/print/PrintStyleCollector.d.ts.map +1 -1
  307. package/dist/plugins/print/StaticHostMarker.d.ts +18 -0
  308. package/dist/plugins/print/StaticHostMarker.d.ts.map +1 -0
  309. package/dist/plugins/print.mjs +1 -1
  310. package/dist/plugins/shared/MarkInputRule.d.ts +9 -0
  311. package/dist/plugins/shared/MarkInputRule.d.ts.map +1 -0
  312. package/dist/plugins/shared/PopupPositioning.d.ts +2 -0
  313. package/dist/plugins/shared/PopupPositioning.d.ts.map +1 -1
  314. package/dist/plugins/shared/index.d.ts +1 -0
  315. package/dist/plugins/shared/index.d.ts.map +1 -1
  316. package/dist/plugins/shared.mjs +1 -1
  317. package/dist/plugins/smart-paste.mjs +1 -1
  318. package/dist/plugins/strikethrough/StrikethroughPlugin.d.ts +2 -0
  319. package/dist/plugins/strikethrough/StrikethroughPlugin.d.ts.map +1 -1
  320. package/dist/plugins/strikethrough.mjs +1 -1
  321. package/dist/plugins/super-sub.mjs +1 -1
  322. package/dist/plugins/table/TableClipboard.d.ts +8 -0
  323. package/dist/plugins/table/TableClipboard.d.ts.map +1 -0
  324. package/dist/plugins/table/TableCommands.d.ts.map +1 -1
  325. package/dist/plugins/table/TableContextMenu.d.ts +11 -1
  326. package/dist/plugins/table/TableContextMenu.d.ts.map +1 -1
  327. package/dist/plugins/table/TableControls.d.ts +6 -1
  328. package/dist/plugins/table/TableControls.d.ts.map +1 -1
  329. package/dist/plugins/table/TableControlsDOM.d.ts +11 -2
  330. package/dist/plugins/table/TableControlsDOM.d.ts.map +1 -1
  331. package/dist/plugins/table/TableControlsLayout.d.ts +12 -3
  332. package/dist/plugins/table/TableControlsLayout.d.ts.map +1 -1
  333. package/dist/plugins/table/TableGrid.d.ts +57 -0
  334. package/dist/plugins/table/TableGrid.d.ts.map +1 -0
  335. package/dist/plugins/table/TableHelpers.d.ts +4 -0
  336. package/dist/plugins/table/TableHelpers.d.ts.map +1 -1
  337. package/dist/plugins/table/TableLocale.d.ts +30 -0
  338. package/dist/plugins/table/TableLocale.d.ts.map +1 -1
  339. package/dist/plugins/table/TableNavigation.d.ts +5 -1
  340. package/dist/plugins/table/TableNavigation.d.ts.map +1 -1
  341. package/dist/plugins/table/TableNodeViews.d.ts +13 -1
  342. package/dist/plugins/table/TableNodeViews.d.ts.map +1 -1
  343. package/dist/plugins/table/TablePlugin.d.ts +21 -1
  344. package/dist/plugins/table/TablePlugin.d.ts.map +1 -1
  345. package/dist/plugins/table/TableSelection.d.ts.map +1 -1
  346. package/dist/plugins/table/TableSizeEditor.d.ts +11 -0
  347. package/dist/plugins/table/TableSizeEditor.d.ts.map +1 -0
  348. package/dist/plugins/table/TableSizing.d.ts +70 -0
  349. package/dist/plugins/table/TableSizing.d.ts.map +1 -0
  350. package/dist/plugins/table/index.d.ts +3 -1
  351. package/dist/plugins/table/index.d.ts.map +1 -1
  352. package/dist/plugins/table/locales/ar.d.ts.map +1 -1
  353. package/dist/plugins/table/locales/de.d.ts.map +1 -1
  354. package/dist/plugins/table/locales/es.d.ts.map +1 -1
  355. package/dist/plugins/table/locales/fr.d.ts.map +1 -1
  356. package/dist/plugins/table/locales/hi.d.ts.map +1 -1
  357. package/dist/plugins/table/locales/pt.d.ts.map +1 -1
  358. package/dist/plugins/table/locales/ru.d.ts.map +1 -1
  359. package/dist/plugins/table/locales/zh.d.ts.map +1 -1
  360. package/dist/plugins/table.mjs +1 -1
  361. package/dist/plugins/text-color.mjs +1 -1
  362. package/dist/plugins/text-direction-auto.mjs +1 -1
  363. package/dist/plugins/text-direction.mjs +1 -1
  364. package/dist/plugins/text-formatting/TextFormattingPlugin.d.ts +9 -0
  365. package/dist/plugins/text-formatting/TextFormattingPlugin.d.ts.map +1 -1
  366. package/dist/plugins/text-formatting.mjs +1 -1
  367. package/dist/plugins/toolbar.mjs +1 -1
  368. package/dist/plugins/video/VideoCommands.d.ts.map +1 -1
  369. package/dist/plugins/video.mjs +1 -1
  370. package/dist/presets/full.mjs +1 -1
  371. package/dist/presets/minimal.mjs +1 -1
  372. package/dist/presets.mjs +1 -1
  373. package/dist/serialization/DocumentParser.d.ts.map +1 -1
  374. package/dist/serialization/DocumentSerializer.d.ts +2 -0
  375. package/dist/serialization/DocumentSerializer.d.ts.map +1 -1
  376. package/dist/serialization/HTMLSanitization.d.ts +15 -0
  377. package/dist/serialization/HTMLSanitization.d.ts.map +1 -0
  378. package/dist/serialization/MarkSerializer.d.ts +12 -0
  379. package/dist/serialization/MarkSerializer.d.ts.map +1 -1
  380. package/dist/serialization/MarkdownParser.d.ts +6 -0
  381. package/dist/serialization/MarkdownParser.d.ts.map +1 -0
  382. package/dist/serialization/MarkdownSerializer.d.ts +12 -0
  383. package/dist/serialization/MarkdownSerializer.d.ts.map +1 -0
  384. package/dist/serialization/MarkdownTypes.d.ts +59 -0
  385. package/dist/serialization/MarkdownTypes.d.ts.map +1 -0
  386. package/dist/serialization/TableDimensions.d.ts +37 -0
  387. package/dist/serialization/TableDimensions.d.ts.map +1 -0
  388. package/dist/serialization/markdown/BlockSerializers.d.ts +7 -0
  389. package/dist/serialization/markdown/BlockSerializers.d.ts.map +1 -0
  390. package/dist/serialization/markdown/BlockTokenizer.d.ts +54 -0
  391. package/dist/serialization/markdown/BlockTokenizer.d.ts.map +1 -0
  392. package/dist/serialization/markdown/GfmAutolink.d.ts +20 -0
  393. package/dist/serialization/markdown/GfmAutolink.d.ts.map +1 -0
  394. package/dist/serialization/markdown/GfmTableParser.d.ts +26 -0
  395. package/dist/serialization/markdown/GfmTableParser.d.ts.map +1 -0
  396. package/dist/serialization/markdown/InlineAst.d.ts +34 -0
  397. package/dist/serialization/markdown/InlineAst.d.ts.map +1 -0
  398. package/dist/serialization/markdown/InlineSerializers.d.ts +5 -0
  399. package/dist/serialization/markdown/InlineSerializers.d.ts.map +1 -0
  400. package/dist/serialization/markdown/InlineTokenizer.d.ts +5 -0
  401. package/dist/serialization/markdown/InlineTokenizer.d.ts.map +1 -0
  402. package/dist/serialization/markdown/LinkReferenceExtractor.d.ts +37 -0
  403. package/dist/serialization/markdown/LinkReferenceExtractor.d.ts.map +1 -0
  404. package/dist/serialization/markdown/MarkdownContext.d.ts +32 -0
  405. package/dist/serialization/markdown/MarkdownContext.d.ts.map +1 -0
  406. package/dist/serialization/markdown/MarkdownEntities.d.ts +33 -0
  407. package/dist/serialization/markdown/MarkdownEntities.d.ts.map +1 -0
  408. package/dist/serialization/markdown/MarkdownEscape.d.ts +33 -0
  409. package/dist/serialization/markdown/MarkdownEscape.d.ts.map +1 -0
  410. package/dist/serialization/markdown/MarkdownHTMLRegistry.d.ts +4 -0
  411. package/dist/serialization/markdown/MarkdownHTMLRegistry.d.ts.map +1 -0
  412. package/dist/serialization/markdown/MarkdownParseContext.d.ts +23 -0
  413. package/dist/serialization/markdown/MarkdownParseContext.d.ts.map +1 -0
  414. package/dist/state/Mapping.d.ts +33 -10
  415. package/dist/state/Mapping.d.ts.map +1 -1
  416. package/dist/state/StepApplication.d.ts +3 -1
  417. package/dist/state/StepApplication.d.ts.map +1 -1
  418. package/dist/state/StepHandlers.d.ts.map +1 -1
  419. package/dist/state/StepInversion.d.ts +2 -1
  420. package/dist/state/StepInversion.d.ts.map +1 -1
  421. package/dist/state/StepMapping.d.ts +3 -2
  422. package/dist/state/StepMapping.d.ts.map +1 -1
  423. package/dist/state/StepMaps.d.ts +3 -2
  424. package/dist/state/StepMaps.d.ts.map +1 -1
  425. package/dist/state/Steps.d.ts +34 -2
  426. package/dist/state/Steps.d.ts.map +1 -1
  427. package/dist/state/TransactionBuilder.d.ts +7 -1
  428. package/dist/state/TransactionBuilder.d.ts.map +1 -1
  429. package/dist/style/StyleRuntime.d.ts +7 -0
  430. package/dist/style/StyleRuntime.d.ts.map +1 -1
  431. package/dist/test/MarkdownConformanceUtils.d.ts +12 -0
  432. package/dist/test/MarkdownConformanceUtils.d.ts.map +1 -0
  433. package/dist/view/BlockRendering.d.ts +5 -0
  434. package/dist/view/BlockRendering.d.ts.map +1 -1
  435. package/dist/view/DecorationRendering.d.ts +6 -0
  436. package/dist/view/DecorationRendering.d.ts.map +1 -1
  437. package/dist/view/EditorViewEvents.d.ts.map +1 -1
  438. package/dist/view/Reconciler.d.ts.map +1 -1
  439. package/package.json +14 -1
  440. package/dist/chunks/AttrRegistry-DcDVyzLm.mjs.map +0 -1
  441. package/dist/chunks/BlockInsertion-6rR9tIGP.mjs +0 -2
  442. package/dist/chunks/BlockInsertion-6rR9tIGP.mjs.map +0 -1
  443. package/dist/chunks/BlockquotePlugin-4V7KV_Sb.mjs +0 -2
  444. package/dist/chunks/CodeBlockPlugin-DC0-BnNy.mjs +0 -2
  445. package/dist/chunks/CodeBlockPlugin-DC0-BnNy.mjs.map +0 -1
  446. package/dist/chunks/ColorPickerPopup-C_74bqid.mjs +0 -2
  447. package/dist/chunks/Commands-BIIpx_Zd.mjs +0 -2
  448. package/dist/chunks/Commands-BIIpx_Zd.mjs.map +0 -1
  449. package/dist/chunks/Decoration-ZeyVfwJB.mjs +0 -2
  450. package/dist/chunks/Decoration-ZeyVfwJB.mjs.map +0 -1
  451. package/dist/chunks/Document-r7vLOAGA.mjs +0 -2
  452. package/dist/chunks/Document-r7vLOAGA.mjs.map +0 -1
  453. package/dist/chunks/DocumentParser-CcTSeT1B.mjs +0 -2
  454. package/dist/chunks/DocumentParser-CcTSeT1B.mjs.map +0 -1
  455. package/dist/chunks/FontPlugin-DB1_bgam.mjs +0 -2
  456. package/dist/chunks/FontSizePlugin-DFvp7Ki9.mjs.map +0 -1
  457. package/dist/chunks/FormulaPlugin-BLEcyazj.mjs +0 -2
  458. package/dist/chunks/FormulaPlugin-BLEcyazj.mjs.map +0 -1
  459. package/dist/chunks/GapCursorNavigation-ycNzuQVH.mjs +0 -2
  460. package/dist/chunks/HTMLUtils-C6B4UT00.mjs +0 -2
  461. package/dist/chunks/HTMLUtils-C6B4UT00.mjs.map +0 -1
  462. package/dist/chunks/HeadingPlugin-D9yvG2Aw.mjs +0 -2
  463. package/dist/chunks/HorizontalRulePlugin-0FjHPZuA.mjs +0 -2
  464. package/dist/chunks/HorizontalRulePlugin-0FjHPZuA.mjs.map +0 -1
  465. package/dist/chunks/ImagePlugin-Cp_RINtc.mjs +0 -2
  466. package/dist/chunks/InlineCodePlugin-DMr4O7c7.mjs.map +0 -1
  467. package/dist/chunks/InlineStyleMarkSpec-4R6DC7ij.mjs +0 -2
  468. package/dist/chunks/LinkPlugin-DvZ3MPgL.mjs +0 -2
  469. package/dist/chunks/LinkPlugin-DvZ3MPgL.mjs.map +0 -1
  470. package/dist/chunks/ListPlugin-CVId2dE0.mjs +0 -2
  471. package/dist/chunks/ListPlugin-CVId2dE0.mjs.map +0 -1
  472. package/dist/chunks/NodeSelectionCommands-Dj4VxLdD.mjs +0 -2
  473. package/dist/chunks/PluginHelpers-KDuTlmXm.mjs +0 -2
  474. package/dist/chunks/PopupPositioning-DtUrY9bh.mjs +0 -2
  475. package/dist/chunks/PrintPlugin-C6gOJT6d.mjs +0 -2
  476. package/dist/chunks/PrintPlugin-C6gOJT6d.mjs.map +0 -1
  477. package/dist/chunks/PrintTypes-WdtgSj74.mjs.map +0 -1
  478. package/dist/chunks/StrikethroughPlugin-BLKDRWtf.mjs +0 -2
  479. package/dist/chunks/StrikethroughPlugin-BLKDRWtf.mjs.map +0 -1
  480. package/dist/chunks/StyleRuntime-BAutwDZT.mjs +0 -2
  481. package/dist/chunks/StyleRuntime-BAutwDZT.mjs.map +0 -1
  482. package/dist/chunks/TablePlugin-D93RR5xH.mjs +0 -2
  483. package/dist/chunks/TablePlugin-D93RR5xH.mjs.map +0 -1
  484. package/dist/chunks/TextColorPlugin-C1qpzEOa.mjs +0 -2
  485. package/dist/chunks/TextDirectionAutoPlugin-CzWJjrvG.mjs +0 -2
  486. package/dist/chunks/TextDirectionService-OFOU6r_s.mjs +0 -2
  487. package/dist/chunks/TextFormattingPlugin-Cubp3e7f.mjs +0 -2
  488. package/dist/chunks/TextFormattingPlugin-Cubp3e7f.mjs.map +0 -1
  489. package/dist/chunks/VideoPlugin-D9rQZol6.mjs +0 -2
  490. package/dist/chunks/VideoPlugin-D9rQZol6.mjs.map +0 -1
  491. package/dist/chunks/WordBoundary-DxeMBRyP.mjs +0 -2
  492. package/dist/chunks/ar-BTShmP2E.mjs +0 -2
  493. package/dist/chunks/ar-jbplYWkC.mjs +0 -2
  494. package/dist/chunks/ar-jbplYWkC.mjs.map +0 -1
  495. package/dist/chunks/de-DN-e6G5A.mjs +0 -2
  496. package/dist/chunks/de-DN-e6G5A.mjs.map +0 -1
  497. package/dist/chunks/es-CM55WeEN.mjs +0 -2
  498. package/dist/chunks/es-CM55WeEN.mjs.map +0 -1
  499. package/dist/chunks/fr-C_2i5Ono.mjs +0 -2
  500. package/dist/chunks/fr-C_2i5Ono.mjs.map +0 -1
  501. package/dist/chunks/full-Cah3qjCT.mjs +0 -2
  502. package/dist/chunks/hi-C9fvG91d.mjs +0 -2
  503. package/dist/chunks/hi-C9fvG91d.mjs.map +0 -1
  504. package/dist/chunks/minimal-DqATlnAL.mjs +0 -2
  505. package/dist/chunks/pt-GqLw5tN0.mjs +0 -2
  506. package/dist/chunks/pt-GqLw5tN0.mjs.map +0 -1
  507. package/dist/chunks/ru-4g_qsaLr.mjs +0 -2
  508. package/dist/chunks/ru-4g_qsaLr.mjs.map +0 -1
  509. package/dist/chunks/src-YY6n2SmV.mjs +0 -2
  510. package/dist/chunks/src-YY6n2SmV.mjs.map +0 -1
  511. package/dist/chunks/zh-BjoyjClN.mjs +0 -2
  512. package/dist/chunks/zh-DeZP08HI.mjs +0 -2
  513. package/dist/chunks/zh-DeZP08HI.mjs.map +0 -1
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Projects fragment targets from the print shadow tree into the document tree.
3
+ * Browser fragment navigation and PDF named destinations cannot resolve IDs
4
+ * whose root is a ShadowRoot, so each linked block target gets a slotted
5
+ * light-DOM marker at the same rendered position.
6
+ */
7
+ export declare const PRINT_DESTINATION_ATTRIBUTE = "data-notectl-print-destination";
8
+ export declare const PRINT_DESTINATION_SLOT_ATTRIBUTE = "data-notectl-print-destination-slot";
9
+ export interface PrintDestinationProjection {
10
+ readonly markers: readonly HTMLAnchorElement[];
11
+ }
12
+ /**
13
+ * Namespaces modeled IDs in the no-Shadow-DOM fallback so embedding the print
14
+ * export cannot redirect its links to an earlier same-named consumer element.
15
+ */
16
+ export declare function namespacePrintFallbackTargets(content: HTMLElement): void;
17
+ /**
18
+ * Mutates only the supplied print shadow clone. Resolvable fragment-only links
19
+ * are redirected to generated document-tree markers; all other links remain
20
+ * byte-for-byte unchanged.
21
+ */
22
+ export declare function projectPrintDestinations(content: HTMLElement): PrintDestinationProjection;
23
+ //# sourceMappingURL=PrintDestinationBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrintDestinationBridge.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintDestinationBridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAC5E,eAAO,MAAM,gCAAgC,wCAAwC,CAAC;AAEtF,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC/C;AA+JD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAuBxE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,0BAA0B,CAiCzF"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Copies the host page's stylesheets verbatim into the print document.
3
+ *
4
+ * The print document preserves the editor's shadow boundary (declarative
5
+ * shadow DOM), so host-authored rules — `::part()`, element selectors, custom
6
+ * properties, `@media`, `@layer`, `@supports`, CSS nesting — apply natively
7
+ * and need no translation or rewriting.
8
+ *
9
+ * All copied CSS is wrapped in the `notectl-host` cascade layer. Layering does
10
+ * not weaken it against the editor's shadow styles, because the cascade
11
+ * compares tree context before layers (an outer normal declaration beats a
12
+ * shadow-tree one regardless). It does keep the print document's own rules in
13
+ * control: its unlayered rules (page setup, body typography, customCSS) win
14
+ * over the copy for normal declarations regardless of specificity, and the
15
+ * print guards (host-element reset, forced light theme) — `!important` inside
16
+ * the earlier-declared `notectl-print` layer — win even against `!important`
17
+ * host rules.
18
+ *
19
+ * Stylesheets whose rules are not readable (cross-origin) are re-referenced
20
+ * via hoisted `@import ... layer(notectl-host)` statements so the print
21
+ * document loads them itself. The copy is produced as an ordered segment list
22
+ * (rule chunks and `@import` statements interleaved in source order) so
23
+ * equal-specificity cascade ties resolve exactly as on the live page.
24
+ * Disabled stylesheets are skipped and stylesheet-level media conditions are
25
+ * preserved as `@media` wrappers.
26
+ */
27
+ /** Cascade layer that holds the copied host-page styles in print output. */
28
+ export declare const HOST_STYLE_LAYER = "notectl-host";
29
+ /**
30
+ * One source-ordered piece of the host-page CSS copy. `rules` segments hold
31
+ * verbatim rule text destined for the `notectl-host` layer; `import` segments
32
+ * hold hoisted `@import` statements for unreadable (cross-origin) sheets.
33
+ * `@import` must precede every other rule of its stylesheet, so each segment
34
+ * is emitted as its own `<style>` element — keeping the live source order,
35
+ * which decides equal-specificity ties within the layer.
36
+ */
37
+ export type HostStyleSegment = {
38
+ readonly kind: 'rules';
39
+ readonly css: string;
40
+ } | {
41
+ readonly kind: 'import';
42
+ readonly statement: string;
43
+ };
44
+ /**
45
+ * Copies all stylesheets that can target this editor (document-level plus any
46
+ * enclosing shadow roots, including adopted sheets) into an ordered list of
47
+ * verbatim CSS segments for the print document.
48
+ */
49
+ export declare function collectHostStyleSegments(host: HTMLElement): readonly HostStyleSegment[];
50
+ //# sourceMappingURL=PrintHostStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrintHostStyles.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintHostStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAI/C;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAkX3D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,gBAAgB,EAAE,CAavF"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrintPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK1D,OAAO,KAAK,EAAgB,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AAiBrF,qBAAa,WAAY,YAAW,MAAM;IACzC,QAAQ,CAAC,EAAE,WAAW;IACtB,QAAQ,CAAC,IAAI,WAAW;IAExB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,iBAAiB;IAIhC,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAmDjD,OAAO,IAAI,IAAI;CAGf"}
1
+ {"version":3,"file":"PrintPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintPlugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK1D,OAAO,KAAK,EAAgB,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AAkBrF,qBAAa,WAAY,YAAW,MAAM;IACzC,QAAQ,CAAC,EAAE,WAAW;IACtB,QAAQ,CAAC,IAAI,WAAW;IAExB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAC3C,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,CAAC,EAAE,iBAAiB;IAIhC,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAmDjD,OAAO,IAAI,IAAI;CAMf"}
@@ -1,7 +1,80 @@
1
1
  import { PluginEventBus } from '../Plugin.js';
2
+ import { HostStyleSegment } from './PrintHostStyles.js';
2
3
  import { PrintService } from './PrintTypes.js';
3
- /** Builds a complete HTML document string from CSS, body content, and title. */
4
- export declare function buildHTMLDocument(css: string, content: string, title: string, lang?: string): string;
4
+ /** Marker attribute on the static light-DOM fallback of the export variant. */
5
+ export declare const PRINT_FALLBACK_ATTRIBUTE = "data-notectl-print-fallback";
6
+ /**
7
+ * Marker attribute on the inert `<template>` carrying the export variant's
8
+ * standalone style bundle (page-level CSS and the verbatim host-CSS copy).
9
+ */
10
+ export declare const PRINT_STYLE_BUNDLE_ATTRIBUTE = "data-notectl-print-styles";
11
+ /**
12
+ * `<meta name>` marking the export document itself. The fallback script only
13
+ * activates the standalone style bundle when this meta sits in
14
+ * `document.head` — true when the export is the document being rendered
15
+ * (file, iframe `srcdoc`, `document.write`, HTML-to-PDF engines), never when
16
+ * it was inlined into a consumer page (fragment parsing keeps the meta inside
17
+ * the injected subtree, outside `document.head`).
18
+ */
19
+ export declare const PRINT_EXPORT_META_NAME = "notectl-print-export";
20
+ /** Everything needed to assemble the print document. */
21
+ export interface PrintDocumentInput {
22
+ /**
23
+ * Document-level CSS matching the variant: full page fidelity for
24
+ * `internal` ({@link buildDocumentCSS}), marker-qualified inline baseline
25
+ * for `export` ({@link buildExportDocumentCSS}).
26
+ */
27
+ readonly documentCSS: string;
28
+ /**
29
+ * Full-fidelity page CSS ({@link buildDocumentCSS}) shipped by the export
30
+ * variant inside the inert standalone style bundle; the fallback script
31
+ * activates it only when the export is rendered as its own document.
32
+ */
33
+ readonly standaloneCSS: string;
34
+ /** Source-ordered host-page CSS copy (rule chunks and hoisted `@import`s). */
35
+ readonly hostSegments: readonly HostStyleSegment[];
36
+ /** CSS placed inside the declarative shadow root. */
37
+ readonly shadowCSS: string;
38
+ /** The live editor host element; its tag and attributes are replicated. */
39
+ readonly host: HTMLElement;
40
+ /** Serialized print content projected into the declarative shadow root. */
41
+ readonly contentHTML: string;
42
+ /** Unmodified prepared content used by the export's no-DSD light-DOM fallback. */
43
+ readonly fallbackContentHTML: string;
44
+ /** Slotted document-tree markers for fragment navigation and PDF destinations. */
45
+ readonly destinationMarkersHTML: string;
46
+ readonly title: string;
47
+ readonly lang: string;
48
+ /** Copy html/body theme-context attributes (only when the live theme is carried). */
49
+ readonly carryThemeContext: boolean;
50
+ /**
51
+ * `export` (`toHTML()`, `AFTER_PRINT`) is embed-safe: its inline styles are
52
+ * marker-qualified, and everything page-level — the host-CSS copy, hoisted
53
+ * `@import`s, and `standaloneCSS` — ships inside an inert `<template>`
54
+ * bundle that the replica-scoped fallback script activates only when the
55
+ * export is rendered as its own document. A consumer page embedding the
56
+ * output can neither load foreign stylesheets nor have its own elements
57
+ * restyled. `internal` (the transient print iframe) inlines the unscoped
58
+ * copy and the imports directly and omits fallback, bundle, and script: the
59
+ * iframe is parsed by the same modern browser, where declarative shadow DOM
60
+ * is guaranteed.
61
+ */
62
+ readonly variant: 'export' | 'internal';
63
+ /**
64
+ * CSP nonce applied to every embedded `<style>` element so the internal
65
+ * print iframe renders under an inherited `style-src` nonce policy. Never
66
+ * set on the export variant: serialized HTML must not persist the page's
67
+ * live nonce.
68
+ */
69
+ readonly styleNonce?: string;
70
+ }
71
+ /** Builds the complete print document as an HTML string. */
72
+ export declare function buildHTMLDocument(input: PrintDocumentInput): string;
73
+ /** PrintService plus internal lifecycle hooks (not part of the public service API). */
74
+ export interface ManagedPrintService extends PrintService {
75
+ /** Cancels pending print triggers and removes parked print iframes. */
76
+ dispose(): void;
77
+ }
5
78
  /** Creates and returns the PrintService implementation. */
6
- export declare function createPrintService(shadowRoot: ShadowRoot, host: HTMLElement, container: HTMLElement, eventBus: PluginEventBus): PrintService;
79
+ export declare function createPrintService(shadowRoot: ShadowRoot, host: HTMLElement, container: HTMLElement, eventBus: PluginEventBus): ManagedPrintService;
7
80
  //# sourceMappingURL=PrintServiceImpl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrintServiceImpl.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintServiceImpl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAMN,KAAK,YAAY,EACjB,MAAM,iBAAiB,CAAC;AAOzB,gFAAgF;AAChF,wBAAgB,iBAAiB,CAChC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,SAAO,GACT,MAAM,CAaR;AAED,2DAA2D;AAC3D,wBAAgB,kBAAkB,CACjC,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,WAAW,EACtB,QAAQ,EAAE,cAAc,GACtB,YAAY,CA4Ed"}
1
+ {"version":3,"file":"PrintServiceImpl.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintServiceImpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOnD,OAAO,EAEN,KAAK,gBAAgB,EAErB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,EAMN,KAAK,YAAY,EACjB,MAAM,iBAAiB,CAAC;AAWzB,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,gCAAgC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AA+G7D,wDAAwD;AACxD,MAAM,WAAW,kBAAkB;IAClC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnD,qDAAqD;IACrD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,kFAAkF;IAClF,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qFAAqF;IACrF,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,UAAU,CAAC;IACxC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAmGnE;AAED,uFAAuF;AACvF,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACxD,uEAAuE;IACvE,OAAO,IAAI,IAAI,CAAC;CAChB;AAED,2DAA2D;AAC3D,wBAAgB,kBAAkB,CACjC,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,WAAW,EACtB,QAAQ,EAAE,cAAc,GACtB,mBAAmB,CA4JrB"}
@@ -1,23 +1,152 @@
1
1
  import { PrintOptions } from './PrintTypes.js';
2
- /** Extracts CSS text from all adopted stylesheets on a ShadowRoot. */
3
- export declare function extractAdoptedStyles(shadowRoot: ShadowRoot): string;
4
- /**
5
- * Generates light theme CSS custom properties for print output.
6
- * Uses the static LIGHT_THEME definition rather than reading computed styles,
7
- * ensuring print output is always readable on paper regardless of the active editor theme.
8
- */
9
- export declare function generateLightThemeTokens(): string;
10
- /** Snapshots --notectl-* CSS custom properties from the host element into a :root block. */
11
- export declare function snapshotThemeTokens(host: HTMLElement): string;
12
- /**
13
- * Snapshots computed typography from the host element into a `body` rule.
14
- * In the editor, typography is inherited from `:host` (shadow DOM).
15
- * The print iframe is a regular document where `:host` doesn't match,
16
- * so we must apply the same font/line-height explicitly.
17
- */
18
- export declare function snapshotTypography(host: HTMLElement, colorOverride?: string): string;
19
- /** Generates print-specific CSS rules based on PrintOptions. */
20
- export declare function generatePrintCSS(options: PrintOptions): string;
21
- /** Collects all CSS needed for print: adopted styles, theme tokens, print CSS, and custom CSS. */
22
- export declare function collectAll(shadowRoot: ShadowRoot, host: HTMLElement, options: PrintOptions): string;
2
+ /**
3
+ * Document-level cascade layer holding the print guards (host reset, forced
4
+ * light theme). Declared before the host-copy layer, so its `!important`
5
+ * declarations beat `!important` host rules.
6
+ */
7
+ export declare const PRINT_STYLE_LAYER = "notectl-print";
8
+ /**
9
+ * Earliest document-level cascade layer, holding a `customCSS` copy. Its
10
+ * `!important` declarations are the strongest in the print document the
11
+ * consumer's escape hatch over the print guards and host rules.
12
+ */
13
+ export declare const CUSTOM_STYLE_LAYER = "notectl-custom";
14
+ /** Adopted shadow styles split by role for print emission. */
15
+ export interface AdoptedStylePartition {
16
+ /** Editor base styles emitted inside the print cascade layer. */
17
+ readonly base: string;
18
+ /**
19
+ * Runtime style-token rules (strict-CSP mode) carrying user-applied content
20
+ * formatting emitted unlayered so they keep their cascade strength.
21
+ */
22
+ readonly runtime: string;
23
+ }
24
+ /**
25
+ * Extracts CSS text from all adopted stylesheets on a ShadowRoot, separating
26
+ * editor base styles from runtime style-token sheets. The distinction matters
27
+ * for print: base styles go into a cascade layer so consumer overrides win
28
+ * (the documented #202 semantic: `customCSS` overrides built-in element
29
+ * styling regardless of selector specificity — the flip side, also
30
+ * documented, is that broad customCSS resets such as `* { padding: 0 }`
31
+ * override base styling too), but token rules represent user content
32
+ * formatting (inline styles in non-CSP mode) and must not be demoted with
33
+ * them.
34
+ */
35
+ export declare function partitionAdoptedStyles(shadowRoot: ShadowRoot): AdoptedStylePartition;
36
+ /**
37
+ * Generates light theme custom properties targeting `selector` (a full
38
+ * selector list). The internal print iframe passes `:root` plus the host
39
+ * element, so page-level `customCSS` rules
40
+ * (`body { background: var(--notectl-bg) }`) keep resolving while the host
41
+ * element re-pins the tokens closer than the shadow theme sheet's `:host`
42
+ * defaults; the export variant passes only the marker-qualified replica so
43
+ * nothing can leak into an embedding page. Every declaration is `!important`;
44
+ * emitted inside the `notectl-print` layer, it beats copied host-page token
45
+ * overrides (even `!important` ones) and the shadow theme sheet (tree
46
+ * context), guaranteeing readable print output regardless of the active
47
+ * editor theme.
48
+ */
49
+ export declare function generateLightThemeTokens(selector: string): string;
50
+ /**
51
+ * Serializes an element's inline `--notectl-*` declarations. Tokens set via
52
+ * the `style` attribute or JS `setProperty` (runtime theme switchers) cannot
53
+ * travel through the stylesheet copy; re-emitting them as inline style on the
54
+ * print document's corresponding element preserves their live cascade
55
+ * strength — inline declarations beat every copied stylesheet rule, exactly
56
+ * as on the live page.
57
+ */
58
+ export declare function collectInlineThemeTokens(el: Element | null): string;
59
+ /**
60
+ * Snapshots all computed `--notectl-*` tokens from the host element when
61
+ * carrying the live theme (`forceLightTheme: false`). The computed values are
62
+ * the ground truth of what the user saw: tokens set via the host's inline
63
+ * `style` attribute (stripped from the print replica), via JS `setProperty`,
64
+ * or via rules scoped to wrapper elements that do not exist in the print
65
+ * document cannot travel through the stylesheet copy. Targeted at `selector`
66
+ * (a full selector list: the host element, plus `:root` in the internal
67
+ * variant so page-level `customCSS` keeps resolving the tokens) and emitted
68
+ * unlayered: unlayered normal declarations beat the layered host copy, so a
69
+ * host-page rule that matches differently in the print document (its wrapper
70
+ * ancestors are not replicated) cannot override the live values.
71
+ * Print-specific token overrides therefore need `!important` in the host
72
+ * page or `customCSS`.
73
+ */
74
+ export declare function snapshotThemeTokens(host: HTMLElement, selector: string): string;
75
+ /**
76
+ * Resolves the background the editor content visually sits on, for carrying
77
+ * the live theme into print (`forceLightTheme: false`). Walks up from the
78
+ * content container (crossing shadow boundaries) through the page body up to
79
+ * the root element — dark themes commonly paint `html` and leave `body`
80
+ * transparent — returning the first non-transparent computed
81
+ * background-color. Falls back to white so print output never inherits an
82
+ * undefined background.
83
+ */
84
+ export declare function resolveCarriedBackground(container: HTMLElement): string;
85
+ /**
86
+ * Snapshots computed typography from the host element into a rule for
87
+ * `selector` (the page body in the print iframe, the replica host in the
88
+ * export variant). Copied host-page styles are layered and `body` rules from
89
+ * the host page are meant for the host application, so print pins typography
90
+ * explicitly to what the editor computed live. The background is pinned to
91
+ * `background` — white when the light theme is forced, the carried theme
92
+ * background otherwise — so dark-theme output never renders light text on
93
+ * white paper.
94
+ */
95
+ export declare function snapshotTypography(host: HTMLElement, colorOverride?: string, background?: string, selector?: string): string;
96
+ /**
97
+ * Neutralizes page-level hiding and clipping from copied host rules on
98
+ * `html`/`body`. Every declaration is `!important`; emitted inside the
99
+ * `notectl-print` layer it beats the host copy even against `!important`
100
+ * host rules, while `customCSS` (earlier `notectl-custom` layer) still wins.
101
+ */
102
+ export declare function generatePageResetCSS(): string;
103
+ /**
104
+ * Neutralizes screen-widget chrome on the print host element. Copied
105
+ * host-page rules like `notectl-editor { height: 400px; border: … }` style
106
+ * the live widget but must not constrain the paginated print flow. Every
107
+ * declaration is `!important`; emitted inside the `notectl-print` layer, the
108
+ * reset beats the host copy even against `!important` host rules. Inherited
109
+ * properties (fonts, color) are deliberately not touched; `customCSS` can
110
+ * reclaim any of these via `!important` (earlier `notectl-custom` layer).
111
+ */
112
+ export declare function generateHostResetCSS(hostSelector: string): string;
113
+ /** Generates the `@page` rule based on PrintOptions. */
114
+ export declare function generatePageCSS(options: PrintOptions): string;
115
+ /** Generates print-specific content rules; emitted inside the shadow scope. */
116
+ export declare function generateContentPrintCSS(options: PrintOptions): string;
117
+ /**
118
+ * Builds the CSS placed inside the print document's declarative shadow root:
119
+ * editor base styles behind a cascade layer (so consumer overrides win),
120
+ * runtime style-token rules unlayered, print content rules, and customCSS as
121
+ * the final same-tree override.
122
+ */
123
+ export declare function buildShadowCSS(shadowRoot: ShadowRoot, options: PrintOptions): string;
124
+ /**
125
+ * Builds the document-level CSS of the internal print iframe: the print
126
+ * guards (host reset, `html`/`body` page reset, and forced light theme —
127
+ * `!important` inside the `notectl-print` layer), the unlayered theme-token
128
+ * snapshot, body typography, `@page`, and two copies of customCSS. The
129
+ * unlayered copy carries page-level custom rules (`@page`, `body` — they
130
+ * cannot live inside the shadow scope) at normal strength; the
131
+ * `notectl-custom` layer copy makes consumer `!important` rules outrank the
132
+ * print guards and `!important` host rules.
133
+ */
134
+ export declare function buildDocumentCSS(host: HTMLElement, container: HTMLElement, options: PrintOptions): string;
135
+ /**
136
+ * Builds the inline document-level CSS of the export variant (`toHTML()`,
137
+ * `AFTER_PRINT`). Every selector is qualified with `markerSelector` (the
138
+ * static-replica marker attribute), so the rules can only ever match a
139
+ * replica: embedding the export into a live page via the documented
140
+ * innerHTML/setHTMLUnsafe flow cannot restyle the consumer's document, hide
141
+ * its live editors, or force them light. (`@scope` cannot express this: its
142
+ * implicit `:where(:scope)` descendant prefix excludes the scoping root
143
+ * itself, and shadow content — every `::part()` subject — is outside the
144
+ * scope.) Page-level rules (`html`/`body` reset, `body` typography, `@page`,
145
+ * `:root` tokens, the customCSS document copies) are not emitted here; they
146
+ * ship in the script-gated standalone style bundle and otherwise apply in the
147
+ * `print()` iframe. Instead the typography and background snapshot is emitted
148
+ * `!important` after the host reset in the same layer, so the replica paints
149
+ * its own canvas even without scripts.
150
+ */
151
+ export declare function buildExportDocumentCSS(host: HTMLElement, container: HTMLElement, options: PrintOptions, markerAttribute: string): string;
23
152
  //# sourceMappingURL=PrintStyleCollector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrintStyleCollector.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintStyleCollector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,sEAAsE;AACtE,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQnE;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAgB7D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAuBpF;AAED,gEAAgE;AAChE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CA6D9D;AAED,kGAAkG;AAClG,wBAAgB,UAAU,CACzB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,YAAY,GACnB,MAAM,CA+BR"}
1
+ {"version":3,"file":"PrintStyleCollector.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/PrintStyleCollector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAWnD,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACrC,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAA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AO,EAAE,YAAY,EACrB,eAAe,EAAE,MAAM,GACrB,MAAM,CAmCR"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Marker attribute for static host replicas.
3
+ *
4
+ * Print output replicates the editor host element (tag and attributes) so
5
+ * host-page `::part()` rules keep matching in the print document. When that
6
+ * markup is injected into a page where `<notectl-editor>` is registered, the
7
+ * replica must stay static markup: upgrading it into a live editor would
8
+ * replace the replicated shadow content with a fresh editor instance.
9
+ *
10
+ * The print plugin writes the marker; `NotectlEditor` honors it by refusing
11
+ * to boot on marked hosts.
12
+ */
13
+ export declare const STATIC_HOST_ATTRIBUTE = "data-notectl-static";
14
+ /** True when the element is a static replica that must not boot an editor. */
15
+ export declare function isStaticHostReplica(el: Element): boolean;
16
+ /** Error raised when editor lifecycle APIs are used on a static replica. */
17
+ export declare function createStaticReplicaError(): Error;
18
+ //# sourceMappingURL=StaticHostMarker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticHostMarker.d.ts","sourceRoot":"","sources":["../../../src/plugins/print/StaticHostMarker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAExD;AAED,4EAA4E;AAC5E,wBAAgB,wBAAwB,IAAI,KAAK,CAKhD"}
@@ -1 +1 @@
1
- import{n as s,r,t as n}from"../chunks/PrintTypes-WdtgSj74.mjs";import{n as t,r as a,t as m}from"../chunks/PrintPlugin-C6gOJT6d.mjs";export{n as AFTER_PRINT,s as BEFORE_PRINT,t as PRINT_LOCALE_EN,r as PRINT_SERVICE_KEY,m as PrintPlugin,a as loadPrintLocale};
1
+ import{n as s,r,t as n}from"../chunks/PrintTypes-CxU69qu3.mjs";import{n as t,r as a,t as m}from"../chunks/PrintPlugin-7zz9mhhU.mjs";export{n as AFTER_PRINT,s as BEFORE_PRINT,t as PRINT_LOCALE_EN,r as PRINT_SERVICE_KEY,m as PrintPlugin,a as loadPrintLocale};
@@ -0,0 +1,9 @@
1
+ import { InputRule } from '../../model/InputRule.js';
2
+ /**
3
+ * Builds a live input rule that wraps `delimiter…delimiter` text in `markTypeName`.
4
+ * The opening delimiter must not be preceded by its own first character (so `*`
5
+ * does not fire inside `**`), and the wrapped text may not contain that
6
+ * character or a newline (a bounded, backtracking-free pattern).
7
+ */
8
+ export declare function createMarkInputRule(markTypeName: string, delimiter: string): InputRule;
9
+ //# sourceMappingURL=MarkInputRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkInputRule.d.ts","sourceRoot":"","sources":["../../../src/plugins/shared/MarkInputRule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AASnF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CA8BtF"}
@@ -39,6 +39,8 @@ export declare function positionPopup(popup: HTMLElement, anchor: DOMRect, optio
39
39
  * reference node lives inside one, otherwise `document.body`.
40
40
  */
41
41
  export declare function appendToRoot(element: HTMLElement, referenceNode: Node): void;
42
+ /** Returns the focused element in the reference node's root, including nested shadow roots. */
43
+ export declare function getDeepActiveHTMLElement(referenceNode: Node): HTMLElement | null;
42
44
  /**
43
45
  * Promotes a popup/overlay to the browser's top layer via the Popover API so it
44
46
  * paints above — and receives pointer events ahead of — every stacking context
@@ -1 +1 @@
1
- {"version":3,"file":"PopupPositioning.d.ts","sourceRoot":"","sources":["../../../src/plugins/shared/PopupPositioning.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,OAAO,CAAC;AAElE,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ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,KAAK,EAAE,WAAW,GAAG,qBAAqB,CA0BtF;AAID;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI,CAyHjG;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,GAAG,IAAI,CAO5E;AAED,+FAA+F;AAC/F,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,IAAI,CAQhF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAU5D"}
@@ -8,6 +8,7 @@ export { capitalize, getSelectedBlock, getSelectedBlockId, } from './PluginHelpe
8
8
  export { attachGridKeyboard, attachListboxKeyboard, attachMenuKeyboard, type GridKeyboardConfig, type ListboxKeyboardConfig, type MenuKeyboardConfig, } from './PopupKeyboardPatterns.js';
9
9
  export { PopupManager, PopupServiceKey, type PopupCloseOptions, type PopupConfig, type PopupHandle, type PopupServiceAPI, } from './PopupManager.js';
10
10
  export { appendToRoot, positionPopup, type PopupPosition, type PositionOptions, } from './PopupPositioning.js';
11
+ export { createMarkInputRule } from './MarkInputRule.js';
11
12
  export { formatShortcut } from './ShortcutFormatting.js';
12
13
  export { loadLocaleModule, type LocaleModuleLoader, type LocaleModuleMap, } from './LocaleLoader.js';
13
14
  export { XML_ATTRS, XML_TAG_NAME } from './XmlPatterns.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,KAAK,eAAe,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,GACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,YAAY,EACZ,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,sBAAsB,EACtB,KAAK,iBAAiB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,UAAU,EACV,gBAAgB,EAChB,kBAAkB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,YAAY,EACZ,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,eAAe,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,YAAY,EACZ,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACN,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,KAAK,eAAe,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,GACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,YAAY,EACZ,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,sBAAsB,EACtB,KAAK,iBAAiB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACN,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,UAAU,EACV,gBAAgB,EAChB,kBAAkB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,YAAY,EACZ,eAAe,EACf,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,eAAe,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,YAAY,EACZ,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACN,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- import{c as s,i as a,r,t as o}from"../chunks/PluginHelpers-KDuTlmXm.mjs";import{t as m}from"../chunks/ShortcutFormatting-TwiufqeV.mjs";import{n as t,r as n,t as i}from"../chunks/KeyboardNav-D0my3wuy.mjs";import{r as p,t as u}from"../chunks/PopupPositioning-DtUrY9bh.mjs";import{n as c,t as h}from"../chunks/PopupManager-CyOfZUab.mjs";import{a as k,i as f,n as j,r as e,t as P}from"../chunks/ColorValidation-DAijTjG9.mjs";import{n as l,t as d}from"../chunks/XmlPatterns-RN32-0ob.mjs";import{n as g,r as C,t as b}from"../chunks/PopupKeyboardPatterns-tUrT9TyV.mjs";import{a as v,i as x,n as y,r as K,t as M}from"../chunks/ColorPickerPopup-C_74bqid.mjs";import{n as S,r as w,t as z}from"../chunks/ColorGrid-CXRdpP_n.mjs";export{h as PopupManager,c as PopupServiceKey,d as XML_ATTRS,l as XML_TAG_NAME,u as appendToRoot,y as applyColorMark,i as applyRovingTabindex,b as attachGridKeyboard,g as attachListboxKeyboard,C as attachMenuKeyboard,o as capitalize,t as findNextDropdownItem,m as formatShortcut,K as getActiveColor,S as getColorName,r as getSelectedBlock,a as getSelectedBlockId,x as isColorMarkActive,w as isLightColor,P as isValidCSSColor,j as isValidCSSFontFamily,e as isValidCSSFontSize,f as isValidHexColor,s as loadLocaleModule,n as navigateGrid,p as positionPopup,v as removeColorMark,z as renderColorGrid,M as renderColorPickerPopup,k as resolveColors};
1
+ import{c as s,i as a,r,t as o}from"../chunks/PluginHelpers-Dx_0hfDe.mjs";import{t as m}from"../chunks/MarkInputRule-Bdi8KPus.mjs";import{t}from"../chunks/ShortcutFormatting-TwiufqeV.mjs";import{n,r as i,t as p}from"../chunks/KeyboardNav-D0my3wuy.mjs";import{i as u,t as c}from"../chunks/PopupPositioning-BFh6Ed1D.mjs";import{n as k,t as h}from"../chunks/PopupManager-CT-fMZJn.mjs";import{a as f,i as j,n as e,r as P,t as l}from"../chunks/ColorValidation-DAijTjG9.mjs";import{n as d,t as g}from"../chunks/XmlPatterns-RN32-0ob.mjs";import{n as C,r as y,t as b}from"../chunks/PopupKeyboardPatterns-tUrT9TyV.mjs";import{a as F,i as K,n as M,r as R,t as S}from"../chunks/ColorPickerPopup-DiA68Pzz.mjs";import{n as v,r as w,t as x}from"../chunks/ColorGrid-C9RQoEWF.mjs";export{h as PopupManager,k as PopupServiceKey,g as XML_ATTRS,d as XML_TAG_NAME,c as appendToRoot,M as applyColorMark,p as applyRovingTabindex,b as attachGridKeyboard,C as attachListboxKeyboard,y as attachMenuKeyboard,o as capitalize,m as createMarkInputRule,n as findNextDropdownItem,t as formatShortcut,R as getActiveColor,v as getColorName,r as getSelectedBlock,a as getSelectedBlockId,K as isColorMarkActive,w as isLightColor,l as isValidCSSColor,e as isValidCSSFontFamily,P as isValidCSSFontSize,j as isValidHexColor,s as loadLocaleModule,i as navigateGrid,u as positionPopup,F as removeColorMark,x as renderColorGrid,S as renderColorPickerPopup,f as resolveColors};
@@ -1 +1 @@
1
- import{a as s,i as a,n as r,o as t,r as m,s as o,t as i}from"../chunks/XmlDetector-D7TQpw-e.mjs";import{i as n,n as e,r as c,t as p}from"../chunks/SmartPastePlugin-Bi_wpTCV.mjs";export{s as DEFAULT_RELEVANCE_WEIGHTS,r as JsonDetector,m as LexerDetector,t as MAX_RELEVANCE_WEIGHT,c as SMART_PASTE_LOCALE_EN,e as SMART_PASTE_SERVICE_KEY,p as SmartPastePlugin,i as XmlDetector,o as computeTokenStats,n as loadSmartPasteLocale,a as scoreFromStats};
1
+ import{a as s,i as a,n as r,o as t,r as m,s as o,t as i}from"../chunks/XmlDetector-D7TQpw-e.mjs";import{i as n,n as e,r as c,t as p}from"../chunks/SmartPastePlugin-CYa_nD9v.mjs";export{s as DEFAULT_RELEVANCE_WEIGHTS,r as JsonDetector,m as LexerDetector,t as MAX_RELEVANCE_WEIGHT,c as SMART_PASTE_LOCALE_EN,e as SMART_PASTE_SERVICE_KEY,p as SmartPastePlugin,i as XmlDetector,o as computeTokenStats,n as loadSmartPasteLocale,a as scoreFromStats};
@@ -6,6 +6,8 @@ declare module '../../model/AttrRegistry.js' {
6
6
  }
7
7
  }
8
8
  export interface StrikethroughConfig {
9
+ /** Live Markdown shortcut: `~~x~~` to strikethrough. Default true. */
10
+ readonly inputRule?: boolean;
9
11
  readonly locale?: StrikethroughLocale;
10
12
  }
11
13
  export declare class StrikethroughPlugin implements Plugin {
@@ -1 +1 @@
1
- {"version":3,"file":"StrikethroughPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/strikethrough/StrikethroughPlugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI1D,OAAO,EAEN,KAAK,mBAAmB,EAExB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,QAAQ,6BAA6B,CAAC;IAC5C,UAAU,gBAAgB;QACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;KACrC;CACD;AAID,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAMD,qBAAa,mBAAoB,YAAW,MAAM;IACjD,QAAQ,CAAC,EAAE,mBAAmB;IAC9B,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,QAAQ,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,OAAO,CAAC,MAAM,CAAuB;gBAEzB,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC;IAI3C,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CA0CjD"}
1
+ {"version":3,"file":"StrikethroughPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/strikethrough/StrikethroughPlugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK1D,OAAO,EAEN,KAAK,mBAAmB,EAExB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,QAAQ,6BAA6B,CAAC;IAC5C,UAAU,gBAAgB;QACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;KACrC;CACD;AAID,MAAM,WAAW,mBAAmB;IACnC,sEAAsE;IACtE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAMD,qBAAa,mBAAoB,YAAW,MAAM;IACjD,QAAQ,CAAC,EAAE,mBAAmB;IAC9B,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,QAAQ,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,OAAO,CAAC,MAAM,CAAuB;gBAEzB,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC;IAI3C,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CA8CjD"}
@@ -1 +1 @@
1
- import{n as r,r as s,t}from"../chunks/StrikethroughPlugin-BLKDRWtf.mjs";export{r as STRIKETHROUGH_LOCALE_EN,t as StrikethroughPlugin,s as loadStrikethroughLocale};
1
+ import{n as r,r as s,t}from"../chunks/StrikethroughPlugin-C2oWvGc3.mjs";export{r as STRIKETHROUGH_LOCALE_EN,t as StrikethroughPlugin,s as loadStrikethroughLocale};
@@ -1 +1 @@
1
- import{n as r,r as s,t as u}from"../chunks/SuperSubPlugin-DVP7VnIz.mjs";export{r as SUPER_SUB_LOCALE_EN,u as SuperSubPlugin,s as loadSuperSubLocale};
1
+ import{n as r,r as s,t as u}from"../chunks/SuperSubPlugin-D1xaKrSu.mjs";export{r as SUPER_SUB_LOCALE_EN,u as SuperSubPlugin,s as loadSuperSubLocale};
@@ -0,0 +1,8 @@
1
+ import { BlockNode } from '../../model/Document.js';
2
+ import { PluginContext } from '../Plugin.js';
3
+ import { TableSelectionService } from './TableSelection.js';
4
+ /** Installs copy/cut handling for TableSelectionService ranges. */
5
+ export declare function installTableClipboard(context: PluginContext, selectionService: TableSelectionService): () => void;
6
+ /** Serializes a table fragment as logical TSV, including empty span placeholders. */
7
+ export declare function tableFragmentPlainText(table: BlockNode): string;
8
+ //# sourceMappingURL=TableClipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableClipboard.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableClipboard.ts"],"names":[],"mappings":"AAAA,iFAAiF;AAEjF,OAAO,EACN,KAAK,SAAS,EAOd,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,KAAK,EAAa,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,mEAAmE;AACnE,wBAAgB,qBAAqB,CACpC,OAAO,EAAE,aAAa,EACtB,gBAAgB,EAAE,qBAAqB,GACrC,MAAM,IAAI,CAqBZ;AAuED,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAS/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableCommands.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableCommands.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,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;AAWlD,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,KAA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AAW,EAClB,OAAO,EAAE,OAAO,GACd,WAAW,GAAG,IAAI,CAmCpB;AAQD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAuBvF;AAED,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAYhF;AAED,wCAAwC;AACxC,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAYhF;AAED,uDAAuD;AACvD,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAElF;AAED,wDAAwD;AACxD,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAEnF;AAiED,+EAA+E;AAC/E,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAiB9E;AAED,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAiBjF;AAED,sEAAsE;AACtE,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAUhF;AAED,sDAAsD;AACtD,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAsB3D;AAED,gEAAgE;AAChE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAUvF"}
@@ -2,14 +2,24 @@ import { BlockId } from '../../model/TypeBrands.js';
2
2
  import { PluginContext } from '../Plugin.js';
3
3
  import { PopupManager } from '../shared/PopupManager.js';
4
4
  import { TableLocale } from './TableLocale.js';
5
+ import { TableSizeTarget, TableSizingConfig } from './TableSizing.js';
5
6
  export interface TableContextMenuHandle {
6
7
  isOpen(): boolean;
7
8
  close(): void;
8
9
  destroy(): void;
9
10
  }
11
+ export interface TableContextMenuOptions {
12
+ /** Explicit logical target used by cell-invoked menus; omitted means current table selection. */
13
+ readonly sizeTarget?: TableSizeTarget;
14
+ readonly sizingConfig?: Partial<TableSizingConfig>;
15
+ /** Element that receives focus after the complete menu closes. */
16
+ readonly restoreFocusTo?: HTMLElement | null;
17
+ }
18
+ /** Closes every table context/actions menu owned by one editor instance. */
19
+ export declare function closeTableContextMenus(context: PluginContext): void;
10
20
  /**
11
21
  * Creates and displays an accessible context menu for table operations.
12
22
  * Attaches to the provided container (shadow root or editor container).
13
23
  */
14
- export declare function createTableContextMenu(container: HTMLElement, context: PluginContext, tableId: BlockId, anchorRect: DOMRect, onClosed?: () => void, locale?: TableLocale, popupManager?: PopupManager): TableContextMenuHandle;
24
+ export declare function createTableContextMenu(container: HTMLElement, context: PluginContext, tableId: BlockId, anchorRect: DOMRect, onClosed?: () => void, locale?: TableLocale, popupManager?: PopupManager, options?: TableContextMenuOptions): TableContextMenuHandle;
15
25
  //# sourceMappingURL=TableContextMenu.d.ts.map
@@ -1 +1 @@
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;AACzD,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;;;GA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QAAQ,CAAC,EAAE,MAAM,IAAI,EACrB,MAAM,GAAE,WAA6B,EACrC,YAAY,CAAC,EAAE,YAAY,EAC3B,OAAO,GAAE,uBAA4B,GACnC,sBAAsB,CAiUxB"}
@@ -3,10 +3,15 @@ import { EditorState } from '../../state/EditorState.js';
3
3
  import { Transaction } from '../../state/Transaction.js';
4
4
  import { PluginContext } from '../Plugin.js';
5
5
  import { TableLocale } from './TableLocale.js';
6
+ import { TableSizingConfig } from './TableSizing.js';
6
7
  export interface TableControlsHandle {
7
8
  update(node: BlockNode): void;
9
+ setReadOnly(readonly: boolean): void;
8
10
  destroy(): void;
9
11
  }
12
+ export interface TableControlsConfig extends TableSizingConfig {
13
+ readonly directResize: boolean;
14
+ }
10
15
  /** Creates table controls for the given table element. */
11
- export declare function createTableControls(container: HTMLElement, tableEl: HTMLTableElement, initialNode: BlockNode, getState: () => EditorState, dispatch: (tr: Transaction) => void, pluginContext?: PluginContext, locale?: TableLocale): TableControlsHandle;
16
+ export declare function createTableControls(container: HTMLElement, tableEl: HTMLTableElement, initialNode: BlockNode, getState: () => EditorState, dispatch: (tr: Transaction) => void, pluginContext?: PluginContext, locale?: TableLocale, config?: Partial<TableControlsConfig>): TableControlsHandle;
12
17
  //# sourceMappingURL=TableControls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableControls.d.ts","sourceRoot":"","sources":["../../../src/plugins/table/TableControls.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiClD,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIrE,MAAM,WAAW,mBAAmB;IACnC,MAAM,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QAAQ,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,EACnC,aAAa,CAAC,EAAE,aAAa,EAC7B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GACnC,mBAAmB,CAWrB"}
@@ -13,6 +13,10 @@ export declare function buildInsertLine(orientation: 'horizontal' | 'vertical',
13
13
  export declare function buildAddButton(className: string, title: string): HTMLButtonElement;
14
14
  /** Builds a handle-bar container (for column or row handles). */
15
15
  export declare function buildHandleBar(className: string): HTMLDivElement;
16
+ /** Builds a keyboard-focusable logical column/row resize separator. */
17
+ export declare function buildResizeSeparator(kind: 'column' | 'row', index: number, label: string, keyboardHint: string): HTMLButtonElement;
18
+ /** Builds the live pointer-resize dimension indicator. */
19
+ export declare function buildResizeIndicator(): HTMLDivElement;
16
20
  /** SVG icon for kebab menu (three vertical dots). */
17
21
  export declare const ACTIONS_SVG: string;
18
22
  /** Builds the table actions button (kebab menu icon). */
@@ -25,6 +29,11 @@ export declare const BORDER_COLOR_SVG: string;
25
29
  export declare function buildBorderColorButton(label: string, currentColor?: string): HTMLButtonElement;
26
30
  /** Updates the swatch indicator to reflect the current border color. */
27
31
  export declare function updateBorderColorSwatch(swatch: HTMLElement, color?: string): void;
28
- /** Builds a single column or row handle with a delete button. */
29
- export declare function buildHandle(className: string, index: number, deleteLabel: string, onDelete: (idx: number) => void): HTMLDivElement;
32
+ export interface TableHandleSelectionOptions {
33
+ readonly label: string;
34
+ readonly onSelect: (idx: number) => void;
35
+ readonly selected?: boolean;
36
+ }
37
+ /** Builds a single column or row handle with selection and delete buttons. */
38
+ export declare function buildHandle(className: string, index: number, deleteLabel: string, onDelete: (idx: number) => void, selection?: TableHandleSelectionOptions): HTMLDivElement;
30
39
  //# sourceMappingURL=TableControlsDOM.d.ts.map