@zeke-02/docx-editor 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +204 -0
- package/dist/FindReplaceDialog-7SQOVQWH.js +1 -0
- package/dist/FindReplaceDialog-RK3A7MSK.mjs +1 -0
- package/dist/{FootnotePropertiesDialog-XQ7NIFIU.js → FootnotePropertiesDialog-2Q2SHVMR.js} +1 -1
- package/dist/{FootnotePropertiesDialog-TNVJJCY6.mjs → FootnotePropertiesDialog-ZKQXW3YO.mjs} +1 -1
- package/dist/{HyperlinkDialog-FR4IZZ7E.mjs → HyperlinkDialog-QV3CVFQU.mjs} +1 -1
- package/dist/HyperlinkDialog-XVAF7FVN.js +1 -0
- package/dist/{ImagePositionDialog-JSZSIKF5.mjs → ImagePositionDialog-EGRH3HPP.mjs} +1 -1
- package/dist/{ImagePositionDialog-2YXRAGZS.js → ImagePositionDialog-HIVHUTBT.js} +1 -1
- package/dist/ImagePropertiesDialog-67WLFIIZ.mjs +1 -0
- package/dist/ImagePropertiesDialog-HSM3JJ22.js +1 -0
- package/dist/KeyboardShortcutsDialog-B0UFuR4w.d.ts +395 -0
- package/dist/KeyboardShortcutsDialog-t6JKL4Aj.d.mts +395 -0
- package/dist/PageSetupDialog-642IAVG2.js +1 -0
- package/dist/PageSetupDialog-ERUQDHAY.mjs +1 -0
- package/dist/PluginHost-HS31VIuo.d.mts +16 -0
- package/dist/PluginHost-zILZO7zX.d.ts +16 -0
- package/dist/{SplitCellDialog-NP3JJYHD.mjs → SplitCellDialog-GFWCFCTD.mjs} +1 -1
- package/dist/{SplitCellDialog-JIAC3RYV.js → SplitCellDialog-M7WF7ANE.js} +1 -1
- package/dist/{TablePropertiesDialog-TIK4AA5M.mjs → TablePropertiesDialog-TZ7VCL6V.mjs} +1 -1
- package/dist/{TablePropertiesDialog-T7D4HSVP.js → TablePropertiesDialog-ZKU2FTUX.js} +1 -1
- package/dist/agentApi-B2Y7kexW.d.ts +486 -0
- package/dist/agentApi-BzUJ_kao.d.mts +486 -0
- package/dist/chunk-2XXILKEQ.js +1 -0
- package/dist/chunk-35DG3R42.js +2 -0
- package/dist/chunk-5UX5CD4C.js +1 -0
- package/dist/chunk-7QQSDIWK.mjs +2 -0
- package/dist/chunk-AW5TISUL.js +3 -0
- package/dist/chunk-B45ECEGY.js +18 -0
- package/dist/chunk-B7CCL7SL.mjs +2 -0
- package/dist/chunk-BRMTZRLJ.js +2 -0
- package/dist/chunk-D47GTKGU.js +2 -0
- package/dist/chunk-F5SERL7X.mjs +2 -0
- package/dist/chunk-FWPVBFKQ.mjs +1 -0
- package/dist/chunk-GGQK26JO.js +2 -0
- package/dist/chunk-GM2S2WMT.mjs +1 -0
- package/dist/chunk-HXDMASAR.js +1 -0
- package/dist/chunk-ILYKDR3C.js +1 -0
- package/dist/chunk-JFRDFK7V.mjs +260 -0
- package/dist/chunk-JPF5R2ZM.mjs +1 -0
- package/dist/chunk-KOXCF3CL.mjs +1 -0
- package/dist/chunk-KRLNX56Y.mjs +2 -0
- package/dist/chunk-LWOHVYKW.mjs +1 -0
- package/dist/chunk-MDTA25AN.mjs +60 -0
- package/dist/chunk-MKNSJOCN.js +70 -0
- package/dist/chunk-NIBCC7WQ.js +1 -0
- package/dist/chunk-NLFXR2VH.js +2 -0
- package/dist/chunk-NOLMVQNN.mjs +40 -0
- package/dist/chunk-ONIYA2FU.mjs +2 -0
- package/dist/chunk-RCIZ7OM3.mjs +70 -0
- package/dist/chunk-SGTUE33R.js +260 -0
- package/dist/{chunk-EHFEG3TX.js → chunk-SNZ57XBI.js} +1 -1
- package/dist/chunk-SOTWG3KJ.mjs +1 -0
- package/dist/chunk-TYPGB4KF.js +1 -0
- package/dist/chunk-U7ZW2DOO.mjs +2 -0
- package/dist/chunk-WO3FIV4B.js +40 -0
- package/dist/{chunk-PKEOQIQO.mjs → chunk-WPI3YRFO.mjs} +1 -1
- package/dist/chunk-XGJ2EORY.mjs +1 -0
- package/dist/chunk-XQZTWWRF.mjs +18 -0
- package/dist/chunk-Y3SEHWZ2.js +1 -0
- package/dist/chunk-YBEVHQCT.js +60 -0
- package/dist/chunk-ZVAFVHWR.mjs +3 -0
- package/dist/chunk-ZXPCJWVY.js +2 -0
- package/dist/{agentApi-DLt94vXk.d.mts → content-REFGFfEH.d.mts} +8 -755
- package/dist/{agentApi-DLt94vXk.d.ts → content-REFGFfEH.d.ts} +8 -755
- package/dist/dialogs.d.mts +25 -0
- package/dist/dialogs.d.ts +25 -0
- package/dist/dialogs.js +1 -0
- package/dist/dialogs.mjs +1 -0
- package/dist/document-Cu2vq_wS.d.mts +294 -0
- package/dist/document-CxOagoLQ.d.ts +294 -0
- package/dist/executor-WBHID2RK.mjs +1 -0
- package/dist/executor-Y5VUOAHY.js +1 -0
- package/dist/findReplace-Bue0JaXh.d.ts +138 -0
- package/dist/findReplace-shXbOjFQ.d.mts +138 -0
- package/dist/fork.d.mts +535 -0
- package/dist/fork.d.ts +535 -0
- package/dist/fork.js +1 -0
- package/dist/fork.mjs +1 -0
- package/dist/hooks.d.mts +598 -0
- package/dist/hooks.d.ts +598 -0
- package/dist/hooks.js +1 -0
- package/dist/hooks.mjs +1 -0
- package/dist/index-B5A-J9GC.d.ts +1119 -0
- package/dist/index-bw-PaozF.d.mts +1119 -0
- package/dist/index.d.mts +12 -591
- package/dist/index.d.ts +12 -591
- package/dist/index.js +1 -120
- package/dist/index.mjs +1 -120
- package/dist/layout-bridge-5GYGYKM5.mjs +1 -0
- package/dist/layout-bridge-QQDA7ELH.js +1 -0
- package/dist/plugin-api.d.mts +165 -0
- package/dist/plugin-api.d.ts +165 -0
- package/dist/plugin-api.js +1 -0
- package/dist/plugin-api.mjs +1 -0
- package/dist/processTemplate-BTBTR7AM.js +1 -0
- package/dist/{processTemplate-W2C5PXZB.mjs → processTemplate-MBX2KDLE.mjs} +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.d.mts +18 -0
- package/dist/styles.d.ts +18 -0
- package/dist/styles.js +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/types-BF48VxkC.d.mts +18 -0
- package/dist/types-BF48VxkC.d.ts +18 -0
- package/dist/types-BnIs4sE7.d.mts +281 -0
- package/dist/types-BnIs4sE7.d.ts +281 -0
- package/dist/types-CW6HFAX6.d.ts +39 -0
- package/dist/types-DIsDCwTG.d.mts +39 -0
- package/dist/ui.d.mts +111 -552
- package/dist/ui.d.ts +111 -552
- package/dist/ui.js +111 -1
- package/dist/ui.mjs +111 -1
- package/dist/useFindReplace-DKy-s3gS.d.ts +261 -0
- package/dist/useFindReplace-vuoKpDKE.d.mts +261 -0
- package/package.json +47 -49
- package/dist/ClipboardManager-CVKX0v9q.d.ts +0 -464
- package/dist/ClipboardManager-V3aaMnWE.d.mts +0 -464
- package/dist/DocumentAgent-BWflKHpH.d.mts +0 -442
- package/dist/DocumentAgent-DsdXtetF.d.ts +0 -442
- package/dist/FindReplaceDialog-L3YF5HIS.mjs +0 -1
- package/dist/FindReplaceDialog-SEBWC5P7.js +0 -1
- package/dist/HyperlinkDialog-WEK6JSAC.js +0 -1
- package/dist/ImagePropertiesDialog-527MFLQO.mjs +0 -1
- package/dist/ImagePropertiesDialog-HG4K3IE7.js +0 -1
- package/dist/PageSetupDialog-GALVJMUB.js +0 -1
- package/dist/PageSetupDialog-TGQIAMI7.mjs +0 -1
- package/dist/TableToolbar-DUgmob2I.d.ts +0 -1273
- package/dist/TableToolbar-YL74HNS1.d.mts +0 -1273
- package/dist/chunk-23SXXIZS.js +0 -111
- package/dist/chunk-3F52AP2Q.js +0 -1
- package/dist/chunk-42O5GXM5.mjs +0 -82
- package/dist/chunk-54ULJEHM.mjs +0 -1
- package/dist/chunk-5XK326FI.mjs +0 -1
- package/dist/chunk-6WPRCJ5A.mjs +0 -1
- package/dist/chunk-76IYR7C7.mjs +0 -1
- package/dist/chunk-AGRIVA4G.js +0 -1
- package/dist/chunk-BTCQ2QI3.mjs +0 -3
- package/dist/chunk-BUEMG4NW.js +0 -1
- package/dist/chunk-BXRC4U3X.mjs +0 -2
- package/dist/chunk-CPAYKE6X.mjs +0 -1
- package/dist/chunk-DACWLFKI.mjs +0 -1
- package/dist/chunk-EPBFWE36.js +0 -2
- package/dist/chunk-FXES3YDB.js +0 -82
- package/dist/chunk-HI66BSGS.mjs +0 -9
- package/dist/chunk-INTPVEO6.mjs +0 -9
- package/dist/chunk-IOAGVW6Q.mjs +0 -2
- package/dist/chunk-JCEWC5QL.mjs +0 -4
- package/dist/chunk-JTIUFACT.js +0 -1
- package/dist/chunk-LUF7PWIC.js +0 -10
- package/dist/chunk-MGEN6GOE.mjs +0 -2
- package/dist/chunk-MOE2ZGUE.js +0 -18
- package/dist/chunk-MWLHJWB6.js +0 -9
- package/dist/chunk-OFYVDN3U.mjs +0 -2
- package/dist/chunk-P4VSHBGZ.js +0 -2
- package/dist/chunk-P5FQHIES.mjs +0 -1
- package/dist/chunk-PBC7XAYZ.js +0 -3
- package/dist/chunk-PEMB6SZT.js +0 -2
- package/dist/chunk-PQMSZTBB.js +0 -9
- package/dist/chunk-Q7UDQXAF.js +0 -1
- package/dist/chunk-QGTAIC5E.js +0 -1
- package/dist/chunk-QVPR2W5S.js +0 -1
- package/dist/chunk-R3QMYPL5.mjs +0 -59
- package/dist/chunk-RBUTXXQJ.mjs +0 -18
- package/dist/chunk-RRWYZ2TS.mjs +0 -111
- package/dist/chunk-S3STEPVO.js +0 -182
- package/dist/chunk-SFUM35DH.js +0 -2
- package/dist/chunk-SNLC6EK2.js +0 -1
- package/dist/chunk-TMTLIGLZ.js +0 -59
- package/dist/chunk-TSE2PWFX.mjs +0 -10
- package/dist/chunk-UKESXQS5.mjs +0 -182
- package/dist/chunk-UWYD42WV.js +0 -4
- package/dist/chunk-UXVACQCY.mjs +0 -1
- package/dist/chunk-W4EIKDM6.mjs +0 -2
- package/dist/chunk-W53SI3XW.mjs +0 -1
- package/dist/chunk-WNS2RBQD.js +0 -2
- package/dist/chunk-Z3KMSHUP.js +0 -1
- package/dist/core-plugins-reexport.d.mts +0 -31
- package/dist/core-plugins-reexport.d.ts +0 -31
- package/dist/core-plugins-reexport.js +0 -1
- package/dist/core-plugins-reexport.mjs +0 -1
- package/dist/core-reexport.d.mts +0 -340
- package/dist/core-reexport.d.ts +0 -340
- package/dist/core-reexport.js +0 -1
- package/dist/core-reexport.mjs +0 -1
- package/dist/documentSerializer-DtS_-oGA.d.mts +0 -664
- package/dist/documentSerializer-Wj1p2ASa.d.ts +0 -664
- package/dist/executor-C3VXF7QA.mjs +0 -1
- package/dist/executor-GDBV3AGV.js +0 -1
- package/dist/headless-reexport.d.mts +0 -197
- package/dist/headless-reexport.d.ts +0 -197
- package/dist/headless-reexport.js +0 -1
- package/dist/headless-reexport.mjs +0 -1
- package/dist/insertOperations-BTH1Asas.d.mts +0 -176
- package/dist/insertOperations-CbUnXAXH.d.ts +0 -176
- package/dist/layout-bridge-EA4DJ227.js +0 -1
- package/dist/layout-bridge-XDPSO6GO.mjs +0 -1
- package/dist/mcp-reexport.d.mts +0 -156
- package/dist/mcp-reexport.d.ts +0 -156
- package/dist/mcp-reexport.js +0 -16
- package/dist/mcp-reexport.mjs +0 -16
- package/dist/processTemplate-MJ2PCSO5.js +0 -1
- package/dist/react-B0W16SV6.d.ts +0 -1330
- package/dist/react-D0Pn1nww.d.mts +0 -1330
- package/dist/react.d.mts +0 -10
- package/dist/react.d.ts +0 -10
- package/dist/react.js +0 -1
- package/dist/react.mjs +0 -1
- package/dist/registry-CH9V-IX0.d.ts +0 -165
- package/dist/registry-CWBKYlNW.d.mts +0 -165
- package/dist/types-UDsUq8D3.d.mts +0 -310
- package/dist/types-jbivc9Lj.d.ts +0 -310
- package/dist/variableDetector-CdQ7ZTzA.d.mts +0 -204
- package/dist/variableDetector-DsRV3A9z.d.ts +0 -204
- package/i18n/de.json +0 -792
- package/i18n/en.json +0 -792
- package/i18n/he.json +0 -792
- package/i18n/pl.json +0 -792
- package/i18n/pt-BR.json +0 -792
- package/i18n/tr.json +0 -792
- package/i18n/zh-CN.json +0 -792
- /package/dist/{chunk-YC5KZSYD.js → chunk-ESZ6JRTW.js} +0 -0
- /package/dist/{chunk-LVGJKS7Y.mjs → chunk-TZMMD6RR.mjs} +0 -0
- /package/dist/{react.css → fork.css} +0 -0
package/dist/chunk-UWYD42WV.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
'use strict';function u(e){let t=[];for(let n of e.content)n.type==="run"?t.push(p(n)):n.type==="hyperlink"&&t.push(l(n));return t.join("")}function p(e){return e.content.filter(t=>t.type==="text").map(t=>t.text).join("")}function l(e){let t=[];for(let n of e.children)n.type==="run"&&t.push(p(n));return t.join("")}function h(e){let t=[];for(let n of e.rows)for(let r of n.cells)for(let o of r.content)o.type==="paragraph"&&t.push(u(o));return t.join(" ")}function m(e){let t=[];for(let n of e.content)n.type==="paragraph"?t.push(u(n)):n.type==="table"&&t.push(h(n));return t.join(`
|
|
2
|
-
`)}function g(e){return e.split(/\s+/).filter(n=>n.length>0).length}function b(e,t=true){return t?e.length:e.replace(/\s/g,"").length}function k(e){let t=0;for(let n of e.content)n.type==="paragraph"?t+=g(u(n)):n.type==="table"&&(t+=x(n));return t}function x(e){let t=0;for(let n of e.rows)for(let r of n.cells)for(let o of r.content)o.type==="paragraph"&&(t+=g(u(o)));return t}function P(e){let t=0;for(let n of e.content)n.type==="paragraph"?t+=u(n).length:n.type==="table"&&(t+=y(n));return t}function y(e){let t=0;for(let n of e.rows)for(let r of n.cells)for(let o of r.content)o.type==="paragraph"&&(t+=u(o).length);return t}function T(e,t,n){let r=[],o=0,c=e[t.paragraphIndex];if(c){let a=u(c).slice(0,t.offset);r.unshift(a),o+=a.length;}for(let f=t.paragraphIndex-1;f>=0&&o<n;f--){let a=e[f];if(!a)continue;let s=u(a);r.unshift(s),o+=s.length;}let i=r.join(`
|
|
3
|
-
`);return i.length>n?"..."+i.slice(-n):i}function B(e,t,n){let r=[],o=0,c=e[t.paragraphIndex];if(c){let a=u(c).slice(t.offset);r.push(a),o+=a.length;}for(let f=t.paragraphIndex+1;f<e.length&&o<n;f++){let a=e[f];if(!a)continue;let s=u(a);r.push(s),o+=s.length;}let i=r.join(`
|
|
4
|
-
`);return i.length>n?i.slice(0,n)+"...":i}function w(e,t){let n=0;for(let r of e.content)if(r.type==="run"){let o=p(r),c=n+o.length;if(t>=n&&t<c)return r.formatting||{};n=c;}else if(r.type==="hyperlink"){let o=l(r),c=n+o.length;if(t>=n&&t<c){for(let i of r.children)if(i.type==="run")return i.formatting||{}}n=c;}return {}}function D(e,t){let n=0;for(let r of e.content)if(r.type==="run"){let o=p(r);n+=o.length;}else if(r.type==="hyperlink"){let o=l(r),c=n,i=n+o.length;if(t>=c&&t<i)return true;n=i;}return false}function H(e,t){let n=0;for(let r of e.content)if(r.type==="run"){let o=p(r);n+=o.length;}else if(r.type==="hyperlink"){let o=l(r),c=n,i=n+o.length;if(t>=c&&t<i)return r;n=i;}}function I(e){return e?e.toLowerCase().includes("heading"):false}function j(e){if(!e)return;let t=e.match(/heading\s*(\d)/i);if(t)return parseInt(t[1],10)}function C(e){for(let t of e.content)if(t.type==="paragraph"){for(let n of t.content)if(n.type==="run"){for(let r of n.content)if(r.type==="drawing")return true}}return false}function A(e){for(let t of e.content)if(t.type==="paragraph"){for(let n of t.content)if(n.type==="hyperlink")return true}return false}function E(e){return e.content.some(t=>t.type==="table")}function d(e){return e.content.filter(t=>t.type==="paragraph")}function F(e,t){return d(e)[t]}function O(e,t){let n=0;for(let r=0;r<e.content.length;r++)if(e.content[r].type==="paragraph"){if(n===t)return r;n++;}return -1}exports.a=u;exports.b=p;exports.c=l;exports.d=h;exports.e=m;exports.f=g;exports.g=b;exports.h=k;exports.i=P;exports.j=T;exports.k=B;exports.l=w;exports.m=D;exports.n=H;exports.o=I;exports.p=j;exports.q=C;exports.r=A;exports.s=E;exports.t=d;exports.u=F;exports.v=O;
|
package/dist/chunk-UXVACQCY.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function i(){return [{styleId:"Normal",type:"paragraph",name:"Normal",default:true,qFormat:true,uiPriority:0,rPr:{fontSize:22,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{lineSpacing:276}},{styleId:"Title",type:"paragraph",name:"Title",basedOn:"Normal",next:"Normal",qFormat:true,uiPriority:10,rPr:{fontSize:52,bold:true,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{lineSpacing:240}},{styleId:"Subtitle",type:"paragraph",name:"Subtitle",basedOn:"Normal",next:"Normal",qFormat:true,uiPriority:11,rPr:{fontSize:30,color:{rgb:"666666"},fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{lineSpacing:240}},{styleId:"Heading1",type:"paragraph",name:"Heading 1",basedOn:"Normal",next:"Normal",qFormat:true,uiPriority:9,rPr:{fontSize:40,bold:true,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{spaceBefore:400,spaceAfter:120,lineSpacing:240}},{styleId:"Heading2",type:"paragraph",name:"Heading 2",basedOn:"Normal",next:"Normal",qFormat:true,uiPriority:9,rPr:{fontSize:32,bold:true,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{spaceBefore:360,spaceAfter:80,lineSpacing:240}},{styleId:"Heading3",type:"paragraph",name:"Heading 3",basedOn:"Normal",next:"Normal",qFormat:true,uiPriority:9,rPr:{fontSize:28,bold:true,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{spaceBefore:320,spaceAfter:80,lineSpacing:240}},{styleId:"Heading4",type:"paragraph",name:"Heading 4",basedOn:"Normal",next:"Normal",qFormat:true,uiPriority:9,rPr:{fontSize:24,bold:true,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{spaceBefore:280,spaceAfter:80,lineSpacing:240}}]}function r(){return {pageWidth:12240,pageHeight:15840,orientation:"portrait",marginTop:1440,marginBottom:1440,marginLeft:1440,marginRight:1440,headerDistance:720,footerDistance:720,gutter:0,columnCount:1,columnSpace:720,equalWidth:true,sectionStart:"nextPage",verticalAlign:"top"}}function n(e={}){let t=r();e.pageWidth!==void 0&&(t.pageWidth=Math.round(e.pageWidth)),e.pageHeight!==void 0&&(t.pageHeight=Math.round(e.pageHeight)),e.orientation!==void 0&&(t.orientation=e.orientation),e.marginTop!==void 0&&(t.marginTop=Math.round(e.marginTop)),e.marginBottom!==void 0&&(t.marginBottom=Math.round(e.marginBottom)),e.marginLeft!==void 0&&(t.marginLeft=Math.round(e.marginLeft)),e.marginRight!==void 0&&(t.marginRight=Math.round(e.marginRight));let a={type:"text",text:e.initialText||""};return {package:{document:{content:[{type:"paragraph",content:[{type:"run",content:e.initialText?[a]:[],formatting:{fontSize:22,fontFamily:{ascii:"Arial",hAnsi:"Arial"}}}],formatting:{lineSpacing:276}}],finalSectionProperties:t},styles:{docDefaults:{rPr:{fontSize:22,fontFamily:{ascii:"Arial",hAnsi:"Arial"}},pPr:{lineSpacing:276}},styles:i()}},templateVariables:[],warnings:[]}}function p(e,t={}){return n({...t,initialText:e})}export{n as a,p as b};
|
package/dist/chunk-W4EIKDM6.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {c}from'./chunk-MGEN6GOE.mjs';import {useState,useCallback,useRef,useEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';function _(){return {matchCase:false,matchWholeWord:false,useRegex:false}}function q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e,n){if(!e)return null;try{let t;n.useRegex?t=e:t=q(e),n.matchWholeWord&&(t=`\\b${t}\\b`);let i=n.matchCase?"g":"gi";return new RegExp(t,i)}catch{return null}}function D(e,n,t){if(!e||!n)return [];let i=[],c=n;t.matchCase||(c=n.toLowerCase());let x=E=>E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d;t.matchWholeWord?d=`\\b${x(c)}\\b`:d=x(c);let l=t.matchCase?"g":"gi",u=new RegExp(d,l),g;for(;(g=u.exec(e))!==null;)i.push({start:g.index,end:g.index+g[0].length}),g[0].length===0&&u.lastIndex++;return i}function Se(e,n,t,i){let c=J(n,i);return c?e.replace(c,t):e}function ye(e,n,t,i,c=0){let x=D(e,n,i),d=x.find(u=>u.start>=c)||x[0];return d?{content:e.substring(0,d.start)+t+e.substring(d.end),replaced:true,matchStart:d.start,matchEnd:d.start+t.length}:{content:e,replaced:false,matchStart:-1,matchEnd:-1}}function Ce(e){return e?e.totalCount===0?"No results":e.totalCount===1?"1 match":`${e.currentIndex+1} of ${e.totalCount} matches`:""}function Re(e){return !e||e.trim()===""}function Te(){return {currentMatchColor:"#FFFF00",otherMatchColor:"#FFFFAA"}}function k(e){if(!e||!e.content)return "";let n="";for(let t of e.content)t.type==="text"?n+=t.text||"":t.type==="tab"?n+=" ":t.type==="break"&&t.breakType==="textWrapping"&&(n+=`
|
|
2
|
-
`);return n}function Fe(e){if(!e||!e.content)return "";let n="";for(let t of e.content)if(t.type==="run")n+=k(t);else if(t.type==="hyperlink")for(let i of t.children||[])i.type==="run"&&(n+=k(i));return n}function Ie(e,n,t){if(!e||!n)return [];let i=[],c=e.package?.document||e.package?.document;if(!c||!c.content)return i;let x=0;for(let d of c.content)if(d.type==="paragraph"){let l=Q(d,n,t,x);i.push(...l),x++;}else if(d.type==="table")for(let l of d.rows||[])for(let u of l.cells||[])for(let g of u.content||[])g.type;return i}function Q(e,n,t,i){let c=[],x=Fe(e);if(!x)return c;let d=D(x,n,t);for(let l of d){let u=ve(e,l.start);c.push({paragraphIndex:i,contentIndex:u.contentIndex,startOffset:u.offsetInContent,endOffset:u.offsetInContent+(l.end-l.start),text:x.substring(l.start,l.end)});}return c}function ve(e,n){if(!e||!e.content)return {contentIndex:0,runIndex:0,offsetInContent:n};let t=0,i=0;for(let c of e.content){let x="";if(c.type==="run")x=k(c);else if(c.type==="hyperlink")for(let l of c.children||[])l.type==="run"&&(x+=k(l));let d=x.length;if(t+d>n)return {contentIndex:i,runIndex:i,offsetInContent:n-t};t+=d,i++;}return {contentIndex:Math.max(0,e.content.length-1),runIndex:Math.max(0,e.content.length-1),offsetInContent:0}}function Ee(e,n){if(!e||!n)return;let t=e.querySelector(`[data-paragraph-index="${n.paragraphIndex}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"center"});}function Oe(e){let[n,t]=useState({isOpen:false,searchText:"",replaceText:"",options:_(),matches:[],currentIndex:0,replaceMode:e?.initialReplaceMode??false}),i=useCallback(r=>{t(o=>({...o,isOpen:true,replaceMode:false,searchText:r||o.searchText,matches:[],currentIndex:0}));},[]),c=useCallback(r=>{t(o=>({...o,isOpen:true,replaceMode:true,searchText:r||o.searchText,matches:[],currentIndex:0}));},[]),x=useCallback(()=>{t(r=>({...r,isOpen:false}));},[]),d=useCallback(()=>{t(r=>({...r,isOpen:!r.isOpen}));},[]),l=useCallback(r=>{t(o=>({...o,searchText:r}));},[]),u=useCallback(r=>{t(o=>({...o,replaceText:r}));},[]),g=useCallback(r=>{t(o=>({...o,options:{...o.options,...r}}));},[]),E=useCallback((r,o=0)=>{let M=Math.max(0,Math.min(o,r.length-1));t(L=>({...L,matches:r,currentIndex:r.length>0?M:0})),e?.onMatchesChange?.(r),r.length>0?e?.onCurrentMatchChange?.(r[M],M):e?.onCurrentMatchChange?.(null,-1);},[e]),O=useCallback(()=>{let r=0;return t(o=>o.matches.length===0?o:(r=(o.currentIndex+1)%o.matches.length,{...o,currentIndex:r})),r},[]),P=useCallback(()=>{let r=0;return t(o=>o.matches.length===0?o:(r=o.currentIndex===0?o.matches.length-1:o.currentIndex-1,{...o,currentIndex:r})),r},[]),N=useCallback(r=>{t(o=>o.matches.length===0||r<0||r>=o.matches.length?o:{...o,currentIndex:r});},[]),p=useCallback(()=>n.matches.length===0?null:n.matches[n.currentIndex]||null,[n.matches,n.currentIndex]),h=useCallback(()=>n.matches.length>0,[n.matches.length]);return {state:n,openFind:i,openReplace:c,close:x,toggle:d,setSearchText:l,setReplaceText:u,setOptions:g,setMatches:E,goToNextMatch:O,goToPreviousMatch:P,goToMatch:N,getCurrentMatch:p,hasMatches:h}}var Le={position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",alignItems:"flex-start",justifyContent:"flex-end",zIndex:1e4,pointerEvents:"none"},ke={backgroundColor:"white",borderRadius:"4px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)",minWidth:"360px",maxWidth:"440px",width:"100%",margin:"60px 20px 20px 20px",pointerEvents:"auto"},Pe={display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 16px",borderBottom:"1px solid var(--doc-border)",backgroundColor:"var(--doc-bg-subtle)",borderTopLeftRadius:"4px",borderTopRightRadius:"4px"},Ne={margin:0,fontSize:"14px",fontWeight:600,color:"var(--doc-text)"},we={background:"none",border:"none",fontSize:"18px",cursor:"pointer",color:"var(--doc-text-muted)",padding:"2px 6px",lineHeight:1},_e={padding:"16px"},ee={display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px"},te={width:"60px",fontSize:"13px",color:"var(--doc-text)",flexShrink:0},W={flex:1,padding:"8px 10px",border:"1px solid var(--doc-border-input)",borderRadius:"3px",fontSize:"13px",boxSizing:"border-box",outline:"none"},ne={...W,borderColor:"var(--doc-link)",boxShadow:"0 0 0 2px rgba(5, 99, 193, 0.1)"},De={display:"flex",flexDirection:"column",gap:"6px",marginLeft:"8px"},Y={padding:"6px 12px",borderRadius:"3px",fontSize:"12px",fontWeight:500,cursor:"pointer",border:"1px solid var(--doc-border-input)",backgroundColor:"var(--doc-bg-input)",color:"var(--doc-text)",minWidth:"80px",textAlign:"center"},oe={...Y,backgroundColor:"var(--doc-bg-hover)",color:"var(--doc-text-placeholder)",cursor:"not-allowed"},U={padding:"6px 10px",borderRadius:"3px",fontSize:"14px",cursor:"pointer",border:"1px solid var(--doc-border-input)",backgroundColor:"var(--doc-bg-input)",color:"var(--doc-text)"},re={...U,color:"var(--doc-border-input)",cursor:"not-allowed"},Ae={display:"flex",gap:"16px",marginTop:"4px",marginLeft:"68px"},B={display:"flex",alignItems:"center",gap:"6px",fontSize:"12px",color:"var(--doc-text-muted)",cursor:"pointer"},ae={width:"14px",height:"14px",cursor:"pointer"},ie={marginLeft:"68px",fontSize:"12px",color:"var(--doc-text-muted)",marginBottom:"8px"},Be={...ie,color:"var(--doc-error)"},We=({style:e})=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:e,children:jsx("polyline",{points:"18 15 12 9 6 15"})}),Ye=({style:e})=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:e,children:jsx("polyline",{points:"6 9 12 15 18 9"})});function Ue({isOpen:e,onClose:n,onFind:t,onFindNext:i,onFindPrevious:c$1,onReplace:x,onReplaceAll:d,onHighlightMatches:l,onClearHighlights:u,initialSearchText:g="",replaceMode:E=false,currentResult:O,className:P,style:N}){let{t:p}=c(),[h,r]=useState(""),[o,M]=useState(""),[L,K]=useState(E),[R,ce]=useState(false),[T,le]=useState(false),[s,F]=useState(null),[se,z]=useState(false),[de,$]=useState(false),w=useRef(null),G=useRef(null);useEffect(()=>{O!==void 0&&F(O);},[O]),useEffect(()=>{if(e){if(r(g),M(""),K(E),F(null),setTimeout(()=>{w.current?.focus(),w.current?.select();},100),g){let a=t(g,{matchCase:R,matchWholeWord:T});F(a),a?.matches&&l&&l(a.matches);}}else u&&u();},[e,g,E]);let S=useCallback(()=>{if(!h.trim()){F(null),u&&u();return}let a=t(h,{matchCase:R,matchWholeWord:T});F(a),a?.matches&&l?l(a.matches):u&&u();},[h,R,T,t,l,u]);useEffect(()=>{e&&h.trim()&&S();},[R,T]);let pe=useCallback(a=>{r(a.target.value);},[]),ue=useCallback(a=>{a.key==="Enter"?(a.preventDefault(),a.shiftKey?j():s?V():S()):a.key==="Escape"&&n();},[s,S,n]),fe=useCallback(a=>{a.key==="Enter"?(a.preventDefault(),H()):a.key==="Escape"&&n();},[n]),V=useCallback(()=>{if(!h.trim()){S();return}if(!s){S();return}if(i()&&s){let y=(s.currentIndex+1)%s.totalCount;F({...s,currentIndex:y});}},[h,s,S,i]),j=useCallback(()=>{if(!h.trim()){S();return}if(!s){S();return}if(c$1()&&s){let y=s.currentIndex===0?s.totalCount-1:s.currentIndex-1;F({...s,currentIndex:y});}},[h,s,S,c$1]),H=useCallback(()=>{if(!s||s.totalCount===0)return;if(x(o)){let y=t(h,{matchCase:R,matchWholeWord:T});F(y),y?.matches&&l&&l(y.matches);}},[s,o,h,R,T,x,t,l]),xe=useCallback(()=>{if(!h.trim())return;d(h,o,{matchCase:R,matchWholeWord:T})>0&&(F({matches:[],totalCount:0,currentIndex:-1}),u&&u());},[h,o,R,T,d,u]),he=useCallback(()=>{K(a=>{let y=!a;return y&&setTimeout(()=>G.current?.focus(),100),y});},[]),ge=useCallback(a=>{a.target,a.currentTarget;},[]),me=useCallback(a=>{a.key==="Escape"&&n();},[n]);if(!e)return null;let I=s&&s.totalCount>0,be=s&&s.totalCount===0&&h.trim();return jsx("div",{className:`docx-find-replace-dialog-overlay ${P||""}`,style:{...Le,...N},onClick:ge,onKeyDown:me,children:jsxs("div",{className:"docx-find-replace-dialog","data-testid":"find-replace-dialog",style:ke,role:"dialog","aria-modal":"false","aria-labelledby":"find-replace-dialog-title",children:[jsxs("div",{className:"docx-find-replace-dialog-header",style:Pe,children:[jsx("h2",{id:"find-replace-dialog-title",style:Ne,children:p(L?"dialogs.findReplace.titleFindReplace":"dialogs.findReplace.titleFind")}),jsx("button",{type:"button",className:"docx-find-replace-dialog-close",style:we,onClick:n,"aria-label":p("common.closeDialog"),children:"\xD7"})]}),jsxs("div",{className:"docx-find-replace-dialog-body",style:_e,children:[jsxs("div",{className:"docx-find-replace-dialog-row",style:ee,children:[jsx("label",{htmlFor:"find-text",style:te,children:p("dialogs.findReplace.findLabel")}),jsx("input",{ref:w,id:"find-text",type:"text",className:"docx-find-replace-dialog-input",style:se?ne:W,value:h,onChange:pe,onKeyDown:ue,onFocus:()=>z(true),onBlur:()=>{z(false),h.trim()&&!s&&S();},placeholder:p("dialogs.findReplace.findPlaceholder"),"aria-label":p("dialogs.findReplace.findAriaLabel")}),jsxs("div",{style:{display:"flex",gap:"4px"},children:[jsx("button",{type:"button",className:"docx-find-replace-dialog-nav",style:I?U:re,onClick:j,disabled:!I,"aria-label":p("dialogs.findReplace.findPrevious"),title:p("dialogs.findReplace.findPreviousTitle"),children:jsx(We,{})}),jsx("button",{type:"button",className:"docx-find-replace-dialog-nav",style:I?U:re,onClick:V,disabled:!I,"aria-label":p("dialogs.findReplace.findNext"),title:p("dialogs.findReplace.findNextTitle"),children:jsx(Ye,{})})]})]}),I&&jsx("div",{className:"docx-find-replace-dialog-status",style:ie,children:p("dialogs.findReplace.matchCount",{current:s.currentIndex+1,total:s.totalCount})}),be&&jsx("div",{className:"docx-find-replace-dialog-status",style:Be,children:p("dialogs.findReplace.noResults")}),L&&jsx(Fragment,{children:jsxs("div",{className:"docx-find-replace-dialog-row",style:ee,children:[jsx("label",{htmlFor:"replace-text",style:te,children:p("dialogs.findReplace.replaceLabel")}),jsx("input",{ref:G,id:"replace-text",type:"text",className:"docx-find-replace-dialog-input",style:de?ne:W,value:o,onChange:a=>M(a.target.value),onKeyDown:fe,onFocus:()=>$(true),onBlur:()=>$(false),placeholder:p("dialogs.findReplace.replacePlaceholder"),"aria-label":p("dialogs.findReplace.replaceAriaLabel")}),jsxs("div",{style:De,children:[jsx("button",{type:"button",className:"docx-find-replace-dialog-button",style:I?Y:oe,onClick:H,disabled:!I,title:p("dialogs.findReplace.replaceCurrentTitle"),children:p("dialogs.findReplace.replaceButton")}),jsx("button",{type:"button",className:"docx-find-replace-dialog-button",style:I?Y:oe,onClick:xe,disabled:!I,title:p("dialogs.findReplace.replaceAllTitle"),children:p("dialogs.findReplace.replaceAllButton")})]})]})}),jsxs("div",{className:"docx-find-replace-dialog-options",style:Ae,children:[jsxs("label",{className:"docx-find-replace-dialog-option",style:B,children:[jsx("input",{type:"checkbox",style:ae,checked:R,onChange:a=>ce(a.target.checked)}),p("dialogs.findReplace.matchCase")]}),jsxs("label",{className:"docx-find-replace-dialog-option",style:B,children:[jsx("input",{type:"checkbox",style:ae,checked:T,onChange:a=>le(a.target.checked)}),p("dialogs.findReplace.wholeWords")]}),!L&&jsx("button",{type:"button",style:{...B,background:"none",border:"none",cursor:"pointer",color:"var(--doc-link)",padding:0},onClick:he,children:p("dialogs.findReplace.toggleReplace")})]})]})]})})}var qe=Ue;export{_ as a,q as b,J as c,D as d,Se as e,ye as f,Ce as g,Re as h,Te as i,Ie as j,Q as k,Ee as l,Oe as m,Ue as n,qe as o};
|
package/dist/chunk-W53SI3XW.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d}from'./chunk-TAUMSKRE.mjs';var a=class{constructor(){d(this,"plugins",new Map);d(this,"commandHandlers",new Map);d(this,"eventListeners",new Set);d(this,"initialized",new Set);}register(e,r){let t=[];if(!e.id)return {success:false,error:"Plugin must have an id"};if(this.plugins.has(e.id))return {success:false,error:`Plugin '${e.id}' is already registered`};if(e.dependencies){for(let i of e.dependencies)if(!this.plugins.has(i))return {success:false,error:`Plugin '${e.id}' requires '${i}' which is not registered`}}if(e.commandHandlers)for(let[i,o]of Object.entries(e.commandHandlers)){if(this.commandHandlers.has(i)){let d=this.commandHandlers.get(i);t.push(`Command '${i}' from '${e.id}' overrides handler from '${d.pluginId}'`);}this.commandHandlers.set(i,{pluginId:e.id,handler:o});}if(this.plugins.set(e.id,e),e.initialize&&!this.initialized.has(e.id))try{let i=e.initialize();i instanceof Promise?i.then(()=>{this.initialized.add(e.id);}).catch(o=>{this.emit({type:"error",pluginId:e.id,error:o});}):this.initialized.add(e.id);}catch(i){this.emit({type:"error",pluginId:e.id,error:i});}return r?.debug&&console.log(`[PluginRegistry] Registered plugin: ${e.id}`),this.emit({type:"registered",plugin:e}),{success:true,plugin:e,warnings:t.length>0?t:void 0}}unregister(e){let r=this.plugins.get(e);if(!r)return false;for(let[t,i]of this.plugins)if(i.dependencies?.includes(e))return console.warn(`Cannot unregister '${e}': '${t}' depends on it`),false;for(let[t,{pluginId:i}]of this.commandHandlers)i===e&&this.commandHandlers.delete(t);if(r.destroy)try{let t=r.destroy();t instanceof Promise&&t.catch(i=>{this.emit({type:"error",pluginId:e,error:i});});}catch(t){this.emit({type:"error",pluginId:e,error:t});}return this.plugins.delete(e),this.initialized.delete(e),this.emit({type:"unregistered",pluginId:e}),true}get(e){return this.plugins.get(e)}getAll(){return Array.from(this.plugins.values())}has(e){return this.plugins.has(e)}get size(){return this.plugins.size}getCommandHandler(e){return this.commandHandlers.get(e)?.handler}getCommandTypes(){return Array.from(this.commandHandlers.keys())}hasCommandHandler(e){return this.commandHandlers.has(e)}getMcpTools(){let e=[];for(let r of this.plugins.values())r.mcpTools&&e.push(...r.mcpTools);return e}getMcpToolsForPlugin(e){return this.plugins.get(e)?.mcpTools||[]}getMcpTool(e){for(let r of this.plugins.values())if(r.mcpTools){let t=r.mcpTools.find(i=>i.name===e);if(t)return t}}addEventListener(e){this.eventListeners.add(e);}removeEventListener(e){this.eventListeners.delete(e);}emit(e){for(let r of this.eventListeners)try{r(e);}catch(t){console.error("[PluginRegistry] Event listener error:",t);}}clear(){for(let e of this.plugins.values())if(e.destroy)try{e.destroy();}catch{}this.plugins.clear(),this.commandHandlers.clear(),this.initialized.clear();}getDebugInfo(){return {plugins:Array.from(this.plugins.keys()),commandTypes:Array.from(this.commandHandlers.keys()),mcpTools:this.getMcpTools().map(e=>e.name),initialized:Array.from(this.initialized)}}},l=new a;function c(s,e){return s.map(r=>l.register(r,e))}function g(s){return e=>l.register(e,s)}export{a,l as b,c,g as d};
|
package/dist/chunk-WNS2RBQD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var g={_lang:"en",common:{cancel:"Cancel",insert:"Insert",apply:"Apply",close:"Close",delete:"Delete",update:"Update",save:"Save",retry:"Retry",send:"Send",edit:"Edit",comment:"Comment",reply:"Reply",accept:"Accept",reject:"Reject",dismiss:"Dismiss",change:"Change",px:"px",closeDialog:"Close dialog"},toolbar:{ariaLabel:"Formatting toolbar",file:"File",format:"Format",insert:"Insert",open:"Open",openShortcut:"Ctrl+O",save:"Save",saveShortcut:"Ctrl+S",print:"Print",printShortcut:"Ctrl+P",pageSetup:"Page setup",leftToRight:"Left-to-right text",rightToLeft:"Right-to-left text",image:"Image",table:"Table",pageBreak:"Page break",tableOfContents:"Table of contents",symbol:"Symbol",help:"Help",reportIssue:"Report issue"},formattingBar:{groups:{history:"History",zoom:"Zoom",styles:"Styles",font:"Font",textFormatting:"Text formatting",script:"Script",alignment:"Alignment",listFormatting:"List formatting",image:"Image",table:"Table"},undo:"Undo",undoShortcut:"Undo (Ctrl+Z)",redo:"Redo",redoShortcut:"Redo (Ctrl+Y)",bold:"Bold",boldShortcut:"Bold (Ctrl+B)",italic:"Italic",italicShortcut:"Italic (Ctrl+I)",underline:"Underline",underlineShortcut:"Underline (Ctrl+U)",strikethrough:"Strikethrough",fontColor:"Font Color",highlightColor:"Text Highlight Color",insertLink:"Insert link",insertLinkShortcut:"Insert link (Ctrl+K)",superscript:"Superscript",superscriptShortcut:"Superscript (Ctrl+Shift+=)",subscript:"Subscript",subscriptShortcut:"Subscript (Ctrl+=)",imageProperties:"Image properties",imagePropertiesShortcut:"Image properties (alt text, border)...",clearFormatting:"Clear formatting"},alignment:{alignLeft:"Align Left",alignLeftShortcut:"Ctrl+L",center:"Center",centerShortcut:"Ctrl+E",alignRight:"Align Right",alignRightShortcut:"Ctrl+R",justify:"Justify",justifyShortcut:"Ctrl+J"},lists:{ariaLabel:"List formatting",typeAriaLabel:"List type",indentationAriaLabel:"List indentation",bulletList:"Bullet List",numberedList:"Numbered List",decreaseIndent:"Decrease Indent",increaseIndent:"Increase Indent"},lineSpacing:{single:"Single",double:"Double",lineSpacingTitle:"Line spacing: {label}",paragraphSpacing:"Paragraph spacing"},styles:{selectAriaLabel:"Select paragraph style",normalText:"Normal text",title:"Title",subtitle:"Subtitle",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3"},font:{selectAriaLabel:"Select font family",sansSerif:"Sans Serif",serif:"Serif",monospace:"Monospace"},fontSize:{decrease:"Decrease font size",increase:"Increase font size",label:"Font size",listLabel:"Font sizes"},zoom:{ariaLabel:"Zoom: {label}"},colorPicker:{ariaLabel:"{type} color picker",highlightColors:"Highlight Colors",customColor:"Custom Color",noColor:"No Color",automatic:"Automatic",themeColors:"Theme Colors",standardColors:"Standard Colors",colors:{black:"Black",darkRed:"Dark Red",red:"Red",orange:"Orange",yellow:"Yellow",darkYellow:"Dark Yellow",green:"Green",darkGreen:"Dark Green",teal:"Teal",darkTeal:"Dark Teal",blue:"Blue",darkBlue:"Dark Blue",purple:"Purple",darkPurple:"Dark Purple",brown:"Brown",grey50:"Grey 50%",grey25:"Grey 25%",grey10:"Grey 10%",white:"White",lightRed:"Light Red",lightOrange:"Light Orange",lightYellow:"Light Yellow",lightGreen:"Light Green",lightBlue:"Light Blue",lightPurple:"Light Purple",pink:"Pink",rose:"Rose",gold:"Gold",aqua:"Aqua",lavender:"Lavender",silver:"Silver",darkOrange:"Dark Orange",darkGray:"Dark Gray",gray:"Gray",cyan:"Cyan",magenta:"Magenta",paleGreen:"Pale Green",lightCyan:"Light Cyan",skyBlue:"Sky Blue",lightBlue2:"Light Blue 2",lightMagenta:"Light Magenta",brightGreen:"Bright Green",violet:"Violet"}},dialogs:{findReplace:{titleFind:"Find",titleFindReplace:"Find and Replace",findLabel:"Find:",findPlaceholder:"Enter text to find...",findAriaLabel:"Find text",findPrevious:"Find previous",findPreviousTitle:"Find Previous (Shift+Enter)",findNext:"Find next",findNextTitle:"Find Next (Enter)",matchCount:"{current} of {total} matches",noResults:"No results found",replaceLabel:"Replace:",replacePlaceholder:"Enter replacement text...",replaceAriaLabel:"Replace text",replaceButton:"Replace",replaceCurrentTitle:"Replace current match",replaceAllButton:"Replace All",replaceAllTitle:"Replace all matches",matchCase:"Match case",wholeWords:"Whole words",toggleReplace:"+ Replace"},hyperlink:{titleEdit:"Edit Hyperlink",titleInsert:"Insert Hyperlink",tabWebAddress:"Web Address",tabBookmark:"Bookmark",urlLabel:"URL",urlPlaceholder:"https://example.com",urlHint:"Enter a web address, email (mailto:), or phone (tel:)",bookmarkLabel:"Bookmark",bookmarkPlaceholder:"Select a bookmark...",displayTextLabel:"Display Text",displayTextPlaceholder:"Text to display (optional)",displayTextHint:"Leave empty to use the selected text",tooltipLabel:"Tooltip (optional)",tooltipPlaceholder:"Text shown on hover",removeLink:"Remove Link",invalidUrl:"Please enter a valid URL",urlRequired:"URL is required"},insertTable:{title:"Insert Table",hoverToSelect:"Hover to select size",tableSize:"{cols} x {rows} Table",orSpecifySize:"or specify size",rowsLabel:"Rows:",columnsLabel:"Columns:",insertButton:"Insert Table",sizeSelector:"Table size selector"},splitCell:{title:"Split Cell",description:"Set how many rows and columns to split the selected cell into.",rowsLabel:"Rows:",columnsLabel:"Columns:",currentMinimum:"Minimum from current span: {rows} row(s) x {cols} column(s)",minValue:"Use at least {rows} row(s) and {cols} column(s).",notOneByOne:"Choose at least two resulting cells."},insertImage:{title:"Insert Image",uploadAriaLabel:"Click or drag to upload image",uploadText:"Click to select or drag and drop an image",uploadSubtext:"PNG, JPG, GIF up to 10MB",dimensions:"Dimensions",widthLabel:"Width:",heightLabel:"Height:",aspectRatioLocked:"Aspect ratio locked",aspectRatioUnlocked:"Aspect ratio unlocked",altTextLabel:"Alt Text (optional)",altTextPlaceholder:"Describe the image for accessibility",insertButton:"Insert Image",invalidFile:"Please select a valid image file",fileTooLarge:"Image file is too large (max 10MB)",readFailed:"Failed to read image file",loadFailed:"Failed to load image",preview:"Preview"},insertSymbol:{title:"Insert Symbol",searchPlaceholder:"Search symbols (character or Unicode)...",noResults:'No symbols found for "{query}"',decimal:"Decimal: {value}",categories:{common:"Common",arrows:"Arrows",math:"Math",greek:"Greek",shapes:"Shapes",punctuation:"Punctuation",currency:"Currency",music:"Music",emoji:"Emoji"}},imageProperties:{title:"Image Properties",altText:"Alt Text",altTextPlaceholder:"Describe this image for accessibility...",border:"Border",width:"Width",style:"Style",color:"Color",preview:"Preview",borderStyles:{solid:"Solid",dashed:"Dashed",dotted:"Dotted",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"}},imagePosition:{title:"Image Position",horizontal:"Horizontal",vertical:"Vertical",position:"Position",alignment:"Alignment",offset:"Offset",offsetPx:"Offset (px)",align:"Align",relativeTo:"Relative to",alignOptions:{left:"Left",center:"Center",right:"Right",top:"Top",bottom:"Bottom"},relativeOptions:{page:"Page",column:"Column",margin:"Margin",character:"Character",paragraph:"Paragraph",line:"Line"}},pageSetup:{title:"Page Setup",pageSize:"PAGE SIZE",sizeLabel:"Size",custom:"Custom",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",margins:"MARGINS",top:"Top",bottom:"Bottom",left:"Left",right:"Right",pageSizes:{letter:'Letter (8.5" \xD7 11")',a4:'A4 (8.27" \xD7 11.69")',legal:'Legal (8.5" \xD7 14")',a3:'A3 (11.69" \xD7 16.54")',a5:'A5 (5.83" \xD7 8.27")',b5:'B5 (6.93" \xD7 9.84")',executive:'Executive (7.25" \xD7 10.5")'}},tableProperties:{title:"Table Properties",widthType:"Width type",widthLabel:"Width",alignmentLabel:"Alignment",widthTypes:{auto:"Auto",fixed:"Fixed (twips)",percentage:"Percentage"},units:{fiftiethsPercent:"(50ths of %)",twips:"tw"},alignOptions:{left:"Left",center:"Center",right:"Right"}},pasteSpecial:{title:"Paste Special",keepFormatting:"Keep Source Formatting",keepFormattingDescription:"Paste with original formatting",keepFormattingShortcut:"Ctrl+V",plainText:"Paste as Plain Text",plainTextDescription:"Paste without any formatting",plainTextShortcut:"Ctrl+Shift+V",readingClipboard:"Reading clipboard...",preview:"Preview:",noContent:"No content available to paste",clipboardError:"Unable to read clipboard. Please use Ctrl+V to paste."},footnoteProperties:{title:"Footnote & Endnote Properties",footnotes:"Footnotes",endnotes:"Endnotes",position:"Position",numberFormat:"Number format",startAt:"Start at",numbering:"Numbering",footnotePositions:{bottomOfPage:"Bottom of page",belowText:"Below text"},endnotePositions:{endOfDocument:"End of document",endOfSection:"End of section"},numberingOptions:{continuous:"Continuous",restartSection:"Restart each section",restartPage:"Restart each page"},formats:{decimal:"1, 2, 3, ...",lowerRoman:"i, ii, iii, ...",upperRoman:"I, II, III, ...",lowerAlpha:"a, b, c, ...",upperAlpha:"A, B, C, ...",symbols:"*, \u2020, \u2021, ..."}},keyboardShortcuts:{ariaLabel:"Keyboard Shortcuts",searchPlaceholder:"Search shortcuts...",categories:{editing:"Editing",formatting:"Formatting",navigation:"Navigation",clipboard:"Clipboard",selection:"Selection",view:"View",file:"File",other:"Other"},shortcuts:{save:"Save",saveDescription:"Save document",print:"Print",printDescription:"Print document",undo:"Undo",undoDescription:"Undo last action",redo:"Redo",redoDescription:"Redo last action",delete:"Delete",deleteDescription:"Delete selected text",find:"Find",findDescription:"Find text in document",findReplace:"Find & Replace",findReplaceDescription:"Find and replace text",cut:"Cut",cutDescription:"Cut selected text",copy:"Copy",copyDescription:"Copy selected text",paste:"Paste",pasteDescription:"Paste from clipboard",pastePlainText:"Paste as Plain Text",pastePlainTextDescription:"Paste without formatting",bold:"Bold",boldDescription:"Toggle bold formatting",italic:"Italic",italicDescription:"Toggle italic formatting",underline:"Underline",underlineDescription:"Toggle underline formatting",strikethrough:"Strikethrough",strikethroughDescription:"Toggle strikethrough",subscript:"Subscript",subscriptDescription:"Toggle subscript",superscript:"Superscript",superscriptDescription:"Toggle superscript",alignLeft:"Align Left",alignLeftDescription:"Left align paragraph",alignCenter:"Align Center",alignCenterDescription:"Center align paragraph",alignRight:"Align Right",alignRightDescription:"Right align paragraph",justify:"Justify",justifyDescription:"Justify paragraph",increaseIndent:"Increase Indent",increaseIndentDescription:"Increase paragraph indent",decreaseIndent:"Decrease Indent",decreaseIndentDescription:"Decrease paragraph indent",selectAll:"Select All",selectAllDescription:"Select all content",selectWord:"Select Word",selectWordDescription:"Select current word",selectParagraph:"Select Paragraph",selectParagraphDescription:"Select current paragraph",extendSelectionByWord:"Extend Selection by Word",extendSelectionByWordDescription:"Extend selection to next/previous word",extendSelectionToLineEdge:"Extend Selection to Line Edge",extendSelectionToLineEdgeDescription:"Extend selection to line start/end",moveByWord:"Move by Word",moveByWordDescription:"Move cursor to next/previous word",moveToLineStart:"Move to Line Start",moveToLineStartDescription:"Move cursor to start of line",moveToLineEnd:"Move to Line End",moveToLineEndDescription:"Move cursor to end of line",moveToDocumentStart:"Move to Document Start",moveToDocumentStartDescription:"Move cursor to start of document",moveToDocumentEnd:"Move to Document End",moveToDocumentEndDescription:"Move cursor to end of document",pageUp:"Page Up",pageUpDescription:"Scroll up one page",pageDown:"Page Down",pageDownDescription:"Scroll down one page",zoomIn:"Zoom In",zoomInDescription:"Increase zoom level",zoomOut:"Zoom Out",zoomOutDescription:"Decrease zoom level",resetZoom:"Reset Zoom",resetZoomDescription:"Reset zoom to 100%",keyboardShortcuts:"Keyboard Shortcuts",keyboardShortcutsDescription:"Show this help dialog"},noResults:'No shortcuts found matching "{query}"',pressEscToClose:"Press {key} to close",or:"or"}},comments:{resolved:"Resolved",resolve:"Resolve",reopen:"Reopen",moreOptions:"More options",unknown:"Unknown",addComment:"Add a comment...",replyPlaceholder:"Reply or add others with @",replyCount:"{count, plural, one {# reply} other {# replies}}"},trackedChanges:{unknown:"Unknown",replaced:"Replaced",with:"with",added:"Added",deleted:"Deleted"},contextMenu:{ariaLabel:"AI actions menu",textMenuAriaLabel:"Text editing menu",customPromptPlaceholder:"Enter custom prompt...",cut:"Cut",cutShortcut:"Ctrl+X",copy:"Copy",copyShortcut:"Ctrl+C",paste:"Paste",pasteShortcut:"Ctrl+V",pastePlainText:"Paste as Plain Text",pastePlainTextShortcut:"Ctrl+Shift+V",delete:"Delete",deleteShortcut:"Del",selectAll:"Select All",selectAllShortcut:"Ctrl+A",selected:"Selected:",aiActions:{askAi:"Ask AI",rewrite:"Rewrite",expand:"Expand",summarize:"Summarize",translate:"Translate",explain:"Explain",fixGrammar:"Fix Grammar",makeFormal:"Make Formal",makeCasual:"Make Casual",custom:"Custom"}},documentOutline:{ariaLabel:"Document outline",closeAriaLabel:"Close outline",closeTitle:"Close outline",title:"Outline",noHeadings:"No headings found. Add headings to your document to see them here."},sidebar:{ariaLabel:"Annotations sidebar"},viewer:{pageIndicator:"{current} of {total}"},titleBar:{untitled:"Untitled",documentNameAriaLabel:"Document name",menuBarAriaLabel:"Menu bar"},errors:{loadingDocument:"Loading document...",noDocumentLoaded:"No document loaded",failedToLoad:"Failed to Load Document",unableToParse:"Unable to Parse Document",somethingWentWrong:"Something went wrong",errorDescription:"An error occurred while rendering this component. Please try again or contact support if the problem persists.",errorLabel:"Error:",componentStack:"Component Stack:",tryAgain:"Try Again",showDetails:"Show details",hideDetails:"Hide details",unsavedChanges:"You have unsaved changes. Are you sure you want to leave?"},table:{insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table",mergeCells:"Merge cells",splitCell:"Split cell",editingTools:"Table editing tools",label:"Table:",cellFillColor:"Cell Fill Color",borderColor:"Border Color",borderWidth:"Border width",unknownAction:"Unknown Action",borders:{all:"All borders",outside:"Outside borders",inside:"Inside borders",none:"No borders",remove:"Remove borders",top:"Top border",bottom:"Bottom border",left:"Left border",right:"Right border",styleAriaLabel:"Border style",tooltip:"Borders"},moreOptions:"More table options",styles:{title:"Table Styles",label:"Styles",normalTable:"Normal Table",tableGrid:"Table Grid",gridTableLight:"Grid Table Light",plainTable1:"Plain Table 1",plainTable2:"Plain Table 2",plainTable3:"Plain Table 3",plainTable4:"Plain Table 4",gridTable1Light:"Grid Table 1 Light",gridTable4Accent1:"Grid Table 4 Accent 1",gridTable5Dark:"Grid Table 5 Dark",listTable3Accent2:"List Table 3 Accent 2",listTable4Accent3:"List Table 4 Accent 3",gridTable4Accent5:"Grid Table 4 Accent 5",gridTable4Accent6:"Grid Table 4 Accent 6"}},tableAdvanced:{verticalAlignment:"Vertical alignment",top:"Top",middle:"Middle",bottom:"Bottom",cellMargins:"Cell margins",textDirection:"Text direction",textDirections:{horizontal:"Horizontal (LR)",verticalRL:"Vertical (top-bottom, RL)",verticalLR:"Vertical (bottom-top, LR)"},toggleNoWrap:"Toggle no-wrap",rowHeight:"Row height",heightRules:{auto:"Auto",atLeast:"At least",exact:"Exact"},rule:"Rule",height:"Height",toggleHeaderRow:"Toggle header row",distributeColumns:"Distribute columns evenly",autoFit:"Auto-fit to contents",tableProperties:"Table properties...",tableAlignment:"Table alignment",alignTableLeft:"Align table left",alignTableCenter:"Align table center",alignTableRight:"Align table right",tableOptionsMenu:"Table options menu",tableOptions:"Table options"},imageTransform:{tooltip:"Transform",rotateClockwise:"Rotate clockwise",rotateCounterClockwise:"Rotate counter-clockwise",flipHorizontal:"Flip horizontal",flipVertical:"Flip vertical"},imageWrap:{inline:"In Line with Text",floatLeft:"Square Left",floatRight:"Square Right",topAndBottom:"Top and Bottom",behindText:"Behind Text",inFrontOfText:"In Front of Text",tooltipPrefix:"Wrap: {label}",menu:{inLineWithText:"In Line with Text",squareLeft:"Square Left",squareRight:"Square Right",behindText:"Behind Text",inFrontOfText:"In Front of Text",ariaLabel:"Image layout options"},menuDesc:{inLineWithText:"Image flows in the line as a glyph",squareLeft:"Image floats left, text wraps on the right",squareRight:"Image floats right, text wraps on the left",behindText:"Image paints behind body text",inFrontOfText:"Image paints over body text"}},responsePreview:{loading:"{action}...",result:"{action} Result",closeEsc:"Close (Esc)",editPrompt:"Edit the result before accepting:",changes:"Changes:",original:"Original:",new:"New:",cancelEdit:"Cancel Edit"},commentMarkers:{resolvedComment:"Resolved comment",comment:"Comment"},editor:{toggleCommentsSidebar:"Toggle comments sidebar",showDocumentOutline:"Show document outline",editing:"Editing",editingDescription:"Edit document directly",suggesting:"Suggesting",suggestingDescription:"Edits become suggestions",viewing:"Viewing",viewingDescription:"Read-only, no edits",failedToParse:"Failed to parse document",linkRemoved:"Link removed",linkCopied:"Link copied to clipboard",failedToSave:"Failed to save document"},hyperlinkPopup:{displayTextPlaceholder:"Display text",urlPlaceholder:"https://example.com",copyLink:"Copy link",editLink:"Edit link",removeLink:"Remove link"},headerFooter:{header:"Header",footer:"Footer",options:"Options",insertPageNumber:"Insert current page number",insertTotalPages:"Insert total page count",remove:"Remove {label}",closeEditing:"Close {label} editing"},image:{placeholder:"Image placeholder",placeholderText:"[Image]",editableAriaLabel:"Editable image"},ruler:{horizontal:"Horizontal ruler",vertical:"Vertical ruler",firstLineIndent:"First line indent",leftIndent:"Left indent",rightIndent:"Right indent",topMargin:"Top margin",bottomMargin:"Bottom margin"},print:{label:"Print",allPages:"All ({totalPages} pages)",singlePage:"Page {start}",pageRange:"Pages {start}-{end}"},unsaved:{unsaved:"Unsaved",saved:"Saved",unsavedTitle:"Document has unsaved changes",savedTitle:"All changes saved",unsavedAriaLabel:"Unsaved changes",savedAriaLabel:"All changes saved"},loading:{label:"Loading"},agentPanel:{defaultTitle:"Assistant",toggle:"Open assistant",close:"Close panel",resizeHandle:"Resize agent panel",thinking:"Assistant is thinking",composerPlaceholder:"Ask the assistant\u2026",send:"Send",timeline:{working:"Working\u2026 {count, plural, one {# step} other {# steps}}",summary:"{count, plural, one {# step} other {# steps}}",earlier:"+ {count, plural, one {# earlier step} other {# earlier steps}}"}}};var b=g,f=react.createContext(b),T=react.createContext("en");function d(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function L(e,o){if(!o)return e;let t={...e};for(let r of Object.keys(o)){let i=o[r];i!==null&&(d(e[r])&&d(i)?t[r]=L(e[r],i):i!==void 0&&(t[r]=i));}return t}function v(e,o){let t=e;for(let r of o.split(".")){if(!d(t))return;t=t[r];}return typeof t=="string"?t:void 0}function P(e){let o={},t=/(=\d+|\w+)\s*\{([^}]*)\}/g,r;for(;(r=t.exec(e))!==null;)o[r[1]]=r[2];return o}function x(e,o,t){return o?e.replace(/\{(\w+),\s*plural,\s*((?:[^{}]|\{[^{}]*\})*)\}/g,(i,n,l)=>{let a=Number(o[n]);if(isNaN(a))return i;let s=P(l),p=s[`=${a}`];if(p!==void 0)return p.replace(/#/g,String(a));let c;try{c=new Intl.PluralRules(t||"en").select(a);}catch{c=a===1?"one":"other";}return (s[c]??s.other??"").replace(/#/g,String(a))}).replace(/\{(\w+)\}/g,(i,n)=>{let l=o[n];return l!==void 0?String(l):`{${n}}`}):e}function R({i18n:e,children:o}){let t=e,r=typeof t?._lang=="string"?t._lang:"en",i=react.useMemo(()=>L(b,t),[t]);return jsxRuntime.jsx(T.Provider,{value:r,children:jsxRuntime.jsx(f.Provider,{value:i,children:o})})}function w(){let e=react.useContext(f),o=react.useContext(T);return {t:react.useCallback((r,i)=>{let n=v(e,r);return x(n??r,i,o)},[e,o])}}
|
|
2
|
-
exports.a=g;exports.b=R;exports.c=w;
|
package/dist/chunk-Z3KMSHUP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';function t(){return Math.floor(Math.random()*4294967296).toString(16).toUpperCase().padStart(8,"0")}exports.a=t;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { C as CorePlugin } from './types-UDsUq8D3.mjs';
|
|
2
|
-
export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-UDsUq8D3.mjs';
|
|
3
|
-
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CWBKYlNW.mjs';
|
|
4
|
-
import './agentApi-DLt94vXk.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Docxtemplater Plugin
|
|
8
|
-
*
|
|
9
|
-
* Core plugin for template variable functionality using docxtemplater.
|
|
10
|
-
*
|
|
11
|
-
* **Command handlers** — `insertTemplateVariable` and `replaceWithTemplateVariable`
|
|
12
|
-
* allow DocumentAgent to programmatically insert `{variable}` placeholders.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { pluginRegistry } from '@eigenpal/docx-editor/core-plugins';
|
|
17
|
-
* import { docxtemplaterPlugin } from '@eigenpal/docx-editor/core-plugins/docxtemplater';
|
|
18
|
-
*
|
|
19
|
-
* pluginRegistry.register(docxtemplaterPlugin);
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Docxtemplater plugin for template variable functionality.
|
|
25
|
-
*
|
|
26
|
-
* Dependency validation is handled lazily by `processTemplate` at call time,
|
|
27
|
-
* so no eager `initialize()` is needed.
|
|
28
|
-
*/
|
|
29
|
-
declare const docxtemplaterPlugin: CorePlugin;
|
|
30
|
-
|
|
31
|
-
export { CorePlugin, CorePlugin as Plugin, docxtemplaterPlugin };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { C as CorePlugin } from './types-jbivc9Lj.js';
|
|
2
|
-
export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-jbivc9Lj.js';
|
|
3
|
-
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CH9V-IX0.js';
|
|
4
|
-
import './agentApi-DLt94vXk.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Docxtemplater Plugin
|
|
8
|
-
*
|
|
9
|
-
* Core plugin for template variable functionality using docxtemplater.
|
|
10
|
-
*
|
|
11
|
-
* **Command handlers** — `insertTemplateVariable` and `replaceWithTemplateVariable`
|
|
12
|
-
* allow DocumentAgent to programmatically insert `{variable}` placeholders.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { pluginRegistry } from '@eigenpal/docx-editor/core-plugins';
|
|
17
|
-
* import { docxtemplaterPlugin } from '@eigenpal/docx-editor/core-plugins/docxtemplater';
|
|
18
|
-
*
|
|
19
|
-
* pluginRegistry.register(docxtemplaterPlugin);
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Docxtemplater plugin for template variable functionality.
|
|
25
|
-
*
|
|
26
|
-
* Dependency validation is handled lazily by `processTemplate` at call time,
|
|
27
|
-
* so no eager `initialize()` is needed.
|
|
28
|
-
*/
|
|
29
|
-
declare const docxtemplaterPlugin: CorePlugin;
|
|
30
|
-
|
|
31
|
-
export { CorePlugin, CorePlugin as Plugin, docxtemplaterPlugin };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkLUF7PWIC_js=require('./chunk-LUF7PWIC.js');require('./chunk-P4VSHBGZ.js'),require('./chunk-IFPN3NT3.js');var chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js');require('./chunk-MOE2ZGUE.js'),require('./chunk-MWLHJWB6.js'),require('./chunk-Q7UDQXAF.js'),require('./chunk-YC5KZSYD.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkLUF7PWIC_js.o}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkLUF7PWIC_js.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkBUEMG4NW_js.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-TSE2PWFX.mjs';import'./chunk-IOAGVW6Q.mjs';import'./chunk-WOHFANC5.mjs';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';import'./chunk-RBUTXXQJ.mjs';import'./chunk-INTPVEO6.mjs';import'./chunk-54ULJEHM.mjs';import'./chunk-LVGJKS7Y.mjs';import'./chunk-TAUMSKRE.mjs';
|
package/dist/core-reexport.d.mts
DELETED
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
import { D as Document } from './agentApi-DLt94vXk.mjs';
|
|
2
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, p as DeleteTextCommand, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-DLt94vXk.mjs';
|
|
3
|
-
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './documentSerializer-DtS_-oGA.mjs';
|
|
4
|
-
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-V3aaMnWE.mjs';
|
|
5
|
-
export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-V3aaMnWE.mjs';
|
|
6
|
-
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-UDsUq8D3.mjs';
|
|
7
|
-
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-BWflKHpH.mjs';
|
|
8
|
-
export { 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, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './insertOperations-BTH1Asas.mjs';
|
|
9
|
-
import { EditorView } from 'prosemirror-view';
|
|
10
|
-
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-CWBKYlNW.mjs';
|
|
11
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-CdQ7ZTzA.mjs';
|
|
12
|
-
export { docxtemplaterPlugin } from './core-plugins-reexport.mjs';
|
|
13
|
-
import { Node } from 'prosemirror-model';
|
|
14
|
-
import 'prosemirror-state';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* ProseMirror position immediately before the first textblock whose `paraId`
|
|
18
|
-
* attribute equals `paraId` (Word `w14:paraId` / OOXML paragraph id).
|
|
19
|
-
*
|
|
20
|
-
* Match is strict string equality on `node.attrs.paraId`.
|
|
21
|
-
*/
|
|
22
|
-
declare function findStartPosForParaId(doc: Node, paraId: string): number | null;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* ProseMirror position range for the paragraph (or any textblock) whose
|
|
26
|
-
* `paraId` attribute equals `paraId`. Returns the inclusive `from` and
|
|
27
|
-
* exclusive `to` positions, plus the node, so callers can both target
|
|
28
|
-
* the paragraph (e.g. addMark over its text range) and inspect it.
|
|
29
|
-
*
|
|
30
|
-
* `from` is the position immediately before the textblock; `to` is
|
|
31
|
-
* `from + node.nodeSize`. The text content lives at `[from + 1, to - 1]`.
|
|
32
|
-
*
|
|
33
|
-
* Returns null if no textblock with that paraId exists.
|
|
34
|
-
*/
|
|
35
|
-
declare function findParagraphByParaId(doc: Node, paraId: string): {
|
|
36
|
-
node: Node;
|
|
37
|
-
from: number;
|
|
38
|
-
to: number;
|
|
39
|
-
} | null;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* ErrorManager
|
|
43
|
-
*
|
|
44
|
-
* Framework-agnostic pub/sub error notification system.
|
|
45
|
-
* Replaces React's `componentDidCatch` + context pattern for error notifications.
|
|
46
|
-
*
|
|
47
|
-
* Usage with React:
|
|
48
|
-
* ```ts
|
|
49
|
-
* const { notifications } = useSyncExternalStore(manager.subscribe, manager.getSnapshot);
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
declare class ErrorManager extends Subscribable<ErrorManagerSnapshot> {
|
|
54
|
-
private notifications;
|
|
55
|
-
private idCounter;
|
|
56
|
-
private timers;
|
|
57
|
-
constructor();
|
|
58
|
-
/** Show an error notification (persistent, not auto-dismissed). */
|
|
59
|
-
showError(message: string, details?: string): string;
|
|
60
|
-
/** Show a warning notification (auto-dismissed after 5s). */
|
|
61
|
-
showWarning(message: string, details?: string): string;
|
|
62
|
-
/** Show an info notification (auto-dismissed after 5s). */
|
|
63
|
-
showInfo(message: string, details?: string): string;
|
|
64
|
-
/** Dismiss a notification by ID. */
|
|
65
|
-
dismiss(id: string): void;
|
|
66
|
-
/** Clear all notifications and cancel pending timers. */
|
|
67
|
-
clearAll(): void;
|
|
68
|
-
/** Destroy the manager and clean up all timers. */
|
|
69
|
-
destroy(): void;
|
|
70
|
-
private addNotification;
|
|
71
|
-
private emitSnapshot;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* PluginLifecycleManager
|
|
76
|
-
*
|
|
77
|
-
* Framework-agnostic class for managing editor plugin lifecycle.
|
|
78
|
-
* Extracted from React's `PluginHost.tsx`.
|
|
79
|
-
*
|
|
80
|
-
* Handles:
|
|
81
|
-
* - Plugin initialization and state tracking
|
|
82
|
-
* - Plugin state updates via `updateStates()`
|
|
83
|
-
* - Plugin destroy/cleanup
|
|
84
|
-
*
|
|
85
|
-
* Does NOT handle (framework hosts are responsible for):
|
|
86
|
-
* - CSS injection (use the exported `injectStyles` utility)
|
|
87
|
-
* - DOM event listeners / dispatch wrapping
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
/** Inject CSS styles into the document head. Returns a cleanup function. */
|
|
91
|
-
declare function injectStyles(pluginId: string, css: string): () => void;
|
|
92
|
-
declare class PluginLifecycleManager extends Subscribable<PluginLifecycleSnapshot> {
|
|
93
|
-
private plugins;
|
|
94
|
-
private pluginStates;
|
|
95
|
-
private version;
|
|
96
|
-
constructor();
|
|
97
|
-
/**
|
|
98
|
-
* Initialize plugins with an editor view.
|
|
99
|
-
* Calls `plugin.initialize(editorView)` for each plugin.
|
|
100
|
-
*
|
|
101
|
-
* Note: CSS injection and DOM event listeners are the responsibility
|
|
102
|
-
* of the framework-specific host (e.g. React PluginHost).
|
|
103
|
-
*/
|
|
104
|
-
initialize(plugins: PluginLifecycleConfig[], editorView: EditorView): void;
|
|
105
|
-
/**
|
|
106
|
-
* Update all plugin states by calling `onStateChange` on each plugin.
|
|
107
|
-
* Returns true if any plugin state changed.
|
|
108
|
-
*/
|
|
109
|
-
updateStates(editorView: EditorView): boolean;
|
|
110
|
-
/** Get plugin state by ID. */
|
|
111
|
-
getPluginState<T>(pluginId: string): T | undefined;
|
|
112
|
-
/** Set plugin state by ID. */
|
|
113
|
-
setPluginState<T>(pluginId: string, state: T): void;
|
|
114
|
-
/** Destroy all plugins and clean up. */
|
|
115
|
-
destroy(): void;
|
|
116
|
-
private destroyPlugins;
|
|
117
|
-
private emitSnapshot;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* LayoutCoordinator
|
|
122
|
-
*
|
|
123
|
-
* Framework-agnostic class coordinating the PM state → layout engine →
|
|
124
|
-
* layout painter → selection overlay pipeline.
|
|
125
|
-
*
|
|
126
|
-
* Extracted from PagedEditor.tsx. Manages:
|
|
127
|
-
* - Layout pipeline state (blocks, measures, layout)
|
|
128
|
-
* - Selection state (selectionRects, caretPosition)
|
|
129
|
-
* - Drag selection state
|
|
130
|
-
* - Column resize state
|
|
131
|
-
* - Image interaction state
|
|
132
|
-
*
|
|
133
|
-
* Usage with React:
|
|
134
|
-
* ```ts
|
|
135
|
-
* const snapshot = useSyncExternalStore(coordinator.subscribe, coordinator.getSnapshot);
|
|
136
|
-
* ```
|
|
137
|
-
*
|
|
138
|
-
* NOTE: This class defines the state shape and subscription pattern.
|
|
139
|
-
* Full integration with PagedEditor is done incrementally.
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
/** Selection rectangle for rendering selection overlays */
|
|
143
|
-
interface SelectionRect {
|
|
144
|
-
x: number;
|
|
145
|
-
y: number;
|
|
146
|
-
width: number;
|
|
147
|
-
height: number;
|
|
148
|
-
pageIndex: number;
|
|
149
|
-
}
|
|
150
|
-
/** Caret position for rendering the blinking cursor */
|
|
151
|
-
interface CaretPosition {
|
|
152
|
-
x: number;
|
|
153
|
-
y: number;
|
|
154
|
-
height: number;
|
|
155
|
-
pageIndex: number;
|
|
156
|
-
}
|
|
157
|
-
/** Info about the currently selected/hovered image */
|
|
158
|
-
interface ImageSelectionInfo {
|
|
159
|
-
pmPos: number;
|
|
160
|
-
pageIndex: number;
|
|
161
|
-
rect: {
|
|
162
|
-
x: number;
|
|
163
|
-
y: number;
|
|
164
|
-
width: number;
|
|
165
|
-
height: number;
|
|
166
|
-
};
|
|
167
|
-
widthEmu: number;
|
|
168
|
-
heightEmu: number;
|
|
169
|
-
isInline: boolean;
|
|
170
|
-
}
|
|
171
|
-
/** Column resize tracking state */
|
|
172
|
-
interface ColumnResizeState {
|
|
173
|
-
isResizing: boolean;
|
|
174
|
-
startX: number;
|
|
175
|
-
columnIndex: number;
|
|
176
|
-
tablePmStart: number;
|
|
177
|
-
originalWidths: {
|
|
178
|
-
left: number;
|
|
179
|
-
right: number;
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
/** The full snapshot exposed to UI frameworks */
|
|
183
|
-
interface LayoutCoordinatorSnapshot {
|
|
184
|
-
/** Computed page layout, null until first computation */
|
|
185
|
-
hasLayout: boolean;
|
|
186
|
-
/** Selection rectangles for range selection overlay */
|
|
187
|
-
selectionRects: SelectionRect[];
|
|
188
|
-
/** Caret position for cursor overlay */
|
|
189
|
-
caretPosition: CaretPosition | null;
|
|
190
|
-
/** Currently selected/hovered image */
|
|
191
|
-
selectedImageInfo: ImageSelectionInfo | null;
|
|
192
|
-
/** Whether the editor is focused */
|
|
193
|
-
isFocused: boolean;
|
|
194
|
-
/** Whether a text drag is in progress */
|
|
195
|
-
isDragging: boolean;
|
|
196
|
-
/** Whether a column resize is in progress */
|
|
197
|
-
isResizingColumn: boolean;
|
|
198
|
-
/** Whether an image interaction is in progress */
|
|
199
|
-
isImageInteracting: boolean;
|
|
200
|
-
/** Version counter — incremented on every state change */
|
|
201
|
-
version: number;
|
|
202
|
-
}
|
|
203
|
-
declare class LayoutCoordinator extends Subscribable<LayoutCoordinatorSnapshot> {
|
|
204
|
-
private _hasLayout;
|
|
205
|
-
private _selectionRects;
|
|
206
|
-
private _caretPosition;
|
|
207
|
-
private _isDragging;
|
|
208
|
-
private _dragAnchor;
|
|
209
|
-
private _columnResize;
|
|
210
|
-
private _selectedImageInfo;
|
|
211
|
-
private _isImageInteracting;
|
|
212
|
-
private _isFocused;
|
|
213
|
-
private _version;
|
|
214
|
-
constructor();
|
|
215
|
-
/** Notify that layout has been computed. */
|
|
216
|
-
setLayoutReady(hasLayout: boolean): void;
|
|
217
|
-
/** Update selection rectangles and caret position. */
|
|
218
|
-
updateSelection(selectionRects: SelectionRect[], caretPosition: CaretPosition | null): void;
|
|
219
|
-
/** Start a drag selection from the given PM anchor position. */
|
|
220
|
-
startDrag(anchor: number): void;
|
|
221
|
-
/** End drag selection. */
|
|
222
|
-
endDrag(): void;
|
|
223
|
-
/** Get the drag anchor position. */
|
|
224
|
-
getDragAnchor(): number | null;
|
|
225
|
-
/** Start resizing a table column. */
|
|
226
|
-
startColumnResize(tablePmStart: number, columnIndex: number, startX: number, originalWidths: {
|
|
227
|
-
left: number;
|
|
228
|
-
right: number;
|
|
229
|
-
}): void;
|
|
230
|
-
/** End column resize. */
|
|
231
|
-
endColumnResize(): void;
|
|
232
|
-
/** Get current column resize state. */
|
|
233
|
-
getColumnResize(): ColumnResizeState;
|
|
234
|
-
/** Set the currently selected image. */
|
|
235
|
-
setSelectedImage(imageInfo: ImageSelectionInfo | null): void;
|
|
236
|
-
/** Clear the image selection. */
|
|
237
|
-
clearSelectedImage(): void;
|
|
238
|
-
/** Set whether an image interaction (resize/move) is in progress. */
|
|
239
|
-
setImageInteracting(interacting: boolean): void;
|
|
240
|
-
/** Update focus state. */
|
|
241
|
-
setFocused(focused: boolean): void;
|
|
242
|
-
private emitSnapshot;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* EditorCoordinator
|
|
247
|
-
*
|
|
248
|
-
* Framework-agnostic class managing the document editor lifecycle:
|
|
249
|
-
* - Document parsing and loading
|
|
250
|
-
* - Font loading coordination
|
|
251
|
-
* - Zoom level management
|
|
252
|
-
* - Extension manager initialization
|
|
253
|
-
* - Agent command execution
|
|
254
|
-
*
|
|
255
|
-
* Extracted from DocxEditor.tsx.
|
|
256
|
-
*
|
|
257
|
-
* Usage with React:
|
|
258
|
-
* ```ts
|
|
259
|
-
* const snapshot = useSyncExternalStore(coordinator.subscribe, coordinator.getSnapshot);
|
|
260
|
-
* ```
|
|
261
|
-
*
|
|
262
|
-
* NOTE: This class defines the state shape and coordination logic.
|
|
263
|
-
* Full integration with DocxEditor is done incrementally.
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
|
-
/** Editor loading state */
|
|
267
|
-
type EditorLoadingState = 'idle' | 'parsing' | 'loading-fonts' | 'ready' | 'error';
|
|
268
|
-
/** Configuration for EditorCoordinator */
|
|
269
|
-
interface EditorCoordinatorOptions {
|
|
270
|
-
/** Initial zoom level (default: 1.0) */
|
|
271
|
-
initialZoom?: number;
|
|
272
|
-
/** Callback when the document changes */
|
|
273
|
-
onChange?: (document: Document) => void;
|
|
274
|
-
/** Callback when an error occurs */
|
|
275
|
-
onError?: (error: Error) => void;
|
|
276
|
-
}
|
|
277
|
-
/** The full snapshot exposed to UI frameworks */
|
|
278
|
-
interface EditorCoordinatorSnapshot {
|
|
279
|
-
/** Current loading state */
|
|
280
|
-
loadingState: EditorLoadingState;
|
|
281
|
-
/** Error message if loadingState is 'error' */
|
|
282
|
-
parseError: string | null;
|
|
283
|
-
/** Whether the editor is ready for interaction */
|
|
284
|
-
isReady: boolean;
|
|
285
|
-
/** Current zoom level (1.0 = 100%) */
|
|
286
|
-
zoom: number;
|
|
287
|
-
/** Whether fonts have been loaded */
|
|
288
|
-
fontsLoaded: boolean;
|
|
289
|
-
/** Version counter */
|
|
290
|
-
version: number;
|
|
291
|
-
}
|
|
292
|
-
declare class EditorCoordinator extends Subscribable<EditorCoordinatorSnapshot> {
|
|
293
|
-
private _loadingState;
|
|
294
|
-
private _parseError;
|
|
295
|
-
private _zoom;
|
|
296
|
-
private _fontsLoaded;
|
|
297
|
-
private _document;
|
|
298
|
-
private _version;
|
|
299
|
-
private onChangeCallback?;
|
|
300
|
-
private onErrorCallback?;
|
|
301
|
-
constructor(options?: EditorCoordinatorOptions);
|
|
302
|
-
/** Signal that document parsing has started. */
|
|
303
|
-
setParsingStarted(): void;
|
|
304
|
-
/** Signal that document parsing completed successfully. */
|
|
305
|
-
setDocumentLoaded(document: Document): void;
|
|
306
|
-
/** Signal that font loading completed. */
|
|
307
|
-
setFontsLoaded(): void;
|
|
308
|
-
/** Signal that an error occurred during loading. */
|
|
309
|
-
setLoadError(error: Error): void;
|
|
310
|
-
/** Get the current document. */
|
|
311
|
-
getDocument(): Document | null;
|
|
312
|
-
/** Update the document (after edits). */
|
|
313
|
-
updateDocument(document: Document): void;
|
|
314
|
-
/** Set the zoom level (1.0 = 100%). */
|
|
315
|
-
setZoom(zoom: number): void;
|
|
316
|
-
/** Get the current zoom level. */
|
|
317
|
-
getZoom(): number;
|
|
318
|
-
private emitSnapshot;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* @eigenpal/docx-core (default entry point)
|
|
323
|
-
*
|
|
324
|
-
* Fat barrel that re-exports the parser, serializer, agent, plugin
|
|
325
|
-
* registry, and the most-used types. No React/DOM imports.
|
|
326
|
-
*
|
|
327
|
-
* **When to import from `.` vs `./headless`:** identical for Node.js
|
|
328
|
-
* use; `.` is the convenient aggregate, `./headless` is its mirror with
|
|
329
|
-
* a slightly different name suffix. Adapter authors who only need a
|
|
330
|
-
* specific slice should prefer the smaller subpaths (`./docx`, `./agent`,
|
|
331
|
-
* `./prosemirror`, `./layout-*`, `./utils`) — they tree-shake better.
|
|
332
|
-
*
|
|
333
|
-
* @example
|
|
334
|
-
* ```ts
|
|
335
|
-
* import { parseDocx, serializeDocx, resolveColor } from '@eigenpal/docx-core';
|
|
336
|
-
* ```
|
|
337
|
-
*/
|
|
338
|
-
declare const VERSION = "0.0.2";
|
|
339
|
-
|
|
340
|
-
export { type CaretPosition, type ColumnResizeState, Document, EditorCoordinator, type EditorCoordinatorOptions, type EditorCoordinatorSnapshot, type EditorLoadingState, ErrorManager, ErrorManagerSnapshot, type ImageSelectionInfo, LayoutCoordinator, type LayoutCoordinatorSnapshot, PluginLifecycleConfig, PluginLifecycleManager, PluginLifecycleSnapshot, type SelectionRect, Subscribable, VERSION, findParagraphByParaId, findStartPosForParaId, injectStyles };
|