@eigenpal/docx-editor-core 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (419) hide show
  1. package/LICENSE +204 -0
  2. package/README.md +54 -0
  3. package/dist/ImageExtension-BN327PNe.d.mts +38 -0
  4. package/dist/ImageExtension-BlI5afZD.d.ts +38 -0
  5. package/dist/Subscribable-DOz6Ohoo.d.mts +33 -0
  6. package/dist/Subscribable-DOz6Ohoo.d.ts +33 -0
  7. package/dist/agent/index.d.mts +169 -0
  8. package/dist/agent/index.d.ts +169 -0
  9. package/dist/agent/index.js +1 -0
  10. package/dist/agent/index.mjs +1 -0
  11. package/dist/borders-BH_GoYU3.d.mts +58 -0
  12. package/dist/borders-Z9hPno2u.d.ts +58 -0
  13. package/dist/chunk-23CP3TOP.js +1 -0
  14. package/dist/chunk-2KHWHVTA.js +1 -0
  15. package/dist/chunk-36VIYQHD.mjs +9 -0
  16. package/dist/chunk-3COGZG7O.mjs +1 -0
  17. package/dist/chunk-3NRMSZX2.mjs +1 -0
  18. package/dist/chunk-3SXJPJSV.mjs +1 -0
  19. package/dist/chunk-44RUAQA2.js +1 -0
  20. package/dist/chunk-4AJYHCPB.js +2 -0
  21. package/dist/chunk-4BFNWPKW.js +1 -0
  22. package/dist/chunk-4EHBV73E.mjs +59 -0
  23. package/dist/chunk-4G6AJ4ZM.js +1 -0
  24. package/dist/chunk-4GER4JLW.js +1 -0
  25. package/dist/chunk-4Q2IP5FW.js +1 -0
  26. package/dist/chunk-5N5DBQJV.mjs +1 -0
  27. package/dist/chunk-62NPHRTF.js +1 -0
  28. package/dist/chunk-67LVRQIR.mjs +1 -0
  29. package/dist/chunk-6ILFFGGS.js +2 -0
  30. package/dist/chunk-6LOYA7G5.mjs +2 -0
  31. package/dist/chunk-6LVPRTB6.js +1 -0
  32. package/dist/chunk-6NQSIC27.mjs +1 -0
  33. package/dist/chunk-6VUYFDHY.mjs +1 -0
  34. package/dist/chunk-7E5VBRDL.mjs +1 -0
  35. package/dist/chunk-7GHQ4YCJ.mjs +1 -0
  36. package/dist/chunk-7RDCZLTU.js +1 -0
  37. package/dist/chunk-7VCMJCBY.js +2 -0
  38. package/dist/chunk-AAPBAMD7.js +1 -0
  39. package/dist/chunk-AMENZY5F.mjs +1 -0
  40. package/dist/chunk-ARHPXIBJ.mjs +1 -0
  41. package/dist/chunk-BGC7QKP5.mjs +1 -0
  42. package/dist/chunk-BGY3CB37.mjs +1 -0
  43. package/dist/chunk-BHBOAP6Z.js +3 -0
  44. package/dist/chunk-BWHUD2XC.mjs +4 -0
  45. package/dist/chunk-CCWOLPZE.js +3 -0
  46. package/dist/chunk-CGJ6S3AH.mjs +1 -0
  47. package/dist/chunk-CKKO4JWE.mjs +1 -0
  48. package/dist/chunk-CKXAHSJQ.js +10 -0
  49. package/dist/chunk-CP5OSG5Z.mjs +1 -0
  50. package/dist/chunk-CUY2THAO.mjs +1 -0
  51. package/dist/chunk-CWAP26GB.js +4 -0
  52. package/dist/chunk-D4RPOJC7.js +1 -0
  53. package/dist/chunk-D6GO7UGD.mjs +1 -0
  54. package/dist/chunk-DC7S76ZX.js +1 -0
  55. package/dist/chunk-DFZTUQ7O.js +2 -0
  56. package/dist/chunk-DROCYKAR.js +1 -0
  57. package/dist/chunk-DWFWYHM5.mjs +1 -0
  58. package/dist/chunk-DY2MJCSV.js +1 -0
  59. package/dist/chunk-ESI4BSBF.js +1 -0
  60. package/dist/chunk-FC6QL3E6.js +1 -0
  61. package/dist/chunk-FWTP7BN7.mjs +4 -0
  62. package/dist/chunk-G6Y4UZMJ.mjs +1 -0
  63. package/dist/chunk-GGPKPXON.js +1 -0
  64. package/dist/chunk-GXW7YSFL.mjs +1 -0
  65. package/dist/chunk-I6PMX4BO.js +1 -0
  66. package/dist/chunk-IBNUQL57.mjs +2 -0
  67. package/dist/chunk-ILJUDEZ5.mjs +1 -0
  68. package/dist/chunk-IP2VXNWG.js +1 -0
  69. package/dist/chunk-J7ULKGU2.mjs +10 -0
  70. package/dist/chunk-JFZIXFRC.js +1 -0
  71. package/dist/chunk-JHZ3HLSR.mjs +1 -0
  72. package/dist/chunk-JKVXID22.mjs +1 -0
  73. package/dist/chunk-JY5EFI4D.js +1 -0
  74. package/dist/chunk-KBU6QQFU.js +9 -0
  75. package/dist/chunk-KESNGXGO.js +1 -0
  76. package/dist/chunk-KQTB5Y7P.mjs +1 -0
  77. package/dist/chunk-LBKMYD3M.mjs +1 -0
  78. package/dist/chunk-LMF2ELOB.js +1 -0
  79. package/dist/chunk-LVD6HXRF.mjs +2 -0
  80. package/dist/chunk-MJ5FQX7Q.js +1 -0
  81. package/dist/chunk-MOKKS75W.mjs +3 -0
  82. package/dist/chunk-MVZOTKNL.mjs +1 -0
  83. package/dist/chunk-MZ7LW5CH.js +1 -0
  84. package/dist/chunk-MZOVDLYL.js +1 -0
  85. package/dist/chunk-N27FJQTG.js +1 -0
  86. package/dist/chunk-N3Y5BUKV.js +1 -0
  87. package/dist/chunk-NBLJPT54.mjs +1 -0
  88. package/dist/chunk-NERY274X.js +1 -0
  89. package/dist/chunk-NNQWQOC5.mjs +1 -0
  90. package/dist/chunk-NXLJVVVE.js +1 -0
  91. package/dist/chunk-O5X22KZ6.mjs +1 -0
  92. package/dist/chunk-OBMN4VSM.mjs +1 -0
  93. package/dist/chunk-OCAX2KJQ.js +4 -0
  94. package/dist/chunk-OZMNIX6U.mjs +1 -0
  95. package/dist/chunk-PRRM64JO.mjs +1 -0
  96. package/dist/chunk-Q4CKLXWA.js +1 -0
  97. package/dist/chunk-Q5QOBZWT.mjs +1 -0
  98. package/dist/chunk-QPFJJPIC.mjs +1 -0
  99. package/dist/chunk-QYUPLKLP.mjs +1 -0
  100. package/dist/chunk-RNOXNNSD.mjs +0 -0
  101. package/dist/chunk-RPIQG46O.mjs +1 -0
  102. package/dist/chunk-S7IKPRC3.js +9 -0
  103. package/dist/chunk-SUXJX72X.js +1 -0
  104. package/dist/chunk-SYJAAHUK.js +1 -0
  105. package/dist/chunk-T4CPTPRP.js +1 -0
  106. package/dist/chunk-TE2AF7FM.js +1 -0
  107. package/dist/chunk-TE2VQJZG.js +1 -0
  108. package/dist/chunk-TRJWRZZD.js +1 -0
  109. package/dist/chunk-U4UCHBZ7.js +1 -0
  110. package/dist/chunk-UDPROEUK.js +1 -0
  111. package/dist/chunk-UIROUI5I.mjs +1 -0
  112. package/dist/chunk-UOFQYE2L.mjs +1 -0
  113. package/dist/chunk-UQ6WNWXX.js +1 -0
  114. package/dist/chunk-V7BKPX67.mjs +2 -0
  115. package/dist/chunk-VKTCTMIO.mjs +2 -0
  116. package/dist/chunk-VQWZHPWI.mjs +1 -0
  117. package/dist/chunk-VW22RZ6C.mjs +1 -0
  118. package/dist/chunk-WLKRUBY4.js +1 -0
  119. package/dist/chunk-WLQEPVDR.js +1 -0
  120. package/dist/chunk-WNTT4MGC.js +59 -0
  121. package/dist/chunk-WTFLNYAT.mjs +1 -0
  122. package/dist/chunk-XXU7YQVV.js +1 -0
  123. package/dist/chunk-Y5HZAMND.mjs +9 -0
  124. package/dist/chunk-Y74ANBPV.js +1 -0
  125. package/dist/chunk-Y7JZPBBW.js +1 -0
  126. package/dist/chunk-YGHHSCPR.js +2 -0
  127. package/dist/chunk-YMZ3F2FZ.mjs +1 -0
  128. package/dist/chunk-YUKBAAB5.mjs +1 -0
  129. package/dist/chunk-ZRZ2VRQQ.mjs +1 -0
  130. package/dist/chunk-ZYESB4KC.mjs +3 -0
  131. package/dist/colorResolver-C3q7MLLD.d.mts +390 -0
  132. package/dist/colorResolver-CVsPLsw1.d.ts +390 -0
  133. package/dist/colors-C3vA7HUU.d.mts +70 -0
  134. package/dist/colors-C3vA7HUU.d.ts +70 -0
  135. package/dist/core-plugins.d.mts +64 -0
  136. package/dist/core-plugins.d.ts +64 -0
  137. package/dist/core-plugins.js +1 -0
  138. package/dist/core-plugins.mjs +1 -0
  139. package/dist/core.d.mts +399 -0
  140. package/dist/core.d.ts +399 -0
  141. package/dist/core.js +1 -0
  142. package/dist/core.mjs +1 -0
  143. package/dist/documentSerializer-C1ueey5d.d.mts +36 -0
  144. package/dist/documentSerializer-Chn7J1WG.d.ts +36 -0
  145. package/dist/docx/index.d.mts +1124 -0
  146. package/dist/docx/index.d.ts +1124 -0
  147. package/dist/docx/index.js +1 -0
  148. package/dist/docx/index.mjs +1 -0
  149. package/dist/docx/parser.d.mts +109 -0
  150. package/dist/docx/parser.d.ts +109 -0
  151. package/dist/docx/parser.js +1 -0
  152. package/dist/docx/parser.mjs +1 -0
  153. package/dist/docx/rezip.d.mts +313 -0
  154. package/dist/docx/rezip.d.ts +313 -0
  155. package/dist/docx/rezip.js +1 -0
  156. package/dist/docx/rezip.mjs +1 -0
  157. package/dist/docx/serializer/index.d.mts +126 -0
  158. package/dist/docx/serializer/index.d.ts +126 -0
  159. package/dist/docx/serializer/index.js +1 -0
  160. package/dist/docx/serializer/index.mjs +1 -0
  161. package/dist/docx/wrapTypes.d.mts +19 -0
  162. package/dist/docx/wrapTypes.d.ts +19 -0
  163. package/dist/docx/wrapTypes.js +1 -0
  164. package/dist/docx/wrapTypes.mjs +1 -0
  165. package/dist/docxInput-DTbCa48g.d.mts +21 -0
  166. package/dist/docxInput-DTbCa48g.d.ts +21 -0
  167. package/dist/executor-DZAMMQ35.js +1 -0
  168. package/dist/executor-ZCJRLT3Z.mjs +1 -0
  169. package/dist/findParagraphByParaId-Maw_8M5D.d.mts +28 -0
  170. package/dist/findParagraphByParaId-Maw_8M5D.d.ts +28 -0
  171. package/dist/fontLoader-BOt95Jtf.d.mts +223 -0
  172. package/dist/fontLoader-QPwbcX5j.d.ts +223 -0
  173. package/dist/footnotes-lCH_P3N3.d.mts +78 -0
  174. package/dist/footnotes-skVvEHvZ.d.ts +78 -0
  175. package/dist/formatting-BwpZWdGi.d.ts +410 -0
  176. package/dist/formatting-D9I-lFS4.d.mts +410 -0
  177. package/dist/headerFooterLayout-B3QVg556.d.ts +201 -0
  178. package/dist/headerFooterLayout-DkclHZ0Z.d.mts +201 -0
  179. package/dist/headless.d.mts +110 -0
  180. package/dist/headless.d.ts +110 -0
  181. package/dist/headless.js +1 -0
  182. package/dist/headless.mjs +1 -0
  183. package/dist/layout-bridge/clickToPositionDom.d.mts +56 -0
  184. package/dist/layout-bridge/clickToPositionDom.d.ts +56 -0
  185. package/dist/layout-bridge/clickToPositionDom.js +1 -0
  186. package/dist/layout-bridge/clickToPositionDom.mjs +1 -0
  187. package/dist/layout-bridge/index.d.mts +462 -0
  188. package/dist/layout-bridge/index.d.ts +462 -0
  189. package/dist/layout-bridge/index.js +1 -0
  190. package/dist/layout-bridge/index.mjs +1 -0
  191. package/dist/layout-bridge/measuring/index.d.mts +320 -0
  192. package/dist/layout-bridge/measuring/index.d.ts +320 -0
  193. package/dist/layout-bridge/measuring/index.js +1 -0
  194. package/dist/layout-bridge/measuring/index.mjs +1 -0
  195. package/dist/layout-bridge/tableInsertHover.d.mts +45 -0
  196. package/dist/layout-bridge/tableInsertHover.d.ts +45 -0
  197. package/dist/layout-bridge/tableInsertHover.js +1 -0
  198. package/dist/layout-bridge/tableInsertHover.mjs +1 -0
  199. package/dist/layout-bridge/toFlowBlocks.d.mts +122 -0
  200. package/dist/layout-bridge/toFlowBlocks.d.ts +122 -0
  201. package/dist/layout-bridge/toFlowBlocks.js +1 -0
  202. package/dist/layout-bridge/toFlowBlocks.mjs +1 -0
  203. package/dist/layout-engine/index.d.mts +322 -0
  204. package/dist/layout-engine/index.d.ts +322 -0
  205. package/dist/layout-engine/index.js +1 -0
  206. package/dist/layout-engine/index.mjs +1 -0
  207. package/dist/layout-engine/types.d.mts +903 -0
  208. package/dist/layout-engine/types.d.ts +903 -0
  209. package/dist/layout-engine/types.js +1 -0
  210. package/dist/layout-engine/types.mjs +1 -0
  211. package/dist/layout-painter/index.d.mts +23 -0
  212. package/dist/layout-painter/index.d.ts +23 -0
  213. package/dist/layout-painter/index.js +1 -0
  214. package/dist/layout-painter/index.mjs +1 -0
  215. package/dist/layout-painter/renderPage.d.mts +674 -0
  216. package/dist/layout-painter/renderPage.d.ts +674 -0
  217. package/dist/layout-painter/renderPage.js +1 -0
  218. package/dist/layout-painter/renderPage.mjs +1 -0
  219. package/dist/lists-CdiIk_c1.d.ts +142 -0
  220. package/dist/lists-JDB80qyP.d.mts +142 -0
  221. package/dist/managers/AutoSaveManager.d.mts +96 -0
  222. package/dist/managers/AutoSaveManager.d.ts +96 -0
  223. package/dist/managers/AutoSaveManager.js +1 -0
  224. package/dist/managers/AutoSaveManager.mjs +1 -0
  225. package/dist/managers/TableSelectionManager.d.mts +95 -0
  226. package/dist/managers/TableSelectionManager.d.ts +95 -0
  227. package/dist/managers/TableSelectionManager.js +1 -0
  228. package/dist/managers/TableSelectionManager.mjs +1 -0
  229. package/dist/managers/types.d.mts +122 -0
  230. package/dist/managers/types.d.ts +122 -0
  231. package/dist/managers/types.js +1 -0
  232. package/dist/managers/types.mjs +0 -0
  233. package/dist/marks-BujVxYP4.d.ts +56 -0
  234. package/dist/marks-CCPVlQzL.d.mts +56 -0
  235. package/dist/mcp-cli.mjs +137 -0
  236. package/dist/mcp.d.mts +184 -0
  237. package/dist/mcp.d.ts +184 -0
  238. package/dist/mcp.js +16 -0
  239. package/dist/mcp.mjs +16 -0
  240. package/dist/nodes-BXi1Uu3e.d.mts +257 -0
  241. package/dist/nodes-DfKj9kUA.d.ts +257 -0
  242. package/dist/plugin-api/RenderedDomContext.d.mts +74 -0
  243. package/dist/plugin-api/RenderedDomContext.d.ts +74 -0
  244. package/dist/plugin-api/RenderedDomContext.js +1 -0
  245. package/dist/plugin-api/RenderedDomContext.mjs +1 -0
  246. package/dist/plugin-api/index.d.mts +15 -0
  247. package/dist/plugin-api/index.d.ts +15 -0
  248. package/dist/plugin-api/index.js +1 -0
  249. package/dist/plugin-api/index.mjs +0 -0
  250. package/dist/plugin-api/resolveItemPositions.d.mts +54 -0
  251. package/dist/plugin-api/resolveItemPositions.d.ts +54 -0
  252. package/dist/plugin-api/resolveItemPositions.js +1 -0
  253. package/dist/plugin-api/resolveItemPositions.mjs +1 -0
  254. package/dist/plugin-api/types.d.mts +190 -0
  255. package/dist/plugin-api/types.d.ts +190 -0
  256. package/dist/plugin-api/types.js +1 -0
  257. package/dist/plugin-api/types.mjs +0 -0
  258. package/dist/processTemplate-GPFDLQMX.mjs +1 -0
  259. package/dist/processTemplate-HH2E3HBO.js +1 -0
  260. package/dist/prosemirror/commands/formatting.d.mts +100 -0
  261. package/dist/prosemirror/commands/formatting.d.ts +100 -0
  262. package/dist/prosemirror/commands/formatting.js +1 -0
  263. package/dist/prosemirror/commands/formatting.mjs +1 -0
  264. package/dist/prosemirror/commands/index.d.mts +114 -0
  265. package/dist/prosemirror/commands/index.d.ts +114 -0
  266. package/dist/prosemirror/commands/index.js +1 -0
  267. package/dist/prosemirror/commands/index.mjs +1 -0
  268. package/dist/prosemirror/commands/pageBreak.d.mts +20 -0
  269. package/dist/prosemirror/commands/pageBreak.d.ts +20 -0
  270. package/dist/prosemirror/commands/pageBreak.js +1 -0
  271. package/dist/prosemirror/commands/pageBreak.mjs +1 -0
  272. package/dist/prosemirror/commands/paragraph.d.mts +70 -0
  273. package/dist/prosemirror/commands/paragraph.d.ts +70 -0
  274. package/dist/prosemirror/commands/paragraph.js +1 -0
  275. package/dist/prosemirror/commands/paragraph.mjs +1 -0
  276. package/dist/prosemirror/conversion/fromProseDoc.d.mts +66 -0
  277. package/dist/prosemirror/conversion/fromProseDoc.d.ts +66 -0
  278. package/dist/prosemirror/conversion/fromProseDoc.js +1 -0
  279. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -0
  280. package/dist/prosemirror/conversion/index.d.mts +78 -0
  281. package/dist/prosemirror/conversion/index.d.ts +78 -0
  282. package/dist/prosemirror/conversion/index.js +1 -0
  283. package/dist/prosemirror/conversion/index.mjs +1 -0
  284. package/dist/prosemirror/editor.css +763 -0
  285. package/dist/prosemirror/extensions/index.d.mts +79 -0
  286. package/dist/prosemirror/extensions/index.d.ts +79 -0
  287. package/dist/prosemirror/extensions/index.js +1 -0
  288. package/dist/prosemirror/extensions/index.mjs +1 -0
  289. package/dist/prosemirror/extensions/nodes/TableExtension.d.mts +30 -0
  290. package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +30 -0
  291. package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -0
  292. package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -0
  293. package/dist/prosemirror/index.d.mts +71 -0
  294. package/dist/prosemirror/index.d.ts +71 -0
  295. package/dist/prosemirror/index.js +1 -0
  296. package/dist/prosemirror/index.mjs +1 -0
  297. package/dist/prosemirror/plugins/index.d.mts +50 -0
  298. package/dist/prosemirror/plugins/index.d.ts +50 -0
  299. package/dist/prosemirror/plugins/index.js +1 -0
  300. package/dist/prosemirror/plugins/index.mjs +1 -0
  301. package/dist/prosemirror/plugins/selectionTracker.d.mts +78 -0
  302. package/dist/prosemirror/plugins/selectionTracker.d.ts +78 -0
  303. package/dist/prosemirror/plugins/selectionTracker.js +1 -0
  304. package/dist/prosemirror/plugins/selectionTracker.mjs +1 -0
  305. package/dist/prosemirror/schema/index.d.mts +30 -0
  306. package/dist/prosemirror/schema/index.d.ts +30 -0
  307. package/dist/prosemirror/schema/index.js +1 -0
  308. package/dist/prosemirror/schema/index.mjs +1 -0
  309. package/dist/prosemirror/styles/index.d.mts +124 -0
  310. package/dist/prosemirror/styles/index.d.ts +124 -0
  311. package/dist/prosemirror/styles/index.js +1 -0
  312. package/dist/prosemirror/styles/index.mjs +1 -0
  313. package/dist/prosemirror/template/prosemirror-plugin.d.mts +66 -0
  314. package/dist/prosemirror/template/prosemirror-plugin.d.ts +66 -0
  315. package/dist/prosemirror/template/prosemirror-plugin.js +15 -0
  316. package/dist/prosemirror/template/prosemirror-plugin.mjs +15 -0
  317. package/dist/prosemirror/utils/ClickPositionResolver.d.mts +109 -0
  318. package/dist/prosemirror/utils/ClickPositionResolver.d.ts +109 -0
  319. package/dist/prosemirror/utils/ClickPositionResolver.js +1 -0
  320. package/dist/prosemirror/utils/ClickPositionResolver.mjs +1 -0
  321. package/dist/prosemirror/utils/LayoutSelectionGate.d.mts +81 -0
  322. package/dist/prosemirror/utils/LayoutSelectionGate.d.ts +81 -0
  323. package/dist/prosemirror/utils/LayoutSelectionGate.js +1 -0
  324. package/dist/prosemirror/utils/LayoutSelectionGate.mjs +1 -0
  325. package/dist/prosemirror/utils/PointerEventHandler.d.mts +94 -0
  326. package/dist/prosemirror/utils/PointerEventHandler.d.ts +94 -0
  327. package/dist/prosemirror/utils/PointerEventHandler.js +1 -0
  328. package/dist/prosemirror/utils/PointerEventHandler.mjs +1 -0
  329. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +63 -0
  330. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +63 -0
  331. package/dist/prosemirror/utils/extractTrackedChanges.js +1 -0
  332. package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -0
  333. package/dist/prosemirror/utils/visualLineNavigation.d.mts +45 -0
  334. package/dist/prosemirror/utils/visualLineNavigation.d.ts +45 -0
  335. package/dist/prosemirror/utils/visualLineNavigation.js +1 -0
  336. package/dist/prosemirror/utils/visualLineNavigation.mjs +1 -0
  337. package/dist/registry-Cpyybgij.d.mts +165 -0
  338. package/dist/registry-E5pahPKL.d.ts +165 -0
  339. package/dist/selectionContext-85CE0f7a.d.ts +570 -0
  340. package/dist/selectionContext-Xq3AY7pn.d.mts +570 -0
  341. package/dist/selectiveSave-CWaPEv0B.d.ts +31 -0
  342. package/dist/selectiveSave-jinP_4xa.d.mts +31 -0
  343. package/dist/selectiveXmlPatch-ypkxlTD_.d.mts +23 -0
  344. package/dist/selectiveXmlPatch-ypkxlTD_.d.ts +23 -0
  345. package/dist/styles-BBoqh07F.d.mts +233 -0
  346. package/dist/styles-jqO45PSq.d.ts +233 -0
  347. package/dist/table-P8esKWAc.d.ts +82 -0
  348. package/dist/table-_t_W8oQf.d.mts +82 -0
  349. package/dist/types/agentApi.d.mts +467 -0
  350. package/dist/types/agentApi.d.ts +467 -0
  351. package/dist/types/agentApi.js +1 -0
  352. package/dist/types/agentApi.mjs +1 -0
  353. package/dist/types/content.d.mts +1181 -0
  354. package/dist/types/content.d.ts +1181 -0
  355. package/dist/types/content.js +1 -0
  356. package/dist/types/content.mjs +0 -0
  357. package/dist/types/document.d.mts +106 -0
  358. package/dist/types/document.d.ts +106 -0
  359. package/dist/types/document.js +1 -0
  360. package/dist/types/document.mjs +0 -0
  361. package/dist/types-DXG7vqe9.d.ts +311 -0
  362. package/dist/types-RchZmPFN.d.mts +137 -0
  363. package/dist/types-RchZmPFN.d.ts +137 -0
  364. package/dist/types-dYdjUZMo.d.mts +311 -0
  365. package/dist/utils/cardStyles.d.mts +31 -0
  366. package/dist/utils/cardStyles.d.ts +31 -0
  367. package/dist/utils/cardStyles.js +1 -0
  368. package/dist/utils/cardStyles.mjs +1 -0
  369. package/dist/utils/comments.d.mts +48 -0
  370. package/dist/utils/comments.d.ts +48 -0
  371. package/dist/utils/comments.js +1 -0
  372. package/dist/utils/comments.mjs +1 -0
  373. package/dist/utils/findReplace.d.mts +114 -0
  374. package/dist/utils/findReplace.d.ts +114 -0
  375. package/dist/utils/findReplace.js +2 -0
  376. package/dist/utils/findReplace.mjs +2 -0
  377. package/dist/utils/findVerticalScrollParent.d.mts +25 -0
  378. package/dist/utils/findVerticalScrollParent.d.ts +25 -0
  379. package/dist/utils/findVerticalScrollParent.js +1 -0
  380. package/dist/utils/findVerticalScrollParent.mjs +1 -0
  381. package/dist/utils/fontOptions.d.mts +21 -0
  382. package/dist/utils/fontOptions.d.ts +21 -0
  383. package/dist/utils/fontOptions.js +1 -0
  384. package/dist/utils/fontOptions.mjs +1 -0
  385. package/dist/utils/headingCollector.d.mts +32 -0
  386. package/dist/utils/headingCollector.d.ts +32 -0
  387. package/dist/utils/headingCollector.js +1 -0
  388. package/dist/utils/headingCollector.mjs +1 -0
  389. package/dist/utils/highlightColors.d.mts +14 -0
  390. package/dist/utils/highlightColors.d.ts +14 -0
  391. package/dist/utils/highlightColors.js +1 -0
  392. package/dist/utils/highlightColors.mjs +1 -0
  393. package/dist/utils/index.d.mts +711 -0
  394. package/dist/utils/index.d.ts +711 -0
  395. package/dist/utils/index.js +82 -0
  396. package/dist/utils/index.mjs +82 -0
  397. package/dist/utils/listState.d.mts +27 -0
  398. package/dist/utils/listState.d.ts +27 -0
  399. package/dist/utils/listState.js +1 -0
  400. package/dist/utils/listState.mjs +1 -0
  401. package/dist/utils/reportIssue.d.mts +23 -0
  402. package/dist/utils/reportIssue.d.ts +23 -0
  403. package/dist/utils/reportIssue.js +2 -0
  404. package/dist/utils/reportIssue.mjs +2 -0
  405. package/dist/utils/sidebarConstants.d.mts +10 -0
  406. package/dist/utils/sidebarConstants.d.ts +10 -0
  407. package/dist/utils/sidebarConstants.js +1 -0
  408. package/dist/utils/sidebarConstants.mjs +1 -0
  409. package/dist/utils/textSelection.d.mts +92 -0
  410. package/dist/utils/textSelection.d.ts +92 -0
  411. package/dist/utils/textSelection.js +1 -0
  412. package/dist/utils/textSelection.mjs +1 -0
  413. package/dist/utils/units.d.mts +91 -0
  414. package/dist/utils/units.d.ts +91 -0
  415. package/dist/utils/units.js +1 -0
  416. package/dist/utils/units.mjs +1 -0
  417. package/dist/variableDetector-CAdt8yOr.d.mts +115 -0
  418. package/dist/variableDetector-W4XEN9YC.d.ts +115 -0
  419. package/package.json +565 -0
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Text Formatting Commands — thin re-exports from extension system
3
+ *
4
+ * Toggle marks, set marks, clear formatting, hyperlinks.
5
+ * All implementations live in extensions/marks/; this file re-exports
6
+ * for backward compatibility.
7
+ * @packageDocumentation
8
+ * @public
9
+ */
10
+ import { Command, EditorState } from 'prosemirror-state';
11
+ import { MarkType, Mark } from 'prosemirror-model';
12
+ import { T as TextFormatting } from '../../formatting-BwpZWdGi.js';
13
+ import { T as TextColorAttrs } from '../../marks-BujVxYP4.js';
14
+ import '../../colors-C3vA7HUU.js';
15
+
16
+ /**
17
+ * Shared mark utility functions
18
+ *
19
+ * setMark, removeMark, isMarkActive, getMarkAttr, marksToTextFormatting, textFormattingToMarks, clearFormatting
20
+ */
21
+
22
+ /**
23
+ * Check if a mark is active in the current selection
24
+ */
25
+ declare function isMarkActive(state: EditorState, markType: MarkType, attrs?: Record<string, unknown>): boolean;
26
+ /**
27
+ * Get the current value of a mark attribute
28
+ */
29
+ declare function getMarkAttr(state: EditorState, markType: MarkType, attr: string): unknown | null;
30
+ /**
31
+ * Clear all text formatting (remove all marks)
32
+ */
33
+ declare const clearFormatting: Command;
34
+ /**
35
+ * Create a command that sets a mark on the selection
36
+ */
37
+ declare function createSetMarkCommand(markType: MarkType, attrs?: Record<string, unknown>): Command;
38
+ /**
39
+ * Create a command that removes a mark from the selection
40
+ */
41
+ declare function createRemoveMarkCommand(markType: MarkType): Command;
42
+
43
+ declare function isHyperlinkActive(state: EditorState): boolean;
44
+ declare function getHyperlinkAttrs(state: EditorState): {
45
+ href: string;
46
+ tooltip?: string;
47
+ } | null;
48
+ declare function getSelectedText(state: EditorState): string;
49
+ /**
50
+ * Resolve the hyperlink mark + contiguous range that surrounds the
51
+ * current cursor. Used by edit/remove popup actions in both adapters.
52
+ *
53
+ * Resolution order for the mark itself:
54
+ * 1. `$from.marks()` — the normal active-marks lookup
55
+ * 2. `$from.nodeAfter`/`nodeBefore` marks — boundary positions don't
56
+ * report active marks via `marks()`
57
+ * 3. (optional) text-node search by `fallbackHref` — last resort when
58
+ * the popup knows the href but the cursor sits at a gap
59
+ *
60
+ * The returned range walks the parent block grouping consecutive text
61
+ * nodes that share the same href, and returns whichever range contains
62
+ * the cursor.
63
+ */
64
+ declare function findHyperlinkRangeAt(state: EditorState, fallbackHref?: string): {
65
+ mark: Mark;
66
+ start: number;
67
+ end: number;
68
+ } | null;
69
+
70
+ /**
71
+ * Text Formatting Commands — thin re-exports from extension system
72
+ *
73
+ * Toggle marks, set marks, clear formatting, hyperlinks.
74
+ * All implementations live in extensions/marks/; this file re-exports
75
+ * for backward compatibility.
76
+ * @packageDocumentation
77
+ * @public
78
+ */
79
+
80
+ declare function textFormattingToMarks(formatting: TextFormatting): Mark[];
81
+ declare const toggleBold: Command;
82
+ declare const toggleItalic: Command;
83
+ declare const toggleUnderline: Command;
84
+ declare const toggleStrike: Command;
85
+ declare const toggleSuperscript: Command;
86
+ declare const toggleSubscript: Command;
87
+ declare function setTextColor(attrs: TextColorAttrs): Command;
88
+ declare const clearTextColor: Command;
89
+ declare function setHighlight(color: string): Command;
90
+ declare const clearHighlight: Command;
91
+ declare function setFontSize(size: number): Command;
92
+ declare const clearFontSize: Command;
93
+ declare function setFontFamily(fontName: string): Command;
94
+ declare const clearFontFamily: Command;
95
+ declare function setUnderlineStyle(style: string, color?: TextColorAttrs): Command;
96
+ declare function setHyperlink(href: string, tooltip?: string): Command;
97
+ declare const removeHyperlink: Command;
98
+ declare function insertHyperlink(text: string, href: string, tooltip?: string): Command;
99
+
100
+ export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, createRemoveMarkCommand, createSetMarkCommand, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, setUnderlineStyle, textFormattingToMarks, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline };
@@ -0,0 +1 @@
1
+ 'use strict';var chunkUDPROEUK_js=require('../../chunk-UDPROEUK.js');require('../../chunk-SUXJX72X.js');var chunkDFZTUQ7O_js=require('../../chunk-DFZTUQ7O.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-NERY274X.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-T4CPTPRP.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.h}});Object.defineProperty(exports,"setUnderlineStyle",{enumerable:true,get:function(){return chunkUDPROEUK_js.p}});Object.defineProperty(exports,"textFormattingToMarks",{enumerable:true,get:function(){return chunkUDPROEUK_js.a}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkUDPROEUK_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkUDPROEUK_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkUDPROEUK_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkUDPROEUK_js.d}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.h}});Object.defineProperty(exports,"createRemoveMarkCommand",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.j}});Object.defineProperty(exports,"createSetMarkCommand",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.i}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.n}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.l}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.f}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.m}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.k}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.e}});
@@ -0,0 +1 @@
1
+ export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,p as setUnderlineStyle,a as textFormattingToMarks,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../../chunk-DWFWYHM5.mjs';import'../../chunk-JKVXID22.mjs';export{h as clearFormatting,j as createRemoveMarkCommand,i as createSetMarkCommand,n as findHyperlinkRangeAt,l as getHyperlinkAttrs,f as getMarkAttr,m as getSelectedText,k as isHyperlinkActive,e as isMarkActive}from'../../chunk-LVD6HXRF.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-6VUYFDHY.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -0,0 +1,114 @@
1
+ /**
2
+ * ProseMirror Commands
3
+ *
4
+ * Commands for formatting text and paragraphs.
5
+ * @packageDocumentation
6
+ * @public
7
+ */
8
+ export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, createRemoveMarkCommand, createSetMarkCommand, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, setUnderlineStyle, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './formatting.mjs';
9
+ export { ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, oneAndHalfSpacing, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList } from './paragraph.mjs';
10
+ export { a as addColumnLeft, b as addColumnRight, c as addRowAbove, d as addRowBelow, e as applyTableStyle, f as autoFitContents, g as deleteColumn, h as deleteRow, i as deleteTable, j as distributeColumns, k as insertTable, m as mergeCells, r as removeTableBorders, s as selectColumn, l as selectRow, n as selectTable, o as setAllTableBorders, p as setCellBorder, q as setCellFillColor, t as setCellMargins, u as setCellTextDirection, v as setCellVerticalAlign, w as setInsideTableBorders, x as setOutsideTableBorders, y as setRowHeight, z as setTableBorderColor, A as setTableBorderWidth, B as setTableBorders, C as setTableProperties, D as splitCell, E as toggleHeaderRow, F as toggleNoWrap } from '../../table-_t_W8oQf.mjs';
11
+ export { insertPageBreak } from './pageBreak.mjs';
12
+ import { EditorState, Transaction, Command } from 'prosemirror-state';
13
+ import { I as ImageLayoutTarget, S as SetImageWrapTypeOptions } from '../../ImageExtension-BN327PNe.mjs';
14
+ export { A as AnchorWrapType } from '../../ImageExtension-BN327PNe.mjs';
15
+ export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../../borders-BH_GoYU3.mjs';
16
+ import 'prosemirror-model';
17
+ import '../../formatting-D9I-lFS4.mjs';
18
+ import '../../colors-C3vA7HUU.mjs';
19
+ import '../../marks-CCPVlQzL.mjs';
20
+ import '../../docx/wrapTypes.mjs';
21
+
22
+ /**
23
+ * ProseMirror table cell splitting — dialog-backed split with explicit
24
+ * row/column input.
25
+ *
26
+ * Uses the shared split algorithm from utils/tableSplitAlgorithm.ts for the
27
+ * core layout computation, then maps the result back into ProseMirror
28
+ * transactions.
29
+ */
30
+
31
+ interface SplitCellDialogConfig {
32
+ minRows: number;
33
+ minCols: number;
34
+ initialRows: number;
35
+ initialCols: number;
36
+ /** Captured row index of the target cell at dialog-open time */
37
+ capturedCellRow: number;
38
+ /** Captured column index of the target cell at dialog-open time */
39
+ capturedCellCol: number;
40
+ }
41
+ declare function getSplitCellDialogConfig(state: EditorState): SplitCellDialogConfig | null;
42
+ declare function splitActiveTableCell(state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, rows: number, cols: number,
43
+ /** Target cell row/col captured at dialog-open time. Falls back to current cursor. */
44
+ targetRow?: number, targetCol?: number): boolean;
45
+
46
+ /**
47
+ * Image commands — thin re-exports from the extension system.
48
+ *
49
+ * Wrap-type transitions for floating images. Inline↔anchor conversions are
50
+ * structural and live in a follow-up; this surface only covers anchor↔anchor.
51
+ */
52
+
53
+ /**
54
+ * Change a floating image's wrap layout. `pos` is the PM document position of
55
+ * the image node; `target` is either an OOXML wrap type (square / tight /
56
+ * topAndBottom / behind / inFront / inline) or a directional convenience
57
+ * choice (`squareLeft` / `squareRight`).
58
+ *
59
+ * `opts.initialPositionEmu` is used when promoting an inline image to an
60
+ * anchor — the caller measures the image's current rendered offset relative
61
+ * to the column origin in EMUs and passes it through, so the new float lands
62
+ * exactly where the inline glyph used to sit (matches Word's behavior).
63
+ */
64
+ declare function setImageWrapType(pos: number, target: ImageLayoutTarget, opts?: SetImageWrapTypeOptions): Command;
65
+
66
+ /**
67
+ * Comment and Track Changes Commands
68
+ *
69
+ * PM commands for adding/removing comments and accepting/rejecting tracked changes.
70
+ */
71
+
72
+ /**
73
+ * Add a comment mark to the current selection.
74
+ */
75
+ declare function addCommentMark(commentId: number): Command;
76
+ /**
77
+ * Remove a comment mark by ID from the entire document.
78
+ */
79
+ declare function removeCommentMark(commentId: number): Command;
80
+ /**
81
+ * Accept a tracked change at the given range.
82
+ * - Insertion: remove mark, keep text
83
+ * - Deletion: remove mark AND text
84
+ */
85
+ declare function acceptChange(from: number, to: number): Command;
86
+ /**
87
+ * Reject a tracked change at the given range.
88
+ * - Insertion: remove mark AND text
89
+ * - Deletion: remove mark, keep text
90
+ */
91
+ declare function rejectChange(from: number, to: number): Command;
92
+ /**
93
+ * Accept all tracked changes in the document.
94
+ */
95
+ declare function acceptAllChanges(): Command;
96
+ /**
97
+ * Reject all tracked changes in the document.
98
+ */
99
+ declare function rejectAllChanges(): Command;
100
+ interface ChangeRange {
101
+ from: number;
102
+ to: number;
103
+ type: 'insertion' | 'deletion';
104
+ }
105
+ /**
106
+ * Find the next tracked change after the given position.
107
+ */
108
+ declare function findNextChange(state: EditorState, startPos: number): ChangeRange | null;
109
+ /**
110
+ * Find the previous tracked change before the given position.
111
+ */
112
+ declare function findPreviousChange(state: EditorState, startPos: number): ChangeRange | null;
113
+
114
+ export { ImageLayoutTarget, SetImageWrapTypeOptions, type SplitCellDialogConfig, acceptAllChanges, acceptChange, addCommentMark, findNextChange, findPreviousChange, getSplitCellDialogConfig, rejectAllChanges, rejectChange, removeCommentMark, setImageWrapType, splitActiveTableCell };
@@ -0,0 +1,114 @@
1
+ /**
2
+ * ProseMirror Commands
3
+ *
4
+ * Commands for formatting text and paragraphs.
5
+ * @packageDocumentation
6
+ * @public
7
+ */
8
+ export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, createRemoveMarkCommand, createSetMarkCommand, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, setUnderlineStyle, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './formatting.js';
9
+ export { ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, oneAndHalfSpacing, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList } from './paragraph.js';
10
+ export { a as addColumnLeft, b as addColumnRight, c as addRowAbove, d as addRowBelow, e as applyTableStyle, f as autoFitContents, g as deleteColumn, h as deleteRow, i as deleteTable, j as distributeColumns, k as insertTable, m as mergeCells, r as removeTableBorders, s as selectColumn, l as selectRow, n as selectTable, o as setAllTableBorders, p as setCellBorder, q as setCellFillColor, t as setCellMargins, u as setCellTextDirection, v as setCellVerticalAlign, w as setInsideTableBorders, x as setOutsideTableBorders, y as setRowHeight, z as setTableBorderColor, A as setTableBorderWidth, B as setTableBorders, C as setTableProperties, D as splitCell, E as toggleHeaderRow, F as toggleNoWrap } from '../../table-P8esKWAc.js';
11
+ export { insertPageBreak } from './pageBreak.js';
12
+ import { EditorState, Transaction, Command } from 'prosemirror-state';
13
+ import { I as ImageLayoutTarget, S as SetImageWrapTypeOptions } from '../../ImageExtension-BlI5afZD.js';
14
+ export { A as AnchorWrapType } from '../../ImageExtension-BlI5afZD.js';
15
+ export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../../borders-Z9hPno2u.js';
16
+ import 'prosemirror-model';
17
+ import '../../formatting-BwpZWdGi.js';
18
+ import '../../colors-C3vA7HUU.js';
19
+ import '../../marks-BujVxYP4.js';
20
+ import '../../docx/wrapTypes.js';
21
+
22
+ /**
23
+ * ProseMirror table cell splitting — dialog-backed split with explicit
24
+ * row/column input.
25
+ *
26
+ * Uses the shared split algorithm from utils/tableSplitAlgorithm.ts for the
27
+ * core layout computation, then maps the result back into ProseMirror
28
+ * transactions.
29
+ */
30
+
31
+ interface SplitCellDialogConfig {
32
+ minRows: number;
33
+ minCols: number;
34
+ initialRows: number;
35
+ initialCols: number;
36
+ /** Captured row index of the target cell at dialog-open time */
37
+ capturedCellRow: number;
38
+ /** Captured column index of the target cell at dialog-open time */
39
+ capturedCellCol: number;
40
+ }
41
+ declare function getSplitCellDialogConfig(state: EditorState): SplitCellDialogConfig | null;
42
+ declare function splitActiveTableCell(state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, rows: number, cols: number,
43
+ /** Target cell row/col captured at dialog-open time. Falls back to current cursor. */
44
+ targetRow?: number, targetCol?: number): boolean;
45
+
46
+ /**
47
+ * Image commands — thin re-exports from the extension system.
48
+ *
49
+ * Wrap-type transitions for floating images. Inline↔anchor conversions are
50
+ * structural and live in a follow-up; this surface only covers anchor↔anchor.
51
+ */
52
+
53
+ /**
54
+ * Change a floating image's wrap layout. `pos` is the PM document position of
55
+ * the image node; `target` is either an OOXML wrap type (square / tight /
56
+ * topAndBottom / behind / inFront / inline) or a directional convenience
57
+ * choice (`squareLeft` / `squareRight`).
58
+ *
59
+ * `opts.initialPositionEmu` is used when promoting an inline image to an
60
+ * anchor — the caller measures the image's current rendered offset relative
61
+ * to the column origin in EMUs and passes it through, so the new float lands
62
+ * exactly where the inline glyph used to sit (matches Word's behavior).
63
+ */
64
+ declare function setImageWrapType(pos: number, target: ImageLayoutTarget, opts?: SetImageWrapTypeOptions): Command;
65
+
66
+ /**
67
+ * Comment and Track Changes Commands
68
+ *
69
+ * PM commands for adding/removing comments and accepting/rejecting tracked changes.
70
+ */
71
+
72
+ /**
73
+ * Add a comment mark to the current selection.
74
+ */
75
+ declare function addCommentMark(commentId: number): Command;
76
+ /**
77
+ * Remove a comment mark by ID from the entire document.
78
+ */
79
+ declare function removeCommentMark(commentId: number): Command;
80
+ /**
81
+ * Accept a tracked change at the given range.
82
+ * - Insertion: remove mark, keep text
83
+ * - Deletion: remove mark AND text
84
+ */
85
+ declare function acceptChange(from: number, to: number): Command;
86
+ /**
87
+ * Reject a tracked change at the given range.
88
+ * - Insertion: remove mark AND text
89
+ * - Deletion: remove mark, keep text
90
+ */
91
+ declare function rejectChange(from: number, to: number): Command;
92
+ /**
93
+ * Accept all tracked changes in the document.
94
+ */
95
+ declare function acceptAllChanges(): Command;
96
+ /**
97
+ * Reject all tracked changes in the document.
98
+ */
99
+ declare function rejectAllChanges(): Command;
100
+ interface ChangeRange {
101
+ from: number;
102
+ to: number;
103
+ type: 'insertion' | 'deletion';
104
+ }
105
+ /**
106
+ * Find the next tracked change after the given position.
107
+ */
108
+ declare function findNextChange(state: EditorState, startPos: number): ChangeRange | null;
109
+ /**
110
+ * Find the previous tracked change before the given position.
111
+ */
112
+ declare function findPreviousChange(state: EditorState, startPos: number): ChangeRange | null;
113
+
114
+ export { ImageLayoutTarget, SetImageWrapTypeOptions, type SplitCellDialogConfig, acceptAllChanges, acceptChange, addCommentMark, findNextChange, findPreviousChange, getSplitCellDialogConfig, rejectAllChanges, rejectChange, removeCommentMark, setImageWrapType, splitActiveTableCell };
@@ -0,0 +1 @@
1
+ 'use strict';var chunkSYJAAHUK_js=require('../../chunk-SYJAAHUK.js'),chunk62NPHRTF_js=require('../../chunk-62NPHRTF.js'),chunkUDPROEUK_js=require('../../chunk-UDPROEUK.js'),chunkGGPKPXON_js=require('../../chunk-GGPKPXON.js');require('../../chunk-2KHWHVTA.js'),require('../../chunk-SUXJX72X.js');var chunkDFZTUQ7O_js=require('../../chunk-DFZTUQ7O.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js');var chunkNERY274X_js=require('../../chunk-NERY274X.js');require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-T4CPTPRP.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"acceptAllChanges",{enumerable:true,get:function(){return chunkSYJAAHUK_js.N}});Object.defineProperty(exports,"acceptChange",{enumerable:true,get:function(){return chunkSYJAAHUK_js.L}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkSYJAAHUK_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.h}});Object.defineProperty(exports,"addCommentMark",{enumerable:true,get:function(){return chunkSYJAAHUK_js.J}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkSYJAAHUK_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkSYJAAHUK_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkSYJAAHUK_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkSYJAAHUK_js.B}});Object.defineProperty(exports,"findNextChange",{enumerable:true,get:function(){return chunkSYJAAHUK_js.P}});Object.defineProperty(exports,"findPreviousChange",{enumerable:true,get:function(){return chunkSYJAAHUK_js.Q}});Object.defineProperty(exports,"getSplitCellDialogConfig",{enumerable:true,get:function(){return chunkSYJAAHUK_js.a}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkSYJAAHUK_js.n}});Object.defineProperty(exports,"rejectAllChanges",{enumerable:true,get:function(){return chunkSYJAAHUK_js.O}});Object.defineProperty(exports,"rejectChange",{enumerable:true,get:function(){return chunkSYJAAHUK_js.M}});Object.defineProperty(exports,"removeCommentMark",{enumerable:true,get:function(){return chunkSYJAAHUK_js.K}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkSYJAAHUK_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkSYJAAHUK_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkSYJAAHUK_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkSYJAAHUK_js.v}});Object.defineProperty(exports,"setImageWrapType",{enumerable:true,get:function(){return chunkSYJAAHUK_js.I}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkSYJAAHUK_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkSYJAAHUK_js.D}});Object.defineProperty(exports,"splitActiveTableCell",{enumerable:true,get:function(){return chunkSYJAAHUK_js.b}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkSYJAAHUK_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkSYJAAHUK_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunk62NPHRTF_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunk62NPHRTF_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.r}});Object.defineProperty(exports,"doubleSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.i}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunk62NPHRTF_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.q}});Object.defineProperty(exports,"oneAndHalfSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.h}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunk62NPHRTF_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunk62NPHRTF_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunk62NPHRTF_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunk62NPHRTF_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunk62NPHRTF_js.B}});Object.defineProperty(exports,"setSpaceAfter",{enumerable:true,get:function(){return chunk62NPHRTF_js.u}});Object.defineProperty(exports,"setSpaceBefore",{enumerable:true,get:function(){return chunk62NPHRTF_js.t}});Object.defineProperty(exports,"singleSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.g}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunk62NPHRTF_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunk62NPHRTF_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.h}});Object.defineProperty(exports,"setUnderlineStyle",{enumerable:true,get:function(){return chunkUDPROEUK_js.p}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkUDPROEUK_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkUDPROEUK_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkUDPROEUK_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkUDPROEUK_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.h}});Object.defineProperty(exports,"createRemoveMarkCommand",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.j}});Object.defineProperty(exports,"createSetMarkCommand",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.i}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.n}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.l}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.p}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.f}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.m}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.k}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.o}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.e}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkNERY274X_js.e}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkNERY274X_js.f}});
@@ -0,0 +1 @@
1
+ export{N as acceptAllChanges,L as acceptChange,g as addColumnLeft,h as addColumnRight,J as addCommentMark,d as addRowAbove,e as addRowBelow,E as applyTableStyle,C as autoFitContents,i as deleteColumn,f as deleteRow,j as deleteTable,B as distributeColumns,P as findNextChange,Q as findPreviousChange,a as getSplitCellDialogConfig,c as insertTable,n as mergeCells,O as rejectAllChanges,M as rejectChange,K as removeCommentMark,r as removeTableBorders,m as selectColumn,l as selectRow,k as selectTable,s as setAllTableBorders,p as setCellBorder,F as setCellFillColor,w as setCellMargins,x as setCellTextDirection,v as setCellVerticalAlign,I as setImageWrapType,u as setInsideTableBorders,t as setOutsideTableBorders,z as setRowHeight,G as setTableBorderColor,H as setTableBorderWidth,q as setTableBorders,D as setTableProperties,b as splitActiveTableCell,o as splitCell,A as toggleHeaderRow,y as toggleNoWrap}from'../../chunk-GXW7YSFL.mjs';export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,i as doubleSpacing,D as generateTOC,j as increaseIndent,q as increaseListLevel,h as oneAndHalfSpacing,s as removeList,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,u as setSpaceAfter,t as setSpaceBefore,g as singleSpacing,o as toggleBulletList,p as toggleNumberedList}from'../../chunk-YUKBAAB5.mjs';export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,p as setUnderlineStyle,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../../chunk-DWFWYHM5.mjs';export{a as insertPageBreak}from'../../chunk-3COGZG7O.mjs';import'../../chunk-KQTB5Y7P.mjs';import'../../chunk-JKVXID22.mjs';export{h as clearFormatting,j as createRemoveMarkCommand,i as createSetMarkCommand,n as findHyperlinkRangeAt,l as getHyperlinkAttrs,p as getListInfo,f as getMarkAttr,a as getParagraphAlignment,d as getParagraphBidi,m as getSelectedText,c as getStyleId,k as isHyperlinkActive,o as isInList,e as isMarkActive}from'../../chunk-LVD6HXRF.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';export{e as getTableContext,f as isInTable}from'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-6VUYFDHY.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Page Break Commands
3
+ * @packageDocumentation
4
+ * @public
5
+ */
6
+ import { Command } from 'prosemirror-state';
7
+
8
+ /**
9
+ * Page Break Commands
10
+ * @packageDocumentation
11
+ * @public
12
+ */
13
+
14
+ /**
15
+ * Insert a page break at the current cursor position.
16
+ * Always ensures a paragraph follows the page break and places the cursor there.
17
+ */
18
+ declare const insertPageBreak: Command;
19
+
20
+ export { insertPageBreak };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Page Break Commands
3
+ * @packageDocumentation
4
+ * @public
5
+ */
6
+ import { Command } from 'prosemirror-state';
7
+
8
+ /**
9
+ * Page Break Commands
10
+ * @packageDocumentation
11
+ * @public
12
+ */
13
+
14
+ /**
15
+ * Insert a page break at the current cursor position.
16
+ * Always ensures a paragraph follows the page break and places the cursor there.
17
+ */
18
+ declare const insertPageBreak: Command;
19
+
20
+ export { insertPageBreak };
@@ -0,0 +1 @@
1
+ 'use strict';var chunkGGPKPXON_js=require('../../chunk-GGPKPXON.js');require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});
@@ -0,0 +1 @@
1
+ export{a as insertPageBreak}from'../../chunk-3COGZG7O.mjs';import'../../chunk-QYUPLKLP.mjs';
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Paragraph Formatting Commands — thin re-exports from extension system
3
+ *
4
+ * Alignment, line spacing, indentation, lists, paragraph styles.
5
+ * All implementations live in extensions/; this file re-exports
6
+ * for backward compatibility.
7
+ * @packageDocumentation
8
+ * @public
9
+ */
10
+ import { EditorState, Command } from 'prosemirror-state';
11
+ import { P as ParagraphFormatting, T as TextFormatting, b as ParagraphAlignment, d as TabStop, e as TabStopAlignment, c as TabLeader, L as LineSpacingRule } from '../../formatting-D9I-lFS4.mjs';
12
+ import '../../colors-C3vA7HUU.mjs';
13
+
14
+ interface ResolvedStyleAttrs {
15
+ paragraphFormatting?: ParagraphFormatting;
16
+ runFormatting?: TextFormatting;
17
+ }
18
+ declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;
19
+ declare function getParagraphTabs(state: EditorState): TabStop[] | null;
20
+ declare function getStyleId(state: EditorState): string | null;
21
+ declare function getParagraphBidi(state: EditorState): boolean;
22
+
23
+ declare function isInList(state: EditorState): boolean;
24
+ declare function getListInfo(state: EditorState): {
25
+ numId: number;
26
+ ilvl: number;
27
+ } | null;
28
+
29
+ /**
30
+ * Paragraph Formatting Commands — thin re-exports from extension system
31
+ *
32
+ * Alignment, line spacing, indentation, lists, paragraph styles.
33
+ * All implementations live in extensions/; this file re-exports
34
+ * for backward compatibility.
35
+ * @packageDocumentation
36
+ * @public
37
+ */
38
+
39
+ declare function setAlignment(alignment: ParagraphAlignment): Command;
40
+ declare const alignLeft: Command;
41
+ declare const alignCenter: Command;
42
+ declare const alignRight: Command;
43
+ declare const alignJustify: Command;
44
+ declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;
45
+ declare const singleSpacing: Command;
46
+ declare const oneAndHalfSpacing: Command;
47
+ declare const doubleSpacing: Command;
48
+ declare function increaseIndent(amount?: number): Command;
49
+ declare function decreaseIndent(amount?: number): Command;
50
+ declare function setIndentLeft(twips: number): Command;
51
+ declare function setIndentRight(twips: number): Command;
52
+ declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;
53
+ declare const toggleBulletList: Command;
54
+ declare const toggleNumberedList: Command;
55
+ declare const increaseListLevel: Command;
56
+ declare const decreaseListLevel: Command;
57
+ declare const removeList: Command;
58
+ declare function setSpaceBefore(twips: number): Command;
59
+ declare function setSpaceAfter(twips: number): Command;
60
+ declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;
61
+ declare const clearStyle: Command;
62
+ declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;
63
+ declare const removeSectionBreak: Command;
64
+ declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;
65
+ declare function removeTabStop(position: number): Command;
66
+ declare const setRtl: Command;
67
+ declare const setLtr: Command;
68
+ declare const generateTOC: Command;
69
+
70
+ export { type ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getParagraphTabs, getStyleId, increaseIndent, increaseListLevel, insertSectionBreak, isInList, oneAndHalfSpacing, removeList, removeSectionBreak, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Paragraph Formatting Commands — thin re-exports from extension system
3
+ *
4
+ * Alignment, line spacing, indentation, lists, paragraph styles.
5
+ * All implementations live in extensions/; this file re-exports
6
+ * for backward compatibility.
7
+ * @packageDocumentation
8
+ * @public
9
+ */
10
+ import { EditorState, Command } from 'prosemirror-state';
11
+ import { P as ParagraphFormatting, T as TextFormatting, b as ParagraphAlignment, d as TabStop, e as TabStopAlignment, c as TabLeader, L as LineSpacingRule } from '../../formatting-BwpZWdGi.js';
12
+ import '../../colors-C3vA7HUU.js';
13
+
14
+ interface ResolvedStyleAttrs {
15
+ paragraphFormatting?: ParagraphFormatting;
16
+ runFormatting?: TextFormatting;
17
+ }
18
+ declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;
19
+ declare function getParagraphTabs(state: EditorState): TabStop[] | null;
20
+ declare function getStyleId(state: EditorState): string | null;
21
+ declare function getParagraphBidi(state: EditorState): boolean;
22
+
23
+ declare function isInList(state: EditorState): boolean;
24
+ declare function getListInfo(state: EditorState): {
25
+ numId: number;
26
+ ilvl: number;
27
+ } | null;
28
+
29
+ /**
30
+ * Paragraph Formatting Commands — thin re-exports from extension system
31
+ *
32
+ * Alignment, line spacing, indentation, lists, paragraph styles.
33
+ * All implementations live in extensions/; this file re-exports
34
+ * for backward compatibility.
35
+ * @packageDocumentation
36
+ * @public
37
+ */
38
+
39
+ declare function setAlignment(alignment: ParagraphAlignment): Command;
40
+ declare const alignLeft: Command;
41
+ declare const alignCenter: Command;
42
+ declare const alignRight: Command;
43
+ declare const alignJustify: Command;
44
+ declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;
45
+ declare const singleSpacing: Command;
46
+ declare const oneAndHalfSpacing: Command;
47
+ declare const doubleSpacing: Command;
48
+ declare function increaseIndent(amount?: number): Command;
49
+ declare function decreaseIndent(amount?: number): Command;
50
+ declare function setIndentLeft(twips: number): Command;
51
+ declare function setIndentRight(twips: number): Command;
52
+ declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;
53
+ declare const toggleBulletList: Command;
54
+ declare const toggleNumberedList: Command;
55
+ declare const increaseListLevel: Command;
56
+ declare const decreaseListLevel: Command;
57
+ declare const removeList: Command;
58
+ declare function setSpaceBefore(twips: number): Command;
59
+ declare function setSpaceAfter(twips: number): Command;
60
+ declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;
61
+ declare const clearStyle: Command;
62
+ declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;
63
+ declare const removeSectionBreak: Command;
64
+ declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;
65
+ declare function removeTabStop(position: number): Command;
66
+ declare const setRtl: Command;
67
+ declare const setLtr: Command;
68
+ declare const generateTOC: Command;
69
+
70
+ export { type ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getParagraphTabs, getStyleId, increaseIndent, increaseListLevel, insertSectionBreak, isInList, oneAndHalfSpacing, removeList, removeSectionBreak, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList };
@@ -0,0 +1 @@
1
+ 'use strict';var chunk62NPHRTF_js=require('../../chunk-62NPHRTF.js');require('../../chunk-SUXJX72X.js');var chunkDFZTUQ7O_js=require('../../chunk-DFZTUQ7O.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-NERY274X.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-T4CPTPRP.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunk62NPHRTF_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunk62NPHRTF_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.r}});Object.defineProperty(exports,"doubleSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.i}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunk62NPHRTF_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.q}});Object.defineProperty(exports,"insertSectionBreak",{enumerable:true,get:function(){return chunk62NPHRTF_js.x}});Object.defineProperty(exports,"oneAndHalfSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.h}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunk62NPHRTF_js.s}});Object.defineProperty(exports,"removeSectionBreak",{enumerable:true,get:function(){return chunk62NPHRTF_js.y}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunk62NPHRTF_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunk62NPHRTF_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunk62NPHRTF_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunk62NPHRTF_js.B}});Object.defineProperty(exports,"setSpaceAfter",{enumerable:true,get:function(){return chunk62NPHRTF_js.u}});Object.defineProperty(exports,"setSpaceBefore",{enumerable:true,get:function(){return chunk62NPHRTF_js.t}});Object.defineProperty(exports,"singleSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.g}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunk62NPHRTF_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunk62NPHRTF_js.p}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.p}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.d}});Object.defineProperty(exports,"getParagraphTabs",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.b}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.c}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.o}});
@@ -0,0 +1 @@
1
+ export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,i as doubleSpacing,D as generateTOC,j as increaseIndent,q as increaseListLevel,x as insertSectionBreak,h as oneAndHalfSpacing,s as removeList,y as removeSectionBreak,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,u as setSpaceAfter,t as setSpaceBefore,g as singleSpacing,o as toggleBulletList,p as toggleNumberedList}from'../../chunk-YUKBAAB5.mjs';import'../../chunk-JKVXID22.mjs';export{p as getListInfo,a as getParagraphAlignment,d as getParagraphBidi,b as getParagraphTabs,c as getStyleId,o as isInList}from'../../chunk-LVD6HXRF.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-6VUYFDHY.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';