@eigenpal/docx-editor-core 1.0.1 → 1.0.3
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/README.md +1 -1
- package/dist/agent/index.d.mts +4 -4
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2IE6UDHJ.mjs +2 -0
- package/dist/chunk-3AZWLVLC.js +1 -0
- package/dist/chunk-3JXR6YU4.mjs +1 -0
- package/dist/{chunk-WNTT4MGC.js → chunk-3NLVHZMT.js} +3 -3
- package/dist/chunk-5SU4HPQS.mjs +1 -0
- package/dist/{chunk-LDAOONXZ.mjs → chunk-7PX32GLB.mjs} +1 -1
- package/dist/{chunk-AFMMYLPX.js → chunk-ABBG4WD2.js} +2 -2
- package/dist/chunk-AHXPHBMT.js +1 -0
- package/dist/chunk-B6LYBJ4H.mjs +1 -0
- package/dist/chunk-BFB4PRS4.mjs +1 -0
- package/dist/chunk-BRHHK4MG.mjs +2 -0
- package/dist/chunk-C2BAPYGJ.js +1 -0
- package/dist/chunk-CUXXRGPQ.mjs +1 -0
- package/dist/chunk-D536HC5M.js +2 -0
- package/dist/{chunk-GH5N36F7.js → chunk-D5E5TA74.js} +1 -1
- package/dist/chunk-EPX7BBJD.js +2 -0
- package/dist/chunk-EQVNAHL7.mjs +1 -0
- package/dist/{chunk-N3GIC2UI.mjs → chunk-EV6W6KXG.mjs} +1 -1
- package/dist/chunk-FCJWLEKT.mjs +1 -0
- package/dist/{chunk-DWFWYHM5.mjs → chunk-G7AKYAKU.mjs} +1 -1
- package/dist/{chunk-AGNZEOVL.mjs → chunk-GHQS3I2W.mjs} +1 -1
- package/dist/chunk-HAAMO2Z2.mjs +1 -0
- package/dist/chunk-HL5PQT3A.mjs +2 -0
- package/dist/chunk-IMKU4O3P.js +1 -0
- package/dist/chunk-IN6IYQ2X.js +1 -0
- package/dist/chunk-IO6HZ7KR.js +2 -0
- package/dist/{chunk-ZYESB4KC.mjs → chunk-LDKESXXK.mjs} +1 -1
- package/dist/chunk-LE67NTCN.mjs +1 -0
- package/dist/{chunk-WLQEPVDR.js → chunk-N3EIZN65.js} +1 -1
- package/dist/chunk-NO5LW2DQ.mjs +1 -0
- package/dist/chunk-OTDF6PZK.js +1 -0
- package/dist/chunk-QMLIXLZJ.mjs +4 -0
- package/dist/chunk-QVEAQOMR.mjs +2 -0
- package/dist/{chunk-GXW7YSFL.mjs → chunk-QXHL67FG.mjs} +1 -1
- package/dist/{chunk-UDPROEUK.js → chunk-SAFW7UQZ.js} +1 -1
- package/dist/chunk-TGPS3SRR.mjs +1 -0
- package/dist/chunk-TMISJEGL.js +1 -0
- package/dist/chunk-TRQN2SFW.mjs +59 -0
- package/dist/chunk-UGXSKZVM.js +1 -0
- package/dist/{chunk-CCWOLPZE.js → chunk-V435QKZB.js} +2 -2
- package/dist/chunk-V6SWUCTS.js +2 -0
- package/dist/chunk-X3NB7STJ.js +1 -0
- package/dist/{chunk-62NPHRTF.js → chunk-XBHF5Q2F.js} +1 -1
- package/dist/chunk-XBIKSAH6.js +1 -0
- package/dist/{chunk-SYJAAHUK.js → chunk-XOH7YAYL.js} +1 -1
- package/dist/{chunk-YUKBAAB5.mjs → chunk-XWQB6APW.mjs} +1 -1
- package/dist/chunk-Y7I5QDCN.mjs +1 -0
- package/dist/chunk-YCDB5TA6.js +4 -0
- package/dist/chunk-YVYB4YCI.js +1 -0
- package/dist/{chunk-KSYEBTYE.js → chunk-Z4SJCSTS.js} +1 -1
- package/dist/{colorResolver-CVsPLsw1.d.ts → colorResolver-BZ_yScf4.d.ts} +1 -1
- package/dist/{colorResolver-C3q7MLLD.d.mts → colorResolver-C6DtsoFI.d.mts} +1 -1
- package/dist/core-plugins.d.mts +3 -3
- package/dist/core-plugins.d.ts +3 -3
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +6 -6
- package/dist/core.d.ts +6 -6
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/docx/index.d.mts +3 -3
- package/dist/docx/index.d.ts +3 -3
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -3
- package/dist/docx/parser.d.ts +3 -3
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -3
- package/dist/docx/rezip.d.ts +3 -3
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +3 -3
- package/dist/docx/serializer/index.d.ts +3 -3
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/{formatting-D9I-lFS4.d.mts → formatting-BH4hcZiq.d.mts} +1 -1
- package/dist/{formatting-BwpZWdGi.d.ts → formatting-_OXU8gLB.d.ts} +1 -1
- package/dist/{headerFooterLayout-B3QVg556.d.ts → headerFooterLayout-B5LyDpSM.d.ts} +20 -1
- package/dist/{headerFooterLayout-DkclHZ0Z.d.mts → headerFooterLayout-DVFcJ832.d.mts} +20 -1
- package/dist/headless.d.mts +5 -5
- package/dist/headless.d.ts +5 -5
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +5 -5
- package/dist/layout-bridge/index.d.ts +5 -5
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +39 -2
- package/dist/layout-bridge/measuring/index.d.ts +39 -2
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +10 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +10 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +30 -3
- package/dist/layout-engine/index.d.ts +30 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +9 -0
- package/dist/layout-engine/types.d.ts +9 -0
- package/dist/layout-painter/index.d.mts +4 -4
- package/dist/layout-painter/index.d.ts +4 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +4 -4
- package/dist/layout-painter/renderPage.d.ts +4 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/{lists-JDB80qyP.d.mts → lists-CvG_iVK3.d.mts} +8 -2
- package/dist/{lists-CdiIk_c1.d.ts → lists-UTp_tk7B.d.ts} +8 -2
- package/dist/managers/AutoSaveManager.d.mts +3 -3
- package/dist/managers/AutoSaveManager.d.ts +3 -3
- package/dist/managers/TableSelectionManager.d.mts +3 -3
- package/dist/managers/TableSelectionManager.d.ts +3 -3
- package/dist/managers/types.d.mts +3 -3
- package/dist/managers/types.d.ts +3 -3
- package/dist/{marks-CCPVlQzL.d.mts → marks-BY573yZn.d.mts} +1 -1
- package/dist/{marks-BujVxYP4.d.ts → marks-CjC9tF5k.d.ts} +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +3 -3
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-BXi1Uu3e.d.mts → nodes-CL8M0L-a.d.mts} +4 -2
- package/dist/{nodes-DfKj9kUA.d.ts → nodes-D7PTUJ2N.d.ts} +4 -2
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +2 -2
- package/dist/prosemirror/commands/index.d.ts +2 -2
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +1 -1
- package/dist/prosemirror/commands/paragraph.d.ts +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +11 -3
- package/dist/prosemirror/conversion/index.d.ts +11 -3
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.d.mts +5 -5
- package/dist/prosemirror/index.d.ts +5 -5
- package/dist/prosemirror/index.js +1 -1
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/plugins/index.d.mts +1 -1
- package/dist/prosemirror/plugins/index.d.ts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/schema/index.d.mts +4 -4
- package/dist/prosemirror/schema/index.d.ts +4 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
- package/dist/{selectionContext-85CE0f7a.d.ts → selectionContext-BPAqgNgk.d.ts} +1 -1
- package/dist/{selectionContext-Xq3AY7pn.d.mts → selectionContext-CoZat7QZ.d.mts} +1 -1
- package/dist/{styles-jqO45PSq.d.ts → styles-BBv7doYK.d.ts} +1 -1
- package/dist/{styles-BBoqh07F.d.mts → styles-EI2lxeEN.d.mts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +2 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/document.d.mts +25 -6
- package/dist/types/document.d.ts +25 -6
- package/dist/utils/comments.d.mts +2 -2
- package/dist/utils/comments.d.ts +2 -2
- package/dist/utils/index.d.mts +4 -4
- package/dist/utils/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-3GNIP6IX.mjs +0 -4
- package/dist/chunk-44RUAQA2.js +0 -1
- package/dist/chunk-4EHBV73E.mjs +0 -59
- package/dist/chunk-5N5DBQJV.mjs +0 -1
- package/dist/chunk-6LOYA7G5.mjs +0 -2
- package/dist/chunk-6VUYFDHY.mjs +0 -1
- package/dist/chunk-7UTXBQKF.mjs +0 -1
- package/dist/chunk-7VCMJCBY.js +0 -2
- package/dist/chunk-BD4CYYFB.js +0 -1
- package/dist/chunk-C6GSFUV2.js +0 -2
- package/dist/chunk-DFZTUQ7O.js +0 -2
- package/dist/chunk-DN36K5JU.mjs +0 -1
- package/dist/chunk-DV6IEOP5.js +0 -4
- package/dist/chunk-GNPLUGUG.mjs +0 -1
- package/dist/chunk-HVZMO3BU.js +0 -1
- package/dist/chunk-IBNUQL57.mjs +0 -2
- package/dist/chunk-ITVXBQGR.mjs +0 -1
- package/dist/chunk-JKVXID22.mjs +0 -1
- package/dist/chunk-LVD6HXRF.mjs +0 -2
- package/dist/chunk-NFYCMDM5.js +0 -1
- package/dist/chunk-O5X22KZ6.mjs +0 -1
- package/dist/chunk-PK4PDRTA.js +0 -1
- package/dist/chunk-R7RR6M4A.mjs +0 -2
- package/dist/chunk-RSMS6OTE.mjs +0 -1
- package/dist/chunk-SUXJX72X.js +0 -1
- package/dist/chunk-T4CPTPRP.js +0 -1
- package/dist/chunk-TZJUO3NW.js +0 -1
- package/dist/chunk-YGHHSCPR.js +0 -2
|
@@ -1 +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 chunkYE357WVA_js=require('../chunk-YE357WVA.js'),chunkHVZMO3BU_js=require('../chunk-HVZMO3BU.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 chunkYE357WVA_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkYE357WVA_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkHVZMO3BU_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;
|
|
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 chunkYE357WVA_js=require('../chunk-YE357WVA.js'),chunkX3NB7STJ_js=require('../chunk-X3NB7STJ.js');require('../chunk-D4RPOJC7.js');var chunkIP2VXNWG_js=require('../chunk-IP2VXNWG.js');require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js');var chunkXOH7YAYL_js=require('../chunk-XOH7YAYL.js'),chunkXBHF5Q2F_js=require('../chunk-XBHF5Q2F.js'),chunkSAFW7UQZ_js=require('../chunk-SAFW7UQZ.js'),chunkGGPKPXON_js=require('../chunk-GGPKPXON.js');require('../chunk-2KHWHVTA.js');var chunkYVYB4YCI_js=require('../chunk-YVYB4YCI.js'),chunkIO6HZ7KR_js=require('../chunk-IO6HZ7KR.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-C2BAPYGJ.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 chunkYE357WVA_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkYE357WVA_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkX3NB7STJ_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkX3NB7STJ_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkX3NB7STJ_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkX3NB7STJ_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 chunkXOH7YAYL_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkXOH7YAYL_js.h}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkXOH7YAYL_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkXOH7YAYL_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkXOH7YAYL_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkXOH7YAYL_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkXOH7YAYL_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkXOH7YAYL_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkXOH7YAYL_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkXOH7YAYL_js.B}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkXOH7YAYL_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkXOH7YAYL_js.n}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkXOH7YAYL_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkXOH7YAYL_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkXOH7YAYL_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkXOH7YAYL_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkXOH7YAYL_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkXOH7YAYL_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkXOH7YAYL_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkXOH7YAYL_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkXOH7YAYL_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkXOH7YAYL_js.v}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkXOH7YAYL_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkXOH7YAYL_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkXOH7YAYL_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkXOH7YAYL_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkXOH7YAYL_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkXOH7YAYL_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkXOH7YAYL_js.D}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkXOH7YAYL_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkXOH7YAYL_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkXOH7YAYL_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.r}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.q}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.B}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkXBHF5Q2F_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.h}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkSAFW7UQZ_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkYVYB4YCI_js.b}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.h}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.n}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.l}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.p}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.f}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.m}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.k}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunkIO6HZ7KR_js.o}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkIO6HZ7KR_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;
|
|
@@ -1 +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-P3AXSRLG.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-
|
|
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-P3AXSRLG.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-NO5LW2DQ.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-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.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-QXHL67FG.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-XWQB6APW.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-G7AKYAKU.mjs';export{a as insertPageBreak}from'../chunk-3COGZG7O.mjs';import'../chunk-KQTB5Y7P.mjs';export{b as schema}from'../chunk-TGPS3SRR.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-BRHHK4MG.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-LE67NTCN.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};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.mjs';
|
|
10
10
|
import { Plugin, EditorState, Transaction, PluginKey } from 'prosemirror-state';
|
|
11
|
-
import '../../formatting-
|
|
11
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
12
12
|
import '../../colors-C3vA7HUU.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.js';
|
|
10
10
|
import { Plugin, EditorState, Transaction, PluginKey } from 'prosemirror-state';
|
|
11
|
-
import '../../formatting-
|
|
11
|
+
import '../../formatting-_OXU8gLB.js';
|
|
12
12
|
import '../../colors-C3vA7HUU.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
12
|
import { Plugin, EditorState, PluginKey } from 'prosemirror-state';
|
|
13
|
-
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-
|
|
13
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-BH4hcZiq.mjs';
|
|
14
14
|
import '../../colors-C3vA7HUU.mjs';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
12
|
import { Plugin, EditorState, PluginKey } from 'prosemirror-state';
|
|
13
|
-
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-
|
|
13
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../../formatting-_OXU8gLB.js';
|
|
14
14
|
import '../../colors-C3vA7HUU.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as prosemirror_model from 'prosemirror-model';
|
|
11
11
|
import { a as ExtensionManager } from '../../types-RchZmPFN.mjs';
|
|
12
|
-
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-
|
|
13
|
-
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../../marks-
|
|
12
|
+
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-CL8M0L-a.mjs';
|
|
13
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../../marks-BY573yZn.mjs';
|
|
14
14
|
import 'prosemirror-state';
|
|
15
|
-
import '../../formatting-
|
|
15
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
16
16
|
import '../../colors-C3vA7HUU.mjs';
|
|
17
|
-
import '../../lists-
|
|
17
|
+
import '../../lists-CvG_iVK3.mjs';
|
|
18
18
|
import '../../docx/wrapTypes.mjs';
|
|
19
19
|
import '../../types/content.mjs';
|
|
20
20
|
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as prosemirror_model from 'prosemirror-model';
|
|
11
11
|
import { a as ExtensionManager } from '../../types-RchZmPFN.js';
|
|
12
|
-
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-
|
|
13
|
-
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../../marks-
|
|
12
|
+
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-D7PTUJ2N.js';
|
|
13
|
+
export { F as FontFamilyAttrs, a as FontSizeAttrs, H as HyperlinkAttrs, T as TextColorAttrs, U as UnderlineAttrs } from '../../marks-CjC9tF5k.js';
|
|
14
14
|
import 'prosemirror-state';
|
|
15
|
-
import '../../formatting-
|
|
15
|
+
import '../../formatting-_OXU8gLB.js';
|
|
16
16
|
import '../../colors-C3vA7HUU.js';
|
|
17
|
-
import '../../lists-
|
|
17
|
+
import '../../lists-UTp_tk7B.js';
|
|
18
18
|
import '../../docx/wrapTypes.js';
|
|
19
19
|
import '../../types/content.js';
|
|
20
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYVYB4YCI_js=require('../../chunk-YVYB4YCI.js');require('../../chunk-IO6HZ7KR.js'),require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-NERY274X.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-C2BAPYGJ.js'),require('../../chunk-Q4CKLXWA.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkYVYB4YCI_js.b}});Object.defineProperty(exports,"singletonManager",{enumerable:true,get:function(){return chunkYVYB4YCI_js.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as schema,a as singletonManager}from'../../chunk-
|
|
1
|
+
export{b as schema,a as singletonManager}from'../../chunk-TGPS3SRR.mjs';import'../../chunk-BRHHK4MG.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-CP5OSG5Z.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-VQWZHPWI.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-
|
|
7
|
-
import { a as StyleDefinitions, S as Style, D as DocDefaults } from '../../styles-
|
|
6
|
+
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-BH4hcZiq.mjs';
|
|
7
|
+
import { a as StyleDefinitions, S as Style, D as DocDefaults } from '../../styles-EI2lxeEN.mjs';
|
|
8
8
|
import '../../colors-C3vA7HUU.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-
|
|
7
|
-
import { a as StyleDefinitions, S as Style, D as DocDefaults } from '../../styles-
|
|
6
|
+
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-_OXU8gLB.js';
|
|
7
|
+
import { a as StyleDefinitions, S as Style, D as DocDefaults } from '../../styles-BBv7doYK.js';
|
|
8
8
|
import '../../colors-C3vA7HUU.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
import { EditorState } from 'prosemirror-state';
|
|
22
22
|
import { TrackedChangeEntry } from '../../utils/comments.mjs';
|
|
23
23
|
import '../../types/content.mjs';
|
|
24
|
-
import '../../formatting-
|
|
24
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
25
25
|
import '../../colors-C3vA7HUU.mjs';
|
|
26
26
|
import '../../docx/wrapTypes.mjs';
|
|
27
|
-
import '../../lists-
|
|
27
|
+
import '../../lists-CvG_iVK3.mjs';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Walk the PM doc once and derive (a) the tracked-change list and (b) a
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
import { EditorState } from 'prosemirror-state';
|
|
22
22
|
import { TrackedChangeEntry } from '../../utils/comments.js';
|
|
23
23
|
import '../../types/content.js';
|
|
24
|
-
import '../../formatting-
|
|
24
|
+
import '../../formatting-_OXU8gLB.js';
|
|
25
25
|
import '../../colors-C3vA7HUU.js';
|
|
26
26
|
import '../../docx/wrapTypes.js';
|
|
27
|
-
import '../../lists-
|
|
27
|
+
import '../../lists-UTp_tk7B.js';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Walk the PM doc once and derive (a) the tracked-change list and (b) a
|
|
@@ -2,7 +2,7 @@ import { Document } from './types/document.js';
|
|
|
2
2
|
import { StyleInfo, AgentContext, Position, Range, AgentCommand, SelectionContext } from './types/agentApi.js';
|
|
3
3
|
import { S as SelectiveSaveOptions } from './selectiveSave-CWaPEv0B.js';
|
|
4
4
|
import { D as DocxInput } from './docxInput-DTbCa48g.js';
|
|
5
|
-
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-
|
|
5
|
+
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-_OXU8gLB.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DocumentAgent - High-level fluent API for programmatic document manipulation
|
|
@@ -2,7 +2,7 @@ import { Document } from './types/document.mjs';
|
|
|
2
2
|
import { StyleInfo, AgentContext, Position, Range, AgentCommand, SelectionContext } from './types/agentApi.mjs';
|
|
3
3
|
import { S as SelectiveSaveOptions } from './selectiveSave-jinP_4xa.mjs';
|
|
4
4
|
import { D as DocxInput } from './docxInput-DTbCa48g.mjs';
|
|
5
|
-
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-
|
|
5
|
+
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-BH4hcZiq.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DocumentAgent - High-level fluent API for programmatic document manipulation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextFormatting, P as ParagraphFormatting,
|
|
1
|
+
import { T as TextFormatting, P as ParagraphFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-_OXU8gLB.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Styles, Theme, Font Table, Relationships & Media Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextFormatting, P as ParagraphFormatting,
|
|
1
|
+
import { T as TextFormatting, P as ParagraphFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-BH4hcZiq.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Styles, Theme, Font Table, Relationships & Media Types
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-
|
|
11
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-BH4hcZiq.mjs';
|
|
12
12
|
import '../colors-C3vA7HUU.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/types/agentApi.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-
|
|
11
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-_OXU8gLB.js';
|
|
12
12
|
import '../colors-C3vA7HUU.js';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/types/content.d.mts
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
import { P as ParagraphFormatting, T as TextFormatting,
|
|
15
|
+
import { P as ParagraphFormatting, T as TextFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from '../formatting-BH4hcZiq.mjs';
|
|
16
16
|
import { WrapType } from '../docx/wrapTypes.mjs';
|
|
17
17
|
import { B as BorderSpec, C as ColorValue, T as ThemeColorSlot } from '../colors-C3vA7HUU.mjs';
|
|
18
|
-
import {
|
|
18
|
+
import { a as NumberFormat, c as ListRendering } from '../lists-CvG_iVK3.mjs';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Hyperlinks (`w:hyperlink`), bookmark markers (`w:bookmarkStart`/`End`),
|
package/dist/types/content.d.ts
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
import { P as ParagraphFormatting, T as TextFormatting,
|
|
15
|
+
import { P as ParagraphFormatting, T as TextFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from '../formatting-_OXU8gLB.js';
|
|
16
16
|
import { WrapType } from '../docx/wrapTypes.js';
|
|
17
17
|
import { B as BorderSpec, C as ColorValue, T as ThemeColorSlot } from '../colors-C3vA7HUU.js';
|
|
18
|
-
import {
|
|
18
|
+
import { a as NumberFormat, c as ListRendering } from '../lists-UTp_tk7B.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Hyperlinks (`w:hyperlink`), bookmark markers (`w:bookmarkStart`/`End`),
|
|
@@ -14,15 +14,32 @@
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export { B as BorderSpec, C as ColorValue, S as ShadingProperties, T as ThemeColorSlot } from '../colors-C3vA7HUU.mjs';
|
|
17
|
-
export { C as CellMargins,
|
|
18
|
-
import { N as NumberingDefinitions } from '../lists-
|
|
19
|
-
export { A as AbstractNumbering,
|
|
17
|
+
export { C as CellMargins, g as ConditionalFormatStyle, E as EmphasisMark, F as FloatingTableProperties, L as LineSpacingRule, d as ParagraphAlignment, P as ParagraphFormatting, h as TabLeader, e as TabStop, i as TabStopAlignment, j as TableBorders, c as TableCellFormatting, a as TableFormatting, f as TableLook, k as TableMeasurement, b as TableRowFormatting, l as TableWidthType, m as TextEffect, T as TextFormatting, U as UnderlineStyle } from '../formatting-BH4hcZiq.mjs';
|
|
18
|
+
import { N as NumberingDefinitions } from '../lists-CvG_iVK3.mjs';
|
|
19
|
+
export { A as AbstractNumbering, b as LevelSuffix, L as ListLevel, c as ListRendering, a as NumberFormat, d as NumberingInstance } from '../lists-CvG_iVK3.mjs';
|
|
20
20
|
import { DocumentBody, Footnote, Endnote, HeaderFooter } from './content.mjs';
|
|
21
21
|
export { BlockContent, BlockSdt, BookmarkEnd, BookmarkStart, BreakContent, Column, Comment, CommentRangeEnd, CommentRangeStart, ComplexField, Deletion, DrawingContent, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FooterReference, FootnotePosition, FootnoteProperties, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InlineSdt, Insertion, InstrTextContent, LineNumberRestart, MathEquation, MoveFrom, MoveFromRangeEnd, MoveFromRangeStart, MoveTo, MoveToRangeEnd, MoveToRangeStart, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, PageOrientation, Paragraph, ParagraphContent, ParagraphPropertyChange, PropertyChangeInfo, Run, RunContent, RunPropertyChange, SdtProperties, SdtType, Section, SectionProperties, SectionStart, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, SymbolContent, TabContent, Table, TableCell, TableCellPropertyChange, TablePropertyChange, TableRow, TableRowPropertyChange, TableStructuralChangeInfo, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange, VerticalAlign } from './content.mjs';
|
|
22
|
-
import { a as StyleDefinitions, T as Theme, F as FontTable, b as RelationshipMap, M as MediaFile } from '../styles-
|
|
23
|
-
export { D as DocDefaults, c as FontInfo, R as Relationship, d as RelationshipType, S as Style, e as StyleType, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from '../styles-
|
|
22
|
+
import { a as StyleDefinitions, T as Theme, F as FontTable, b as RelationshipMap, M as MediaFile } from '../styles-EI2lxeEN.mjs';
|
|
23
|
+
export { D as DocDefaults, c as FontInfo, R as Relationship, d as RelationshipType, S as Style, e as StyleType, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from '../styles-EI2lxeEN.mjs';
|
|
24
24
|
import '../docx/wrapTypes.mjs';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* settings.xml parser
|
|
28
|
+
*
|
|
29
|
+
* Extracts document-wide settings the layout pipeline needs at render time.
|
|
30
|
+
* We only read what's currently consumed; most of settings.xml (compatibility
|
|
31
|
+
* flags, view state, autoformat) is irrelevant to layout.
|
|
32
|
+
*/
|
|
33
|
+
/** Document-wide settings parsed from `word/settings.xml`. */
|
|
34
|
+
interface DocumentSettings {
|
|
35
|
+
/**
|
|
36
|
+
* `w:defaultTabStop` (§17.6.13) — interval in twips between default tab
|
|
37
|
+
* stops applied when a paragraph has no custom `w:tabs`. Word's default
|
|
38
|
+
* if unspecified is 720 twips (0.5 inch).
|
|
39
|
+
*/
|
|
40
|
+
defaultTabStop: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
26
43
|
/**
|
|
27
44
|
* Comprehensive TypeScript types for full DOCX document representation
|
|
28
45
|
*
|
|
@@ -51,6 +68,8 @@ interface DocxPackage {
|
|
|
51
68
|
theme?: Theme;
|
|
52
69
|
/** Numbering definitions */
|
|
53
70
|
numbering?: NumberingDefinitions;
|
|
71
|
+
/** Document-wide settings from `word/settings.xml` */
|
|
72
|
+
settings?: DocumentSettings;
|
|
54
73
|
/** Font table */
|
|
55
74
|
fontTable?: FontTable;
|
|
56
75
|
/** Footnotes */
|
|
@@ -103,4 +122,4 @@ interface Document {
|
|
|
103
122
|
warnings?: string[];
|
|
104
123
|
}
|
|
105
124
|
|
|
106
|
-
export { type Document, DocumentBody, type DocxPackage, Endnote, FontTable, Footnote, HeaderFooter, MediaFile, NumberingDefinitions, RelationshipMap, StyleDefinitions, Theme };
|
|
125
|
+
export { type Document, DocumentBody, type DocumentSettings, type DocxPackage, Endnote, FontTable, Footnote, HeaderFooter, MediaFile, NumberingDefinitions, RelationshipMap, StyleDefinitions, Theme };
|
package/dist/types/document.d.ts
CHANGED
|
@@ -14,15 +14,32 @@
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export { B as BorderSpec, C as ColorValue, S as ShadingProperties, T as ThemeColorSlot } from '../colors-C3vA7HUU.js';
|
|
17
|
-
export { C as CellMargins,
|
|
18
|
-
import { N as NumberingDefinitions } from '../lists-
|
|
19
|
-
export { A as AbstractNumbering,
|
|
17
|
+
export { C as CellMargins, g as ConditionalFormatStyle, E as EmphasisMark, F as FloatingTableProperties, L as LineSpacingRule, d as ParagraphAlignment, P as ParagraphFormatting, h as TabLeader, e as TabStop, i as TabStopAlignment, j as TableBorders, c as TableCellFormatting, a as TableFormatting, f as TableLook, k as TableMeasurement, b as TableRowFormatting, l as TableWidthType, m as TextEffect, T as TextFormatting, U as UnderlineStyle } from '../formatting-_OXU8gLB.js';
|
|
18
|
+
import { N as NumberingDefinitions } from '../lists-UTp_tk7B.js';
|
|
19
|
+
export { A as AbstractNumbering, b as LevelSuffix, L as ListLevel, c as ListRendering, a as NumberFormat, d as NumberingInstance } from '../lists-UTp_tk7B.js';
|
|
20
20
|
import { DocumentBody, Footnote, Endnote, HeaderFooter } from './content.js';
|
|
21
21
|
export { BlockContent, BlockSdt, BookmarkEnd, BookmarkStart, BreakContent, Column, Comment, CommentRangeEnd, CommentRangeStart, ComplexField, Deletion, DrawingContent, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FooterReference, FootnotePosition, FootnoteProperties, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InlineSdt, Insertion, InstrTextContent, LineNumberRestart, MathEquation, MoveFrom, MoveFromRangeEnd, MoveFromRangeStart, MoveTo, MoveToRangeEnd, MoveToRangeStart, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, PageOrientation, Paragraph, ParagraphContent, ParagraphPropertyChange, PropertyChangeInfo, Run, RunContent, RunPropertyChange, SdtProperties, SdtType, Section, SectionProperties, SectionStart, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, SymbolContent, TabContent, Table, TableCell, TableCellPropertyChange, TablePropertyChange, TableRow, TableRowPropertyChange, TableStructuralChangeInfo, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange, VerticalAlign } from './content.js';
|
|
22
|
-
import { a as StyleDefinitions, T as Theme, F as FontTable, b as RelationshipMap, M as MediaFile } from '../styles-
|
|
23
|
-
export { D as DocDefaults, c as FontInfo, R as Relationship, d as RelationshipType, S as Style, e as StyleType, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from '../styles-
|
|
22
|
+
import { a as StyleDefinitions, T as Theme, F as FontTable, b as RelationshipMap, M as MediaFile } from '../styles-BBv7doYK.js';
|
|
23
|
+
export { D as DocDefaults, c as FontInfo, R as Relationship, d as RelationshipType, S as Style, e as StyleType, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from '../styles-BBv7doYK.js';
|
|
24
24
|
import '../docx/wrapTypes.js';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* settings.xml parser
|
|
28
|
+
*
|
|
29
|
+
* Extracts document-wide settings the layout pipeline needs at render time.
|
|
30
|
+
* We only read what's currently consumed; most of settings.xml (compatibility
|
|
31
|
+
* flags, view state, autoformat) is irrelevant to layout.
|
|
32
|
+
*/
|
|
33
|
+
/** Document-wide settings parsed from `word/settings.xml`. */
|
|
34
|
+
interface DocumentSettings {
|
|
35
|
+
/**
|
|
36
|
+
* `w:defaultTabStop` (§17.6.13) — interval in twips between default tab
|
|
37
|
+
* stops applied when a paragraph has no custom `w:tabs`. Word's default
|
|
38
|
+
* if unspecified is 720 twips (0.5 inch).
|
|
39
|
+
*/
|
|
40
|
+
defaultTabStop: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
26
43
|
/**
|
|
27
44
|
* Comprehensive TypeScript types for full DOCX document representation
|
|
28
45
|
*
|
|
@@ -51,6 +68,8 @@ interface DocxPackage {
|
|
|
51
68
|
theme?: Theme;
|
|
52
69
|
/** Numbering definitions */
|
|
53
70
|
numbering?: NumberingDefinitions;
|
|
71
|
+
/** Document-wide settings from `word/settings.xml` */
|
|
72
|
+
settings?: DocumentSettings;
|
|
54
73
|
/** Font table */
|
|
55
74
|
fontTable?: FontTable;
|
|
56
75
|
/** Footnotes */
|
|
@@ -103,4 +122,4 @@ interface Document {
|
|
|
103
122
|
warnings?: string[];
|
|
104
123
|
}
|
|
105
124
|
|
|
106
|
-
export { type Document, DocumentBody, type DocxPackage, Endnote, FontTable, Footnote, HeaderFooter, MediaFile, NumberingDefinitions, RelationshipMap, StyleDefinitions, Theme };
|
|
125
|
+
export { type Document, DocumentBody, type DocumentSettings, type DocxPackage, Endnote, FontTable, Footnote, HeaderFooter, MediaFile, NumberingDefinitions, RelationshipMap, StyleDefinitions, Theme };
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
import { Paragraph } from '../types/content.mjs';
|
|
12
|
-
import '../formatting-
|
|
12
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
13
13
|
import '../colors-C3vA7HUU.mjs';
|
|
14
14
|
import '../docx/wrapTypes.mjs';
|
|
15
|
-
import '../lists-
|
|
15
|
+
import '../lists-CvG_iVK3.mjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Framework-agnostic comment + tracked-change helpers shared by the
|
package/dist/utils/comments.d.ts
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
import { Paragraph } from '../types/content.js';
|
|
12
|
-
import '../formatting-
|
|
12
|
+
import '../formatting-_OXU8gLB.js';
|
|
13
13
|
import '../colors-C3vA7HUU.js';
|
|
14
14
|
import '../docx/wrapTypes.js';
|
|
15
|
-
import '../lists-
|
|
15
|
+
import '../lists-UTp_tk7B.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Framework-agnostic comment + tracked-change helpers shared by the
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export { PIXELS_PER_INCH, TWIPS_PER_INCH, clamp, eighthsToPixels, emuToPixels, emuToTwips, formatPx, halfPointsToPixels, halfPointsToPoints, pixelsToEmu, pixelsToTwips, pointsToHalfPoints, pointsToPixels, roundPixels, twipsToEmu, twipsToPixels } from './units.mjs';
|
|
11
|
-
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, T as TemplateError, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, g as createTemplateProcessor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, k as getMissingVariables, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, q as previewTemplate, r as processTemplate, s as processTemplateAdvanced, F as processTemplateAndDownload, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, G as resolveColorToHex, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from '../colorResolver-
|
|
11
|
+
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, T as TemplateError, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, g as createTemplateProcessor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, k as getMissingVariables, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, q as previewTemplate, r as processTemplate, s as processTemplateAdvanced, F as processTemplateAndDownload, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, G as resolveColorToHex, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from '../colorResolver-C6DtsoFI.mjs';
|
|
12
12
|
import { Run, Paragraph } from '../types/content.mjs';
|
|
13
|
-
import { T as Theme } from '../styles-
|
|
13
|
+
import { T as Theme } from '../styles-EI2lxeEN.mjs';
|
|
14
14
|
export { D as DocxInput, t as toArrayBuffer } from '../docxInput-DTbCa48g.mjs';
|
|
15
15
|
export { F as FONT_MAPPING, I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, z as extractFontsFromDocument, i as findPageBreaks, A as getGoogleFontEquivalent, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, r as isLineBreak, q as isLoading, s as isPageBreak, B as loadDocumentFonts, t as loadFont, u as loadFontFromBuffer, C as loadFontWithMapping, v as loadFonts, D as loadFontsWithMapping, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from '../fontLoader-BOt95Jtf.mjs';
|
|
16
16
|
import { B as BorderSpec, S as ShadingProperties } from '../colors-C3vA7HUU.mjs';
|
|
17
|
-
import { P as ParagraphFormatting, T as TextFormatting } from '../formatting-
|
|
17
|
+
import { P as ParagraphFormatting, T as TextFormatting } from '../formatting-BH4hcZiq.mjs';
|
|
18
18
|
export { HeadingInfo, collectHeadings } from './headingCollector.mjs';
|
|
19
19
|
export { WordSelectionResult, createDoubleClickWordSelector, createTripleClickParagraphSelector, expandSelectionToWordBoundaries, findWordAt, findWordBoundaries, getWordAt, handleClickForMultiClick, selectParagraphAtCursor, selectWordAtCursor, selectWordInTextNode } from './textSelection.mjs';
|
|
20
20
|
export { MIN_CARD_GAP, SIDEBAR_DOCUMENT_SHIFT, SIDEBAR_PAGE_GAP, SIDEBAR_WIDTH } from './sidebarConstants.mjs';
|
|
21
21
|
import '../types/document.mjs';
|
|
22
|
-
import '../lists-
|
|
22
|
+
import '../lists-CvG_iVK3.mjs';
|
|
23
23
|
import '../docx/wrapTypes.mjs';
|
|
24
24
|
import 'prosemirror-model';
|
|
25
25
|
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export { PIXELS_PER_INCH, TWIPS_PER_INCH, clamp, eighthsToPixels, emuToPixels, emuToTwips, formatPx, halfPointsToPixels, halfPointsToPoints, pixelsToEmu, pixelsToTwips, pointsToHalfPoints, pointsToPixels, roundPixels, twipsToEmu, twipsToPixels } from './units.js';
|
|
11
|
-
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, T as TemplateError, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, g as createTemplateProcessor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, k as getMissingVariables, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, q as previewTemplate, r as processTemplate, s as processTemplateAdvanced, F as processTemplateAndDownload, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, G as resolveColorToHex, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from '../colorResolver-
|
|
11
|
+
export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, T as TemplateError, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, g as createTemplateProcessor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, k as getMissingVariables, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, q as previewTemplate, r as processTemplate, s as processTemplateAdvanced, F as processTemplateAndDownload, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, G as resolveColorToHex, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from '../colorResolver-BZ_yScf4.js';
|
|
12
12
|
import { Run, Paragraph } from '../types/content.js';
|
|
13
|
-
import { T as Theme } from '../styles-
|
|
13
|
+
import { T as Theme } from '../styles-BBv7doYK.js';
|
|
14
14
|
export { D as DocxInput, t as toArrayBuffer } from '../docxInput-DTbCa48g.js';
|
|
15
15
|
export { F as FONT_MAPPING, I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, z as extractFontsFromDocument, i as findPageBreaks, A as getGoogleFontEquivalent, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, r as isLineBreak, q as isLoading, s as isPageBreak, B as loadDocumentFonts, t as loadFont, u as loadFontFromBuffer, C as loadFontWithMapping, v as loadFonts, D as loadFontsWithMapping, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from '../fontLoader-QPwbcX5j.js';
|
|
16
16
|
import { B as BorderSpec, S as ShadingProperties } from '../colors-C3vA7HUU.js';
|
|
17
|
-
import { P as ParagraphFormatting, T as TextFormatting } from '../formatting-
|
|
17
|
+
import { P as ParagraphFormatting, T as TextFormatting } from '../formatting-_OXU8gLB.js';
|
|
18
18
|
export { HeadingInfo, collectHeadings } from './headingCollector.js';
|
|
19
19
|
export { WordSelectionResult, createDoubleClickWordSelector, createTripleClickParagraphSelector, expandSelectionToWordBoundaries, findWordAt, findWordBoundaries, getWordAt, handleClickForMultiClick, selectParagraphAtCursor, selectWordAtCursor, selectWordInTextNode } from './textSelection.js';
|
|
20
20
|
export { MIN_CARD_GAP, SIDEBAR_DOCUMENT_SHIFT, SIDEBAR_PAGE_GAP, SIDEBAR_WIDTH } from './sidebarConstants.js';
|
|
21
21
|
import '../types/document.js';
|
|
22
|
-
import '../lists-
|
|
22
|
+
import '../lists-UTp_tk7B.js';
|
|
23
23
|
import '../docx/wrapTypes.js';
|
|
24
24
|
import 'prosemirror-model';
|
|
25
25
|
|