@docx-editor.dev/core 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- 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-5OSFUHGF.js +10 -0
- package/dist/chunk-C24AINST.js +12 -0
- package/dist/{chunk-O2WQY7IT.cjs → chunk-CY47CFM5.cjs} +5 -5
- package/dist/chunk-EUTHPVTG.cjs +2 -0
- package/dist/chunk-FJCBZ5BL.cjs +12 -0
- package/dist/{chunk-REZUWYB7.js → chunk-GRGRIDHF.js} +1 -1
- package/dist/{chunk-PC76F2HR.cjs → chunk-KZ5HPHW6.cjs} +1 -1
- package/dist/{chunk-TBBXCC7D.js → chunk-LVZSKP2F.js} +3 -3
- package/dist/{chunk-HBL3NNH5.cjs → chunk-MIUELYVA.cjs} +1 -1
- package/dist/chunk-MO7GAUO7.js +2 -0
- package/dist/chunk-NCGKMEKU.js +2 -0
- package/dist/chunk-PFTVNFMI.js +1 -0
- package/dist/chunk-QVGTZUEV.js +12 -0
- package/dist/chunk-T2LVH6D3.cjs +2 -0
- package/dist/chunk-UAOJHPQ4.cjs +10 -0
- package/dist/chunk-VXEF32A5.cjs +12 -0
- package/dist/contracts/editor.cjs +1 -1
- package/dist/contracts/editor.d.cts +3 -3
- package/dist/contracts/editor.d.ts +3 -3
- package/dist/contracts/editor.js +1 -1
- package/dist/contracts/interaction.d.cts +4 -4
- package/dist/contracts/interaction.d.ts +4 -4
- package/dist/{editor-BGBZn9c9.d.cts → editor-25RmHnxu.d.cts} +64 -2
- package/dist/{editor-DQRRxKMG.d.ts → editor-C8oaTHr3.d.ts} +64 -2
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +86 -11
- package/dist/editor.d.cts +51 -11
- package/dist/editor.d.ts +51 -11
- package/dist/editor.js +1 -1
- package/dist/{index-DptRpcqa.d.cts → index-CiEakUbq.d.cts} +32 -5
- package/dist/{index-BzqHsd4Y.d.ts → index-gvw4VGE9.d.ts} +32 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +95 -61
- package/dist/layout.d.ts +95 -61
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +4 -101
- package/dist/output.d.ts +4 -101
- package/dist/output.js +1 -1
- package/dist/{semantic-cell-selection-DwLB71fF.d.cts → semantic-cell-selection-CI3loBKq.d.cts} +2 -2
- package/dist/{semantic-cell-selection-D_8RbPII.d.ts → semantic-cell-selection-Cx8P64j2.d.ts} +2 -2
- package/dist/{semantic-interaction-DqcEonqD.d.cts → semantic-interaction-B4HrJFQ2.d.cts} +1 -1
- package/dist/{semantic-interaction-CXH2wFqi.d.ts → semantic-interaction-unGpRNCk.d.ts} +1 -1
- package/dist/semantic-paint-BBNaqr1s.d.ts +133 -0
- package/dist/semantic-paint-DdGGra4m.d.cts +133 -0
- package/dist/{semantic-records-zTC0_1zi.d.ts → semantic-records-BC4bIKKL.d.ts} +28 -32
- package/dist/{semantic-records-COVFW5aS.d.cts → semantic-records-DC6V1U3T.d.cts} +28 -32
- package/dist/{shaped-measurer-CZXL-a6v.d.ts → shaped-measurer-ChSWkuAT.d.ts} +1 -1
- package/dist/{shaped-measurer-AFnFxoot.d.cts → shaped-measurer-SIqZp-Ty.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +35 -14
- package/dist/store.d.ts +35 -14
- package/dist/store.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-2DTQDAN7.js +0 -2
- package/dist/chunk-3HEU7MHP.js +0 -12
- package/dist/chunk-3JKQE4QJ.cjs +0 -2
- package/dist/chunk-6WIIHJFY.js +0 -1
- package/dist/chunk-BZK64YU3.cjs +0 -10
- package/dist/chunk-EDLUMMQN.cjs +0 -12
- package/dist/chunk-JQFDLZXQ.cjs +0 -2
- package/dist/chunk-QRAUDDVY.js +0 -2
- package/dist/chunk-STCITBJK.js +0 -12
- package/dist/chunk-TSXT537P.cjs +0 -12
- package/dist/chunk-Y7TA7TPF.js +0 -10
- package/dist/semantic-paint-drawings-B5Wk2so5.d.ts +0 -21
- package/dist/semantic-paint-drawings-x8g44lD_.d.cts +0 -21
package/README.md
CHANGED
|
@@ -67,11 +67,10 @@ of unknown extensions still opens, edits, and saves.
|
|
|
67
67
|
|
|
68
68
|
## Fidelity
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
digest.
|
|
70
|
+
Untouched content, unsupported OOXML, and package payloads survive editing and save. The
|
|
71
|
+
canonical tree preserves document structure while embedded fonts, macros, media, and other
|
|
72
|
+
payloads pass through untouched. Two oracles gate this in CI: a canonical fingerprint over the
|
|
73
|
+
tree, and a save-and-reopen semantic digest.
|
|
75
74
|
|
|
76
75
|
## Untrusted input
|
|
77
76
|
|
package/dist/automation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkKZ5HPHW6_cjs=require('./chunk-KZ5HPHW6.cjs'),chunkUAOJHPQ4_cjs=require('./chunk-UAOJHPQ4.cjs');var y=Object.freeze({document:true,save:true,events:true,selection:false,scrolling:false,layout:false}),h=Object.freeze({kind:"body"});function I(e,r={}){let t=chunkUAOJHPQ4_cjs.wb(e,r.limits??{});if(!t.ok)return {ok:false,reason:t.reason,...t.detail?{detail:t.detail}:{}};let a=t.package.parts.get(t.package.mainDocumentPart);if(!a)return {ok:false,reason:"no-main-document-part",detail:t.package.mainDocumentPart};let o=new chunkUAOJHPQ4_cjs.Cf(t.package,chunkUAOJHPQ4_cjs.Pc(a));return {ok:true,host:chunkKZ5HPHW6_cjs.g({port:v(o),capabilities:y})}}function T(e,r,t){let a=e.partFor(t);if(!a)return null;let o=chunkUAOJHPQ4_cjs.Rc(e.currentPackage(),r,a.name);return o?(e.replacePackageShell(o.pkg),o.relationshipId):null}function v(e){let r=true;return {revision:()=>e.packageRevision,currentPackage:()=>r?e.currentPackage():null,apply(t,a=h){if(!r)return {ok:false,reason:"disposed"};let o=t(i=>T(e,i,a));if(o===null)return {ok:false,reason:"unsupported-target"};let n=e.transact(a,i=>{for(let k of o)i.apply(k);});return n.ok?{ok:true,changed:n.change!==null}:{ok:false,reason:n.detail?`${n.reason}: ${n.detail}`:n.reason}},applyLifecycle(t){if(!r)return {ok:false,reason:"disposed"};let a=e.applyLifecycleOp(t);return a.ok?{ok:true,changed:a.change!==null}:{ok:false,reason:a.detail?`${a.reason}: ${a.detail}`:a.reason}},applyCommentWrite(t,a){if(!r)return {ok:false,reason:"disposed"};let o=e.resolveStory(a);if(!o.ok)return {ok:false,reason:o.reason};o.store.graftPackage(()=>e.currentPackage());let n=t.kind==="reply"?chunkUAOJHPQ4_cjs.Df(o.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date},replyToCommentId:t.parentCommentId}):chunkUAOJHPQ4_cjs.Ef(o.store,t.commentId,t.resolved);return n.ok?(e.replacePackageShell(o.store.package),{ok:true,changed:true,..."commentId"in n?{commentId:n.commentId}:{}}):{ok:false,reason:n.reason}},applyCustomNodeWrite(t,a){if(!r)return {ok:false,reason:"disposed"};let o=e.resolveStory(a);if(!o.ok)return {ok:false,reason:o.reason};o.store.graftPackage(()=>e.currentPackage());let n=chunkUAOJHPQ4_cjs.Kf(o.store,t);return n.ok?(e.replacePackageShell(o.store.package),{ok:true,changed:n.change!==null}):{ok:false,reason:n.detail?`${n.reason}: ${n.detail}`:n.reason}},save:()=>r?chunkUAOJHPQ4_cjs.xb(e.currentPackage()):null,subscribe:t=>e.subscribe(()=>t()),dispose(){r=false;}}}Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkKZ5HPHW6_cjs.c}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkKZ5HPHW6_cjs.b}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkKZ5HPHW6_cjs.d}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkKZ5HPHW6_cjs.a}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkKZ5HPHW6_cjs.f}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkKZ5HPHW6_cjs.e}});exports.SERVER_AUTOMATION_CAPABILITIES=y;exports.createServerAutomationHost=I;
|
package/dist/automation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {g}from'./chunk-
|
|
1
|
+
import {g}from'./chunk-PFTVNFMI.js';export{c as AUTOMATION_COMMAND_OPERATIONS,b as AUTOMATION_QUERY_OPERATIONS,d as AUTOMATION_SOLITARY_OPERATIONS,a as HEADER_FOOTER_VARIANTS,f as isAutomationCommand,e as isSolitaryAutomationCommand}from'./chunk-PFTVNFMI.js';import {wb,Cf,Pc,xb,Kf,Df,Ef,Rc}from'./chunk-5OSFUHGF.js';var y=Object.freeze({document:true,save:true,events:true,selection:false,scrolling:false,layout:false}),h=Object.freeze({kind:"body"});function I(e,r={}){let t=wb(e,r.limits??{});if(!t.ok)return {ok:false,reason:t.reason,...t.detail?{detail:t.detail}:{}};let a=t.package.parts.get(t.package.mainDocumentPart);if(!a)return {ok:false,reason:"no-main-document-part",detail:t.package.mainDocumentPart};let o=new Cf(t.package,Pc(a));return {ok:true,host:g({port:v(o),capabilities:y})}}function T(e,r,t){let a=e.partFor(t);if(!a)return null;let o=Rc(e.currentPackage(),r,a.name);return o?(e.replacePackageShell(o.pkg),o.relationshipId):null}function v(e){let r=true;return {revision:()=>e.packageRevision,currentPackage:()=>r?e.currentPackage():null,apply(t,a=h){if(!r)return {ok:false,reason:"disposed"};let o=t(i=>T(e,i,a));if(o===null)return {ok:false,reason:"unsupported-target"};let n=e.transact(a,i=>{for(let k of o)i.apply(k);});return n.ok?{ok:true,changed:n.change!==null}:{ok:false,reason:n.detail?`${n.reason}: ${n.detail}`:n.reason}},applyLifecycle(t){if(!r)return {ok:false,reason:"disposed"};let a=e.applyLifecycleOp(t);return a.ok?{ok:true,changed:a.change!==null}:{ok:false,reason:a.detail?`${a.reason}: ${a.detail}`:a.reason}},applyCommentWrite(t,a){if(!r)return {ok:false,reason:"disposed"};let o=e.resolveStory(a);if(!o.ok)return {ok:false,reason:o.reason};o.store.graftPackage(()=>e.currentPackage());let n=t.kind==="reply"?Df(o.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date},replyToCommentId:t.parentCommentId}):Ef(o.store,t.commentId,t.resolved);return n.ok?(e.replacePackageShell(o.store.package),{ok:true,changed:true,..."commentId"in n?{commentId:n.commentId}:{}}):{ok:false,reason:n.reason}},applyCustomNodeWrite(t,a){if(!r)return {ok:false,reason:"disposed"};let o=e.resolveStory(a);if(!o.ok)return {ok:false,reason:o.reason};o.store.graftPackage(()=>e.currentPackage());let n=Kf(o.store,t);return n.ok?(e.replacePackageShell(o.store.package),{ok:true,changed:n.change!==null}):{ok:false,reason:n.detail?`${n.reason}: ${n.detail}`:n.reason}},save:()=>r?xb(e.currentPackage()):null,subscribe:t=>e.subscribe(()=>t()),dispose(){r=false;}}}export{y as SERVER_AUTOMATION_CAPABILITIES,I as createServerAutomationHost};
|
package/dist/binding.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkCY47CFM5_cjs=require('./chunk-CY47CFM5.cjs');require('./chunk-BS554B6D.cjs'),require('./chunk-T2LVH6D3.cjs'),require('./chunk-UAOJHPQ4.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.k}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.l}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.j}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunkCY47CFM5_cjs.e}});
|
package/dist/binding.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{k as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,l as mountTreeSurface,j as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-
|
|
1
|
+
export{k as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,l as mountTreeSurface,j as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-LVZSKP2F.js';import'./chunk-4WWEDTTE.js';import'./chunk-MO7GAUO7.js';import'./chunk-5OSFUHGF.js';
|