@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,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension System — Barrel Export
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { b as ExtensionDefinition, E as Extension, M as MarkExtensionDefinition, c as MarkExtension, d as NodeExtensionDefinition, N as NodeExtension, A as AnyExtension } from '../../types-RchZmPFN.mjs';
|
|
7
|
+
export { C as CommandMap, e as ExtensionConfig, f as ExtensionContext, a as ExtensionManager, g as ExtensionPriority, h as ExtensionRuntime, K as KeyboardShortcutMap, i as MarkExtensionConfig, j as NodeExtensionConfig, P as Priority } from '../../types-RchZmPFN.mjs';
|
|
8
|
+
import { SelectionChangeCallback } from '../plugins/selectionTracker.mjs';
|
|
9
|
+
import { EditorState, Transaction } from 'prosemirror-state';
|
|
10
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TableRowExtension } from './nodes/TableExtension.mjs';
|
|
11
|
+
export { T as TableContextInfo } from '../../borders-BH_GoYU3.mjs';
|
|
12
|
+
import 'prosemirror-model';
|
|
13
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
14
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Extension Factory Functions
|
|
18
|
+
*
|
|
19
|
+
* Creates extension instances from definitions.
|
|
20
|
+
* Each factory returns a function that accepts options and returns an extension instance.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a generic extension (plugins, commands, keymaps — no schema contribution)
|
|
25
|
+
*/
|
|
26
|
+
declare function createExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: ExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => Extension;
|
|
27
|
+
/**
|
|
28
|
+
* Create a node extension (contributes a NodeSpec to the schema)
|
|
29
|
+
*/
|
|
30
|
+
declare function createNodeExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: NodeExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => NodeExtension;
|
|
31
|
+
/**
|
|
32
|
+
* Create a mark extension (contributes a MarkSpec to the schema)
|
|
33
|
+
*/
|
|
34
|
+
declare function createMarkExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: MarkExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => MarkExtension;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* StarterKit — bundles all extensions into a ready-to-use set
|
|
38
|
+
*
|
|
39
|
+
* Usage:
|
|
40
|
+
* const extensions = createStarterKit();
|
|
41
|
+
* const manager = new ExtensionManager(extensions);
|
|
42
|
+
* manager.buildSchema();
|
|
43
|
+
* manager.initializeRuntime();
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
interface StarterKitOptions {
|
|
47
|
+
/** Extensions to disable by name */
|
|
48
|
+
disable?: string[];
|
|
49
|
+
/** History depth (default: 100) */
|
|
50
|
+
historyDepth?: number;
|
|
51
|
+
/** History new group delay (default: 500) */
|
|
52
|
+
historyNewGroupDelay?: number;
|
|
53
|
+
/** Selection change callback */
|
|
54
|
+
onSelectionChange?: SelectionChangeCallback;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create the full set of extensions for the DOCX editor
|
|
58
|
+
*/
|
|
59
|
+
declare function createStarterKit(options?: StarterKitOptions): AnyExtension[];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get the set of changed paragraph IDs from an EditorState
|
|
63
|
+
*/
|
|
64
|
+
declare function getChangedParagraphIds(state: EditorState): Set<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Check if structural changes (paragraph add/delete) occurred
|
|
67
|
+
*/
|
|
68
|
+
declare function hasStructuralChanges(state: EditorState): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Check if any changes affected paragraphs without paraId
|
|
71
|
+
*/
|
|
72
|
+
declare function hasUntrackedChanges(state: EditorState): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Create a transaction that clears the change tracker
|
|
75
|
+
*/
|
|
76
|
+
declare function clearTrackedChanges(state: EditorState): Transaction;
|
|
77
|
+
declare const ParagraphChangeTrackerExtension: (options?: Partial<{}> | undefined) => Extension;
|
|
78
|
+
|
|
79
|
+
export { AnyExtension, Extension, ExtensionDefinition, MarkExtension, MarkExtensionDefinition, NodeExtension, NodeExtensionDefinition, ParagraphChangeTrackerExtension, type StarterKitOptions, clearTrackedChanges, createExtension, createMarkExtension, createNodeExtension, createStarterKit, getChangedParagraphIds, hasStructuralChanges, hasUntrackedChanges };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension System — Barrel Export
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { b as ExtensionDefinition, E as Extension, M as MarkExtensionDefinition, c as MarkExtension, d as NodeExtensionDefinition, N as NodeExtension, A as AnyExtension } from '../../types-RchZmPFN.js';
|
|
7
|
+
export { C as CommandMap, e as ExtensionConfig, f as ExtensionContext, a as ExtensionManager, g as ExtensionPriority, h as ExtensionRuntime, K as KeyboardShortcutMap, i as MarkExtensionConfig, j as NodeExtensionConfig, P as Priority } from '../../types-RchZmPFN.js';
|
|
8
|
+
import { SelectionChangeCallback } from '../plugins/selectionTracker.js';
|
|
9
|
+
import { EditorState, Transaction } from 'prosemirror-state';
|
|
10
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TableRowExtension } from './nodes/TableExtension.js';
|
|
11
|
+
export { T as TableContextInfo } from '../../borders-Z9hPno2u.js';
|
|
12
|
+
import 'prosemirror-model';
|
|
13
|
+
import '../../formatting-_OXU8gLB.js';
|
|
14
|
+
import '../../colors-C3vA7HUU.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Extension Factory Functions
|
|
18
|
+
*
|
|
19
|
+
* Creates extension instances from definitions.
|
|
20
|
+
* Each factory returns a function that accepts options and returns an extension instance.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a generic extension (plugins, commands, keymaps — no schema contribution)
|
|
25
|
+
*/
|
|
26
|
+
declare function createExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: ExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => Extension;
|
|
27
|
+
/**
|
|
28
|
+
* Create a node extension (contributes a NodeSpec to the schema)
|
|
29
|
+
*/
|
|
30
|
+
declare function createNodeExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: NodeExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => NodeExtension;
|
|
31
|
+
/**
|
|
32
|
+
* Create a mark extension (contributes a MarkSpec to the schema)
|
|
33
|
+
*/
|
|
34
|
+
declare function createMarkExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: MarkExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => MarkExtension;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* StarterKit — bundles all extensions into a ready-to-use set
|
|
38
|
+
*
|
|
39
|
+
* Usage:
|
|
40
|
+
* const extensions = createStarterKit();
|
|
41
|
+
* const manager = new ExtensionManager(extensions);
|
|
42
|
+
* manager.buildSchema();
|
|
43
|
+
* manager.initializeRuntime();
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
interface StarterKitOptions {
|
|
47
|
+
/** Extensions to disable by name */
|
|
48
|
+
disable?: string[];
|
|
49
|
+
/** History depth (default: 100) */
|
|
50
|
+
historyDepth?: number;
|
|
51
|
+
/** History new group delay (default: 500) */
|
|
52
|
+
historyNewGroupDelay?: number;
|
|
53
|
+
/** Selection change callback */
|
|
54
|
+
onSelectionChange?: SelectionChangeCallback;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create the full set of extensions for the DOCX editor
|
|
58
|
+
*/
|
|
59
|
+
declare function createStarterKit(options?: StarterKitOptions): AnyExtension[];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get the set of changed paragraph IDs from an EditorState
|
|
63
|
+
*/
|
|
64
|
+
declare function getChangedParagraphIds(state: EditorState): Set<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Check if structural changes (paragraph add/delete) occurred
|
|
67
|
+
*/
|
|
68
|
+
declare function hasStructuralChanges(state: EditorState): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Check if any changes affected paragraphs without paraId
|
|
71
|
+
*/
|
|
72
|
+
declare function hasUntrackedChanges(state: EditorState): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Create a transaction that clears the change tracker
|
|
75
|
+
*/
|
|
76
|
+
declare function clearTrackedChanges(state: EditorState): Transaction;
|
|
77
|
+
declare const ParagraphChangeTrackerExtension: (options?: Partial<{}> | undefined) => Extension;
|
|
78
|
+
|
|
79
|
+
export { AnyExtension, Extension, ExtensionDefinition, MarkExtension, MarkExtensionDefinition, NodeExtension, NodeExtensionDefinition, ParagraphChangeTrackerExtension, type StarterKitOptions, clearTrackedChanges, createExtension, createMarkExtension, createNodeExtension, createStarterKit, getChangedParagraphIds, hasStructuralChanges, hasUntrackedChanges };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';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');var chunkTUIEV7Q7_js=require('../../chunk-TUIEV7Q7.js'),chunk7HANRHHL_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,"ExtensionManager",{enumerable:true,get:function(){return chunkMCFHOMA2_js.q}});Object.defineProperty(exports,"ParagraphChangeTrackerExtension",{enumerable:true,get:function(){return chunkMCFHOMA2_js.o}});Object.defineProperty(exports,"clearTrackedChanges",{enumerable:true,get:function(){return chunkMCFHOMA2_js.n}});Object.defineProperty(exports,"createStarterKit",{enumerable:true,get:function(){return chunkMCFHOMA2_js.p}});Object.defineProperty(exports,"getChangedParagraphIds",{enumerable:true,get:function(){return chunkMCFHOMA2_js.k}});Object.defineProperty(exports,"hasStructuralChanges",{enumerable:true,get:function(){return chunkMCFHOMA2_js.l}});Object.defineProperty(exports,"hasUntrackedChanges",{enumerable:true,get:function(){return chunkMCFHOMA2_js.m}});Object.defineProperty(exports,"TableCellExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.g}});Object.defineProperty(exports,"TableHeaderExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.h}});Object.defineProperty(exports,"TableNodeExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.e}});Object.defineProperty(exports,"TableRowExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.f}});Object.defineProperty(exports,"Priority",{enumerable:true,get:function(){return chunk7HANRHHL_js.a}});Object.defineProperty(exports,"createExtension",{enumerable:true,get:function(){return chunk7HANRHHL_js.b}});Object.defineProperty(exports,"createMarkExtension",{enumerable:true,get:function(){return chunk7HANRHHL_js.d}});Object.defineProperty(exports,"createNodeExtension",{enumerable:true,get:function(){return chunk7HANRHHL_js.c}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{q as ExtensionManager,o as ParagraphChangeTrackerExtension,n as clearTrackedChanges,p as createStarterKit,k as getChangedParagraphIds,l as hasStructuralChanges,m as hasUntrackedChanges}from'../../chunk-2MSZXH6Q.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-VHUVPHPI.mjs';import'../../chunk-BGY3CB37.mjs';export{g as TableCellExtension,h as TableHeaderExtension,e as TableNodeExtension,f as TableRowExtension}from'../../chunk-ZX26QZJ5.mjs';export{a as Priority,b as createExtension,d as createMarkExtension,c as createNodeExtension}from'../../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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Extension — 4 node specs + plugins + commands
|
|
3
|
+
*
|
|
4
|
+
* Uses separate NodeExtension instances for each table node type, plus an
|
|
5
|
+
* Extension that registers the prosemirror-tables editing plugins, the
|
|
6
|
+
* Backspace/Delete keymap chain, and the full 32-command surface.
|
|
7
|
+
*
|
|
8
|
+
* NodeSpecs (declarative attrs + parseDOM + toDOM) and the CSS-paste
|
|
9
|
+
* helpers shared by td/th live in ./{specs,paste}.ts. The table-context
|
|
10
|
+
* query / cell-navigation helpers live in ./context.ts. The plugin
|
|
11
|
+
* runtime itself lives under ./commands/ — one file per command domain
|
|
12
|
+
* (insert, delete, selection, borders, cellFormatting, sizing,
|
|
13
|
+
* tableStyle), plus shared helpers and the active-cell decoration plugin.
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
import { N as NodeExtension, E as Extension, A as AnyExtension } from '../../../types-RchZmPFN.mjs';
|
|
18
|
+
export { B as BorderPreset, a as BorderSpec, T as TableContextInfo, g as getTableContext, b as goToNextCell, c as goToPrevCell, i as isInTable } from '../../../borders-BH_GoYU3.mjs';
|
|
19
|
+
import 'prosemirror-model';
|
|
20
|
+
import 'prosemirror-state';
|
|
21
|
+
import '../../../colors-C3vA7HUU.mjs';
|
|
22
|
+
|
|
23
|
+
declare const TableNodeExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
24
|
+
declare const TableRowExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
25
|
+
declare const TableCellExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
26
|
+
declare const TableHeaderExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
27
|
+
declare const TablePluginExtension: (options?: Partial<Record<string, unknown>> | undefined) => Extension;
|
|
28
|
+
declare function createTableExtensions(): AnyExtension[];
|
|
29
|
+
|
|
30
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TablePluginExtension, TableRowExtension, createTableExtensions };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Extension — 4 node specs + plugins + commands
|
|
3
|
+
*
|
|
4
|
+
* Uses separate NodeExtension instances for each table node type, plus an
|
|
5
|
+
* Extension that registers the prosemirror-tables editing plugins, the
|
|
6
|
+
* Backspace/Delete keymap chain, and the full 32-command surface.
|
|
7
|
+
*
|
|
8
|
+
* NodeSpecs (declarative attrs + parseDOM + toDOM) and the CSS-paste
|
|
9
|
+
* helpers shared by td/th live in ./{specs,paste}.ts. The table-context
|
|
10
|
+
* query / cell-navigation helpers live in ./context.ts. The plugin
|
|
11
|
+
* runtime itself lives under ./commands/ — one file per command domain
|
|
12
|
+
* (insert, delete, selection, borders, cellFormatting, sizing,
|
|
13
|
+
* tableStyle), plus shared helpers and the active-cell decoration plugin.
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
import { N as NodeExtension, E as Extension, A as AnyExtension } from '../../../types-RchZmPFN.js';
|
|
18
|
+
export { B as BorderPreset, a as BorderSpec, T as TableContextInfo, g as getTableContext, b as goToNextCell, c as goToPrevCell, i as isInTable } from '../../../borders-Z9hPno2u.js';
|
|
19
|
+
import 'prosemirror-model';
|
|
20
|
+
import 'prosemirror-state';
|
|
21
|
+
import '../../../colors-C3vA7HUU.js';
|
|
22
|
+
|
|
23
|
+
declare const TableNodeExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
24
|
+
declare const TableRowExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
25
|
+
declare const TableCellExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
26
|
+
declare const TableHeaderExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
27
|
+
declare const TablePluginExtension: (options?: Partial<Record<string, unknown>> | undefined) => Extension;
|
|
28
|
+
declare function createTableExtensions(): AnyExtension[];
|
|
29
|
+
|
|
30
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TablePluginExtension, TableRowExtension, createTableExtensions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkTUIEV7Q7_js=require('../../../chunk-TUIEV7Q7.js');require('../../../chunk-7HANRHHL.js'),require('../../../chunk-MJ5FQX7Q.js'),require('../../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TableCellExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.g}});Object.defineProperty(exports,"TableHeaderExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.h}});Object.defineProperty(exports,"TableNodeExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.e}});Object.defineProperty(exports,"TablePluginExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.i}});Object.defineProperty(exports,"TableRowExtension",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.f}});Object.defineProperty(exports,"createTableExtensions",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.j}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"goToNextCell",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.c}});Object.defineProperty(exports,"goToPrevCell",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.d}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{g as TableCellExtension,h as TableHeaderExtension,e as TableNodeExtension,i as TablePluginExtension,f as TableRowExtension,j as createTableExtensions,a as getTableContext,c as goToNextCell,d as goToPrevCell,b as isInTable}from'../../../chunk-ZX26QZJ5.mjs';import'../../../chunk-MJ6XZFVD.mjs';import'../../../chunk-67LVRQIR.mjs';import'../../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Integration for DOCX Editor
|
|
3
|
+
*
|
|
4
|
+
* This module provides ProseMirror-based editing:
|
|
5
|
+
* - Schema for DOCX document structure
|
|
6
|
+
* - Bidirectional conversion between Document and PM
|
|
7
|
+
* - React wrapper component
|
|
8
|
+
* - Plugins for selection tracking
|
|
9
|
+
* - Commands for formatting
|
|
10
|
+
* - Extension system for schema, plugins, and keymaps
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export { schema } from './schema/index.mjs';
|
|
15
|
+
export { ToProseDocOptions, createEmptyDoc, footnoteToProseDoc, headerFooterToProseDoc, toProseDoc } from './conversion/index.mjs';
|
|
16
|
+
export { fromProseDoc, updateDocumentContent } from './conversion/fromProseDoc.mjs';
|
|
17
|
+
export { ResolvedParagraphStyle, StyleResolver, createStyleResolver } from './styles/index.mjs';
|
|
18
|
+
import { EditorState } from 'prosemirror-state';
|
|
19
|
+
export { TextSelection } from 'prosemirror-state';
|
|
20
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-BH4hcZiq.mjs';
|
|
21
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './plugins/selectionTracker.mjs';
|
|
22
|
+
export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './commands/formatting.mjs';
|
|
23
|
+
export { addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, toggleBulletList, toggleNumberedList } from './commands/paragraph.mjs';
|
|
24
|
+
export { a as addColumnLeft, b as addColumnRight, c as addRowAbove, d as addRowBelow, e as applyTableStyle, f as autoFitContents, g as deleteColumn, h as deleteRow, i as deleteTable, j as distributeColumns, k as insertTable, m as mergeCells, r as removeTableBorders, s as selectColumn, l as selectRow, n as selectTable, o as setAllTableBorders, p as setCellBorder, q as setCellFillColor, t as setCellMargins, u as setCellTextDirection, v as setCellVerticalAlign, w as setInsideTableBorders, x as setOutsideTableBorders, y as setRowHeight, z as setTableBorderColor, A as setTableBorderWidth, B as setTableBorders, C as setTableProperties, D as splitCell, E as toggleHeaderRow, F as toggleNoWrap } from '../table-_t_W8oQf.mjs';
|
|
25
|
+
export { insertPageBreak } from './commands/pageBreak.mjs';
|
|
26
|
+
export { I as ImageAttrs, P as ParagraphAttrs } from '../nodes-7753Bgi_.mjs';
|
|
27
|
+
export { f as findParagraphByParaId, a as findStartPosForParaId } from '../findParagraphByParaId-Maw_8M5D.mjs';
|
|
28
|
+
export { LayoutSelectionGate } from './utils/LayoutSelectionGate.mjs';
|
|
29
|
+
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../borders-BH_GoYU3.mjs';
|
|
30
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../marks-BY573yZn.mjs';
|
|
31
|
+
import 'prosemirror-model';
|
|
32
|
+
import '../types-RchZmPFN.mjs';
|
|
33
|
+
import '../types/document.mjs';
|
|
34
|
+
import '../colors-C3vA7HUU.mjs';
|
|
35
|
+
import '../content-5Mrz6w_b.mjs';
|
|
36
|
+
import '../docx/wrapTypes.mjs';
|
|
37
|
+
import '../styles-EI2lxeEN.mjs';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Selection State Utilities
|
|
41
|
+
*
|
|
42
|
+
* Extracts selection state from ProseMirror for toolbar integration.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Selection state for toolbar integration
|
|
47
|
+
*/
|
|
48
|
+
interface SelectionState {
|
|
49
|
+
/** Whether there's an active selection (not just cursor) */
|
|
50
|
+
hasSelection: boolean;
|
|
51
|
+
/** Whether selection spans multiple paragraphs */
|
|
52
|
+
isMultiParagraph: boolean;
|
|
53
|
+
/** Current text formatting at selection/cursor */
|
|
54
|
+
textFormatting: TextFormatting;
|
|
55
|
+
/** Current paragraph formatting */
|
|
56
|
+
paragraphFormatting: ParagraphFormatting;
|
|
57
|
+
/** Current paragraph style ID (e.g., 'Heading1', 'Normal') */
|
|
58
|
+
styleId: string | null;
|
|
59
|
+
/** Start paragraph index */
|
|
60
|
+
startParagraphIndex: number;
|
|
61
|
+
/** End paragraph index */
|
|
62
|
+
endParagraphIndex: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Extract selection state from editor state.
|
|
66
|
+
* Used by PagedEditor integration in DocxEditor for toolbar state.
|
|
67
|
+
*/
|
|
68
|
+
declare function extractSelectionState(state: EditorState): SelectionState | null;
|
|
69
|
+
|
|
70
|
+
export { type SelectionState, extractSelectionState };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Integration for DOCX Editor
|
|
3
|
+
*
|
|
4
|
+
* This module provides ProseMirror-based editing:
|
|
5
|
+
* - Schema for DOCX document structure
|
|
6
|
+
* - Bidirectional conversion between Document and PM
|
|
7
|
+
* - React wrapper component
|
|
8
|
+
* - Plugins for selection tracking
|
|
9
|
+
* - Commands for formatting
|
|
10
|
+
* - Extension system for schema, plugins, and keymaps
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export { schema } from './schema/index.js';
|
|
15
|
+
export { ToProseDocOptions, createEmptyDoc, footnoteToProseDoc, headerFooterToProseDoc, toProseDoc } from './conversion/index.js';
|
|
16
|
+
export { fromProseDoc, updateDocumentContent } from './conversion/fromProseDoc.js';
|
|
17
|
+
export { ResolvedParagraphStyle, StyleResolver, createStyleResolver } from './styles/index.js';
|
|
18
|
+
import { EditorState } from 'prosemirror-state';
|
|
19
|
+
export { TextSelection } from 'prosemirror-state';
|
|
20
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-_OXU8gLB.js';
|
|
21
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './plugins/selectionTracker.js';
|
|
22
|
+
export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './commands/formatting.js';
|
|
23
|
+
export { addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, toggleBulletList, toggleNumberedList } from './commands/paragraph.js';
|
|
24
|
+
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';
|
|
25
|
+
export { insertPageBreak } from './commands/pageBreak.js';
|
|
26
|
+
export { I as ImageAttrs, P as ParagraphAttrs } from '../nodes-CC_nwkT_.js';
|
|
27
|
+
export { f as findParagraphByParaId, a as findStartPosForParaId } from '../findParagraphByParaId-Maw_8M5D.js';
|
|
28
|
+
export { LayoutSelectionGate } from './utils/LayoutSelectionGate.js';
|
|
29
|
+
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../borders-Z9hPno2u.js';
|
|
30
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../marks-CjC9tF5k.js';
|
|
31
|
+
import 'prosemirror-model';
|
|
32
|
+
import '../types-RchZmPFN.js';
|
|
33
|
+
import '../types/document.js';
|
|
34
|
+
import '../colors-C3vA7HUU.js';
|
|
35
|
+
import '../content-CmqAwdFL.js';
|
|
36
|
+
import '../docx/wrapTypes.js';
|
|
37
|
+
import '../styles-BBv7doYK.js';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Selection State Utilities
|
|
41
|
+
*
|
|
42
|
+
* Extracts selection state from ProseMirror for toolbar integration.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Selection state for toolbar integration
|
|
47
|
+
*/
|
|
48
|
+
interface SelectionState {
|
|
49
|
+
/** Whether there's an active selection (not just cursor) */
|
|
50
|
+
hasSelection: boolean;
|
|
51
|
+
/** Whether selection spans multiple paragraphs */
|
|
52
|
+
isMultiParagraph: boolean;
|
|
53
|
+
/** Current text formatting at selection/cursor */
|
|
54
|
+
textFormatting: TextFormatting;
|
|
55
|
+
/** Current paragraph formatting */
|
|
56
|
+
paragraphFormatting: ParagraphFormatting;
|
|
57
|
+
/** Current paragraph style ID (e.g., 'Heading1', 'Normal') */
|
|
58
|
+
styleId: string | null;
|
|
59
|
+
/** Start paragraph index */
|
|
60
|
+
startParagraphIndex: number;
|
|
61
|
+
/** End paragraph index */
|
|
62
|
+
endParagraphIndex: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Extract selection state from editor state.
|
|
66
|
+
* Used by PagedEditor integration in DocxEditor for toolbar state.
|
|
67
|
+
*/
|
|
68
|
+
declare function extractSelectionState(state: EditorState): SelectionState | null;
|
|
69
|
+
|
|
70
|
+
export { type SelectionState, extractSelectionState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';require('../chunk-U74VPTIU.js');var chunk4GER4JLW_js=require('../chunk-4GER4JLW.js'),chunkI6PMX4BO_js=require('../chunk-I6PMX4BO.js');require('../chunk-UQ6WNWXX.js');var chunkSWC6T7YQ_js=require('../chunk-SWC6T7YQ.js'),chunk7AMYZMCX_js=require('../chunk-7AMYZMCX.js');require('../chunk-D4RPOJC7.js');var chunkIP2VXNWG_js=require('../chunk-IP2VXNWG.js');require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-E4JMCA5X.js'),require('../chunk-HQPWFUP5.js'),require('../chunk-DV6GWBUJ.js');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');var chunkSHJBS42Y_js=require('../chunk-SHJBS42Y.js'),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'),chunk6LVPRTB6_js=require('../chunk-6LVPRTB6.js'),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');var prosemirrorState=require('prosemirror-state');function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}Object.defineProperty(exports,"LayoutSelectionGate",{enumerable:true,get:function(){return chunk4GER4JLW_js.a}});Object.defineProperty(exports,"findParagraphByParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.b}});Object.defineProperty(exports,"findStartPosForParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.a}});Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkSWC6T7YQ_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkSWC6T7YQ_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunk7AMYZMCX_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunk7AMYZMCX_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunk7AMYZMCX_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunk7AMYZMCX_js.a}});Object.defineProperty(exports,"StyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.b}});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,"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,"insertTable",{enumerable:true,get:function(){return chunkXNDGWWDT_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkXNDGWWDT_js.n}});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,"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,"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,"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,"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,"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,"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,"schema",{enumerable:true,get:function(){return chunkSHJBS42Y_js.b}});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,"getMarkAttr",{enumerable:true,get:function(){return chunkYTDWMXNS_js.d}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkYTDWMXNS_js.c}});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,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});Object.defineProperty(exports,"TextSelection",{enumerable:true,get:function(){return prosemirrorState.TextSelection}});exports.extractSelectionState=fe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'../chunk-FDEDN2RC.mjs';export{a as LayoutSelectionGate}from'../chunk-Q5QOBZWT.mjs';export{b as findParagraphByParaId,a as findStartPosForParaId}from'../chunk-3SXJPJSV.mjs';import'../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,b as updateDocumentContent}from'../chunk-MCX4GVRX.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-NDDJ67FQ.mjs';import'../chunk-LBKMYD3M.mjs';export{a as StyleResolver,b as createStyleResolver}from'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-6ZXL3EIP.mjs';import'../chunk-OEXVWIHW.mjs';import'../chunk-WLHNIXWC.mjs';export{g as addColumnLeft,h as addColumnRight,d as addRowAbove,e as addRowBelow,E as applyTableStyle,C as autoFitContents,i as deleteColumn,f as deleteRow,j as deleteTable,B as distributeColumns,c as insertTable,n as mergeCells,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,u as setInsideTableBorders,t as setOutsideTableBorders,z as setRowHeight,G as setTableBorderColor,H as setTableBorderWidth,q as setTableBorders,D as setTableProperties,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,D as generateTOC,j as increaseIndent,q as increaseListLevel,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,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,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';export{b as schema}from'../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,d as getMarkAttr,c as isMarkActive}from'../chunk-VHUVPHPI.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../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';export{TextSelection}from'prosemirror-state';function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}export{fe as extractSelectionState};
|
|
@@ -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.mjs';
|
|
10
|
+
import { PluginKey, EditorState, Transaction, Plugin } from 'prosemirror-state';
|
|
11
|
+
import { m as RevisionInfo } from '../../content-5Mrz6w_b.mjs';
|
|
12
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
13
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
14
|
+
import '../../docx/wrapTypes.mjs';
|
|
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 };
|