@docx-editor.dev/core 2.34.0 → 2.35.0-canary.20261102190412.sha-b9a04a3
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/automation.cjs +1 -1
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.js +1 -1
- package/dist/{chunk-V7CO55DO.cjs → chunk-36OE5A2F.cjs} +2 -2
- package/dist/chunk-4BMTYXQL.cjs +7 -0
- package/dist/{chunk-5HUVQXET.cjs → chunk-4UOOFSL5.cjs} +2 -2
- package/dist/{chunk-VLQDQNSS.js → chunk-5KPONTUV.js} +1 -1
- package/dist/{chunk-KCUXXO3Q.js → chunk-5X23LOBT.js} +1 -1
- package/dist/{chunk-VQOAC3VI.cjs → chunk-6JKXXUXG.cjs} +20 -20
- package/dist/chunk-7N553ZFH.js +1 -0
- package/dist/{chunk-5KOLFKOB.cjs → chunk-AXUSFHCQ.cjs} +5 -5
- package/dist/{chunk-ZJ74LCFI.cjs → chunk-BI2HHPJ7.cjs} +1 -1
- package/dist/{chunk-E5BKDHIP.cjs → chunk-CCGWLTCP.cjs} +1 -1
- package/dist/{chunk-L74TCGVH.cjs → chunk-CNGBQ36V.cjs} +1 -1
- package/dist/{chunk-7FUORGCW.js → chunk-CZIRRKXA.js} +1 -1
- package/dist/{chunk-DYLB5U42.js → chunk-EVTBNATS.js} +1 -1
- package/dist/{chunk-DR6W23TB.cjs → chunk-GVZRSFUY.cjs} +1 -1
- package/dist/{chunk-NEM774E3.cjs → chunk-HBEVI765.cjs} +1 -1
- package/dist/chunk-HQGFS7O5.js +30 -0
- package/dist/chunk-I3XDNCUJ.js +3 -0
- package/dist/{chunk-A5BTVPET.cjs → chunk-IK6L3RKU.cjs} +18 -18
- package/dist/chunk-IVQT6HDE.js +7 -0
- package/dist/chunk-JWNOCKTF.js +4 -0
- package/dist/{chunk-6MF5PN2E.js → chunk-KDA6HKHR.js} +18 -18
- package/dist/chunk-MCNHQCMR.js +2 -0
- package/dist/{chunk-37IYWENL.cjs → chunk-MKEJJKTH.cjs} +1 -1
- package/dist/{chunk-NKZVMMHU.cjs → chunk-NMV7DRHU.cjs} +1 -1
- package/dist/{chunk-AVCYP7OY.js → chunk-NTJWPRUU.js} +5 -5
- package/dist/chunk-PA4BATSI.js +32 -0
- package/dist/chunk-SRKJYXCG.js +1 -0
- package/dist/{chunk-IWXBRUPG.cjs → chunk-TKCFTVY4.cjs} +3 -3
- package/dist/{chunk-37RNWL45.js → chunk-UILTSNM6.js} +2 -2
- package/dist/{chunk-TXIO5WYQ.cjs → chunk-YBHYIWJH.cjs} +23 -23
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +8 -1
- package/dist/collaboration/replication.js +1 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.js +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-5JP3QQF7.js +0 -7
- package/dist/chunk-77JT2AU7.js +0 -2
- package/dist/chunk-AFXFH2T2.js +0 -3
- package/dist/chunk-BL2E4QRA.js +0 -1
- package/dist/chunk-DB7X4Y6O.js +0 -4
- package/dist/chunk-KYA4Y2YB.js +0 -1
- package/dist/chunk-NBSSQSKY.js +0 -30
- package/dist/chunk-UKG2TXWH.cjs +0 -7
- package/dist/chunk-YWJSQA2O.js +0 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {hh,Xg,Sg,ih,Yg,_g,jh,gh,qb,Ul}from'./chunk-KDA6HKHR.js';var w=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,j="Cambria";function $(e){return e!==void 0&&e.trim().length>0&&w.test(e)?e:null}function Q(e){if(e===void 0||e.trim().length===0)return null;if(e.length>1024)return j;let n=v(e);return n.length===0?null:w.test(n)?n:n.startsWith("@")||n.startsWith("\uFF20")?n.length<=128?n:null:j}function Z(e){return e===void 0||e.length>1024?null:$(v(e))}function v(e){let n=e.indexOf(",");return (n<0?e:e.slice(0,n)).trim()}function W(e){return e.kind!=="textValue"}function S(e,n){for(let l of e.children)if(W(l)&&l.localName===n)return l}function V(e,n){return e.attributes.find(l=>l.localName===n)?.value}function ne(e){let n=S(e,"pPr"),l=n?S(n,"outlineLvl"):void 0;if(l){let o=V(l,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let t=S(e,"name"),i=t?/^heading\s+([1-9])$/i.exec(V(t,"val")?.trim()??""):null;return i?Number(i[1])-1:null}function R(e,n=0,l=e.length,t){let i=new Set,o=new Map,d=new Map,u=t?[t]:[];t&&i.add(t);for(let s=n;s<l;s+=1){let r=e[s].node;if(Xg(r,"begin")){u.push(r.id);continue}if(Xg(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(Xg(r,"end")){let a=u.pop();a&&(i.add(a),d.set(r.id,a));}}return {activeBegins:i,separateBegin:o,endBegin:d}}function b(e,n,l){if(Xg(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(Xg(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(Xg(l,"end")){let t=n.endBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&e.pop(),true}return false}function g(e){for(let n of e)if(!n.separated)return false;return true}function ie(e,n){let l=[];hh(e,l,n);let t=R(l),i=[];return {consume:o=>b(i,t,o),visible:()=>g(i)}}function C(e,n){return e==="original"?n.hiddenInOriginal:e==="current"&&n.hiddenInCurrent}var U=4096,H=ih*16;function k(){return {out:[],runs:[],symbols:[],symbolDisplays:[],length:0}}function X(e,n,l,t){if(n.length===0||l===t)return;let i=e.runs[e.runs.length-1];if(i?.runId===n&&i.end===l){e.runs[e.runs.length-1]={runId:n,start:i.start,end:t};return}e.runs.push({runId:n,start:l,end:t});}function O(e,n,l,t){let i=gh(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;qb(n)&&(e.symbols.push(o),e.symbolDisplays.push(Ul(n))),e.out.push(i),e.length+=i.length,X(e,l,o,e.length);}return true}function z(e,n){let l=e.length;n.text.length>0&&e.out.push(n.text),e.length+=n.text.length;for(let t of n.runs)X(e,t.runId,l+t.start,l+t.end);for(let t of n.symbols??[])e.symbols.push(l+t);for(let t of n.symbolDisplays??[])e.symbolDisplays.push(t);}function T(e){let n=e.out.join("");return e.symbols.length>0?{text:n,runs:e.runs,symbols:e.symbols,symbolDisplays:e.symbolDisplays}:{text:n,runs:e.runs}}var G=Object.freeze({text:"",runs:[]});function M(){return {text:Sg,runs:[]}}function q(e,n,l,t){let i=[];if(!hh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(_g(u.node)){let s=[];if(!hh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!Yg(u.node)&&!O(d,u.node,u.runId,t))return null}}return T(d)}function J(e,n,l,t,i){let o=k(),d=[],u=R(e);for(let s of e){let r=s.node;if(!b(d,u,r)&&!Yg(r)&&g(d)&&!C(n,s)){if(_g(r)){let a=i>=jh?q(r,n,l,t):Y(r,n,l,t,i+1);if(a===null)return null;z(o,a);continue}if(!O(o,r,s.runId,t))return null}}return T(o)}function Y(e,n,l,t,i){let o=[];return hh(e,o,l)?J(o,n,l,t,i):null}function K(e,n,l){let t=n.node;return e.owned.has(t.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),t.id===e.endId?true:(t.id===e.span.node.id||b(e.states,e.markers,t)||e.overflow||Yg(t)||_g(t)||!e.owned.has(t.id)||!g(e.states)||C(l,n)||O(e.result,t,n.runId,e.chars)||(e.overflow=true),false)}function ae(e,n,l="allMarkup"){let t=new Map,i=new Map,o=new Map;for(let r of n)r.kind==="complex"?i.set(r.node.id,r):o.set(r.node.id,r);let d=[];hh(e,d);let u=new Map;for(let r=0;r<d.length;r+=1)u.set(d[r].node.id,r);let s=null;for(let r=0;r<d.length;r+=1){let a=d[r],y=o.get(a.node.id);if(y)if(s!==null&&!g(s.states))t.set(y.node.id,G);else {let f={left:U},I={left:H},m=Y(y.node,l,f,I,0);t.set(y.node.id,m??M());}if(s===null){let f=i.get(a.node.id);if(!f)continue;let I=new Set(f.removeNodeIds),m=-1;for(let N=f.removeNodeIds.length-1;N>=0;N-=1){let F=u.get(f.removeNodeIds[N]);if(!(F===void 0||F<=r)&&Xg(d[F].node,"end")){m=F;break}}let E=d[m];if(!E){t.set(f.node.id,M());continue}s={span:f,owned:I,states:[{beginId:f.node.id,separated:false}],markers:R(d,r+1,m,f.node.id),endId:E.node.id,result:k(),chars:{left:H},nodesLeft:U,overflow:false};}K(s,a,l)&&(t.set(s.span.node.id,s.overflow?M():T(s.result)),s=null);}return s!==null&&t.set(s.span.node.id,M()),t}export{$ as a,Q as b,Z as c,ie as d,U as e,ae as f,ne as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {hl}from'./chunk-KDA6HKHR.js';function I(o){let n=[],t=[],a=new Map;for(let r of o){if(r.kind!=="revision")continue;let s=hl(r);for(let e of s)n.push(e);let p=new Set(r.ranges.map(e=>e.start.paragraphId)),u=r.revisionKind==="format"&&r.formattingKind==="pPrChange";if(p.size>1&&!u)for(let e of p)t.push(e);for(let e of r.ranges){let g=a.get(e.start.paragraphId)??[];for(let l of s)g.push(l);a.set(e.start.paragraphId,g);}}let i=new Map;for(let[r,s]of a)i.set(r,[...new Set(s)].sort().join("\0"));return {sites:n,paragraphs:i,spanning:t}}function w(o){return o.flatMap(n=>n.kind==="revision"?n.ranges.map(t=>t.start.paragraphId):[])}var c=new WeakMap,h=1,m={};function f(o){let n=o??m,t=c.get(n);return t===void 0&&(t=h++,c.set(n,t)),t}function b(o,n){return `${f(o)}:${f(n)}`}export{I as a,w as b,b as c};
|