@eigenpal/docx-editor-core 0.0.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 +204 -0
- package/README.md +54 -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 +169 -0
- package/dist/agent/index.d.ts +169 -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-23CP3TOP.js +1 -0
- package/dist/chunk-2KHWHVTA.js +1 -0
- package/dist/chunk-36VIYQHD.mjs +9 -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-44RUAQA2.js +1 -0
- package/dist/chunk-4AJYHCPB.js +2 -0
- package/dist/chunk-4BFNWPKW.js +1 -0
- package/dist/chunk-4EHBV73E.mjs +59 -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-5N5DBQJV.mjs +1 -0
- package/dist/chunk-62NPHRTF.js +1 -0
- package/dist/chunk-67LVRQIR.mjs +1 -0
- package/dist/chunk-6ILFFGGS.js +2 -0
- package/dist/chunk-6LOYA7G5.mjs +2 -0
- package/dist/chunk-6LVPRTB6.js +1 -0
- package/dist/chunk-6NQSIC27.mjs +1 -0
- package/dist/chunk-6VUYFDHY.mjs +1 -0
- package/dist/chunk-7E5VBRDL.mjs +1 -0
- package/dist/chunk-7GHQ4YCJ.mjs +1 -0
- package/dist/chunk-7RDCZLTU.js +1 -0
- package/dist/chunk-7VCMJCBY.js +2 -0
- package/dist/chunk-AAPBAMD7.js +1 -0
- package/dist/chunk-AMENZY5F.mjs +1 -0
- package/dist/chunk-ARHPXIBJ.mjs +1 -0
- package/dist/chunk-BGC7QKP5.mjs +1 -0
- package/dist/chunk-BGY3CB37.mjs +1 -0
- package/dist/chunk-BHBOAP6Z.js +3 -0
- package/dist/chunk-BWHUD2XC.mjs +4 -0
- package/dist/chunk-CCWOLPZE.js +3 -0
- package/dist/chunk-CGJ6S3AH.mjs +1 -0
- package/dist/chunk-CKKO4JWE.mjs +1 -0
- package/dist/chunk-CKXAHSJQ.js +10 -0
- package/dist/chunk-CP5OSG5Z.mjs +1 -0
- package/dist/chunk-CUY2THAO.mjs +1 -0
- package/dist/chunk-CWAP26GB.js +4 -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-DFZTUQ7O.js +2 -0
- package/dist/chunk-DROCYKAR.js +1 -0
- package/dist/chunk-DWFWYHM5.mjs +1 -0
- package/dist/chunk-DY2MJCSV.js +1 -0
- package/dist/chunk-ESI4BSBF.js +1 -0
- package/dist/chunk-FC6QL3E6.js +1 -0
- package/dist/chunk-FWTP7BN7.mjs +4 -0
- package/dist/chunk-G6Y4UZMJ.mjs +1 -0
- package/dist/chunk-GGPKPXON.js +1 -0
- package/dist/chunk-GXW7YSFL.mjs +1 -0
- package/dist/chunk-I6PMX4BO.js +1 -0
- package/dist/chunk-IBNUQL57.mjs +2 -0
- package/dist/chunk-ILJUDEZ5.mjs +1 -0
- package/dist/chunk-IP2VXNWG.js +1 -0
- package/dist/chunk-J7ULKGU2.mjs +10 -0
- package/dist/chunk-JFZIXFRC.js +1 -0
- package/dist/chunk-JHZ3HLSR.mjs +1 -0
- package/dist/chunk-JKVXID22.mjs +1 -0
- package/dist/chunk-JY5EFI4D.js +1 -0
- package/dist/chunk-KBU6QQFU.js +9 -0
- package/dist/chunk-KESNGXGO.js +1 -0
- package/dist/chunk-KQTB5Y7P.mjs +1 -0
- package/dist/chunk-LBKMYD3M.mjs +1 -0
- package/dist/chunk-LMF2ELOB.js +1 -0
- package/dist/chunk-LVD6HXRF.mjs +2 -0
- package/dist/chunk-MJ5FQX7Q.js +1 -0
- package/dist/chunk-MOKKS75W.mjs +3 -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-N27FJQTG.js +1 -0
- package/dist/chunk-N3Y5BUKV.js +1 -0
- package/dist/chunk-NBLJPT54.mjs +1 -0
- package/dist/chunk-NERY274X.js +1 -0
- package/dist/chunk-NNQWQOC5.mjs +1 -0
- package/dist/chunk-NXLJVVVE.js +1 -0
- package/dist/chunk-O5X22KZ6.mjs +1 -0
- package/dist/chunk-OBMN4VSM.mjs +1 -0
- package/dist/chunk-OCAX2KJQ.js +4 -0
- package/dist/chunk-OZMNIX6U.mjs +1 -0
- package/dist/chunk-PRRM64JO.mjs +1 -0
- package/dist/chunk-Q4CKLXWA.js +1 -0
- package/dist/chunk-Q5QOBZWT.mjs +1 -0
- package/dist/chunk-QPFJJPIC.mjs +1 -0
- package/dist/chunk-QYUPLKLP.mjs +1 -0
- package/dist/chunk-RNOXNNSD.mjs +0 -0
- package/dist/chunk-RPIQG46O.mjs +1 -0
- package/dist/chunk-S7IKPRC3.js +9 -0
- package/dist/chunk-SUXJX72X.js +1 -0
- package/dist/chunk-SYJAAHUK.js +1 -0
- package/dist/chunk-T4CPTPRP.js +1 -0
- package/dist/chunk-TE2AF7FM.js +1 -0
- package/dist/chunk-TE2VQJZG.js +1 -0
- package/dist/chunk-TRJWRZZD.js +1 -0
- package/dist/chunk-U4UCHBZ7.js +1 -0
- package/dist/chunk-UDPROEUK.js +1 -0
- package/dist/chunk-UIROUI5I.mjs +1 -0
- package/dist/chunk-UOFQYE2L.mjs +1 -0
- package/dist/chunk-UQ6WNWXX.js +1 -0
- package/dist/chunk-V7BKPX67.mjs +2 -0
- package/dist/chunk-VKTCTMIO.mjs +2 -0
- package/dist/chunk-VQWZHPWI.mjs +1 -0
- package/dist/chunk-VW22RZ6C.mjs +1 -0
- package/dist/chunk-WLKRUBY4.js +1 -0
- package/dist/chunk-WLQEPVDR.js +1 -0
- package/dist/chunk-WNTT4MGC.js +59 -0
- package/dist/chunk-WTFLNYAT.mjs +1 -0
- package/dist/chunk-XXU7YQVV.js +1 -0
- package/dist/chunk-Y5HZAMND.mjs +9 -0
- package/dist/chunk-Y74ANBPV.js +1 -0
- package/dist/chunk-Y7JZPBBW.js +1 -0
- package/dist/chunk-YGHHSCPR.js +2 -0
- package/dist/chunk-YMZ3F2FZ.mjs +1 -0
- package/dist/chunk-YUKBAAB5.mjs +1 -0
- package/dist/chunk-ZRZ2VRQQ.mjs +1 -0
- package/dist/chunk-ZYESB4KC.mjs +3 -0
- package/dist/colorResolver-C3q7MLLD.d.mts +390 -0
- package/dist/colorResolver-CVsPLsw1.d.ts +390 -0
- package/dist/colors-C3vA7HUU.d.mts +70 -0
- package/dist/colors-C3vA7HUU.d.ts +70 -0
- package/dist/core-plugins.d.mts +64 -0
- package/dist/core-plugins.d.ts +64 -0
- package/dist/core-plugins.js +1 -0
- package/dist/core-plugins.mjs +1 -0
- package/dist/core.d.mts +399 -0
- package/dist/core.d.ts +399 -0
- package/dist/core.js +1 -0
- package/dist/core.mjs +1 -0
- package/dist/documentSerializer-C1ueey5d.d.mts +36 -0
- package/dist/documentSerializer-Chn7J1WG.d.ts +36 -0
- package/dist/docx/index.d.mts +1124 -0
- package/dist/docx/index.d.ts +1124 -0
- package/dist/docx/index.js +1 -0
- package/dist/docx/index.mjs +1 -0
- package/dist/docx/parser.d.mts +109 -0
- package/dist/docx/parser.d.ts +109 -0
- package/dist/docx/parser.js +1 -0
- package/dist/docx/parser.mjs +1 -0
- package/dist/docx/rezip.d.mts +313 -0
- package/dist/docx/rezip.d.ts +313 -0
- package/dist/docx/rezip.js +1 -0
- package/dist/docx/rezip.mjs +1 -0
- package/dist/docx/serializer/index.d.mts +126 -0
- package/dist/docx/serializer/index.d.ts +126 -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-BOt95Jtf.d.mts +223 -0
- package/dist/fontLoader-QPwbcX5j.d.ts +223 -0
- package/dist/footnotes-lCH_P3N3.d.mts +78 -0
- package/dist/footnotes-skVvEHvZ.d.ts +78 -0
- package/dist/formatting-BwpZWdGi.d.ts +410 -0
- package/dist/formatting-D9I-lFS4.d.mts +410 -0
- package/dist/headerFooterLayout-B3QVg556.d.ts +201 -0
- package/dist/headerFooterLayout-DkclHZ0Z.d.mts +201 -0
- package/dist/headless.d.mts +110 -0
- package/dist/headless.d.ts +110 -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 +320 -0
- package/dist/layout-bridge/measuring/index.d.ts +320 -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 +122 -0
- package/dist/layout-bridge/toFlowBlocks.d.ts +122 -0
- package/dist/layout-bridge/toFlowBlocks.js +1 -0
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -0
- package/dist/layout-engine/index.d.mts +322 -0
- package/dist/layout-engine/index.d.ts +322 -0
- package/dist/layout-engine/index.js +1 -0
- package/dist/layout-engine/index.mjs +1 -0
- package/dist/layout-engine/types.d.mts +903 -0
- package/dist/layout-engine/types.d.ts +903 -0
- package/dist/layout-engine/types.js +1 -0
- package/dist/layout-engine/types.mjs +1 -0
- package/dist/layout-painter/index.d.mts +23 -0
- package/dist/layout-painter/index.d.ts +23 -0
- package/dist/layout-painter/index.js +1 -0
- package/dist/layout-painter/index.mjs +1 -0
- package/dist/layout-painter/renderPage.d.mts +674 -0
- package/dist/layout-painter/renderPage.d.ts +674 -0
- package/dist/layout-painter/renderPage.js +1 -0
- package/dist/layout-painter/renderPage.mjs +1 -0
- package/dist/lists-CdiIk_c1.d.ts +142 -0
- package/dist/lists-JDB80qyP.d.mts +142 -0
- package/dist/managers/AutoSaveManager.d.mts +96 -0
- package/dist/managers/AutoSaveManager.d.ts +96 -0
- package/dist/managers/AutoSaveManager.js +1 -0
- package/dist/managers/AutoSaveManager.mjs +1 -0
- package/dist/managers/TableSelectionManager.d.mts +95 -0
- package/dist/managers/TableSelectionManager.d.ts +95 -0
- package/dist/managers/TableSelectionManager.js +1 -0
- package/dist/managers/TableSelectionManager.mjs +1 -0
- package/dist/managers/types.d.mts +122 -0
- package/dist/managers/types.d.ts +122 -0
- package/dist/managers/types.js +1 -0
- package/dist/managers/types.mjs +0 -0
- package/dist/marks-BujVxYP4.d.ts +56 -0
- package/dist/marks-CCPVlQzL.d.mts +56 -0
- package/dist/mcp-cli.mjs +137 -0
- package/dist/mcp.d.mts +184 -0
- package/dist/mcp.d.ts +184 -0
- package/dist/mcp.js +16 -0
- package/dist/mcp.mjs +16 -0
- package/dist/nodes-BXi1Uu3e.d.mts +257 -0
- package/dist/nodes-DfKj9kUA.d.ts +257 -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 +114 -0
- package/dist/prosemirror/commands/index.d.ts +114 -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 +66 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +66 -0
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -0
- package/dist/prosemirror/conversion/index.d.mts +78 -0
- package/dist/prosemirror/conversion/index.d.ts +78 -0
- package/dist/prosemirror/conversion/index.js +1 -0
- package/dist/prosemirror/conversion/index.mjs +1 -0
- package/dist/prosemirror/editor.css +763 -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 +71 -0
- package/dist/prosemirror/index.d.ts +71 -0
- package/dist/prosemirror/index.js +1 -0
- package/dist/prosemirror/index.mjs +1 -0
- package/dist/prosemirror/plugins/index.d.mts +50 -0
- package/dist/prosemirror/plugins/index.d.ts +50 -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 +30 -0
- package/dist/prosemirror/schema/index.d.ts +30 -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 +63 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +63 -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-85CE0f7a.d.ts +570 -0
- package/dist/selectionContext-Xq3AY7pn.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-BBoqh07F.d.mts +233 -0
- package/dist/styles-jqO45PSq.d.ts +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 +1181 -0
- package/dist/types/content.d.ts +1181 -0
- package/dist/types/content.js +1 -0
- package/dist/types/content.mjs +0 -0
- package/dist/types/document.d.mts +106 -0
- package/dist/types/document.d.ts +106 -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 +48 -0
- package/dist/utils/comments.d.ts +48 -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 +711 -0
- package/dist/utils/index.d.ts +711 -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-CAdt8yOr.d.mts +115 -0
- package/dist/variableDetector-W4XEN9YC.d.ts +115 -0
- package/package.json +565 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { P as ParagraphFormatting, T as TextFormatting } from './formatting-BwpZWdGi.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lists & Numbering Types
|
|
5
|
+
*
|
|
6
|
+
* Types for bullet lists, numbered lists, and numbering definitions.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Number format type
|
|
11
|
+
*/
|
|
12
|
+
type NumberFormat = 'decimal' | 'upperRoman' | 'lowerRoman' | 'upperLetter' | 'lowerLetter' | 'ordinal' | 'cardinalText' | 'ordinalText' | 'hex' | 'chicago' | 'ideographDigital' | 'japaneseCounting' | 'aiueo' | 'iroha' | 'decimalFullWidth' | 'decimalHalfWidth' | 'japaneseLegal' | 'japaneseDigitalTenThousand' | 'decimalEnclosedCircle' | 'decimalFullWidth2' | 'aiueoFullWidth' | 'irohaFullWidth' | 'decimalZero' | 'bullet' | 'ganada' | 'chosung' | 'decimalEnclosedFullstop' | 'decimalEnclosedParen' | 'decimalEnclosedCircleChinese' | 'ideographEnclosedCircle' | 'ideographTraditional' | 'ideographZodiac' | 'ideographZodiacTraditional' | 'taiwaneseCounting' | 'ideographLegalTraditional' | 'taiwaneseCountingThousand' | 'taiwaneseDigital' | 'chineseCounting' | 'chineseLegalSimplified' | 'chineseCountingThousand' | 'koreanDigital' | 'koreanCounting' | 'koreanLegal' | 'koreanDigital2' | 'vietnameseCounting' | 'russianLower' | 'russianUpper' | 'none' | 'numberInDash' | 'hebrew1' | 'hebrew2' | 'arabicAlpha' | 'arabicAbjad' | 'hindiVowels' | 'hindiConsonants' | 'hindiNumbers' | 'hindiCounting' | 'thaiLetters' | 'thaiNumbers' | 'thaiCounting';
|
|
13
|
+
/**
|
|
14
|
+
* Multi-level suffix (what follows the number)
|
|
15
|
+
*/
|
|
16
|
+
type LevelSuffix = 'tab' | 'space' | 'nothing';
|
|
17
|
+
/**
|
|
18
|
+
* One indentation level of an abstract numbering definition (`w:lvl`).
|
|
19
|
+
* Carries the number format, the marker template (`lvlText` — e.g.
|
|
20
|
+
* `"%1.%2."`), the level's paragraph properties (indent, hanging) and
|
|
21
|
+
* character properties (font, size, color for the marker itself).
|
|
22
|
+
*
|
|
23
|
+
* `ilvl` ranges 0-8 in standard Word documents.
|
|
24
|
+
*/
|
|
25
|
+
interface ListLevel {
|
|
26
|
+
/** Level index (0-8) */
|
|
27
|
+
ilvl: number;
|
|
28
|
+
/** Starting number */
|
|
29
|
+
start?: number;
|
|
30
|
+
/** Number format */
|
|
31
|
+
numFmt: NumberFormat;
|
|
32
|
+
/** Level text (e.g., "%1." or "•") */
|
|
33
|
+
lvlText: string;
|
|
34
|
+
/** Justification */
|
|
35
|
+
lvlJc?: 'left' | 'center' | 'right';
|
|
36
|
+
/** Suffix after number */
|
|
37
|
+
suffix?: LevelSuffix;
|
|
38
|
+
/** Paragraph properties for this level */
|
|
39
|
+
pPr?: ParagraphFormatting;
|
|
40
|
+
/** Run properties for the number/bullet */
|
|
41
|
+
rPr?: TextFormatting;
|
|
42
|
+
/** Restart numbering from higher level */
|
|
43
|
+
lvlRestart?: number;
|
|
44
|
+
/** Is legal numbering style */
|
|
45
|
+
isLgl?: boolean;
|
|
46
|
+
/** Legacy settings */
|
|
47
|
+
legacy?: {
|
|
48
|
+
legacy?: boolean;
|
|
49
|
+
legacySpace?: number;
|
|
50
|
+
legacyIndent?: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Abstract numbering definition (`w:abstractNum`) — the reusable template
|
|
55
|
+
* for a list: which `NumberFormat` at each indentation level, what
|
|
56
|
+
* marker text, what paragraph/character formatting. Multiple
|
|
57
|
+
* `NumberingInstance`s (`w:num`) can reference one abstract numbering
|
|
58
|
+
* to share the template while keeping independent counters.
|
|
59
|
+
*
|
|
60
|
+
* See ECMA-376 §17.9.
|
|
61
|
+
*/
|
|
62
|
+
interface AbstractNumbering {
|
|
63
|
+
/** Abstract numbering ID */
|
|
64
|
+
abstractNumId: number;
|
|
65
|
+
/** Multi-level type */
|
|
66
|
+
multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
|
|
67
|
+
/** Numbering style link */
|
|
68
|
+
numStyleLink?: string;
|
|
69
|
+
/** Style link */
|
|
70
|
+
styleLink?: string;
|
|
71
|
+
/** Level definitions */
|
|
72
|
+
levels: ListLevel[];
|
|
73
|
+
/** Name */
|
|
74
|
+
name?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Numbering instance (w:num)
|
|
78
|
+
*/
|
|
79
|
+
interface NumberingInstance {
|
|
80
|
+
/** Numbering ID (referenced by paragraphs) */
|
|
81
|
+
numId: number;
|
|
82
|
+
/** Reference to abstract numbering */
|
|
83
|
+
abstractNumId: number;
|
|
84
|
+
/** Level overrides */
|
|
85
|
+
levelOverrides?: Array<{
|
|
86
|
+
ilvl: number;
|
|
87
|
+
startOverride?: number;
|
|
88
|
+
lvl?: ListLevel;
|
|
89
|
+
}>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Computed list marker for one paragraph — what the layout engine and
|
|
93
|
+
* painter need to render the "1.", "a)", "•" prefix. Not part of the
|
|
94
|
+
* wire format; the parser fills this from the `numbering.xml` chain plus
|
|
95
|
+
* the paragraph's `numPr`. Paragraphs without list rendering omit it.
|
|
96
|
+
*/
|
|
97
|
+
interface ListRendering {
|
|
98
|
+
/** Computed marker text (e.g., "1.", "a)", "•") */
|
|
99
|
+
marker: string;
|
|
100
|
+
/** List level (0-8) */
|
|
101
|
+
level: number;
|
|
102
|
+
/** Numbering ID */
|
|
103
|
+
numId: number;
|
|
104
|
+
/** Whether this is a bullet or numbered list */
|
|
105
|
+
isBullet: boolean;
|
|
106
|
+
/** Number format type (decimal, lowerRoman, upperRoman, etc.) */
|
|
107
|
+
numFmt?: NumberFormat;
|
|
108
|
+
/** Whether the list marker is hidden (w:vanish on level rPr) */
|
|
109
|
+
markerHidden?: boolean;
|
|
110
|
+
/** Marker font family from numbering level rPr (ascii name) */
|
|
111
|
+
markerFontFamily?: string;
|
|
112
|
+
/** Marker font size from numbering level rPr, in points */
|
|
113
|
+
markerFontSize?: number;
|
|
114
|
+
/**
|
|
115
|
+
* NumberFormat for each level from 0..ilvl (inclusive).
|
|
116
|
+
* Used to resolve multi-level templates like "%1.%2." where each %N
|
|
117
|
+
* may need a different format (e.g., upperRoman parent + decimal child).
|
|
118
|
+
*/
|
|
119
|
+
levelNumFmts?: NumberFormat[];
|
|
120
|
+
/** abstractNumId the paragraph's numId points to (counters key on this). */
|
|
121
|
+
abstractNumId?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
|
|
124
|
+
* Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
|
|
125
|
+
* first time the numId appears.
|
|
126
|
+
*/
|
|
127
|
+
startOverride?: number;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Top-level numbering data from `numbering.xml` — the set of abstract
|
|
131
|
+
* templates and the per-document `NumberingInstance`s that reference
|
|
132
|
+
* them. Paragraphs reference a `numId` (instance), not an
|
|
133
|
+
* `abstractNumId` directly.
|
|
134
|
+
*/
|
|
135
|
+
interface NumberingDefinitions {
|
|
136
|
+
/** Abstract numbering definitions */
|
|
137
|
+
abstractNums: AbstractNumbering[];
|
|
138
|
+
/** Numbering instances */
|
|
139
|
+
nums: NumberingInstance[];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, LevelSuffix as a, ListRendering as b, NumberFormat as c, NumberingInstance as d };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { P as ParagraphFormatting, T as TextFormatting } from './formatting-D9I-lFS4.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Lists & Numbering Types
|
|
5
|
+
*
|
|
6
|
+
* Types for bullet lists, numbered lists, and numbering definitions.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Number format type
|
|
11
|
+
*/
|
|
12
|
+
type NumberFormat = 'decimal' | 'upperRoman' | 'lowerRoman' | 'upperLetter' | 'lowerLetter' | 'ordinal' | 'cardinalText' | 'ordinalText' | 'hex' | 'chicago' | 'ideographDigital' | 'japaneseCounting' | 'aiueo' | 'iroha' | 'decimalFullWidth' | 'decimalHalfWidth' | 'japaneseLegal' | 'japaneseDigitalTenThousand' | 'decimalEnclosedCircle' | 'decimalFullWidth2' | 'aiueoFullWidth' | 'irohaFullWidth' | 'decimalZero' | 'bullet' | 'ganada' | 'chosung' | 'decimalEnclosedFullstop' | 'decimalEnclosedParen' | 'decimalEnclosedCircleChinese' | 'ideographEnclosedCircle' | 'ideographTraditional' | 'ideographZodiac' | 'ideographZodiacTraditional' | 'taiwaneseCounting' | 'ideographLegalTraditional' | 'taiwaneseCountingThousand' | 'taiwaneseDigital' | 'chineseCounting' | 'chineseLegalSimplified' | 'chineseCountingThousand' | 'koreanDigital' | 'koreanCounting' | 'koreanLegal' | 'koreanDigital2' | 'vietnameseCounting' | 'russianLower' | 'russianUpper' | 'none' | 'numberInDash' | 'hebrew1' | 'hebrew2' | 'arabicAlpha' | 'arabicAbjad' | 'hindiVowels' | 'hindiConsonants' | 'hindiNumbers' | 'hindiCounting' | 'thaiLetters' | 'thaiNumbers' | 'thaiCounting';
|
|
13
|
+
/**
|
|
14
|
+
* Multi-level suffix (what follows the number)
|
|
15
|
+
*/
|
|
16
|
+
type LevelSuffix = 'tab' | 'space' | 'nothing';
|
|
17
|
+
/**
|
|
18
|
+
* One indentation level of an abstract numbering definition (`w:lvl`).
|
|
19
|
+
* Carries the number format, the marker template (`lvlText` — e.g.
|
|
20
|
+
* `"%1.%2."`), the level's paragraph properties (indent, hanging) and
|
|
21
|
+
* character properties (font, size, color for the marker itself).
|
|
22
|
+
*
|
|
23
|
+
* `ilvl` ranges 0-8 in standard Word documents.
|
|
24
|
+
*/
|
|
25
|
+
interface ListLevel {
|
|
26
|
+
/** Level index (0-8) */
|
|
27
|
+
ilvl: number;
|
|
28
|
+
/** Starting number */
|
|
29
|
+
start?: number;
|
|
30
|
+
/** Number format */
|
|
31
|
+
numFmt: NumberFormat;
|
|
32
|
+
/** Level text (e.g., "%1." or "•") */
|
|
33
|
+
lvlText: string;
|
|
34
|
+
/** Justification */
|
|
35
|
+
lvlJc?: 'left' | 'center' | 'right';
|
|
36
|
+
/** Suffix after number */
|
|
37
|
+
suffix?: LevelSuffix;
|
|
38
|
+
/** Paragraph properties for this level */
|
|
39
|
+
pPr?: ParagraphFormatting;
|
|
40
|
+
/** Run properties for the number/bullet */
|
|
41
|
+
rPr?: TextFormatting;
|
|
42
|
+
/** Restart numbering from higher level */
|
|
43
|
+
lvlRestart?: number;
|
|
44
|
+
/** Is legal numbering style */
|
|
45
|
+
isLgl?: boolean;
|
|
46
|
+
/** Legacy settings */
|
|
47
|
+
legacy?: {
|
|
48
|
+
legacy?: boolean;
|
|
49
|
+
legacySpace?: number;
|
|
50
|
+
legacyIndent?: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Abstract numbering definition (`w:abstractNum`) — the reusable template
|
|
55
|
+
* for a list: which `NumberFormat` at each indentation level, what
|
|
56
|
+
* marker text, what paragraph/character formatting. Multiple
|
|
57
|
+
* `NumberingInstance`s (`w:num`) can reference one abstract numbering
|
|
58
|
+
* to share the template while keeping independent counters.
|
|
59
|
+
*
|
|
60
|
+
* See ECMA-376 §17.9.
|
|
61
|
+
*/
|
|
62
|
+
interface AbstractNumbering {
|
|
63
|
+
/** Abstract numbering ID */
|
|
64
|
+
abstractNumId: number;
|
|
65
|
+
/** Multi-level type */
|
|
66
|
+
multiLevelType?: 'hybridMultilevel' | 'multilevel' | 'singleLevel';
|
|
67
|
+
/** Numbering style link */
|
|
68
|
+
numStyleLink?: string;
|
|
69
|
+
/** Style link */
|
|
70
|
+
styleLink?: string;
|
|
71
|
+
/** Level definitions */
|
|
72
|
+
levels: ListLevel[];
|
|
73
|
+
/** Name */
|
|
74
|
+
name?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Numbering instance (w:num)
|
|
78
|
+
*/
|
|
79
|
+
interface NumberingInstance {
|
|
80
|
+
/** Numbering ID (referenced by paragraphs) */
|
|
81
|
+
numId: number;
|
|
82
|
+
/** Reference to abstract numbering */
|
|
83
|
+
abstractNumId: number;
|
|
84
|
+
/** Level overrides */
|
|
85
|
+
levelOverrides?: Array<{
|
|
86
|
+
ilvl: number;
|
|
87
|
+
startOverride?: number;
|
|
88
|
+
lvl?: ListLevel;
|
|
89
|
+
}>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Computed list marker for one paragraph — what the layout engine and
|
|
93
|
+
* painter need to render the "1.", "a)", "•" prefix. Not part of the
|
|
94
|
+
* wire format; the parser fills this from the `numbering.xml` chain plus
|
|
95
|
+
* the paragraph's `numPr`. Paragraphs without list rendering omit it.
|
|
96
|
+
*/
|
|
97
|
+
interface ListRendering {
|
|
98
|
+
/** Computed marker text (e.g., "1.", "a)", "•") */
|
|
99
|
+
marker: string;
|
|
100
|
+
/** List level (0-8) */
|
|
101
|
+
level: number;
|
|
102
|
+
/** Numbering ID */
|
|
103
|
+
numId: number;
|
|
104
|
+
/** Whether this is a bullet or numbered list */
|
|
105
|
+
isBullet: boolean;
|
|
106
|
+
/** Number format type (decimal, lowerRoman, upperRoman, etc.) */
|
|
107
|
+
numFmt?: NumberFormat;
|
|
108
|
+
/** Whether the list marker is hidden (w:vanish on level rPr) */
|
|
109
|
+
markerHidden?: boolean;
|
|
110
|
+
/** Marker font family from numbering level rPr (ascii name) */
|
|
111
|
+
markerFontFamily?: string;
|
|
112
|
+
/** Marker font size from numbering level rPr, in points */
|
|
113
|
+
markerFontSize?: number;
|
|
114
|
+
/**
|
|
115
|
+
* NumberFormat for each level from 0..ilvl (inclusive).
|
|
116
|
+
* Used to resolve multi-level templates like "%1.%2." where each %N
|
|
117
|
+
* may need a different format (e.g., upperRoman parent + decimal child).
|
|
118
|
+
*/
|
|
119
|
+
levelNumFmts?: NumberFormat[];
|
|
120
|
+
/** abstractNumId the paragraph's numId points to (counters key on this). */
|
|
121
|
+
abstractNumId?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Start value from the numId's lvlOverride for the paragraph's ilvl, if any.
|
|
124
|
+
* Per ECMA-376 §17.9.18, this resets the shared abstractNum counter the
|
|
125
|
+
* first time the numId appears.
|
|
126
|
+
*/
|
|
127
|
+
startOverride?: number;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Top-level numbering data from `numbering.xml` — the set of abstract
|
|
131
|
+
* templates and the per-document `NumberingInstance`s that reference
|
|
132
|
+
* them. Paragraphs reference a `numId` (instance), not an
|
|
133
|
+
* `abstractNumId` directly.
|
|
134
|
+
*/
|
|
135
|
+
interface NumberingDefinitions {
|
|
136
|
+
/** Abstract numbering definitions */
|
|
137
|
+
abstractNums: AbstractNumbering[];
|
|
138
|
+
/** Numbering instances */
|
|
139
|
+
nums: NumberingInstance[];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, LevelSuffix as a, ListRendering as b, NumberFormat as c, NumberingInstance as d };
|
|
@@ -0,0 +1,96 @@
|
|
|
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-D9I-lFS4.mjs';
|
|
20
|
+
import '../lists-JDB80qyP.mjs';
|
|
21
|
+
import '../types/content.mjs';
|
|
22
|
+
import '../docx/wrapTypes.mjs';
|
|
23
|
+
import '../styles-BBoqh07F.mjs';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* AutoSaveManager
|
|
27
|
+
*
|
|
28
|
+
* Framework-agnostic class for auto-saving documents to localStorage.
|
|
29
|
+
* Extracted from the React `useAutoSave` hook.
|
|
30
|
+
*
|
|
31
|
+
* Usage with React:
|
|
32
|
+
* ```ts
|
|
33
|
+
* const snapshot = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
34
|
+
* ```
|
|
35
|
+
* @packageDocumentation
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
declare class AutoSaveManager extends Subscribable<AutoSaveSnapshot> {
|
|
40
|
+
private storageKey;
|
|
41
|
+
private interval;
|
|
42
|
+
private maxAge;
|
|
43
|
+
private saveOnChange;
|
|
44
|
+
private debounceDelay;
|
|
45
|
+
private onSaveCallback?;
|
|
46
|
+
private onErrorCallback?;
|
|
47
|
+
private onRecoveryAvailableCallback?;
|
|
48
|
+
private storageAvailable;
|
|
49
|
+
private currentDocument;
|
|
50
|
+
private lastSavedJson;
|
|
51
|
+
private intervalTimer;
|
|
52
|
+
private debounceTimer;
|
|
53
|
+
private status;
|
|
54
|
+
private lastSaveTime;
|
|
55
|
+
private _hasRecoveryData;
|
|
56
|
+
private _isEnabled;
|
|
57
|
+
constructor(options?: AutoSaveManagerOptions);
|
|
58
|
+
/** Update the current document. Triggers debounced save if enabled. */
|
|
59
|
+
onDocumentChanged(document: Document | null): void;
|
|
60
|
+
/** Manually trigger a save. */
|
|
61
|
+
save(): Promise<boolean>;
|
|
62
|
+
/** Clear auto-saved data from storage. */
|
|
63
|
+
clear(): void;
|
|
64
|
+
/** Get recovery data from storage. */
|
|
65
|
+
getRecoveryData(): SavedDocumentData | null;
|
|
66
|
+
/** Accept recovery and return the document. */
|
|
67
|
+
acceptRecovery(): Document | null;
|
|
68
|
+
/** Dismiss recovery and clear saved data. */
|
|
69
|
+
dismissRecovery(): void;
|
|
70
|
+
/** Enable auto-save and start the interval timer. */
|
|
71
|
+
enable(): void;
|
|
72
|
+
/** Disable auto-save and stop all timers. */
|
|
73
|
+
disable(): void;
|
|
74
|
+
/** Start the interval timer. Call after enabling or on init. */
|
|
75
|
+
startInterval(): void;
|
|
76
|
+
/** Save synchronously on destroy (best-effort). */
|
|
77
|
+
destroy(): void;
|
|
78
|
+
private checkRecoveryData;
|
|
79
|
+
private persistToStorage;
|
|
80
|
+
private debounceSave;
|
|
81
|
+
private stopTimers;
|
|
82
|
+
private updateStatus;
|
|
83
|
+
private emitSnapshot;
|
|
84
|
+
}
|
|
85
|
+
/** Format last save time for display */
|
|
86
|
+
declare function formatLastSaveTime(date: Date | null): string;
|
|
87
|
+
/** Get auto-save status label */
|
|
88
|
+
declare function getAutoSaveStatusLabel(status: AutoSaveStatus): string;
|
|
89
|
+
/** Get storage size used by auto-save */
|
|
90
|
+
declare function getAutoSaveStorageSize(storageKey?: string): number;
|
|
91
|
+
/** Format storage size for display */
|
|
92
|
+
declare function formatStorageSize(bytes: number): string;
|
|
93
|
+
/** Check if auto-save is supported */
|
|
94
|
+
declare function isAutoSaveSupported(): boolean;
|
|
95
|
+
|
|
96
|
+
export { AutoSaveManager, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported };
|
|
@@ -0,0 +1,96 @@
|
|
|
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-BwpZWdGi.js';
|
|
20
|
+
import '../lists-CdiIk_c1.js';
|
|
21
|
+
import '../types/content.js';
|
|
22
|
+
import '../docx/wrapTypes.js';
|
|
23
|
+
import '../styles-jqO45PSq.js';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* AutoSaveManager
|
|
27
|
+
*
|
|
28
|
+
* Framework-agnostic class for auto-saving documents to localStorage.
|
|
29
|
+
* Extracted from the React `useAutoSave` hook.
|
|
30
|
+
*
|
|
31
|
+
* Usage with React:
|
|
32
|
+
* ```ts
|
|
33
|
+
* const snapshot = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
34
|
+
* ```
|
|
35
|
+
* @packageDocumentation
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
declare class AutoSaveManager extends Subscribable<AutoSaveSnapshot> {
|
|
40
|
+
private storageKey;
|
|
41
|
+
private interval;
|
|
42
|
+
private maxAge;
|
|
43
|
+
private saveOnChange;
|
|
44
|
+
private debounceDelay;
|
|
45
|
+
private onSaveCallback?;
|
|
46
|
+
private onErrorCallback?;
|
|
47
|
+
private onRecoveryAvailableCallback?;
|
|
48
|
+
private storageAvailable;
|
|
49
|
+
private currentDocument;
|
|
50
|
+
private lastSavedJson;
|
|
51
|
+
private intervalTimer;
|
|
52
|
+
private debounceTimer;
|
|
53
|
+
private status;
|
|
54
|
+
private lastSaveTime;
|
|
55
|
+
private _hasRecoveryData;
|
|
56
|
+
private _isEnabled;
|
|
57
|
+
constructor(options?: AutoSaveManagerOptions);
|
|
58
|
+
/** Update the current document. Triggers debounced save if enabled. */
|
|
59
|
+
onDocumentChanged(document: Document | null): void;
|
|
60
|
+
/** Manually trigger a save. */
|
|
61
|
+
save(): Promise<boolean>;
|
|
62
|
+
/** Clear auto-saved data from storage. */
|
|
63
|
+
clear(): void;
|
|
64
|
+
/** Get recovery data from storage. */
|
|
65
|
+
getRecoveryData(): SavedDocumentData | null;
|
|
66
|
+
/** Accept recovery and return the document. */
|
|
67
|
+
acceptRecovery(): Document | null;
|
|
68
|
+
/** Dismiss recovery and clear saved data. */
|
|
69
|
+
dismissRecovery(): void;
|
|
70
|
+
/** Enable auto-save and start the interval timer. */
|
|
71
|
+
enable(): void;
|
|
72
|
+
/** Disable auto-save and stop all timers. */
|
|
73
|
+
disable(): void;
|
|
74
|
+
/** Start the interval timer. Call after enabling or on init. */
|
|
75
|
+
startInterval(): void;
|
|
76
|
+
/** Save synchronously on destroy (best-effort). */
|
|
77
|
+
destroy(): void;
|
|
78
|
+
private checkRecoveryData;
|
|
79
|
+
private persistToStorage;
|
|
80
|
+
private debounceSave;
|
|
81
|
+
private stopTimers;
|
|
82
|
+
private updateStatus;
|
|
83
|
+
private emitSnapshot;
|
|
84
|
+
}
|
|
85
|
+
/** Format last save time for display */
|
|
86
|
+
declare function formatLastSaveTime(date: Date | null): string;
|
|
87
|
+
/** Get auto-save status label */
|
|
88
|
+
declare function getAutoSaveStatusLabel(status: AutoSaveStatus): string;
|
|
89
|
+
/** Get storage size used by auto-save */
|
|
90
|
+
declare function getAutoSaveStorageSize(storageKey?: string): number;
|
|
91
|
+
/** Format storage size for display */
|
|
92
|
+
declare function formatStorageSize(bytes: number): string;
|
|
93
|
+
/** Check if auto-save is supported */
|
|
94
|
+
declare function isAutoSaveSupported(): boolean;
|
|
95
|
+
|
|
96
|
+
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,95 @@
|
|
|
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 { Table } from '../types/content.mjs';
|
|
24
|
+
import 'prosemirror-view';
|
|
25
|
+
import '../colors-C3vA7HUU.mjs';
|
|
26
|
+
import '../formatting-D9I-lFS4.mjs';
|
|
27
|
+
import '../lists-JDB80qyP.mjs';
|
|
28
|
+
import '../docx/wrapTypes.mjs';
|
|
29
|
+
import '../styles-BBoqh07F.mjs';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* TableSelectionManager
|
|
33
|
+
*
|
|
34
|
+
* Framework-agnostic class for managing table cell selection state.
|
|
35
|
+
* Extracted from the React `useTableSelection` hook.
|
|
36
|
+
*
|
|
37
|
+
* Handles:
|
|
38
|
+
* - Cell selection via data-attribute queries on the DOM
|
|
39
|
+
* - Table document operations (add/delete rows/columns, merge/split)
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Tagged `@internal` post-1.0 cut. Adapters bind to this class today,
|
|
43
|
+
* but consumers should reach for `useTableSelection()` (React/Vue) instead
|
|
44
|
+
* of this raw subpath. The subpath stays in `package.json` `exports` for
|
|
45
|
+
* back-compat; expect it to move behind a public surface in a future major.
|
|
46
|
+
*
|
|
47
|
+
* @packageDocumentation
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Data attributes for table elements in the rendered DOM
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
declare const TABLE_DATA_ATTRIBUTES: {
|
|
56
|
+
readonly TABLE_INDEX: "data-table-index";
|
|
57
|
+
readonly ROW_INDEX: "data-row";
|
|
58
|
+
readonly COLUMN_INDEX: "data-col";
|
|
59
|
+
readonly TABLE_CELL: "data-table-cell";
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Find table cell coordinates from a click target by walking up the DOM
|
|
63
|
+
* and reading data attributes.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
declare function findTableFromClick(target: EventTarget | null, container?: HTMLElement | null): CellCoordinates | null;
|
|
67
|
+
/**
|
|
68
|
+
* Get a table from the document by index.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
declare function getTableFromDocument(doc: Document, tableIndex: number): Table | null;
|
|
72
|
+
/**
|
|
73
|
+
* Update a table in the document immutably.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
declare function updateTableInDocument(doc: Document, tableIndex: number, newTable: Table): Document;
|
|
77
|
+
/**
|
|
78
|
+
* Delete a table from the document immutably.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
declare function deleteTableFromDocument(doc: Document, tableIndex: number): Document;
|
|
82
|
+
/** @internal */
|
|
83
|
+
declare class TableSelectionManager extends Subscribable<TableSelectionSnapshot> {
|
|
84
|
+
constructor();
|
|
85
|
+
/** Select a specific cell. */
|
|
86
|
+
selectCell(coords: CellCoordinates): void;
|
|
87
|
+
/** Clear the current selection. */
|
|
88
|
+
clearSelection(): void;
|
|
89
|
+
/** Check if a specific cell is selected. */
|
|
90
|
+
isCellSelected(tableIndex: number, rowIndex: number, columnIndex: number): boolean;
|
|
91
|
+
/** Get the currently selected cell coordinates, or null. */
|
|
92
|
+
getSelectedCell(): CellCoordinates | null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { TABLE_DATA_ATTRIBUTES, TableSelectionManager, deleteTableFromDocument, findTableFromClick, getTableFromDocument, updateTableInDocument };
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { Table } from '../types/content.js';
|
|
24
|
+
import 'prosemirror-view';
|
|
25
|
+
import '../colors-C3vA7HUU.js';
|
|
26
|
+
import '../formatting-BwpZWdGi.js';
|
|
27
|
+
import '../lists-CdiIk_c1.js';
|
|
28
|
+
import '../docx/wrapTypes.js';
|
|
29
|
+
import '../styles-jqO45PSq.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* TableSelectionManager
|
|
33
|
+
*
|
|
34
|
+
* Framework-agnostic class for managing table cell selection state.
|
|
35
|
+
* Extracted from the React `useTableSelection` hook.
|
|
36
|
+
*
|
|
37
|
+
* Handles:
|
|
38
|
+
* - Cell selection via data-attribute queries on the DOM
|
|
39
|
+
* - Table document operations (add/delete rows/columns, merge/split)
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Tagged `@internal` post-1.0 cut. Adapters bind to this class today,
|
|
43
|
+
* but consumers should reach for `useTableSelection()` (React/Vue) instead
|
|
44
|
+
* of this raw subpath. The subpath stays in `package.json` `exports` for
|
|
45
|
+
* back-compat; expect it to move behind a public surface in a future major.
|
|
46
|
+
*
|
|
47
|
+
* @packageDocumentation
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Data attributes for table elements in the rendered DOM
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
declare const TABLE_DATA_ATTRIBUTES: {
|
|
56
|
+
readonly TABLE_INDEX: "data-table-index";
|
|
57
|
+
readonly ROW_INDEX: "data-row";
|
|
58
|
+
readonly COLUMN_INDEX: "data-col";
|
|
59
|
+
readonly TABLE_CELL: "data-table-cell";
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Find table cell coordinates from a click target by walking up the DOM
|
|
63
|
+
* and reading data attributes.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
declare function findTableFromClick(target: EventTarget | null, container?: HTMLElement | null): CellCoordinates | null;
|
|
67
|
+
/**
|
|
68
|
+
* Get a table from the document by index.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
declare function getTableFromDocument(doc: Document, tableIndex: number): Table | null;
|
|
72
|
+
/**
|
|
73
|
+
* Update a table in the document immutably.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
declare function updateTableInDocument(doc: Document, tableIndex: number, newTable: Table): Document;
|
|
77
|
+
/**
|
|
78
|
+
* Delete a table from the document immutably.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
declare function deleteTableFromDocument(doc: Document, tableIndex: number): Document;
|
|
82
|
+
/** @internal */
|
|
83
|
+
declare class TableSelectionManager extends Subscribable<TableSelectionSnapshot> {
|
|
84
|
+
constructor();
|
|
85
|
+
/** Select a specific cell. */
|
|
86
|
+
selectCell(coords: CellCoordinates): void;
|
|
87
|
+
/** Clear the current selection. */
|
|
88
|
+
clearSelection(): void;
|
|
89
|
+
/** Check if a specific cell is selected. */
|
|
90
|
+
isCellSelected(tableIndex: number, rowIndex: number, columnIndex: number): boolean;
|
|
91
|
+
/** Get the currently selected cell coordinates, or null. */
|
|
92
|
+
getSelectedCell(): CellCoordinates | null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
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';
|