@eigenpal/docx-editor-core 1.2.1 → 1.3.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/dist/agent/index.d.mts +5 -4
- package/dist/agent/index.d.ts +5 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/anchoredObjectPosition-CS-8BfhO.d.ts +48 -0
- package/dist/anchoredObjectPosition-KJEyF-wr.d.mts +48 -0
- package/dist/{chunk-U4WUDHDK.js → chunk-2SGJZYQF.js} +1 -1
- package/dist/chunk-3ANZ3252.mjs +2 -0
- package/dist/chunk-3G44SFHX.mjs +4 -0
- package/dist/{chunk-4QEETB7U.js → chunk-3QPKTG2Y.js} +2 -2
- package/dist/chunk-3R7QHNI5.js +2 -0
- package/dist/chunk-4GFTMGSV.mjs +1 -0
- package/dist/chunk-4RTVLMRZ.js +2 -0
- package/dist/{chunk-THLJYXFB.js → chunk-6V3SFHEM.js} +1 -1
- package/dist/chunk-72KLR6TJ.mjs +1 -0
- package/dist/{chunk-6ZXL3EIP.mjs → chunk-7CZEZ3UL.mjs} +1 -1
- package/dist/chunk-7JQVKJRN.mjs +1 -0
- package/dist/{chunk-Z5MJYQSD.mjs → chunk-7UZJ5YDF.mjs} +1 -1
- package/dist/chunk-7WGN2OBZ.js +1 -0
- package/dist/{chunk-BXWOLARZ.js → chunk-APNMO5JT.js} +1 -1
- package/dist/{chunk-KZXZWGFX.mjs → chunk-B46V5G46.mjs} +1 -1
- package/dist/chunk-BH3ACQ3M.js +59 -0
- package/dist/chunk-BUCOTKYY.js +1 -0
- package/dist/{chunk-5BLQHXWK.mjs → chunk-CDXCFHOY.mjs} +1 -1
- package/dist/chunk-CHN26LLL.mjs +59 -0
- package/dist/chunk-CZSAC65M.js +2 -0
- package/dist/chunk-D3PRIF3Y.mjs +1 -0
- package/dist/{chunk-7BVHKWEW.mjs → chunk-DFUWJHKF.mjs} +1 -1
- package/dist/chunk-DKKTY56Q.js +1 -0
- package/dist/chunk-FIGLFSNR.js +1 -0
- package/dist/{chunk-AMB6Y77B.js → chunk-FQS436KN.js} +1 -1
- package/dist/chunk-FYRJTDC4.mjs +2 -0
- package/dist/chunk-GYWTUUXX.mjs +2 -0
- package/dist/chunk-INDYZOOS.js +1 -0
- package/dist/chunk-IUVQJ6PX.mjs +1 -0
- package/dist/chunk-JUMHC5Z6.mjs +1 -0
- package/dist/chunk-L6YTCHOQ.mjs +1 -0
- package/dist/{chunk-D62KS7QG.mjs → chunk-LAJPGQEE.mjs} +1 -1
- package/dist/chunk-LERLET2D.js +4 -0
- package/dist/chunk-MEVZCB56.mjs +1 -0
- package/dist/{chunk-BOOHU5EW.mjs → chunk-MOCGHQ4A.mjs} +1 -1
- package/dist/chunk-NAFMAKLK.js +2 -0
- package/dist/chunk-OTHV7YV2.js +2 -0
- package/dist/chunk-Q5B5GKXD.mjs +1 -0
- package/dist/{chunk-U4XMGWF7.js → chunk-RAWVGULQ.js} +1 -1
- package/dist/chunk-RQVHKDXK.js +2 -0
- package/dist/{chunk-E4JMCA5X.js → chunk-SCK6ZM5V.js} +2 -2
- package/dist/chunk-SWBLJF6R.mjs +2 -0
- package/dist/chunk-T4RYVPAB.js +1 -0
- package/dist/{chunk-UGV4KRQB.js → chunk-TJRROR6U.js} +1 -1
- package/dist/chunk-TURYWKNS.js +1 -0
- package/dist/chunk-UE2ZKRYB.mjs +2 -0
- package/dist/chunk-VOCHZNOF.mjs +1 -0
- package/dist/{chunk-OEXVWIHW.mjs → chunk-W77JXDEV.mjs} +1 -1
- package/dist/chunk-WDBZ3QVB.js +1 -0
- package/dist/chunk-WWBNJ7KF.js +1 -0
- package/dist/chunk-WWNOXNEX.mjs +2 -0
- package/dist/chunk-XWC67YLW.js +1 -0
- package/dist/{chunk-QKLY4F2J.mjs → chunk-YNUPP7UG.mjs} +1 -1
- package/dist/{chunk-HQPWFUP5.js → chunk-Z3LGMBJC.js} +1 -1
- package/dist/{colorResolver-BZ_yScf4.d.ts → colorResolver-8A-qj-LP.d.ts} +1 -1
- package/dist/{colorResolver-C6DtsoFI.d.mts → colorResolver-BCvxTlLF.d.mts} +1 -1
- package/dist/{content-CE-ZdMwG.d.mts → content-3xF4WDE8.d.mts} +51 -7
- package/dist/{content-CYXJ2tfQ.d.ts → content-C8fc_tL6.d.ts} +51 -7
- package/dist/{contentControlValues-gyVPsi6m.d.ts → contentControlValues-DGDKD589.d.ts} +1 -1
- package/dist/{contentControlValues-DAwTWfgR.d.mts → contentControlValues-DjWvoJQ-.d.mts} +1 -1
- package/dist/core-plugins.d.mts +6 -5
- package/dist/core-plugins.d.ts +6 -5
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +12 -11
- package/dist/core.d.ts +12 -11
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-DToJv9co.d.ts → documentStyles-C7k_8Sye.d.ts} +1 -1
- package/dist/{documentStyles-D87dxl18.d.mts → documentStyles-qR0VR2s0.d.mts} +1 -1
- package/dist/docx/index.d.mts +3 -2
- package/dist/docx/index.d.ts +3 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -2
- package/dist/docx/parser.d.ts +3 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -2
- package/dist/docx/rezip.d.ts +3 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +42 -4
- package/dist/docx/serializer/index.d.ts +42 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/{fontLoader-Z7pqeNvZ.d.mts → fontLoader-CUS1BPv7.d.mts} +1 -1
- package/dist/{fontLoader-Cm02v7PO.d.ts → fontLoader-Dl9SEKex.d.ts} +1 -1
- package/dist/{footnotes-lCH_P3N3.d.mts → footnotes-BtVc6VFl.d.mts} +14 -1
- package/dist/{footnotes-skVvEHvZ.d.ts → footnotes-DcUMWXul.d.ts} +14 -1
- package/dist/{headerFooterLayout-Bd58Tum3.d.ts → headerFooterLayout-4E-S4Aay.d.ts} +5 -5
- package/dist/{headerFooterLayout-CuIJiIzi.d.mts → headerFooterLayout-DlJLWmpR.d.mts} +5 -5
- package/dist/headless.d.mts +47 -11
- package/dist/headless.d.ts +47 -11
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.d.mts +26 -1
- package/dist/layout-bridge/clickToPositionDom.d.ts +26 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +29 -7
- package/dist/layout-bridge/index.d.ts +29 -7
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +25 -3
- package/dist/layout-bridge/measuring/index.d.ts +25 -3
- 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 +3 -2
- package/dist/layout-bridge/toFlowBlocks.d.ts +3 -2
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +16 -3
- package/dist/layout-engine/index.d.ts +16 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +22 -1
- package/dist/layout-engine/types.d.ts +22 -1
- package/dist/layout-painter/index.d.mts +6 -4
- package/dist/layout-painter/index.d.ts +6 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +9 -5
- package/dist/layout-painter/renderPage.d.ts +9 -5
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +3 -2
- package/dist/managers/AutoSaveManager.d.ts +3 -2
- package/dist/managers/TableSelectionManager.d.mts +3 -2
- package/dist/managers/TableSelectionManager.d.ts +3 -2
- package/dist/managers/types.d.mts +3 -2
- package/dist/managers/types.d.ts +3 -2
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +4 -3
- package/dist/mcp.d.ts +4 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +2 -2
- package/dist/{nodes-BNkRKBBX.d.ts → nodes-75Q9GBxV.d.ts} +1 -1
- package/dist/{nodes-Bz-UHhLE.d.mts → nodes-cEI7hVY2.d.mts} +1 -1
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +20 -1
- package/dist/prosemirror/commands/index.d.ts +20 -1
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +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 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +3 -2
- package/dist/prosemirror/conversion/index.d.ts +3 -2
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +12 -2
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.d.mts +6 -5
- package/dist/prosemirror/index.d.ts +6 -5
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/plugins/index.d.mts +4 -3
- package/dist/prosemirror/plugins/index.d.ts +4 -3
- package/dist/prosemirror/schema/index.d.mts +3 -2
- package/dist/prosemirror/schema/index.d.ts +3 -2
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +1 -1
- package/dist/prosemirror/styles/index.d.ts +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -1
- package/dist/{registry-Cpyybgij.d.mts → registry-NLnxX7pq.d.mts} +1 -1
- package/dist/{registry-E5pahPKL.d.ts → registry-egK81C_z.d.ts} +1 -1
- package/dist/sectionPropertiesSerializer-D86QlzlT.d.mts +59 -0
- package/dist/sectionPropertiesSerializer-uXyGONxu.d.ts +59 -0
- package/dist/{styles-EI2lxeEN.d.mts → styles-BOJ93SAm.d.mts} +1 -1
- package/dist/{styles-BBv7doYK.d.ts → styles-BWqX2AS-.d.ts} +1 -1
- package/dist/types/content.d.mts +2 -1
- package/dist/types/content.d.ts +2 -1
- package/dist/types/content.js +1 -1
- package/dist/types/content.mjs +1 -0
- package/dist/types/document.d.mts +17 -6
- package/dist/types/document.d.ts +17 -6
- package/dist/types/document.js +1 -1
- package/dist/types/document.mjs +1 -0
- package/dist/{types-DXG7vqe9.d.ts → types-DDQWU7-j.d.ts} +1 -1
- package/dist/{types-dYdjUZMo.d.mts → types-DTF0N7UE.d.mts} +1 -1
- package/dist/utils/comments.d.mts +2 -1
- package/dist/utils/comments.d.ts +2 -1
- package/dist/utils/index.d.mts +5 -4
- package/dist/utils/index.d.ts +5 -4
- package/dist/{variableDetector-HPZbJ_gw.d.ts → variableDetector-1mxzPfs2.d.ts} +1 -1
- package/dist/{variableDetector-C7BLz9sJ.d.mts → variableDetector-CaY-sDau.d.mts} +1 -1
- package/dist/watermark-DAcnAs_J.d.mts +77 -0
- package/dist/watermark-DAcnAs_J.d.ts +77 -0
- package/package.json +1 -1
- package/dist/chunk-2EQGBVPV.js +0 -2
- package/dist/chunk-44FHVKSI.js +0 -1
- package/dist/chunk-44JKHPGF.mjs +0 -2
- package/dist/chunk-5M7TI6TV.js +0 -1
- package/dist/chunk-6Y6LON6Y.mjs +0 -1
- package/dist/chunk-7RDCZLTU.js +0 -1
- package/dist/chunk-7ZN4WI5N.mjs +0 -4
- package/dist/chunk-CCPBNE2F.mjs +0 -2
- package/dist/chunk-DV6GWBUJ.js +0 -2
- package/dist/chunk-EQAORQC3.mjs +0 -1
- package/dist/chunk-FYKRDDKG.js +0 -1
- package/dist/chunk-GUQFNJHE.mjs +0 -1
- package/dist/chunk-ICE6NC3S.mjs +0 -1
- package/dist/chunk-IFUED5ZS.mjs +0 -1
- package/dist/chunk-KGTEBLB6.js +0 -1
- package/dist/chunk-KRN6YSR2.mjs +0 -1
- package/dist/chunk-L72YAV5N.js +0 -3
- package/dist/chunk-LTHT4A4S.js +0 -1
- package/dist/chunk-MERJFGEP.mjs +0 -59
- package/dist/chunk-MP4QSEO2.mjs +0 -1
- package/dist/chunk-PVAVS3IU.js +0 -1
- package/dist/chunk-QYF7BRG3.js +0 -2
- package/dist/chunk-RKDVY7I3.mjs +0 -1
- package/dist/chunk-ROG4MNOR.js +0 -4
- package/dist/chunk-SORYYVJ7.js +0 -1
- package/dist/chunk-SZIOF5SG.js +0 -59
- package/dist/chunk-VMRUBLPI.js +0 -1
- package/dist/chunk-WKUHYMDO.mjs +0 -1
- package/dist/chunk-WLDI6N3B.mjs +0 -3
- package/dist/chunk-WLHNIXWC.mjs +0 -2
- package/dist/chunk-YMZ3F2FZ.mjs +0 -1
- package/dist/chunk-ZBFNOJGY.js +0 -1
- package/dist/documentSerializer-Bghq9rFI.d.mts +0 -36
- package/dist/documentSerializer-C4lFC60P.d.ts +0 -36
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';require('../chunk-53VKL6CG.js');var chunk4GER4JLW_js=require('../chunk-4GER4JLW.js'),chunkI6PMX4BO_js=require('../chunk-I6PMX4BO.js'),chunkFO6IX2DB_js=require('../chunk-FO6IX2DB.js');require('../chunk-UQ6WNWXX.js');var
|
|
1
|
+
'use strict';require('../chunk-53VKL6CG.js');var chunk4GER4JLW_js=require('../chunk-4GER4JLW.js'),chunkI6PMX4BO_js=require('../chunk-I6PMX4BO.js'),chunkFO6IX2DB_js=require('../chunk-FO6IX2DB.js');require('../chunk-UQ6WNWXX.js');var chunkINDYZOOS_js=require('../chunk-INDYZOOS.js'),chunkBUCOTKYY_js=require('../chunk-BUCOTKYY.js'),chunkC45EFOVP_js=require('../chunk-C45EFOVP.js');require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js');var chunkRAWVGULQ_js=require('../chunk-RAWVGULQ.js'),chunkAPNMO5JT_js=require('../chunk-APNMO5JT.js'),chunk6V3SFHEM_js=require('../chunk-6V3SFHEM.js'),chunkGGPKPXON_js=require('../chunk-GGPKPXON.js');require('../chunk-2KHWHVTA.js'),require('../chunk-IYKBX24M.js');var chunkWWBNJ7KF_js=require('../chunk-WWBNJ7KF.js'),chunk4RTVLMRZ_js=require('../chunk-4RTVLMRZ.js');require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js');var chunkWVERBZZU_js=require('../chunk-WVERBZZU.js'),chunk6LVPRTB6_js=require('../chunk-6LVPRTB6.js'),chunkLWH66Q7Q_js=require('../chunk-LWH66Q7Q.js'),chunkTUIEV7Q7_js=require('../chunk-TUIEV7Q7.js');require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');var prosemirrorState=require('prosemirror-state');function Xe(t){let{selection:n,doc:r}=t,{from:e,to:a,empty:i}=n,s=r.resolve(e),d=0,g=0;r.forEach((p,S,y)=>{S<=e&&(d=y),S<=a&&(g=y);});let l={},o=s.parent,h=o.type.name==="paragraph"&&o.textContent.length===0,u=o.attrs?.defaultTextFormatting,m=t.storedMarks||n.$from.marks();h&&m.length===0&&u&&(l={...u});for(let p of m)switch(p.type.name){case "bold":l.bold=true;break;case "italic":l.italic=true;break;case "underline":l.underline={style:p.attrs.style||"single",color:p.attrs.color};break;case "strike":p.attrs.double?l.doubleStrike=true:l.strike=true;break;case "textColor":l.color={rgb:p.attrs.rgb,themeColor:p.attrs.themeColor};break;case "highlight":l.highlight=p.attrs.color;break;case "fontSize":l.fontSize=p.attrs.size;break;case "fontFamily":l.fontFamily={ascii:p.attrs.ascii,hAnsi:p.attrs.hAnsi};break;case "superscript":l.vertAlign="superscript";break;case "subscript":l.vertAlign="subscript";break}let c={},f=null;return o.type.name==="paragraph"&&(o.attrs.alignment&&(c.alignment=o.attrs.alignment),o.attrs.lineSpacing&&(c.lineSpacing=o.attrs.lineSpacing,c.lineSpacingRule=o.attrs.lineSpacingRule),o.attrs.numPr&&(c.numPr=o.attrs.numPr),o.attrs.indentLeft&&(c.indentLeft=o.attrs.indentLeft),o.attrs.indentRight&&(c.indentRight=o.attrs.indentRight),o.attrs.indentFirstLine&&(c.indentFirstLine=o.attrs.indentFirstLine),o.attrs.hangingIndent&&(c.hangingIndent=o.attrs.hangingIndent),o.attrs.tabs&&(c.tabs=o.attrs.tabs),o.attrs.bidi&&(c.bidi=true),o.attrs.styleId&&(f=o.attrs.styleId)),{hasSelection:!i,isMultiParagraph:d!==g,textFormatting:l,paragraphFormatting:c,styleId:f,startParagraphIndex:d,endParagraphIndex:g}}function D(t){if(!(typeof t!="string"||!t))try{return JSON.parse(t)}catch{return}}function X(t,n){return !(n.tag!==void 0&&t.tag!==n.tag||n.alias!==void 0&&t.alias!==n.alias||n.id!==void 0&&t.id!==n.id||n.type!==void 0&&(t.sdtType??"richText")!==n.type)}function ze(t,n,r){let e=t.attrs;return {tag:e.tag!=null?String(e.tag):void 0,alias:e.alias!=null?String(e.alias):void 0,id:typeof e.id=="number"?e.id:void 0,sdtType:e.sdtType??"richText",lock:e.lock??void 0,showingPlaceholder:e.showingPlaceholder===true?true:void 0,checked:typeof e.checked=="boolean"?e.checked:void 0,dateFormat:e.dateFormat!=null?String(e.dateFormat):void 0,listItems:D(e.listItems),dataBinding:D(e.dataBinding),dateValue:/<w:date\b[^>]*\bw:fullDate="(\d{4}-\d{2}-\d{2})/.exec(String(e.rawPropertiesXml??""))?.[1],text:t.textBetween(0,t.content.size,`
|
|
2
2
|
`),pos:n,depth:r}}function z(t,n={}){let r=[],e=(a,i,s)=>{a.forEach((d,g)=>{let l=i+g,o=d.type.name==="blockSdt";o&&X(d.attrs,n)&&r.push(ze(d,l,s)),e(d,l+1,o?s+1:s);});};return e(t,0,0),r}function He(t,n){return z(t,n)[0]?.pos??null}function F(t,n){let r=null;return t.descendants((e,a)=>r?false:e.type.name==="blockSdt"&&X(e.attrs,n)?(r={node:e,pos:a},false):true),r}function Je(t,n,r,e={}){let a=F(t.doc,n);if(!a)throw new chunkFO6IX2DB_js.z(n);let i=a.node.attrs;if(!e.force&&chunkFO6IX2DB_js.E(i.lock))throw new chunkFO6IX2DB_js.A(i.lock,"edit");let s=i.sdtType??"richText";if(!e.force&&!chunkFO6IX2DB_js.D(s))throw new chunkFO6IX2DB_js.B(s);if(!e.force&&i.dataBinding!=null)throw new chunkFO6IX2DB_js.C;let{schema:d}=t,l=(s==="plainText"?[r]:r.split(`
|
|
3
|
-
`)).map(m=>d.nodes.paragraph.create(null,m?d.text(m):null)),o=a.pos+1,h=a.pos+1+a.node.content.size,u=t.tr.replaceWith(o,h,l);return (i.showingPlaceholder||/showingPlcHdr/.test(String(i.rawPropertiesXml??"")))&&u.setNodeMarkup(a.pos,void 0,{...i,showingPlaceholder:false,rawPropertiesXml:chunkFO6IX2DB_js.H(i.rawPropertiesXml==null?void 0:String(i.rawPropertiesXml))}),u}function Ve(t,n,r={}){let e=F(t.doc,n);if(!e)throw new chunkFO6IX2DB_js.z(n);let a=e.node.attrs.lock;if(!r.force&&chunkFO6IX2DB_js.F(a))throw new chunkFO6IX2DB_js.A(a,"remove");if(r.keepContent&&!r.force&&/<w15:repeatingSection(Item)?[\s/>]/.test(String(e.node.attrs.rawPropertiesXml??"")))throw new chunkFO6IX2DB_js.A(a,"remove");let i=e.pos,s=e.pos+e.node.nodeSize;return r.keepContent?t.tr.replaceWith(i,s,e.node.content):t.tr.delete(i,s)}function Oe(t,n,r,e={}){let a=F(t.doc,n);if(!a)throw new chunkFO6IX2DB_js.z(n);let i=chunkC45EFOVP_js.b(a.node.attrs);if(!e.force&&chunkFO6IX2DB_js.E(i.lock))throw new chunkFO6IX2DB_js.A(i.lock,"edit");if(!e.force&&chunkFO6IX2DB_js.G(i))throw new chunkFO6IX2DB_js.C;let{properties:s,content:d}=chunkFO6IX2DB_js.M(i,r),{schema:g}=t,l=g.marks.fontFamily,o=d.map(c=>{if(c.type!=="paragraph")return g.nodes.paragraph.create(null,null);let f=c.content.find(b=>b.type==="run"),p=f?.type==="run"?f.content.map(b=>"text"in b?b.text:"").join(""):"",S=f?.type==="run"?f.formatting?.fontFamily:void 0,y=S&&l?[l.create(S)]:void 0;return g.nodes.paragraph.create(null,p?g.text(p,y):null)}),h=a.pos+1,u=a.pos+1+a.node.content.size,m=t.tr.replaceWith(h,u,o);return m.setNodeMarkup(a.pos,void 0,{...a.node.attrs,...chunkC45EFOVP_js.a(s)}),m}function We(t){let n=0;return t.descendants(r=>(r.type.name==="blockSdt"&&typeof r.attrs.id=="number"&&(n=Math.max(n,r.attrs.id)),true)),n}function $e(t,n,r){let e=r,a=n.toJSON(),i=s=>{if(s.type==="blockSdt"&&s.attrs){let d=++e;s.attrs={...s.attrs,id:d,rawPropertiesXml:chunkFO6IX2DB_js.S(s.attrs.rawPropertiesXml==null?void 0:String(s.attrs.rawPropertiesXml),d)};}s.content?.forEach(i);};return i(a),t.nodeFromJSON(a)}function je(t,n){let r=t.doc.nodeAt(n);if(!r||r.type.name!=="blockSdt"||!chunkFO6IX2DB_js.O(String(r.attrs.rawPropertiesXml??"")))throw new chunkFO6IX2DB_js.R("Position is not a repeating-section item.");let e=$e(t.schema,r,We(t.doc));return t.tr.insert(n+r.nodeSize,e)}function Ke(t,n){let r=t.doc.nodeAt(n);if(!r||r.type.name!=="blockSdt"||!chunkFO6IX2DB_js.O(String(r.attrs.rawPropertiesXml??"")))throw new chunkFO6IX2DB_js.R("Position is not a repeating-section item.");let a=t.doc.resolve(n).parent,i=0;if(a.forEach(s=>{s.type.name==="blockSdt"&&chunkFO6IX2DB_js.O(String(s.attrs.rawPropertiesXml??""))&&(i+=1);}),i<=1)throw new chunkFO6IX2DB_js.R("Cannot remove the last item of a repeating section.");return t.tr.delete(n,n+r.nodeSize)}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 chunkPVAVS3IU_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkPVAVS3IU_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkZBFNOJGY_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkZBFNOJGY_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkZBFNOJGY_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkZBFNOJGY_js.a}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkU4XMGWF7_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkU4XMGWF7_js.h}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkU4XMGWF7_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkU4XMGWF7_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkU4XMGWF7_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkU4XMGWF7_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkU4XMGWF7_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkU4XMGWF7_js.B}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkU4XMGWF7_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkU4XMGWF7_js.n}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkU4XMGWF7_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkU4XMGWF7_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkU4XMGWF7_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkU4XMGWF7_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkU4XMGWF7_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkU4XMGWF7_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkU4XMGWF7_js.v}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkU4XMGWF7_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkU4XMGWF7_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkU4XMGWF7_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkU4XMGWF7_js.D}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkU4XMGWF7_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkU4XMGWF7_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkBXWOLARZ_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkBXWOLARZ_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkBXWOLARZ_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkBXWOLARZ_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkBXWOLARZ_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkBXWOLARZ_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkBXWOLARZ_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkBXWOLARZ_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkBXWOLARZ_js.r}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkBXWOLARZ_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkBXWOLARZ_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkBXWOLARZ_js.q}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkBXWOLARZ_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkBXWOLARZ_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkBXWOLARZ_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkBXWOLARZ_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkBXWOLARZ_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkBXWOLARZ_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkBXWOLARZ_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkBXWOLARZ_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkBXWOLARZ_js.B}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkBXWOLARZ_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkBXWOLARZ_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkTHLJYXFB_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkTHLJYXFB_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkTHLJYXFB_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkTHLJYXFB_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkTHLJYXFB_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkTHLJYXFB_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkTHLJYXFB_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkTHLJYXFB_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkTHLJYXFB_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkTHLJYXFB_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkTHLJYXFB_js.h}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkTHLJYXFB_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkTHLJYXFB_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkTHLJYXFB_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkTHLJYXFB_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkTHLJYXFB_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkTHLJYXFB_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkVMRUBLPI_js.b}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunk2EQGBVPV_js.h}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunk2EQGBVPV_js.f}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunk2EQGBVPV_js.j}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunk2EQGBVPV_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunk2EQGBVPV_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunk2EQGBVPV_js.g}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunk2EQGBVPV_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunk2EQGBVPV_js.e}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunk2EQGBVPV_js.i}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkWVERBZZU_js.g}});Object.defineProperty(exports,"createDocumentStylesPlugin",{enumerable:true,get:function(){return chunkWVERBZZU_js.k}});Object.defineProperty(exports,"documentStylesKey",{enumerable:true,get:function(){return chunkWVERBZZU_js.j}});Object.defineProperty(exports,"getDocumentStyleResolver",{enumerable:true,get:function(){return chunkWVERBZZU_js.l}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkWVERBZZU_js.e}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkWVERBZZU_js.d}});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,"StyleResolver",{enumerable:true,get:function(){return chunkLWH66Q7Q_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkLWH66Q7Q_js.b}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});Object.defineProperty(exports,"TextSelection",{enumerable:true,get:function(){return prosemirrorState.TextSelection}});exports.addRepeatingSectionItemTr=je;exports.extractSelectionState=Xe;exports.findContentControlPos=He;exports.findContentControlsInPM=z;exports.removeContentControlTr=Ve;exports.removeRepeatingSectionItemTr=Ke;exports.setContentControlContentTr=Je;exports.setContentControlValueTr=Oe;
|
|
3
|
+
`)).map(m=>d.nodes.paragraph.create(null,m?d.text(m):null)),o=a.pos+1,h=a.pos+1+a.node.content.size,u=t.tr.replaceWith(o,h,l);return (i.showingPlaceholder||/showingPlcHdr/.test(String(i.rawPropertiesXml??"")))&&u.setNodeMarkup(a.pos,void 0,{...i,showingPlaceholder:false,rawPropertiesXml:chunkFO6IX2DB_js.H(i.rawPropertiesXml==null?void 0:String(i.rawPropertiesXml))}),u}function Ve(t,n,r={}){let e=F(t.doc,n);if(!e)throw new chunkFO6IX2DB_js.z(n);let a=e.node.attrs.lock;if(!r.force&&chunkFO6IX2DB_js.F(a))throw new chunkFO6IX2DB_js.A(a,"remove");if(r.keepContent&&!r.force&&/<w15:repeatingSection(Item)?[\s/>]/.test(String(e.node.attrs.rawPropertiesXml??"")))throw new chunkFO6IX2DB_js.A(a,"remove");let i=e.pos,s=e.pos+e.node.nodeSize;return r.keepContent?t.tr.replaceWith(i,s,e.node.content):t.tr.delete(i,s)}function Oe(t,n,r,e={}){let a=F(t.doc,n);if(!a)throw new chunkFO6IX2DB_js.z(n);let i=chunkC45EFOVP_js.b(a.node.attrs);if(!e.force&&chunkFO6IX2DB_js.E(i.lock))throw new chunkFO6IX2DB_js.A(i.lock,"edit");if(!e.force&&chunkFO6IX2DB_js.G(i))throw new chunkFO6IX2DB_js.C;let{properties:s,content:d}=chunkFO6IX2DB_js.M(i,r),{schema:g}=t,l=g.marks.fontFamily,o=d.map(c=>{if(c.type!=="paragraph")return g.nodes.paragraph.create(null,null);let f=c.content.find(b=>b.type==="run"),p=f?.type==="run"?f.content.map(b=>"text"in b?b.text:"").join(""):"",S=f?.type==="run"?f.formatting?.fontFamily:void 0,y=S&&l?[l.create(S)]:void 0;return g.nodes.paragraph.create(null,p?g.text(p,y):null)}),h=a.pos+1,u=a.pos+1+a.node.content.size,m=t.tr.replaceWith(h,u,o);return m.setNodeMarkup(a.pos,void 0,{...a.node.attrs,...chunkC45EFOVP_js.a(s)}),m}function We(t){let n=0;return t.descendants(r=>(r.type.name==="blockSdt"&&typeof r.attrs.id=="number"&&(n=Math.max(n,r.attrs.id)),true)),n}function $e(t,n,r){let e=r,a=n.toJSON(),i=s=>{if(s.type==="blockSdt"&&s.attrs){let d=++e;s.attrs={...s.attrs,id:d,rawPropertiesXml:chunkFO6IX2DB_js.S(s.attrs.rawPropertiesXml==null?void 0:String(s.attrs.rawPropertiesXml),d)};}s.content?.forEach(i);};return i(a),t.nodeFromJSON(a)}function je(t,n){let r=t.doc.nodeAt(n);if(!r||r.type.name!=="blockSdt"||!chunkFO6IX2DB_js.O(String(r.attrs.rawPropertiesXml??"")))throw new chunkFO6IX2DB_js.R("Position is not a repeating-section item.");let e=$e(t.schema,r,We(t.doc));return t.tr.insert(n+r.nodeSize,e)}function Ke(t,n){let r=t.doc.nodeAt(n);if(!r||r.type.name!=="blockSdt"||!chunkFO6IX2DB_js.O(String(r.attrs.rawPropertiesXml??"")))throw new chunkFO6IX2DB_js.R("Position is not a repeating-section item.");let a=t.doc.resolve(n).parent,i=0;if(a.forEach(s=>{s.type.name==="blockSdt"&&chunkFO6IX2DB_js.O(String(s.attrs.rawPropertiesXml??""))&&(i+=1);}),i<=1)throw new chunkFO6IX2DB_js.R("Cannot remove the last item of a repeating section.");return t.tr.delete(n,n+r.nodeSize)}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 chunkINDYZOOS_js.a}});Object.defineProperty(exports,"updateDocumentContent",{enumerable:true,get:function(){return chunkINDYZOOS_js.b}});Object.defineProperty(exports,"createEmptyDoc",{enumerable:true,get:function(){return chunkBUCOTKYY_js.d}});Object.defineProperty(exports,"footnoteToProseDoc",{enumerable:true,get:function(){return chunkBUCOTKYY_js.c}});Object.defineProperty(exports,"headerFooterToProseDoc",{enumerable:true,get:function(){return chunkBUCOTKYY_js.b}});Object.defineProperty(exports,"toProseDoc",{enumerable:true,get:function(){return chunkBUCOTKYY_js.a}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkRAWVGULQ_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkRAWVGULQ_js.h}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkRAWVGULQ_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkRAWVGULQ_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkRAWVGULQ_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkRAWVGULQ_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkRAWVGULQ_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkRAWVGULQ_js.B}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkRAWVGULQ_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkRAWVGULQ_js.n}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkRAWVGULQ_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkRAWVGULQ_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkRAWVGULQ_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkRAWVGULQ_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkRAWVGULQ_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkRAWVGULQ_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkRAWVGULQ_js.v}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkRAWVGULQ_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkRAWVGULQ_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkRAWVGULQ_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkRAWVGULQ_js.D}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkRAWVGULQ_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkRAWVGULQ_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkAPNMO5JT_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkAPNMO5JT_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkAPNMO5JT_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkAPNMO5JT_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkAPNMO5JT_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkAPNMO5JT_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkAPNMO5JT_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkAPNMO5JT_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkAPNMO5JT_js.r}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkAPNMO5JT_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkAPNMO5JT_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkAPNMO5JT_js.q}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkAPNMO5JT_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkAPNMO5JT_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkAPNMO5JT_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkAPNMO5JT_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkAPNMO5JT_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkAPNMO5JT_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkAPNMO5JT_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkAPNMO5JT_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkAPNMO5JT_js.B}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkAPNMO5JT_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkAPNMO5JT_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunk6V3SFHEM_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunk6V3SFHEM_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunk6V3SFHEM_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunk6V3SFHEM_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunk6V3SFHEM_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunk6V3SFHEM_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunk6V3SFHEM_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunk6V3SFHEM_js.h}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunk6V3SFHEM_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunk6V3SFHEM_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunk6V3SFHEM_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunk6V3SFHEM_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunk6V3SFHEM_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunk6V3SFHEM_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkWWBNJ7KF_js.b}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.h}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.f}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.j}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.g}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.e}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.i}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkWVERBZZU_js.g}});Object.defineProperty(exports,"createDocumentStylesPlugin",{enumerable:true,get:function(){return chunkWVERBZZU_js.k}});Object.defineProperty(exports,"documentStylesKey",{enumerable:true,get:function(){return chunkWVERBZZU_js.j}});Object.defineProperty(exports,"getDocumentStyleResolver",{enumerable:true,get:function(){return chunkWVERBZZU_js.l}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkWVERBZZU_js.e}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkWVERBZZU_js.d}});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,"StyleResolver",{enumerable:true,get:function(){return chunkLWH66Q7Q_js.a}});Object.defineProperty(exports,"createStyleResolver",{enumerable:true,get:function(){return chunkLWH66Q7Q_js.b}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});Object.defineProperty(exports,"TextSelection",{enumerable:true,get:function(){return prosemirrorState.TextSelection}});exports.addRepeatingSectionItemTr=je;exports.extractSelectionState=Xe;exports.findContentControlPos=He;exports.findContentControlsInPM=z;exports.removeContentControlTr=Ve;exports.removeRepeatingSectionItemTr=Ke;exports.setContentControlContentTr=Je;exports.setContentControlValueTr=Oe;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import'../chunk-DTTWBKGN.mjs';export{a as LayoutSelectionGate}from'../chunk-Q5QOBZWT.mjs';export{b as findParagraphByParaId,a as findStartPosForParaId}from'../chunk-3SXJPJSV.mjs';import {z as z$1,E,A,D as D$1,B,C,H,F as F$1,G,M,O,R,S}from'../chunk-KOEWROYV.mjs';import'../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,b as updateDocumentContent}from'../chunk-
|
|
1
|
+
import'../chunk-DTTWBKGN.mjs';export{a as LayoutSelectionGate}from'../chunk-Q5QOBZWT.mjs';export{b as findParagraphByParaId,a as findStartPosForParaId}from'../chunk-3SXJPJSV.mjs';import {z as z$1,E,A,D as D$1,B,C,H,F as F$1,G,M,O,R,S}from'../chunk-KOEWROYV.mjs';import'../chunk-RNOXNNSD.mjs';export{a as fromProseDoc,b as updateDocumentContent}from'../chunk-D3PRIF3Y.mjs';export{d as createEmptyDoc,c as footnoteToProseDoc,b as headerFooterToProseDoc,a as toProseDoc}from'../chunk-IUVQJ6PX.mjs';import {b,a}from'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.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-CDXCFHOY.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-LAJPGQEE.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-7UZJ5YDF.mjs';export{a as insertPageBreak}from'../chunk-3COGZG7O.mjs';import'../chunk-KQTB5Y7P.mjs';import'../chunk-FW23IMBF.mjs';export{b as schema}from'../chunk-4GFTMGSV.mjs';export{h as findHyperlinkRangeAt,f as getHyperlinkAttrs,j as getListInfo,a as getParagraphAlignment,d as getParagraphBidi,g as getSelectedText,c as getStyleId,e as isHyperlinkActive,i as isInList}from'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';export{g as clearFormatting,k as createDocumentStylesPlugin,j as documentStylesKey,l as getDocumentStyleResolver,e as getMarkAttr,d as isMarkActive}from'../chunk-U67MWOPZ.mjs';export{c as createSelectionTrackerPlugin,b as extractSelectionContext,d as getSelectionContext,a as selectionTrackerKey}from'../chunk-BGY3CB37.mjs';export{a as StyleResolver,b as createStyleResolver}from'../chunk-2XP6GLA4.mjs';export{a as getTableContext,b as isInTable}from'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';export{TextSelection}from'prosemirror-state';function Xe(t){let{selection:n,doc:r}=t,{from:e,to:a,empty:i}=n,s=r.resolve(e),d=0,g=0;r.forEach((p,S,y)=>{S<=e&&(d=y),S<=a&&(g=y);});let l={},o=s.parent,h=o.type.name==="paragraph"&&o.textContent.length===0,u=o.attrs?.defaultTextFormatting,m=t.storedMarks||n.$from.marks();h&&m.length===0&&u&&(l={...u});for(let p of m)switch(p.type.name){case "bold":l.bold=true;break;case "italic":l.italic=true;break;case "underline":l.underline={style:p.attrs.style||"single",color:p.attrs.color};break;case "strike":p.attrs.double?l.doubleStrike=true:l.strike=true;break;case "textColor":l.color={rgb:p.attrs.rgb,themeColor:p.attrs.themeColor};break;case "highlight":l.highlight=p.attrs.color;break;case "fontSize":l.fontSize=p.attrs.size;break;case "fontFamily":l.fontFamily={ascii:p.attrs.ascii,hAnsi:p.attrs.hAnsi};break;case "superscript":l.vertAlign="superscript";break;case "subscript":l.vertAlign="subscript";break}let c={},f=null;return o.type.name==="paragraph"&&(o.attrs.alignment&&(c.alignment=o.attrs.alignment),o.attrs.lineSpacing&&(c.lineSpacing=o.attrs.lineSpacing,c.lineSpacingRule=o.attrs.lineSpacingRule),o.attrs.numPr&&(c.numPr=o.attrs.numPr),o.attrs.indentLeft&&(c.indentLeft=o.attrs.indentLeft),o.attrs.indentRight&&(c.indentRight=o.attrs.indentRight),o.attrs.indentFirstLine&&(c.indentFirstLine=o.attrs.indentFirstLine),o.attrs.hangingIndent&&(c.hangingIndent=o.attrs.hangingIndent),o.attrs.tabs&&(c.tabs=o.attrs.tabs),o.attrs.bidi&&(c.bidi=true),o.attrs.styleId&&(f=o.attrs.styleId)),{hasSelection:!i,isMultiParagraph:d!==g,textFormatting:l,paragraphFormatting:c,styleId:f,startParagraphIndex:d,endParagraphIndex:g}}function D(t){if(!(typeof t!="string"||!t))try{return JSON.parse(t)}catch{return}}function X(t,n){return !(n.tag!==void 0&&t.tag!==n.tag||n.alias!==void 0&&t.alias!==n.alias||n.id!==void 0&&t.id!==n.id||n.type!==void 0&&(t.sdtType??"richText")!==n.type)}function ze(t,n,r){let e=t.attrs;return {tag:e.tag!=null?String(e.tag):void 0,alias:e.alias!=null?String(e.alias):void 0,id:typeof e.id=="number"?e.id:void 0,sdtType:e.sdtType??"richText",lock:e.lock??void 0,showingPlaceholder:e.showingPlaceholder===true?true:void 0,checked:typeof e.checked=="boolean"?e.checked:void 0,dateFormat:e.dateFormat!=null?String(e.dateFormat):void 0,listItems:D(e.listItems),dataBinding:D(e.dataBinding),dateValue:/<w:date\b[^>]*\bw:fullDate="(\d{4}-\d{2}-\d{2})/.exec(String(e.rawPropertiesXml??""))?.[1],text:t.textBetween(0,t.content.size,`
|
|
2
2
|
`),pos:n,depth:r}}function z(t,n={}){let r=[],e=(a,i,s)=>{a.forEach((d,g)=>{let l=i+g,o=d.type.name==="blockSdt";o&&X(d.attrs,n)&&r.push(ze(d,l,s)),e(d,l+1,o?s+1:s);});};return e(t,0,0),r}function He(t,n){return z(t,n)[0]?.pos??null}function F(t,n){let r=null;return t.descendants((e,a)=>r?false:e.type.name==="blockSdt"&&X(e.attrs,n)?(r={node:e,pos:a},false):true),r}function Je(t,n,r,e={}){let a=F(t.doc,n);if(!a)throw new z$1(n);let i=a.node.attrs;if(!e.force&&E(i.lock))throw new A(i.lock,"edit");let s=i.sdtType??"richText";if(!e.force&&!D$1(s))throw new B(s);if(!e.force&&i.dataBinding!=null)throw new C;let{schema:d}=t,l=(s==="plainText"?[r]:r.split(`
|
|
3
3
|
`)).map(m=>d.nodes.paragraph.create(null,m?d.text(m):null)),o=a.pos+1,h=a.pos+1+a.node.content.size,u=t.tr.replaceWith(o,h,l);return (i.showingPlaceholder||/showingPlcHdr/.test(String(i.rawPropertiesXml??"")))&&u.setNodeMarkup(a.pos,void 0,{...i,showingPlaceholder:false,rawPropertiesXml:H(i.rawPropertiesXml==null?void 0:String(i.rawPropertiesXml))}),u}function Ve(t,n,r={}){let e=F(t.doc,n);if(!e)throw new z$1(n);let a=e.node.attrs.lock;if(!r.force&&F$1(a))throw new A(a,"remove");if(r.keepContent&&!r.force&&/<w15:repeatingSection(Item)?[\s/>]/.test(String(e.node.attrs.rawPropertiesXml??"")))throw new A(a,"remove");let i=e.pos,s=e.pos+e.node.nodeSize;return r.keepContent?t.tr.replaceWith(i,s,e.node.content):t.tr.delete(i,s)}function Oe(t,n,r,e={}){let a$1=F(t.doc,n);if(!a$1)throw new z$1(n);let i=b(a$1.node.attrs);if(!e.force&&E(i.lock))throw new A(i.lock,"edit");if(!e.force&&G(i))throw new C;let{properties:s,content:d}=M(i,r),{schema:g}=t,l=g.marks.fontFamily,o=d.map(c=>{if(c.type!=="paragraph")return g.nodes.paragraph.create(null,null);let f=c.content.find(b=>b.type==="run"),p=f?.type==="run"?f.content.map(b=>"text"in b?b.text:"").join(""):"",S=f?.type==="run"?f.formatting?.fontFamily:void 0,y=S&&l?[l.create(S)]:void 0;return g.nodes.paragraph.create(null,p?g.text(p,y):null)}),h=a$1.pos+1,u=a$1.pos+1+a$1.node.content.size,m=t.tr.replaceWith(h,u,o);return m.setNodeMarkup(a$1.pos,void 0,{...a$1.node.attrs,...a(s)}),m}function We(t){let n=0;return t.descendants(r=>(r.type.name==="blockSdt"&&typeof r.attrs.id=="number"&&(n=Math.max(n,r.attrs.id)),true)),n}function $e(t,n,r){let e=r,a=n.toJSON(),i=s=>{if(s.type==="blockSdt"&&s.attrs){let d=++e;s.attrs={...s.attrs,id:d,rawPropertiesXml:S(s.attrs.rawPropertiesXml==null?void 0:String(s.attrs.rawPropertiesXml),d)};}s.content?.forEach(i);};return i(a),t.nodeFromJSON(a)}function je(t,n){let r=t.doc.nodeAt(n);if(!r||r.type.name!=="blockSdt"||!O(String(r.attrs.rawPropertiesXml??"")))throw new R("Position is not a repeating-section item.");let e=$e(t.schema,r,We(t.doc));return t.tr.insert(n+r.nodeSize,e)}function Ke(t,n){let r=t.doc.nodeAt(n);if(!r||r.type.name!=="blockSdt"||!O(String(r.attrs.rawPropertiesXml??"")))throw new R("Position is not a repeating-section item.");let a=t.doc.resolve(n).parent,i=0;if(a.forEach(s=>{s.type.name==="blockSdt"&&O(String(s.attrs.rawPropertiesXml??""))&&(i+=1);}),i<=1)throw new R("Cannot remove the last item of a repeating section.");return t.tr.delete(n,n+r.nodeSize)}export{je as addRepeatingSectionItemTr,Xe as extractSelectionState,He as findContentControlPos,z as findContentControlsInPM,Ve as removeContentControlTr,Ke as removeRepeatingSectionItemTr,Je as setContentControlContentTr,Oe as setContentControlValueTr};
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.mjs';
|
|
10
10
|
import { PluginKey, EditorState, Transaction, Plugin } from 'prosemirror-state';
|
|
11
|
-
export { c as createDocumentStylesPlugin, d as documentStylesKey, g as getDocumentStyleResolver } from '../../documentStyles-
|
|
12
|
-
import {
|
|
11
|
+
export { c as createDocumentStylesPlugin, d as documentStylesKey, g as getDocumentStyleResolver } from '../../documentStyles-qR0VR2s0.mjs';
|
|
12
|
+
import { R as RevisionInfo } from '../../content-3xF4WDE8.mjs';
|
|
13
13
|
import '../../formatting-BH4hcZiq.mjs';
|
|
14
14
|
import '../../colors-C3vA7HUU.mjs';
|
|
15
|
-
import '../../styles-
|
|
15
|
+
import '../../styles-BOJ93SAm.mjs';
|
|
16
16
|
import '../styles/index.mjs';
|
|
17
17
|
import '../../docx/wrapTypes.mjs';
|
|
18
|
+
import '../../watermark-DAcnAs_J.mjs';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Suggestion-mode plugin state + shared meta keys.
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { SelectionChangeCallback, SelectionContext, createSelectionTrackerPlugin, extractSelectionContext, getSelectionContext, selectionTrackerKey } from './selectionTracker.js';
|
|
10
10
|
import { PluginKey, EditorState, Transaction, Plugin } from 'prosemirror-state';
|
|
11
|
-
export { c as createDocumentStylesPlugin, d as documentStylesKey, g as getDocumentStyleResolver } from '../../documentStyles-
|
|
12
|
-
import {
|
|
11
|
+
export { c as createDocumentStylesPlugin, d as documentStylesKey, g as getDocumentStyleResolver } from '../../documentStyles-C7k_8Sye.js';
|
|
12
|
+
import { R as RevisionInfo } from '../../content-C8fc_tL6.js';
|
|
13
13
|
import '../../formatting-_OXU8gLB.js';
|
|
14
14
|
import '../../colors-C3vA7HUU.js';
|
|
15
|
-
import '../../styles-
|
|
15
|
+
import '../../styles-BWqX2AS-.js';
|
|
16
16
|
import '../styles/index.js';
|
|
17
17
|
import '../../docx/wrapTypes.js';
|
|
18
|
+
import '../../watermark-DAcnAs_J.js';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Suggestion-mode plugin state + shared meta keys.
|
|
@@ -9,13 +9,14 @@
|
|
|
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-
|
|
12
|
+
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-cEI7hVY2.mjs';
|
|
13
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
15
|
import '../../colors-C3vA7HUU.mjs';
|
|
16
16
|
import '../../formatting-BH4hcZiq.mjs';
|
|
17
|
-
import '../../content-
|
|
17
|
+
import '../../content-3xF4WDE8.mjs';
|
|
18
18
|
import '../../docx/wrapTypes.mjs';
|
|
19
|
+
import '../../watermark-DAcnAs_J.mjs';
|
|
19
20
|
|
|
20
21
|
declare const singletonManager: ExtensionManager;
|
|
21
22
|
declare const schema: prosemirror_model.Schema<any, any>;
|
|
@@ -9,13 +9,14 @@
|
|
|
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-
|
|
12
|
+
export { I as ImageAttrs, a as ImagePositionAttrs, P as ParagraphAttrs, T as TableAttrs, b as TableCellAttrs, c as TableRowAttrs } from '../../nodes-75Q9GBxV.js';
|
|
13
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
15
|
import '../../colors-C3vA7HUU.js';
|
|
16
16
|
import '../../formatting-_OXU8gLB.js';
|
|
17
|
-
import '../../content-
|
|
17
|
+
import '../../content-C8fc_tL6.js';
|
|
18
18
|
import '../../docx/wrapTypes.js';
|
|
19
|
+
import '../../watermark-DAcnAs_J.js';
|
|
19
20
|
|
|
20
21
|
declare const singletonManager: ExtensionManager;
|
|
21
22
|
declare const schema: prosemirror_model.Schema<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkWWBNJ7KF_js=require('../../chunk-WWBNJ7KF.js');require('../../chunk-4RTVLMRZ.js'),require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js'),require('../../chunk-WVERBZZU.js'),require('../../chunk-6LVPRTB6.js'),require('../../chunk-LWH66Q7Q.js'),require('../../chunk-TUIEV7Q7.js'),require('../../chunk-7HANRHHL.js'),require('../../chunk-MJ5FQX7Q.js'),require('../../chunk-C2BAPYGJ.js'),require('../../chunk-4Q2IP5FW.js'),require('../../chunk-GSKMHXHG.js'),require('../../chunk-DC7S76ZX.js');Object.defineProperty(exports,"schema",{enumerable:true,get:function(){return chunkWWBNJ7KF_js.b}});Object.defineProperty(exports,"singletonManager",{enumerable:true,get:function(){return chunkWWBNJ7KF_js.a}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as schema,a as singletonManager}from'../../chunk-
|
|
1
|
+
export{b as schema,a as singletonManager}from'../../chunk-4GFTMGSV.mjs';import'../../chunk-SWBLJF6R.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';import'../../chunk-U67MWOPZ.mjs';import'../../chunk-BGY3CB37.mjs';import'../../chunk-2XP6GLA4.mjs';import'../../chunk-ZX26QZJ5.mjs';import'../../chunk-MJ6XZFVD.mjs';import'../../chunk-67LVRQIR.mjs';import'../../chunk-LE67NTCN.mjs';import'../../chunk-VW22RZ6C.mjs';import'../../chunk-DI6CRWSW.mjs';import'../../chunk-QYUPLKLP.mjs';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-BH4hcZiq.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { S as StyleDefinitions, a as Style, D as DocDefaults } from '../../styles-BOJ93SAm.mjs';
|
|
8
8
|
import '../../colors-C3vA7HUU.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
import { P as ParagraphFormatting, T as TextFormatting } from '../../formatting-_OXU8gLB.js';
|
|
7
|
-
import {
|
|
7
|
+
import { S as StyleDefinitions, a as Style, D as DocDefaults } from '../../styles-BWqX2AS-.js';
|
|
8
8
|
import '../../colors-C3vA7HUU.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { EditorState } from 'prosemirror-state';
|
|
20
20
|
import { TrackedChangeEntry } from '../../utils/comments.mjs';
|
|
21
|
-
import '../../content-
|
|
21
|
+
import '../../content-3xF4WDE8.mjs';
|
|
22
22
|
import '../../formatting-BH4hcZiq.mjs';
|
|
23
23
|
import '../../colors-C3vA7HUU.mjs';
|
|
24
24
|
import '../../docx/wrapTypes.mjs';
|
|
25
|
+
import '../../watermark-DAcnAs_J.mjs';
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* Walk the PM doc once and derive (a) the tracked-change list and (b) a
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { EditorState } from 'prosemirror-state';
|
|
20
20
|
import { TrackedChangeEntry } from '../../utils/comments.js';
|
|
21
|
-
import '../../content-
|
|
21
|
+
import '../../content-C8fc_tL6.js';
|
|
22
22
|
import '../../formatting-_OXU8gLB.js';
|
|
23
23
|
import '../../colors-C3vA7HUU.js';
|
|
24
24
|
import '../../docx/wrapTypes.js';
|
|
25
|
+
import '../../watermark-DAcnAs_J.js';
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* Walk the PM doc once and derive (a) the tracked-change list and (b) a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-DTF0N7UE.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Plugin Registry
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-DDQWU7-j.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Plugin Registry
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Document } from './types/document.mjs';
|
|
2
|
+
import { D as DocumentBody, B as BlockContent, S as SectionProperties } from './content-3xF4WDE8.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Document Serializer - Serialize complete document.xml
|
|
6
|
+
*
|
|
7
|
+
* Converts Document objects back to valid document.xml OOXML format.
|
|
8
|
+
* Combines all content (paragraphs, tables) with section properties
|
|
9
|
+
* and proper namespace declarations.
|
|
10
|
+
*
|
|
11
|
+
* OOXML Reference:
|
|
12
|
+
* - Document root: w:document
|
|
13
|
+
* - Document body: w:body
|
|
14
|
+
* - Section properties: w:sectPr
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Serialize a single block content item (paragraph, table, or block SDT).
|
|
19
|
+
*
|
|
20
|
+
* Exported so the footnote/endnote serializer can reuse the exact same
|
|
21
|
+
* block-level emission the document body uses — preserving tracked-change
|
|
22
|
+
* wrappers (`w:ins`/`w:del`), paragraph/run properties, fields, and tables
|
|
23
|
+
* inside note bodies instead of reimplementing a minimal serializer.
|
|
24
|
+
*/
|
|
25
|
+
declare function serializeBlockContent(block: BlockContent): string;
|
|
26
|
+
/**
|
|
27
|
+
* Serialize a DocumentBody to document.xml body content
|
|
28
|
+
*
|
|
29
|
+
* @param body - The document body to serialize
|
|
30
|
+
* @returns XML string for the body element (without body tags)
|
|
31
|
+
*/
|
|
32
|
+
declare function serializeDocumentBody(body: DocumentBody): string;
|
|
33
|
+
/**
|
|
34
|
+
* Serialize a complete Document to valid document.xml
|
|
35
|
+
*
|
|
36
|
+
* @param doc - The document to serialize
|
|
37
|
+
* @returns Complete XML string for document.xml
|
|
38
|
+
*/
|
|
39
|
+
declare function serializeDocument(doc: Document): string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Section Properties Serializer - Serialize w:sectPr
|
|
43
|
+
*
|
|
44
|
+
* Converts SectionProperties back to OOXML `<w:sectPr>`. Used both for the
|
|
45
|
+
* final `w:body/w:sectPr` (last section) and for mid-body section breaks
|
|
46
|
+
* carried on a paragraph via `w:pPr/w:sectPr`.
|
|
47
|
+
*
|
|
48
|
+
* OOXML Reference:
|
|
49
|
+
* - Section properties: w:sectPr (ECMA-376 §17.6.17)
|
|
50
|
+
* - A paragraph-level sectPr (`w:pPr/w:sectPr`) marks the end of a section;
|
|
51
|
+
* the trailing `w:body/w:sectPr` describes the final section.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Serialize section properties (w:sectPr)
|
|
56
|
+
*/
|
|
57
|
+
declare function serializeSectionProperties(props: SectionProperties | undefined): string;
|
|
58
|
+
|
|
59
|
+
export { serializeDocument as a, serializeSectionProperties as b, serializeBlockContent as c, serializeDocumentBody as s };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Document } from './types/document.js';
|
|
2
|
+
import { D as DocumentBody, B as BlockContent, S as SectionProperties } from './content-C8fc_tL6.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Document Serializer - Serialize complete document.xml
|
|
6
|
+
*
|
|
7
|
+
* Converts Document objects back to valid document.xml OOXML format.
|
|
8
|
+
* Combines all content (paragraphs, tables) with section properties
|
|
9
|
+
* and proper namespace declarations.
|
|
10
|
+
*
|
|
11
|
+
* OOXML Reference:
|
|
12
|
+
* - Document root: w:document
|
|
13
|
+
* - Document body: w:body
|
|
14
|
+
* - Section properties: w:sectPr
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Serialize a single block content item (paragraph, table, or block SDT).
|
|
19
|
+
*
|
|
20
|
+
* Exported so the footnote/endnote serializer can reuse the exact same
|
|
21
|
+
* block-level emission the document body uses — preserving tracked-change
|
|
22
|
+
* wrappers (`w:ins`/`w:del`), paragraph/run properties, fields, and tables
|
|
23
|
+
* inside note bodies instead of reimplementing a minimal serializer.
|
|
24
|
+
*/
|
|
25
|
+
declare function serializeBlockContent(block: BlockContent): string;
|
|
26
|
+
/**
|
|
27
|
+
* Serialize a DocumentBody to document.xml body content
|
|
28
|
+
*
|
|
29
|
+
* @param body - The document body to serialize
|
|
30
|
+
* @returns XML string for the body element (without body tags)
|
|
31
|
+
*/
|
|
32
|
+
declare function serializeDocumentBody(body: DocumentBody): string;
|
|
33
|
+
/**
|
|
34
|
+
* Serialize a complete Document to valid document.xml
|
|
35
|
+
*
|
|
36
|
+
* @param doc - The document to serialize
|
|
37
|
+
* @returns Complete XML string for document.xml
|
|
38
|
+
*/
|
|
39
|
+
declare function serializeDocument(doc: Document): string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Section Properties Serializer - Serialize w:sectPr
|
|
43
|
+
*
|
|
44
|
+
* Converts SectionProperties back to OOXML `<w:sectPr>`. Used both for the
|
|
45
|
+
* final `w:body/w:sectPr` (last section) and for mid-body section breaks
|
|
46
|
+
* carried on a paragraph via `w:pPr/w:sectPr`.
|
|
47
|
+
*
|
|
48
|
+
* OOXML Reference:
|
|
49
|
+
* - Section properties: w:sectPr (ECMA-376 §17.6.17)
|
|
50
|
+
* - A paragraph-level sectPr (`w:pPr/w:sectPr`) marks the end of a section;
|
|
51
|
+
* the trailing `w:body/w:sectPr` describes the final section.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Serialize section properties (w:sectPr)
|
|
56
|
+
*/
|
|
57
|
+
declare function serializeSectionProperties(props: SectionProperties | undefined): string;
|
|
58
|
+
|
|
59
|
+
export { serializeDocument as a, serializeSectionProperties as b, serializeBlockContent as c, serializeDocumentBody as s };
|
|
@@ -230,4 +230,4 @@ interface MediaFile {
|
|
|
230
230
|
dataUrl?: string;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
export type { DocDefaults as D, FontTable as F, MediaFile as M, Relationship as R,
|
|
233
|
+
export type { DocDefaults as D, FontTable as F, MediaFile as M, Relationship as R, StyleDefinitions as S, Theme as T, Style as a, RelationshipMap as b, FontInfo as c, RelationshipType as d, StyleType as e, ThemeColorScheme as f, ThemeFont as g, ThemeFontScheme as h };
|
|
@@ -230,4 +230,4 @@ interface MediaFile {
|
|
|
230
230
|
dataUrl?: string;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
export type { DocDefaults as D, FontTable as F, MediaFile as M, Relationship as R,
|
|
233
|
+
export type { DocDefaults as D, FontTable as F, MediaFile as M, Relationship as R, StyleDefinitions as S, Theme as T, Style as a, RelationshipMap as b, FontInfo as c, RelationshipType as d, StyleType as e, ThemeColorScheme as f, ThemeFont as g, ThemeFontScheme as h };
|
package/dist/types/content.d.mts
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export { B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column,
|
|
15
|
+
export { B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column, e as Comment, f as CommentRangeEnd, g as CommentRangeStart, K as ComplexField, h as Deletion, D as DocumentBody, O as DrawingContent, E as Endnote, Q as EndnotePosition, U as EndnoteProperties, V as Field, W as FieldCharContent, X as FieldType, Y as FooterReference, F as Footnote, Z as FootnotePosition, _ as FootnoteProperties, y as HeaderFooter, $ as HeaderFooterType, a0 as HeaderReference, H as Hyperlink, I as Image, a1 as ImageCrop, a2 as ImagePadding, a3 as ImagePosition, a4 as ImageSize, a5 as ImageTransform, a6 as ImageWrap, a7 as InlineSdt, i as Insertion, a8 as InstrTextContent, aa as LineNumberRestart, ac as MathEquation, M as MoveFrom, ad as MoveFromRangeEnd, ae as MoveFromRangeStart, j as MoveTo, af as MoveToRangeEnd, ag as MoveToRangeStart, ah as NoBreakHyphenContent, ai as NoteNumberRestart, aj as NoteRefMarkContent, ak as NoteReferenceContent, am as PageOrientation, P as Paragraph, l as ParagraphContent, a as ParagraphPropertyChange, an as PropertyChangeInfo, m as Run, n as RunContent, ao as RunPropertyChange, v as SdtDataBinding, u as SdtProperties, t as SdtType, ap as Section, S as SectionProperties, aq as SectionStart, ar as SeparatorContent, as as Shape, at as ShapeContent, au as ShapeFill, av as ShapeOutline, aw as ShapeTextBody, ax as ShapeType, ay as SimpleField, az as SoftHyphenContent, aA as SymbolContent, aB as TabContent, T as Table, o as TableCell, c as TableCellPropertyChange, b as TablePropertyChange, p as TableRow, d as TableRowPropertyChange, aC as TableStructuralChangeInfo, aD as TextBox, q as TextContent, r as TrackedChangeInfo, s as TrackedRunChange, aE as VerticalAlign } from '../content-3xF4WDE8.mjs';
|
|
16
|
+
export { P as PictureWatermark, T as TextWatermark, W as Watermark, p as pictureWatermarkDisplayEmu } from '../watermark-DAcnAs_J.mjs';
|
|
16
17
|
import '../formatting-BH4hcZiq.mjs';
|
|
17
18
|
import '../colors-C3vA7HUU.mjs';
|
|
18
19
|
import '../docx/wrapTypes.mjs';
|
package/dist/types/content.d.ts
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export { B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column,
|
|
15
|
+
export { B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column, e as Comment, f as CommentRangeEnd, g as CommentRangeStart, K as ComplexField, h as Deletion, D as DocumentBody, O as DrawingContent, E as Endnote, Q as EndnotePosition, U as EndnoteProperties, V as Field, W as FieldCharContent, X as FieldType, Y as FooterReference, F as Footnote, Z as FootnotePosition, _ as FootnoteProperties, y as HeaderFooter, $ as HeaderFooterType, a0 as HeaderReference, H as Hyperlink, I as Image, a1 as ImageCrop, a2 as ImagePadding, a3 as ImagePosition, a4 as ImageSize, a5 as ImageTransform, a6 as ImageWrap, a7 as InlineSdt, i as Insertion, a8 as InstrTextContent, aa as LineNumberRestart, ac as MathEquation, M as MoveFrom, ad as MoveFromRangeEnd, ae as MoveFromRangeStart, j as MoveTo, af as MoveToRangeEnd, ag as MoveToRangeStart, ah as NoBreakHyphenContent, ai as NoteNumberRestart, aj as NoteRefMarkContent, ak as NoteReferenceContent, am as PageOrientation, P as Paragraph, l as ParagraphContent, a as ParagraphPropertyChange, an as PropertyChangeInfo, m as Run, n as RunContent, ao as RunPropertyChange, v as SdtDataBinding, u as SdtProperties, t as SdtType, ap as Section, S as SectionProperties, aq as SectionStart, ar as SeparatorContent, as as Shape, at as ShapeContent, au as ShapeFill, av as ShapeOutline, aw as ShapeTextBody, ax as ShapeType, ay as SimpleField, az as SoftHyphenContent, aA as SymbolContent, aB as TabContent, T as Table, o as TableCell, c as TableCellPropertyChange, b as TablePropertyChange, p as TableRow, d as TableRowPropertyChange, aC as TableStructuralChangeInfo, aD as TextBox, q as TextContent, r as TrackedChangeInfo, s as TrackedRunChange, aE as VerticalAlign } from '../content-C8fc_tL6.js';
|
|
16
|
+
export { P as PictureWatermark, T as TextWatermark, W as Watermark, p as pictureWatermarkDisplayEmu } from '../watermark-DAcnAs_J.js';
|
|
16
17
|
import '../formatting-_OXU8gLB.js';
|
|
17
18
|
import '../colors-C3vA7HUU.js';
|
|
18
19
|
import '../docx/wrapTypes.js';
|
package/dist/types/content.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var chunkDKKTY56Q_js=require('../chunk-DKKTY56Q.js');require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"pictureWatermarkDisplayEmu",{enumerable:true,get:function(){return chunkDKKTY56Q_js.a}});
|
package/dist/types/content.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as pictureWatermarkDisplayEmu}from'../chunk-VOCHZNOF.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export { B as BorderSpec, C as ColorValue, S as ShadingProperties, T as ThemeColorSlot } from '../colors-C3vA7HUU.mjs';
|
|
17
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 {
|
|
19
|
-
export { A as AbstractNumbering, B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column,
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
import { D as DocumentBody, k as NumberingDefinitions, F as Footnote, E as Endnote, y as HeaderFooter } from '../content-3xF4WDE8.mjs';
|
|
19
|
+
export { A as AbstractNumbering, B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column, e as Comment, f as CommentRangeEnd, g as CommentRangeStart, K as ComplexField, h as Deletion, O as DrawingContent, Q as EndnotePosition, U as EndnoteProperties, V as Field, W as FieldCharContent, X as FieldType, Y as FooterReference, Z as FootnotePosition, _ as FootnoteProperties, $ as HeaderFooterType, a0 as HeaderReference, H as Hyperlink, I as Image, a1 as ImageCrop, a2 as ImagePadding, a3 as ImagePosition, a4 as ImageSize, a5 as ImageTransform, a6 as ImageWrap, a7 as InlineSdt, i as Insertion, a8 as InstrTextContent, a9 as LevelSuffix, aa as LineNumberRestart, L as ListLevel, ab as ListRendering, ac as MathEquation, M as MoveFrom, ad as MoveFromRangeEnd, ae as MoveFromRangeStart, j as MoveTo, af as MoveToRangeEnd, ag as MoveToRangeStart, ah as NoBreakHyphenContent, ai as NoteNumberRestart, aj as NoteRefMarkContent, ak as NoteReferenceContent, N as NumberFormat, al as NumberingInstance, am as PageOrientation, P as Paragraph, l as ParagraphContent, a as ParagraphPropertyChange, an as PropertyChangeInfo, m as Run, n as RunContent, ao as RunPropertyChange, v as SdtDataBinding, u as SdtProperties, t as SdtType, ap as Section, S as SectionProperties, aq as SectionStart, ar as SeparatorContent, as as Shape, at as ShapeContent, au as ShapeFill, av as ShapeOutline, aw as ShapeTextBody, ax as ShapeType, ay as SimpleField, az as SoftHyphenContent, aA as SymbolContent, aB as TabContent, T as Table, o as TableCell, c as TableCellPropertyChange, b as TablePropertyChange, p as TableRow, d as TableRowPropertyChange, aC as TableStructuralChangeInfo, aD as TextBox, q as TextContent, r as TrackedChangeInfo, s as TrackedRunChange, aE as VerticalAlign } from '../content-3xF4WDE8.mjs';
|
|
20
|
+
export { P as PictureWatermark, T as TextWatermark, W as Watermark, p as pictureWatermarkDisplayEmu } from '../watermark-DAcnAs_J.mjs';
|
|
21
|
+
import { S as StyleDefinitions, T as Theme, F as FontTable, b as RelationshipMap, M as MediaFile } from '../styles-BOJ93SAm.mjs';
|
|
22
|
+
export { D as DocDefaults, c as FontInfo, R as Relationship, d as RelationshipType, a as Style, e as StyleType, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from '../styles-BOJ93SAm.mjs';
|
|
22
23
|
import '../docx/wrapTypes.mjs';
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -70,10 +71,20 @@ interface DocxPackage {
|
|
|
70
71
|
settings?: DocumentSettings;
|
|
71
72
|
/** Font table */
|
|
72
73
|
fontTable?: FontTable;
|
|
73
|
-
/** Footnotes */
|
|
74
|
+
/** Footnotes (normal notes only — separators live in `footnoteSeparators`) */
|
|
74
75
|
footnotes?: Footnote[];
|
|
75
|
-
/** Endnotes */
|
|
76
|
+
/** Endnotes (normal notes only — separators live in `endnoteSeparators`) */
|
|
76
77
|
endnotes?: Endnote[];
|
|
78
|
+
/**
|
|
79
|
+
* Separator footnotes (`w:type="separator"` / `"continuationSeparator"` /
|
|
80
|
+
* `"continuationNotice"`) kept out of `footnotes` so rendering/layout only
|
|
81
|
+
* sees real notes. Retained for round-trip: Word rejects a footnotes part
|
|
82
|
+
* whose separator notes are missing, so the serializer re-emits these ahead
|
|
83
|
+
* of the normal notes.
|
|
84
|
+
*/
|
|
85
|
+
footnoteSeparators?: Footnote[];
|
|
86
|
+
/** Separator endnotes — see `footnoteSeparators`. */
|
|
87
|
+
endnoteSeparators?: Endnote[];
|
|
77
88
|
/** Headers by relationship ID */
|
|
78
89
|
headers?: Map<string, HeaderFooter>;
|
|
79
90
|
/** Footers by relationship ID */
|
package/dist/types/document.d.ts
CHANGED
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export { B as BorderSpec, C as ColorValue, S as ShadingProperties, T as ThemeColorSlot } from '../colors-C3vA7HUU.js';
|
|
17
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 {
|
|
19
|
-
export { A as AbstractNumbering, B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column,
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
import { D as DocumentBody, k as NumberingDefinitions, F as Footnote, E as Endnote, y as HeaderFooter } from '../content-C8fc_tL6.js';
|
|
19
|
+
export { A as AbstractNumbering, B as BlockContent, w as BlockSdt, z as BookmarkEnd, G as BookmarkStart, x as BreakContent, J as Column, e as Comment, f as CommentRangeEnd, g as CommentRangeStart, K as ComplexField, h as Deletion, O as DrawingContent, Q as EndnotePosition, U as EndnoteProperties, V as Field, W as FieldCharContent, X as FieldType, Y as FooterReference, Z as FootnotePosition, _ as FootnoteProperties, $ as HeaderFooterType, a0 as HeaderReference, H as Hyperlink, I as Image, a1 as ImageCrop, a2 as ImagePadding, a3 as ImagePosition, a4 as ImageSize, a5 as ImageTransform, a6 as ImageWrap, a7 as InlineSdt, i as Insertion, a8 as InstrTextContent, a9 as LevelSuffix, aa as LineNumberRestart, L as ListLevel, ab as ListRendering, ac as MathEquation, M as MoveFrom, ad as MoveFromRangeEnd, ae as MoveFromRangeStart, j as MoveTo, af as MoveToRangeEnd, ag as MoveToRangeStart, ah as NoBreakHyphenContent, ai as NoteNumberRestart, aj as NoteRefMarkContent, ak as NoteReferenceContent, N as NumberFormat, al as NumberingInstance, am as PageOrientation, P as Paragraph, l as ParagraphContent, a as ParagraphPropertyChange, an as PropertyChangeInfo, m as Run, n as RunContent, ao as RunPropertyChange, v as SdtDataBinding, u as SdtProperties, t as SdtType, ap as Section, S as SectionProperties, aq as SectionStart, ar as SeparatorContent, as as Shape, at as ShapeContent, au as ShapeFill, av as ShapeOutline, aw as ShapeTextBody, ax as ShapeType, ay as SimpleField, az as SoftHyphenContent, aA as SymbolContent, aB as TabContent, T as Table, o as TableCell, c as TableCellPropertyChange, b as TablePropertyChange, p as TableRow, d as TableRowPropertyChange, aC as TableStructuralChangeInfo, aD as TextBox, q as TextContent, r as TrackedChangeInfo, s as TrackedRunChange, aE as VerticalAlign } from '../content-C8fc_tL6.js';
|
|
20
|
+
export { P as PictureWatermark, T as TextWatermark, W as Watermark, p as pictureWatermarkDisplayEmu } from '../watermark-DAcnAs_J.js';
|
|
21
|
+
import { S as StyleDefinitions, T as Theme, F as FontTable, b as RelationshipMap, M as MediaFile } from '../styles-BWqX2AS-.js';
|
|
22
|
+
export { D as DocDefaults, c as FontInfo, R as Relationship, d as RelationshipType, a as Style, e as StyleType, f as ThemeColorScheme, g as ThemeFont, h as ThemeFontScheme } from '../styles-BWqX2AS-.js';
|
|
22
23
|
import '../docx/wrapTypes.js';
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -70,10 +71,20 @@ interface DocxPackage {
|
|
|
70
71
|
settings?: DocumentSettings;
|
|
71
72
|
/** Font table */
|
|
72
73
|
fontTable?: FontTable;
|
|
73
|
-
/** Footnotes */
|
|
74
|
+
/** Footnotes (normal notes only — separators live in `footnoteSeparators`) */
|
|
74
75
|
footnotes?: Footnote[];
|
|
75
|
-
/** Endnotes */
|
|
76
|
+
/** Endnotes (normal notes only — separators live in `endnoteSeparators`) */
|
|
76
77
|
endnotes?: Endnote[];
|
|
78
|
+
/**
|
|
79
|
+
* Separator footnotes (`w:type="separator"` / `"continuationSeparator"` /
|
|
80
|
+
* `"continuationNotice"`) kept out of `footnotes` so rendering/layout only
|
|
81
|
+
* sees real notes. Retained for round-trip: Word rejects a footnotes part
|
|
82
|
+
* whose separator notes are missing, so the serializer re-emits these ahead
|
|
83
|
+
* of the normal notes.
|
|
84
|
+
*/
|
|
85
|
+
footnoteSeparators?: Footnote[];
|
|
86
|
+
/** Separator endnotes — see `footnoteSeparators`. */
|
|
87
|
+
endnoteSeparators?: Endnote[];
|
|
77
88
|
/** Headers by relationship ID */
|
|
78
89
|
headers?: Map<string, HeaderFooter>;
|
|
79
90
|
/** Footers by relationship ID */
|
package/dist/types/document.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var chunkDKKTY56Q_js=require('../chunk-DKKTY56Q.js');require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"pictureWatermarkDisplayEmu",{enumerable:true,get:function(){return chunkDKKTY56Q_js.a}});
|
package/dist/types/document.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as pictureWatermarkDisplayEmu}from'../chunk-VOCHZNOF.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -308,4 +308,4 @@ interface PluginRegistrationResult {
|
|
|
308
308
|
warnings?: string[];
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
export { type
|
|
311
|
+
export { type CorePlugin as C, type ExtractCommand as E, type JsonSchema as J, type LoadedDocument as L, type McpToolDefinition as M, type PluginOptions as P, type TypedCommandHandler as T, type ZodSchemaLike as Z, type PluginRegistrationResult as a, type CommandHandler as b, type PluginEventListener as c, type CommandResult as d, type McpSession as e, type McpToolAnnotations as f, type McpToolContent as g, type McpToolContext as h, type McpToolHandler as i, type McpToolResult as j, type PluginCommand as k, type PluginEvent as l, isZodSchema as m, type McpToolExample as n };
|