@zeke-02/docx-editor-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +89 -0
- package/dist/ImageExtension-BN327PNe.d.mts +38 -0
- package/dist/ImageExtension-BlI5afZD.d.ts +38 -0
- package/dist/Subscribable-DOz6Ohoo.d.mts +33 -0
- package/dist/Subscribable-DOz6Ohoo.d.ts +33 -0
- package/dist/agent/index.d.mts +168 -0
- package/dist/agent/index.d.ts +168 -0
- package/dist/agent/index.js +1 -0
- package/dist/agent/index.mjs +1 -0
- package/dist/borders-BH_GoYU3.d.mts +58 -0
- package/dist/borders-Z9hPno2u.d.ts +58 -0
- package/dist/chunk-2HFQ4QTU.js +1 -0
- package/dist/chunk-2KHWHVTA.js +1 -0
- package/dist/chunk-2MSZXH6Q.mjs +2 -0
- package/dist/chunk-3COGZG7O.mjs +1 -0
- package/dist/chunk-3NRMSZX2.mjs +1 -0
- package/dist/chunk-3SXJPJSV.mjs +1 -0
- package/dist/chunk-44FHVKSI.js +1 -0
- package/dist/chunk-4BFNWPKW.js +1 -0
- package/dist/chunk-4G6AJ4ZM.js +1 -0
- package/dist/chunk-4GER4JLW.js +1 -0
- package/dist/chunk-4Q2IP5FW.js +1 -0
- package/dist/chunk-56D223FM.mjs +1 -0
- package/dist/chunk-5VBNOHRE.mjs +1 -0
- package/dist/chunk-67LVRQIR.mjs +1 -0
- package/dist/chunk-6LVPRTB6.js +1 -0
- package/dist/chunk-6NQSIC27.mjs +1 -0
- package/dist/chunk-6Y6LON6Y.mjs +1 -0
- package/dist/chunk-6ZXL3EIP.mjs +2 -0
- package/dist/chunk-7AMYZMCX.js +1 -0
- package/dist/chunk-7E5VBRDL.mjs +1 -0
- package/dist/chunk-7HANRHHL.js +1 -0
- package/dist/chunk-7LRR7RKE.mjs +15 -0
- package/dist/chunk-7RDCZLTU.js +1 -0
- package/dist/chunk-7U4I6BKJ.js +1 -0
- package/dist/chunk-7Z2AGPNQ.mjs +10 -0
- package/dist/chunk-AAPBAMD7.js +1 -0
- package/dist/chunk-AGVFAXVQ.mjs +9 -0
- package/dist/chunk-AMENZY5F.mjs +1 -0
- package/dist/chunk-ARHPXIBJ.mjs +1 -0
- package/dist/chunk-BGY3CB37.mjs +1 -0
- package/dist/chunk-BHBOAP6Z.js +3 -0
- package/dist/chunk-BOOHU5EW.mjs +1 -0
- package/dist/chunk-C2BAPYGJ.js +1 -0
- package/dist/chunk-CGJ6S3AH.mjs +1 -0
- package/dist/chunk-CKKO4JWE.mjs +1 -0
- package/dist/chunk-CTHHUJAB.mjs +2 -0
- package/dist/chunk-CUY2THAO.mjs +1 -0
- package/dist/chunk-CXQDYR2Y.js +1 -0
- package/dist/chunk-D4RPOJC7.js +1 -0
- package/dist/chunk-D6GO7UGD.mjs +1 -0
- package/dist/chunk-DC7S76ZX.js +1 -0
- package/dist/chunk-DROCYKAR.js +1 -0
- package/dist/chunk-DV6GWBUJ.js +2 -0
- package/dist/chunk-DZYYLV2O.js +1 -0
- package/dist/chunk-E4JMCA5X.js +2 -0
- package/dist/chunk-ERNVFCGN.js +59 -0
- package/dist/chunk-ESI4BSBF.js +1 -0
- package/dist/chunk-F44ZLDZS.js +4 -0
- package/dist/chunk-FCJWLEKT.mjs +1 -0
- package/dist/chunk-FDEDN2RC.mjs +0 -0
- package/dist/chunk-FRYMBAHP.js +3 -0
- package/dist/chunk-FWTP7BN7.mjs +4 -0
- package/dist/chunk-G3YJ5RKC.mjs +1 -0
- package/dist/chunk-GGPKPXON.js +1 -0
- package/dist/chunk-HKVAW3RE.js +1 -0
- package/dist/chunk-HQPWFUP5.js +2 -0
- package/dist/chunk-I6PMX4BO.js +1 -0
- package/dist/chunk-ILJUDEZ5.mjs +1 -0
- package/dist/chunk-IMKU4O3P.js +1 -0
- package/dist/chunk-IP2VXNWG.js +1 -0
- package/dist/chunk-J4J2Y6EU.js +10 -0
- package/dist/chunk-J7NADDC4.mjs +1 -0
- package/dist/chunk-JFZIXFRC.js +1 -0
- package/dist/chunk-JHZ3HLSR.mjs +1 -0
- package/dist/chunk-JY5EFI4D.js +1 -0
- package/dist/chunk-JZESIPVC.mjs +3 -0
- package/dist/chunk-K7GVLZS6.mjs +1 -0
- package/dist/chunk-KESNGXGO.js +1 -0
- package/dist/chunk-KQTB5Y7P.mjs +1 -0
- package/dist/chunk-L2U3TTAD.js +9 -0
- package/dist/chunk-LBKMYD3M.mjs +1 -0
- package/dist/chunk-LCICADWM.js +2 -0
- package/dist/chunk-LE67NTCN.mjs +1 -0
- package/dist/chunk-LTHT4A4S.js +1 -0
- package/dist/chunk-MCFHOMA2.js +2 -0
- package/dist/chunk-MCX4GVRX.mjs +1 -0
- package/dist/chunk-MJ5FQX7Q.js +1 -0
- package/dist/chunk-MJ6XZFVD.mjs +1 -0
- package/dist/chunk-MNOHUTKE.js +15 -0
- package/dist/chunk-MOKKS75W.mjs +3 -0
- package/dist/chunk-MP4QSEO2.mjs +1 -0
- package/dist/chunk-MVZOTKNL.mjs +1 -0
- package/dist/chunk-MZ7LW5CH.js +1 -0
- package/dist/chunk-MZOVDLYL.js +1 -0
- package/dist/chunk-N3Y5BUKV.js +1 -0
- package/dist/chunk-NBLJPT54.mjs +1 -0
- package/dist/chunk-NDDJ67FQ.mjs +1 -0
- package/dist/chunk-NMUHXIF5.js +1 -0
- package/dist/chunk-NXLJVVVE.js +1 -0
- package/dist/chunk-OBMN4VSM.mjs +1 -0
- package/dist/chunk-OCAX2KJQ.js +4 -0
- package/dist/chunk-OEXVWIHW.mjs +2 -0
- package/dist/chunk-OZMNIX6U.mjs +1 -0
- package/dist/chunk-PRRM64JO.mjs +1 -0
- package/dist/chunk-PXE2OWEA.mjs +1 -0
- package/dist/chunk-Q4CKLXWA.js +1 -0
- package/dist/chunk-Q5QOBZWT.mjs +1 -0
- package/dist/chunk-QJJQ53V6.mjs +1 -0
- package/dist/chunk-QLPQVR5W.mjs +1 -0
- package/dist/chunk-QLX4HX3I.mjs +59 -0
- package/dist/chunk-QPFJJPIC.mjs +1 -0
- package/dist/chunk-QYUPLKLP.mjs +1 -0
- package/dist/chunk-RFC2SXZ6.mjs +4 -0
- package/dist/chunk-RNOXNNSD.mjs +0 -0
- package/dist/chunk-RPIQG46O.mjs +1 -0
- package/dist/chunk-RQN4C636.js +1 -0
- package/dist/chunk-SHJBS42Y.js +1 -0
- package/dist/chunk-SORYYVJ7.js +1 -0
- package/dist/chunk-SWC6T7YQ.js +1 -0
- package/dist/chunk-TE2AF7FM.js +1 -0
- package/dist/chunk-TE2VQJZG.js +1 -0
- package/dist/chunk-TUIEV7Q7.js +1 -0
- package/dist/chunk-U4UCHBZ7.js +1 -0
- package/dist/chunk-U74VPTIU.js +1 -0
- package/dist/chunk-UCJGOQ4J.mjs +1 -0
- package/dist/chunk-UQ6WNWXX.js +1 -0
- package/dist/chunk-VHUVPHPI.mjs +1 -0
- package/dist/chunk-VQWZHPWI.mjs +1 -0
- package/dist/chunk-VW22RZ6C.mjs +1 -0
- package/dist/chunk-WLHNIXWC.mjs +2 -0
- package/dist/chunk-WLKRUBY4.js +1 -0
- package/dist/chunk-WTFLNYAT.mjs +1 -0
- package/dist/chunk-XNDGWWDT.js +1 -0
- package/dist/chunk-XXU7YQVV.js +1 -0
- package/dist/chunk-Y74ANBPV.js +1 -0
- package/dist/chunk-YMZ3F2FZ.mjs +1 -0
- package/dist/chunk-YTDWMXNS.js +1 -0
- package/dist/chunk-YUZQTRI2.js +1 -0
- package/dist/chunk-ZX26QZJ5.mjs +1 -0
- package/dist/chunk-ZY7EMTZ3.mjs +1 -0
- package/dist/colorResolver-BZ_yScf4.d.ts +390 -0
- package/dist/colorResolver-C6DtsoFI.d.mts +390 -0
- package/dist/colors-C3vA7HUU.d.mts +70 -0
- package/dist/colors-C3vA7HUU.d.ts +70 -0
- package/dist/content-5Mrz6w_b.d.mts +1360 -0
- package/dist/content-CmqAwdFL.d.ts +1360 -0
- package/dist/core-plugins.d.mts +63 -0
- package/dist/core-plugins.d.ts +63 -0
- package/dist/core-plugins.js +1 -0
- package/dist/core-plugins.mjs +1 -0
- package/dist/core.d.mts +398 -0
- package/dist/core.d.ts +398 -0
- package/dist/core.js +1 -0
- package/dist/core.mjs +1 -0
- package/dist/documentSerializer-BRaaXIHm.d.ts +36 -0
- package/dist/documentSerializer-DgO3A9av.d.mts +36 -0
- package/dist/docx/index.d.mts +1123 -0
- package/dist/docx/index.d.ts +1123 -0
- package/dist/docx/index.js +1 -0
- package/dist/docx/index.mjs +1 -0
- package/dist/docx/parser.d.mts +108 -0
- package/dist/docx/parser.d.ts +108 -0
- package/dist/docx/parser.js +1 -0
- package/dist/docx/parser.mjs +1 -0
- package/dist/docx/rezip.d.mts +312 -0
- package/dist/docx/rezip.d.ts +312 -0
- package/dist/docx/rezip.js +1 -0
- package/dist/docx/rezip.mjs +1 -0
- package/dist/docx/serializer/index.d.mts +125 -0
- package/dist/docx/serializer/index.d.ts +125 -0
- package/dist/docx/serializer/index.js +1 -0
- package/dist/docx/serializer/index.mjs +1 -0
- package/dist/docx/wrapTypes.d.mts +19 -0
- package/dist/docx/wrapTypes.d.ts +19 -0
- package/dist/docx/wrapTypes.js +1 -0
- package/dist/docx/wrapTypes.mjs +1 -0
- package/dist/docxInput-DTbCa48g.d.mts +21 -0
- package/dist/docxInput-DTbCa48g.d.ts +21 -0
- package/dist/executor-DZAMMQ35.js +1 -0
- package/dist/executor-ZCJRLT3Z.mjs +1 -0
- package/dist/findParagraphByParaId-Maw_8M5D.d.mts +28 -0
- package/dist/findParagraphByParaId-Maw_8M5D.d.ts +28 -0
- package/dist/fontLoader-8b4X-AIh.d.mts +283 -0
- package/dist/fontLoader-CK2QLq68.d.ts +283 -0
- package/dist/footnotes-lCH_P3N3.d.mts +78 -0
- package/dist/footnotes-skVvEHvZ.d.ts +78 -0
- package/dist/formatting-BH4hcZiq.d.mts +410 -0
- package/dist/formatting-_OXU8gLB.d.ts +410 -0
- package/dist/headerFooterLayout-72Vz7yp3.d.mts +292 -0
- package/dist/headerFooterLayout-Ca4ESDHF.d.ts +292 -0
- package/dist/headless.d.mts +109 -0
- package/dist/headless.d.ts +109 -0
- package/dist/headless.js +1 -0
- package/dist/headless.mjs +1 -0
- package/dist/layout-bridge/clickToPositionDom.d.mts +56 -0
- package/dist/layout-bridge/clickToPositionDom.d.ts +56 -0
- package/dist/layout-bridge/clickToPositionDom.js +1 -0
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -0
- package/dist/layout-bridge/index.d.mts +462 -0
- package/dist/layout-bridge/index.d.ts +462 -0
- package/dist/layout-bridge/index.js +1 -0
- package/dist/layout-bridge/index.mjs +1 -0
- package/dist/layout-bridge/measuring/index.d.mts +377 -0
- package/dist/layout-bridge/measuring/index.d.ts +377 -0
- package/dist/layout-bridge/measuring/index.js +1 -0
- package/dist/layout-bridge/measuring/index.mjs +1 -0
- package/dist/layout-bridge/tableInsertHover.d.mts +45 -0
- package/dist/layout-bridge/tableInsertHover.d.ts +45 -0
- package/dist/layout-bridge/tableInsertHover.js +1 -0
- package/dist/layout-bridge/tableInsertHover.mjs +1 -0
- package/dist/layout-bridge/toFlowBlocks.d.mts +130 -0
- package/dist/layout-bridge/toFlowBlocks.d.ts +130 -0
- package/dist/layout-bridge/toFlowBlocks.js +1 -0
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -0
- package/dist/layout-engine/index.d.mts +352 -0
- package/dist/layout-engine/index.d.ts +352 -0
- package/dist/layout-engine/index.js +1 -0
- package/dist/layout-engine/index.mjs +1 -0
- package/dist/layout-engine/types.d.mts +943 -0
- package/dist/layout-engine/types.d.ts +943 -0
- package/dist/layout-engine/types.js +1 -0
- package/dist/layout-engine/types.mjs +1 -0
- package/dist/layout-painter/index.d.mts +22 -0
- package/dist/layout-painter/index.d.ts +22 -0
- package/dist/layout-painter/index.js +1 -0
- package/dist/layout-painter/index.mjs +1 -0
- package/dist/layout-painter/renderPage.d.mts +680 -0
- package/dist/layout-painter/renderPage.d.ts +680 -0
- package/dist/layout-painter/renderPage.js +1 -0
- package/dist/layout-painter/renderPage.mjs +1 -0
- package/dist/managers/AutoSaveManager.d.mts +95 -0
- package/dist/managers/AutoSaveManager.d.ts +95 -0
- package/dist/managers/AutoSaveManager.js +1 -0
- package/dist/managers/AutoSaveManager.mjs +1 -0
- package/dist/managers/TableSelectionManager.d.mts +94 -0
- package/dist/managers/TableSelectionManager.d.ts +94 -0
- package/dist/managers/TableSelectionManager.js +1 -0
- package/dist/managers/TableSelectionManager.mjs +1 -0
- package/dist/managers/types.d.mts +121 -0
- package/dist/managers/types.d.ts +121 -0
- package/dist/managers/types.js +1 -0
- package/dist/managers/types.mjs +0 -0
- package/dist/marks-BY573yZn.d.mts +56 -0
- package/dist/marks-CjC9tF5k.d.ts +56 -0
- package/dist/mcp-cli.mjs +138 -0
- package/dist/mcp.d.mts +183 -0
- package/dist/mcp.d.ts +183 -0
- package/dist/mcp.js +16 -0
- package/dist/mcp.mjs +16 -0
- package/dist/nodes-7753Bgi_.d.mts +320 -0
- package/dist/nodes-CC_nwkT_.d.ts +320 -0
- package/dist/plugin-api/RenderedDomContext.d.mts +74 -0
- package/dist/plugin-api/RenderedDomContext.d.ts +74 -0
- package/dist/plugin-api/RenderedDomContext.js +1 -0
- package/dist/plugin-api/RenderedDomContext.mjs +1 -0
- package/dist/plugin-api/index.d.mts +15 -0
- package/dist/plugin-api/index.d.ts +15 -0
- package/dist/plugin-api/index.js +1 -0
- package/dist/plugin-api/index.mjs +0 -0
- package/dist/plugin-api/resolveItemPositions.d.mts +54 -0
- package/dist/plugin-api/resolveItemPositions.d.ts +54 -0
- package/dist/plugin-api/resolveItemPositions.js +1 -0
- package/dist/plugin-api/resolveItemPositions.mjs +1 -0
- package/dist/plugin-api/types.d.mts +190 -0
- package/dist/plugin-api/types.d.ts +190 -0
- package/dist/plugin-api/types.js +1 -0
- package/dist/plugin-api/types.mjs +0 -0
- package/dist/processTemplate-GPFDLQMX.mjs +1 -0
- package/dist/processTemplate-HH2E3HBO.js +1 -0
- package/dist/prosemirror/commands/formatting.d.mts +100 -0
- package/dist/prosemirror/commands/formatting.d.ts +100 -0
- package/dist/prosemirror/commands/formatting.js +1 -0
- package/dist/prosemirror/commands/formatting.mjs +1 -0
- package/dist/prosemirror/commands/index.d.mts +188 -0
- package/dist/prosemirror/commands/index.d.ts +188 -0
- package/dist/prosemirror/commands/index.js +1 -0
- package/dist/prosemirror/commands/index.mjs +1 -0
- package/dist/prosemirror/commands/pageBreak.d.mts +20 -0
- package/dist/prosemirror/commands/pageBreak.d.ts +20 -0
- package/dist/prosemirror/commands/pageBreak.js +1 -0
- package/dist/prosemirror/commands/pageBreak.mjs +1 -0
- package/dist/prosemirror/commands/paragraph.d.mts +70 -0
- package/dist/prosemirror/commands/paragraph.d.ts +70 -0
- package/dist/prosemirror/commands/paragraph.js +1 -0
- package/dist/prosemirror/commands/paragraph.mjs +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +65 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +65 -0
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -0
- package/dist/prosemirror/conversion/index.d.mts +85 -0
- package/dist/prosemirror/conversion/index.d.ts +85 -0
- package/dist/prosemirror/conversion/index.js +1 -0
- package/dist/prosemirror/conversion/index.mjs +1 -0
- package/dist/prosemirror/editor.css +823 -0
- package/dist/prosemirror/extensions/index.d.mts +79 -0
- package/dist/prosemirror/extensions/index.d.ts +79 -0
- package/dist/prosemirror/extensions/index.js +1 -0
- package/dist/prosemirror/extensions/index.mjs +1 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.d.mts +30 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +30 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -0
- package/dist/prosemirror/index.d.mts +70 -0
- package/dist/prosemirror/index.d.ts +70 -0
- package/dist/prosemirror/index.js +1 -0
- package/dist/prosemirror/index.mjs +1 -0
- package/dist/prosemirror/plugins/index.d.mts +154 -0
- package/dist/prosemirror/plugins/index.d.ts +154 -0
- package/dist/prosemirror/plugins/index.js +1 -0
- package/dist/prosemirror/plugins/index.mjs +1 -0
- package/dist/prosemirror/plugins/selectionTracker.d.mts +78 -0
- package/dist/prosemirror/plugins/selectionTracker.d.ts +78 -0
- package/dist/prosemirror/plugins/selectionTracker.js +1 -0
- package/dist/prosemirror/plugins/selectionTracker.mjs +1 -0
- package/dist/prosemirror/schema/index.d.mts +29 -0
- package/dist/prosemirror/schema/index.d.ts +29 -0
- package/dist/prosemirror/schema/index.js +1 -0
- package/dist/prosemirror/schema/index.mjs +1 -0
- package/dist/prosemirror/styles/index.d.mts +124 -0
- package/dist/prosemirror/styles/index.d.ts +124 -0
- package/dist/prosemirror/styles/index.js +1 -0
- package/dist/prosemirror/styles/index.mjs +1 -0
- package/dist/prosemirror/template/prosemirror-plugin.d.mts +66 -0
- package/dist/prosemirror/template/prosemirror-plugin.d.ts +66 -0
- package/dist/prosemirror/template/prosemirror-plugin.js +15 -0
- package/dist/prosemirror/template/prosemirror-plugin.mjs +15 -0
- package/dist/prosemirror/utils/ClickPositionResolver.d.mts +109 -0
- package/dist/prosemirror/utils/ClickPositionResolver.d.ts +109 -0
- package/dist/prosemirror/utils/ClickPositionResolver.js +1 -0
- package/dist/prosemirror/utils/ClickPositionResolver.mjs +1 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.d.mts +81 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.d.ts +81 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.js +1 -0
- package/dist/prosemirror/utils/LayoutSelectionGate.mjs +1 -0
- package/dist/prosemirror/utils/PointerEventHandler.d.mts +94 -0
- package/dist/prosemirror/utils/PointerEventHandler.d.ts +94 -0
- package/dist/prosemirror/utils/PointerEventHandler.js +1 -0
- package/dist/prosemirror/utils/PointerEventHandler.mjs +1 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +85 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +85 -0
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -0
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -0
- package/dist/prosemirror/utils/visualLineNavigation.d.mts +45 -0
- package/dist/prosemirror/utils/visualLineNavigation.d.ts +45 -0
- package/dist/prosemirror/utils/visualLineNavigation.js +1 -0
- package/dist/prosemirror/utils/visualLineNavigation.mjs +1 -0
- package/dist/registry-Cpyybgij.d.mts +165 -0
- package/dist/registry-E5pahPKL.d.ts +165 -0
- package/dist/selectionContext-BPAqgNgk.d.ts +570 -0
- package/dist/selectionContext-CoZat7QZ.d.mts +570 -0
- package/dist/selectiveSave-CWaPEv0B.d.ts +31 -0
- package/dist/selectiveSave-jinP_4xa.d.mts +31 -0
- package/dist/selectiveXmlPatch-ypkxlTD_.d.mts +23 -0
- package/dist/selectiveXmlPatch-ypkxlTD_.d.ts +23 -0
- package/dist/styles-BBv7doYK.d.ts +233 -0
- package/dist/styles-EI2lxeEN.d.mts +233 -0
- package/dist/table-P8esKWAc.d.ts +82 -0
- package/dist/table-_t_W8oQf.d.mts +82 -0
- package/dist/types/agentApi.d.mts +467 -0
- package/dist/types/agentApi.d.ts +467 -0
- package/dist/types/agentApi.js +1 -0
- package/dist/types/agentApi.mjs +1 -0
- package/dist/types/content.d.mts +18 -0
- package/dist/types/content.d.ts +18 -0
- package/dist/types/content.js +1 -0
- package/dist/types/content.mjs +0 -0
- package/dist/types/document.d.mts +123 -0
- package/dist/types/document.d.ts +123 -0
- package/dist/types/document.js +1 -0
- package/dist/types/document.mjs +0 -0
- package/dist/types-DXG7vqe9.d.ts +311 -0
- package/dist/types-RchZmPFN.d.mts +137 -0
- package/dist/types-RchZmPFN.d.ts +137 -0
- package/dist/types-dYdjUZMo.d.mts +311 -0
- package/dist/utils/cardStyles.d.mts +31 -0
- package/dist/utils/cardStyles.d.ts +31 -0
- package/dist/utils/cardStyles.js +1 -0
- package/dist/utils/cardStyles.mjs +1 -0
- package/dist/utils/comments.d.mts +121 -0
- package/dist/utils/comments.d.ts +121 -0
- package/dist/utils/comments.js +1 -0
- package/dist/utils/comments.mjs +1 -0
- package/dist/utils/findReplace.d.mts +114 -0
- package/dist/utils/findReplace.d.ts +114 -0
- package/dist/utils/findReplace.js +2 -0
- package/dist/utils/findReplace.mjs +2 -0
- package/dist/utils/findVerticalScrollParent.d.mts +25 -0
- package/dist/utils/findVerticalScrollParent.d.ts +25 -0
- package/dist/utils/findVerticalScrollParent.js +1 -0
- package/dist/utils/findVerticalScrollParent.mjs +1 -0
- package/dist/utils/fontOptions.d.mts +21 -0
- package/dist/utils/fontOptions.d.ts +21 -0
- package/dist/utils/fontOptions.js +1 -0
- package/dist/utils/fontOptions.mjs +1 -0
- package/dist/utils/headingCollector.d.mts +32 -0
- package/dist/utils/headingCollector.d.ts +32 -0
- package/dist/utils/headingCollector.js +1 -0
- package/dist/utils/headingCollector.mjs +1 -0
- package/dist/utils/highlightColors.d.mts +14 -0
- package/dist/utils/highlightColors.d.ts +14 -0
- package/dist/utils/highlightColors.js +1 -0
- package/dist/utils/highlightColors.mjs +1 -0
- package/dist/utils/index.d.mts +710 -0
- package/dist/utils/index.d.ts +710 -0
- package/dist/utils/index.js +82 -0
- package/dist/utils/index.mjs +82 -0
- package/dist/utils/listState.d.mts +27 -0
- package/dist/utils/listState.d.ts +27 -0
- package/dist/utils/listState.js +1 -0
- package/dist/utils/listState.mjs +1 -0
- package/dist/utils/reportIssue.d.mts +23 -0
- package/dist/utils/reportIssue.d.ts +23 -0
- package/dist/utils/reportIssue.js +2 -0
- package/dist/utils/reportIssue.mjs +2 -0
- package/dist/utils/sidebarConstants.d.mts +10 -0
- package/dist/utils/sidebarConstants.d.ts +10 -0
- package/dist/utils/sidebarConstants.js +1 -0
- package/dist/utils/sidebarConstants.mjs +1 -0
- package/dist/utils/textSelection.d.mts +92 -0
- package/dist/utils/textSelection.d.ts +92 -0
- package/dist/utils/textSelection.js +1 -0
- package/dist/utils/textSelection.mjs +1 -0
- package/dist/utils/units.d.mts +91 -0
- package/dist/utils/units.d.ts +91 -0
- package/dist/utils/units.js +1 -0
- package/dist/utils/units.mjs +1 -0
- package/dist/variableDetector-DF3-nxUC.d.mts +115 -0
- package/dist/variableDetector-sBkgVh3f.d.ts +115 -0
- package/package.json +565 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { Document } from './types/document.js';
|
|
2
|
+
import { T as ThemeColorSlot, C as ColorValue } from './colors-C3vA7HUU.js';
|
|
3
|
+
import { T as Theme, f as ThemeColorScheme } from './styles-BBv7doYK.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Template Processing Utility
|
|
7
|
+
*
|
|
8
|
+
* Uses docxtemplater to substitute template variables in DOCX documents:
|
|
9
|
+
* - Processes {variable_name} patterns (docxtemplater default syntax)
|
|
10
|
+
* - Preserves all formatting (fonts, styles, colors, tables)
|
|
11
|
+
* - Error handling with useful messages
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Options for template processing
|
|
15
|
+
*/
|
|
16
|
+
interface ProcessTemplateOptions {
|
|
17
|
+
/** How to handle undefined variables */
|
|
18
|
+
nullGetter?: 'keep' | 'empty' | 'error';
|
|
19
|
+
/** Custom parser for variable names */
|
|
20
|
+
parser?: (tag: string) => {
|
|
21
|
+
get: (scope: Record<string, unknown>) => unknown;
|
|
22
|
+
};
|
|
23
|
+
/** Line breaks: keep raw \n or convert to w:br */
|
|
24
|
+
linebreaks?: boolean;
|
|
25
|
+
/** Delimiter settings */
|
|
26
|
+
delimiters?: {
|
|
27
|
+
start?: string;
|
|
28
|
+
end?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Result of template processing
|
|
33
|
+
*/
|
|
34
|
+
interface ProcessTemplateResult {
|
|
35
|
+
/** The processed document buffer */
|
|
36
|
+
buffer: ArrayBuffer;
|
|
37
|
+
/** Variables that were found and replaced */
|
|
38
|
+
replacedVariables: string[];
|
|
39
|
+
/** Variables that were not replaced (no value provided) */
|
|
40
|
+
unreplacedVariables: string[];
|
|
41
|
+
/** Any warnings during processing */
|
|
42
|
+
warnings: string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Error details from template processing
|
|
46
|
+
*/
|
|
47
|
+
interface TemplateError {
|
|
48
|
+
/** Error message */
|
|
49
|
+
message: string;
|
|
50
|
+
/** Variable name that caused the error (if applicable) */
|
|
51
|
+
variable?: string;
|
|
52
|
+
/** Error type */
|
|
53
|
+
type: 'parse' | 'render' | 'undefined' | 'unknown';
|
|
54
|
+
/** Original error */
|
|
55
|
+
originalError?: Error;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Process a DOCX template with variable substitution
|
|
59
|
+
*
|
|
60
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
61
|
+
* @param variables - Map of variable names to values
|
|
62
|
+
* @param options - Processing options
|
|
63
|
+
* @returns Processed DOCX as ArrayBuffer
|
|
64
|
+
*/
|
|
65
|
+
declare function processTemplate(buffer: ArrayBuffer, variables: Record<string, string>, options?: ProcessTemplateOptions): ArrayBuffer;
|
|
66
|
+
/**
|
|
67
|
+
* Process template with detailed result
|
|
68
|
+
*
|
|
69
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
70
|
+
* @param variables - Map of variable names to values
|
|
71
|
+
* @param options - Processing options
|
|
72
|
+
* @returns Detailed processing result
|
|
73
|
+
*/
|
|
74
|
+
declare function processTemplateDetailed(buffer: ArrayBuffer, variables: Record<string, string>, options?: ProcessTemplateOptions): ProcessTemplateResult;
|
|
75
|
+
/**
|
|
76
|
+
* Process template and return as Blob
|
|
77
|
+
*
|
|
78
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
79
|
+
* @param variables - Map of variable names to values
|
|
80
|
+
* @param options - Processing options
|
|
81
|
+
* @returns Processed DOCX as Blob
|
|
82
|
+
*/
|
|
83
|
+
declare function processTemplateAsBlob(buffer: ArrayBuffer, variables: Record<string, string>, options?: ProcessTemplateOptions): Blob;
|
|
84
|
+
/**
|
|
85
|
+
* Process template and trigger download
|
|
86
|
+
*
|
|
87
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
88
|
+
* @param variables - Map of variable names to values
|
|
89
|
+
* @param filename - Output filename (without extension)
|
|
90
|
+
* @param options - Processing options
|
|
91
|
+
*/
|
|
92
|
+
declare function processTemplateAndDownload(buffer: ArrayBuffer, variables: Record<string, string>, filename?: string, options?: ProcessTemplateOptions): void;
|
|
93
|
+
/**
|
|
94
|
+
* Get all template tags in a document without processing
|
|
95
|
+
*
|
|
96
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
97
|
+
* @returns List of tag names found
|
|
98
|
+
*/
|
|
99
|
+
declare function getTemplateTags(buffer: ArrayBuffer): string[];
|
|
100
|
+
/**
|
|
101
|
+
* Validate that a document is a valid docxtemplater template
|
|
102
|
+
*
|
|
103
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
104
|
+
* @returns Validation result
|
|
105
|
+
*/
|
|
106
|
+
declare function validateTemplate(buffer: ArrayBuffer): {
|
|
107
|
+
valid: boolean;
|
|
108
|
+
errors: TemplateError[];
|
|
109
|
+
tags: string[];
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Check if all required variables have values
|
|
113
|
+
*
|
|
114
|
+
* @param tags - List of template tags
|
|
115
|
+
* @param variables - Provided variable values
|
|
116
|
+
* @returns Missing variable names
|
|
117
|
+
*/
|
|
118
|
+
declare function getMissingVariables(tags: string[], variables: Record<string, string>): string[];
|
|
119
|
+
/**
|
|
120
|
+
* Preview what the document will look like after processing
|
|
121
|
+
* Returns the document text with variables replaced (for preview purposes)
|
|
122
|
+
*
|
|
123
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
124
|
+
* @param variables - Map of variable names to values
|
|
125
|
+
* @returns Preview text
|
|
126
|
+
*/
|
|
127
|
+
declare function previewTemplate(buffer: ArrayBuffer, variables: Record<string, string>): string;
|
|
128
|
+
/**
|
|
129
|
+
* Process template with conditional sections
|
|
130
|
+
* Supports #if, #unless, #each loops
|
|
131
|
+
*
|
|
132
|
+
* @param buffer - The DOCX file as ArrayBuffer
|
|
133
|
+
* @param data - Full data object (can include arrays, nested objects)
|
|
134
|
+
* @param options - Processing options
|
|
135
|
+
* @returns Processed DOCX as ArrayBuffer
|
|
136
|
+
*/
|
|
137
|
+
declare function processTemplateAdvanced(buffer: ArrayBuffer, data: Record<string, unknown>, options?: ProcessTemplateOptions): ArrayBuffer;
|
|
138
|
+
/**
|
|
139
|
+
* Create a template processor with preset options
|
|
140
|
+
*/
|
|
141
|
+
declare function createTemplateProcessor(defaultOptions?: ProcessTemplateOptions): (buffer: ArrayBuffer, variables: Record<string, string>) => ArrayBuffer;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Create Document Utility
|
|
145
|
+
*
|
|
146
|
+
* Provides functions to create new documents programmatically.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Options for creating an empty document
|
|
151
|
+
*/
|
|
152
|
+
interface CreateEmptyDocumentOptions {
|
|
153
|
+
/** Page width in twips (default: 12240 = 8.5 inches) */
|
|
154
|
+
pageWidth?: number;
|
|
155
|
+
/** Page height in twips (default: 15840 = 11 inches) */
|
|
156
|
+
pageHeight?: number;
|
|
157
|
+
/** Page orientation (default: 'portrait') */
|
|
158
|
+
orientation?: 'portrait' | 'landscape';
|
|
159
|
+
/** Top margin in twips (default: 1440 = 1 inch) */
|
|
160
|
+
marginTop?: number;
|
|
161
|
+
/** Bottom margin in twips (default: 1440 = 1 inch) */
|
|
162
|
+
marginBottom?: number;
|
|
163
|
+
/** Left margin in twips (default: 1440 = 1 inch) */
|
|
164
|
+
marginLeft?: number;
|
|
165
|
+
/** Right margin in twips (default: 1440 = 1 inch) */
|
|
166
|
+
marginRight?: number;
|
|
167
|
+
/** Initial text content (default: empty string) */
|
|
168
|
+
initialText?: string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Create an empty document with a single paragraph
|
|
172
|
+
*
|
|
173
|
+
* @param options - Optional configuration for the document
|
|
174
|
+
* @returns A new empty Document object
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```ts
|
|
178
|
+
* // Create a blank document
|
|
179
|
+
* const doc = createEmptyDocument();
|
|
180
|
+
*
|
|
181
|
+
* // Create with custom margins
|
|
182
|
+
* const doc = createEmptyDocument({
|
|
183
|
+
* marginTop: 720, // 0.5 inch
|
|
184
|
+
* marginBottom: 720,
|
|
185
|
+
* });
|
|
186
|
+
*
|
|
187
|
+
* // Create with initial text
|
|
188
|
+
* const doc = createEmptyDocument({
|
|
189
|
+
* initialText: 'Hello, World!'
|
|
190
|
+
* });
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
declare function createEmptyDocument(options?: CreateEmptyDocumentOptions): Document;
|
|
194
|
+
/**
|
|
195
|
+
* Create a document with a single paragraph containing the given text
|
|
196
|
+
*
|
|
197
|
+
* @param text - The text content for the document
|
|
198
|
+
* @param options - Optional configuration for the document
|
|
199
|
+
* @returns A new Document object with the specified text
|
|
200
|
+
*/
|
|
201
|
+
declare function createDocumentWithText(text: string, options?: Omit<CreateEmptyDocumentOptions, 'initialText'>): Document;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Color Resolver - Convert OOXML colors to CSS
|
|
205
|
+
*
|
|
206
|
+
* Handles:
|
|
207
|
+
* - Theme color references (accent1, dk1, etc.)
|
|
208
|
+
* - RGB hex values
|
|
209
|
+
* - "auto" colors (context-dependent)
|
|
210
|
+
* - Tint/shade modifications
|
|
211
|
+
*
|
|
212
|
+
* OOXML Color References:
|
|
213
|
+
* - w:color/@w:val - RGB hex or "auto"
|
|
214
|
+
* - w:color/@w:themeColor - Theme color slot
|
|
215
|
+
* - w:color/@w:themeTint - Tint modifier (0-255, hex)
|
|
216
|
+
* - w:color/@w:themeShade - Shade modifier (0-255, hex)
|
|
217
|
+
*
|
|
218
|
+
* Tint/Shade Calculations:
|
|
219
|
+
* - Tint makes color lighter (blend with white)
|
|
220
|
+
* - Shade makes color darker (blend with black)
|
|
221
|
+
* - Value is in hex (00-FF), converted to 0-1 for calculation
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Resolve a ColorValue to a CSS color string
|
|
226
|
+
*
|
|
227
|
+
* @param color - ColorValue object with rgb, themeColor, tint/shade, or auto
|
|
228
|
+
* @param theme - Theme for resolving theme colors
|
|
229
|
+
* @param defaultColor - Default color if auto or undefined (default: black)
|
|
230
|
+
* @returns CSS color string (e.g., "#FF0000" or "inherit")
|
|
231
|
+
*/
|
|
232
|
+
declare function resolveColor(color: ColorValue | undefined | null, theme: Theme | null | undefined, defaultColor?: string): string;
|
|
233
|
+
/**
|
|
234
|
+
* Resolve any ColorValue (text, fill/shading, border, underline) to a 6-char
|
|
235
|
+
* uppercase hex string — or `undefined` if transparent/unset/unresolvable.
|
|
236
|
+
*
|
|
237
|
+
* Shared display-side resolver. Prefer this over reading `.rgb` directly so
|
|
238
|
+
* that `themeColor` + `themeTint`/`themeShade` are honored consistently across
|
|
239
|
+
* all render paths (PM attrs, layout-bridge, clipboard HTML, toolbar swatches).
|
|
240
|
+
*
|
|
241
|
+
* When a themed color is present but `theme` is null/undefined, falls back to
|
|
242
|
+
* `color.rgb` if Word wrote one for compat; otherwise returns `undefined`.
|
|
243
|
+
*
|
|
244
|
+
* @returns 6-char uppercase hex without `#`, or `undefined`.
|
|
245
|
+
*/
|
|
246
|
+
declare function resolveColorToHex(color: ColorValue | undefined | null, theme: Theme | null | undefined): string | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* Resolve a highlight color name to CSS
|
|
249
|
+
*
|
|
250
|
+
* @param highlight - Highlight color name (e.g., "yellow", "cyan")
|
|
251
|
+
* @returns CSS color string or empty string for "none"
|
|
252
|
+
*/
|
|
253
|
+
declare function resolveHighlightColor(highlight: string | undefined): string;
|
|
254
|
+
/**
|
|
255
|
+
* Resolve a shading fill or pattern color to CSS
|
|
256
|
+
*
|
|
257
|
+
* @param color - ColorValue for fill
|
|
258
|
+
* @param theme - Theme for resolving theme colors
|
|
259
|
+
* @returns CSS color string
|
|
260
|
+
*/
|
|
261
|
+
declare function resolveShadingColor(color: ColorValue | undefined | null, theme: Theme | null | undefined): string;
|
|
262
|
+
/**
|
|
263
|
+
* Check if a color is effectively black
|
|
264
|
+
*
|
|
265
|
+
* @param color - ColorValue object
|
|
266
|
+
* @param theme - Theme for resolving theme colors
|
|
267
|
+
* @returns True if color resolves to black or very dark
|
|
268
|
+
*/
|
|
269
|
+
declare function isBlack(color: ColorValue | undefined | null, theme: Theme | null | undefined): boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Check if a color is effectively white
|
|
272
|
+
*
|
|
273
|
+
* @param color - ColorValue object
|
|
274
|
+
* @param theme - Theme for resolving theme colors
|
|
275
|
+
* @returns True if color resolves to white or very light
|
|
276
|
+
*/
|
|
277
|
+
declare function isWhite(color: ColorValue | undefined | null, theme: Theme | null | undefined): boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Get contrasting text color for a background
|
|
280
|
+
*
|
|
281
|
+
* @param backgroundColor - Background ColorValue
|
|
282
|
+
* @param theme - Theme for resolving theme colors
|
|
283
|
+
* @returns Black or white hex color for best contrast
|
|
284
|
+
*/
|
|
285
|
+
declare function getContrastingColor(backgroundColor: ColorValue | undefined | null, theme: Theme | null | undefined): string;
|
|
286
|
+
/**
|
|
287
|
+
* Parse a color string (various formats) to ColorValue
|
|
288
|
+
*
|
|
289
|
+
* @param colorString - Color string like "FF0000", "auto", or theme color name
|
|
290
|
+
* @returns ColorValue object
|
|
291
|
+
*/
|
|
292
|
+
declare function parseColorString(colorString: string | undefined): ColorValue | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* Create a ColorValue from theme color reference
|
|
295
|
+
*
|
|
296
|
+
* @param themeColor - Theme color slot name
|
|
297
|
+
* @param tint - Optional tint modifier
|
|
298
|
+
* @param shade - Optional shade modifier
|
|
299
|
+
* @returns ColorValue object
|
|
300
|
+
*/
|
|
301
|
+
declare function createThemeColor(themeColor: ThemeColorSlot, tint?: number, shade?: number): ColorValue;
|
|
302
|
+
/**
|
|
303
|
+
* Create a ColorValue from RGB hex
|
|
304
|
+
*
|
|
305
|
+
* @param hex - 6-character hex color (no #)
|
|
306
|
+
* @returns ColorValue object
|
|
307
|
+
*/
|
|
308
|
+
declare function createRgbColor(hex: string): ColorValue;
|
|
309
|
+
/**
|
|
310
|
+
* Darken a color by a percentage
|
|
311
|
+
*
|
|
312
|
+
* @param color - ColorValue to darken
|
|
313
|
+
* @param theme - Theme for resolving
|
|
314
|
+
* @param percent - Percentage to darken (0-100)
|
|
315
|
+
* @returns CSS color string
|
|
316
|
+
*/
|
|
317
|
+
declare function darkenColor(color: ColorValue | undefined | null, theme: Theme | null | undefined, percent: number): string;
|
|
318
|
+
/**
|
|
319
|
+
* Lighten a color by a percentage
|
|
320
|
+
*
|
|
321
|
+
* @param color - ColorValue to lighten
|
|
322
|
+
* @param theme - Theme for resolving
|
|
323
|
+
* @param percent - Percentage to lighten (0-100)
|
|
324
|
+
* @returns CSS color string
|
|
325
|
+
*/
|
|
326
|
+
declare function lightenColor(color: ColorValue | undefined | null, theme: Theme | null | undefined, percent: number): string;
|
|
327
|
+
/**
|
|
328
|
+
* Blend two colors together
|
|
329
|
+
*
|
|
330
|
+
* @param color1 - First color
|
|
331
|
+
* @param color2 - Second color
|
|
332
|
+
* @param ratio - Blend ratio (0 = all color1, 1 = all color2)
|
|
333
|
+
* @param theme - Theme for resolving
|
|
334
|
+
* @returns CSS color string
|
|
335
|
+
*/
|
|
336
|
+
declare function blendColors(color1: ColorValue | undefined | null, color2: ColorValue | undefined | null, ratio: number, theme: Theme | null | undefined): string;
|
|
337
|
+
/**
|
|
338
|
+
* Ensure a hex color string has a '#' prefix.
|
|
339
|
+
*/
|
|
340
|
+
declare function ensureHexPrefix(hex: string): string;
|
|
341
|
+
/**
|
|
342
|
+
* Resolve a highlight color value to a CSS-ready string.
|
|
343
|
+
* Tries OOXML named highlight first, then ensures hex prefix.
|
|
344
|
+
*/
|
|
345
|
+
declare function resolveHighlightToCss(value: string): string;
|
|
346
|
+
/**
|
|
347
|
+
* Theme color matrix cell
|
|
348
|
+
*/
|
|
349
|
+
interface ThemeMatrixCell {
|
|
350
|
+
/** Resolved hex color (6 chars, no #) */
|
|
351
|
+
hex: string;
|
|
352
|
+
/** Theme color slot */
|
|
353
|
+
themeSlot: ThemeColorSlot;
|
|
354
|
+
/** Tint hex modifier if applicable (e.g., "CC") */
|
|
355
|
+
tint?: string;
|
|
356
|
+
/** Shade hex modifier if applicable (e.g., "BF") */
|
|
357
|
+
shade?: string;
|
|
358
|
+
/** Human-readable label (e.g., "Accent 1, Lighter 60%") */
|
|
359
|
+
label: string;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Compute a single tinted or shaded hex color from a base color.
|
|
363
|
+
*
|
|
364
|
+
* @param baseHex - 6-character hex color (no #)
|
|
365
|
+
* @param type - 'tint' to lighten, 'shade' to darken
|
|
366
|
+
* @param fraction - Amount (0-1). For tint: 0=no change, 1=white. For shade: 0=black, 1=no change.
|
|
367
|
+
* @returns 6-character hex color (no #)
|
|
368
|
+
*/
|
|
369
|
+
declare function getThemeTintShadeHex(baseHex: string, type: 'tint' | 'shade', fraction: number): string;
|
|
370
|
+
/**
|
|
371
|
+
* Generate the 10×6 theme color matrix for an advanced color picker.
|
|
372
|
+
*
|
|
373
|
+
* Columns: lt1, dk1, lt2, dk2, accent1-6 (matches Word's order)
|
|
374
|
+
* Rows: base, 80% tint, 60% tint, 40% tint, 25% shade, 50% shade
|
|
375
|
+
*
|
|
376
|
+
* @param colorScheme - Theme color scheme (falls back to Office 2016 defaults)
|
|
377
|
+
* @returns 6 rows × 10 columns of ThemeMatrixCell
|
|
378
|
+
*/
|
|
379
|
+
declare function generateThemeTintShadeMatrix(colorScheme?: ThemeColorScheme | null): ThemeMatrixCell[][];
|
|
380
|
+
/**
|
|
381
|
+
* Check if two colors are equal
|
|
382
|
+
*
|
|
383
|
+
* @param color1 - First color
|
|
384
|
+
* @param color2 - Second color
|
|
385
|
+
* @param theme - Theme for resolving
|
|
386
|
+
* @returns True if colors resolve to the same value
|
|
387
|
+
*/
|
|
388
|
+
declare function colorsEqual(color1: ColorValue | undefined | null, color2: ColorValue | undefined | null, theme: Theme | null | undefined): boolean;
|
|
389
|
+
|
|
390
|
+
export { ensureHexPrefix as A, generateThemeTintShadeMatrix as B, type CreateEmptyDocumentOptions as C, getThemeTintShadeHex as D, resolveHighlightToCss as E, processTemplateAndDownload as F, resolveColorToHex as G, type ProcessTemplateOptions as P, type TemplateError as T, type ProcessTemplateResult as a, blendColors as b, colorsEqual as c, createDocumentWithText as d, createEmptyDocument as e, createRgbColor as f, createTemplateProcessor as g, createThemeColor as h, darkenColor as i, getContrastingColor as j, getMissingVariables as k, getTemplateTags as l, isBlack as m, isWhite as n, lightenColor as o, parseColorString as p, previewTemplate as q, processTemplate as r, processTemplateAdvanced as s, processTemplateAsBlob as t, processTemplateDetailed as u, resolveColor as v, resolveHighlightColor as w, resolveShadingColor as x, validateTemplate as y, type ThemeMatrixCell as z };
|