@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,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Plugins
|
|
3
|
+
*
|
|
4
|
+
* Selection tracker plugin for the DOCX editor.
|
|
5
|
+
* Keymap plugins are now provided by the extension system.
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.js';
|
|
10
|
+
import { PluginKey, EditorState, Transaction, Plugin } from 'prosemirror-state';
|
|
11
|
+
import { m as RevisionInfo } from '../../content-CmqAwdFL.js';
|
|
12
|
+
import '../../formatting-_OXU8gLB.js';
|
|
13
|
+
import '../../colors-C3vA7HUU.js';
|
|
14
|
+
import '../../docx/wrapTypes.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Suggestion-mode plugin state + shared meta keys.
|
|
18
|
+
*
|
|
19
|
+
* Kept in its own module to avoid an import cycle: every handler file needs
|
|
20
|
+
* the plugin key + meta constants but should not transitively pull in the
|
|
21
|
+
* plugin factory.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
interface SuggestionModeState {
|
|
25
|
+
active: boolean;
|
|
26
|
+
author: string;
|
|
27
|
+
}
|
|
28
|
+
declare const suggestionModeKey: PluginKey<SuggestionModeState>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Suggesting-mode toggle / set / query commands. Each dispatches a meta on
|
|
32
|
+
* the plugin key — the plugin's `state.apply` merges it into
|
|
33
|
+
* `SuggestionModeState`. No-ops gracefully when the plugin isn't mounted.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Toggle suggesting mode on/off. The mounted `createSuggestionModePlugin`
|
|
38
|
+
* is required for the dispatch to have any effect — without it the meta
|
|
39
|
+
* is silently dropped. Returns `false` (no-op) if the plugin is missing.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { toggleSuggestionMode } from '@zeke-02/docx-editor-core/prosemirror/plugins';
|
|
44
|
+
* toggleSuggestionMode(view.state, view.dispatch);
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
declare function toggleSuggestionMode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Set suggesting mode active state and (optionally) author. Author
|
|
50
|
+
* tracks across every revision minted while the mode is on. The
|
|
51
|
+
* mounted `createSuggestionModePlugin` is required.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* import { setSuggestionMode } from '@zeke-02/docx-editor-core/prosemirror/plugins';
|
|
56
|
+
* setSuggestionMode(true, view.state, view.dispatch, 'Jane');
|
|
57
|
+
* // ... typed text now wraps in <w:ins> with author="Jane"
|
|
58
|
+
* setSuggestionMode(false, view.state, view.dispatch);
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare function setSuggestionMode(active: boolean, state: EditorState, dispatch?: (tr: Transaction) => void, author?: string): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Check if suggestion mode is currently active.
|
|
64
|
+
*/
|
|
65
|
+
declare function isSuggestionModeActive(state: EditorState): boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Suggestion Mode Plugin
|
|
69
|
+
*
|
|
70
|
+
* When active, intercepts all text insertions and deletions, wrapping
|
|
71
|
+
* them in tracked-change marks (insertion/deletion) instead of modifying
|
|
72
|
+
* the document directly.
|
|
73
|
+
*
|
|
74
|
+
* - Typed text is marked as insertion (green underline)
|
|
75
|
+
* - Deleted text is NOT removed — it's marked as deletion (red strikethrough)
|
|
76
|
+
* - Text already marked as insertion by the current author is deleted
|
|
77
|
+
* normally (retracting your own suggestion)
|
|
78
|
+
*
|
|
79
|
+
* The implementation is split across this directory for readability:
|
|
80
|
+
* - `state.ts` — plugin key, meta constants, shared types
|
|
81
|
+
* - `markAttrs.ts` — fresh-attr minting + projection
|
|
82
|
+
* - `adjacency.ts` — coalescing lookups (sibling, cross-block, cellMarker)
|
|
83
|
+
* - `handlers/` — keyboard / input handlers (delete, insert, structural)
|
|
84
|
+
* - `commands.ts` — toggle / set / isActive
|
|
85
|
+
* - this file — `createSuggestionModePlugin` + public re-exports
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Create the suggestion-mode ProseMirror plugin. **Must be mounted on
|
|
90
|
+
* the editor view for `setSuggestionMode` and `toggleSuggestionMode`
|
|
91
|
+
* to do anything** — both adapters (`@zeke-02/docx-editor-react`,
|
|
92
|
+
* `@eigenpal/docx-editor-vue`) auto-mount this inside the `DocxEditor`
|
|
93
|
+
* component, so consumers using the bundled components don't need to
|
|
94
|
+
* register it themselves.
|
|
95
|
+
*
|
|
96
|
+
* When active, typed text gets the `insertion` mark, deleted text gets
|
|
97
|
+
* the `deletion` mark (text stays in the doc; the painter strikes it
|
|
98
|
+
* through), Enter sets `pPrIns` on the originating paragraph, and
|
|
99
|
+
* Backspace at paragraph start sets `pPrDel` on the previous paragraph.
|
|
100
|
+
* Author + adjacent same-author marks coalesce into one tracked change.
|
|
101
|
+
*
|
|
102
|
+
* @param initialActive - Whether suggesting mode starts on. Default `false`.
|
|
103
|
+
* @param author - Author name attached to every minted revision. Default `'User'`.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* import { createSuggestionModePlugin } from '@zeke-02/docx-editor-core/prosemirror/plugins';
|
|
108
|
+
*
|
|
109
|
+
* const plugin = createSuggestionModePlugin(false, 'Jane');
|
|
110
|
+
* EditorState.create({ doc, plugins: [plugin, ...other] });
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
declare function createSuggestionModePlugin(initialActive?: boolean, author?: string): Plugin;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Single source of tracked-revision ids across the package.
|
|
117
|
+
*
|
|
118
|
+
* Why a shared module-level counter:
|
|
119
|
+
*
|
|
120
|
+
* - Each `revisionId` is the OOXML `<w:ins w:id="…"/>` attribute. Two
|
|
121
|
+
* unrelated revisions emitted by the same author with the same id
|
|
122
|
+
* would silently collapse in the sidebar (grouped by id+author+date)
|
|
123
|
+
* and on accept (resolved by id), so collisions are observable.
|
|
124
|
+
* - Pre-refactor, three call sites each kept their own
|
|
125
|
+
* `Date.now() + offset` counter (suggestionMode.ts, table commands
|
|
126
|
+
* delete.ts, table commands insert.ts). Offsets made first-load
|
|
127
|
+
* collisions rare but not impossible — counters drift independently,
|
|
128
|
+
* and parallel-browser Playwright workers can start from identical
|
|
129
|
+
* `Date.now()` seeds.
|
|
130
|
+
*
|
|
131
|
+
* Routing every mint through this module guarantees within-realm
|
|
132
|
+
* uniqueness even when callers interleave across plugins, commands, and
|
|
133
|
+
* test harnesses.
|
|
134
|
+
*
|
|
135
|
+
* Re-exported as `@public` through `prosemirror/plugins/index.ts` so
|
|
136
|
+
* adapter integrations (image insertion, custom commands) can mint
|
|
137
|
+
* revision triples without reaching into the implementation directly.
|
|
138
|
+
*
|
|
139
|
+
* @packageDocumentation
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Build a fresh `RevisionInfo` triple from the active suggesting-mode
|
|
145
|
+
* state. Returns `null` when suggesting mode is OFF — callers use this to
|
|
146
|
+
* decide whether to track an edit or apply it directly.
|
|
147
|
+
*
|
|
148
|
+
* Shared by `suggestionMode.ts`'s text/paragraph handlers and by the
|
|
149
|
+
* suggesting-aware table commands (`addRowBelow`, `deleteRow`, ...). One
|
|
150
|
+
* source of truth for both the mint and the author/date fields.
|
|
151
|
+
*/
|
|
152
|
+
declare function makeRevisionInfo(state: EditorState): RevisionInfo | null;
|
|
153
|
+
|
|
154
|
+
export { RevisionInfo, createSuggestionModePlugin, isSuggestionModeActive, makeRevisionInfo, setSuggestionMode, suggestionModeKey, toggleSuggestionMode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';require('../../chunk-U74VPTIU.js');var chunk2HFQ4QTU_js=require('../../chunk-2HFQ4QTU.js');require('../../chunk-YTDWMXNS.js');var chunk6LVPRTB6_js=require('../../chunk-6LVPRTB6.js'),chunk7HANRHHL_js=require('../../chunk-7HANRHHL.js');require('../../chunk-Q4CKLXWA.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"createSuggestionModePlugin",{enumerable:true,get:function(){return chunk2HFQ4QTU_js.d}});Object.defineProperty(exports,"isSuggestionModeActive",{enumerable:true,get:function(){return chunk2HFQ4QTU_js.c}});Object.defineProperty(exports,"setSuggestionMode",{enumerable:true,get:function(){return chunk2HFQ4QTU_js.b}});Object.defineProperty(exports,"toggleSuggestionMode",{enumerable:true,get:function(){return chunk2HFQ4QTU_js.a}});Object.defineProperty(exports,"createSelectionTrackerPlugin",{enumerable:true,get:function(){return chunk6LVPRTB6_js.c}});Object.defineProperty(exports,"extractSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.b}});Object.defineProperty(exports,"getSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.d}});Object.defineProperty(exports,"selectionTrackerKey",{enumerable:true,get:function(){return chunk6LVPRTB6_js.a}});Object.defineProperty(exports,"makeRevisionInfo",{enumerable:true,get:function(){return chunk7HANRHHL_js.i}});Object.defineProperty(exports,"suggestionModeKey",{enumerable:true,get:function(){return chunk7HANRHHL_js.e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'../../chunk-FDEDN2RC.mjs';export{d as createSuggestionModePlugin,c as isSuggestionModeActive,b as setSuggestionMode,a as toggleSuggestionMode}from'../../chunk-G3YJ5RKC.mjs';import'../../chunk-VHUVPHPI.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../../chunk-BGY3CB37.mjs';export{i as makeRevisionInfo,e as suggestionModeKey}from'../../chunk-MJ6XZFVD.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selection Tracker Plugin
|
|
3
|
+
*
|
|
4
|
+
* Tracks selection changes and emits events for toolbar state updates.
|
|
5
|
+
* Provides the current selection context including:
|
|
6
|
+
* - Text formatting at cursor/selection
|
|
7
|
+
* - Paragraph formatting
|
|
8
|
+
* - Selection range information
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, EditorState, PluginKey } from 'prosemirror-state';
|
|
13
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-BH4hcZiq.mjs';
|
|
14
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Selection Tracker Plugin
|
|
18
|
+
*
|
|
19
|
+
* Tracks selection changes and emits events for toolbar state updates.
|
|
20
|
+
* Provides the current selection context including:
|
|
21
|
+
* - Text formatting at cursor/selection
|
|
22
|
+
* - Paragraph formatting
|
|
23
|
+
* - Selection range information
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Selection context for toolbar state
|
|
30
|
+
*/
|
|
31
|
+
interface SelectionContext {
|
|
32
|
+
/** Whether there's a non-collapsed selection */
|
|
33
|
+
hasSelection: boolean;
|
|
34
|
+
/** Whether selection spans multiple paragraphs */
|
|
35
|
+
isMultiParagraph: boolean;
|
|
36
|
+
/** Current text formatting at cursor/selection */
|
|
37
|
+
textFormatting: TextFormatting;
|
|
38
|
+
/** Current paragraph formatting */
|
|
39
|
+
paragraphFormatting: ParagraphFormatting;
|
|
40
|
+
/** Start paragraph index */
|
|
41
|
+
startParagraphIndex: number;
|
|
42
|
+
/** End paragraph index */
|
|
43
|
+
endParagraphIndex: number;
|
|
44
|
+
/** Whether cursor is in a list */
|
|
45
|
+
inList: boolean;
|
|
46
|
+
/** List type if in list */
|
|
47
|
+
listType?: 'bullet' | 'numbered';
|
|
48
|
+
/** List level (0-8) */
|
|
49
|
+
listLevel?: number;
|
|
50
|
+
/** Active comment IDs at cursor position */
|
|
51
|
+
activeCommentIds: number[];
|
|
52
|
+
/** Whether cursor is inside a tracked insertion */
|
|
53
|
+
inInsertion: boolean;
|
|
54
|
+
/** Whether cursor is inside a tracked deletion */
|
|
55
|
+
inDeletion: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Plugin key for accessing selection tracker state
|
|
59
|
+
*/
|
|
60
|
+
declare const selectionTrackerKey: PluginKey<SelectionContext>;
|
|
61
|
+
/**
|
|
62
|
+
* Callback type for selection changes
|
|
63
|
+
*/
|
|
64
|
+
type SelectionChangeCallback = (context: SelectionContext) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Extract selection context from editor state
|
|
67
|
+
*/
|
|
68
|
+
declare function extractSelectionContext(state: EditorState): SelectionContext;
|
|
69
|
+
/**
|
|
70
|
+
* Create selection tracker plugin
|
|
71
|
+
*/
|
|
72
|
+
declare function createSelectionTrackerPlugin(onSelectionChange?: SelectionChangeCallback): Plugin;
|
|
73
|
+
/**
|
|
74
|
+
* Get current selection context from editor state
|
|
75
|
+
*/
|
|
76
|
+
declare function getSelectionContext(state: EditorState): SelectionContext | null;
|
|
77
|
+
|
|
78
|
+
export { type SelectionChangeCallback, type SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selection Tracker Plugin
|
|
3
|
+
*
|
|
4
|
+
* Tracks selection changes and emits events for toolbar state updates.
|
|
5
|
+
* Provides the current selection context including:
|
|
6
|
+
* - Text formatting at cursor/selection
|
|
7
|
+
* - Paragraph formatting
|
|
8
|
+
* - Selection range information
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, EditorState, PluginKey } from 'prosemirror-state';
|
|
13
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-_OXU8gLB.js';
|
|
14
|
+
import '../../colors-C3vA7HUU.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Selection Tracker Plugin
|
|
18
|
+
*
|
|
19
|
+
* Tracks selection changes and emits events for toolbar state updates.
|
|
20
|
+
* Provides the current selection context including:
|
|
21
|
+
* - Text formatting at cursor/selection
|
|
22
|
+
* - Paragraph formatting
|
|
23
|
+
* - Selection range information
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Selection context for toolbar state
|
|
30
|
+
*/
|
|
31
|
+
interface SelectionContext {
|
|
32
|
+
/** Whether there's a non-collapsed selection */
|
|
33
|
+
hasSelection: boolean;
|
|
34
|
+
/** Whether selection spans multiple paragraphs */
|
|
35
|
+
isMultiParagraph: boolean;
|
|
36
|
+
/** Current text formatting at cursor/selection */
|
|
37
|
+
textFormatting: TextFormatting;
|
|
38
|
+
/** Current paragraph formatting */
|
|
39
|
+
paragraphFormatting: ParagraphFormatting;
|
|
40
|
+
/** Start paragraph index */
|
|
41
|
+
startParagraphIndex: number;
|
|
42
|
+
/** End paragraph index */
|
|
43
|
+
endParagraphIndex: number;
|
|
44
|
+
/** Whether cursor is in a list */
|
|
45
|
+
inList: boolean;
|
|
46
|
+
/** List type if in list */
|
|
47
|
+
listType?: 'bullet' | 'numbered';
|
|
48
|
+
/** List level (0-8) */
|
|
49
|
+
listLevel?: number;
|
|
50
|
+
/** Active comment IDs at cursor position */
|
|
51
|
+
activeCommentIds: number[];
|
|
52
|
+
/** Whether cursor is inside a tracked insertion */
|
|
53
|
+
inInsertion: boolean;
|
|
54
|
+
/** Whether cursor is inside a tracked deletion */
|
|
55
|
+
inDeletion: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Plugin key for accessing selection tracker state
|
|
59
|
+
*/
|
|
60
|
+
declare const selectionTrackerKey: PluginKey<SelectionContext>;
|
|
61
|
+
/**
|
|
62
|
+
* Callback type for selection changes
|
|
63
|
+
*/
|
|
64
|
+
type SelectionChangeCallback = (context: SelectionContext) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Extract selection context from editor state
|
|
67
|
+
*/
|
|
68
|
+
declare function extractSelectionContext(state: EditorState): SelectionContext;
|
|
69
|
+
/**
|
|
70
|
+
* Create selection tracker plugin
|
|
71
|
+
*/
|
|
72
|
+
declare function createSelectionTrackerPlugin(onSelectionChange?: SelectionChangeCallback): Plugin;
|
|
73
|
+
/**
|
|
74
|
+
* Get current selection context from editor state
|
|
75
|
+
*/
|
|
76
|
+
declare function getSelectionContext(state: EditorState): SelectionContext | null;
|
|
77
|
+
|
|
78
|
+
export { type SelectionChangeCallback, type SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk6LVPRTB6_js=require('../../chunk-6LVPRTB6.js');require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"createSelectionTrackerPlugin",{enumerable:true,get:function(){return chunk6LVPRTB6_js.c}});Object.defineProperty(exports,"extractSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.b}});Object.defineProperty(exports,"getSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.d}});Object.defineProperty(exports,"selectionTrackerKey",{enumerable:true,get:function(){return chunk6LVPRTB6_js.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../../chunk-BGY3CB37.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Schema for DOCX Editor
|
|
3
|
+
*
|
|
4
|
+
* Singleton ExtensionManager that builds the schema and initializes runtime.
|
|
5
|
+
* Legacy code imports `schema` and commands from here; new code should use
|
|
6
|
+
* ExtensionManager directly.
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
import * as prosemirror_model from 'prosemirror-model';
|
|
11
|
+
import { a as ExtensionManager } from '../../types-RchZmPFN.mjs';
|
|
12
|
+
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-7753Bgi_.mjs';
|
|
13
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../../marks-BY573yZn.mjs';
|
|
14
|
+
import 'prosemirror-state';
|
|
15
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
16
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
17
|
+
import '../../content-5Mrz6w_b.mjs';
|
|
18
|
+
import '../../docx/wrapTypes.mjs';
|
|
19
|
+
|
|
20
|
+
declare const singletonManager: ExtensionManager;
|
|
21
|
+
declare const schema: prosemirror_model.Schema<any, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Export types for convenience
|
|
24
|
+
*/
|
|
25
|
+
type DocxSchema = typeof schema;
|
|
26
|
+
type DocxNode = ReturnType<typeof schema.node>;
|
|
27
|
+
type DocxMark = ReturnType<typeof schema.mark>;
|
|
28
|
+
|
|
29
|
+
export { type DocxMark, type DocxNode, type DocxSchema, schema, singletonManager };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Schema for DOCX Editor
|
|
3
|
+
*
|
|
4
|
+
* Singleton ExtensionManager that builds the schema and initializes runtime.
|
|
5
|
+
* Legacy code imports `schema` and commands from here; new code should use
|
|
6
|
+
* ExtensionManager directly.
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
import * as prosemirror_model from 'prosemirror-model';
|
|
11
|
+
import { a as ExtensionManager } from '../../types-RchZmPFN.js';
|
|
12
|
+
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-CC_nwkT_.js';
|
|
13
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../../marks-CjC9tF5k.js';
|
|
14
|
+
import 'prosemirror-state';
|
|
15
|
+
import '../../colors-C3vA7HUU.js';
|
|
16
|
+
import '../../formatting-_OXU8gLB.js';
|
|
17
|
+
import '../../content-CmqAwdFL.js';
|
|
18
|
+
import '../../docx/wrapTypes.js';
|
|
19
|
+
|
|
20
|
+
declare const singletonManager: ExtensionManager;
|
|
21
|
+
declare const schema: prosemirror_model.Schema<any, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Export types for convenience
|
|
24
|
+
*/
|
|
25
|
+
type DocxSchema = typeof schema;
|
|
26
|
+
type DocxNode = ReturnType<typeof schema.node>;
|
|
27
|
+
type DocxMark = ReturnType<typeof schema.mark>;
|
|
28
|
+
|
|
29
|
+
export { type DocxMark, type DocxNode, type DocxSchema, schema, singletonManager };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkSHJBS42Y_js=require('../../chunk-SHJBS42Y.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,"schema",{enumerable:true,get:function(){return chunkSHJBS42Y_js.b}});Object.defineProperty(exports,"singletonManager",{enumerable:true,get:function(){return chunkSHJBS42Y_js.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as schema,a as singletonManager}from'../../chunk-J7NADDC4.mjs';import'../../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,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style utilities for ProseMirror editor
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-BH4hcZiq.mjs';
|
|
7
|
+
import { a as StyleDefinitions, S as Style, D as DocDefaults } from '../../styles-EI2lxeEN.mjs';
|
|
8
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Style Resolver for ProseMirror Editor
|
|
12
|
+
*
|
|
13
|
+
* Resolves OOXML style definitions to final paragraph and run properties.
|
|
14
|
+
* Handles the cascade:
|
|
15
|
+
* 1. Document defaults (docDefaults)
|
|
16
|
+
* 2. Normal style (if no explicit styleId)
|
|
17
|
+
* 3. Style chain (basedOn inheritance - already resolved by styleParser)
|
|
18
|
+
* 4. Inline properties
|
|
19
|
+
*
|
|
20
|
+
* Based on ECMA-376 style cascade rules.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Resolved style properties ready for rendering
|
|
25
|
+
*/
|
|
26
|
+
interface ResolvedParagraphStyle {
|
|
27
|
+
/** Paragraph formatting (alignment, spacing, indentation, etc.) */
|
|
28
|
+
paragraphFormatting?: ParagraphFormatting;
|
|
29
|
+
/** Default run formatting from the style */
|
|
30
|
+
runFormatting?: TextFormatting;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* StyleResolver provides efficient access to resolved style properties
|
|
34
|
+
*/
|
|
35
|
+
declare class StyleResolver {
|
|
36
|
+
private readonly stylesById;
|
|
37
|
+
private readonly docDefaults;
|
|
38
|
+
private readonly defaultParagraphStyle;
|
|
39
|
+
private readonly defaultTableStyle;
|
|
40
|
+
private readonly defaultCharacterStyle;
|
|
41
|
+
constructor(styleDefinitions: StyleDefinitions | undefined);
|
|
42
|
+
/**
|
|
43
|
+
* Get a style by ID
|
|
44
|
+
*/
|
|
45
|
+
getStyle(styleId: string): Style | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Get all available paragraph styles (for toolbar dropdown)
|
|
48
|
+
*/
|
|
49
|
+
getParagraphStyles(): Style[];
|
|
50
|
+
/**
|
|
51
|
+
* Whether a paragraph style with the given id is defined in the
|
|
52
|
+
* document's `styles.xml`. Used by the agent toolkit to refuse
|
|
53
|
+
* `set_paragraph_style({ styleId: 'NoSuchStyle' })` instead of
|
|
54
|
+
* silently writing an invalid `<w:pStyle>` reference.
|
|
55
|
+
*/
|
|
56
|
+
hasParagraphStyle(styleId: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Resolve paragraph style properties, including docDefaults cascade
|
|
59
|
+
*
|
|
60
|
+
* @param styleId - The style ID to resolve (e.g., 'Heading1', 'Normal')
|
|
61
|
+
* @returns Resolved paragraph and run formatting
|
|
62
|
+
*/
|
|
63
|
+
resolveParagraphStyle(styleId: string | undefined | null): ResolvedParagraphStyle;
|
|
64
|
+
/**
|
|
65
|
+
* Get all available table styles (for style gallery)
|
|
66
|
+
*/
|
|
67
|
+
getTableStyles(): Style[];
|
|
68
|
+
/**
|
|
69
|
+
* Resolve run (character) style properties
|
|
70
|
+
*
|
|
71
|
+
* @param styleId - The character style ID to resolve
|
|
72
|
+
* @returns Resolved text formatting
|
|
73
|
+
*/
|
|
74
|
+
resolveRunStyle(styleId: string | undefined | null): TextFormatting | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Get a character style's own properties WITHOUT docDefaults.
|
|
77
|
+
* Used when the caller already has docDefaults applied (e.g., from paragraph style resolution).
|
|
78
|
+
* This prevents docDefault fonts from incorrectly overriding paragraph style fonts.
|
|
79
|
+
*/
|
|
80
|
+
getRunStyleOwnProperties(styleId: string | undefined | null): TextFormatting | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Get document defaults
|
|
83
|
+
*/
|
|
84
|
+
getDocDefaults(): DocDefaults | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Get default paragraph style (usually "Normal")
|
|
87
|
+
*/
|
|
88
|
+
getDefaultParagraphStyle(): Style | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Get the default table style (the one marked `w:default="1"`).
|
|
91
|
+
*
|
|
92
|
+
* Per ECMA-376 §17.7.4.18, tables that don't specify a `w:tblStyle`
|
|
93
|
+
* inherit from this style. The styleId varies by document language
|
|
94
|
+
* ("Normal Table", "TableNormal", "Tabelanormal", etc.) — find it by
|
|
95
|
+
* the parsed `default` flag, not by name.
|
|
96
|
+
*/
|
|
97
|
+
getDefaultTableStyle(): Style | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Get the default character style (the one marked `w:default="1"`).
|
|
100
|
+
*
|
|
101
|
+
* Per ECMA-376 §17.7.4.18, runs without an explicit `w:rStyle` reference
|
|
102
|
+
* inherit from this style. The styleId varies by document language
|
|
103
|
+
* ("Default Paragraph Font", "FontePadrao", "Fontepargpadro" in
|
|
104
|
+
* Portuguese fixtures, etc.) — find it by the parsed `default` flag.
|
|
105
|
+
*/
|
|
106
|
+
getDefaultCharacterStyle(): Style | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Check if a style exists
|
|
109
|
+
*/
|
|
110
|
+
hasStyle(styleId: string): boolean;
|
|
111
|
+
private findDefaultStyle;
|
|
112
|
+
private mergeStyleIntoResult;
|
|
113
|
+
/**
|
|
114
|
+
* Merge paragraph formatting (source overrides target)
|
|
115
|
+
*/
|
|
116
|
+
private mergeParagraphFormatting;
|
|
117
|
+
private mergeTextFormatting;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Create a style resolver from document's style definitions
|
|
121
|
+
*/
|
|
122
|
+
declare function createStyleResolver(styleDefinitions: StyleDefinitions | undefined): StyleResolver;
|
|
123
|
+
|
|
124
|
+
export { type ResolvedParagraphStyle, StyleResolver, createStyleResolver };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style utilities for ProseMirror editor
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-_OXU8gLB.js';
|
|
7
|
+
import { a as StyleDefinitions, S as Style, D as DocDefaults } from '../../styles-BBv7doYK.js';
|
|
8
|
+
import '../../colors-C3vA7HUU.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Style Resolver for ProseMirror Editor
|
|
12
|
+
*
|
|
13
|
+
* Resolves OOXML style definitions to final paragraph and run properties.
|
|
14
|
+
* Handles the cascade:
|
|
15
|
+
* 1. Document defaults (docDefaults)
|
|
16
|
+
* 2. Normal style (if no explicit styleId)
|
|
17
|
+
* 3. Style chain (basedOn inheritance - already resolved by styleParser)
|
|
18
|
+
* 4. Inline properties
|
|
19
|
+
*
|
|
20
|
+
* Based on ECMA-376 style cascade rules.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Resolved style properties ready for rendering
|
|
25
|
+
*/
|
|
26
|
+
interface ResolvedParagraphStyle {
|
|
27
|
+
/** Paragraph formatting (alignment, spacing, indentation, etc.) */
|
|
28
|
+
paragraphFormatting?: ParagraphFormatting;
|
|
29
|
+
/** Default run formatting from the style */
|
|
30
|
+
runFormatting?: TextFormatting;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* StyleResolver provides efficient access to resolved style properties
|
|
34
|
+
*/
|
|
35
|
+
declare class StyleResolver {
|
|
36
|
+
private readonly stylesById;
|
|
37
|
+
private readonly docDefaults;
|
|
38
|
+
private readonly defaultParagraphStyle;
|
|
39
|
+
private readonly defaultTableStyle;
|
|
40
|
+
private readonly defaultCharacterStyle;
|
|
41
|
+
constructor(styleDefinitions: StyleDefinitions | undefined);
|
|
42
|
+
/**
|
|
43
|
+
* Get a style by ID
|
|
44
|
+
*/
|
|
45
|
+
getStyle(styleId: string): Style | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Get all available paragraph styles (for toolbar dropdown)
|
|
48
|
+
*/
|
|
49
|
+
getParagraphStyles(): Style[];
|
|
50
|
+
/**
|
|
51
|
+
* Whether a paragraph style with the given id is defined in the
|
|
52
|
+
* document's `styles.xml`. Used by the agent toolkit to refuse
|
|
53
|
+
* `set_paragraph_style({ styleId: 'NoSuchStyle' })` instead of
|
|
54
|
+
* silently writing an invalid `<w:pStyle>` reference.
|
|
55
|
+
*/
|
|
56
|
+
hasParagraphStyle(styleId: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Resolve paragraph style properties, including docDefaults cascade
|
|
59
|
+
*
|
|
60
|
+
* @param styleId - The style ID to resolve (e.g., 'Heading1', 'Normal')
|
|
61
|
+
* @returns Resolved paragraph and run formatting
|
|
62
|
+
*/
|
|
63
|
+
resolveParagraphStyle(styleId: string | undefined | null): ResolvedParagraphStyle;
|
|
64
|
+
/**
|
|
65
|
+
* Get all available table styles (for style gallery)
|
|
66
|
+
*/
|
|
67
|
+
getTableStyles(): Style[];
|
|
68
|
+
/**
|
|
69
|
+
* Resolve run (character) style properties
|
|
70
|
+
*
|
|
71
|
+
* @param styleId - The character style ID to resolve
|
|
72
|
+
* @returns Resolved text formatting
|
|
73
|
+
*/
|
|
74
|
+
resolveRunStyle(styleId: string | undefined | null): TextFormatting | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Get a character style's own properties WITHOUT docDefaults.
|
|
77
|
+
* Used when the caller already has docDefaults applied (e.g., from paragraph style resolution).
|
|
78
|
+
* This prevents docDefault fonts from incorrectly overriding paragraph style fonts.
|
|
79
|
+
*/
|
|
80
|
+
getRunStyleOwnProperties(styleId: string | undefined | null): TextFormatting | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Get document defaults
|
|
83
|
+
*/
|
|
84
|
+
getDocDefaults(): DocDefaults | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Get default paragraph style (usually "Normal")
|
|
87
|
+
*/
|
|
88
|
+
getDefaultParagraphStyle(): Style | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Get the default table style (the one marked `w:default="1"`).
|
|
91
|
+
*
|
|
92
|
+
* Per ECMA-376 §17.7.4.18, tables that don't specify a `w:tblStyle`
|
|
93
|
+
* inherit from this style. The styleId varies by document language
|
|
94
|
+
* ("Normal Table", "TableNormal", "Tabelanormal", etc.) — find it by
|
|
95
|
+
* the parsed `default` flag, not by name.
|
|
96
|
+
*/
|
|
97
|
+
getDefaultTableStyle(): Style | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Get the default character style (the one marked `w:default="1"`).
|
|
100
|
+
*
|
|
101
|
+
* Per ECMA-376 §17.7.4.18, runs without an explicit `w:rStyle` reference
|
|
102
|
+
* inherit from this style. The styleId varies by document language
|
|
103
|
+
* ("Default Paragraph Font", "FontePadrao", "Fontepargpadro" in
|
|
104
|
+
* Portuguese fixtures, etc.) — find it by the parsed `default` flag.
|
|
105
|
+
*/
|
|
106
|
+
getDefaultCharacterStyle(): Style | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Check if a style exists
|
|
109
|
+
*/
|
|
110
|
+
hasStyle(styleId: string): boolean;
|
|
111
|
+
private findDefaultStyle;
|
|
112
|
+
private mergeStyleIntoResult;
|
|
113
|
+
/**
|
|
114
|
+
* Merge paragraph formatting (source overrides target)
|
|
115
|
+
*/
|
|
116
|
+
private mergeParagraphFormatting;
|
|
117
|
+
private mergeTextFormatting;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Create a style resolver from document's style definitions
|
|
121
|
+
*/
|
|
122
|
+
declare function createStyleResolver(styleDefinitions: StyleDefinitions | undefined): StyleResolver;
|
|
123
|
+
|
|
124
|
+
export { type ResolvedParagraphStyle, StyleResolver, createStyleResolver };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkIP2VXNWG_js=require('../../chunk-IP2VXNWG.js');require('../../chunk-MZOVDLYL.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"StyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as StyleResolver,b as createStyleResolver}from'../../chunk-NBLJPT54.mjs';import'../../chunk-ILJUDEZ5.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-QYUPLKLP.mjs';
|