@betteroffice/docx 0.4.1 → 0.4.2
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/chunk-4PRCO6EC.mjs +1 -0
- package/dist/chunk-5Z22FORG.mjs +1 -0
- package/dist/chunk-7SUVUKWT.mjs +1 -0
- package/dist/chunk-7ZV6P6NZ.mjs +57 -0
- package/dist/{chunk-2QHGQA3V.mjs → chunk-AXFMDV66.mjs} +1 -1
- package/dist/{chunk-YLFKV2NT.mjs → chunk-EBYC3CX7.mjs} +1 -1
- package/dist/{chunk-3CYO46ML.mjs → chunk-GKWXOZZH.mjs} +1 -1
- package/dist/chunk-HGKSOBXK.mjs +1 -0
- package/dist/{chunk-DKWD4P4J.mjs → chunk-LIOWZSE7.mjs} +1 -1
- package/dist/chunk-ML6E23W2.mjs +1 -0
- package/dist/{chunk-NVN26RHH.mjs → chunk-MLEMGJP7.mjs} +1 -1
- package/dist/chunk-QBMNRD5V.mjs +2 -0
- package/dist/{chunk-2HLVVQIL.mjs → chunk-RNNTXPXC.mjs} +1 -1
- package/dist/chunk-UBUTIWXN.mjs +1 -0
- package/dist/{chunk-7DDF4RHB.mjs → chunk-VH7P4734.mjs} +1 -1
- package/dist/collaboration/index.d.mts +5 -5
- package/dist/compareDocx-CWOYEBCE.mjs +1 -0
- package/dist/{computeLayout-4MNWHE2T.mjs → computeLayout-ZTO6TBWX.mjs} +1 -1
- package/dist/{content-BzoC6bSz.d.mts → content-DSb-6a9T.d.mts} +5 -5
- package/dist/core.d.mts +3 -3
- package/dist/core.mjs +1 -1
- package/dist/{displayListQueries-DnHmHUPY.d.mts → displayListQueries-BVBDVXoP.d.mts} +2 -2
- package/dist/docx/index.d.mts +1 -1
- package/dist/docx/index.mjs +2 -2
- package/dist/editor/index.d.mts +10 -6
- package/dist/editor/index.mjs +1 -1
- package/dist/{frameDelta-ByU7HBuB.d.mts → frameDelta-CLeO7K5z.d.mts} +5 -2
- package/dist/generated/edit/docx_edit_bg.wasm +0 -0
- package/dist/generated/layout/docx_layout_bg.wasm +0 -0
- package/dist/generated/opc/ooxml_opc_bg.wasm +0 -0
- package/dist/generated/parse/docx_parse_bg.wasm +0 -0
- package/dist/{index-yOtBET85.d.mts → index-DzZVJC8-.d.mts} +230 -86
- package/dist/layout/index.d.mts +2 -2
- package/dist/layout/index.mjs +1 -1
- package/dist/layout/pagination/index.d.mts +3 -3
- package/dist/layout/render/index.d.mts +9 -9
- package/dist/layout/render/index.mjs +1 -1
- package/dist/{parseWasm-NLAG22EU.mjs → parseWasm-BESKFFA3.mjs} +1 -1
- package/dist/plugin-api/RenderedDomContext.d.mts +5 -5
- package/dist/plugin-api/index.d.mts +1 -1
- package/dist/plugin-api/resolveItemPositions.d.mts +1 -1
- package/dist/{rustDisplayList-DcaA5iok.d.mts → rustDisplayList-B7uPoItK.d.mts} +2 -2
- package/dist/types/content.d.mts +1 -1
- package/dist/types/document.d.mts +2 -2
- package/dist/{types-Buyw6dFd.d.mts → types-Cz7S77Ut.d.mts} +3 -1
- package/dist/utils/comments.d.mts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/{wasm-IBCLSJQU.mjs → wasm-GFT55YT6.mjs} +1 -1
- package/dist/wasm-QI7MWC5D.mjs +1 -0
- package/dist/wasm-QXYYV7LU.mjs +1 -0
- package/dist/wasm-edit.d.mts +27 -2
- package/dist/wasm-edit.mjs +1 -1
- package/dist/wasm-layout.mjs +1 -1
- package/dist/wasm-opc.mjs +1 -1
- package/dist/wasm-parse.mjs +1 -1
- package/dist/yrs/index.d.mts +4 -4
- package/dist/yrs/index.mjs +1 -1
- package/dist/yrs/residentEngineWorker.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3OWET2KZ.mjs +0 -1
- package/dist/chunk-4GEXNR7A.mjs +0 -1
- package/dist/chunk-4QHAMEAS.mjs +0 -1
- package/dist/chunk-6CHGYCFU.mjs +0 -1
- package/dist/chunk-C5BX34CG.mjs +0 -2
- package/dist/chunk-EIPVFGIC.mjs +0 -1
- package/dist/chunk-FMOSOX5V.mjs +0 -57
- package/dist/compareDocx-QX2YF3EF.mjs +0 -1
- package/dist/wasm-6WSIEYWC.mjs +0 -1
- package/dist/wasm-GSI2XMOH.mjs +0 -1
package/dist/utils/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { F as FontTable } from '../styles-AryxLAhx.mjs';
|
|
|
6
6
|
import { Document } from '../types/document.mjs';
|
|
7
7
|
import { FontOption } from './fontOptions.mjs';
|
|
8
8
|
export { MIN_CARD_GAP, SIDEBAR_DOCUMENT_SHIFT, SIDEBAR_PAGE_GAP, SIDEBAR_WIDTH } from './sidebarConstants.mjs';
|
|
9
|
-
import { e as Comment } from '../content-
|
|
9
|
+
import { e as Comment } from '../content-DSb-6a9T.mjs';
|
|
10
10
|
import '../formatting-gqLFeJ9X.mjs';
|
|
11
11
|
import '../docx/wrapTypes.mjs';
|
|
12
12
|
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as MIN_CARD_GAP,c as SIDEBAR_DOCUMENT_SHIFT,b as SIDEBAR_PAGE_GAP,a as SIDEBAR_WIDTH}from'../chunk-YUOKI2HB.mjs';export{f as blendColors,r as colorsEqual,o as createRgbColor,n as createThemeColor,d as darkenColor,p as ensureHexPrefix,h as generateThemeTintShadeMatrix,c as getContrastingColor,g as getThemeTintShadeHex,k as isBlack,l as isWhite,e as lightenColor,m as parseColorString,a as resolveColor,b as resolveColorToHex,i as resolveHighlightColor,q as resolveHighlightToCss,j as resolveShadingColor}from'../chunk-LTVVQMHB.mjs';export{a as PIXELS_PER_INCH,e as TWIPS_PER_INCH,p as clamp,n as eighthsToPixels,b as emuToPixels,i as emuToTwips,q as formatPx,k as halfPointsToPixels,l as halfPointsToPoints,c as pixelsToEmu,h as pixelsToTwips,m as pointsToHalfPoints,d as pointsToPixels,o as roundPixels,j as twipsToEmu,g as twipsToPixels}from'../chunk-CTBUQRYQ.mjs';import {n,d}from'../chunk-7DDF4RHB.mjs';export{s as FONT_MAPPING,n as canRenderFont,z as createFontLoadScope,c as deobfuscateFont,C as extractEmbeddedFontFaces,x as extractFontsFromDocument,B as getEmbeddedFontFaces,A as getEmbeddedFontFamilies,t as getGoogleFontEquivalent,k as getLoadedFonts,g as isFontLoaded,i as isGoogleFontsEnabled,j as isLoading,b as isValidFontKey,y as loadDocumentFonts,E as loadEmbeddedFontFamilies,D as loadEmbeddedFonts,e as loadFont,r as loadFontDefinitions,o as loadFontFromBuffer,q as loadFontFromUrl,u as loadFontWithMapping,f as loadFonts,v as loadFontsWithMapping,m as onFontError,l as onFontsLoaded,w as preloadCommonFonts,p as registerDocumentFaces,h as setGoogleFontsEnabled,a as toArrayBuffer}from'../chunk-7DDF4RHB.mjs';import'../chunk-YLFKV2NT.mjs';import'../chunk-LT2GCWZ3.mjs';import'../chunk-HPZFJGGM.mjs';import'../chunk-2QHGQA3V.mjs';import'../chunk-3CYO46ML.mjs';import'../chunk-6CHGYCFU.mjs';import'../chunk-DLXIZBB6.mjs';import'../chunk-TTRUPDAB.mjs';function H(e){let t=new Set,o=e.package;if(o.theme&&st(o.theme,t),o.styles&&it(o.styles,t),o.document)for(let n of o.document.content)T(n,t);if(o.headers)for(let n of o.headers.values())O(n,t);if(o.footers)for(let n of o.footers.values())O(n,t);if(o.footnotes)for(let n of o.footnotes)gt(n,t);if(o.endnotes)for(let n of o.endnotes)ht(n,t);return Array.from(t).sort()}function st(e,t){let o=e.fontScheme;o&&(o.majorFont&&_(o.majorFont,t),o.minorFont&&_(o.minorFont,t));}function _(e,t){if(e.latin&&t.add(e.latin),e.ea&&t.add(e.ea),e.cs&&t.add(e.cs),e.fonts)for(let o of Object.values(e.fonts))o&&t.add(o);}function it(e,t){e.docDefaults&&(e.docDefaults.rPr&&h(e.docDefaults.rPr,t),e.docDefaults.pPr?.runProperties&&h(e.docDefaults.pPr.runProperties,t));for(let o of e.styles)o.rPr&&h(o.rPr,t),o.pPr?.runProperties&&h(o.pPr.runProperties,t);}function h(e,t){let o=e.fontFamily;o&&(o.ascii&&t.add(o.ascii),o.hAnsi&&t.add(o.hAnsi),o.eastAsia&&t.add(o.eastAsia),o.cs&&t.add(o.cs));}function lt(e,t){e.runProperties&&h(e.runProperties,t);}function T(e,t){e.type==="paragraph"?ct(e,t):e.type==="table"&&ut(e,t);}function ct(e,t){e.formatting&<(e.formatting,t);for(let o of e.content)ft(o,t);}function ft(e,t){if(e.type==="run")b(e,t);else if(e.type==="hyperlink")dt(e,t);else if(e.type==="simpleField"||e.type==="complexField"){if("content"in e)for(let o of e.content)o.type==="run"&&b(o,t);if("fieldResult"in e)for(let o of e.fieldResult)b(o,t);}}function b(e,t){e.formatting&&h(e.formatting,t);}function dt(e,t){for(let o of e.children)o.type==="run"&&b(o,t);}function ut(e,t){for(let o of e.rows)mt(o,t);}function mt(e,t){for(let o of e.cells)pt(o,t);}function pt(e,t){for(let o of e.content)T(o,t);}function O(e,t){for(let o of e.content)T(o,t);}function gt(e,t){for(let o of e.content)T(o,t);}function ht(e,t){for(let o of e.content)T(o,t);}var xt=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui"]);function L(e,t={}){let o=t.canRender??n,n$1=new Set;for(let i of t.exclude??[])n$1.add(i.trim().toLowerCase());let r=new Set;for(let i of t.embeddedFamilies??[])r.add(i.trim().toLowerCase());let s=[],a=new Set;for(let i of e){let c=i.trim(),f=c.toLowerCase();!c||xt.has(f)||n$1.has(f)||a.has(f)||!r.has(f)&&!o(c)||(a.add(f),s.push({name:c,fontFamily:d(c).cssFallback,category:"other"}));}return s}function Ft(e,t={}){return L(H(e),t)}function Tt(e,t){if(!e||e.length===0)return [];let o=new Set;for(let s of t)o.add(s.trim().toLowerCase());let n=new Set,r=[];for(let s of e){let a=s.name.trim().toLowerCase();o.has(a)||n.has(a)||(n.add(a),r.push(s));}return r}function bt(e){let t=[];return e.descendants((o,n)=>{if(o.type.name==="paragraph"){let r=o.attrs.outlineLevel,s=o.attrs.styleId,a=r;if(a==null&&s){let i=s.match(/^[Hh]eading(\d)$/);i&&(a=parseInt(i[1],10)-1);}if(a!=null&&a>=0&&a<=8){let i="";o.forEach(c=>{c.isText&&(i+=c.text||"");}),i.trim()&&t.push({text:i.trim(),level:a,pmPos:n});}}}),t}var N="rgba(255, 235, 59, 0.55)",yt=1200,y="docx-paragraph-flash",S=new WeakMap;function Ct(e){let t=globalThis;return typeof t.CSS?.escape=="function"?t.CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function At(e){return e?.color?.trim()||N}function St(e){let t=e?.durationMs;return t==null||!Number.isFinite(t)||t<0?1200:t}function k(e,t){if(!t||!t.trim())return [];let o=Ct(t);return Array.from(e.querySelectorAll(`.layout-paragraph[data-para-id="${o}"]`))}function W(e,t){let o=0,n=At(t),r=St(t);for(let s of e){o++;let a=S.get(s);a!==void 0&&clearTimeout(a),s.classList.remove(y),s.offsetWidth,s.style.setProperty("--docx-paragraph-flash-color",n),s.style.setProperty("--docx-paragraph-flash-duration",`${r}ms`),s.classList.add(y);let i=setTimeout(()=>{s.classList.remove(y),s.style.removeProperty("--docx-paragraph-flash-color"),s.style.removeProperty("--docx-paragraph-flash-duration"),S.delete(s);},r);S.set(s,i);}return o}function Et(e,t,o){let n=k(e,t);return W(n,o)>0}function B(e,t,o){let n=0;for(let r=t;r<t+o&&r<e.length;r++)n+=e[r];return n}function wt(e,t,o,n){let r=B(e,t,o),s=Math.floor(r/Math.max(n,1)),a=r-s*n,i=Array.from({length:n},(c,f)=>s+(f<a?1:0));return [...e.slice(0,t),...i,...e.slice(t+o)]}function Pt(e,t,o,n,r,s){let a=o-t.rowspan,i=n-t.colspan,c=r+a,f=t.row+t.rowspan,F=t.col+t.colspan,p=[];for(let l of e){if(l===t)continue;let g=l.row+l.rowspan,C=l.col+l.colspan,I=l.row<f&&g>t.row,v=l.col<F&&C>t.col;p.push({data:l.data,row:l.row>=f?l.row+a:l.row,col:l.col>=F?l.col+i:l.col,rowspan:l.rowspan+(a>0&&I&&!v?a:0),colspan:l.colspan+(i>0&&v&&!I?i:0)});}for(let l=0;l<o;l++)for(let g=0;g<n;g++){let C=l===0&&g===0;p.push({data:s(C,l,g),row:t.row+l,col:t.col+g,rowspan:1,colspan:1});}return {anchors:p,deltaRows:a,deltaCols:i,newRowCount:c}}function Rt(e){let t=new Map,o=new Map;for(let n of e){t.set(`${n.row}-${n.col}`,n);for(let r=n.row;r<n.row+n.rowspan;r++)for(let s=n.col;s<n.col+n.colspan;s++)o.set(`${r}-${s}`,n);}return {byStart:t,byCoveredSlot:o}}function Dt(e,t){let o=e>1||t>1;return {minRows:e,minCols:t,initialRows:e,initialCols:o?t:t+1}}var It=/[\p{L}\p{N}\p{M}_''\-]/u,vt=/\s/;function E(e){return !e||e.length===0?false:It.test(e)}function w(e){return !e||e.length===0?false:vt.test(e)}function m(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(w(o)){let n=t,r=t;for(;n>0&&w(e[n-1]);)n--;for(;r<e.length&&w(e[r]);)r++;return [n,r]}if(E(o)){let n=t,r=t;for(;n>0&&E(e[n-1]);)n--;for(;r<e.length&&E(e[r]);)r++;return [n,r]}return [t,t+1]}function Mt(e,t){let[o,n]=m(e,t);return e.slice(o,n)}function _t(e,t){let[o,n]=m(e,t);return {word:e.slice(o,n),startIndex:o,endIndex:n}}function D(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let n=o.textContent||"",r=t.startOffset,[s,a]=m(n,r);if(a>s)return t.setStart(o,s),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let n=o,r=G(n);if(r.length>0){let s=t.startOffset,a=null,i=s;if(s<n.childNodes.length){let c=n.childNodes[s];if(c.nodeType===Node.TEXT_NODE)a=c,i=0;else if(c instanceof Element){let f=G(c);f.length>0&&(a=f[0],i=0);}}if(!a&&r.length>0&&(a=r[0],i=0),a){let c=a.textContent||"",[f,F]=m(c,i);if(F>f){let p=document.createRange();return p.setStart(a,f),p.setEnd(a,F),e.removeAllRanges(),e.addRange(p),true}}}}return false}function Ot(e,t){let o=window.getSelection();if(!o)return false;let n=e.textContent||"",[r,s]=m(n,t);if(s>r){let a=document.createRange();return a.setStart(e,r),a.setEnd(e,s),o.removeAllRanges(),o.addRange(a),true}return false}function Ht(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return D();let o=t.startContainer,n=t.endContainer,r=t.startOffset,s=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[i]=m(a,t.startOffset);r=i;}if(n.nodeType===Node.TEXT_NODE){let a=n.textContent||"",i=Math.max(0,t.endOffset-1),[,c]=m(a,i);s=c;}try{return t.setStart(o,r),t.setEnd(n,s),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function X(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,n=Lt(o);if(n){let r=document.createRange();return r.selectNodeContents(n),e.removeAllRanges(),e.addRange(r),true}return false}function Lt(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function G(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),n;for(;n=o.nextNode();)n.nodeType===Node.TEXT_NODE&&t.push(n);return t}var P=0,x=null,R=null,Nt=500;function U(){P=0,R=null,x&&(clearTimeout(x),x=null);}function K(e){return e.target!==R&&U(),P++,R=e.target,x&&clearTimeout(x),x=setTimeout(U,Nt),Math.min(P,3)}function kt(){return e=>{e.ctrlKey||e.metaKey||e.altKey||D();}}function Wt(){return e=>{if(K(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;X();}}}async function Bt(e){let t=e.target;if(!t||!t.files)return null;let o=t.files[0];return t.value="",o?{buffer:await o.arrayBuffer(),name:o.name.replace(/\.docx$/i,"")}:null}var $="(prefers-color-scheme: dark)";function z(){return typeof window<"u"&&typeof window.matchMedia=="function"}function Gt(){return z()?window.matchMedia($).matches:false}function Ut(e,t){return e==="dark"||e==="system"&&t}function Xt(e){if(!z())return ()=>{};let t=window.matchMedia($);e(t.matches);let o=n=>e(n.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}var Kt=-1;function $t(){let e=1;return {next:()=>e++,seedAbove(t){t>=e&&(e=t+1);}}}function zt(e,t,o,n){return {id:e.next(),author:o,date:new Date().toISOString(),content:[{type:"paragraph",formatting:{},content:[{type:"run",formatting:{},content:[{type:"text",text:t}]}]}],...n!==void 0&&{parentId:n}}}var jt=/^[a-z][a-z0-9+.-]*:/i,qt=/^(https?|mailto|tel|ftp):/i;function Qt(e){if(!e)return;let t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(t)return jt.test(t)?qt.test(t)?e:void 0:e}export{N as DEFAULT_PARAGRAPH_FLASH_COLOR,yt as DEFAULT_PARAGRAPH_FLASH_DURATION_MS,y as PARAGRAPH_FLASH_CLASS_NAME,Kt as PENDING_COMMENT_ID,Rt as buildAnchorMaps,bt as collectHeadings,Dt as computeSplitDialogDefaults,Pt as computeSplitLayout,zt as createComment,$t as createCommentIdAllocator,kt as createDoubleClickWordSelector,Wt as createTripleClickParagraphSelector,Tt as excludeFontsByName,Ht as expandSelectionToWordBoundaries,k as findParagraphFragmentsByParaId,_t as findWordAt,m as findWordBoundaries,W as flashParagraphElements,Et as flashParagraphFragmentsByParaId,Ft as getRenderableDocumentFonts,Mt as getWordAt,K as handleClickForMultiClick,Gt as prefersColorSchemeDark,Bt as readDocxFileFromInput,wt as redistributeColumnWidths,Ut as resolveIsDark,Qt as sanitizeHref,X as selectParagraphAtCursor,L as selectRenderableFonts,D as selectWordAtCursor,Ot as selectWordInTextNode,Xt as subscribeSystemDark,B as sumColumnWidths};
|
|
1
|
+
export{d as MIN_CARD_GAP,c as SIDEBAR_DOCUMENT_SHIFT,b as SIDEBAR_PAGE_GAP,a as SIDEBAR_WIDTH}from'../chunk-YUOKI2HB.mjs';export{f as blendColors,r as colorsEqual,o as createRgbColor,n as createThemeColor,d as darkenColor,p as ensureHexPrefix,h as generateThemeTintShadeMatrix,c as getContrastingColor,g as getThemeTintShadeHex,k as isBlack,l as isWhite,e as lightenColor,m as parseColorString,a as resolveColor,b as resolveColorToHex,i as resolveHighlightColor,q as resolveHighlightToCss,j as resolveShadingColor}from'../chunk-LTVVQMHB.mjs';export{a as PIXELS_PER_INCH,e as TWIPS_PER_INCH,p as clamp,n as eighthsToPixels,b as emuToPixels,i as emuToTwips,q as formatPx,k as halfPointsToPixels,l as halfPointsToPoints,c as pixelsToEmu,h as pixelsToTwips,m as pointsToHalfPoints,d as pointsToPixels,o as roundPixels,j as twipsToEmu,g as twipsToPixels}from'../chunk-CTBUQRYQ.mjs';import {n,d}from'../chunk-VH7P4734.mjs';export{s as FONT_MAPPING,n as canRenderFont,z as createFontLoadScope,c as deobfuscateFont,C as extractEmbeddedFontFaces,x as extractFontsFromDocument,B as getEmbeddedFontFaces,A as getEmbeddedFontFamilies,t as getGoogleFontEquivalent,k as getLoadedFonts,g as isFontLoaded,i as isGoogleFontsEnabled,j as isLoading,b as isValidFontKey,y as loadDocumentFonts,E as loadEmbeddedFontFamilies,D as loadEmbeddedFonts,e as loadFont,r as loadFontDefinitions,o as loadFontFromBuffer,q as loadFontFromUrl,u as loadFontWithMapping,f as loadFonts,v as loadFontsWithMapping,m as onFontError,l as onFontsLoaded,w as preloadCommonFonts,p as registerDocumentFaces,h as setGoogleFontsEnabled,a as toArrayBuffer}from'../chunk-VH7P4734.mjs';import'../chunk-EBYC3CX7.mjs';import {a}from'../chunk-UBUTIWXN.mjs';import'../chunk-LT2GCWZ3.mjs';import'../chunk-HPZFJGGM.mjs';import'../chunk-AXFMDV66.mjs';import'../chunk-GKWXOZZH.mjs';import'../chunk-HGKSOBXK.mjs';import'../chunk-DLXIZBB6.mjs';import'../chunk-TTRUPDAB.mjs';function L(e){let t=new Set,o=e.package;if(o.theme&&it(o.theme,t),o.styles&<(o.styles,t),o.document)for(let n of o.document.content)y(n,t);if(o.headers)for(let n of o.headers.values())H(n,t);if(o.footers)for(let n of o.footers.values())H(n,t);if(o.footnotes)for(let n of o.footnotes)ht(n,t);if(o.endnotes)for(let n of o.endnotes)xt(n,t);return Array.from(t).sort()}function it(e,t){let o=e.fontScheme;o&&(o.majorFont&&O(o.majorFont,t),o.minorFont&&O(o.minorFont,t));}function O(e,t){if(e.latin&&t.add(e.latin),e.ea&&t.add(e.ea),e.cs&&t.add(e.cs),e.fonts)for(let o of Object.values(e.fonts))o&&t.add(o);}function lt(e,t){e.docDefaults&&(e.docDefaults.rPr&&x(e.docDefaults.rPr,t),e.docDefaults.pPr?.runProperties&&x(e.docDefaults.pPr.runProperties,t));for(let o of e.styles)o.rPr&&x(o.rPr,t),o.pPr?.runProperties&&x(o.pPr.runProperties,t);}function x(e,t){let o=e.fontFamily;o&&(o.ascii&&t.add(o.ascii),o.hAnsi&&t.add(o.hAnsi),o.eastAsia&&t.add(o.eastAsia),o.cs&&t.add(o.cs));}function ct(e,t){e.runProperties&&x(e.runProperties,t);}function y(e,t){e.type==="paragraph"?ft(e,t):e.type==="table"&&mt(e,t);}function ft(e,t){e.formatting&&ct(e.formatting,t);for(let o of e.content)dt(o,t);}function dt(e,t){if(e.type==="run")h(e,t);else if(e.type==="hyperlink")ut(e,t),a(e,o=>{o.type==="run"&&h(o,t);});else if(e.type==="inlineSdt"||e.type==="insertion"||e.type==="deletion"||e.type==="moveFrom"||e.type==="moveTo")a(e,o=>{o.type==="run"&&h(o,t);});else if(e.type==="simpleField"||e.type==="complexField"){if("content"in e)for(let o of e.content)o.type==="run"&&h(o,t);if("fieldResult"in e)for(let o of e.fieldResult)h(o,t);a(e,o=>{o.type==="run"&&h(o,t);});}}function h(e,t){e.formatting&&x(e.formatting,t);}function ut(e,t){for(let o of e.children)o.type==="run"&&h(o,t);}function mt(e,t){for(let o of e.rows)pt(o,t);}function pt(e,t){for(let o of e.cells)gt(o,t);}function gt(e,t){for(let o of e.content)y(o,t);}function H(e,t){for(let o of e.content)y(o,t);}function ht(e,t){for(let o of e.content)y(o,t);}function xt(e,t){for(let o of e.content)y(o,t);}var Ft=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui"]);function N(e,t={}){let o=t.canRender??n,n$1=new Set;for(let i of t.exclude??[])n$1.add(i.trim().toLowerCase());let r=new Set;for(let i of t.embeddedFamilies??[])r.add(i.trim().toLowerCase());let s=[],a=new Set;for(let i of e){let c=i.trim(),f=c.toLowerCase();!c||Ft.has(f)||n$1.has(f)||a.has(f)||!r.has(f)&&!o(c)||(a.add(f),s.push({name:c,fontFamily:d(c).cssFallback,category:"other"}));}return s}function Tt(e,t={}){return N(L(e),t)}function yt(e,t){if(!e||e.length===0)return [];let o=new Set;for(let s of t)o.add(s.trim().toLowerCase());let n=new Set,r=[];for(let s of e){let a=s.name.trim().toLowerCase();o.has(a)||n.has(a)||(n.add(a),r.push(s));}return r}function bt(e){let t=[];return e.descendants((o,n)=>{if(o.type.name==="paragraph"){let r=o.attrs.outlineLevel,s=o.attrs.styleId,a=r;if(a==null&&s){let i=s.match(/^[Hh]eading(\d)$/);i&&(a=parseInt(i[1],10)-1);}if(a!=null&&a>=0&&a<=8){let i="";o.forEach(c=>{c.isText&&(i+=c.text||"");}),i.trim()&&t.push({text:i.trim(),level:a,pmPos:n});}}}),t}var k="rgba(255, 235, 59, 0.55)",Ct=1200,C="docx-paragraph-flash",E=new WeakMap;function At(e){let t=globalThis;return typeof t.CSS?.escape=="function"?t.CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function St(e){return e?.color?.trim()||k}function Et(e){let t=e?.durationMs;return t==null||!Number.isFinite(t)||t<0?1200:t}function W(e,t){if(!t||!t.trim())return [];let o=At(t);return Array.from(e.querySelectorAll(`.layout-paragraph[data-para-id="${o}"]`))}function B(e,t){let o=0,n=St(t),r=Et(t);for(let s of e){o++;let a=E.get(s);a!==void 0&&clearTimeout(a),s.classList.remove(C),s.offsetWidth,s.style.setProperty("--docx-paragraph-flash-color",n),s.style.setProperty("--docx-paragraph-flash-duration",`${r}ms`),s.classList.add(C);let i=setTimeout(()=>{s.classList.remove(C),s.style.removeProperty("--docx-paragraph-flash-color"),s.style.removeProperty("--docx-paragraph-flash-duration"),E.delete(s);},r);E.set(s,i);}return o}function wt(e,t,o){let n=W(e,t);return B(n,o)>0}function G(e,t,o){let n=0;for(let r=t;r<t+o&&r<e.length;r++)n+=e[r];return n}function Pt(e,t,o,n){let r=G(e,t,o),s=Math.floor(r/Math.max(n,1)),a=r-s*n,i=Array.from({length:n},(c,f)=>s+(f<a?1:0));return [...e.slice(0,t),...i,...e.slice(t+o)]}function Rt(e,t,o,n,r,s){let a=o-t.rowspan,i=n-t.colspan,c=r+a,f=t.row+t.rowspan,T=t.col+t.colspan,p=[];for(let l of e){if(l===t)continue;let g=l.row+l.rowspan,A=l.col+l.colspan,I=l.row<f&&g>t.row,M=l.col<T&&A>t.col;p.push({data:l.data,row:l.row>=f?l.row+a:l.row,col:l.col>=T?l.col+i:l.col,rowspan:l.rowspan+(a>0&&I&&!M?a:0),colspan:l.colspan+(i>0&&M&&!I?i:0)});}for(let l=0;l<o;l++)for(let g=0;g<n;g++){let A=l===0&&g===0;p.push({data:s(A,l,g),row:t.row+l,col:t.col+g,rowspan:1,colspan:1});}return {anchors:p,deltaRows:a,deltaCols:i,newRowCount:c}}function Dt(e){let t=new Map,o=new Map;for(let n of e){t.set(`${n.row}-${n.col}`,n);for(let r=n.row;r<n.row+n.rowspan;r++)for(let s=n.col;s<n.col+n.colspan;s++)o.set(`${r}-${s}`,n);}return {byStart:t,byCoveredSlot:o}}function vt(e,t){let o=e>1||t>1;return {minRows:e,minCols:t,initialRows:e,initialCols:o?t:t+1}}var It=/[\p{L}\p{N}\p{M}_''\-]/u,Mt=/\s/;function w(e){return !e||e.length===0?false:It.test(e)}function P(e){return !e||e.length===0?false:Mt.test(e)}function m(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(P(o)){let n=t,r=t;for(;n>0&&P(e[n-1]);)n--;for(;r<e.length&&P(e[r]);)r++;return [n,r]}if(w(o)){let n=t,r=t;for(;n>0&&w(e[n-1]);)n--;for(;r<e.length&&w(e[r]);)r++;return [n,r]}return [t,t+1]}function _t(e,t){let[o,n]=m(e,t);return e.slice(o,n)}function Ot(e,t){let[o,n]=m(e,t);return {word:e.slice(o,n),startIndex:o,endIndex:n}}function v(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let n=o.textContent||"",r=t.startOffset,[s,a]=m(n,r);if(a>s)return t.setStart(o,s),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let n=o,r=U(n);if(r.length>0){let s=t.startOffset,a=null,i=s;if(s<n.childNodes.length){let c=n.childNodes[s];if(c.nodeType===Node.TEXT_NODE)a=c,i=0;else if(c instanceof Element){let f=U(c);f.length>0&&(a=f[0],i=0);}}if(!a&&r.length>0&&(a=r[0],i=0),a){let c=a.textContent||"",[f,T]=m(c,i);if(T>f){let p=document.createRange();return p.setStart(a,f),p.setEnd(a,T),e.removeAllRanges(),e.addRange(p),true}}}}return false}function Ht(e,t){let o=window.getSelection();if(!o)return false;let n=e.textContent||"",[r,s]=m(n,t);if(s>r){let a=document.createRange();return a.setStart(e,r),a.setEnd(e,s),o.removeAllRanges(),o.addRange(a),true}return false}function Lt(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return v();let o=t.startContainer,n=t.endContainer,r=t.startOffset,s=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[i]=m(a,t.startOffset);r=i;}if(n.nodeType===Node.TEXT_NODE){let a=n.textContent||"",i=Math.max(0,t.endOffset-1),[,c]=m(a,i);s=c;}try{return t.setStart(o,r),t.setEnd(n,s),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function K(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,n=Nt(o);if(n){let r=document.createRange();return r.selectNodeContents(n),e.removeAllRanges(),e.addRange(r),true}return false}function Nt(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function U(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),n;for(;n=o.nextNode();)n.nodeType===Node.TEXT_NODE&&t.push(n);return t}var R=0,F=null,D=null,kt=500;function X(){R=0,D=null,F&&(clearTimeout(F),F=null);}function $(e){return e.target!==D&&X(),R++,D=e.target,F&&clearTimeout(F),F=setTimeout(X,kt),Math.min(R,3)}function Wt(){return e=>{e.ctrlKey||e.metaKey||e.altKey||v();}}function Bt(){return e=>{if($(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;K();}}}async function Gt(e){let t=e.target;if(!t||!t.files)return null;let o=t.files[0];return t.value="",o?{buffer:await o.arrayBuffer(),name:o.name.replace(/\.docx$/i,"")}:null}var z="(prefers-color-scheme: dark)";function j(){return typeof window<"u"&&typeof window.matchMedia=="function"}function Ut(){return j()?window.matchMedia(z).matches:false}function Xt(e,t){return e==="dark"||e==="system"&&t}function Kt(e){if(!j())return ()=>{};let t=window.matchMedia(z);e(t.matches);let o=n=>e(n.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}var $t=-1;function zt(){let e=1;return {next:()=>e++,seedAbove(t){t>=e&&(e=t+1);}}}function jt(e,t,o,n){return {id:e.next(),author:o,date:new Date().toISOString(),content:[{type:"paragraph",formatting:{},content:[{type:"run",formatting:{},content:[{type:"text",text:t}]}]}],...n!==void 0&&{parentId:n}}}var qt=/^[a-z][a-z0-9+.-]*:/i,Qt=/^(https?|mailto|tel|ftp):/i;function Vt(e){if(!e)return;let t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(t)return qt.test(t)?Qt.test(t)?e:void 0:e}export{k as DEFAULT_PARAGRAPH_FLASH_COLOR,Ct as DEFAULT_PARAGRAPH_FLASH_DURATION_MS,C as PARAGRAPH_FLASH_CLASS_NAME,$t as PENDING_COMMENT_ID,Dt as buildAnchorMaps,bt as collectHeadings,vt as computeSplitDialogDefaults,Rt as computeSplitLayout,jt as createComment,zt as createCommentIdAllocator,Wt as createDoubleClickWordSelector,Bt as createTripleClickParagraphSelector,yt as excludeFontsByName,Lt as expandSelectionToWordBoundaries,W as findParagraphFragmentsByParaId,Ot as findWordAt,m as findWordBoundaries,B as flashParagraphElements,wt as flashParagraphFragmentsByParaId,Tt as getRenderableDocumentFonts,_t as getWordAt,$ as handleClickForMultiClick,Ut as prefersColorSchemeDark,Gt as readDocxFileFromInput,Pt as redistributeColumnWidths,Xt as resolveIsDark,Vt as sanitizeHref,K as selectParagraphAtCursor,N as selectRenderableFonts,v as selectWordAtCursor,Ht as selectWordInTextNode,Kt as subscribeSystemDark,G as sumColumnWidths};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-
|
|
1
|
+
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-RNNTXPXC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'./chunk-HPZFJGGM.mjs';export{a as preloadOpcWasm,c as rezipContainer,b as unzipContainer}from'./chunk-AXFMDV66.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'./chunk-EUUIJVM6.mjs';export{e as createEditSession,b as editWasmModule,g as exportDocxMarkdownJson,f as exportDocxStructuredJson,j as findDocxContentControlsJson,i as listDocxContentControlsJson,a as preloadEditWasm,c as preloadEditWasmFrom,h as renderDocxMarkdownJson,k as renderDocxMarkdownWithPagesJson,d as setEditWasmHeapLimit}from'./chunk-4PRCO6EC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-edit.d.mts
CHANGED
|
@@ -293,6 +293,10 @@ declare class EditSession {
|
|
|
293
293
|
* has `deletedTable: true`.
|
|
294
294
|
*/
|
|
295
295
|
delete_table(table_json: string): string;
|
|
296
|
+
/**
|
|
297
|
+
* The number of text batches applied directly to the live document.
|
|
298
|
+
*/
|
|
299
|
+
direct_batches_applied(): number;
|
|
296
300
|
/**
|
|
297
301
|
* Region-aware hit test against the resident display list, so no
|
|
298
302
|
* display-list JSON crosses the boundary. `x`/`y` are page-local px.
|
|
@@ -455,6 +459,7 @@ declare class EditSession {
|
|
|
455
459
|
* Returns `{"ok":true,"version"}` or a refusal.
|
|
456
460
|
*/
|
|
457
461
|
format_text_target_json(target_json: string, delta_json: string): string;
|
|
462
|
+
geometry_position_outline_json(root: string): string;
|
|
458
463
|
/**
|
|
459
464
|
* Whether the document has a story with this id.
|
|
460
465
|
*/
|
|
@@ -716,7 +721,10 @@ declare class EditSession {
|
|
|
716
721
|
/**
|
|
717
722
|
* The paragraph IDs a save applies, as the package writer's
|
|
718
723
|
* `paragraphIds` request field: `{"assignments":[{"part","ordinal",
|
|
719
|
-
* "paraId"}],"patchedParts":[{"part","paraIds":[[ordinal,"ID"]]}]}
|
|
724
|
+
* "paraId"}],"patchedParts":[{"part","paraIds":[[ordinal,"ID"]]}]}`,
|
|
725
|
+
* plus `"splicedParts":[{"part","sha256","paragraphs":[[ordinal,"key"]],
|
|
726
|
+
* "changed":[ordinal]}]`, whose session keys the caller resolves to the
|
|
727
|
+
* model paragraphs it marks with their ordinals.
|
|
720
728
|
*/
|
|
721
729
|
paragraph_save_plan(): string;
|
|
722
730
|
/**
|
|
@@ -743,6 +751,7 @@ declare class EditSession {
|
|
|
743
751
|
* when nothing was changed.
|
|
744
752
|
*/
|
|
745
753
|
persist_paragraph_ids(): string;
|
|
754
|
+
proposal_revision_ranges_json(ids_json: string): string;
|
|
746
755
|
/**
|
|
747
756
|
* Versioned paragraph texts:
|
|
748
757
|
* `{"story"?,"paraIds"?,"view":"accepted"|"original"}` ->
|
|
@@ -785,6 +794,10 @@ declare class EditSession {
|
|
|
785
794
|
* receipt and error contract.
|
|
786
795
|
*/
|
|
787
796
|
reject_change(target_json: string): string;
|
|
797
|
+
/**
|
|
798
|
+
* Release display pages; an empty result means the request was superseded.
|
|
799
|
+
*/
|
|
800
|
+
release_display_pages_frame(pages: Uint32Array, expected_frame_epoch: number): Uint8Array;
|
|
788
801
|
/**
|
|
789
802
|
* Replaces `[start, end)` with `text` in one transaction. The inserted
|
|
790
803
|
* text adopts the first replaced unit's formatting; in suggesting mode
|
|
@@ -961,6 +974,10 @@ declare class EditSession {
|
|
|
961
974
|
* position holds no embed.
|
|
962
975
|
*/
|
|
963
976
|
set_content_control_value_at(story: string, para_id: string, offset: number, value_json: string): void;
|
|
977
|
+
/**
|
|
978
|
+
* Apply admitted paragraph-local text batches directly. Off by default.
|
|
979
|
+
*/
|
|
980
|
+
set_direct_batches(enabled: boolean): void;
|
|
964
981
|
/**
|
|
965
982
|
* Keep every previously built page while windowed builds are on.
|
|
966
983
|
*/
|
|
@@ -995,6 +1012,10 @@ declare class EditSession {
|
|
|
995
1012
|
* Errors when that position holds no image.
|
|
996
1013
|
*/
|
|
997
1014
|
set_image_geometry_at(story: string, para_id: string, offset: number, geometry_json: string): void;
|
|
1015
|
+
/**
|
|
1016
|
+
* Let an eligible resident text edit re-lower only its paragraph. Off by default.
|
|
1017
|
+
*/
|
|
1018
|
+
set_local_lowering(enabled: boolean): void;
|
|
998
1019
|
/**
|
|
999
1020
|
* Whether [`EditSession::open_docx`] seeds images as `media:{n}` tokens,
|
|
1000
1021
|
* which only a replica opened from the same package resolves, instead of
|
|
@@ -1225,6 +1246,10 @@ declare class EditSession {
|
|
|
1225
1246
|
|
|
1226
1247
|
/** Load + instantiate the editing-core wasm (browser path). Idempotent. */
|
|
1227
1248
|
declare function preloadEditWasm(input?: WasmAsyncInput): Promise<void>;
|
|
1249
|
+
/** @internal */
|
|
1250
|
+
declare function editWasmModule(): Promise<WebAssembly.Module | null>;
|
|
1251
|
+
/** @internal */
|
|
1252
|
+
declare function preloadEditWasmFrom(source: Promise<WebAssembly.Module | null>): Promise<void>;
|
|
1228
1253
|
/**
|
|
1229
1254
|
* Caps the bytes the editing core in this thread may allocate at once; an
|
|
1230
1255
|
* allocation past the cap fails as if the memory were full. Undefined removes it.
|
|
@@ -1249,4 +1274,4 @@ declare function findDocxContentControlsJson(bytes: Uint8Array, query: string, o
|
|
|
1249
1274
|
/** Markdown rendering of a paged export's JSON, with optional page markers. */
|
|
1250
1275
|
declare function renderDocxMarkdownWithPagesJson(content: string, options: string): string;
|
|
1251
1276
|
|
|
1252
|
-
export { EditSession, createEditSession, exportDocxMarkdownJson, exportDocxStructuredJson, findDocxContentControlsJson, listDocxContentControlsJson, preloadEditWasm, renderDocxMarkdownJson, renderDocxMarkdownWithPagesJson, setEditWasmHeapLimit };
|
|
1277
|
+
export { EditSession, createEditSession, editWasmModule, exportDocxMarkdownJson, exportDocxStructuredJson, findDocxContentControlsJson, listDocxContentControlsJson, preloadEditWasm, preloadEditWasmFrom, renderDocxMarkdownJson, renderDocxMarkdownWithPagesJson, setEditWasmHeapLimit };
|
package/dist/wasm-edit.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{e as createEditSession,b as editWasmModule,g as exportDocxMarkdownJson,f as exportDocxStructuredJson,j as findDocxContentControlsJson,i as listDocxContentControlsJson,a as preloadEditWasm,c as preloadEditWasmFrom,h as renderDocxMarkdownJson,k as renderDocxMarkdownWithPagesJson,d as setEditWasmHeapLimit}from'./chunk-4PRCO6EC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-layout.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-
|
|
1
|
+
export{p as buildDisplayListJson,t as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,i as hasDisplayListUpdate,e as hasRangeRectsRegion,j as hitTestRegionsByHandle,b as hitTestRegionsJson,q as layoutDocumentJson,u as measureParagraphJson,f as openDisplayList,v as outlineGlyphJson,a as preloadLayoutWasm,m as rangeRectsByHandle,c as rangeRectsJson,o as rangeRectsRegionByHandle,n as rangeRectsRegionJson,r as registerMeasureFont,s as registerSubstituteMeasureFont,h as updateDisplayList,l as verticalMoveByHandle,k as verticalMoveJson}from'./chunk-RNNTXPXC.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-opc.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as preloadOpcWasm,c as rezipContainer,b as unzipContainer}from'./chunk-
|
|
1
|
+
export{a as preloadOpcWasm,c as rezipContainer,b as unzipContainer}from'./chunk-AXFMDV66.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-parse.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{h as decodeTiffImage,b as parseDocxS9Wire,c as parseRelationshipsXmlWire,a as preloadParseWasm,d as serializeDocxS10Wire,e as serializeDocxS11Wire,f as serializeDocxS12Wire,g as writeDocxS13Wire}from'./chunk-
|
|
1
|
+
export{h as decodeTiffImage,b as parseDocxS9Wire,c as parseRelationshipsXmlWire,a as preloadParseWasm,d as serializeDocxS10Wire,e as serializeDocxS11Wire,f as serializeDocxS12Wire,g as writeDocxS13Wire}from'./chunk-GKWXOZZH.mjs';import'./chunk-HGKSOBXK.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/yrs/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../formatting-gqLFeJ9X.mjs';
|
|
2
2
|
import '../types/document.mjs';
|
|
3
|
-
export { A as AnchorGeometryTarget, x as AnchorReader, y as AnchorResolutionFailure, z as CreateYrsSessionOptions, D as DocxOccurrence, B as DocxParagraphAnchor, E as DocxParagraphAnchorResult, F as DocxParagraphIdAssignment, G as DocxParagraphIdDiagnostic, H as DocxParagraphIdOrigin, I as DocxParagraphIdRefusal, J as DocxParagraphIdentity, K as DocxParagraphIdentityReceipt, L as DocxParagraphIdentitySnapshot, M as DocxParagraphOrigin, N as DocxParagraphRef, O as DocxParagraphSavePlan, P as DocxPersistedParagraphAnchor, Q as DocxProposalFailure, R as DocxProposalInput, S as DocxProposalRecord, T as DocxProposalRegistryState, U as DocxProposalRequest, V as DocxProposalResult, W as DocxProposalSnapshot, X as DocxProposalState, Z as DocxProposalStateRequest, _ as DocxProposalWithdrawRequest, $ as DocxSavedDocument, a0 as DocxSavedParagraph, a1 as DocxSessionParagraphAnchor, a2 as DocxSessionSave, a3 as DocxSourceParagraphAnchor, a4 as DocxSourceStory, a5 as ProposalDisplayTarget, a6 as ProposalGeometryMirror, a7 as ProposalGeometryReader, a8 as
|
|
3
|
+
export { A as AnchorGeometryTarget, x as AnchorReader, y as AnchorResolutionFailure, z as CreateYrsSessionOptions, D as DocxOccurrence, B as DocxParagraphAnchor, E as DocxParagraphAnchorResult, F as DocxParagraphIdAssignment, G as DocxParagraphIdDiagnostic, H as DocxParagraphIdOrigin, I as DocxParagraphIdRefusal, J as DocxParagraphIdentity, K as DocxParagraphIdentityReceipt, L as DocxParagraphIdentitySnapshot, M as DocxParagraphOrigin, N as DocxParagraphRef, O as DocxParagraphSavePlan, P as DocxPersistedParagraphAnchor, Q as DocxProposalFailure, R as DocxProposalInput, S as DocxProposalRecord, T as DocxProposalRegistryState, U as DocxProposalRequest, V as DocxProposalResult, W as DocxProposalSnapshot, X as DocxProposalState, Z as DocxProposalStateRequest, _ as DocxProposalWithdrawRequest, $ as DocxSavedDocument, a0 as DocxSavedParagraph, a1 as DocxSessionParagraphAnchor, a2 as DocxSessionSave, a3 as DocxSourceParagraphAnchor, a4 as DocxSourceStory, a5 as ProposalDisplayTarget, a6 as ProposalGeometryMirror, a7 as ProposalGeometryReader, a8 as ProposalGeometryRevision, a9 as ProposalGeometryTarget, aa as RawAnchorRange, ab as ResidentCaretPaintStyle, ac as ResidentEngineOffscreenPage, ad as ResidentEngineWorkerApplyResult, ae as ResidentEngineWorkerClient, af as ResidentEngineWorkerFrame, ag as ResidentEngineWorkerOpened, ah as ResidentProposalReply, ai as ResidentWorkerFailureError, aj as ResidentWorkerOutOfMemoryError, ak as YrsAuthor, al as YrsCellBorder, am as YrsCellBorders, an as YrsCellLoc, ao as YrsChangeTarget, ap as YrsCommentInfo, aq as YrsCommentReceipt, ar as YrsContentControlValue, as as YrsDocxHost, at as YrsEngineApplyProfile, au as YrsHyperlinkAttrs, av as YrsImageGeometry, aw as YrsInlineFormatDelta, ax as YrsInputParagraphSeed, ay as YrsInputParagraphSpan, az as YrsInputPositionMap, u as YrsLoc, aA as YrsLocProjection, aB as YrsMediaSource, aC as YrsNumberingProperties, aD as YrsOpeningOptions, aE as YrsParaOffset, aF as YrsParagraph, aG as YrsParagraphAttrs, aH as YrsParagraphLength, aI as YrsParagraphReceipt, aJ as YrsParagraphSeed, aK as YrsParagraphSpan, aL as YrsParagraphTabStop, aM as YrsPointerProjectionTarget, aN as YrsPositionOutline, aO as YrsPositionProjection, aP as YrsProjectedCell, aQ as YrsProjectedNode, aR as YrsProjectedTable, aS as YrsRawOp, aT as YrsRegionLayoutProgress, a as YrsRenderEnv, aU as YrsReplaceReceipt, aV as YrsResidentCaretRect, aW as YrsResidentCaretSnapshot, aX as YrsResidentFontRegistration, aY as YrsResidentWorkerSnapshot, aZ as YrsResidentWorkerSyncOptions, a_ as YrsResolveReceipt, a$ as YrsResolvedCommentAnchor, w as YrsRevisionInfo, b0 as YrsRevisionReceipt, b1 as YrsRunMark, j as YrsSelection, b2 as YrsSelectionContext, b3 as YrsSelectionText, Y as YrsSession, b4 as YrsSplitReceipt, b5 as YrsStickyPosition, b6 as YrsStoryRange, b7 as YrsStorySeed, v as YrsStorySegment, b8 as YrsStorySegmentSource, b9 as YrsTableLoc, ba as YrsTableRange, bb as YrsTableReceipt, bc as YrsTargetEditResult, bd as YrsTextColor, be as YrsTextMatch, bf as YrsTextSearchOptions, bg as YrsTriState, bh as YrsUndoCaptureMode, bi as YrsWatermark, bj as YrsWorkerDocumentMirror, bk as anchorFailure, bl as canUseResidentEngineWorker, bm as captureSessionSave, bn as compareYrsLocs, bo as computeProposalGeometryMirror, bp as createYrsInputPositionMap, bq as createYrsLocProjectionFromOutline, br as createYrsPositionProjection, bs as createYrsSession, bt as decodeDocxHostJson, bu as displayPositionToYrsLoc, bv as documentToYrs, bw as editorSaveKeys, bx as hiddenRanges, by as isBodyStory, bz as ownProjectedParagraphs, bA as preloadDocxEngine, bB as preloadResidentEngineWorker, bC as prepareDocxBytes, bD as preparedDocxDigest, bE as projectYrsDisplayPosition, bF as proposalRevisionPreview, bG as proposalSetIdentity, bH as residentCaretDeviceRect, bI as residentCaretSnapshotForFrame, bJ as resolveAnchorTarget, bK as resolveMirroredNavigationTarget, bL as resolveNavigationTarget, bM as retainPreloadedResidentEngineWorker, bN as sameYrsSelection, bO as saveYrsDocx, bP as sessionSourcePackage, bQ as takePreloadedResidentEngineWorker, bR as textRangeToRaw, bS as writeSessionSave, bT as yrsLocToDisplayPosition, bU as yrsLocToProjectedDisplayPosition, bV as yrsToDocument } from '../index-DzZVJC8-.mjs';
|
|
4
4
|
export { o as DocxAnchor, p as DocxAnchorScope, ad as DocxAtomKind, q as DocxCachedResult, r as DocxCommentMetadata, s as DocxContentControl, t as DocxContentControlDiagnostic, l as DocxContentControlQuery, k as DocxContentControlReadFailure, u as DocxContentControlSelector, v as DocxContentControlValue, m as DocxContentControlsOptions, w as DocxContentControlsResult, n as DocxContentControlsSnapshot, x as DocxControlMetadata, a1 as DocxEditFailure, a2 as DocxEditFailureCode, ae as DocxEditFailureReason, af as DocxEditGuard, ag as DocxEditHistory, ah as DocxEditOperation, ai as DocxEditPreview, aj as DocxEditReceipt, ac as DocxEditRefusal, a8 as DocxEditRequest, aa as DocxEditResult, ak as DocxEditSource, al as DocxEditStep, a0 as DocxEditSuggestion, am as DocxEditTarget, y as DocxExportBlock, z as DocxExportCell, A as DocxExportDiagnostic, B as DocxExportDiagnosticCode, D as DocxExportFailure, C as DocxExportFailureCode, E as DocxExportInline, a as DocxExportOptions, F as DocxExportPage, G as DocxExportRefusal, H as DocxExportResult, I as DocxExportStory, J as DocxExportTable, a6 as DocxFindTextRequest, a7 as DocxFindTextResult, K as DocxFormattingMark, L as DocxFragmentGeometry, M as DocxHeadingInfo, N as DocxHeadlessFont, e as DocxHeadlessLayoutOptions, O as DocxInlineRevision, i as DocxLayoutMap, P as DocxLayoutProvenance, Q as DocxListInfo, b as DocxMarkdownContent, h as DocxMarkdownOptions, R as DocxPageDiagnostic, d as DocxPageExportOptions, S as DocxPageFragment, T as DocxPageMapContent, j as DocxPageMarkdownOptions, f as DocxPagedStructuredContent, U as DocxParagraphData, V as DocxParagraphHeading, an as DocxParagraphInput, ao as DocxParagraphTarget, ap as DocxParagraphText, a4 as DocxReadParagraphsRequest, a5 as DocxReadParagraphsResult, aq as DocxResolvedControl, W as DocxRevisionView, ar as DocxSearchScope, as as DocxSetContentControlTextStep, g as DocxSnapshotLayoutMap, X as DocxSnapshotLayoutProvenance, Y as DocxStoryKind, Z as DocxStoryOccurrence, _ as DocxStorySelection, c as DocxStructuredContent, at as DocxTextAtom, au as DocxTextMatch, av as DocxTextPosition, a3 as DocxTextRange, ab as DocxTextTarget, aw as DocxTextView, $ as DocxUnlocatedReason, a9 as DocxValidationResult, ax as EditSuccess, ay as OperationFailure, az as OperationRefusal, aA as ValidationSuccess } from '../pagedExport-BmSlEhoP.mjs';
|
|
5
5
|
export { b as WASM32_MEMORY_LIMIT_BYTES, c as WasmHeapStats, a as WasmModuleMemory, w as wasmModuleMemories } from '../loadWasmAsset-Cr95TImt.mjs';
|
|
6
|
-
import '../content-
|
|
6
|
+
import '../content-DSb-6a9T.mjs';
|
|
7
7
|
import '../docx/wrapTypes.mjs';
|
|
8
8
|
import '../styles-AryxLAhx.mjs';
|
|
9
|
-
import '../frameDelta-
|
|
10
|
-
import '../rezip-Bxiq4Z_R.mjs';
|
|
9
|
+
import '../frameDelta-CLeO7K5z.mjs';
|
|
11
10
|
import '../plugin-api/index.mjs';
|
|
11
|
+
import '../rezip-Bxiq4Z_R.mjs';
|