@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.
- package/LICENSE +201 -0
- package/README.md +89 -0
- package/dist/ImageExtension-BN327PNe.d.mts +38 -0
- package/dist/ImageExtension-BlI5afZD.d.ts +38 -0
- package/dist/Subscribable-DOz6Ohoo.d.mts +33 -0
- package/dist/Subscribable-DOz6Ohoo.d.ts +33 -0
- package/dist/agent/index.d.mts +168 -0
- package/dist/agent/index.d.ts +168 -0
- package/dist/agent/index.js +1 -0
- package/dist/agent/index.mjs +1 -0
- package/dist/borders-BH_GoYU3.d.mts +58 -0
- package/dist/borders-Z9hPno2u.d.ts +58 -0
- package/dist/chunk-2HFQ4QTU.js +1 -0
- package/dist/chunk-2KHWHVTA.js +1 -0
- package/dist/chunk-2MSZXH6Q.mjs +2 -0
- package/dist/chunk-3COGZG7O.mjs +1 -0
- package/dist/chunk-3NRMSZX2.mjs +1 -0
- package/dist/chunk-3SXJPJSV.mjs +1 -0
- package/dist/chunk-44FHVKSI.js +1 -0
- package/dist/chunk-4BFNWPKW.js +1 -0
- package/dist/chunk-4G6AJ4ZM.js +1 -0
- package/dist/chunk-4GER4JLW.js +1 -0
- package/dist/chunk-4Q2IP5FW.js +1 -0
- package/dist/chunk-56D223FM.mjs +1 -0
- package/dist/chunk-5VBNOHRE.mjs +1 -0
- package/dist/chunk-67LVRQIR.mjs +1 -0
- package/dist/chunk-6LVPRTB6.js +1 -0
- package/dist/chunk-6NQSIC27.mjs +1 -0
- package/dist/chunk-6Y6LON6Y.mjs +1 -0
- package/dist/chunk-6ZXL3EIP.mjs +2 -0
- package/dist/chunk-7AMYZMCX.js +1 -0
- package/dist/chunk-7E5VBRDL.mjs +1 -0
- package/dist/chunk-7HANRHHL.js +1 -0
- package/dist/chunk-7LRR7RKE.mjs +15 -0
- package/dist/chunk-7RDCZLTU.js +1 -0
- package/dist/chunk-7U4I6BKJ.js +1 -0
- package/dist/chunk-7Z2AGPNQ.mjs +10 -0
- package/dist/chunk-AAPBAMD7.js +1 -0
- package/dist/chunk-AGVFAXVQ.mjs +9 -0
- package/dist/chunk-AMENZY5F.mjs +1 -0
- package/dist/chunk-ARHPXIBJ.mjs +1 -0
- package/dist/chunk-BGY3CB37.mjs +1 -0
- package/dist/chunk-BHBOAP6Z.js +3 -0
- package/dist/chunk-BOOHU5EW.mjs +1 -0
- package/dist/chunk-C2BAPYGJ.js +1 -0
- package/dist/chunk-CGJ6S3AH.mjs +1 -0
- package/dist/chunk-CKKO4JWE.mjs +1 -0
- package/dist/chunk-CTHHUJAB.mjs +2 -0
- package/dist/chunk-CUY2THAO.mjs +1 -0
- package/dist/chunk-CXQDYR2Y.js +1 -0
- package/dist/chunk-D4RPOJC7.js +1 -0
- package/dist/chunk-D6GO7UGD.mjs +1 -0
- package/dist/chunk-DC7S76ZX.js +1 -0
- package/dist/chunk-DROCYKAR.js +1 -0
- package/dist/chunk-DV6GWBUJ.js +2 -0
- package/dist/chunk-DZYYLV2O.js +1 -0
- package/dist/chunk-E4JMCA5X.js +2 -0
- package/dist/chunk-ERNVFCGN.js +59 -0
- package/dist/chunk-ESI4BSBF.js +1 -0
- package/dist/chunk-F44ZLDZS.js +4 -0
- package/dist/chunk-FCJWLEKT.mjs +1 -0
- package/dist/chunk-FDEDN2RC.mjs +0 -0
- package/dist/chunk-FRYMBAHP.js +3 -0
- package/dist/chunk-FWTP7BN7.mjs +4 -0
- package/dist/chunk-G3YJ5RKC.mjs +1 -0
- package/dist/chunk-GGPKPXON.js +1 -0
- package/dist/chunk-HKVAW3RE.js +1 -0
- package/dist/chunk-HQPWFUP5.js +2 -0
- package/dist/chunk-I6PMX4BO.js +1 -0
- package/dist/chunk-ILJUDEZ5.mjs +1 -0
- package/dist/chunk-IMKU4O3P.js +1 -0
- package/dist/chunk-IP2VXNWG.js +1 -0
- package/dist/chunk-J4J2Y6EU.js +10 -0
- package/dist/chunk-J7NADDC4.mjs +1 -0
- package/dist/chunk-JFZIXFRC.js +1 -0
- package/dist/chunk-JHZ3HLSR.mjs +1 -0
- package/dist/chunk-JY5EFI4D.js +1 -0
- package/dist/chunk-JZESIPVC.mjs +3 -0
- package/dist/chunk-K7GVLZS6.mjs +1 -0
- package/dist/chunk-KESNGXGO.js +1 -0
- package/dist/chunk-KQTB5Y7P.mjs +1 -0
- package/dist/chunk-L2U3TTAD.js +9 -0
- package/dist/chunk-LBKMYD3M.mjs +1 -0
- package/dist/chunk-LCICADWM.js +2 -0
- package/dist/chunk-LE67NTCN.mjs +1 -0
- package/dist/chunk-LTHT4A4S.js +1 -0
- package/dist/chunk-MCFHOMA2.js +2 -0
- package/dist/chunk-MCX4GVRX.mjs +1 -0
- package/dist/chunk-MJ5FQX7Q.js +1 -0
- package/dist/chunk-MJ6XZFVD.mjs +1 -0
- package/dist/chunk-MNOHUTKE.js +15 -0
- package/dist/chunk-MOKKS75W.mjs +3 -0
- package/dist/chunk-MP4QSEO2.mjs +1 -0
- package/dist/chunk-MVZOTKNL.mjs +1 -0
- package/dist/chunk-MZ7LW5CH.js +1 -0
- package/dist/chunk-MZOVDLYL.js +1 -0
- package/dist/chunk-N3Y5BUKV.js +1 -0
- package/dist/chunk-NBLJPT54.mjs +1 -0
- package/dist/chunk-NDDJ67FQ.mjs +1 -0
- package/dist/chunk-NMUHXIF5.js +1 -0
- package/dist/chunk-NXLJVVVE.js +1 -0
- package/dist/chunk-OBMN4VSM.mjs +1 -0
- package/dist/chunk-OCAX2KJQ.js +4 -0
- package/dist/chunk-OEXVWIHW.mjs +2 -0
- package/dist/chunk-OZMNIX6U.mjs +1 -0
- package/dist/chunk-PRRM64JO.mjs +1 -0
- package/dist/chunk-PXE2OWEA.mjs +1 -0
- package/dist/chunk-Q4CKLXWA.js +1 -0
- package/dist/chunk-Q5QOBZWT.mjs +1 -0
- package/dist/chunk-QJJQ53V6.mjs +1 -0
- package/dist/chunk-QLPQVR5W.mjs +1 -0
- package/dist/chunk-QLX4HX3I.mjs +59 -0
- package/dist/chunk-QPFJJPIC.mjs +1 -0
- package/dist/chunk-QYUPLKLP.mjs +1 -0
- package/dist/chunk-RFC2SXZ6.mjs +4 -0
- package/dist/chunk-RNOXNNSD.mjs +0 -0
- package/dist/chunk-RPIQG46O.mjs +1 -0
- package/dist/chunk-RQN4C636.js +1 -0
- package/dist/chunk-SHJBS42Y.js +1 -0
- package/dist/chunk-SORYYVJ7.js +1 -0
- package/dist/chunk-SWC6T7YQ.js +1 -0
- package/dist/chunk-TE2AF7FM.js +1 -0
- package/dist/chunk-TE2VQJZG.js +1 -0
- package/dist/chunk-TUIEV7Q7.js +1 -0
- package/dist/chunk-U4UCHBZ7.js +1 -0
- package/dist/chunk-U74VPTIU.js +1 -0
- package/dist/chunk-UCJGOQ4J.mjs +1 -0
- package/dist/chunk-UQ6WNWXX.js +1 -0
- package/dist/chunk-VHUVPHPI.mjs +1 -0
- package/dist/chunk-VQWZHPWI.mjs +1 -0
- package/dist/chunk-VW22RZ6C.mjs +1 -0
- package/dist/chunk-WLHNIXWC.mjs +2 -0
- package/dist/chunk-WLKRUBY4.js +1 -0
- package/dist/chunk-WTFLNYAT.mjs +1 -0
- package/dist/chunk-XNDGWWDT.js +1 -0
- package/dist/chunk-XXU7YQVV.js +1 -0
- package/dist/chunk-Y74ANBPV.js +1 -0
- package/dist/chunk-YMZ3F2FZ.mjs +1 -0
- package/dist/chunk-YTDWMXNS.js +1 -0
- package/dist/chunk-YUZQTRI2.js +1 -0
- package/dist/chunk-ZX26QZJ5.mjs +1 -0
- package/dist/chunk-ZY7EMTZ3.mjs +1 -0
- package/dist/colorResolver-BZ_yScf4.d.ts +390 -0
- package/dist/colorResolver-C6DtsoFI.d.mts +390 -0
- package/dist/colors-C3vA7HUU.d.mts +70 -0
- package/dist/colors-C3vA7HUU.d.ts +70 -0
- package/dist/content-5Mrz6w_b.d.mts +1360 -0
- package/dist/content-CmqAwdFL.d.ts +1360 -0
- package/dist/core-plugins.d.mts +63 -0
- package/dist/core-plugins.d.ts +63 -0
- package/dist/core-plugins.js +1 -0
- package/dist/core-plugins.mjs +1 -0
- package/dist/core.d.mts +398 -0
- package/dist/core.d.ts +398 -0
- package/dist/core.js +1 -0
- package/dist/core.mjs +1 -0
- package/dist/documentSerializer-BRaaXIHm.d.ts +36 -0
- package/dist/documentSerializer-DgO3A9av.d.mts +36 -0
- package/dist/docx/index.d.mts +1123 -0
- package/dist/docx/index.d.ts +1123 -0
- package/dist/docx/index.js +1 -0
- package/dist/docx/index.mjs +1 -0
- package/dist/docx/parser.d.mts +108 -0
- package/dist/docx/parser.d.ts +108 -0
- package/dist/docx/parser.js +1 -0
- package/dist/docx/parser.mjs +1 -0
- package/dist/docx/rezip.d.mts +312 -0
- package/dist/docx/rezip.d.ts +312 -0
- package/dist/docx/rezip.js +1 -0
- package/dist/docx/rezip.mjs +1 -0
- package/dist/docx/serializer/index.d.mts +125 -0
- package/dist/docx/serializer/index.d.ts +125 -0
- package/dist/docx/serializer/index.js +1 -0
- package/dist/docx/serializer/index.mjs +1 -0
- package/dist/docx/wrapTypes.d.mts +19 -0
- package/dist/docx/wrapTypes.d.ts +19 -0
- package/dist/docx/wrapTypes.js +1 -0
- package/dist/docx/wrapTypes.mjs +1 -0
- package/dist/docxInput-DTbCa48g.d.mts +21 -0
- package/dist/docxInput-DTbCa48g.d.ts +21 -0
- package/dist/executor-DZAMMQ35.js +1 -0
- package/dist/executor-ZCJRLT3Z.mjs +1 -0
- package/dist/findParagraphByParaId-Maw_8M5D.d.mts +28 -0
- package/dist/findParagraphByParaId-Maw_8M5D.d.ts +28 -0
- package/dist/fontLoader-8b4X-AIh.d.mts +283 -0
- package/dist/fontLoader-CK2QLq68.d.ts +283 -0
- package/dist/footnotes-lCH_P3N3.d.mts +78 -0
- package/dist/footnotes-skVvEHvZ.d.ts +78 -0
- package/dist/formatting-BH4hcZiq.d.mts +410 -0
- package/dist/formatting-_OXU8gLB.d.ts +410 -0
- package/dist/headerFooterLayout-72Vz7yp3.d.mts +292 -0
- package/dist/headerFooterLayout-Ca4ESDHF.d.ts +292 -0
- package/dist/headless.d.mts +109 -0
- package/dist/headless.d.ts +109 -0
- package/dist/headless.js +1 -0
- package/dist/headless.mjs +1 -0
- package/dist/layout-bridge/clickToPositionDom.d.mts +56 -0
- package/dist/layout-bridge/clickToPositionDom.d.ts +56 -0
- package/dist/layout-bridge/clickToPositionDom.js +1 -0
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -0
- package/dist/layout-bridge/index.d.mts +462 -0
- package/dist/layout-bridge/index.d.ts +462 -0
- package/dist/layout-bridge/index.js +1 -0
- package/dist/layout-bridge/index.mjs +1 -0
- package/dist/layout-bridge/measuring/index.d.mts +377 -0
- package/dist/layout-bridge/measuring/index.d.ts +377 -0
- package/dist/layout-bridge/measuring/index.js +1 -0
- package/dist/layout-bridge/measuring/index.mjs +1 -0
- package/dist/layout-bridge/tableInsertHover.d.mts +45 -0
- package/dist/layout-bridge/tableInsertHover.d.ts +45 -0
- package/dist/layout-bridge/tableInsertHover.js +1 -0
- package/dist/layout-bridge/tableInsertHover.mjs +1 -0
- package/dist/layout-bridge/toFlowBlocks.d.mts +130 -0
- package/dist/layout-bridge/toFlowBlocks.d.ts +130 -0
- package/dist/layout-bridge/toFlowBlocks.js +1 -0
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -0
- package/dist/layout-engine/index.d.mts +352 -0
- package/dist/layout-engine/index.d.ts +352 -0
- package/dist/layout-engine/index.js +1 -0
- package/dist/layout-engine/index.mjs +1 -0
- package/dist/layout-engine/types.d.mts +943 -0
- package/dist/layout-engine/types.d.ts +943 -0
- package/dist/layout-engine/types.js +1 -0
- package/dist/layout-engine/types.mjs +1 -0
- package/dist/layout-painter/index.d.mts +22 -0
- package/dist/layout-painter/index.d.ts +22 -0
- package/dist/layout-painter/index.js +1 -0
- package/dist/layout-painter/index.mjs +1 -0
- package/dist/layout-painter/renderPage.d.mts +680 -0
- package/dist/layout-painter/renderPage.d.ts +680 -0
- package/dist/layout-painter/renderPage.js +1 -0
- package/dist/layout-painter/renderPage.mjs +1 -0
- package/dist/managers/AutoSaveManager.d.mts +95 -0
- package/dist/managers/AutoSaveManager.d.ts +95 -0
- package/dist/managers/AutoSaveManager.js +1 -0
- package/dist/managers/AutoSaveManager.mjs +1 -0
- package/dist/managers/TableSelectionManager.d.mts +94 -0
- package/dist/managers/TableSelectionManager.d.ts +94 -0
- package/dist/managers/TableSelectionManager.js +1 -0
- package/dist/managers/TableSelectionManager.mjs +1 -0
- package/dist/managers/types.d.mts +121 -0
- package/dist/managers/types.d.ts +121 -0
- package/dist/managers/types.js +1 -0
- package/dist/managers/types.mjs +0 -0
- package/dist/marks-BY573yZn.d.mts +56 -0
- package/dist/marks-CjC9tF5k.d.ts +56 -0
- package/dist/mcp-cli.mjs +138 -0
- package/dist/mcp.d.mts +183 -0
- package/dist/mcp.d.ts +183 -0
- package/dist/mcp.js +16 -0
- package/dist/mcp.mjs +16 -0
- package/dist/nodes-7753Bgi_.d.mts +320 -0
- package/dist/nodes-CC_nwkT_.d.ts +320 -0
- package/dist/plugin-api/RenderedDomContext.d.mts +74 -0
- package/dist/plugin-api/RenderedDomContext.d.ts +74 -0
- package/dist/plugin-api/RenderedDomContext.js +1 -0
- package/dist/plugin-api/RenderedDomContext.mjs +1 -0
- package/dist/plugin-api/index.d.mts +15 -0
- package/dist/plugin-api/index.d.ts +15 -0
- package/dist/plugin-api/index.js +1 -0
- package/dist/plugin-api/index.mjs +0 -0
- package/dist/plugin-api/resolveItemPositions.d.mts +54 -0
- package/dist/plugin-api/resolveItemPositions.d.ts +54 -0
- package/dist/plugin-api/resolveItemPositions.js +1 -0
- package/dist/plugin-api/resolveItemPositions.mjs +1 -0
- package/dist/plugin-api/types.d.mts +190 -0
- package/dist/plugin-api/types.d.ts +190 -0
- package/dist/plugin-api/types.js +1 -0
- package/dist/plugin-api/types.mjs +0 -0
- package/dist/processTemplate-GPFDLQMX.mjs +1 -0
- package/dist/processTemplate-HH2E3HBO.js +1 -0
- package/dist/prosemirror/commands/formatting.d.mts +100 -0
- package/dist/prosemirror/commands/formatting.d.ts +100 -0
- package/dist/prosemirror/commands/formatting.js +1 -0
- package/dist/prosemirror/commands/formatting.mjs +1 -0
- package/dist/prosemirror/commands/index.d.mts +188 -0
- package/dist/prosemirror/commands/index.d.ts +188 -0
- package/dist/prosemirror/commands/index.js +1 -0
- package/dist/prosemirror/commands/index.mjs +1 -0
- package/dist/prosemirror/commands/pageBreak.d.mts +20 -0
- package/dist/prosemirror/commands/pageBreak.d.ts +20 -0
- package/dist/prosemirror/commands/pageBreak.js +1 -0
- package/dist/prosemirror/commands/pageBreak.mjs +1 -0
- package/dist/prosemirror/commands/paragraph.d.mts +70 -0
- package/dist/prosemirror/commands/paragraph.d.ts +70 -0
- package/dist/prosemirror/commands/paragraph.js +1 -0
- package/dist/prosemirror/commands/paragraph.mjs +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +65 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +65 -0
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -0
- package/dist/prosemirror/conversion/index.d.mts +85 -0
- package/dist/prosemirror/conversion/index.d.ts +85 -0
- package/dist/prosemirror/conversion/index.js +1 -0
- package/dist/prosemirror/conversion/index.mjs +1 -0
- package/dist/prosemirror/editor.css +823 -0
- package/dist/prosemirror/extensions/index.d.mts +79 -0
- package/dist/prosemirror/extensions/index.d.ts +79 -0
- package/dist/prosemirror/extensions/index.js +1 -0
- package/dist/prosemirror/extensions/index.mjs +1 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.d.mts +30 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +30 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -0
- package/dist/prosemirror/index.d.mts +70 -0
- package/dist/prosemirror/index.d.ts +70 -0
- package/dist/prosemirror/index.js +1 -0
- package/dist/prosemirror/index.mjs +1 -0
- package/dist/prosemirror/plugins/index.d.mts +154 -0
- package/dist/prosemirror/plugins/index.d.ts +154 -0
- package/dist/prosemirror/plugins/index.js +1 -0
- package/dist/prosemirror/plugins/index.mjs +1 -0
- package/dist/prosemirror/plugins/selectionTracker.d.mts +78 -0
- package/dist/prosemirror/plugins/selectionTracker.d.ts +78 -0
- package/dist/prosemirror/plugins/selectionTracker.js +1 -0
- package/dist/prosemirror/plugins/selectionTracker.mjs +1 -0
- package/dist/prosemirror/schema/index.d.mts +29 -0
- package/dist/prosemirror/schema/index.d.ts +29 -0
- package/dist/prosemirror/schema/index.js +1 -0
- package/dist/prosemirror/schema/index.mjs +1 -0
- package/dist/prosemirror/styles/index.d.mts +124 -0
- package/dist/prosemirror/styles/index.d.ts +124 -0
- package/dist/prosemirror/styles/index.js +1 -0
- package/dist/prosemirror/styles/index.mjs +1 -0
- package/dist/prosemirror/template/prosemirror-plugin.d.mts +66 -0
- package/dist/prosemirror/template/prosemirror-plugin.d.ts +66 -0
- package/dist/prosemirror/template/prosemirror-plugin.js +15 -0
- package/dist/prosemirror/template/prosemirror-plugin.mjs +15 -0
- package/dist/prosemirror/utils/ClickPositionResolver.d.mts +109 -0
- package/dist/prosemirror/utils/ClickPositionResolver.d.ts +109 -0
- package/dist/prosemirror/utils/ClickPositionResolver.js +1 -0
- package/dist/prosemirror/utils/ClickPositionResolver.mjs +1 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.d.mts +81 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.d.ts +81 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.js +1 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.mjs +1 -0
- package/dist/prosemirror/utils/PointerEventHandler.d.mts +94 -0
- package/dist/prosemirror/utils/PointerEventHandler.d.ts +94 -0
- package/dist/prosemirror/utils/PointerEventHandler.js +1 -0
- package/dist/prosemirror/utils/PointerEventHandler.mjs +1 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +85 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +85 -0
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -0
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -0
- package/dist/prosemirror/utils/visualLineNavigation.d.mts +45 -0
- package/dist/prosemirror/utils/visualLineNavigation.d.ts +45 -0
- package/dist/prosemirror/utils/visualLineNavigation.js +1 -0
- package/dist/prosemirror/utils/visualLineNavigation.mjs +1 -0
- package/dist/registry-Cpyybgij.d.mts +165 -0
- package/dist/registry-E5pahPKL.d.ts +165 -0
- package/dist/selectionContext-BPAqgNgk.d.ts +570 -0
- package/dist/selectionContext-CoZat7QZ.d.mts +570 -0
- package/dist/selectiveSave-CWaPEv0B.d.ts +31 -0
- package/dist/selectiveSave-jinP_4xa.d.mts +31 -0
- package/dist/selectiveXmlPatch-ypkxlTD_.d.mts +23 -0
- package/dist/selectiveXmlPatch-ypkxlTD_.d.ts +23 -0
- package/dist/styles-BBv7doYK.d.ts +233 -0
- package/dist/styles-EI2lxeEN.d.mts +233 -0
- package/dist/table-P8esKWAc.d.ts +82 -0
- package/dist/table-_t_W8oQf.d.mts +82 -0
- package/dist/types/agentApi.d.mts +467 -0
- package/dist/types/agentApi.d.ts +467 -0
- package/dist/types/agentApi.js +1 -0
- package/dist/types/agentApi.mjs +1 -0
- package/dist/types/content.d.mts +18 -0
- package/dist/types/content.d.ts +18 -0
- package/dist/types/content.js +1 -0
- package/dist/types/content.mjs +0 -0
- package/dist/types/document.d.mts +123 -0
- package/dist/types/document.d.ts +123 -0
- package/dist/types/document.js +1 -0
- package/dist/types/document.mjs +0 -0
- package/dist/types-DXG7vqe9.d.ts +311 -0
- package/dist/types-RchZmPFN.d.mts +137 -0
- package/dist/types-RchZmPFN.d.ts +137 -0
- package/dist/types-dYdjUZMo.d.mts +311 -0
- package/dist/utils/cardStyles.d.mts +31 -0
- package/dist/utils/cardStyles.d.ts +31 -0
- package/dist/utils/cardStyles.js +1 -0
- package/dist/utils/cardStyles.mjs +1 -0
- package/dist/utils/comments.d.mts +121 -0
- package/dist/utils/comments.d.ts +121 -0
- package/dist/utils/comments.js +1 -0
- package/dist/utils/comments.mjs +1 -0
- package/dist/utils/findReplace.d.mts +114 -0
- package/dist/utils/findReplace.d.ts +114 -0
- package/dist/utils/findReplace.js +2 -0
- package/dist/utils/findReplace.mjs +2 -0
- package/dist/utils/findVerticalScrollParent.d.mts +25 -0
- package/dist/utils/findVerticalScrollParent.d.ts +25 -0
- package/dist/utils/findVerticalScrollParent.js +1 -0
- package/dist/utils/findVerticalScrollParent.mjs +1 -0
- package/dist/utils/fontOptions.d.mts +21 -0
- package/dist/utils/fontOptions.d.ts +21 -0
- package/dist/utils/fontOptions.js +1 -0
- package/dist/utils/fontOptions.mjs +1 -0
- package/dist/utils/headingCollector.d.mts +32 -0
- package/dist/utils/headingCollector.d.ts +32 -0
- package/dist/utils/headingCollector.js +1 -0
- package/dist/utils/headingCollector.mjs +1 -0
- package/dist/utils/highlightColors.d.mts +14 -0
- package/dist/utils/highlightColors.d.ts +14 -0
- package/dist/utils/highlightColors.js +1 -0
- package/dist/utils/highlightColors.mjs +1 -0
- package/dist/utils/index.d.mts +710 -0
- package/dist/utils/index.d.ts +710 -0
- package/dist/utils/index.js +82 -0
- package/dist/utils/index.mjs +82 -0
- package/dist/utils/listState.d.mts +27 -0
- package/dist/utils/listState.d.ts +27 -0
- package/dist/utils/listState.js +1 -0
- package/dist/utils/listState.mjs +1 -0
- package/dist/utils/reportIssue.d.mts +23 -0
- package/dist/utils/reportIssue.d.ts +23 -0
- package/dist/utils/reportIssue.js +2 -0
- package/dist/utils/reportIssue.mjs +2 -0
- package/dist/utils/sidebarConstants.d.mts +10 -0
- package/dist/utils/sidebarConstants.d.ts +10 -0
- package/dist/utils/sidebarConstants.js +1 -0
- package/dist/utils/sidebarConstants.mjs +1 -0
- package/dist/utils/textSelection.d.mts +92 -0
- package/dist/utils/textSelection.d.ts +92 -0
- package/dist/utils/textSelection.js +1 -0
- package/dist/utils/textSelection.mjs +1 -0
- package/dist/utils/units.d.mts +91 -0
- package/dist/utils/units.d.ts +91 -0
- package/dist/utils/units.js +1 -0
- package/dist/utils/units.mjs +1 -0
- package/dist/variableDetector-DF3-nxUC.d.mts +115 -0
- package/dist/variableDetector-sBkgVh3f.d.ts +115 -0
- package/package.json +565 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { B as BorderSpec, S as ShadingProperties } from './colors-C3vA7HUU.mjs';
|
|
2
|
+
import { d as ParagraphAlignment, L as LineSpacingRule, S as SpacingExplicit, e as TabStop, T as TextFormatting, P as ParagraphFormatting, F as FloatingTableProperties, f as TableLook, a as TableFormatting, c as TableCellFormatting, b as TableRowFormatting } from './formatting-BH4hcZiq.mjs';
|
|
3
|
+
import { o as NumberFormat, S as SectionProperties, m as RevisionInfo, p as ParagraphPropertyChange, q as TablePropertyChange, r as TableCellPropertyChange, s as TableRowPropertyChange } from './content-5Mrz6w_b.mjs';
|
|
4
|
+
import { WrapType } from './docx/wrapTypes.mjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Paragraph node attributes - maps to ParagraphFormatting
|
|
8
|
+
*/
|
|
9
|
+
interface ParagraphAttrs {
|
|
10
|
+
paraId?: string;
|
|
11
|
+
textId?: string;
|
|
12
|
+
alignment?: ParagraphAlignment;
|
|
13
|
+
spaceBefore?: number;
|
|
14
|
+
spaceAfter?: number;
|
|
15
|
+
lineSpacing?: number;
|
|
16
|
+
lineSpacingRule?: LineSpacingRule;
|
|
17
|
+
/** See ParagraphFormatting.spacingExplicit. */
|
|
18
|
+
spacingExplicit?: SpacingExplicit;
|
|
19
|
+
indentLeft?: number;
|
|
20
|
+
indentRight?: number;
|
|
21
|
+
indentFirstLine?: number;
|
|
22
|
+
hangingIndent?: boolean;
|
|
23
|
+
numPr?: {
|
|
24
|
+
numId?: number;
|
|
25
|
+
ilvl?: number;
|
|
26
|
+
};
|
|
27
|
+
/** List number format (decimal, lowerRoman, upperRoman, etc.) for CSS counter styling */
|
|
28
|
+
listNumFmt?: NumberFormat;
|
|
29
|
+
/** Whether this is a bullet list */
|
|
30
|
+
listIsBullet?: boolean;
|
|
31
|
+
/** Computed list marker text (e.g., "1.", "1.1.", "•") */
|
|
32
|
+
listMarker?: string;
|
|
33
|
+
/** Whether the list marker is hidden (w:vanish on numbering level rPr) */
|
|
34
|
+
listMarkerHidden?: boolean;
|
|
35
|
+
/** Marker font family from numbering level rPr */
|
|
36
|
+
listMarkerFontFamily?: string;
|
|
37
|
+
/** Marker font size from numbering level rPr, in points */
|
|
38
|
+
listMarkerFontSize?: number;
|
|
39
|
+
/** Suffix after the marker (§17.9.25); default `tab`. */
|
|
40
|
+
listMarkerSuffix?: 'tab' | 'space' | 'nothing';
|
|
41
|
+
/**
|
|
42
|
+
* NumberFormat for each level 0..ilvl (inclusive).
|
|
43
|
+
* Lets toFlowBlocks resolve multi-level templates like "%1.%2." with
|
|
44
|
+
* the correct format per token.
|
|
45
|
+
*/
|
|
46
|
+
listLevelNumFmts?: NumberFormat[];
|
|
47
|
+
/** See ListRendering.abstractNumId. */
|
|
48
|
+
listAbstractNumId?: number;
|
|
49
|
+
/** See ListRendering.startOverride. */
|
|
50
|
+
listStartOverride?: number;
|
|
51
|
+
styleId?: string;
|
|
52
|
+
borders?: {
|
|
53
|
+
top?: BorderSpec;
|
|
54
|
+
bottom?: BorderSpec;
|
|
55
|
+
left?: BorderSpec;
|
|
56
|
+
right?: BorderSpec;
|
|
57
|
+
between?: BorderSpec;
|
|
58
|
+
bar?: BorderSpec;
|
|
59
|
+
};
|
|
60
|
+
shading?: ShadingProperties;
|
|
61
|
+
tabs?: TabStop[];
|
|
62
|
+
pageBreakBefore?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Word's cached layout marker (`<w:lastRenderedPageBreak/>`). Treated like
|
|
65
|
+
* `pageBreakBefore` for layout, kept as a separate attr so save+reload
|
|
66
|
+
* preserves the marker at the same position Word recorded.
|
|
67
|
+
*/
|
|
68
|
+
renderedPageBreakBefore?: boolean;
|
|
69
|
+
keepNext?: boolean;
|
|
70
|
+
keepLines?: boolean;
|
|
71
|
+
/** Contextual spacing — suppress space between same-style paragraphs */
|
|
72
|
+
contextualSpacing?: boolean;
|
|
73
|
+
defaultTextFormatting?: TextFormatting;
|
|
74
|
+
sectionBreakType?: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage';
|
|
75
|
+
bidi?: boolean;
|
|
76
|
+
outlineLevel?: number;
|
|
77
|
+
bookmarks?: Array<{
|
|
78
|
+
id: number;
|
|
79
|
+
name: string;
|
|
80
|
+
}>;
|
|
81
|
+
/** Original inline paragraph formatting from DOCX (pre-style-resolution).
|
|
82
|
+
* Used by fromProseDoc for lossless round-trip serialization. */
|
|
83
|
+
_originalFormatting?: ParagraphFormatting;
|
|
84
|
+
/** Full section properties for paragraphs that end a section.
|
|
85
|
+
* Used by layout engine for per-section column/page config and round-trip. */
|
|
86
|
+
_sectionProperties?: SectionProperties;
|
|
87
|
+
/**
|
|
88
|
+
* Paragraph-mark insertion tracking (`<w:pPr><w:rPr><w:ins/>`). Carries
|
|
89
|
+
* the OOXML tracked-change triple `(w:id, w:author, w:date)` when the
|
|
90
|
+
* pilcrow terminating this paragraph was added as a tracked change.
|
|
91
|
+
* `date` is ISO 8601 UTC with `Z` suffix; `null` if the source DOCX
|
|
92
|
+
* omitted `w:date`. Reject joins this paragraph with the following one.
|
|
93
|
+
*/
|
|
94
|
+
pPrIns?: RevisionInfo | null;
|
|
95
|
+
/**
|
|
96
|
+
* Paragraph-mark deletion tracking (`<w:pPr><w:rPr><w:del/>`). Same
|
|
97
|
+
* shape and provenance as `pPrIns`. Accept joins this paragraph with
|
|
98
|
+
* the following one; reject clears the marker, keeping the split.
|
|
99
|
+
*/
|
|
100
|
+
pPrDel?: RevisionInfo | null;
|
|
101
|
+
/**
|
|
102
|
+
* Paragraph property changes (`<w:pPrChange>`). Each entry carries
|
|
103
|
+
* the OOXML triple plus a `prior` snapshot of the paragraph properties
|
|
104
|
+
* before the edit. Array because multiple authors can stack edits on
|
|
105
|
+
* the same paragraph; on reject by id, only the matching entry's prior
|
|
106
|
+
* is restored. The shape mirrors the existing model
|
|
107
|
+
* `Paragraph.propertyChanges: ParagraphPropertyChange[]` — see
|
|
108
|
+
* `packages/core/src/types/content/trackedChange.ts`.
|
|
109
|
+
*/
|
|
110
|
+
pPrChange?: ParagraphPropertyChange[] | null;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Image position for floating images (horizontal and vertical positioning)
|
|
114
|
+
*/
|
|
115
|
+
interface ImagePositionAttrs {
|
|
116
|
+
horizontal?: {
|
|
117
|
+
relativeTo?: string;
|
|
118
|
+
posOffset?: number;
|
|
119
|
+
align?: string;
|
|
120
|
+
};
|
|
121
|
+
vertical?: {
|
|
122
|
+
relativeTo?: string;
|
|
123
|
+
posOffset?: number;
|
|
124
|
+
align?: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Image node attributes
|
|
129
|
+
*/
|
|
130
|
+
interface ImageAttrs {
|
|
131
|
+
src: string;
|
|
132
|
+
alt?: string;
|
|
133
|
+
title?: string;
|
|
134
|
+
/** Width in pixels (already converted from EMU) */
|
|
135
|
+
width?: number;
|
|
136
|
+
/** Height in pixels (already converted from EMU) */
|
|
137
|
+
height?: number;
|
|
138
|
+
rId?: string;
|
|
139
|
+
/** Wrap type from DOCX: inline, square, tight, through, topAndBottom, behind, inFront */
|
|
140
|
+
wrapType?: WrapType;
|
|
141
|
+
/** Display mode for CSS: inline (flows with text), float (left/right float), block (centered) */
|
|
142
|
+
displayMode?: 'inline' | 'float' | 'block';
|
|
143
|
+
/** CSS float direction for floating images */
|
|
144
|
+
cssFloat?: 'left' | 'right' | 'none';
|
|
145
|
+
/** CSS transform string (rotation, flip) */
|
|
146
|
+
transform?: string;
|
|
147
|
+
/** Distance from text above (pixels) */
|
|
148
|
+
distTop?: number;
|
|
149
|
+
/** Distance from text below (pixels) */
|
|
150
|
+
distBottom?: number;
|
|
151
|
+
/** Distance from text left (pixels) */
|
|
152
|
+
distLeft?: number;
|
|
153
|
+
/** Distance from text right (pixels) */
|
|
154
|
+
distRight?: number;
|
|
155
|
+
/** Position for floating images (horizontal and vertical alignment) */
|
|
156
|
+
position?: ImagePositionAttrs;
|
|
157
|
+
/** Border width in pixels */
|
|
158
|
+
borderWidth?: number;
|
|
159
|
+
/** Border color as CSS color string */
|
|
160
|
+
borderColor?: string;
|
|
161
|
+
/** Border style (CSS border-style value) */
|
|
162
|
+
borderStyle?: string;
|
|
163
|
+
/** Wrap text setting from DOCX (left, right, bothSides, largest) for round-trip */
|
|
164
|
+
wrapText?: string;
|
|
165
|
+
/** Hyperlink URL for clickable image */
|
|
166
|
+
hlinkHref?: string;
|
|
167
|
+
/**
|
|
168
|
+
* `wp:srcRect` crop fractions in [0, 1]. Each side is the fraction of the
|
|
169
|
+
* source image that should be hidden. Renders as CSS `clip-path: inset(...)`.
|
|
170
|
+
*/
|
|
171
|
+
cropTop?: number;
|
|
172
|
+
cropRight?: number;
|
|
173
|
+
cropBottom?: number;
|
|
174
|
+
cropLeft?: number;
|
|
175
|
+
/** `a:alphaModFix amt` mapped to CSS `opacity` in [0, 1]. */
|
|
176
|
+
opacity?: number;
|
|
177
|
+
/**
|
|
178
|
+
* `wp:effectExtent` padding (pixels) — extra space reserved around the image
|
|
179
|
+
* for shadows, glows, soft edges, etc. Applied as outer margin so the
|
|
180
|
+
* effect isn't clipped by surrounding content.
|
|
181
|
+
*/
|
|
182
|
+
effectExtentTop?: number;
|
|
183
|
+
effectExtentBottom?: number;
|
|
184
|
+
effectExtentLeft?: number;
|
|
185
|
+
effectExtentRight?: number;
|
|
186
|
+
/**
|
|
187
|
+
* `wp:anchor layoutInCell`. Tri-state: true / false / undefined (= Word's
|
|
188
|
+
* default "1"). Floating-only; round-tripped on save.
|
|
189
|
+
*/
|
|
190
|
+
layoutInCell?: boolean;
|
|
191
|
+
/** `wp:anchor allowOverlap`. Same tri-state convention as `layoutInCell`. */
|
|
192
|
+
allowOverlap?: boolean;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Table node attributes
|
|
196
|
+
*/
|
|
197
|
+
interface TableAttrs {
|
|
198
|
+
/** Table style ID */
|
|
199
|
+
styleId?: string;
|
|
200
|
+
/** Table width (in twips) */
|
|
201
|
+
width?: number;
|
|
202
|
+
/** Table width type ('auto', 'pct', 'dxa') */
|
|
203
|
+
widthType?: string;
|
|
204
|
+
/** Table justification/alignment */
|
|
205
|
+
justification?: 'left' | 'center' | 'right';
|
|
206
|
+
/** Column widths (in twips) from w:tblGrid */
|
|
207
|
+
columnWidths?: number[];
|
|
208
|
+
/** Floating table properties (w:tblpPr) */
|
|
209
|
+
floating?: FloatingTableProperties;
|
|
210
|
+
/** Default cell margins for the table (w:tblCellMar), in twips */
|
|
211
|
+
cellMargins?: {
|
|
212
|
+
top?: number;
|
|
213
|
+
bottom?: number;
|
|
214
|
+
left?: number;
|
|
215
|
+
right?: number;
|
|
216
|
+
};
|
|
217
|
+
/** Table look flags for conditional formatting (w:tblLook) */
|
|
218
|
+
look?: TableLook;
|
|
219
|
+
/** Original table formatting from DOCX for lossless round-trip serialization */
|
|
220
|
+
_originalFormatting?: TableFormatting;
|
|
221
|
+
/**
|
|
222
|
+
* Table-property change history (`<w:tblPrChange>`). Same shape as the
|
|
223
|
+
* model `Table.propertyChanges`. OOXML allows at most one entry per table
|
|
224
|
+
* on disk (CT_TblPr maxOccurs="1"); the model/array allows in-memory
|
|
225
|
+
* stacking, serializer clamps to the first.
|
|
226
|
+
*/
|
|
227
|
+
tblPrChange?: TablePropertyChange[] | null;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Table row attributes
|
|
231
|
+
*/
|
|
232
|
+
interface TableRowAttrs {
|
|
233
|
+
/** Row height (in twips) */
|
|
234
|
+
height?: number;
|
|
235
|
+
/** Height rule ('auto', 'exact', 'atLeast') */
|
|
236
|
+
heightRule?: string;
|
|
237
|
+
/** Is header row */
|
|
238
|
+
isHeader?: boolean;
|
|
239
|
+
/** Original row formatting from DOCX for lossless round-trip serialization */
|
|
240
|
+
_originalFormatting?: TableRowFormatting;
|
|
241
|
+
/**
|
|
242
|
+
* Row-mark insertion / deletion (`<w:trPr><w:ins/>` / `<w:del/>`).
|
|
243
|
+
* Authored by inserting/deleting a row in suggesting mode. The row stays
|
|
244
|
+
* present until accept (for delete) or reject (for insert).
|
|
245
|
+
*/
|
|
246
|
+
trIns?: RevisionInfo | null;
|
|
247
|
+
trDel?: RevisionInfo | null;
|
|
248
|
+
/** Row-property change history (`<w:trPrChange>`). */
|
|
249
|
+
trPrChange?: TableRowPropertyChange[] | null;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Table cell attributes
|
|
253
|
+
*/
|
|
254
|
+
interface TableCellAttrs {
|
|
255
|
+
/** Column span */
|
|
256
|
+
colspan: number;
|
|
257
|
+
/** Row span */
|
|
258
|
+
rowspan: number;
|
|
259
|
+
/** Column widths for prosemirror-tables resizing (array of pixel widths) */
|
|
260
|
+
colwidth?: number[] | null;
|
|
261
|
+
/** Cell width (in twips) */
|
|
262
|
+
width?: number;
|
|
263
|
+
/** Cell width type */
|
|
264
|
+
widthType?: string;
|
|
265
|
+
/** Vertical alignment */
|
|
266
|
+
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
267
|
+
/** Background color (RGB hex) */
|
|
268
|
+
backgroundColor?: string;
|
|
269
|
+
/** OOXML text direction (e.g. 'tbRl', 'btLr') */
|
|
270
|
+
textDirection?: string;
|
|
271
|
+
/** No text wrapping in cell */
|
|
272
|
+
noWrap?: boolean;
|
|
273
|
+
/** Cell borders — full BorderSpec per side (style, color, size) */
|
|
274
|
+
borders?: {
|
|
275
|
+
top?: BorderSpec;
|
|
276
|
+
bottom?: BorderSpec;
|
|
277
|
+
left?: BorderSpec;
|
|
278
|
+
right?: BorderSpec;
|
|
279
|
+
};
|
|
280
|
+
/** Cell margins/padding in twips per side */
|
|
281
|
+
margins?: {
|
|
282
|
+
top?: number;
|
|
283
|
+
bottom?: number;
|
|
284
|
+
left?: number;
|
|
285
|
+
right?: number;
|
|
286
|
+
};
|
|
287
|
+
/** Original cell formatting from DOCX for lossless round-trip serialization */
|
|
288
|
+
_originalFormatting?: TableCellFormatting;
|
|
289
|
+
/**
|
|
290
|
+
* The resolved hex of the original `shading.fill` at parse time. Used by
|
|
291
|
+
* fromProseDoc to detect whether the user changed `backgroundColor`: if they
|
|
292
|
+
* didn't, we preserve `_originalFormatting.shading` (keeping themeFill +
|
|
293
|
+
* tint/shade); if they did, we write plain rgb.
|
|
294
|
+
*/
|
|
295
|
+
_originalResolvedFill?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Cell structural revision marker. Mutually exclusive per
|
|
298
|
+
* `EG_CellMarkupElements` (wml.xsd) — a cell can carry at most one of
|
|
299
|
+
* `cellIns`, `cellDel`, or `cellMerge`. `merge` is VERTICAL only
|
|
300
|
+
* (`<w:cellMerge w:vMerge="rest|cont"/>`); horizontal merge is
|
|
301
|
+
* conveyed via `cellIns` on the merging cell and `cellDel` on absorbed
|
|
302
|
+
* cells (Word's on-disk convention).
|
|
303
|
+
*/
|
|
304
|
+
cellMarker?: {
|
|
305
|
+
kind: 'ins';
|
|
306
|
+
info: RevisionInfo;
|
|
307
|
+
} | {
|
|
308
|
+
kind: 'del';
|
|
309
|
+
info: RevisionInfo;
|
|
310
|
+
} | {
|
|
311
|
+
kind: 'merge';
|
|
312
|
+
info: RevisionInfo;
|
|
313
|
+
vMerge: 'rest' | 'cont';
|
|
314
|
+
vMergeOrig?: 'rest' | 'cont';
|
|
315
|
+
} | null;
|
|
316
|
+
/** Cell-property change history (`<w:tcPrChange>`). */
|
|
317
|
+
tcPrChange?: TableCellPropertyChange[] | null;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type { ImageAttrs as I, ParagraphAttrs as P, TableAttrs as T, ImagePositionAttrs as a, TableCellAttrs as b, TableRowAttrs as c };
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { B as BorderSpec, S as ShadingProperties } from './colors-C3vA7HUU.js';
|
|
2
|
+
import { d as ParagraphAlignment, L as LineSpacingRule, S as SpacingExplicit, e as TabStop, T as TextFormatting, P as ParagraphFormatting, F as FloatingTableProperties, f as TableLook, a as TableFormatting, c as TableCellFormatting, b as TableRowFormatting } from './formatting-_OXU8gLB.js';
|
|
3
|
+
import { o as NumberFormat, S as SectionProperties, m as RevisionInfo, p as ParagraphPropertyChange, q as TablePropertyChange, r as TableCellPropertyChange, s as TableRowPropertyChange } from './content-CmqAwdFL.js';
|
|
4
|
+
import { WrapType } from './docx/wrapTypes.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Paragraph node attributes - maps to ParagraphFormatting
|
|
8
|
+
*/
|
|
9
|
+
interface ParagraphAttrs {
|
|
10
|
+
paraId?: string;
|
|
11
|
+
textId?: string;
|
|
12
|
+
alignment?: ParagraphAlignment;
|
|
13
|
+
spaceBefore?: number;
|
|
14
|
+
spaceAfter?: number;
|
|
15
|
+
lineSpacing?: number;
|
|
16
|
+
lineSpacingRule?: LineSpacingRule;
|
|
17
|
+
/** See ParagraphFormatting.spacingExplicit. */
|
|
18
|
+
spacingExplicit?: SpacingExplicit;
|
|
19
|
+
indentLeft?: number;
|
|
20
|
+
indentRight?: number;
|
|
21
|
+
indentFirstLine?: number;
|
|
22
|
+
hangingIndent?: boolean;
|
|
23
|
+
numPr?: {
|
|
24
|
+
numId?: number;
|
|
25
|
+
ilvl?: number;
|
|
26
|
+
};
|
|
27
|
+
/** List number format (decimal, lowerRoman, upperRoman, etc.) for CSS counter styling */
|
|
28
|
+
listNumFmt?: NumberFormat;
|
|
29
|
+
/** Whether this is a bullet list */
|
|
30
|
+
listIsBullet?: boolean;
|
|
31
|
+
/** Computed list marker text (e.g., "1.", "1.1.", "•") */
|
|
32
|
+
listMarker?: string;
|
|
33
|
+
/** Whether the list marker is hidden (w:vanish on numbering level rPr) */
|
|
34
|
+
listMarkerHidden?: boolean;
|
|
35
|
+
/** Marker font family from numbering level rPr */
|
|
36
|
+
listMarkerFontFamily?: string;
|
|
37
|
+
/** Marker font size from numbering level rPr, in points */
|
|
38
|
+
listMarkerFontSize?: number;
|
|
39
|
+
/** Suffix after the marker (§17.9.25); default `tab`. */
|
|
40
|
+
listMarkerSuffix?: 'tab' | 'space' | 'nothing';
|
|
41
|
+
/**
|
|
42
|
+
* NumberFormat for each level 0..ilvl (inclusive).
|
|
43
|
+
* Lets toFlowBlocks resolve multi-level templates like "%1.%2." with
|
|
44
|
+
* the correct format per token.
|
|
45
|
+
*/
|
|
46
|
+
listLevelNumFmts?: NumberFormat[];
|
|
47
|
+
/** See ListRendering.abstractNumId. */
|
|
48
|
+
listAbstractNumId?: number;
|
|
49
|
+
/** See ListRendering.startOverride. */
|
|
50
|
+
listStartOverride?: number;
|
|
51
|
+
styleId?: string;
|
|
52
|
+
borders?: {
|
|
53
|
+
top?: BorderSpec;
|
|
54
|
+
bottom?: BorderSpec;
|
|
55
|
+
left?: BorderSpec;
|
|
56
|
+
right?: BorderSpec;
|
|
57
|
+
between?: BorderSpec;
|
|
58
|
+
bar?: BorderSpec;
|
|
59
|
+
};
|
|
60
|
+
shading?: ShadingProperties;
|
|
61
|
+
tabs?: TabStop[];
|
|
62
|
+
pageBreakBefore?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Word's cached layout marker (`<w:lastRenderedPageBreak/>`). Treated like
|
|
65
|
+
* `pageBreakBefore` for layout, kept as a separate attr so save+reload
|
|
66
|
+
* preserves the marker at the same position Word recorded.
|
|
67
|
+
*/
|
|
68
|
+
renderedPageBreakBefore?: boolean;
|
|
69
|
+
keepNext?: boolean;
|
|
70
|
+
keepLines?: boolean;
|
|
71
|
+
/** Contextual spacing — suppress space between same-style paragraphs */
|
|
72
|
+
contextualSpacing?: boolean;
|
|
73
|
+
defaultTextFormatting?: TextFormatting;
|
|
74
|
+
sectionBreakType?: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage';
|
|
75
|
+
bidi?: boolean;
|
|
76
|
+
outlineLevel?: number;
|
|
77
|
+
bookmarks?: Array<{
|
|
78
|
+
id: number;
|
|
79
|
+
name: string;
|
|
80
|
+
}>;
|
|
81
|
+
/** Original inline paragraph formatting from DOCX (pre-style-resolution).
|
|
82
|
+
* Used by fromProseDoc for lossless round-trip serialization. */
|
|
83
|
+
_originalFormatting?: ParagraphFormatting;
|
|
84
|
+
/** Full section properties for paragraphs that end a section.
|
|
85
|
+
* Used by layout engine for per-section column/page config and round-trip. */
|
|
86
|
+
_sectionProperties?: SectionProperties;
|
|
87
|
+
/**
|
|
88
|
+
* Paragraph-mark insertion tracking (`<w:pPr><w:rPr><w:ins/>`). Carries
|
|
89
|
+
* the OOXML tracked-change triple `(w:id, w:author, w:date)` when the
|
|
90
|
+
* pilcrow terminating this paragraph was added as a tracked change.
|
|
91
|
+
* `date` is ISO 8601 UTC with `Z` suffix; `null` if the source DOCX
|
|
92
|
+
* omitted `w:date`. Reject joins this paragraph with the following one.
|
|
93
|
+
*/
|
|
94
|
+
pPrIns?: RevisionInfo | null;
|
|
95
|
+
/**
|
|
96
|
+
* Paragraph-mark deletion tracking (`<w:pPr><w:rPr><w:del/>`). Same
|
|
97
|
+
* shape and provenance as `pPrIns`. Accept joins this paragraph with
|
|
98
|
+
* the following one; reject clears the marker, keeping the split.
|
|
99
|
+
*/
|
|
100
|
+
pPrDel?: RevisionInfo | null;
|
|
101
|
+
/**
|
|
102
|
+
* Paragraph property changes (`<w:pPrChange>`). Each entry carries
|
|
103
|
+
* the OOXML triple plus a `prior` snapshot of the paragraph properties
|
|
104
|
+
* before the edit. Array because multiple authors can stack edits on
|
|
105
|
+
* the same paragraph; on reject by id, only the matching entry's prior
|
|
106
|
+
* is restored. The shape mirrors the existing model
|
|
107
|
+
* `Paragraph.propertyChanges: ParagraphPropertyChange[]` — see
|
|
108
|
+
* `packages/core/src/types/content/trackedChange.ts`.
|
|
109
|
+
*/
|
|
110
|
+
pPrChange?: ParagraphPropertyChange[] | null;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Image position for floating images (horizontal and vertical positioning)
|
|
114
|
+
*/
|
|
115
|
+
interface ImagePositionAttrs {
|
|
116
|
+
horizontal?: {
|
|
117
|
+
relativeTo?: string;
|
|
118
|
+
posOffset?: number;
|
|
119
|
+
align?: string;
|
|
120
|
+
};
|
|
121
|
+
vertical?: {
|
|
122
|
+
relativeTo?: string;
|
|
123
|
+
posOffset?: number;
|
|
124
|
+
align?: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Image node attributes
|
|
129
|
+
*/
|
|
130
|
+
interface ImageAttrs {
|
|
131
|
+
src: string;
|
|
132
|
+
alt?: string;
|
|
133
|
+
title?: string;
|
|
134
|
+
/** Width in pixels (already converted from EMU) */
|
|
135
|
+
width?: number;
|
|
136
|
+
/** Height in pixels (already converted from EMU) */
|
|
137
|
+
height?: number;
|
|
138
|
+
rId?: string;
|
|
139
|
+
/** Wrap type from DOCX: inline, square, tight, through, topAndBottom, behind, inFront */
|
|
140
|
+
wrapType?: WrapType;
|
|
141
|
+
/** Display mode for CSS: inline (flows with text), float (left/right float), block (centered) */
|
|
142
|
+
displayMode?: 'inline' | 'float' | 'block';
|
|
143
|
+
/** CSS float direction for floating images */
|
|
144
|
+
cssFloat?: 'left' | 'right' | 'none';
|
|
145
|
+
/** CSS transform string (rotation, flip) */
|
|
146
|
+
transform?: string;
|
|
147
|
+
/** Distance from text above (pixels) */
|
|
148
|
+
distTop?: number;
|
|
149
|
+
/** Distance from text below (pixels) */
|
|
150
|
+
distBottom?: number;
|
|
151
|
+
/** Distance from text left (pixels) */
|
|
152
|
+
distLeft?: number;
|
|
153
|
+
/** Distance from text right (pixels) */
|
|
154
|
+
distRight?: number;
|
|
155
|
+
/** Position for floating images (horizontal and vertical alignment) */
|
|
156
|
+
position?: ImagePositionAttrs;
|
|
157
|
+
/** Border width in pixels */
|
|
158
|
+
borderWidth?: number;
|
|
159
|
+
/** Border color as CSS color string */
|
|
160
|
+
borderColor?: string;
|
|
161
|
+
/** Border style (CSS border-style value) */
|
|
162
|
+
borderStyle?: string;
|
|
163
|
+
/** Wrap text setting from DOCX (left, right, bothSides, largest) for round-trip */
|
|
164
|
+
wrapText?: string;
|
|
165
|
+
/** Hyperlink URL for clickable image */
|
|
166
|
+
hlinkHref?: string;
|
|
167
|
+
/**
|
|
168
|
+
* `wp:srcRect` crop fractions in [0, 1]. Each side is the fraction of the
|
|
169
|
+
* source image that should be hidden. Renders as CSS `clip-path: inset(...)`.
|
|
170
|
+
*/
|
|
171
|
+
cropTop?: number;
|
|
172
|
+
cropRight?: number;
|
|
173
|
+
cropBottom?: number;
|
|
174
|
+
cropLeft?: number;
|
|
175
|
+
/** `a:alphaModFix amt` mapped to CSS `opacity` in [0, 1]. */
|
|
176
|
+
opacity?: number;
|
|
177
|
+
/**
|
|
178
|
+
* `wp:effectExtent` padding (pixels) — extra space reserved around the image
|
|
179
|
+
* for shadows, glows, soft edges, etc. Applied as outer margin so the
|
|
180
|
+
* effect isn't clipped by surrounding content.
|
|
181
|
+
*/
|
|
182
|
+
effectExtentTop?: number;
|
|
183
|
+
effectExtentBottom?: number;
|
|
184
|
+
effectExtentLeft?: number;
|
|
185
|
+
effectExtentRight?: number;
|
|
186
|
+
/**
|
|
187
|
+
* `wp:anchor layoutInCell`. Tri-state: true / false / undefined (= Word's
|
|
188
|
+
* default "1"). Floating-only; round-tripped on save.
|
|
189
|
+
*/
|
|
190
|
+
layoutInCell?: boolean;
|
|
191
|
+
/** `wp:anchor allowOverlap`. Same tri-state convention as `layoutInCell`. */
|
|
192
|
+
allowOverlap?: boolean;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Table node attributes
|
|
196
|
+
*/
|
|
197
|
+
interface TableAttrs {
|
|
198
|
+
/** Table style ID */
|
|
199
|
+
styleId?: string;
|
|
200
|
+
/** Table width (in twips) */
|
|
201
|
+
width?: number;
|
|
202
|
+
/** Table width type ('auto', 'pct', 'dxa') */
|
|
203
|
+
widthType?: string;
|
|
204
|
+
/** Table justification/alignment */
|
|
205
|
+
justification?: 'left' | 'center' | 'right';
|
|
206
|
+
/** Column widths (in twips) from w:tblGrid */
|
|
207
|
+
columnWidths?: number[];
|
|
208
|
+
/** Floating table properties (w:tblpPr) */
|
|
209
|
+
floating?: FloatingTableProperties;
|
|
210
|
+
/** Default cell margins for the table (w:tblCellMar), in twips */
|
|
211
|
+
cellMargins?: {
|
|
212
|
+
top?: number;
|
|
213
|
+
bottom?: number;
|
|
214
|
+
left?: number;
|
|
215
|
+
right?: number;
|
|
216
|
+
};
|
|
217
|
+
/** Table look flags for conditional formatting (w:tblLook) */
|
|
218
|
+
look?: TableLook;
|
|
219
|
+
/** Original table formatting from DOCX for lossless round-trip serialization */
|
|
220
|
+
_originalFormatting?: TableFormatting;
|
|
221
|
+
/**
|
|
222
|
+
* Table-property change history (`<w:tblPrChange>`). Same shape as the
|
|
223
|
+
* model `Table.propertyChanges`. OOXML allows at most one entry per table
|
|
224
|
+
* on disk (CT_TblPr maxOccurs="1"); the model/array allows in-memory
|
|
225
|
+
* stacking, serializer clamps to the first.
|
|
226
|
+
*/
|
|
227
|
+
tblPrChange?: TablePropertyChange[] | null;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Table row attributes
|
|
231
|
+
*/
|
|
232
|
+
interface TableRowAttrs {
|
|
233
|
+
/** Row height (in twips) */
|
|
234
|
+
height?: number;
|
|
235
|
+
/** Height rule ('auto', 'exact', 'atLeast') */
|
|
236
|
+
heightRule?: string;
|
|
237
|
+
/** Is header row */
|
|
238
|
+
isHeader?: boolean;
|
|
239
|
+
/** Original row formatting from DOCX for lossless round-trip serialization */
|
|
240
|
+
_originalFormatting?: TableRowFormatting;
|
|
241
|
+
/**
|
|
242
|
+
* Row-mark insertion / deletion (`<w:trPr><w:ins/>` / `<w:del/>`).
|
|
243
|
+
* Authored by inserting/deleting a row in suggesting mode. The row stays
|
|
244
|
+
* present until accept (for delete) or reject (for insert).
|
|
245
|
+
*/
|
|
246
|
+
trIns?: RevisionInfo | null;
|
|
247
|
+
trDel?: RevisionInfo | null;
|
|
248
|
+
/** Row-property change history (`<w:trPrChange>`). */
|
|
249
|
+
trPrChange?: TableRowPropertyChange[] | null;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Table cell attributes
|
|
253
|
+
*/
|
|
254
|
+
interface TableCellAttrs {
|
|
255
|
+
/** Column span */
|
|
256
|
+
colspan: number;
|
|
257
|
+
/** Row span */
|
|
258
|
+
rowspan: number;
|
|
259
|
+
/** Column widths for prosemirror-tables resizing (array of pixel widths) */
|
|
260
|
+
colwidth?: number[] | null;
|
|
261
|
+
/** Cell width (in twips) */
|
|
262
|
+
width?: number;
|
|
263
|
+
/** Cell width type */
|
|
264
|
+
widthType?: string;
|
|
265
|
+
/** Vertical alignment */
|
|
266
|
+
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
267
|
+
/** Background color (RGB hex) */
|
|
268
|
+
backgroundColor?: string;
|
|
269
|
+
/** OOXML text direction (e.g. 'tbRl', 'btLr') */
|
|
270
|
+
textDirection?: string;
|
|
271
|
+
/** No text wrapping in cell */
|
|
272
|
+
noWrap?: boolean;
|
|
273
|
+
/** Cell borders — full BorderSpec per side (style, color, size) */
|
|
274
|
+
borders?: {
|
|
275
|
+
top?: BorderSpec;
|
|
276
|
+
bottom?: BorderSpec;
|
|
277
|
+
left?: BorderSpec;
|
|
278
|
+
right?: BorderSpec;
|
|
279
|
+
};
|
|
280
|
+
/** Cell margins/padding in twips per side */
|
|
281
|
+
margins?: {
|
|
282
|
+
top?: number;
|
|
283
|
+
bottom?: number;
|
|
284
|
+
left?: number;
|
|
285
|
+
right?: number;
|
|
286
|
+
};
|
|
287
|
+
/** Original cell formatting from DOCX for lossless round-trip serialization */
|
|
288
|
+
_originalFormatting?: TableCellFormatting;
|
|
289
|
+
/**
|
|
290
|
+
* The resolved hex of the original `shading.fill` at parse time. Used by
|
|
291
|
+
* fromProseDoc to detect whether the user changed `backgroundColor`: if they
|
|
292
|
+
* didn't, we preserve `_originalFormatting.shading` (keeping themeFill +
|
|
293
|
+
* tint/shade); if they did, we write plain rgb.
|
|
294
|
+
*/
|
|
295
|
+
_originalResolvedFill?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Cell structural revision marker. Mutually exclusive per
|
|
298
|
+
* `EG_CellMarkupElements` (wml.xsd) — a cell can carry at most one of
|
|
299
|
+
* `cellIns`, `cellDel`, or `cellMerge`. `merge` is VERTICAL only
|
|
300
|
+
* (`<w:cellMerge w:vMerge="rest|cont"/>`); horizontal merge is
|
|
301
|
+
* conveyed via `cellIns` on the merging cell and `cellDel` on absorbed
|
|
302
|
+
* cells (Word's on-disk convention).
|
|
303
|
+
*/
|
|
304
|
+
cellMarker?: {
|
|
305
|
+
kind: 'ins';
|
|
306
|
+
info: RevisionInfo;
|
|
307
|
+
} | {
|
|
308
|
+
kind: 'del';
|
|
309
|
+
info: RevisionInfo;
|
|
310
|
+
} | {
|
|
311
|
+
kind: 'merge';
|
|
312
|
+
info: RevisionInfo;
|
|
313
|
+
vMerge: 'rest' | 'cont';
|
|
314
|
+
vMergeOrig?: 'rest' | 'cont';
|
|
315
|
+
} | null;
|
|
316
|
+
/** Cell-property change history (`<w:tcPrChange>`). */
|
|
317
|
+
tcPrChange?: TableCellPropertyChange[] | null;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type { ImageAttrs as I, ParagraphAttrs as P, TableAttrs as T, ImagePositionAttrs as a, TableCellAttrs as b, TableRowAttrs as c };
|