@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,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension System — Barrel Export
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { b as ExtensionDefinition, E as Extension, M as MarkExtensionDefinition, c as MarkExtension, d as NodeExtensionDefinition, N as NodeExtension, A as AnyExtension } from '../../types-RchZmPFN.mjs';
|
|
7
|
+
export { C as CommandMap, e as ExtensionConfig, f as ExtensionContext, a as ExtensionManager, g as ExtensionPriority, h as ExtensionRuntime, K as KeyboardShortcutMap, i as MarkExtensionConfig, j as NodeExtensionConfig, P as Priority } from '../../types-RchZmPFN.mjs';
|
|
8
|
+
import { SelectionChangeCallback } from '../plugins/selectionTracker.mjs';
|
|
9
|
+
import { EditorState, Transaction } from 'prosemirror-state';
|
|
10
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TableRowExtension } from './nodes/TableExtension.mjs';
|
|
11
|
+
export { T as TableContextInfo } from '../../borders-BH_GoYU3.mjs';
|
|
12
|
+
import 'prosemirror-model';
|
|
13
|
+
import '../../formatting-D9I-lFS4.mjs';
|
|
14
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Extension Factory Functions
|
|
18
|
+
*
|
|
19
|
+
* Creates extension instances from definitions.
|
|
20
|
+
* Each factory returns a function that accepts options and returns an extension instance.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a generic extension (plugins, commands, keymaps — no schema contribution)
|
|
25
|
+
*/
|
|
26
|
+
declare function createExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: ExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => Extension;
|
|
27
|
+
/**
|
|
28
|
+
* Create a node extension (contributes a NodeSpec to the schema)
|
|
29
|
+
*/
|
|
30
|
+
declare function createNodeExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: NodeExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => NodeExtension;
|
|
31
|
+
/**
|
|
32
|
+
* Create a mark extension (contributes a MarkSpec to the schema)
|
|
33
|
+
*/
|
|
34
|
+
declare function createMarkExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: MarkExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => MarkExtension;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* StarterKit — bundles all extensions into a ready-to-use set
|
|
38
|
+
*
|
|
39
|
+
* Usage:
|
|
40
|
+
* const extensions = createStarterKit();
|
|
41
|
+
* const manager = new ExtensionManager(extensions);
|
|
42
|
+
* manager.buildSchema();
|
|
43
|
+
* manager.initializeRuntime();
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
interface StarterKitOptions {
|
|
47
|
+
/** Extensions to disable by name */
|
|
48
|
+
disable?: string[];
|
|
49
|
+
/** History depth (default: 100) */
|
|
50
|
+
historyDepth?: number;
|
|
51
|
+
/** History new group delay (default: 500) */
|
|
52
|
+
historyNewGroupDelay?: number;
|
|
53
|
+
/** Selection change callback */
|
|
54
|
+
onSelectionChange?: SelectionChangeCallback;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create the full set of extensions for the DOCX editor
|
|
58
|
+
*/
|
|
59
|
+
declare function createStarterKit(options?: StarterKitOptions): AnyExtension[];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get the set of changed paragraph IDs from an EditorState
|
|
63
|
+
*/
|
|
64
|
+
declare function getChangedParagraphIds(state: EditorState): Set<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Check if structural changes (paragraph add/delete) occurred
|
|
67
|
+
*/
|
|
68
|
+
declare function hasStructuralChanges(state: EditorState): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Check if any changes affected paragraphs without paraId
|
|
71
|
+
*/
|
|
72
|
+
declare function hasUntrackedChanges(state: EditorState): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Create a transaction that clears the change tracker
|
|
75
|
+
*/
|
|
76
|
+
declare function clearTrackedChanges(state: EditorState): Transaction;
|
|
77
|
+
declare const ParagraphChangeTrackerExtension: (options?: Partial<{}> | undefined) => Extension;
|
|
78
|
+
|
|
79
|
+
export { AnyExtension, Extension, ExtensionDefinition, MarkExtension, MarkExtensionDefinition, NodeExtension, NodeExtensionDefinition, ParagraphChangeTrackerExtension, type StarterKitOptions, clearTrackedChanges, createExtension, createMarkExtension, createNodeExtension, createStarterKit, getChangedParagraphIds, hasStructuralChanges, hasUntrackedChanges };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension System — Barrel Export
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
import { b as ExtensionDefinition, E as Extension, M as MarkExtensionDefinition, c as MarkExtension, d as NodeExtensionDefinition, N as NodeExtension, A as AnyExtension } from '../../types-RchZmPFN.js';
|
|
7
|
+
export { C as CommandMap, e as ExtensionConfig, f as ExtensionContext, a as ExtensionManager, g as ExtensionPriority, h as ExtensionRuntime, K as KeyboardShortcutMap, i as MarkExtensionConfig, j as NodeExtensionConfig, P as Priority } from '../../types-RchZmPFN.js';
|
|
8
|
+
import { SelectionChangeCallback } from '../plugins/selectionTracker.js';
|
|
9
|
+
import { EditorState, Transaction } from 'prosemirror-state';
|
|
10
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TableRowExtension } from './nodes/TableExtension.js';
|
|
11
|
+
export { T as TableContextInfo } from '../../borders-Z9hPno2u.js';
|
|
12
|
+
import 'prosemirror-model';
|
|
13
|
+
import '../../formatting-BwpZWdGi.js';
|
|
14
|
+
import '../../colors-C3vA7HUU.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Extension Factory Functions
|
|
18
|
+
*
|
|
19
|
+
* Creates extension instances from definitions.
|
|
20
|
+
* Each factory returns a function that accepts options and returns an extension instance.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a generic extension (plugins, commands, keymaps — no schema contribution)
|
|
25
|
+
*/
|
|
26
|
+
declare function createExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: ExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => Extension;
|
|
27
|
+
/**
|
|
28
|
+
* Create a node extension (contributes a NodeSpec to the schema)
|
|
29
|
+
*/
|
|
30
|
+
declare function createNodeExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: NodeExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => NodeExtension;
|
|
31
|
+
/**
|
|
32
|
+
* Create a mark extension (contributes a MarkSpec to the schema)
|
|
33
|
+
*/
|
|
34
|
+
declare function createMarkExtension<TOptions extends Record<string, unknown> = Record<string, unknown>>(def: MarkExtensionDefinition<TOptions>): (options?: Partial<TOptions>) => MarkExtension;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* StarterKit — bundles all extensions into a ready-to-use set
|
|
38
|
+
*
|
|
39
|
+
* Usage:
|
|
40
|
+
* const extensions = createStarterKit();
|
|
41
|
+
* const manager = new ExtensionManager(extensions);
|
|
42
|
+
* manager.buildSchema();
|
|
43
|
+
* manager.initializeRuntime();
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
interface StarterKitOptions {
|
|
47
|
+
/** Extensions to disable by name */
|
|
48
|
+
disable?: string[];
|
|
49
|
+
/** History depth (default: 100) */
|
|
50
|
+
historyDepth?: number;
|
|
51
|
+
/** History new group delay (default: 500) */
|
|
52
|
+
historyNewGroupDelay?: number;
|
|
53
|
+
/** Selection change callback */
|
|
54
|
+
onSelectionChange?: SelectionChangeCallback;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create the full set of extensions for the DOCX editor
|
|
58
|
+
*/
|
|
59
|
+
declare function createStarterKit(options?: StarterKitOptions): AnyExtension[];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get the set of changed paragraph IDs from an EditorState
|
|
63
|
+
*/
|
|
64
|
+
declare function getChangedParagraphIds(state: EditorState): Set<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Check if structural changes (paragraph add/delete) occurred
|
|
67
|
+
*/
|
|
68
|
+
declare function hasStructuralChanges(state: EditorState): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Check if any changes affected paragraphs without paraId
|
|
71
|
+
*/
|
|
72
|
+
declare function hasUntrackedChanges(state: EditorState): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Create a transaction that clears the change tracker
|
|
75
|
+
*/
|
|
76
|
+
declare function clearTrackedChanges(state: EditorState): Transaction;
|
|
77
|
+
declare const ParagraphChangeTrackerExtension: (options?: Partial<{}> | undefined) => Extension;
|
|
78
|
+
|
|
79
|
+
export { AnyExtension, Extension, ExtensionDefinition, MarkExtension, MarkExtensionDefinition, NodeExtension, NodeExtensionDefinition, ParagraphChangeTrackerExtension, type StarterKitOptions, clearTrackedChanges, createExtension, createMarkExtension, createNodeExtension, createStarterKit, getChangedParagraphIds, hasStructuralChanges, hasUntrackedChanges };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkDFZTUQ7O_js=require('../../chunk-DFZTUQ7O.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js');var chunkNERY274X_js=require('../../chunk-NERY274X.js');require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-T4CPTPRP.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"ExtensionManager",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.w}});Object.defineProperty(exports,"ParagraphChangeTrackerExtension",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.u}});Object.defineProperty(exports,"clearTrackedChanges",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.t}});Object.defineProperty(exports,"createStarterKit",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.v}});Object.defineProperty(exports,"getChangedParagraphIds",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.q}});Object.defineProperty(exports,"hasStructuralChanges",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.r}});Object.defineProperty(exports,"hasUntrackedChanges",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.s}});Object.defineProperty(exports,"Priority",{enumerable:true,get:function(){return chunkNERY274X_js.a}});Object.defineProperty(exports,"TableCellExtension",{enumerable:true,get:function(){return chunkNERY274X_js.k}});Object.defineProperty(exports,"TableHeaderExtension",{enumerable:true,get:function(){return chunkNERY274X_js.l}});Object.defineProperty(exports,"TableNodeExtension",{enumerable:true,get:function(){return chunkNERY274X_js.i}});Object.defineProperty(exports,"TableRowExtension",{enumerable:true,get:function(){return chunkNERY274X_js.j}});Object.defineProperty(exports,"createExtension",{enumerable:true,get:function(){return chunkNERY274X_js.b}});Object.defineProperty(exports,"createMarkExtension",{enumerable:true,get:function(){return chunkNERY274X_js.d}});Object.defineProperty(exports,"createNodeExtension",{enumerable:true,get:function(){return chunkNERY274X_js.c}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{w as ExtensionManager,u as ParagraphChangeTrackerExtension,t as clearTrackedChanges,v as createStarterKit,q as getChangedParagraphIds,r as hasStructuralChanges,s as hasUntrackedChanges}from'../../chunk-LVD6HXRF.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';export{a as Priority,k as TableCellExtension,l as TableHeaderExtension,i as TableNodeExtension,j as TableRowExtension,b as createExtension,d as createMarkExtension,c as createNodeExtension}from'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-6VUYFDHY.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Extension — 4 node specs + plugins + commands
|
|
3
|
+
*
|
|
4
|
+
* Uses separate NodeExtension instances for each table node type, plus an
|
|
5
|
+
* Extension that registers the prosemirror-tables editing plugins, the
|
|
6
|
+
* Backspace/Delete keymap chain, and the full 32-command surface.
|
|
7
|
+
*
|
|
8
|
+
* NodeSpecs (declarative attrs + parseDOM + toDOM) and the CSS-paste
|
|
9
|
+
* helpers shared by td/th live in ./{specs,paste}.ts. The table-context
|
|
10
|
+
* query / cell-navigation helpers live in ./context.ts. The plugin
|
|
11
|
+
* runtime itself lives under ./commands/ — one file per command domain
|
|
12
|
+
* (insert, delete, selection, borders, cellFormatting, sizing,
|
|
13
|
+
* tableStyle), plus shared helpers and the active-cell decoration plugin.
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
import { N as NodeExtension, E as Extension, A as AnyExtension } from '../../../types-RchZmPFN.mjs';
|
|
18
|
+
export { B as BorderPreset, a as BorderSpec, T as TableContextInfo, g as getTableContext, b as goToNextCell, c as goToPrevCell, i as isInTable } from '../../../borders-BH_GoYU3.mjs';
|
|
19
|
+
import 'prosemirror-model';
|
|
20
|
+
import 'prosemirror-state';
|
|
21
|
+
import '../../../colors-C3vA7HUU.mjs';
|
|
22
|
+
|
|
23
|
+
declare const TableNodeExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
24
|
+
declare const TableRowExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
25
|
+
declare const TableCellExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
26
|
+
declare const TableHeaderExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
27
|
+
declare const TablePluginExtension: (options?: Partial<Record<string, unknown>> | undefined) => Extension;
|
|
28
|
+
declare function createTableExtensions(): AnyExtension[];
|
|
29
|
+
|
|
30
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TablePluginExtension, TableRowExtension, createTableExtensions };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Extension — 4 node specs + plugins + commands
|
|
3
|
+
*
|
|
4
|
+
* Uses separate NodeExtension instances for each table node type, plus an
|
|
5
|
+
* Extension that registers the prosemirror-tables editing plugins, the
|
|
6
|
+
* Backspace/Delete keymap chain, and the full 32-command surface.
|
|
7
|
+
*
|
|
8
|
+
* NodeSpecs (declarative attrs + parseDOM + toDOM) and the CSS-paste
|
|
9
|
+
* helpers shared by td/th live in ./{specs,paste}.ts. The table-context
|
|
10
|
+
* query / cell-navigation helpers live in ./context.ts. The plugin
|
|
11
|
+
* runtime itself lives under ./commands/ — one file per command domain
|
|
12
|
+
* (insert, delete, selection, borders, cellFormatting, sizing,
|
|
13
|
+
* tableStyle), plus shared helpers and the active-cell decoration plugin.
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
import { N as NodeExtension, E as Extension, A as AnyExtension } from '../../../types-RchZmPFN.js';
|
|
18
|
+
export { B as BorderPreset, a as BorderSpec, T as TableContextInfo, g as getTableContext, b as goToNextCell, c as goToPrevCell, i as isInTable } from '../../../borders-Z9hPno2u.js';
|
|
19
|
+
import 'prosemirror-model';
|
|
20
|
+
import 'prosemirror-state';
|
|
21
|
+
import '../../../colors-C3vA7HUU.js';
|
|
22
|
+
|
|
23
|
+
declare const TableNodeExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
24
|
+
declare const TableRowExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
25
|
+
declare const TableCellExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
26
|
+
declare const TableHeaderExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
27
|
+
declare const TablePluginExtension: (options?: Partial<Record<string, unknown>> | undefined) => Extension;
|
|
28
|
+
declare function createTableExtensions(): AnyExtension[];
|
|
29
|
+
|
|
30
|
+
export { TableCellExtension, TableHeaderExtension, TableNodeExtension, TablePluginExtension, TableRowExtension, createTableExtensions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNERY274X_js=require('../../../chunk-NERY274X.js');require('../../../chunk-MJ5FQX7Q.js'),require('../../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"TableCellExtension",{enumerable:true,get:function(){return chunkNERY274X_js.k}});Object.defineProperty(exports,"TableHeaderExtension",{enumerable:true,get:function(){return chunkNERY274X_js.l}});Object.defineProperty(exports,"TableNodeExtension",{enumerable:true,get:function(){return chunkNERY274X_js.i}});Object.defineProperty(exports,"TablePluginExtension",{enumerable:true,get:function(){return chunkNERY274X_js.m}});Object.defineProperty(exports,"TableRowExtension",{enumerable:true,get:function(){return chunkNERY274X_js.j}});Object.defineProperty(exports,"createTableExtensions",{enumerable:true,get:function(){return chunkNERY274X_js.n}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkNERY274X_js.e}});Object.defineProperty(exports,"goToNextCell",{enumerable:true,get:function(){return chunkNERY274X_js.g}});Object.defineProperty(exports,"goToPrevCell",{enumerable:true,get:function(){return chunkNERY274X_js.h}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkNERY274X_js.f}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{k as TableCellExtension,l as TableHeaderExtension,i as TableNodeExtension,m as TablePluginExtension,j as TableRowExtension,n as createTableExtensions,e as getTableContext,g as goToNextCell,h as goToPrevCell,f as isInTable}from'../../../chunk-CP5OSG5Z.mjs';import'../../../chunk-67LVRQIR.mjs';import'../../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Integration for DOCX Editor
|
|
3
|
+
*
|
|
4
|
+
* This module provides ProseMirror-based editing:
|
|
5
|
+
* - Schema for DOCX document structure
|
|
6
|
+
* - Bidirectional conversion between Document and PM
|
|
7
|
+
* - React wrapper component
|
|
8
|
+
* - Plugins for selection tracking
|
|
9
|
+
* - Commands for formatting
|
|
10
|
+
* - Extension system for schema, plugins, and keymaps
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export { schema } from './schema/index.mjs';
|
|
15
|
+
export { ToProseDocOptions, createEmptyDoc, footnoteToProseDoc, headerFooterToProseDoc, toProseDoc } from './conversion/index.mjs';
|
|
16
|
+
export { fromProseDoc, updateDocumentContent } from './conversion/fromProseDoc.mjs';
|
|
17
|
+
export { ResolvedParagraphStyle, StyleResolver, createStyleResolver } from './styles/index.mjs';
|
|
18
|
+
import { EditorState } from 'prosemirror-state';
|
|
19
|
+
export { TextSelection } from 'prosemirror-state';
|
|
20
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-D9I-lFS4.mjs';
|
|
21
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './plugins/selectionTracker.mjs';
|
|
22
|
+
export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './commands/formatting.mjs';
|
|
23
|
+
export { addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, toggleBulletList, toggleNumberedList } from './commands/paragraph.mjs';
|
|
24
|
+
export { a as addColumnLeft, b as addColumnRight, c as addRowAbove, d as addRowBelow, e as applyTableStyle, f as autoFitContents, g as deleteColumn, h as deleteRow, i as deleteTable, j as distributeColumns, k as insertTable, m as mergeCells, r as removeTableBorders, s as selectColumn, l as selectRow, n as selectTable, o as setAllTableBorders, p as setCellBorder, q as setCellFillColor, t as setCellMargins, u as setCellTextDirection, v as setCellVerticalAlign, w as setInsideTableBorders, x as setOutsideTableBorders, y as setRowHeight, z as setTableBorderColor, A as setTableBorderWidth, B as setTableBorders, C as setTableProperties, D as splitCell, E as toggleHeaderRow, F as toggleNoWrap } from '../table-_t_W8oQf.mjs';
|
|
25
|
+
export { insertPageBreak } from './commands/pageBreak.mjs';
|
|
26
|
+
export { I as ImageAttrs, P as ParagraphAttrs } from '../nodes-BXi1Uu3e.mjs';
|
|
27
|
+
export { f as findParagraphByParaId, a as findStartPosForParaId } from '../findParagraphByParaId-Maw_8M5D.mjs';
|
|
28
|
+
export { LayoutSelectionGate } from './utils/LayoutSelectionGate.mjs';
|
|
29
|
+
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../borders-BH_GoYU3.mjs';
|
|
30
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../marks-CCPVlQzL.mjs';
|
|
31
|
+
import 'prosemirror-model';
|
|
32
|
+
import '../types-RchZmPFN.mjs';
|
|
33
|
+
import '../types/document.mjs';
|
|
34
|
+
import '../colors-C3vA7HUU.mjs';
|
|
35
|
+
import '../lists-JDB80qyP.mjs';
|
|
36
|
+
import '../types/content.mjs';
|
|
37
|
+
import '../docx/wrapTypes.mjs';
|
|
38
|
+
import '../styles-BBoqh07F.mjs';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Selection State Utilities
|
|
42
|
+
*
|
|
43
|
+
* Extracts selection state from ProseMirror for toolbar integration.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Selection state for toolbar integration
|
|
48
|
+
*/
|
|
49
|
+
interface SelectionState {
|
|
50
|
+
/** Whether there's an active selection (not just cursor) */
|
|
51
|
+
hasSelection: boolean;
|
|
52
|
+
/** Whether selection spans multiple paragraphs */
|
|
53
|
+
isMultiParagraph: boolean;
|
|
54
|
+
/** Current text formatting at selection/cursor */
|
|
55
|
+
textFormatting: TextFormatting;
|
|
56
|
+
/** Current paragraph formatting */
|
|
57
|
+
paragraphFormatting: ParagraphFormatting;
|
|
58
|
+
/** Current paragraph style ID (e.g., 'Heading1', 'Normal') */
|
|
59
|
+
styleId: string | null;
|
|
60
|
+
/** Start paragraph index */
|
|
61
|
+
startParagraphIndex: number;
|
|
62
|
+
/** End paragraph index */
|
|
63
|
+
endParagraphIndex: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Extract selection state from editor state.
|
|
67
|
+
* Used by PagedEditor integration in DocxEditor for toolbar state.
|
|
68
|
+
*/
|
|
69
|
+
declare function extractSelectionState(state: EditorState): SelectionState | null;
|
|
70
|
+
|
|
71
|
+
export { type SelectionState, extractSelectionState };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Integration for DOCX Editor
|
|
3
|
+
*
|
|
4
|
+
* This module provides ProseMirror-based editing:
|
|
5
|
+
* - Schema for DOCX document structure
|
|
6
|
+
* - Bidirectional conversion between Document and PM
|
|
7
|
+
* - React wrapper component
|
|
8
|
+
* - Plugins for selection tracking
|
|
9
|
+
* - Commands for formatting
|
|
10
|
+
* - Extension system for schema, plugins, and keymaps
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export { schema } from './schema/index.js';
|
|
15
|
+
export { ToProseDocOptions, createEmptyDoc, footnoteToProseDoc, headerFooterToProseDoc, toProseDoc } from './conversion/index.js';
|
|
16
|
+
export { fromProseDoc, updateDocumentContent } from './conversion/fromProseDoc.js';
|
|
17
|
+
export { ResolvedParagraphStyle, StyleResolver, createStyleResolver } from './styles/index.js';
|
|
18
|
+
import { EditorState } from 'prosemirror-state';
|
|
19
|
+
export { TextSelection } from 'prosemirror-state';
|
|
20
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-BwpZWdGi.js';
|
|
21
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './plugins/selectionTracker.js';
|
|
22
|
+
export { clearFontFamily, clearFontSize, clearFormatting, clearHighlight, clearTextColor, findHyperlinkRangeAt, getHyperlinkAttrs, getMarkAttr, getSelectedText, insertHyperlink, isHyperlinkActive, isMarkActive, removeHyperlink, setFontFamily, setFontSize, setHighlight, setHyperlink, setTextColor, toggleBold, toggleItalic, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline } from './commands/formatting.js';
|
|
23
|
+
export { addTabStop, alignCenter, alignJustify, alignLeft, alignRight, applyStyle, clearStyle, decreaseIndent, decreaseListLevel, generateTOC, getListInfo, getParagraphAlignment, getParagraphBidi, getStyleId, increaseIndent, increaseListLevel, isInList, removeList, removeTabStop, setAlignment, setIndentFirstLine, setIndentLeft, setIndentRight, setLineSpacing, setLtr, setRtl, toggleBulletList, toggleNumberedList } from './commands/paragraph.js';
|
|
24
|
+
export { a as addColumnLeft, b as addColumnRight, c as addRowAbove, d as addRowBelow, e as applyTableStyle, f as autoFitContents, g as deleteColumn, h as deleteRow, i as deleteTable, j as distributeColumns, k as insertTable, m as mergeCells, r as removeTableBorders, s as selectColumn, l as selectRow, n as selectTable, o as setAllTableBorders, p as setCellBorder, q as setCellFillColor, t as setCellMargins, u as setCellTextDirection, v as setCellVerticalAlign, w as setInsideTableBorders, x as setOutsideTableBorders, y as setRowHeight, z as setTableBorderColor, A as setTableBorderWidth, B as setTableBorders, C as setTableProperties, D as splitCell, E as toggleHeaderRow, F as toggleNoWrap } from '../table-P8esKWAc.js';
|
|
25
|
+
export { insertPageBreak } from './commands/pageBreak.js';
|
|
26
|
+
export { I as ImageAttrs, P as ParagraphAttrs } from '../nodes-DfKj9kUA.js';
|
|
27
|
+
export { f as findParagraphByParaId, a as findStartPosForParaId } from '../findParagraphByParaId-Maw_8M5D.js';
|
|
28
|
+
export { LayoutSelectionGate } from './utils/LayoutSelectionGate.js';
|
|
29
|
+
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../borders-Z9hPno2u.js';
|
|
30
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../marks-BujVxYP4.js';
|
|
31
|
+
import 'prosemirror-model';
|
|
32
|
+
import '../types-RchZmPFN.js';
|
|
33
|
+
import '../types/document.js';
|
|
34
|
+
import '../colors-C3vA7HUU.js';
|
|
35
|
+
import '../lists-CdiIk_c1.js';
|
|
36
|
+
import '../types/content.js';
|
|
37
|
+
import '../docx/wrapTypes.js';
|
|
38
|
+
import '../styles-jqO45PSq.js';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Selection State Utilities
|
|
42
|
+
*
|
|
43
|
+
* Extracts selection state from ProseMirror for toolbar integration.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Selection state for toolbar integration
|
|
48
|
+
*/
|
|
49
|
+
interface SelectionState {
|
|
50
|
+
/** Whether there's an active selection (not just cursor) */
|
|
51
|
+
hasSelection: boolean;
|
|
52
|
+
/** Whether selection spans multiple paragraphs */
|
|
53
|
+
isMultiParagraph: boolean;
|
|
54
|
+
/** Current text formatting at selection/cursor */
|
|
55
|
+
textFormatting: TextFormatting;
|
|
56
|
+
/** Current paragraph formatting */
|
|
57
|
+
paragraphFormatting: ParagraphFormatting;
|
|
58
|
+
/** Current paragraph style ID (e.g., 'Heading1', 'Normal') */
|
|
59
|
+
styleId: string | null;
|
|
60
|
+
/** Start paragraph index */
|
|
61
|
+
startParagraphIndex: number;
|
|
62
|
+
/** End paragraph index */
|
|
63
|
+
endParagraphIndex: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Extract selection state from editor state.
|
|
67
|
+
* Used by PagedEditor integration in DocxEditor for toolbar state.
|
|
68
|
+
*/
|
|
69
|
+
declare function extractSelectionState(state: EditorState): SelectionState | null;
|
|
70
|
+
|
|
71
|
+
export { type SelectionState, extractSelectionState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';require('../chunk-TRJWRZZD.js');var chunk4GER4JLW_js=require('../chunk-4GER4JLW.js'),chunkI6PMX4BO_js=require('../chunk-I6PMX4BO.js');require('../chunk-UQ6WNWXX.js');var chunkLMF2ELOB_js=require('../chunk-LMF2ELOB.js'),chunkY7JZPBBW_js=require('../chunk-Y7JZPBBW.js');require('../chunk-D4RPOJC7.js');var chunkIP2VXNWG_js=require('../chunk-IP2VXNWG.js');require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-YGHHSCPR.js'),require('../chunk-7VCMJCBY.js');var chunkSYJAAHUK_js=require('../chunk-SYJAAHUK.js'),chunk62NPHRTF_js=require('../chunk-62NPHRTF.js'),chunkUDPROEUK_js=require('../chunk-UDPROEUK.js'),chunkGGPKPXON_js=require('../chunk-GGPKPXON.js');require('../chunk-2KHWHVTA.js');var chunkSUXJX72X_js=require('../chunk-SUXJX72X.js'),chunkDFZTUQ7O_js=require('../chunk-DFZTUQ7O.js');require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js');var chunk6LVPRTB6_js=require('../chunk-6LVPRTB6.js'),chunkNERY274X_js=require('../chunk-NERY274X.js');require('../chunk-MJ5FQX7Q.js'),require('../chunk-T4CPTPRP.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');var prosemirrorState=require('prosemirror-state');function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}Object.defineProperty(exports,"LayoutSelectionGate",{enumerable:true,get:function(){return chunk4GER4JLW_js.a}});Object.defineProperty(exports,"findParagraphByParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.b}});Object.defineProperty(exports,"findStartPosForParaId",{enumerable:true,get:function(){return chunkI6PMX4BO_js.a}});Object.defineProperty(exports,"fromProseDoc",{enumerable:true,get:function(){return chunkLMF2ELOB_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkLMF2ELOB_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkY7JZPBBW_js.a}});Object.defineProperty(exports,"StyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkIP2VXNWG_js.b}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkSYJAAHUK_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.h}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkSYJAAHUK_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkSYJAAHUK_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkSYJAAHUK_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkSYJAAHUK_js.B}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkSYJAAHUK_js.n}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkSYJAAHUK_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkSYJAAHUK_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkSYJAAHUK_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkSYJAAHUK_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkSYJAAHUK_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkSYJAAHUK_js.v}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkSYJAAHUK_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkSYJAAHUK_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkSYJAAHUK_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkSYJAAHUK_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkSYJAAHUK_js.D}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkSYJAAHUK_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkSYJAAHUK_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkSYJAAHUK_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunk62NPHRTF_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunk62NPHRTF_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunk62NPHRTF_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.r}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunk62NPHRTF_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunk62NPHRTF_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunk62NPHRTF_js.q}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunk62NPHRTF_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunk62NPHRTF_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunk62NPHRTF_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunk62NPHRTF_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunk62NPHRTF_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunk62NPHRTF_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunk62NPHRTF_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunk62NPHRTF_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunk62NPHRTF_js.B}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunk62NPHRTF_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunk62NPHRTF_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkUDPROEUK_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkUDPROEUK_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkUDPROEUK_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkUDPROEUK_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkUDPROEUK_js.h}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkUDPROEUK_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkUDPROEUK_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkUDPROEUK_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkUDPROEUK_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkUDPROEUK_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkSUXJX72X_js.b}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.h}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.n}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.l}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.p}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.f}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.m}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.k}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.o}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkDFZTUQ7O_js.e}});Object.defineProperty(exports,"createSelectionTrackerPlugin",{enumerable:true,get:function(){return chunk6LVPRTB6_js.c}});Object.defineProperty(exports,"extractSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.b}});Object.defineProperty(exports,"getSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.d}});Object.defineProperty(exports,"selectionTrackerKey",{enumerable:true,get:function(){return chunk6LVPRTB6_js.a}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkNERY274X_js.e}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkNERY274X_js.f}});Object.defineProperty(exports,"TextSelection",{enumerable:true,get:function(){return prosemirrorState.TextSelection}});exports.extractSelectionState=fe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'../chunk-NNQWQOC5.mjs';export{a as LayoutSelectionGate}from'../chunk-Q5QOBZWT.mjs';export{b as findParagraphByParaId,a as findStartPosForParaId}from'../chunk-3SXJPJSV.mjs';import'../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,b as updateDocumentContent}from'../chunk-UOFQYE2L.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-UIROUI5I.mjs';import'../chunk-LBKMYD3M.mjs';export{a as StyleResolver,b as createStyleResolver}from'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-IBNUQL57.mjs';import'../chunk-6LOYA7G5.mjs';export{g as addColumnLeft,h as addColumnRight,d as addRowAbove,e as addRowBelow,E as applyTableStyle,C as autoFitContents,i as deleteColumn,f as deleteRow,j as deleteTable,B as distributeColumns,c as insertTable,n as mergeCells,r as removeTableBorders,m as selectColumn,l as selectRow,k as selectTable,s as setAllTableBorders,p as setCellBorder,F as setCellFillColor,w as setCellMargins,x as setCellTextDirection,v as setCellVerticalAlign,u as setInsideTableBorders,t as setOutsideTableBorders,z as setRowHeight,G as setTableBorderColor,H as setTableBorderWidth,q as setTableBorders,D as setTableProperties,o as splitCell,A as toggleHeaderRow,y as toggleNoWrap}from'../chunk-GXW7YSFL.mjs';export{z as addTabStop,c as alignCenter,e as alignJustify,b as alignLeft,d as alignRight,v as applyStyle,w as clearStyle,k as decreaseIndent,r as decreaseListLevel,D as generateTOC,j as increaseIndent,q as increaseListLevel,s as removeList,A as removeTabStop,a as setAlignment,n as setIndentFirstLine,l as setIndentLeft,m as setIndentRight,f as setLineSpacing,C as setLtr,B as setRtl,o as toggleBulletList,p as toggleNumberedList}from'../chunk-YUKBAAB5.mjs';export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../chunk-DWFWYHM5.mjs';export{a as insertPageBreak}from'../chunk-3COGZG7O.mjs';import'../chunk-KQTB5Y7P.mjs';export{b as schema}from'../chunk-JKVXID22.mjs';export{h as clearFormatting,n as findHyperlinkRangeAt,l as getHyperlinkAttrs,p as getListInfo,f as getMarkAttr,a as getParagraphAlignment,d as getParagraphBidi,m as getSelectedText,c as getStyleId,k as isHyperlinkActive,o as isInList,e as isMarkActive}from'../chunk-LVD6HXRF.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../chunk-BGY3CB37.mjs';export{e as getTableContext,f as isInTable}from'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-6VUYFDHY.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';export{TextSelection}from'prosemirror-state';function fe(i){let{selection:l,doc:s}=i,{from:g,to:h,empty:u}=l,b=s.resolve(g),o=0,n=0;s.forEach((a,m,f)=>{m<=g&&(o=f),m<=h&&(n=f);});let e={},t=b.parent,S=t.type.name==="paragraph"&&t.textContent.length===0,c=t.attrs?.defaultTextFormatting,p=i.storedMarks||l.$from.marks();S&&p.length===0&&c&&(e={...c});for(let a of p)switch(a.type.name){case "bold":e.bold=true;break;case "italic":e.italic=true;break;case "underline":e.underline={style:a.attrs.style||"single",color:a.attrs.color};break;case "strike":a.attrs.double?e.doubleStrike=true:e.strike=true;break;case "textColor":e.color={rgb:a.attrs.rgb,themeColor:a.attrs.themeColor};break;case "highlight":e.highlight=a.attrs.color;break;case "fontSize":e.fontSize=a.attrs.size;break;case "fontFamily":e.fontFamily={ascii:a.attrs.ascii,hAnsi:a.attrs.hAnsi};break;case "superscript":e.vertAlign="superscript";break;case "subscript":e.vertAlign="subscript";break}let r={},d=null;return t.type.name==="paragraph"&&(t.attrs.alignment&&(r.alignment=t.attrs.alignment),t.attrs.lineSpacing&&(r.lineSpacing=t.attrs.lineSpacing,r.lineSpacingRule=t.attrs.lineSpacingRule),t.attrs.numPr&&(r.numPr=t.attrs.numPr),t.attrs.indentLeft&&(r.indentLeft=t.attrs.indentLeft),t.attrs.indentRight&&(r.indentRight=t.attrs.indentRight),t.attrs.indentFirstLine&&(r.indentFirstLine=t.attrs.indentFirstLine),t.attrs.hangingIndent&&(r.hangingIndent=t.attrs.hangingIndent),t.attrs.tabs&&(r.tabs=t.attrs.tabs),t.attrs.bidi&&(r.bidi=true),t.attrs.styleId&&(d=t.attrs.styleId)),{hasSelection:!u,isMultiParagraph:o!==n,textFormatting:e,paragraphFormatting:r,styleId:d,startParagraphIndex:o,endParagraphIndex:n}}export{fe as extractSelectionState};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Plugins
|
|
3
|
+
*
|
|
4
|
+
* Selection tracker plugin for the DOCX editor.
|
|
5
|
+
* Keymap plugins are now provided by the extension system.
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.mjs';
|
|
10
|
+
import { Plugin, EditorState, Transaction, PluginKey } from 'prosemirror-state';
|
|
11
|
+
import '../../formatting-D9I-lFS4.mjs';
|
|
12
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Suggestion Mode Plugin
|
|
16
|
+
*
|
|
17
|
+
* When active, intercepts all text insertions and deletions,
|
|
18
|
+
* wrapping them in tracked change marks (insertion/deletion)
|
|
19
|
+
* instead of modifying the document directly.
|
|
20
|
+
*
|
|
21
|
+
* - Typed text is marked as insertion (green underline)
|
|
22
|
+
* - Deleted text is NOT removed — it's marked as deletion (red strikethrough)
|
|
23
|
+
* - Text already marked as insertion by the current author is deleted normally
|
|
24
|
+
* (retracting your own suggestion)
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
declare const suggestionModeKey: PluginKey<SuggestionModeState>;
|
|
28
|
+
interface SuggestionModeState {
|
|
29
|
+
active: boolean;
|
|
30
|
+
author: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create the suggestion mode plugin.
|
|
34
|
+
* When active, text edits become tracked changes.
|
|
35
|
+
*/
|
|
36
|
+
declare function createSuggestionModePlugin(initialActive?: boolean, author?: string): Plugin;
|
|
37
|
+
/**
|
|
38
|
+
* Toggle suggestion mode on/off.
|
|
39
|
+
*/
|
|
40
|
+
declare function toggleSuggestionMode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set suggestion mode active state and author.
|
|
43
|
+
*/
|
|
44
|
+
declare function setSuggestionMode(active: boolean, state: EditorState, dispatch?: (tr: Transaction) => void, author?: string): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Check if suggestion mode is currently active.
|
|
47
|
+
*/
|
|
48
|
+
declare function isSuggestionModeActive(state: EditorState): boolean;
|
|
49
|
+
|
|
50
|
+
export { createSuggestionModePlugin, isSuggestionModeActive, setSuggestionMode, suggestionModeKey, toggleSuggestionMode };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProseMirror Plugins
|
|
3
|
+
*
|
|
4
|
+
* Selection tracker plugin for the DOCX editor.
|
|
5
|
+
* Keymap plugins are now provided by the extension system.
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.js';
|
|
10
|
+
import { Plugin, EditorState, Transaction, PluginKey } from 'prosemirror-state';
|
|
11
|
+
import '../../formatting-BwpZWdGi.js';
|
|
12
|
+
import '../../colors-C3vA7HUU.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Suggestion Mode Plugin
|
|
16
|
+
*
|
|
17
|
+
* When active, intercepts all text insertions and deletions,
|
|
18
|
+
* wrapping them in tracked change marks (insertion/deletion)
|
|
19
|
+
* instead of modifying the document directly.
|
|
20
|
+
*
|
|
21
|
+
* - Typed text is marked as insertion (green underline)
|
|
22
|
+
* - Deleted text is NOT removed — it's marked as deletion (red strikethrough)
|
|
23
|
+
* - Text already marked as insertion by the current author is deleted normally
|
|
24
|
+
* (retracting your own suggestion)
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
declare const suggestionModeKey: PluginKey<SuggestionModeState>;
|
|
28
|
+
interface SuggestionModeState {
|
|
29
|
+
active: boolean;
|
|
30
|
+
author: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create the suggestion mode plugin.
|
|
34
|
+
* When active, text edits become tracked changes.
|
|
35
|
+
*/
|
|
36
|
+
declare function createSuggestionModePlugin(initialActive?: boolean, author?: string): Plugin;
|
|
37
|
+
/**
|
|
38
|
+
* Toggle suggestion mode on/off.
|
|
39
|
+
*/
|
|
40
|
+
declare function toggleSuggestionMode(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set suggestion mode active state and author.
|
|
43
|
+
*/
|
|
44
|
+
declare function setSuggestionMode(active: boolean, state: EditorState, dispatch?: (tr: Transaction) => void, author?: string): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Check if suggestion mode is currently active.
|
|
47
|
+
*/
|
|
48
|
+
declare function isSuggestionModeActive(state: EditorState): boolean;
|
|
49
|
+
|
|
50
|
+
export { createSuggestionModePlugin, isSuggestionModeActive, setSuggestionMode, suggestionModeKey, toggleSuggestionMode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkTRJWRZZD_js=require('../../chunk-TRJWRZZD.js'),chunk6LVPRTB6_js=require('../../chunk-6LVPRTB6.js');require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"createSuggestionModePlugin",{enumerable:true,get:function(){return chunkTRJWRZZD_js.b}});Object.defineProperty(exports,"isSuggestionModeActive",{enumerable:true,get:function(){return chunkTRJWRZZD_js.e}});Object.defineProperty(exports,"setSuggestionMode",{enumerable:true,get:function(){return chunkTRJWRZZD_js.d}});Object.defineProperty(exports,"suggestionModeKey",{enumerable:true,get:function(){return chunkTRJWRZZD_js.a}});Object.defineProperty(exports,"toggleSuggestionMode",{enumerable:true,get:function(){return chunkTRJWRZZD_js.c}});Object.defineProperty(exports,"createSelectionTrackerPlugin",{enumerable:true,get:function(){return chunk6LVPRTB6_js.c}});Object.defineProperty(exports,"extractSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.b}});Object.defineProperty(exports,"getSelectionContext",{enumerable:true,get:function(){return chunk6LVPRTB6_js.d}});Object.defineProperty(exports,"selectionTrackerKey",{enumerable:true,get:function(){return chunk6LVPRTB6_js.a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as createSuggestionModePlugin,e as isSuggestionModeActive,d as setSuggestionMode,a as suggestionModeKey,c as toggleSuggestionMode}from'../../chunk-NNQWQOC5.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../../chunk-BGY3CB37.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selection Tracker Plugin
|
|
3
|
+
*
|
|
4
|
+
* Tracks selection changes and emits events for toolbar state updates.
|
|
5
|
+
* Provides the current selection context including:
|
|
6
|
+
* - Text formatting at cursor/selection
|
|
7
|
+
* - Paragraph formatting
|
|
8
|
+
* - Selection range information
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, EditorState, PluginKey } from 'prosemirror-state';
|
|
13
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-D9I-lFS4.mjs';
|
|
14
|
+
import '../../colors-C3vA7HUU.mjs';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Selection Tracker Plugin
|
|
18
|
+
*
|
|
19
|
+
* Tracks selection changes and emits events for toolbar state updates.
|
|
20
|
+
* Provides the current selection context including:
|
|
21
|
+
* - Text formatting at cursor/selection
|
|
22
|
+
* - Paragraph formatting
|
|
23
|
+
* - Selection range information
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Selection context for toolbar state
|
|
30
|
+
*/
|
|
31
|
+
interface SelectionContext {
|
|
32
|
+
/** Whether there's a non-collapsed selection */
|
|
33
|
+
hasSelection: boolean;
|
|
34
|
+
/** Whether selection spans multiple paragraphs */
|
|
35
|
+
isMultiParagraph: boolean;
|
|
36
|
+
/** Current text formatting at cursor/selection */
|
|
37
|
+
textFormatting: TextFormatting;
|
|
38
|
+
/** Current paragraph formatting */
|
|
39
|
+
paragraphFormatting: ParagraphFormatting;
|
|
40
|
+
/** Start paragraph index */
|
|
41
|
+
startParagraphIndex: number;
|
|
42
|
+
/** End paragraph index */
|
|
43
|
+
endParagraphIndex: number;
|
|
44
|
+
/** Whether cursor is in a list */
|
|
45
|
+
inList: boolean;
|
|
46
|
+
/** List type if in list */
|
|
47
|
+
listType?: 'bullet' | 'numbered';
|
|
48
|
+
/** List level (0-8) */
|
|
49
|
+
listLevel?: number;
|
|
50
|
+
/** Active comment IDs at cursor position */
|
|
51
|
+
activeCommentIds: number[];
|
|
52
|
+
/** Whether cursor is inside a tracked insertion */
|
|
53
|
+
inInsertion: boolean;
|
|
54
|
+
/** Whether cursor is inside a tracked deletion */
|
|
55
|
+
inDeletion: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Plugin key for accessing selection tracker state
|
|
59
|
+
*/
|
|
60
|
+
declare const selectionTrackerKey: PluginKey<SelectionContext>;
|
|
61
|
+
/**
|
|
62
|
+
* Callback type for selection changes
|
|
63
|
+
*/
|
|
64
|
+
type SelectionChangeCallback = (context: SelectionContext) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Extract selection context from editor state
|
|
67
|
+
*/
|
|
68
|
+
declare function extractSelectionContext(state: EditorState): SelectionContext;
|
|
69
|
+
/**
|
|
70
|
+
* Create selection tracker plugin
|
|
71
|
+
*/
|
|
72
|
+
declare function createSelectionTrackerPlugin(onSelectionChange?: SelectionChangeCallback): Plugin;
|
|
73
|
+
/**
|
|
74
|
+
* Get current selection context from editor state
|
|
75
|
+
*/
|
|
76
|
+
declare function getSelectionContext(state: EditorState): SelectionContext | null;
|
|
77
|
+
|
|
78
|
+
export { type SelectionChangeCallback, type SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey };
|