@zeke-02/docx-editor-core 0.1.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 (431) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +89 -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 +168 -0
  8. package/dist/agent/index.d.ts +168 -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-2HFQ4QTU.js +1 -0
  14. package/dist/chunk-2KHWHVTA.js +1 -0
  15. package/dist/chunk-2MSZXH6Q.mjs +2 -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-44FHVKSI.js +1 -0
  20. package/dist/chunk-4BFNWPKW.js +1 -0
  21. package/dist/chunk-4G6AJ4ZM.js +1 -0
  22. package/dist/chunk-4GER4JLW.js +1 -0
  23. package/dist/chunk-4Q2IP5FW.js +1 -0
  24. package/dist/chunk-56D223FM.mjs +1 -0
  25. package/dist/chunk-5VBNOHRE.mjs +1 -0
  26. package/dist/chunk-67LVRQIR.mjs +1 -0
  27. package/dist/chunk-6LVPRTB6.js +1 -0
  28. package/dist/chunk-6NQSIC27.mjs +1 -0
  29. package/dist/chunk-6Y6LON6Y.mjs +1 -0
  30. package/dist/chunk-6ZXL3EIP.mjs +2 -0
  31. package/dist/chunk-7AMYZMCX.js +1 -0
  32. package/dist/chunk-7E5VBRDL.mjs +1 -0
  33. package/dist/chunk-7HANRHHL.js +1 -0
  34. package/dist/chunk-7LRR7RKE.mjs +15 -0
  35. package/dist/chunk-7RDCZLTU.js +1 -0
  36. package/dist/chunk-7U4I6BKJ.js +1 -0
  37. package/dist/chunk-7Z2AGPNQ.mjs +10 -0
  38. package/dist/chunk-AAPBAMD7.js +1 -0
  39. package/dist/chunk-AGVFAXVQ.mjs +9 -0
  40. package/dist/chunk-AMENZY5F.mjs +1 -0
  41. package/dist/chunk-ARHPXIBJ.mjs +1 -0
  42. package/dist/chunk-BGY3CB37.mjs +1 -0
  43. package/dist/chunk-BHBOAP6Z.js +3 -0
  44. package/dist/chunk-BOOHU5EW.mjs +1 -0
  45. package/dist/chunk-C2BAPYGJ.js +1 -0
  46. package/dist/chunk-CGJ6S3AH.mjs +1 -0
  47. package/dist/chunk-CKKO4JWE.mjs +1 -0
  48. package/dist/chunk-CTHHUJAB.mjs +2 -0
  49. package/dist/chunk-CUY2THAO.mjs +1 -0
  50. package/dist/chunk-CXQDYR2Y.js +1 -0
  51. package/dist/chunk-D4RPOJC7.js +1 -0
  52. package/dist/chunk-D6GO7UGD.mjs +1 -0
  53. package/dist/chunk-DC7S76ZX.js +1 -0
  54. package/dist/chunk-DROCYKAR.js +1 -0
  55. package/dist/chunk-DV6GWBUJ.js +2 -0
  56. package/dist/chunk-DZYYLV2O.js +1 -0
  57. package/dist/chunk-E4JMCA5X.js +2 -0
  58. package/dist/chunk-ERNVFCGN.js +59 -0
  59. package/dist/chunk-ESI4BSBF.js +1 -0
  60. package/dist/chunk-F44ZLDZS.js +4 -0
  61. package/dist/chunk-FCJWLEKT.mjs +1 -0
  62. package/dist/chunk-FDEDN2RC.mjs +0 -0
  63. package/dist/chunk-FRYMBAHP.js +3 -0
  64. package/dist/chunk-FWTP7BN7.mjs +4 -0
  65. package/dist/chunk-G3YJ5RKC.mjs +1 -0
  66. package/dist/chunk-GGPKPXON.js +1 -0
  67. package/dist/chunk-HKVAW3RE.js +1 -0
  68. package/dist/chunk-HQPWFUP5.js +2 -0
  69. package/dist/chunk-I6PMX4BO.js +1 -0
  70. package/dist/chunk-ILJUDEZ5.mjs +1 -0
  71. package/dist/chunk-IMKU4O3P.js +1 -0
  72. package/dist/chunk-IP2VXNWG.js +1 -0
  73. package/dist/chunk-J4J2Y6EU.js +10 -0
  74. package/dist/chunk-J7NADDC4.mjs +1 -0
  75. package/dist/chunk-JFZIXFRC.js +1 -0
  76. package/dist/chunk-JHZ3HLSR.mjs +1 -0
  77. package/dist/chunk-JY5EFI4D.js +1 -0
  78. package/dist/chunk-JZESIPVC.mjs +3 -0
  79. package/dist/chunk-K7GVLZS6.mjs +1 -0
  80. package/dist/chunk-KESNGXGO.js +1 -0
  81. package/dist/chunk-KQTB5Y7P.mjs +1 -0
  82. package/dist/chunk-L2U3TTAD.js +9 -0
  83. package/dist/chunk-LBKMYD3M.mjs +1 -0
  84. package/dist/chunk-LCICADWM.js +2 -0
  85. package/dist/chunk-LE67NTCN.mjs +1 -0
  86. package/dist/chunk-LTHT4A4S.js +1 -0
  87. package/dist/chunk-MCFHOMA2.js +2 -0
  88. package/dist/chunk-MCX4GVRX.mjs +1 -0
  89. package/dist/chunk-MJ5FQX7Q.js +1 -0
  90. package/dist/chunk-MJ6XZFVD.mjs +1 -0
  91. package/dist/chunk-MNOHUTKE.js +15 -0
  92. package/dist/chunk-MOKKS75W.mjs +3 -0
  93. package/dist/chunk-MP4QSEO2.mjs +1 -0
  94. package/dist/chunk-MVZOTKNL.mjs +1 -0
  95. package/dist/chunk-MZ7LW5CH.js +1 -0
  96. package/dist/chunk-MZOVDLYL.js +1 -0
  97. package/dist/chunk-N3Y5BUKV.js +1 -0
  98. package/dist/chunk-NBLJPT54.mjs +1 -0
  99. package/dist/chunk-NDDJ67FQ.mjs +1 -0
  100. package/dist/chunk-NMUHXIF5.js +1 -0
  101. package/dist/chunk-NXLJVVVE.js +1 -0
  102. package/dist/chunk-OBMN4VSM.mjs +1 -0
  103. package/dist/chunk-OCAX2KJQ.js +4 -0
  104. package/dist/chunk-OEXVWIHW.mjs +2 -0
  105. package/dist/chunk-OZMNIX6U.mjs +1 -0
  106. package/dist/chunk-PRRM64JO.mjs +1 -0
  107. package/dist/chunk-PXE2OWEA.mjs +1 -0
  108. package/dist/chunk-Q4CKLXWA.js +1 -0
  109. package/dist/chunk-Q5QOBZWT.mjs +1 -0
  110. package/dist/chunk-QJJQ53V6.mjs +1 -0
  111. package/dist/chunk-QLPQVR5W.mjs +1 -0
  112. package/dist/chunk-QLX4HX3I.mjs +59 -0
  113. package/dist/chunk-QPFJJPIC.mjs +1 -0
  114. package/dist/chunk-QYUPLKLP.mjs +1 -0
  115. package/dist/chunk-RFC2SXZ6.mjs +4 -0
  116. package/dist/chunk-RNOXNNSD.mjs +0 -0
  117. package/dist/chunk-RPIQG46O.mjs +1 -0
  118. package/dist/chunk-RQN4C636.js +1 -0
  119. package/dist/chunk-SHJBS42Y.js +1 -0
  120. package/dist/chunk-SORYYVJ7.js +1 -0
  121. package/dist/chunk-SWC6T7YQ.js +1 -0
  122. package/dist/chunk-TE2AF7FM.js +1 -0
  123. package/dist/chunk-TE2VQJZG.js +1 -0
  124. package/dist/chunk-TUIEV7Q7.js +1 -0
  125. package/dist/chunk-U4UCHBZ7.js +1 -0
  126. package/dist/chunk-U74VPTIU.js +1 -0
  127. package/dist/chunk-UCJGOQ4J.mjs +1 -0
  128. package/dist/chunk-UQ6WNWXX.js +1 -0
  129. package/dist/chunk-VHUVPHPI.mjs +1 -0
  130. package/dist/chunk-VQWZHPWI.mjs +1 -0
  131. package/dist/chunk-VW22RZ6C.mjs +1 -0
  132. package/dist/chunk-WLHNIXWC.mjs +2 -0
  133. package/dist/chunk-WLKRUBY4.js +1 -0
  134. package/dist/chunk-WTFLNYAT.mjs +1 -0
  135. package/dist/chunk-XNDGWWDT.js +1 -0
  136. package/dist/chunk-XXU7YQVV.js +1 -0
  137. package/dist/chunk-Y74ANBPV.js +1 -0
  138. package/dist/chunk-YMZ3F2FZ.mjs +1 -0
  139. package/dist/chunk-YTDWMXNS.js +1 -0
  140. package/dist/chunk-YUZQTRI2.js +1 -0
  141. package/dist/chunk-ZX26QZJ5.mjs +1 -0
  142. package/dist/chunk-ZY7EMTZ3.mjs +1 -0
  143. package/dist/colorResolver-BZ_yScf4.d.ts +390 -0
  144. package/dist/colorResolver-C6DtsoFI.d.mts +390 -0
  145. package/dist/colors-C3vA7HUU.d.mts +70 -0
  146. package/dist/colors-C3vA7HUU.d.ts +70 -0
  147. package/dist/content-5Mrz6w_b.d.mts +1360 -0
  148. package/dist/content-CmqAwdFL.d.ts +1360 -0
  149. package/dist/core-plugins.d.mts +63 -0
  150. package/dist/core-plugins.d.ts +63 -0
  151. package/dist/core-plugins.js +1 -0
  152. package/dist/core-plugins.mjs +1 -0
  153. package/dist/core.d.mts +398 -0
  154. package/dist/core.d.ts +398 -0
  155. package/dist/core.js +1 -0
  156. package/dist/core.mjs +1 -0
  157. package/dist/documentSerializer-BRaaXIHm.d.ts +36 -0
  158. package/dist/documentSerializer-DgO3A9av.d.mts +36 -0
  159. package/dist/docx/index.d.mts +1123 -0
  160. package/dist/docx/index.d.ts +1123 -0
  161. package/dist/docx/index.js +1 -0
  162. package/dist/docx/index.mjs +1 -0
  163. package/dist/docx/parser.d.mts +108 -0
  164. package/dist/docx/parser.d.ts +108 -0
  165. package/dist/docx/parser.js +1 -0
  166. package/dist/docx/parser.mjs +1 -0
  167. package/dist/docx/rezip.d.mts +312 -0
  168. package/dist/docx/rezip.d.ts +312 -0
  169. package/dist/docx/rezip.js +1 -0
  170. package/dist/docx/rezip.mjs +1 -0
  171. package/dist/docx/serializer/index.d.mts +125 -0
  172. package/dist/docx/serializer/index.d.ts +125 -0
  173. package/dist/docx/serializer/index.js +1 -0
  174. package/dist/docx/serializer/index.mjs +1 -0
  175. package/dist/docx/wrapTypes.d.mts +19 -0
  176. package/dist/docx/wrapTypes.d.ts +19 -0
  177. package/dist/docx/wrapTypes.js +1 -0
  178. package/dist/docx/wrapTypes.mjs +1 -0
  179. package/dist/docxInput-DTbCa48g.d.mts +21 -0
  180. package/dist/docxInput-DTbCa48g.d.ts +21 -0
  181. package/dist/executor-DZAMMQ35.js +1 -0
  182. package/dist/executor-ZCJRLT3Z.mjs +1 -0
  183. package/dist/findParagraphByParaId-Maw_8M5D.d.mts +28 -0
  184. package/dist/findParagraphByParaId-Maw_8M5D.d.ts +28 -0
  185. package/dist/fontLoader-8b4X-AIh.d.mts +283 -0
  186. package/dist/fontLoader-CK2QLq68.d.ts +283 -0
  187. package/dist/footnotes-lCH_P3N3.d.mts +78 -0
  188. package/dist/footnotes-skVvEHvZ.d.ts +78 -0
  189. package/dist/formatting-BH4hcZiq.d.mts +410 -0
  190. package/dist/formatting-_OXU8gLB.d.ts +410 -0
  191. package/dist/headerFooterLayout-72Vz7yp3.d.mts +292 -0
  192. package/dist/headerFooterLayout-Ca4ESDHF.d.ts +292 -0
  193. package/dist/headless.d.mts +109 -0
  194. package/dist/headless.d.ts +109 -0
  195. package/dist/headless.js +1 -0
  196. package/dist/headless.mjs +1 -0
  197. package/dist/layout-bridge/clickToPositionDom.d.mts +56 -0
  198. package/dist/layout-bridge/clickToPositionDom.d.ts +56 -0
  199. package/dist/layout-bridge/clickToPositionDom.js +1 -0
  200. package/dist/layout-bridge/clickToPositionDom.mjs +1 -0
  201. package/dist/layout-bridge/index.d.mts +462 -0
  202. package/dist/layout-bridge/index.d.ts +462 -0
  203. package/dist/layout-bridge/index.js +1 -0
  204. package/dist/layout-bridge/index.mjs +1 -0
  205. package/dist/layout-bridge/measuring/index.d.mts +377 -0
  206. package/dist/layout-bridge/measuring/index.d.ts +377 -0
  207. package/dist/layout-bridge/measuring/index.js +1 -0
  208. package/dist/layout-bridge/measuring/index.mjs +1 -0
  209. package/dist/layout-bridge/tableInsertHover.d.mts +45 -0
  210. package/dist/layout-bridge/tableInsertHover.d.ts +45 -0
  211. package/dist/layout-bridge/tableInsertHover.js +1 -0
  212. package/dist/layout-bridge/tableInsertHover.mjs +1 -0
  213. package/dist/layout-bridge/toFlowBlocks.d.mts +130 -0
  214. package/dist/layout-bridge/toFlowBlocks.d.ts +130 -0
  215. package/dist/layout-bridge/toFlowBlocks.js +1 -0
  216. package/dist/layout-bridge/toFlowBlocks.mjs +1 -0
  217. package/dist/layout-engine/index.d.mts +352 -0
  218. package/dist/layout-engine/index.d.ts +352 -0
  219. package/dist/layout-engine/index.js +1 -0
  220. package/dist/layout-engine/index.mjs +1 -0
  221. package/dist/layout-engine/types.d.mts +943 -0
  222. package/dist/layout-engine/types.d.ts +943 -0
  223. package/dist/layout-engine/types.js +1 -0
  224. package/dist/layout-engine/types.mjs +1 -0
  225. package/dist/layout-painter/index.d.mts +22 -0
  226. package/dist/layout-painter/index.d.ts +22 -0
  227. package/dist/layout-painter/index.js +1 -0
  228. package/dist/layout-painter/index.mjs +1 -0
  229. package/dist/layout-painter/renderPage.d.mts +680 -0
  230. package/dist/layout-painter/renderPage.d.ts +680 -0
  231. package/dist/layout-painter/renderPage.js +1 -0
  232. package/dist/layout-painter/renderPage.mjs +1 -0
  233. package/dist/managers/AutoSaveManager.d.mts +95 -0
  234. package/dist/managers/AutoSaveManager.d.ts +95 -0
  235. package/dist/managers/AutoSaveManager.js +1 -0
  236. package/dist/managers/AutoSaveManager.mjs +1 -0
  237. package/dist/managers/TableSelectionManager.d.mts +94 -0
  238. package/dist/managers/TableSelectionManager.d.ts +94 -0
  239. package/dist/managers/TableSelectionManager.js +1 -0
  240. package/dist/managers/TableSelectionManager.mjs +1 -0
  241. package/dist/managers/types.d.mts +121 -0
  242. package/dist/managers/types.d.ts +121 -0
  243. package/dist/managers/types.js +1 -0
  244. package/dist/managers/types.mjs +0 -0
  245. package/dist/marks-BY573yZn.d.mts +56 -0
  246. package/dist/marks-CjC9tF5k.d.ts +56 -0
  247. package/dist/mcp-cli.mjs +138 -0
  248. package/dist/mcp.d.mts +183 -0
  249. package/dist/mcp.d.ts +183 -0
  250. package/dist/mcp.js +16 -0
  251. package/dist/mcp.mjs +16 -0
  252. package/dist/nodes-7753Bgi_.d.mts +320 -0
  253. package/dist/nodes-CC_nwkT_.d.ts +320 -0
  254. package/dist/plugin-api/RenderedDomContext.d.mts +74 -0
  255. package/dist/plugin-api/RenderedDomContext.d.ts +74 -0
  256. package/dist/plugin-api/RenderedDomContext.js +1 -0
  257. package/dist/plugin-api/RenderedDomContext.mjs +1 -0
  258. package/dist/plugin-api/index.d.mts +15 -0
  259. package/dist/plugin-api/index.d.ts +15 -0
  260. package/dist/plugin-api/index.js +1 -0
  261. package/dist/plugin-api/index.mjs +0 -0
  262. package/dist/plugin-api/resolveItemPositions.d.mts +54 -0
  263. package/dist/plugin-api/resolveItemPositions.d.ts +54 -0
  264. package/dist/plugin-api/resolveItemPositions.js +1 -0
  265. package/dist/plugin-api/resolveItemPositions.mjs +1 -0
  266. package/dist/plugin-api/types.d.mts +190 -0
  267. package/dist/plugin-api/types.d.ts +190 -0
  268. package/dist/plugin-api/types.js +1 -0
  269. package/dist/plugin-api/types.mjs +0 -0
  270. package/dist/processTemplate-GPFDLQMX.mjs +1 -0
  271. package/dist/processTemplate-HH2E3HBO.js +1 -0
  272. package/dist/prosemirror/commands/formatting.d.mts +100 -0
  273. package/dist/prosemirror/commands/formatting.d.ts +100 -0
  274. package/dist/prosemirror/commands/formatting.js +1 -0
  275. package/dist/prosemirror/commands/formatting.mjs +1 -0
  276. package/dist/prosemirror/commands/index.d.mts +188 -0
  277. package/dist/prosemirror/commands/index.d.ts +188 -0
  278. package/dist/prosemirror/commands/index.js +1 -0
  279. package/dist/prosemirror/commands/index.mjs +1 -0
  280. package/dist/prosemirror/commands/pageBreak.d.mts +20 -0
  281. package/dist/prosemirror/commands/pageBreak.d.ts +20 -0
  282. package/dist/prosemirror/commands/pageBreak.js +1 -0
  283. package/dist/prosemirror/commands/pageBreak.mjs +1 -0
  284. package/dist/prosemirror/commands/paragraph.d.mts +70 -0
  285. package/dist/prosemirror/commands/paragraph.d.ts +70 -0
  286. package/dist/prosemirror/commands/paragraph.js +1 -0
  287. package/dist/prosemirror/commands/paragraph.mjs +1 -0
  288. package/dist/prosemirror/conversion/fromProseDoc.d.mts +65 -0
  289. package/dist/prosemirror/conversion/fromProseDoc.d.ts +65 -0
  290. package/dist/prosemirror/conversion/fromProseDoc.js +1 -0
  291. package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -0
  292. package/dist/prosemirror/conversion/index.d.mts +85 -0
  293. package/dist/prosemirror/conversion/index.d.ts +85 -0
  294. package/dist/prosemirror/conversion/index.js +1 -0
  295. package/dist/prosemirror/conversion/index.mjs +1 -0
  296. package/dist/prosemirror/editor.css +823 -0
  297. package/dist/prosemirror/extensions/index.d.mts +79 -0
  298. package/dist/prosemirror/extensions/index.d.ts +79 -0
  299. package/dist/prosemirror/extensions/index.js +1 -0
  300. package/dist/prosemirror/extensions/index.mjs +1 -0
  301. package/dist/prosemirror/extensions/nodes/TableExtension.d.mts +30 -0
  302. package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +30 -0
  303. package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -0
  304. package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -0
  305. package/dist/prosemirror/index.d.mts +70 -0
  306. package/dist/prosemirror/index.d.ts +70 -0
  307. package/dist/prosemirror/index.js +1 -0
  308. package/dist/prosemirror/index.mjs +1 -0
  309. package/dist/prosemirror/plugins/index.d.mts +154 -0
  310. package/dist/prosemirror/plugins/index.d.ts +154 -0
  311. package/dist/prosemirror/plugins/index.js +1 -0
  312. package/dist/prosemirror/plugins/index.mjs +1 -0
  313. package/dist/prosemirror/plugins/selectionTracker.d.mts +78 -0
  314. package/dist/prosemirror/plugins/selectionTracker.d.ts +78 -0
  315. package/dist/prosemirror/plugins/selectionTracker.js +1 -0
  316. package/dist/prosemirror/plugins/selectionTracker.mjs +1 -0
  317. package/dist/prosemirror/schema/index.d.mts +29 -0
  318. package/dist/prosemirror/schema/index.d.ts +29 -0
  319. package/dist/prosemirror/schema/index.js +1 -0
  320. package/dist/prosemirror/schema/index.mjs +1 -0
  321. package/dist/prosemirror/styles/index.d.mts +124 -0
  322. package/dist/prosemirror/styles/index.d.ts +124 -0
  323. package/dist/prosemirror/styles/index.js +1 -0
  324. package/dist/prosemirror/styles/index.mjs +1 -0
  325. package/dist/prosemirror/template/prosemirror-plugin.d.mts +66 -0
  326. package/dist/prosemirror/template/prosemirror-plugin.d.ts +66 -0
  327. package/dist/prosemirror/template/prosemirror-plugin.js +15 -0
  328. package/dist/prosemirror/template/prosemirror-plugin.mjs +15 -0
  329. package/dist/prosemirror/utils/ClickPositionResolver.d.mts +109 -0
  330. package/dist/prosemirror/utils/ClickPositionResolver.d.ts +109 -0
  331. package/dist/prosemirror/utils/ClickPositionResolver.js +1 -0
  332. package/dist/prosemirror/utils/ClickPositionResolver.mjs +1 -0
  333. package/dist/prosemirror/utils/LayoutSelectionGate.d.mts +81 -0
  334. package/dist/prosemirror/utils/LayoutSelectionGate.d.ts +81 -0
  335. package/dist/prosemirror/utils/LayoutSelectionGate.js +1 -0
  336. package/dist/prosemirror/utils/LayoutSelectionGate.mjs +1 -0
  337. package/dist/prosemirror/utils/PointerEventHandler.d.mts +94 -0
  338. package/dist/prosemirror/utils/PointerEventHandler.d.ts +94 -0
  339. package/dist/prosemirror/utils/PointerEventHandler.js +1 -0
  340. package/dist/prosemirror/utils/PointerEventHandler.mjs +1 -0
  341. package/dist/prosemirror/utils/extractTrackedChanges.d.mts +85 -0
  342. package/dist/prosemirror/utils/extractTrackedChanges.d.ts +85 -0
  343. package/dist/prosemirror/utils/extractTrackedChanges.js +1 -0
  344. package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -0
  345. package/dist/prosemirror/utils/visualLineNavigation.d.mts +45 -0
  346. package/dist/prosemirror/utils/visualLineNavigation.d.ts +45 -0
  347. package/dist/prosemirror/utils/visualLineNavigation.js +1 -0
  348. package/dist/prosemirror/utils/visualLineNavigation.mjs +1 -0
  349. package/dist/registry-Cpyybgij.d.mts +165 -0
  350. package/dist/registry-E5pahPKL.d.ts +165 -0
  351. package/dist/selectionContext-BPAqgNgk.d.ts +570 -0
  352. package/dist/selectionContext-CoZat7QZ.d.mts +570 -0
  353. package/dist/selectiveSave-CWaPEv0B.d.ts +31 -0
  354. package/dist/selectiveSave-jinP_4xa.d.mts +31 -0
  355. package/dist/selectiveXmlPatch-ypkxlTD_.d.mts +23 -0
  356. package/dist/selectiveXmlPatch-ypkxlTD_.d.ts +23 -0
  357. package/dist/styles-BBv7doYK.d.ts +233 -0
  358. package/dist/styles-EI2lxeEN.d.mts +233 -0
  359. package/dist/table-P8esKWAc.d.ts +82 -0
  360. package/dist/table-_t_W8oQf.d.mts +82 -0
  361. package/dist/types/agentApi.d.mts +467 -0
  362. package/dist/types/agentApi.d.ts +467 -0
  363. package/dist/types/agentApi.js +1 -0
  364. package/dist/types/agentApi.mjs +1 -0
  365. package/dist/types/content.d.mts +18 -0
  366. package/dist/types/content.d.ts +18 -0
  367. package/dist/types/content.js +1 -0
  368. package/dist/types/content.mjs +0 -0
  369. package/dist/types/document.d.mts +123 -0
  370. package/dist/types/document.d.ts +123 -0
  371. package/dist/types/document.js +1 -0
  372. package/dist/types/document.mjs +0 -0
  373. package/dist/types-DXG7vqe9.d.ts +311 -0
  374. package/dist/types-RchZmPFN.d.mts +137 -0
  375. package/dist/types-RchZmPFN.d.ts +137 -0
  376. package/dist/types-dYdjUZMo.d.mts +311 -0
  377. package/dist/utils/cardStyles.d.mts +31 -0
  378. package/dist/utils/cardStyles.d.ts +31 -0
  379. package/dist/utils/cardStyles.js +1 -0
  380. package/dist/utils/cardStyles.mjs +1 -0
  381. package/dist/utils/comments.d.mts +121 -0
  382. package/dist/utils/comments.d.ts +121 -0
  383. package/dist/utils/comments.js +1 -0
  384. package/dist/utils/comments.mjs +1 -0
  385. package/dist/utils/findReplace.d.mts +114 -0
  386. package/dist/utils/findReplace.d.ts +114 -0
  387. package/dist/utils/findReplace.js +2 -0
  388. package/dist/utils/findReplace.mjs +2 -0
  389. package/dist/utils/findVerticalScrollParent.d.mts +25 -0
  390. package/dist/utils/findVerticalScrollParent.d.ts +25 -0
  391. package/dist/utils/findVerticalScrollParent.js +1 -0
  392. package/dist/utils/findVerticalScrollParent.mjs +1 -0
  393. package/dist/utils/fontOptions.d.mts +21 -0
  394. package/dist/utils/fontOptions.d.ts +21 -0
  395. package/dist/utils/fontOptions.js +1 -0
  396. package/dist/utils/fontOptions.mjs +1 -0
  397. package/dist/utils/headingCollector.d.mts +32 -0
  398. package/dist/utils/headingCollector.d.ts +32 -0
  399. package/dist/utils/headingCollector.js +1 -0
  400. package/dist/utils/headingCollector.mjs +1 -0
  401. package/dist/utils/highlightColors.d.mts +14 -0
  402. package/dist/utils/highlightColors.d.ts +14 -0
  403. package/dist/utils/highlightColors.js +1 -0
  404. package/dist/utils/highlightColors.mjs +1 -0
  405. package/dist/utils/index.d.mts +710 -0
  406. package/dist/utils/index.d.ts +710 -0
  407. package/dist/utils/index.js +82 -0
  408. package/dist/utils/index.mjs +82 -0
  409. package/dist/utils/listState.d.mts +27 -0
  410. package/dist/utils/listState.d.ts +27 -0
  411. package/dist/utils/listState.js +1 -0
  412. package/dist/utils/listState.mjs +1 -0
  413. package/dist/utils/reportIssue.d.mts +23 -0
  414. package/dist/utils/reportIssue.d.ts +23 -0
  415. package/dist/utils/reportIssue.js +2 -0
  416. package/dist/utils/reportIssue.mjs +2 -0
  417. package/dist/utils/sidebarConstants.d.mts +10 -0
  418. package/dist/utils/sidebarConstants.d.ts +10 -0
  419. package/dist/utils/sidebarConstants.js +1 -0
  420. package/dist/utils/sidebarConstants.mjs +1 -0
  421. package/dist/utils/textSelection.d.mts +92 -0
  422. package/dist/utils/textSelection.d.ts +92 -0
  423. package/dist/utils/textSelection.js +1 -0
  424. package/dist/utils/textSelection.mjs +1 -0
  425. package/dist/utils/units.d.mts +91 -0
  426. package/dist/utils/units.d.ts +91 -0
  427. package/dist/utils/units.js +1 -0
  428. package/dist/utils/units.mjs +1 -0
  429. package/dist/variableDetector-DF3-nxUC.d.mts +115 -0
  430. package/dist/variableDetector-sBkgVh3f.d.ts +115 -0
  431. package/package.json +565 -0
@@ -0,0 +1,233 @@
1
+ import { T as TextFormatting, P as ParagraphFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-_OXU8gLB.js';
2
+
3
+ /**
4
+ * Styles, Theme, Font Table, Relationships & Media Types
5
+ *
6
+ * Types for document-level definitions that don't form the content tree.
7
+ */
8
+
9
+ /**
10
+ * Style type
11
+ */
12
+ type StyleType = 'paragraph' | 'character' | 'numbering' | 'table';
13
+ /**
14
+ * Style definition from `styles.xml` — a named, reusable bundle of
15
+ * paragraph and/or character formatting. Word's "Heading 1", "Normal",
16
+ * "Title", and "List Bullet" are styles; user-defined styles look the
17
+ * same. `basedOn` chains styles for inheritance; `link` pairs a paragraph
18
+ * style with a matching character style.
19
+ *
20
+ * See ECMA-376 §17.7.4.
21
+ */
22
+ interface Style {
23
+ /** Style ID */
24
+ styleId: string;
25
+ /** Style type */
26
+ type: StyleType;
27
+ /** Display name */
28
+ name?: string;
29
+ /** Based on style ID */
30
+ basedOn?: string;
31
+ /** Next style after Enter (for paragraph styles) */
32
+ next?: string;
33
+ /** Linked style (paragraph/character pair) */
34
+ link?: string;
35
+ /** UI sort priority */
36
+ uiPriority?: number;
37
+ /** Hidden from UI */
38
+ hidden?: boolean;
39
+ /** Semi-hidden from UI */
40
+ semiHidden?: boolean;
41
+ /** Unhide when used */
42
+ unhideWhenUsed?: boolean;
43
+ /** Quick format in gallery */
44
+ qFormat?: boolean;
45
+ /** Is default style */
46
+ default?: boolean;
47
+ /** Personal style (custom) */
48
+ personal?: boolean;
49
+ /** Paragraph properties (for paragraph/table styles) */
50
+ pPr?: ParagraphFormatting;
51
+ /** Run properties */
52
+ rPr?: TextFormatting;
53
+ /** Table properties (for table styles) */
54
+ tblPr?: TableFormatting;
55
+ /** Table row properties */
56
+ trPr?: TableRowFormatting;
57
+ /** Table cell properties */
58
+ tcPr?: TableCellFormatting;
59
+ /** Conditional table style parts */
60
+ tblStylePr?: Array<{
61
+ type: 'band1Horz' | 'band1Vert' | 'band2Horz' | 'band2Vert' | 'firstCol' | 'firstRow' | 'lastCol' | 'lastRow' | 'neCell' | 'nwCell' | 'seCell' | 'swCell';
62
+ pPr?: ParagraphFormatting;
63
+ rPr?: TextFormatting;
64
+ tblPr?: TableFormatting;
65
+ trPr?: TableRowFormatting;
66
+ tcPr?: TableCellFormatting;
67
+ }>;
68
+ }
69
+ /**
70
+ * Document defaults (w:docDefaults)
71
+ */
72
+ interface DocDefaults {
73
+ /** Default run properties */
74
+ rPr?: TextFormatting;
75
+ /** Default paragraph properties */
76
+ pPr?: ParagraphFormatting;
77
+ }
78
+ /**
79
+ * Style definitions from styles.xml
80
+ */
81
+ interface StyleDefinitions {
82
+ /** Document defaults */
83
+ docDefaults?: DocDefaults;
84
+ /** Latent styles */
85
+ latentStyles?: {
86
+ defLockedState?: boolean;
87
+ defUIPriority?: number;
88
+ defSemiHidden?: boolean;
89
+ defUnhideWhenUsed?: boolean;
90
+ defQFormat?: boolean;
91
+ count?: number;
92
+ };
93
+ /** Style definitions */
94
+ styles: Style[];
95
+ }
96
+ /**
97
+ * Theme color scheme (a:clrScheme)
98
+ */
99
+ interface ThemeColorScheme {
100
+ /** Dark 1 color (usually black) */
101
+ dk1?: string;
102
+ /** Light 1 color (usually white) */
103
+ lt1?: string;
104
+ /** Dark 2 color */
105
+ dk2?: string;
106
+ /** Light 2 color */
107
+ lt2?: string;
108
+ /** Accent colors 1-6 */
109
+ accent1?: string;
110
+ accent2?: string;
111
+ accent3?: string;
112
+ accent4?: string;
113
+ accent5?: string;
114
+ accent6?: string;
115
+ /** Hyperlink color */
116
+ hlink?: string;
117
+ /** Followed hyperlink color */
118
+ folHlink?: string;
119
+ }
120
+ /**
121
+ * Theme font (with script variants)
122
+ */
123
+ interface ThemeFont {
124
+ /** Latin font */
125
+ latin?: string;
126
+ /** East Asian font */
127
+ ea?: string;
128
+ /** Complex script font */
129
+ cs?: string;
130
+ /** Script-specific fonts */
131
+ fonts?: Record<string, string>;
132
+ }
133
+ /**
134
+ * Theme font scheme (a:fontScheme)
135
+ */
136
+ interface ThemeFontScheme {
137
+ /** Major font (headings) */
138
+ majorFont?: ThemeFont;
139
+ /** Minor font (body text) */
140
+ minorFont?: ThemeFont;
141
+ }
142
+ /**
143
+ * Theme (from theme1.xml)
144
+ */
145
+ interface Theme {
146
+ /** Theme name */
147
+ name?: string;
148
+ /** Color scheme */
149
+ colorScheme?: ThemeColorScheme;
150
+ /** Font scheme */
151
+ fontScheme?: ThemeFontScheme;
152
+ /** Format scheme (fills, lines, effects) - simplified */
153
+ formatScheme?: {
154
+ name?: string;
155
+ };
156
+ }
157
+ /**
158
+ * Font info from fontTable.xml
159
+ */
160
+ interface FontInfo {
161
+ /** Font name */
162
+ name: string;
163
+ /** Alternate names */
164
+ altName?: string;
165
+ /** Panose-1 classification */
166
+ panose1?: string;
167
+ /** Character set */
168
+ charset?: string;
169
+ /** Font family type */
170
+ family?: 'decorative' | 'modern' | 'roman' | 'script' | 'swiss' | 'auto';
171
+ /** Pitch (fixed or variable) */
172
+ pitch?: 'default' | 'fixed' | 'variable';
173
+ /** Signature */
174
+ sig?: {
175
+ usb0?: string;
176
+ usb1?: string;
177
+ usb2?: string;
178
+ usb3?: string;
179
+ csb0?: string;
180
+ csb1?: string;
181
+ };
182
+ /** Embedded font data reference */
183
+ embedRegular?: string;
184
+ embedBold?: string;
185
+ embedItalic?: string;
186
+ embedBoldItalic?: string;
187
+ }
188
+ /**
189
+ * Font table from fontTable.xml
190
+ */
191
+ interface FontTable {
192
+ fonts: FontInfo[];
193
+ }
194
+ /**
195
+ * Relationship type
196
+ */
197
+ type RelationshipType = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData' | string;
198
+ /**
199
+ * Relationship entry
200
+ */
201
+ interface Relationship {
202
+ /** Relationship ID (e.g., "rId1") */
203
+ id: string;
204
+ /** Relationship type URI */
205
+ type: RelationshipType;
206
+ /** Target path or URL */
207
+ target: string;
208
+ /** Target mode */
209
+ targetMode?: 'External' | 'Internal';
210
+ }
211
+ /**
212
+ * Relationship map (keyed by rId)
213
+ */
214
+ type RelationshipMap = Map<string, Relationship>;
215
+ /**
216
+ * Media file from word/media/
217
+ */
218
+ interface MediaFile {
219
+ /** File path in ZIP */
220
+ path: string;
221
+ /** Original filename */
222
+ filename?: string;
223
+ /** MIME type */
224
+ mimeType: string;
225
+ /** Binary data */
226
+ data: ArrayBuffer;
227
+ /** Base64 encoded data for rendering */
228
+ base64?: string;
229
+ /** Data URL for direct use in src attributes */
230
+ dataUrl?: string;
231
+ }
232
+
233
+ export type { DocDefaults as D, FontTable as F, MediaFile as M, Relationship as R, Style as S, Theme as T, StyleDefinitions as a, RelationshipMap as b, FontInfo as c, RelationshipType as d, StyleType as e, ThemeColorScheme as f, ThemeFont as g, ThemeFontScheme as h };
@@ -0,0 +1,233 @@
1
+ import { T as TextFormatting, P as ParagraphFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-BH4hcZiq.mjs';
2
+
3
+ /**
4
+ * Styles, Theme, Font Table, Relationships & Media Types
5
+ *
6
+ * Types for document-level definitions that don't form the content tree.
7
+ */
8
+
9
+ /**
10
+ * Style type
11
+ */
12
+ type StyleType = 'paragraph' | 'character' | 'numbering' | 'table';
13
+ /**
14
+ * Style definition from `styles.xml` — a named, reusable bundle of
15
+ * paragraph and/or character formatting. Word's "Heading 1", "Normal",
16
+ * "Title", and "List Bullet" are styles; user-defined styles look the
17
+ * same. `basedOn` chains styles for inheritance; `link` pairs a paragraph
18
+ * style with a matching character style.
19
+ *
20
+ * See ECMA-376 §17.7.4.
21
+ */
22
+ interface Style {
23
+ /** Style ID */
24
+ styleId: string;
25
+ /** Style type */
26
+ type: StyleType;
27
+ /** Display name */
28
+ name?: string;
29
+ /** Based on style ID */
30
+ basedOn?: string;
31
+ /** Next style after Enter (for paragraph styles) */
32
+ next?: string;
33
+ /** Linked style (paragraph/character pair) */
34
+ link?: string;
35
+ /** UI sort priority */
36
+ uiPriority?: number;
37
+ /** Hidden from UI */
38
+ hidden?: boolean;
39
+ /** Semi-hidden from UI */
40
+ semiHidden?: boolean;
41
+ /** Unhide when used */
42
+ unhideWhenUsed?: boolean;
43
+ /** Quick format in gallery */
44
+ qFormat?: boolean;
45
+ /** Is default style */
46
+ default?: boolean;
47
+ /** Personal style (custom) */
48
+ personal?: boolean;
49
+ /** Paragraph properties (for paragraph/table styles) */
50
+ pPr?: ParagraphFormatting;
51
+ /** Run properties */
52
+ rPr?: TextFormatting;
53
+ /** Table properties (for table styles) */
54
+ tblPr?: TableFormatting;
55
+ /** Table row properties */
56
+ trPr?: TableRowFormatting;
57
+ /** Table cell properties */
58
+ tcPr?: TableCellFormatting;
59
+ /** Conditional table style parts */
60
+ tblStylePr?: Array<{
61
+ type: 'band1Horz' | 'band1Vert' | 'band2Horz' | 'band2Vert' | 'firstCol' | 'firstRow' | 'lastCol' | 'lastRow' | 'neCell' | 'nwCell' | 'seCell' | 'swCell';
62
+ pPr?: ParagraphFormatting;
63
+ rPr?: TextFormatting;
64
+ tblPr?: TableFormatting;
65
+ trPr?: TableRowFormatting;
66
+ tcPr?: TableCellFormatting;
67
+ }>;
68
+ }
69
+ /**
70
+ * Document defaults (w:docDefaults)
71
+ */
72
+ interface DocDefaults {
73
+ /** Default run properties */
74
+ rPr?: TextFormatting;
75
+ /** Default paragraph properties */
76
+ pPr?: ParagraphFormatting;
77
+ }
78
+ /**
79
+ * Style definitions from styles.xml
80
+ */
81
+ interface StyleDefinitions {
82
+ /** Document defaults */
83
+ docDefaults?: DocDefaults;
84
+ /** Latent styles */
85
+ latentStyles?: {
86
+ defLockedState?: boolean;
87
+ defUIPriority?: number;
88
+ defSemiHidden?: boolean;
89
+ defUnhideWhenUsed?: boolean;
90
+ defQFormat?: boolean;
91
+ count?: number;
92
+ };
93
+ /** Style definitions */
94
+ styles: Style[];
95
+ }
96
+ /**
97
+ * Theme color scheme (a:clrScheme)
98
+ */
99
+ interface ThemeColorScheme {
100
+ /** Dark 1 color (usually black) */
101
+ dk1?: string;
102
+ /** Light 1 color (usually white) */
103
+ lt1?: string;
104
+ /** Dark 2 color */
105
+ dk2?: string;
106
+ /** Light 2 color */
107
+ lt2?: string;
108
+ /** Accent colors 1-6 */
109
+ accent1?: string;
110
+ accent2?: string;
111
+ accent3?: string;
112
+ accent4?: string;
113
+ accent5?: string;
114
+ accent6?: string;
115
+ /** Hyperlink color */
116
+ hlink?: string;
117
+ /** Followed hyperlink color */
118
+ folHlink?: string;
119
+ }
120
+ /**
121
+ * Theme font (with script variants)
122
+ */
123
+ interface ThemeFont {
124
+ /** Latin font */
125
+ latin?: string;
126
+ /** East Asian font */
127
+ ea?: string;
128
+ /** Complex script font */
129
+ cs?: string;
130
+ /** Script-specific fonts */
131
+ fonts?: Record<string, string>;
132
+ }
133
+ /**
134
+ * Theme font scheme (a:fontScheme)
135
+ */
136
+ interface ThemeFontScheme {
137
+ /** Major font (headings) */
138
+ majorFont?: ThemeFont;
139
+ /** Minor font (body text) */
140
+ minorFont?: ThemeFont;
141
+ }
142
+ /**
143
+ * Theme (from theme1.xml)
144
+ */
145
+ interface Theme {
146
+ /** Theme name */
147
+ name?: string;
148
+ /** Color scheme */
149
+ colorScheme?: ThemeColorScheme;
150
+ /** Font scheme */
151
+ fontScheme?: ThemeFontScheme;
152
+ /** Format scheme (fills, lines, effects) - simplified */
153
+ formatScheme?: {
154
+ name?: string;
155
+ };
156
+ }
157
+ /**
158
+ * Font info from fontTable.xml
159
+ */
160
+ interface FontInfo {
161
+ /** Font name */
162
+ name: string;
163
+ /** Alternate names */
164
+ altName?: string;
165
+ /** Panose-1 classification */
166
+ panose1?: string;
167
+ /** Character set */
168
+ charset?: string;
169
+ /** Font family type */
170
+ family?: 'decorative' | 'modern' | 'roman' | 'script' | 'swiss' | 'auto';
171
+ /** Pitch (fixed or variable) */
172
+ pitch?: 'default' | 'fixed' | 'variable';
173
+ /** Signature */
174
+ sig?: {
175
+ usb0?: string;
176
+ usb1?: string;
177
+ usb2?: string;
178
+ usb3?: string;
179
+ csb0?: string;
180
+ csb1?: string;
181
+ };
182
+ /** Embedded font data reference */
183
+ embedRegular?: string;
184
+ embedBold?: string;
185
+ embedItalic?: string;
186
+ embedBoldItalic?: string;
187
+ }
188
+ /**
189
+ * Font table from fontTable.xml
190
+ */
191
+ interface FontTable {
192
+ fonts: FontInfo[];
193
+ }
194
+ /**
195
+ * Relationship type
196
+ */
197
+ type RelationshipType = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData' | string;
198
+ /**
199
+ * Relationship entry
200
+ */
201
+ interface Relationship {
202
+ /** Relationship ID (e.g., "rId1") */
203
+ id: string;
204
+ /** Relationship type URI */
205
+ type: RelationshipType;
206
+ /** Target path or URL */
207
+ target: string;
208
+ /** Target mode */
209
+ targetMode?: 'External' | 'Internal';
210
+ }
211
+ /**
212
+ * Relationship map (keyed by rId)
213
+ */
214
+ type RelationshipMap = Map<string, Relationship>;
215
+ /**
216
+ * Media file from word/media/
217
+ */
218
+ interface MediaFile {
219
+ /** File path in ZIP */
220
+ path: string;
221
+ /** Original filename */
222
+ filename?: string;
223
+ /** MIME type */
224
+ mimeType: string;
225
+ /** Binary data */
226
+ data: ArrayBuffer;
227
+ /** Base64 encoded data for rendering */
228
+ base64?: string;
229
+ /** Data URL for direct use in src attributes */
230
+ dataUrl?: string;
231
+ }
232
+
233
+ export type { DocDefaults as D, FontTable as F, MediaFile as M, Relationship as R, Style as S, Theme as T, StyleDefinitions as a, RelationshipMap as b, FontInfo as c, RelationshipType as d, StyleType as e, ThemeColorScheme as f, ThemeFont as g, ThemeFontScheme as h };
@@ -0,0 +1,82 @@
1
+ import { EditorState, Transaction } from 'prosemirror-state';
2
+ import { B as BorderPreset } from './borders-Z9hPno2u.js';
3
+
4
+ declare function insertTable(rows: number, cols: number): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
5
+ declare function addRowAbove(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
6
+ declare function addRowBelow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
7
+ declare function deleteRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
8
+ declare function addColumnLeft(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
9
+ declare function addColumnRight(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
10
+ declare function deleteColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
11
+ declare function deleteTable(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
12
+ declare function selectTable(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
13
+ declare function selectRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
14
+ declare function selectColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
15
+ declare function mergeCells(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
16
+ declare function splitCell(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
17
+
18
+ declare function setCellBorder(side: 'top' | 'bottom' | 'left' | 'right' | 'all', spec: {
19
+ style: string;
20
+ size?: number;
21
+ color?: {
22
+ rgb: string;
23
+ };
24
+ } | null, clearOthers?: boolean): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
25
+ declare function setTableBorders(preset: BorderPreset, borderSpec?: {
26
+ style: string;
27
+ size: number;
28
+ color: {
29
+ rgb: string;
30
+ };
31
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
32
+ declare function removeTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
33
+ declare function setAllTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void, borderSpec?: {
34
+ style: string;
35
+ size: number;
36
+ color: {
37
+ rgb: string;
38
+ };
39
+ }): boolean;
40
+ declare function setOutsideTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void, borderSpec?: {
41
+ style: string;
42
+ size: number;
43
+ color: {
44
+ rgb: string;
45
+ };
46
+ }): boolean;
47
+ declare function setInsideTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void, borderSpec?: {
48
+ style: string;
49
+ size: number;
50
+ color: {
51
+ rgb: string;
52
+ };
53
+ }): boolean;
54
+ declare function setCellVerticalAlign(align: 'top' | 'center' | 'bottom'): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
55
+ declare function setCellMargins(margins: {
56
+ top?: number;
57
+ bottom?: number;
58
+ left?: number;
59
+ right?: number;
60
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
61
+ declare function setCellTextDirection(direction: string | null): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
62
+ declare function toggleNoWrap(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
63
+ declare function setRowHeight(height: number | null, rule?: 'auto' | 'atLeast' | 'exact'): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
64
+ declare function toggleHeaderRow(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
65
+ declare function distributeColumns(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
66
+ declare function autoFitContents(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
67
+ declare function setTableProperties(props: {
68
+ width?: number | null;
69
+ widthType?: string | null;
70
+ justification?: 'left' | 'center' | 'right' | null;
71
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
72
+ declare function applyTableStyle(styleData: {
73
+ styleId: string;
74
+ tableBorders?: Record<string, unknown>;
75
+ conditionals?: Record<string, unknown>;
76
+ look?: Record<string, boolean>;
77
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
78
+ declare function setCellFillColor(color: string | null): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
79
+ declare function setTableBorderColor(color: string): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
80
+ declare function setTableBorderWidth(size: number): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
81
+
82
+ export { setTableBorderWidth as A, setTableBorders as B, setTableProperties as C, splitCell as D, toggleHeaderRow as E, toggleNoWrap as F, addColumnLeft as a, addColumnRight as b, addRowAbove as c, addRowBelow as d, applyTableStyle as e, autoFitContents as f, deleteColumn as g, deleteRow as h, deleteTable as i, distributeColumns as j, insertTable as k, selectRow as l, mergeCells as m, selectTable as n, setAllTableBorders as o, setCellBorder as p, setCellFillColor as q, removeTableBorders as r, selectColumn as s, setCellMargins as t, setCellTextDirection as u, setCellVerticalAlign as v, setInsideTableBorders as w, setOutsideTableBorders as x, setRowHeight as y, setTableBorderColor as z };
@@ -0,0 +1,82 @@
1
+ import { EditorState, Transaction } from 'prosemirror-state';
2
+ import { B as BorderPreset } from './borders-BH_GoYU3.mjs';
3
+
4
+ declare function insertTable(rows: number, cols: number): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
5
+ declare function addRowAbove(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
6
+ declare function addRowBelow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
7
+ declare function deleteRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
8
+ declare function addColumnLeft(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
9
+ declare function addColumnRight(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
10
+ declare function deleteColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
11
+ declare function deleteTable(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
12
+ declare function selectTable(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
13
+ declare function selectRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
14
+ declare function selectColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
15
+ declare function mergeCells(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
16
+ declare function splitCell(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
17
+
18
+ declare function setCellBorder(side: 'top' | 'bottom' | 'left' | 'right' | 'all', spec: {
19
+ style: string;
20
+ size?: number;
21
+ color?: {
22
+ rgb: string;
23
+ };
24
+ } | null, clearOthers?: boolean): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
25
+ declare function setTableBorders(preset: BorderPreset, borderSpec?: {
26
+ style: string;
27
+ size: number;
28
+ color: {
29
+ rgb: string;
30
+ };
31
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
32
+ declare function removeTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
33
+ declare function setAllTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void, borderSpec?: {
34
+ style: string;
35
+ size: number;
36
+ color: {
37
+ rgb: string;
38
+ };
39
+ }): boolean;
40
+ declare function setOutsideTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void, borderSpec?: {
41
+ style: string;
42
+ size: number;
43
+ color: {
44
+ rgb: string;
45
+ };
46
+ }): boolean;
47
+ declare function setInsideTableBorders(state: EditorState, dispatch?: (tr: Transaction) => void, borderSpec?: {
48
+ style: string;
49
+ size: number;
50
+ color: {
51
+ rgb: string;
52
+ };
53
+ }): boolean;
54
+ declare function setCellVerticalAlign(align: 'top' | 'center' | 'bottom'): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
55
+ declare function setCellMargins(margins: {
56
+ top?: number;
57
+ bottom?: number;
58
+ left?: number;
59
+ right?: number;
60
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
61
+ declare function setCellTextDirection(direction: string | null): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
62
+ declare function toggleNoWrap(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
63
+ declare function setRowHeight(height: number | null, rule?: 'auto' | 'atLeast' | 'exact'): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
64
+ declare function toggleHeaderRow(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
65
+ declare function distributeColumns(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
66
+ declare function autoFitContents(): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
67
+ declare function setTableProperties(props: {
68
+ width?: number | null;
69
+ widthType?: string | null;
70
+ justification?: 'left' | 'center' | 'right' | null;
71
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
72
+ declare function applyTableStyle(styleData: {
73
+ styleId: string;
74
+ tableBorders?: Record<string, unknown>;
75
+ conditionals?: Record<string, unknown>;
76
+ look?: Record<string, boolean>;
77
+ }): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
78
+ declare function setCellFillColor(color: string | null): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
79
+ declare function setTableBorderColor(color: string): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
80
+ declare function setTableBorderWidth(size: number): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
81
+
82
+ export { setTableBorderWidth as A, setTableBorders as B, setTableProperties as C, splitCell as D, toggleHeaderRow as E, toggleNoWrap as F, addColumnLeft as a, addColumnRight as b, addRowAbove as c, addRowBelow as d, applyTableStyle as e, autoFitContents as f, deleteColumn as g, deleteRow as h, deleteTable as i, distributeColumns as j, insertTable as k, selectRow as l, mergeCells as m, selectTable as n, setAllTableBorders as o, setCellBorder as p, setCellFillColor as q, removeTableBorders as r, selectColumn as s, setCellMargins as t, setCellTextDirection as u, setCellVerticalAlign as v, setInsideTableBorders as w, setOutsideTableBorders as x, setRowHeight as y, setTableBorderColor as z };