@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,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutoSaveManager
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic class for auto-saving documents to localStorage.
|
|
5
|
+
* Extracted from the React `useAutoSave` hook.
|
|
6
|
+
*
|
|
7
|
+
* Usage with React:
|
|
8
|
+
* ```ts
|
|
9
|
+
* const snapshot = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
10
|
+
* ```
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
import { S as Subscribable } from '../Subscribable-DOz6Ohoo.mjs';
|
|
15
|
+
import { AutoSaveSnapshot, AutoSaveManagerOptions, SavedDocumentData, AutoSaveStatus } from './types.mjs';
|
|
16
|
+
import { Document } from '../types/document.mjs';
|
|
17
|
+
import 'prosemirror-view';
|
|
18
|
+
import '../colors-C3vA7HUU.mjs';
|
|
19
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
20
|
+
import '../content-5Mrz6w_b.mjs';
|
|
21
|
+
import '../docx/wrapTypes.mjs';
|
|
22
|
+
import '../styles-EI2lxeEN.mjs';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* AutoSaveManager
|
|
26
|
+
*
|
|
27
|
+
* Framework-agnostic class for auto-saving documents to localStorage.
|
|
28
|
+
* Extracted from the React `useAutoSave` hook.
|
|
29
|
+
*
|
|
30
|
+
* Usage with React:
|
|
31
|
+
* ```ts
|
|
32
|
+
* const snapshot = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
33
|
+
* ```
|
|
34
|
+
* @packageDocumentation
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
declare class AutoSaveManager extends Subscribable<AutoSaveSnapshot> {
|
|
39
|
+
private storageKey;
|
|
40
|
+
private interval;
|
|
41
|
+
private maxAge;
|
|
42
|
+
private saveOnChange;
|
|
43
|
+
private debounceDelay;
|
|
44
|
+
private onSaveCallback?;
|
|
45
|
+
private onErrorCallback?;
|
|
46
|
+
private onRecoveryAvailableCallback?;
|
|
47
|
+
private storageAvailable;
|
|
48
|
+
private currentDocument;
|
|
49
|
+
private lastSavedJson;
|
|
50
|
+
private intervalTimer;
|
|
51
|
+
private debounceTimer;
|
|
52
|
+
private status;
|
|
53
|
+
private lastSaveTime;
|
|
54
|
+
private _hasRecoveryData;
|
|
55
|
+
private _isEnabled;
|
|
56
|
+
constructor(options?: AutoSaveManagerOptions);
|
|
57
|
+
/** Update the current document. Triggers debounced save if enabled. */
|
|
58
|
+
onDocumentChanged(document: Document | null): void;
|
|
59
|
+
/** Manually trigger a save. */
|
|
60
|
+
save(): Promise<boolean>;
|
|
61
|
+
/** Clear auto-saved data from storage. */
|
|
62
|
+
clear(): void;
|
|
63
|
+
/** Get recovery data from storage. */
|
|
64
|
+
getRecoveryData(): SavedDocumentData | null;
|
|
65
|
+
/** Accept recovery and return the document. */
|
|
66
|
+
acceptRecovery(): Document | null;
|
|
67
|
+
/** Dismiss recovery and clear saved data. */
|
|
68
|
+
dismissRecovery(): void;
|
|
69
|
+
/** Enable auto-save and start the interval timer. */
|
|
70
|
+
enable(): void;
|
|
71
|
+
/** Disable auto-save and stop all timers. */
|
|
72
|
+
disable(): void;
|
|
73
|
+
/** Start the interval timer. Call after enabling or on init. */
|
|
74
|
+
startInterval(): void;
|
|
75
|
+
/** Save synchronously on destroy (best-effort). */
|
|
76
|
+
destroy(): void;
|
|
77
|
+
private checkRecoveryData;
|
|
78
|
+
private persistToStorage;
|
|
79
|
+
private debounceSave;
|
|
80
|
+
private stopTimers;
|
|
81
|
+
private updateStatus;
|
|
82
|
+
private emitSnapshot;
|
|
83
|
+
}
|
|
84
|
+
/** Format last save time for display */
|
|
85
|
+
declare function formatLastSaveTime(date: Date | null): string;
|
|
86
|
+
/** Get auto-save status label */
|
|
87
|
+
declare function getAutoSaveStatusLabel(status: AutoSaveStatus): string;
|
|
88
|
+
/** Get storage size used by auto-save */
|
|
89
|
+
declare function getAutoSaveStorageSize(storageKey?: string): number;
|
|
90
|
+
/** Format storage size for display */
|
|
91
|
+
declare function formatStorageSize(bytes: number): string;
|
|
92
|
+
/** Check if auto-save is supported */
|
|
93
|
+
declare function isAutoSaveSupported(): boolean;
|
|
94
|
+
|
|
95
|
+
export { AutoSaveManager, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutoSaveManager
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic class for auto-saving documents to localStorage.
|
|
5
|
+
* Extracted from the React `useAutoSave` hook.
|
|
6
|
+
*
|
|
7
|
+
* Usage with React:
|
|
8
|
+
* ```ts
|
|
9
|
+
* const snapshot = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
10
|
+
* ```
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
import { S as Subscribable } from '../Subscribable-DOz6Ohoo.js';
|
|
15
|
+
import { AutoSaveSnapshot, AutoSaveManagerOptions, SavedDocumentData, AutoSaveStatus } from './types.js';
|
|
16
|
+
import { Document } from '../types/document.js';
|
|
17
|
+
import 'prosemirror-view';
|
|
18
|
+
import '../colors-C3vA7HUU.js';
|
|
19
|
+
import '../formatting-_OXU8gLB.js';
|
|
20
|
+
import '../content-CmqAwdFL.js';
|
|
21
|
+
import '../docx/wrapTypes.js';
|
|
22
|
+
import '../styles-BBv7doYK.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* AutoSaveManager
|
|
26
|
+
*
|
|
27
|
+
* Framework-agnostic class for auto-saving documents to localStorage.
|
|
28
|
+
* Extracted from the React `useAutoSave` hook.
|
|
29
|
+
*
|
|
30
|
+
* Usage with React:
|
|
31
|
+
* ```ts
|
|
32
|
+
* const snapshot = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
33
|
+
* ```
|
|
34
|
+
* @packageDocumentation
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
declare class AutoSaveManager extends Subscribable<AutoSaveSnapshot> {
|
|
39
|
+
private storageKey;
|
|
40
|
+
private interval;
|
|
41
|
+
private maxAge;
|
|
42
|
+
private saveOnChange;
|
|
43
|
+
private debounceDelay;
|
|
44
|
+
private onSaveCallback?;
|
|
45
|
+
private onErrorCallback?;
|
|
46
|
+
private onRecoveryAvailableCallback?;
|
|
47
|
+
private storageAvailable;
|
|
48
|
+
private currentDocument;
|
|
49
|
+
private lastSavedJson;
|
|
50
|
+
private intervalTimer;
|
|
51
|
+
private debounceTimer;
|
|
52
|
+
private status;
|
|
53
|
+
private lastSaveTime;
|
|
54
|
+
private _hasRecoveryData;
|
|
55
|
+
private _isEnabled;
|
|
56
|
+
constructor(options?: AutoSaveManagerOptions);
|
|
57
|
+
/** Update the current document. Triggers debounced save if enabled. */
|
|
58
|
+
onDocumentChanged(document: Document | null): void;
|
|
59
|
+
/** Manually trigger a save. */
|
|
60
|
+
save(): Promise<boolean>;
|
|
61
|
+
/** Clear auto-saved data from storage. */
|
|
62
|
+
clear(): void;
|
|
63
|
+
/** Get recovery data from storage. */
|
|
64
|
+
getRecoveryData(): SavedDocumentData | null;
|
|
65
|
+
/** Accept recovery and return the document. */
|
|
66
|
+
acceptRecovery(): Document | null;
|
|
67
|
+
/** Dismiss recovery and clear saved data. */
|
|
68
|
+
dismissRecovery(): void;
|
|
69
|
+
/** Enable auto-save and start the interval timer. */
|
|
70
|
+
enable(): void;
|
|
71
|
+
/** Disable auto-save and stop all timers. */
|
|
72
|
+
disable(): void;
|
|
73
|
+
/** Start the interval timer. Call after enabling or on init. */
|
|
74
|
+
startInterval(): void;
|
|
75
|
+
/** Save synchronously on destroy (best-effort). */
|
|
76
|
+
destroy(): void;
|
|
77
|
+
private checkRecoveryData;
|
|
78
|
+
private persistToStorage;
|
|
79
|
+
private debounceSave;
|
|
80
|
+
private stopTimers;
|
|
81
|
+
private updateStatus;
|
|
82
|
+
private emitSnapshot;
|
|
83
|
+
}
|
|
84
|
+
/** Format last save time for display */
|
|
85
|
+
declare function formatLastSaveTime(date: Date | null): string;
|
|
86
|
+
/** Get auto-save status label */
|
|
87
|
+
declare function getAutoSaveStatusLabel(status: AutoSaveStatus): string;
|
|
88
|
+
/** Get storage size used by auto-save */
|
|
89
|
+
declare function getAutoSaveStorageSize(storageKey?: string): number;
|
|
90
|
+
/** Format storage size for display */
|
|
91
|
+
declare function formatStorageSize(bytes: number): string;
|
|
92
|
+
/** Check if auto-save is supported */
|
|
93
|
+
declare function isAutoSaveSupported(): boolean;
|
|
94
|
+
|
|
95
|
+
export { AutoSaveManager, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkTE2VQJZG_js=require('../chunk-TE2VQJZG.js');require('../chunk-Y74ANBPV.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunkTE2VQJZG_js.a}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkTE2VQJZG_js.b}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkTE2VQJZG_js.e}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkTE2VQJZG_js.c}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkTE2VQJZG_js.d}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkTE2VQJZG_js.f}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AutoSaveManager,b as formatLastSaveTime,e as formatStorageSize,c as getAutoSaveStatusLabel,d as getAutoSaveStorageSize,f as isAutoSaveSupported}from'../chunk-6NQSIC27.mjs';import'../chunk-D6GO7UGD.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TableSelectionManager
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic class for managing table cell selection state.
|
|
5
|
+
* Extracted from the React `useTableSelection` hook.
|
|
6
|
+
*
|
|
7
|
+
* Handles:
|
|
8
|
+
* - Cell selection via data-attribute queries on the DOM
|
|
9
|
+
* - Table document operations (add/delete rows/columns, merge/split)
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Tagged `@internal` post-1.0 cut. Adapters bind to this class today,
|
|
13
|
+
* but consumers should reach for `useTableSelection()` (React/Vue) instead
|
|
14
|
+
* of this raw subpath. The subpath stays in `package.json` `exports` for
|
|
15
|
+
* back-compat; expect it to move behind a public surface in a future major.
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
import { S as Subscribable } from '../Subscribable-DOz6Ohoo.mjs';
|
|
21
|
+
import { TableSelectionSnapshot, CellCoordinates } from './types.mjs';
|
|
22
|
+
import { Document } from '../types/document.mjs';
|
|
23
|
+
import { T as Table } from '../content-5Mrz6w_b.mjs';
|
|
24
|
+
import 'prosemirror-view';
|
|
25
|
+
import '../colors-C3vA7HUU.mjs';
|
|
26
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
27
|
+
import '../docx/wrapTypes.mjs';
|
|
28
|
+
import '../styles-EI2lxeEN.mjs';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* TableSelectionManager
|
|
32
|
+
*
|
|
33
|
+
* Framework-agnostic class for managing table cell selection state.
|
|
34
|
+
* Extracted from the React `useTableSelection` hook.
|
|
35
|
+
*
|
|
36
|
+
* Handles:
|
|
37
|
+
* - Cell selection via data-attribute queries on the DOM
|
|
38
|
+
* - Table document operations (add/delete rows/columns, merge/split)
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Tagged `@internal` post-1.0 cut. Adapters bind to this class today,
|
|
42
|
+
* but consumers should reach for `useTableSelection()` (React/Vue) instead
|
|
43
|
+
* of this raw subpath. The subpath stays in `package.json` `exports` for
|
|
44
|
+
* back-compat; expect it to move behind a public surface in a future major.
|
|
45
|
+
*
|
|
46
|
+
* @packageDocumentation
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Data attributes for table elements in the rendered DOM
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
declare const TABLE_DATA_ATTRIBUTES: {
|
|
55
|
+
readonly TABLE_INDEX: "data-table-index";
|
|
56
|
+
readonly ROW_INDEX: "data-row";
|
|
57
|
+
readonly COLUMN_INDEX: "data-col";
|
|
58
|
+
readonly TABLE_CELL: "data-table-cell";
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Find table cell coordinates from a click target by walking up the DOM
|
|
62
|
+
* and reading data attributes.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
declare function findTableFromClick(target: EventTarget | null, container?: HTMLElement | null): CellCoordinates | null;
|
|
66
|
+
/**
|
|
67
|
+
* Get a table from the document by index.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
declare function getTableFromDocument(doc: Document, tableIndex: number): Table | null;
|
|
71
|
+
/**
|
|
72
|
+
* Update a table in the document immutably.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
declare function updateTableInDocument(doc: Document, tableIndex: number, newTable: Table): Document;
|
|
76
|
+
/**
|
|
77
|
+
* Delete a table from the document immutably.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
declare function deleteTableFromDocument(doc: Document, tableIndex: number): Document;
|
|
81
|
+
/** @internal */
|
|
82
|
+
declare class TableSelectionManager extends Subscribable<TableSelectionSnapshot> {
|
|
83
|
+
constructor();
|
|
84
|
+
/** Select a specific cell. */
|
|
85
|
+
selectCell(coords: CellCoordinates): void;
|
|
86
|
+
/** Clear the current selection. */
|
|
87
|
+
clearSelection(): void;
|
|
88
|
+
/** Check if a specific cell is selected. */
|
|
89
|
+
isCellSelected(tableIndex: number, rowIndex: number, columnIndex: number): boolean;
|
|
90
|
+
/** Get the currently selected cell coordinates, or null. */
|
|
91
|
+
getSelectedCell(): CellCoordinates | null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { TABLE_DATA_ATTRIBUTES, TableSelectionManager, deleteTableFromDocument, findTableFromClick, getTableFromDocument, updateTableInDocument };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TableSelectionManager
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic class for managing table cell selection state.
|
|
5
|
+
* Extracted from the React `useTableSelection` hook.
|
|
6
|
+
*
|
|
7
|
+
* Handles:
|
|
8
|
+
* - Cell selection via data-attribute queries on the DOM
|
|
9
|
+
* - Table document operations (add/delete rows/columns, merge/split)
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Tagged `@internal` post-1.0 cut. Adapters bind to this class today,
|
|
13
|
+
* but consumers should reach for `useTableSelection()` (React/Vue) instead
|
|
14
|
+
* of this raw subpath. The subpath stays in `package.json` `exports` for
|
|
15
|
+
* back-compat; expect it to move behind a public surface in a future major.
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
import { S as Subscribable } from '../Subscribable-DOz6Ohoo.js';
|
|
21
|
+
import { TableSelectionSnapshot, CellCoordinates } from './types.js';
|
|
22
|
+
import { Document } from '../types/document.js';
|
|
23
|
+
import { T as Table } from '../content-CmqAwdFL.js';
|
|
24
|
+
import 'prosemirror-view';
|
|
25
|
+
import '../colors-C3vA7HUU.js';
|
|
26
|
+
import '../formatting-_OXU8gLB.js';
|
|
27
|
+
import '../docx/wrapTypes.js';
|
|
28
|
+
import '../styles-BBv7doYK.js';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* TableSelectionManager
|
|
32
|
+
*
|
|
33
|
+
* Framework-agnostic class for managing table cell selection state.
|
|
34
|
+
* Extracted from the React `useTableSelection` hook.
|
|
35
|
+
*
|
|
36
|
+
* Handles:
|
|
37
|
+
* - Cell selection via data-attribute queries on the DOM
|
|
38
|
+
* - Table document operations (add/delete rows/columns, merge/split)
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Tagged `@internal` post-1.0 cut. Adapters bind to this class today,
|
|
42
|
+
* but consumers should reach for `useTableSelection()` (React/Vue) instead
|
|
43
|
+
* of this raw subpath. The subpath stays in `package.json` `exports` for
|
|
44
|
+
* back-compat; expect it to move behind a public surface in a future major.
|
|
45
|
+
*
|
|
46
|
+
* @packageDocumentation
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Data attributes for table elements in the rendered DOM
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
declare const TABLE_DATA_ATTRIBUTES: {
|
|
55
|
+
readonly TABLE_INDEX: "data-table-index";
|
|
56
|
+
readonly ROW_INDEX: "data-row";
|
|
57
|
+
readonly COLUMN_INDEX: "data-col";
|
|
58
|
+
readonly TABLE_CELL: "data-table-cell";
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Find table cell coordinates from a click target by walking up the DOM
|
|
62
|
+
* and reading data attributes.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
declare function findTableFromClick(target: EventTarget | null, container?: HTMLElement | null): CellCoordinates | null;
|
|
66
|
+
/**
|
|
67
|
+
* Get a table from the document by index.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
declare function getTableFromDocument(doc: Document, tableIndex: number): Table | null;
|
|
71
|
+
/**
|
|
72
|
+
* Update a table in the document immutably.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
declare function updateTableInDocument(doc: Document, tableIndex: number, newTable: Table): Document;
|
|
76
|
+
/**
|
|
77
|
+
* Delete a table from the document immutably.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
declare function deleteTableFromDocument(doc: Document, tableIndex: number): Document;
|
|
81
|
+
/** @internal */
|
|
82
|
+
declare class TableSelectionManager extends Subscribable<TableSelectionSnapshot> {
|
|
83
|
+
constructor();
|
|
84
|
+
/** Select a specific cell. */
|
|
85
|
+
selectCell(coords: CellCoordinates): void;
|
|
86
|
+
/** Clear the current selection. */
|
|
87
|
+
clearSelection(): void;
|
|
88
|
+
/** Check if a specific cell is selected. */
|
|
89
|
+
isCellSelected(tableIndex: number, rowIndex: number, columnIndex: number): boolean;
|
|
90
|
+
/** Get the currently selected cell coordinates, or null. */
|
|
91
|
+
getSelectedCell(): CellCoordinates | null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { TABLE_DATA_ATTRIBUTES, TableSelectionManager, deleteTableFromDocument, findTableFromClick, getTableFromDocument, updateTableInDocument };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk4G6AJ4ZM_js=require('../chunk-4G6AJ4ZM.js');require('../chunk-Y74ANBPV.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunk4G6AJ4ZM_js.a}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunk4G6AJ4ZM_js.f}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunk4G6AJ4ZM_js.e}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunk4G6AJ4ZM_js.b}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunk4G6AJ4ZM_js.c}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunk4G6AJ4ZM_js.d}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as TABLE_DATA_ATTRIBUTES,f as TableSelectionManager,e as deleteTableFromDocument,b as findTableFromClick,c as getTableFromDocument,d as updateTableInDocument}from'../chunk-JHZ3HLSR.mjs';import'../chunk-D6GO7UGD.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manager Types
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic interfaces for the editor's manager classes.
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
import { EditorView } from 'prosemirror-view';
|
|
9
|
+
import { Document } from '../types/document.mjs';
|
|
10
|
+
import '../colors-C3vA7HUU.mjs';
|
|
11
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
12
|
+
import '../content-5Mrz6w_b.mjs';
|
|
13
|
+
import '../docx/wrapTypes.mjs';
|
|
14
|
+
import '../styles-EI2lxeEN.mjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Manager Types
|
|
18
|
+
*
|
|
19
|
+
* Framework-agnostic interfaces for the editor's manager classes.
|
|
20
|
+
* @packageDocumentation
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Framework-agnostic interface for an imperatively mounted editor instance.
|
|
26
|
+
*
|
|
27
|
+
* Returned by `renderAsync()` implementations (React, Vue, etc.).
|
|
28
|
+
* Consumers use this to interact with the editor programmatically.
|
|
29
|
+
*/
|
|
30
|
+
interface EditorHandle {
|
|
31
|
+
/** Save the document and return the DOCX as a Blob. */
|
|
32
|
+
save(): Promise<Blob | null>;
|
|
33
|
+
/** Get the current parsed document model. */
|
|
34
|
+
getDocument(): Document | null;
|
|
35
|
+
/** Focus the editor. */
|
|
36
|
+
focus(): void;
|
|
37
|
+
/** Unmount the editor and clean up. */
|
|
38
|
+
destroy(): void;
|
|
39
|
+
}
|
|
40
|
+
/** Auto-save status */
|
|
41
|
+
type AutoSaveStatus = 'idle' | 'saving' | 'saved' | 'error';
|
|
42
|
+
/** Configuration for AutoSaveManager */
|
|
43
|
+
interface AutoSaveManagerOptions {
|
|
44
|
+
/** Storage key for localStorage (default: 'docx-editor-autosave') */
|
|
45
|
+
storageKey?: string;
|
|
46
|
+
/** Save interval in milliseconds (default: 30000 - 30 seconds) */
|
|
47
|
+
interval?: number;
|
|
48
|
+
/** Maximum age of auto-save before it's considered stale (default: 24 hours) */
|
|
49
|
+
maxAge?: number;
|
|
50
|
+
/** Whether to save on document change with debounce (default: true) */
|
|
51
|
+
saveOnChange?: boolean;
|
|
52
|
+
/** Debounce delay for saveOnChange in milliseconds (default: 2000) */
|
|
53
|
+
debounceDelay?: number;
|
|
54
|
+
/** Callback when save succeeds */
|
|
55
|
+
onSave?: (timestamp: Date) => void;
|
|
56
|
+
/** Callback when save fails */
|
|
57
|
+
onError?: (error: Error) => void;
|
|
58
|
+
/** Callback when recovery data is found */
|
|
59
|
+
onRecoveryAvailable?: (savedDocument: SavedDocumentData) => void;
|
|
60
|
+
}
|
|
61
|
+
/** Saved document data structure */
|
|
62
|
+
interface SavedDocumentData {
|
|
63
|
+
/** The document JSON */
|
|
64
|
+
document: Document;
|
|
65
|
+
/** When the document was saved */
|
|
66
|
+
savedAt: string;
|
|
67
|
+
/** Version for format compatibility */
|
|
68
|
+
version: number;
|
|
69
|
+
/** Optional document identifier */
|
|
70
|
+
documentId?: string;
|
|
71
|
+
}
|
|
72
|
+
/** AutoSaveManager snapshot for UI consumption */
|
|
73
|
+
interface AutoSaveSnapshot {
|
|
74
|
+
status: AutoSaveStatus;
|
|
75
|
+
lastSaveTime: Date | null;
|
|
76
|
+
hasRecoveryData: boolean;
|
|
77
|
+
isEnabled: boolean;
|
|
78
|
+
}
|
|
79
|
+
/** Cell coordinates in a table */
|
|
80
|
+
interface CellCoordinates {
|
|
81
|
+
tableIndex: number;
|
|
82
|
+
rowIndex: number;
|
|
83
|
+
columnIndex: number;
|
|
84
|
+
}
|
|
85
|
+
/** TableSelectionManager snapshot */
|
|
86
|
+
interface TableSelectionSnapshot {
|
|
87
|
+
/** Currently selected cell, or null if no selection */
|
|
88
|
+
selectedCell: CellCoordinates | null;
|
|
89
|
+
}
|
|
90
|
+
/** Error severity levels */
|
|
91
|
+
type ErrorSeverity = 'error' | 'warning' | 'info';
|
|
92
|
+
/** Error notification */
|
|
93
|
+
interface ErrorNotification {
|
|
94
|
+
id: string;
|
|
95
|
+
message: string;
|
|
96
|
+
severity: ErrorSeverity;
|
|
97
|
+
details?: string;
|
|
98
|
+
timestamp: number;
|
|
99
|
+
dismissed?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/** ErrorManager snapshot */
|
|
102
|
+
interface ErrorManagerSnapshot {
|
|
103
|
+
notifications: ErrorNotification[];
|
|
104
|
+
}
|
|
105
|
+
/** Plugin lifecycle configuration */
|
|
106
|
+
interface PluginLifecycleConfig {
|
|
107
|
+
id: string;
|
|
108
|
+
styles?: string;
|
|
109
|
+
initialize?: (editorView: EditorView) => unknown;
|
|
110
|
+
onStateChange?: (editorView: EditorView) => unknown;
|
|
111
|
+
destroy?: () => void;
|
|
112
|
+
}
|
|
113
|
+
/** PluginLifecycleManager snapshot */
|
|
114
|
+
interface PluginLifecycleSnapshot {
|
|
115
|
+
/** Map of plugin ID to plugin state */
|
|
116
|
+
states: Map<string, unknown>;
|
|
117
|
+
/** Version counter (incremented on any state change) */
|
|
118
|
+
version: number;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type { AutoSaveManagerOptions, AutoSaveSnapshot, AutoSaveStatus, CellCoordinates, EditorHandle, ErrorManagerSnapshot, ErrorNotification, ErrorSeverity, PluginLifecycleConfig, PluginLifecycleSnapshot, SavedDocumentData, TableSelectionSnapshot };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manager Types
|
|
3
|
+
*
|
|
4
|
+
* Framework-agnostic interfaces for the editor's manager classes.
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
import { EditorView } from 'prosemirror-view';
|
|
9
|
+
import { Document } from '../types/document.js';
|
|
10
|
+
import '../colors-C3vA7HUU.js';
|
|
11
|
+
import '../formatting-_OXU8gLB.js';
|
|
12
|
+
import '../content-CmqAwdFL.js';
|
|
13
|
+
import '../docx/wrapTypes.js';
|
|
14
|
+
import '../styles-BBv7doYK.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Manager Types
|
|
18
|
+
*
|
|
19
|
+
* Framework-agnostic interfaces for the editor's manager classes.
|
|
20
|
+
* @packageDocumentation
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Framework-agnostic interface for an imperatively mounted editor instance.
|
|
26
|
+
*
|
|
27
|
+
* Returned by `renderAsync()` implementations (React, Vue, etc.).
|
|
28
|
+
* Consumers use this to interact with the editor programmatically.
|
|
29
|
+
*/
|
|
30
|
+
interface EditorHandle {
|
|
31
|
+
/** Save the document and return the DOCX as a Blob. */
|
|
32
|
+
save(): Promise<Blob | null>;
|
|
33
|
+
/** Get the current parsed document model. */
|
|
34
|
+
getDocument(): Document | null;
|
|
35
|
+
/** Focus the editor. */
|
|
36
|
+
focus(): void;
|
|
37
|
+
/** Unmount the editor and clean up. */
|
|
38
|
+
destroy(): void;
|
|
39
|
+
}
|
|
40
|
+
/** Auto-save status */
|
|
41
|
+
type AutoSaveStatus = 'idle' | 'saving' | 'saved' | 'error';
|
|
42
|
+
/** Configuration for AutoSaveManager */
|
|
43
|
+
interface AutoSaveManagerOptions {
|
|
44
|
+
/** Storage key for localStorage (default: 'docx-editor-autosave') */
|
|
45
|
+
storageKey?: string;
|
|
46
|
+
/** Save interval in milliseconds (default: 30000 - 30 seconds) */
|
|
47
|
+
interval?: number;
|
|
48
|
+
/** Maximum age of auto-save before it's considered stale (default: 24 hours) */
|
|
49
|
+
maxAge?: number;
|
|
50
|
+
/** Whether to save on document change with debounce (default: true) */
|
|
51
|
+
saveOnChange?: boolean;
|
|
52
|
+
/** Debounce delay for saveOnChange in milliseconds (default: 2000) */
|
|
53
|
+
debounceDelay?: number;
|
|
54
|
+
/** Callback when save succeeds */
|
|
55
|
+
onSave?: (timestamp: Date) => void;
|
|
56
|
+
/** Callback when save fails */
|
|
57
|
+
onError?: (error: Error) => void;
|
|
58
|
+
/** Callback when recovery data is found */
|
|
59
|
+
onRecoveryAvailable?: (savedDocument: SavedDocumentData) => void;
|
|
60
|
+
}
|
|
61
|
+
/** Saved document data structure */
|
|
62
|
+
interface SavedDocumentData {
|
|
63
|
+
/** The document JSON */
|
|
64
|
+
document: Document;
|
|
65
|
+
/** When the document was saved */
|
|
66
|
+
savedAt: string;
|
|
67
|
+
/** Version for format compatibility */
|
|
68
|
+
version: number;
|
|
69
|
+
/** Optional document identifier */
|
|
70
|
+
documentId?: string;
|
|
71
|
+
}
|
|
72
|
+
/** AutoSaveManager snapshot for UI consumption */
|
|
73
|
+
interface AutoSaveSnapshot {
|
|
74
|
+
status: AutoSaveStatus;
|
|
75
|
+
lastSaveTime: Date | null;
|
|
76
|
+
hasRecoveryData: boolean;
|
|
77
|
+
isEnabled: boolean;
|
|
78
|
+
}
|
|
79
|
+
/** Cell coordinates in a table */
|
|
80
|
+
interface CellCoordinates {
|
|
81
|
+
tableIndex: number;
|
|
82
|
+
rowIndex: number;
|
|
83
|
+
columnIndex: number;
|
|
84
|
+
}
|
|
85
|
+
/** TableSelectionManager snapshot */
|
|
86
|
+
interface TableSelectionSnapshot {
|
|
87
|
+
/** Currently selected cell, or null if no selection */
|
|
88
|
+
selectedCell: CellCoordinates | null;
|
|
89
|
+
}
|
|
90
|
+
/** Error severity levels */
|
|
91
|
+
type ErrorSeverity = 'error' | 'warning' | 'info';
|
|
92
|
+
/** Error notification */
|
|
93
|
+
interface ErrorNotification {
|
|
94
|
+
id: string;
|
|
95
|
+
message: string;
|
|
96
|
+
severity: ErrorSeverity;
|
|
97
|
+
details?: string;
|
|
98
|
+
timestamp: number;
|
|
99
|
+
dismissed?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/** ErrorManager snapshot */
|
|
102
|
+
interface ErrorManagerSnapshot {
|
|
103
|
+
notifications: ErrorNotification[];
|
|
104
|
+
}
|
|
105
|
+
/** Plugin lifecycle configuration */
|
|
106
|
+
interface PluginLifecycleConfig {
|
|
107
|
+
id: string;
|
|
108
|
+
styles?: string;
|
|
109
|
+
initialize?: (editorView: EditorView) => unknown;
|
|
110
|
+
onStateChange?: (editorView: EditorView) => unknown;
|
|
111
|
+
destroy?: () => void;
|
|
112
|
+
}
|
|
113
|
+
/** PluginLifecycleManager snapshot */
|
|
114
|
+
interface PluginLifecycleSnapshot {
|
|
115
|
+
/** Map of plugin ID to plugin state */
|
|
116
|
+
states: Map<string, unknown>;
|
|
117
|
+
/** Version counter (incremented on any state change) */
|
|
118
|
+
version: number;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type { AutoSaveManagerOptions, AutoSaveSnapshot, AutoSaveStatus, CellCoordinates, EditorHandle, ErrorManagerSnapshot, ErrorNotification, ErrorSeverity, PluginLifecycleConfig, PluginLifecycleSnapshot, SavedDocumentData, TableSelectionSnapshot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|