@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,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Commands
|
|
3
|
+
*
|
|
4
|
+
* Commands for formatting text and paragraphs.
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, createRemoveMarkCommand, createSetMarkCommand, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, setUnderlineStyle, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './formatting.js';
|
|
9
|
+
export { ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, oneAndHalfSpacing, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList } from './paragraph.js';
|
|
10
|
+
export { a as addColumnLeft, b as addColumnRight, c as addRowAbove, d as addRowBelow, e as applyTableStyle, f as autoFitContents, g as deleteColumn, h as deleteRow, i as deleteTable, j as distributeColumns, k as insertTable, m as mergeCells, r as removeTableBorders, s as selectColumn, l as selectRow, n as selectTable, o as setAllTableBorders, p as setCellBorder, q as setCellFillColor, t as setCellMargins, u as setCellTextDirection, v as setCellVerticalAlign, w as setInsideTableBorders, x as setOutsideTableBorders, y as setRowHeight, z as setTableBorderColor, A as setTableBorderWidth, B as setTableBorders, C as setTableProperties, D as splitCell, E as toggleHeaderRow, F as toggleNoWrap } from '../../table-P8esKWAc.js';
|
|
11
|
+
export { insertPageBreak } from './pageBreak.js';
|
|
12
|
+
import { EditorState, Transaction, Command } from 'prosemirror-state';
|
|
13
|
+
import { Node } from 'prosemirror-model';
|
|
14
|
+
import { I as ImageLayoutTarget, S as SetImageWrapTypeOptions } from '../../ImageExtension-BlI5afZD.js';
|
|
15
|
+
export { A as AnchorWrapType } from '../../ImageExtension-BlI5afZD.js';
|
|
16
|
+
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../../borders-Z9hPno2u.js';
|
|
17
|
+
import '../../formatting-_OXU8gLB.js';
|
|
18
|
+
import '../../colors-C3vA7HUU.js';
|
|
19
|
+
import '../../marks-CjC9tF5k.js';
|
|
20
|
+
import '../../docx/wrapTypes.js';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* ProseMirror table cell splitting — dialog-backed split with explicit
|
|
24
|
+
* row/column input.
|
|
25
|
+
*
|
|
26
|
+
* Uses the shared split algorithm from utils/tableSplitAlgorithm.ts for the
|
|
27
|
+
* core layout computation, then maps the result back into ProseMirror
|
|
28
|
+
* transactions.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
interface SplitCellDialogConfig {
|
|
32
|
+
minRows: number;
|
|
33
|
+
minCols: number;
|
|
34
|
+
initialRows: number;
|
|
35
|
+
initialCols: number;
|
|
36
|
+
/** Captured row index of the target cell at dialog-open time */
|
|
37
|
+
capturedCellRow: number;
|
|
38
|
+
/** Captured column index of the target cell at dialog-open time */
|
|
39
|
+
capturedCellCol: number;
|
|
40
|
+
}
|
|
41
|
+
declare function getSplitCellDialogConfig(state: EditorState): SplitCellDialogConfig | null;
|
|
42
|
+
declare function splitActiveTableCell(state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, rows: number, cols: number,
|
|
43
|
+
/** Target cell row/col captured at dialog-open time. Falls back to current cursor. */
|
|
44
|
+
targetRow?: number, targetCol?: number): boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Image commands — thin re-exports from the extension system.
|
|
48
|
+
*
|
|
49
|
+
* Wrap-type transitions for floating images. Inline↔anchor conversions are
|
|
50
|
+
* structural and live in a follow-up; this surface only covers anchor↔anchor.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Insert an image node at `pos`, wrapping with the `insertion` mark when
|
|
55
|
+
* suggesting mode is active. Centralizes the tracked-image-insert flow
|
|
56
|
+
* so React `useFileIO`, Vue `useImageActions`, and clipboard-paste
|
|
57
|
+
* paths all share one source of truth — adding a fresh image in
|
|
58
|
+
* suggesting mode always round-trips as `<w:ins>{run with drawing}</w:ins>`.
|
|
59
|
+
*
|
|
60
|
+
* Caller responsibility: produce the `image` node via `schema.nodes.image.create`.
|
|
61
|
+
* This helper handles the dispatch + optional mark application.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
declare function insertImageNode(state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, imageNode: Node, pos: number): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Change a floating image's wrap layout. `pos` is the PM document position of
|
|
68
|
+
* the image node; `target` is either an OOXML wrap type (square / tight /
|
|
69
|
+
* topAndBottom / behind / inFront / inline) or a directional convenience
|
|
70
|
+
* choice (`squareLeft` / `squareRight`).
|
|
71
|
+
*
|
|
72
|
+
* `opts.initialPositionEmu` is used when promoting an inline image to an
|
|
73
|
+
* anchor — the caller measures the image's current rendered offset relative
|
|
74
|
+
* to the column origin in EMUs and passes it through, so the new float lands
|
|
75
|
+
* exactly where the inline glyph used to sit (matches Word's behavior).
|
|
76
|
+
*/
|
|
77
|
+
declare function setImageWrapType(pos: number, target: ImageLayoutTarget, opts?: SetImageWrapTypeOptions): Command;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Comment and Track Changes Commands
|
|
81
|
+
*
|
|
82
|
+
* PM commands for adding/removing comments and accepting/rejecting tracked changes.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Add a comment mark to the current selection.
|
|
87
|
+
*/
|
|
88
|
+
declare function addCommentMark(commentId: number): Command;
|
|
89
|
+
/**
|
|
90
|
+
* Remove a comment mark by ID from the entire document.
|
|
91
|
+
*/
|
|
92
|
+
declare function removeCommentMark(commentId: number): Command;
|
|
93
|
+
/**
|
|
94
|
+
* Accept a tracked change at the given range.
|
|
95
|
+
* - Insertion: remove mark, keep text
|
|
96
|
+
* - Deletion: remove mark AND text
|
|
97
|
+
*
|
|
98
|
+
* Use {@link acceptChangeById} when accepting a coalesced revision —
|
|
99
|
+
* a single editing session can scatter sites across multiple paragraphs
|
|
100
|
+
* and only the by-id resolver walks every site.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* import { acceptChange } from '@zeke-02/docx-editor-core/prosemirror/commands';
|
|
105
|
+
* acceptChange(from, to)(view.state, view.dispatch);
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
declare function acceptChange(from: number, to: number): Command;
|
|
109
|
+
/**
|
|
110
|
+
* Reject a tracked change at the given range.
|
|
111
|
+
* - Insertion: remove mark AND text
|
|
112
|
+
* - Deletion: remove mark, keep text
|
|
113
|
+
*
|
|
114
|
+
* Use {@link rejectChangeById} when rejecting a coalesced revision.
|
|
115
|
+
*/
|
|
116
|
+
declare function rejectChange(from: number, to: number): Command;
|
|
117
|
+
/**
|
|
118
|
+
* Accept every tracked change in the document — inline marks plus
|
|
119
|
+
* structural revisions (paragraph-mark, row, cell, property changes).
|
|
120
|
+
*
|
|
121
|
+
* Dispatches one transaction per distinct `revisionId` so each revision
|
|
122
|
+
* remains individually undoable. The acceptance order follows document
|
|
123
|
+
* order; later transactions read fresh state and skip ids whose sites
|
|
124
|
+
* were already removed.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* import { acceptAllChanges } from '@zeke-02/docx-editor-core/prosemirror/commands';
|
|
129
|
+
* acceptAllChanges()(view.state, view.dispatch);
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
declare function acceptAllChanges(): Command;
|
|
133
|
+
/**
|
|
134
|
+
* Reject all tracked changes in the document — inverse of `acceptAllChanges`.
|
|
135
|
+
*/
|
|
136
|
+
declare function rejectAllChanges(): Command;
|
|
137
|
+
interface ChangeRange {
|
|
138
|
+
from: number;
|
|
139
|
+
to: number;
|
|
140
|
+
type: 'insertion' | 'deletion';
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Find the next tracked-change range (inline insertion / deletion mark)
|
|
144
|
+
* after `startPos`. Wraps to the document start when no later change is
|
|
145
|
+
* found. Useful for "next change" / "previous change" toolbar buttons.
|
|
146
|
+
*
|
|
147
|
+
* Only walks inline marks — structural revisions (pPrIns / pPrDel / row
|
|
148
|
+
* / cell) are not surfaced here. Use {@link extractTrackedChanges} for a
|
|
149
|
+
* complete revision list.
|
|
150
|
+
*/
|
|
151
|
+
declare function findNextChange(state: EditorState, startPos: number): ChangeRange | null;
|
|
152
|
+
/**
|
|
153
|
+
* Accept every site of a tracked revision in one PM transaction. Walks
|
|
154
|
+
* the doc for all sites carrying `revisionId` — inline insertion/
|
|
155
|
+
* deletion marks, paragraph-mark `pPrIns` / `pPrDel`, paragraph
|
|
156
|
+
* property changes, table row / cell / table revisions — and applies
|
|
157
|
+
* the accept semantics each requires.
|
|
158
|
+
*
|
|
159
|
+
* This is the right command for any coalesced revision (Enter chains,
|
|
160
|
+
* replace pairs, multi-paragraph runs) because one editing session can
|
|
161
|
+
* scatter sites across the doc; the range-based {@link acceptChange}
|
|
162
|
+
* only clears sites within its `(from, to)`.
|
|
163
|
+
*
|
|
164
|
+
* Returns `false` (no-op) if the id is not present.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```ts
|
|
168
|
+
* import { acceptChangeById } from '@zeke-02/docx-editor-core/prosemirror/commands';
|
|
169
|
+
* acceptChangeById(revisionId)(view.state, view.dispatch);
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
declare function acceptChangeById(revisionId: number): Command;
|
|
173
|
+
/**
|
|
174
|
+
* Reject every site of a tracked revision in one PM transaction.
|
|
175
|
+
* Inverse of {@link acceptChangeById} — inserts are removed, deletions
|
|
176
|
+
* keep their text, paragraph-mark insertions join paragraphs back,
|
|
177
|
+
* paragraph-mark deletions stay split, paragraph property changes
|
|
178
|
+
* restore prior values, and tracked row insertions are removed.
|
|
179
|
+
*/
|
|
180
|
+
declare function rejectChangeById(revisionId: number): Command;
|
|
181
|
+
/**
|
|
182
|
+
* Find the previous tracked-change range (inline insertion / deletion
|
|
183
|
+
* mark) before `startPos`. Wraps to the document end when no earlier
|
|
184
|
+
* change is found. Counterpart to {@link findNextChange}.
|
|
185
|
+
*/
|
|
186
|
+
declare function findPreviousChange(state: EditorState, startPos: number): ChangeRange | null;
|
|
187
|
+
|
|
188
|
+
export { ImageLayoutTarget, SetImageWrapTypeOptions, type SplitCellDialogConfig, acceptAllChanges, acceptChange, acceptChangeById, addCommentMark, findNextChange, findPreviousChange, getSplitCellDialogConfig, insertImageNode, rejectAllChanges, rejectChange, rejectChangeById, removeCommentMark, setImageWrapType, splitActiveTableCell };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkXNDGWWDT_js=require('../../chunk-XNDGWWDT.js'),chunkNMUHXIF5_js=require('../../chunk-NMUHXIF5.js'),chunkDZYYLV2O_js=require('../../chunk-DZYYLV2O.js'),chunkGGPKPXON_js=require('../../chunk-GGPKPXON.js');require('../../chunk-2KHWHVTA.js'),require('../../chunk-2HFQ4QTU.js'),require('../../chunk-SHJBS42Y.js');var chunkMCFHOMA2_js=require('../../chunk-MCFHOMA2.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js');var chunkYTDWMXNS_js=require('../../chunk-YTDWMXNS.js');require('../../chunk-6LVPRTB6.js');var chunkTUIEV7Q7_js=require('../../chunk-TUIEV7Q7.js');require('../../chunk-7HANRHHL.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-C2BAPYGJ.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"acceptAllChanges",{enumerable:true,get:function(){return chunkXNDGWWDT_js.O}});Object.defineProperty(exports,"acceptChange",{enumerable:true,get:function(){return chunkXNDGWWDT_js.M}});Object.defineProperty(exports,"acceptChangeById",{enumerable:true,get:function(){return chunkXNDGWWDT_js.R}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkXNDGWWDT_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkXNDGWWDT_js.h}});Object.defineProperty(exports,"addCommentMark",{enumerable:true,get:function(){return chunkXNDGWWDT_js.K}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkXNDGWWDT_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkXNDGWWDT_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkXNDGWWDT_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkXNDGWWDT_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkXNDGWWDT_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkXNDGWWDT_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkXNDGWWDT_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkXNDGWWDT_js.B}});Object.defineProperty(exports,"findNextChange",{enumerable:true,get:function(){return chunkXNDGWWDT_js.Q}});Object.defineProperty(exports,"findPreviousChange",{enumerable:true,get:function(){return chunkXNDGWWDT_js.T}});Object.defineProperty(exports,"getSplitCellDialogConfig",{enumerable:true,get:function(){return chunkXNDGWWDT_js.a}});Object.defineProperty(exports,"insertImageNode",{enumerable:true,get:function(){return chunkXNDGWWDT_js.I}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkXNDGWWDT_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkXNDGWWDT_js.n}});Object.defineProperty(exports,"rejectAllChanges",{enumerable:true,get:function(){return chunkXNDGWWDT_js.P}});Object.defineProperty(exports,"rejectChange",{enumerable:true,get:function(){return chunkXNDGWWDT_js.N}});Object.defineProperty(exports,"rejectChangeById",{enumerable:true,get:function(){return chunkXNDGWWDT_js.S}});Object.defineProperty(exports,"removeCommentMark",{enumerable:true,get:function(){return chunkXNDGWWDT_js.L}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkXNDGWWDT_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkXNDGWWDT_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkXNDGWWDT_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkXNDGWWDT_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkXNDGWWDT_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkXNDGWWDT_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkXNDGWWDT_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkXNDGWWDT_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkXNDGWWDT_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkXNDGWWDT_js.v}});Object.defineProperty(exports,"setImageWrapType",{enumerable:true,get:function(){return chunkXNDGWWDT_js.J}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkXNDGWWDT_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkXNDGWWDT_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkXNDGWWDT_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkXNDGWWDT_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkXNDGWWDT_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkXNDGWWDT_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkXNDGWWDT_js.D}});Object.defineProperty(exports,"splitActiveTableCell",{enumerable:true,get:function(){return chunkXNDGWWDT_js.b}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkXNDGWWDT_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkXNDGWWDT_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkXNDGWWDT_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkNMUHXIF5_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkNMUHXIF5_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkNMUHXIF5_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkNMUHXIF5_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkNMUHXIF5_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkNMUHXIF5_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkNMUHXIF5_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkNMUHXIF5_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkNMUHXIF5_js.r}});Object.defineProperty(exports,"doubleSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.i}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkNMUHXIF5_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkNMUHXIF5_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkNMUHXIF5_js.q}});Object.defineProperty(exports,"oneAndHalfSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.h}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkNMUHXIF5_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkNMUHXIF5_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkNMUHXIF5_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkNMUHXIF5_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkNMUHXIF5_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkNMUHXIF5_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkNMUHXIF5_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkNMUHXIF5_js.B}});Object.defineProperty(exports,"setSpaceAfter",{enumerable:true,get:function(){return chunkNMUHXIF5_js.u}});Object.defineProperty(exports,"setSpaceBefore",{enumerable:true,get:function(){return chunkNMUHXIF5_js.t}});Object.defineProperty(exports,"singleSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.g}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkNMUHXIF5_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkNMUHXIF5_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkDZYYLV2O_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkDZYYLV2O_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkDZYYLV2O_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkDZYYLV2O_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkDZYYLV2O_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkDZYYLV2O_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkDZYYLV2O_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkDZYYLV2O_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkDZYYLV2O_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkDZYYLV2O_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkDZYYLV2O_js.h}});Object.defineProperty(exports,"setUnderlineStyle",{enumerable:true,get:function(){return chunkDZYYLV2O_js.p}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkDZYYLV2O_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkDZYYLV2O_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkDZYYLV2O_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkDZYYLV2O_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkDZYYLV2O_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkDZYYLV2O_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkMCFHOMA2_js.h}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkMCFHOMA2_js.f}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkMCFHOMA2_js.j}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkMCFHOMA2_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkMCFHOMA2_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkMCFHOMA2_js.g}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkMCFHOMA2_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkMCFHOMA2_js.e}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkMCFHOMA2_js.i}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkYTDWMXNS_js.f}});Object.defineProperty(exports,"createRemoveMarkCommand",{enumerable:true,get:function(){return chunkYTDWMXNS_js.h}});Object.defineProperty(exports,"createSetMarkCommand",{enumerable:true,get:function(){return chunkYTDWMXNS_js.g}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkYTDWMXNS_js.d}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkYTDWMXNS_js.c}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{O as acceptAllChanges,M as acceptChange,R as acceptChangeById,g as addColumnLeft,h as addColumnRight,K as addCommentMark,d as addRowAbove,e as addRowBelow,E as applyTableStyle,C as autoFitContents,i as deleteColumn,f as deleteRow,j as deleteTable,B as distributeColumns,Q as findNextChange,T as findPreviousChange,a as getSplitCellDialogConfig,I as insertImageNode,c as insertTable,n as mergeCells,P as rejectAllChanges,N as rejectChange,S as rejectChangeById,L as removeCommentMark,r as removeTableBorders,m as selectColumn,l as selectRow,k as selectTable,s as setAllTableBorders,p as setCellBorder,F as setCellFillColor,w as setCellMargins,x as setCellTextDirection,v as setCellVerticalAlign,J as setImageWrapType,u as setInsideTableBorders,t as setOutsideTableBorders,z as setRowHeight,G as setTableBorderColor,H as setTableBorderWidth,q as setTableBorders,D as setTableProperties,b as splitActiveTableCell,o as splitCell,A as toggleHeaderRow,y as toggleNoWrap}from'../../chunk-ZY7EMTZ3.mjs';export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,i as doubleSpacing,D as generateTOC,j as increaseIndent,q as increaseListLevel,h as oneAndHalfSpacing,s as removeList,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,u as setSpaceAfter,t as setSpaceBefore,g as singleSpacing,o as toggleBulletList,p as toggleNumberedList}from'../../chunk-PXE2OWEA.mjs';export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,p as setUnderlineStyle,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../../chunk-QJJQ53V6.mjs';export{a as insertPageBreak}from'../../chunk-3COGZG7O.mjs';import'../../chunk-KQTB5Y7P.mjs';import'../../chunk-G3YJ5RKC.mjs';import'../../chunk-J7NADDC4.mjs';export{h as findHyperlinkRangeAt,f as getHyperlinkAttrs,j as getListInfo,a as getParagraphAlignment,d as getParagraphBidi,g as getSelectedText,c as getStyleId,e as isHyperlinkActive,i as isInList}from'../../chunk-2MSZXH6Q.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';export{f as clearFormatting,h as createRemoveMarkCommand,g as createSetMarkCommand,d as getMarkAttr,c as isMarkActive}from'../../chunk-VHUVPHPI.mjs';import'../../chunk-BGY3CB37.mjs';export{a as getTableContext,b as isInTable}from'../../chunk-ZX26QZJ5.mjs';import'../../chunk-MJ6XZFVD.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page Break Commands
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { Command } from 'prosemirror-state';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Page Break Commands
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Insert a page break at the current cursor position.
|
|
16
|
+
* Always ensures a paragraph follows the page break and places the cursor there.
|
|
17
|
+
*/
|
|
18
|
+
declare const insertPageBreak: Command;
|
|
19
|
+
|
|
20
|
+
export { insertPageBreak };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page Break Commands
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { Command } from 'prosemirror-state';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Page Break Commands
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Insert a page break at the current cursor position.
|
|
16
|
+
* Always ensures a paragraph follows the page break and places the cursor there.
|
|
17
|
+
*/
|
|
18
|
+
declare const insertPageBreak: Command;
|
|
19
|
+
|
|
20
|
+
export { insertPageBreak };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkGGPKPXON_js=require('../../chunk-GGPKPXON.js');require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as insertPageBreak}from'../../chunk-3COGZG7O.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paragraph Formatting Commands — thin re-exports from extension system
|
|
3
|
+
*
|
|
4
|
+
* Alignment, line spacing, indentation, lists, paragraph styles.
|
|
5
|
+
* All implementations live in extensions/; this file re-exports
|
|
6
|
+
* for backward compatibility.
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
import { EditorState, Command } from 'prosemirror-state';
|
|
11
|
+
import { P as ParagraphFormatting, T as TextFormatting, d as ParagraphAlignment, e as TabStop, i as TabStopAlignment, h as TabLeader, L as LineSpacingRule } from '../../formatting-BH4hcZiq.mjs';
|
|
12
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
13
|
+
|
|
14
|
+
interface ResolvedStyleAttrs {
|
|
15
|
+
paragraphFormatting?: ParagraphFormatting;
|
|
16
|
+
runFormatting?: TextFormatting;
|
|
17
|
+
}
|
|
18
|
+
declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;
|
|
19
|
+
declare function getParagraphTabs(state: EditorState): TabStop[] | null;
|
|
20
|
+
declare function getStyleId(state: EditorState): string | null;
|
|
21
|
+
declare function getParagraphBidi(state: EditorState): boolean;
|
|
22
|
+
|
|
23
|
+
declare function isInList(state: EditorState): boolean;
|
|
24
|
+
declare function getListInfo(state: EditorState): {
|
|
25
|
+
numId: number;
|
|
26
|
+
ilvl: number;
|
|
27
|
+
} | null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Paragraph Formatting Commands — thin re-exports from extension system
|
|
31
|
+
*
|
|
32
|
+
* Alignment, line spacing, indentation, lists, paragraph styles.
|
|
33
|
+
* All implementations live in extensions/; this file re-exports
|
|
34
|
+
* for backward compatibility.
|
|
35
|
+
* @packageDocumentation
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
declare function setAlignment(alignment: ParagraphAlignment): Command;
|
|
40
|
+
declare const alignLeft: Command;
|
|
41
|
+
declare const alignCenter: Command;
|
|
42
|
+
declare const alignRight: Command;
|
|
43
|
+
declare const alignJustify: Command;
|
|
44
|
+
declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;
|
|
45
|
+
declare const singleSpacing: Command;
|
|
46
|
+
declare const oneAndHalfSpacing: Command;
|
|
47
|
+
declare const doubleSpacing: Command;
|
|
48
|
+
declare function increaseIndent(amount?: number): Command;
|
|
49
|
+
declare function decreaseIndent(amount?: number): Command;
|
|
50
|
+
declare function setIndentLeft(twips: number): Command;
|
|
51
|
+
declare function setIndentRight(twips: number): Command;
|
|
52
|
+
declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;
|
|
53
|
+
declare const toggleBulletList: Command;
|
|
54
|
+
declare const toggleNumberedList: Command;
|
|
55
|
+
declare const increaseListLevel: Command;
|
|
56
|
+
declare const decreaseListLevel: Command;
|
|
57
|
+
declare const removeList: Command;
|
|
58
|
+
declare function setSpaceBefore(twips: number): Command;
|
|
59
|
+
declare function setSpaceAfter(twips: number): Command;
|
|
60
|
+
declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;
|
|
61
|
+
declare const clearStyle: Command;
|
|
62
|
+
declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;
|
|
63
|
+
declare const removeSectionBreak: Command;
|
|
64
|
+
declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;
|
|
65
|
+
declare function removeTabStop(position: number): Command;
|
|
66
|
+
declare const setRtl: Command;
|
|
67
|
+
declare const setLtr: Command;
|
|
68
|
+
declare const generateTOC: Command;
|
|
69
|
+
|
|
70
|
+
export { type ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getParagraphTabs, getStyleId, increaseIndent, increaseListLevel, insertSectionBreak, isInList, oneAndHalfSpacing, removeList, removeSectionBreak, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paragraph Formatting Commands — thin re-exports from extension system
|
|
3
|
+
*
|
|
4
|
+
* Alignment, line spacing, indentation, lists, paragraph styles.
|
|
5
|
+
* All implementations live in extensions/; this file re-exports
|
|
6
|
+
* for backward compatibility.
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
import { EditorState, Command } from 'prosemirror-state';
|
|
11
|
+
import { P as ParagraphFormatting, T as TextFormatting, d as ParagraphAlignment, e as TabStop, i as TabStopAlignment, h as TabLeader, L as LineSpacingRule } from '../../formatting-_OXU8gLB.js';
|
|
12
|
+
import '../../colors-C3vA7HUU.js';
|
|
13
|
+
|
|
14
|
+
interface ResolvedStyleAttrs {
|
|
15
|
+
paragraphFormatting?: ParagraphFormatting;
|
|
16
|
+
runFormatting?: TextFormatting;
|
|
17
|
+
}
|
|
18
|
+
declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;
|
|
19
|
+
declare function getParagraphTabs(state: EditorState): TabStop[] | null;
|
|
20
|
+
declare function getStyleId(state: EditorState): string | null;
|
|
21
|
+
declare function getParagraphBidi(state: EditorState): boolean;
|
|
22
|
+
|
|
23
|
+
declare function isInList(state: EditorState): boolean;
|
|
24
|
+
declare function getListInfo(state: EditorState): {
|
|
25
|
+
numId: number;
|
|
26
|
+
ilvl: number;
|
|
27
|
+
} | null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Paragraph Formatting Commands — thin re-exports from extension system
|
|
31
|
+
*
|
|
32
|
+
* Alignment, line spacing, indentation, lists, paragraph styles.
|
|
33
|
+
* All implementations live in extensions/; this file re-exports
|
|
34
|
+
* for backward compatibility.
|
|
35
|
+
* @packageDocumentation
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
declare function setAlignment(alignment: ParagraphAlignment): Command;
|
|
40
|
+
declare const alignLeft: Command;
|
|
41
|
+
declare const alignCenter: Command;
|
|
42
|
+
declare const alignRight: Command;
|
|
43
|
+
declare const alignJustify: Command;
|
|
44
|
+
declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;
|
|
45
|
+
declare const singleSpacing: Command;
|
|
46
|
+
declare const oneAndHalfSpacing: Command;
|
|
47
|
+
declare const doubleSpacing: Command;
|
|
48
|
+
declare function increaseIndent(amount?: number): Command;
|
|
49
|
+
declare function decreaseIndent(amount?: number): Command;
|
|
50
|
+
declare function setIndentLeft(twips: number): Command;
|
|
51
|
+
declare function setIndentRight(twips: number): Command;
|
|
52
|
+
declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;
|
|
53
|
+
declare const toggleBulletList: Command;
|
|
54
|
+
declare const toggleNumberedList: Command;
|
|
55
|
+
declare const increaseListLevel: Command;
|
|
56
|
+
declare const decreaseListLevel: Command;
|
|
57
|
+
declare const removeList: Command;
|
|
58
|
+
declare function setSpaceBefore(twips: number): Command;
|
|
59
|
+
declare function setSpaceAfter(twips: number): Command;
|
|
60
|
+
declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;
|
|
61
|
+
declare const clearStyle: Command;
|
|
62
|
+
declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;
|
|
63
|
+
declare const removeSectionBreak: Command;
|
|
64
|
+
declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;
|
|
65
|
+
declare function removeTabStop(position: number): Command;
|
|
66
|
+
declare const setRtl: Command;
|
|
67
|
+
declare const setLtr: Command;
|
|
68
|
+
declare const generateTOC: Command;
|
|
69
|
+
|
|
70
|
+
export { type ResolvedStyleAttrs, addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, doubleSpacing, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getParagraphTabs, getStyleId, increaseIndent, increaseListLevel, insertSectionBreak, isInList, oneAndHalfSpacing, removeList, removeSectionBreak, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, setSpaceAfter, setSpaceBefore, singleSpacing, toggleBulletList, toggleNumberedList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNMUHXIF5_js=require('../../chunk-NMUHXIF5.js');require('../../chunk-SHJBS42Y.js');var chunkMCFHOMA2_js=require('../../chunk-MCFHOMA2.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-YTDWMXNS.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-TUIEV7Q7.js'),require('../../chunk-7HANRHHL.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-C2BAPYGJ.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkNMUHXIF5_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkNMUHXIF5_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkNMUHXIF5_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkNMUHXIF5_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkNMUHXIF5_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkNMUHXIF5_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkNMUHXIF5_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkNMUHXIF5_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkNMUHXIF5_js.r}});Object.defineProperty(exports,"doubleSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.i}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkNMUHXIF5_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkNMUHXIF5_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkNMUHXIF5_js.q}});Object.defineProperty(exports,"insertSectionBreak",{enumerable:true,get:function(){return chunkNMUHXIF5_js.x}});Object.defineProperty(exports,"oneAndHalfSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.h}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkNMUHXIF5_js.s}});Object.defineProperty(exports,"removeSectionBreak",{enumerable:true,get:function(){return chunkNMUHXIF5_js.y}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkNMUHXIF5_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkNMUHXIF5_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkNMUHXIF5_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkNMUHXIF5_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkNMUHXIF5_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkNMUHXIF5_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkNMUHXIF5_js.B}});Object.defineProperty(exports,"setSpaceAfter",{enumerable:true,get:function(){return chunkNMUHXIF5_js.u}});Object.defineProperty(exports,"setSpaceBefore",{enumerable:true,get:function(){return chunkNMUHXIF5_js.t}});Object.defineProperty(exports,"singleSpacing",{enumerable:true,get:function(){return chunkNMUHXIF5_js.g}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkNMUHXIF5_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkNMUHXIF5_js.p}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkMCFHOMA2_js.j}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkMCFHOMA2_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkMCFHOMA2_js.d}});Object.defineProperty(exports,"getParagraphTabs",{enumerable:true,get:function(){return chunkMCFHOMA2_js.b}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkMCFHOMA2_js.c}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkMCFHOMA2_js.i}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,i as doubleSpacing,D as generateTOC,j as increaseIndent,q as increaseListLevel,x as insertSectionBreak,h as oneAndHalfSpacing,s as removeList,y as removeSectionBreak,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,u as setSpaceAfter,t as setSpaceBefore,g as singleSpacing,o as toggleBulletList,p as toggleNumberedList}from'../../chunk-PXE2OWEA.mjs';import'../../chunk-J7NADDC4.mjs';export{j as getListInfo,a as getParagraphAlignment,d as getParagraphBidi,b as getParagraphTabs,c as getStyleId,i as isInList}from'../../chunk-2MSZXH6Q.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-VHUVPHPI.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-ZX26QZJ5.mjs';import'../../chunk-MJ6XZFVD.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror to Document Conversion
|
|
3
|
+
*
|
|
4
|
+
* Converts a ProseMirror document back to our Document type.
|
|
5
|
+
* This enables round-trip editing: DOCX -> Document -> PM -> Document -> DOCX
|
|
6
|
+
*
|
|
7
|
+
* Key responsibilities:
|
|
8
|
+
* - Coalesce consecutive text with same marks into single Runs
|
|
9
|
+
* - Preserve paragraph attributes (paraId, textId, formatting)
|
|
10
|
+
* - Handle marks -> TextFormatting conversion
|
|
11
|
+
*
|
|
12
|
+
* This file owns the top-level orchestrator (`fromProseDoc`) plus block
|
|
13
|
+
* extraction and the page-break paragraph factory. Per-domain converters
|
|
14
|
+
* live under ./fromProseDoc/ (marks, runs, paragraph, tables, textbox).
|
|
15
|
+
* The deep import `@eigenpal/.../prosemirror/conversion/fromProseDoc` is
|
|
16
|
+
* a tsup entry consumed by the Vue adapter — the barrel re-exports
|
|
17
|
+
* preserve that surface.
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
import { Node } from 'prosemirror-model';
|
|
22
|
+
import { Document } from '../../types/document.mjs';
|
|
23
|
+
import { P as Paragraph, T as Table } from '../../content-5Mrz6w_b.mjs';
|
|
24
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
25
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
26
|
+
import '../../styles-EI2lxeEN.mjs';
|
|
27
|
+
import '../../docx/wrapTypes.mjs';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ProseMirror to Document Conversion
|
|
31
|
+
*
|
|
32
|
+
* Converts a ProseMirror document back to our Document type.
|
|
33
|
+
* This enables round-trip editing: DOCX -> Document -> PM -> Document -> DOCX
|
|
34
|
+
*
|
|
35
|
+
* Key responsibilities:
|
|
36
|
+
* - Coalesce consecutive text with same marks into single Runs
|
|
37
|
+
* - Preserve paragraph attributes (paraId, textId, formatting)
|
|
38
|
+
* - Handle marks -> TextFormatting conversion
|
|
39
|
+
*
|
|
40
|
+
* This file owns the top-level orchestrator (`fromProseDoc`) plus block
|
|
41
|
+
* extraction and the page-break paragraph factory. Per-domain converters
|
|
42
|
+
* live under ./fromProseDoc/ (marks, runs, paragraph, tables, textbox).
|
|
43
|
+
* The deep import `@eigenpal/.../prosemirror/conversion/fromProseDoc` is
|
|
44
|
+
* a tsup entry consumed by the Vue adapter — the barrel re-exports
|
|
45
|
+
* preserve that surface.
|
|
46
|
+
* @packageDocumentation
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Convert a ProseMirror document to our Document type
|
|
52
|
+
*/
|
|
53
|
+
declare function fromProseDoc(pmDoc: Node, baseDocument?: Document): Document;
|
|
54
|
+
/**
|
|
55
|
+
* Update a Document with content from a ProseMirror document
|
|
56
|
+
* Preserves all non-content parts of the original document
|
|
57
|
+
*/
|
|
58
|
+
declare function updateDocumentContent(originalDocument: Document, pmDoc: Node): Document;
|
|
59
|
+
/**
|
|
60
|
+
* Convert a ProseMirror document back to an array of Paragraph/Table blocks.
|
|
61
|
+
* Used for converting edited header/footer PM content back to the document model.
|
|
62
|
+
*/
|
|
63
|
+
declare function proseDocToBlocks(pmDoc: Node): (Paragraph | Table)[];
|
|
64
|
+
|
|
65
|
+
export { fromProseDoc, proseDocToBlocks, updateDocumentContent };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror to Document Conversion
|
|
3
|
+
*
|
|
4
|
+
* Converts a ProseMirror document back to our Document type.
|
|
5
|
+
* This enables round-trip editing: DOCX -> Document -> PM -> Document -> DOCX
|
|
6
|
+
*
|
|
7
|
+
* Key responsibilities:
|
|
8
|
+
* - Coalesce consecutive text with same marks into single Runs
|
|
9
|
+
* - Preserve paragraph attributes (paraId, textId, formatting)
|
|
10
|
+
* - Handle marks -> TextFormatting conversion
|
|
11
|
+
*
|
|
12
|
+
* This file owns the top-level orchestrator (`fromProseDoc`) plus block
|
|
13
|
+
* extraction and the page-break paragraph factory. Per-domain converters
|
|
14
|
+
* live under ./fromProseDoc/ (marks, runs, paragraph, tables, textbox).
|
|
15
|
+
* The deep import `@eigenpal/.../prosemirror/conversion/fromProseDoc` is
|
|
16
|
+
* a tsup entry consumed by the Vue adapter — the barrel re-exports
|
|
17
|
+
* preserve that surface.
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
import { Node } from 'prosemirror-model';
|
|
22
|
+
import { Document } from '../../types/document.js';
|
|
23
|
+
import { P as Paragraph, T as Table } from '../../content-CmqAwdFL.js';
|
|
24
|
+
import '../../colors-C3vA7HUU.js';
|
|
25
|
+
import '../../formatting-_OXU8gLB.js';
|
|
26
|
+
import '../../styles-BBv7doYK.js';
|
|
27
|
+
import '../../docx/wrapTypes.js';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* ProseMirror to Document Conversion
|
|
31
|
+
*
|
|
32
|
+
* Converts a ProseMirror document back to our Document type.
|
|
33
|
+
* This enables round-trip editing: DOCX -> Document -> PM -> Document -> DOCX
|
|
34
|
+
*
|
|
35
|
+
* Key responsibilities:
|
|
36
|
+
* - Coalesce consecutive text with same marks into single Runs
|
|
37
|
+
* - Preserve paragraph attributes (paraId, textId, formatting)
|
|
38
|
+
* - Handle marks -> TextFormatting conversion
|
|
39
|
+
*
|
|
40
|
+
* This file owns the top-level orchestrator (`fromProseDoc`) plus block
|
|
41
|
+
* extraction and the page-break paragraph factory. Per-domain converters
|
|
42
|
+
* live under ./fromProseDoc/ (marks, runs, paragraph, tables, textbox).
|
|
43
|
+
* The deep import `@eigenpal/.../prosemirror/conversion/fromProseDoc` is
|
|
44
|
+
* a tsup entry consumed by the Vue adapter — the barrel re-exports
|
|
45
|
+
* preserve that surface.
|
|
46
|
+
* @packageDocumentation
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Convert a ProseMirror document to our Document type
|
|
52
|
+
*/
|
|
53
|
+
declare function fromProseDoc(pmDoc: Node, baseDocument?: Document): Document;
|
|
54
|
+
/**
|
|
55
|
+
* Update a Document with content from a ProseMirror document
|
|
56
|
+
* Preserves all non-content parts of the original document
|
|
57
|
+
*/
|
|
58
|
+
declare function updateDocumentContent(originalDocument: Document, pmDoc: Node): Document;
|
|
59
|
+
/**
|
|
60
|
+
* Convert a ProseMirror document back to an array of Paragraph/Table blocks.
|
|
61
|
+
* Used for converting edited header/footer PM content back to the document model.
|
|
62
|
+
*/
|
|
63
|
+
declare function proseDocToBlocks(pmDoc: Node): (Paragraph | Table)[];
|
|
64
|
+
|
|
65
|
+
export { fromProseDoc, proseDocToBlocks, updateDocumentContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkSWC6T7YQ_js=require('../../chunk-SWC6T7YQ.js');require('../../chunk-D4RPOJC7.js'),require('../../chunk-JFZIXFRC.js'),require('../../chunk-E4JMCA5X.js'),require('../../chunk-HQPWFUP5.js'),require('../../chunk-DV6GWBUJ.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkSWC6T7YQ_js.a}});Object.defineProperty(exports,"proseDocToBlocks",{enumerable:true,get:function(){return chunkSWC6T7YQ_js.c}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkSWC6T7YQ_js.b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as fromProseDoc,c as proseDocToBlocks,b as updateDocumentContent}from'../../chunk-MCX4GVRX.mjs';import'../../chunk-LBKMYD3M.mjs';import'../../chunk-QPFJJPIC.mjs';import'../../chunk-6ZXL3EIP.mjs';import'../../chunk-OEXVWIHW.mjs';import'../../chunk-WLHNIXWC.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
|