@docx-editor.dev/core 2.3.0 → 2.3.1
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-2H6LCX4H.js +10 -0
- package/dist/{chunk-P2NVDXSG.cjs → chunk-5LFOW7UO.cjs} +1 -1
- package/dist/{chunk-EBIEBTAG.js → chunk-AMLGAD5Q.js} +4 -4
- package/dist/chunk-G5D7EXZD.js +2 -0
- package/dist/chunk-G7Y6EPB2.cjs +12 -0
- package/dist/{chunk-Y2PX72HO.cjs → chunk-J6743NQP.cjs} +5 -5
- package/dist/chunk-JQSVJSR7.js +12 -0
- package/dist/chunk-LD4YWMBO.cjs +12 -0
- package/dist/chunk-LKWSYFJQ.js +12 -0
- package/dist/chunk-QONAJ66B.cjs +10 -0
- package/dist/chunk-TDYP32AL.cjs +2 -0
- package/dist/{chunk-4CHEPYZV.cjs → chunk-UKI45YR7.cjs} +1 -1
- package/dist/chunk-XIKXGERI.js +2 -0
- package/dist/chunk-YTRVI333.js +1 -0
- package/dist/contracts/editor.d.cts +2 -2
- package/dist/contracts/editor.d.ts +2 -2
- package/dist/contracts/interaction.d.cts +2 -2
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/{editor-25RmHnxu.d.cts → editor-BXstgYTp.d.cts} +1 -1
- package/dist/{editor-C8oaTHr3.d.ts → editor-BajbOumY.d.ts} +1 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +2 -0
- package/dist/editor.d.cts +6 -6
- package/dist/editor.d.ts +6 -6
- package/dist/editor.js +1 -1
- package/dist/{index-C7hgxxtG.d.cts → index-D67PwDZQ.d.cts} +3 -3
- package/dist/{index-DHX6HKd_.d.ts → index-DaJ8nU56.d.ts} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +14 -4
- package/dist/layout.d.ts +14 -4
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.js +1 -1
- package/dist/{semantic-cell-selection-CI3loBKq.d.cts → semantic-cell-selection-9vfCLkd4.d.cts} +1 -1
- package/dist/{semantic-cell-selection-Cx8P64j2.d.ts → semantic-cell-selection-bA5HTLkV.d.ts} +1 -1
- package/dist/{semantic-interaction-B4HrJFQ2.d.cts → semantic-interaction-BG0jWJ0I.d.cts} +4 -36
- package/dist/{semantic-interaction-unGpRNCk.d.ts → semantic-interaction-lHDX4yIt.d.ts} +4 -36
- package/dist/store.cjs +1 -1
- package/dist/store.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-2AOXVZU7.js +0 -1
- package/dist/chunk-7JUQEZU4.js +0 -12
- package/dist/chunk-BEV535XW.cjs +0 -10
- package/dist/chunk-IHAFYLLQ.cjs +0 -12
- package/dist/chunk-K6FOU3RO.cjs +0 -12
- package/dist/chunk-OUKRZ43D.js +0 -2
- package/dist/chunk-PYRPB22X.cjs +0 -2
- package/dist/chunk-R6BMB6RM.js +0 -10
- package/dist/chunk-XNMXQWNA.js +0 -12
- package/dist/chunk-YNO4ITHS.js +0 -2
package/dist/automation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk5LFOW7UO_cjs=require('./chunk-5LFOW7UO.cjs'),chunkQONAJ66B_cjs=require('./chunk-QONAJ66B.cjs');var I=Object.freeze({document:true,save:true,events:true,selection:false,scrolling:false,layout:false}),D=Object.freeze({kind:"body"});function L(a,r={}){let o=chunkQONAJ66B_cjs.xb(a,r.limits??{});if(!o.ok)return {ok:false,reason:o.reason,...o.detail?{detail:o.detail}:{}};let n=o.package.parts.get(o.package.mainDocumentPart);if(!n)return {ok:false,reason:"no-main-document-part",detail:o.package.mainDocumentPart};let e=new chunkQONAJ66B_cjs.Ff(o.package,chunkQONAJ66B_cjs.Qc(n));return {ok:true,host:chunk5LFOW7UO_cjs.g({port:M(e),capabilities:I})}}function j(a,r,o){let n=a.partFor(o);if(!n)return null;let e=chunkQONAJ66B_cjs.Sc(a.currentPackage(),r,n.name);return e?(a.replacePackageShell(e.pkg),e.relationshipId):null}function M(a){let r=true;return {revision:()=>a.packageRevision,currentPackage:()=>r?a.currentPackage():null,apply(o,n=D){if(!r)return {ok:false,reason:"disposed"};let e=o(i=>j(a,i,n));if(e===null)return {ok:false,reason:"unsupported-target"};let t=a.transact(n,i=>{for(let u of e)i.apply(u);});return t.ok?{ok:true,changed:t.change!==null}:{ok:false,reason:t.detail?`${t.reason}: ${t.detail}`:t.reason}},applyLifecycle(o){if(!r)return {ok:false,reason:"disposed"};let n=a.applyLifecycleOp(o);return n.ok?{ok:true,changed:n.change!==null}:{ok:false,reason:n.detail?`${n.reason}: ${n.detail}`:n.reason}},applyCommentWrites(o,n){if(!r)return {ok:false,reason:"disposed"};if(o.length===0)return {ok:true,changed:false};let e=a.resolveStory(n);if(!e.ok)return {ok:false,reason:e.reason};if(e.store.graftPackage(()=>a.currentPackage()),o.every(u=>u.kind==="delete")){let u=false,l=false,x=e.store.transact(T=>{T.applyPackage(d=>{let m=d;for(let s of o){if(s.kind!=="delete")continue;let A={storyPartName:e.store.part.name,...s.noteId===void 0?{}:{noteId:s.noteId}},p=s.parentCommentId===void 0?chunkQONAJ66B_cjs.Je(m,s.commentId,A):chunkQONAJ66B_cjs.Ke(m,s.commentId,s.parentCommentId,A);if(p===null)return u=true,d;l||=p!==m,m=p;}return m});});return u||!x.ok?{ok:false,reason:"comment-delete-refused"}:(l&&a.installPackageSnapshot(e.store.package),{ok:true,changed:l})}if(o.length!==1)return {ok:false,reason:"mixed-comment-writes"};let t=o[0],i=t.kind==="create"?chunkQONAJ66B_cjs.Kf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date}}):t.kind==="reply"?chunkQONAJ66B_cjs.Kf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date},replyToCommentId:t.parentCommentId}):t.kind==="resolve"?chunkQONAJ66B_cjs.Lf(e.store,t.commentId,t.resolved):null;return i===null?{ok:false,reason:"unsupported-comment-write"}:i.ok?(a.replacePackageShell(e.store.package),{ok:true,changed:true,..."commentId"in i?{commentId:i.commentId}:{}}):{ok:false,reason:i.reason}},applyCustomNodeWrite(o,n){if(!r)return {ok:false,reason:"disposed"};let e=a.resolveStory(n);if(!e.ok)return {ok:false,reason:e.reason};e.store.graftPackage(()=>a.currentPackage());let t=chunkQONAJ66B_cjs.Rf(e.store,o);return t.ok?(a.replacePackageShell(e.store.package),{ok:true,changed:t.change!==null}):{ok:false,reason:t.detail?`${t.reason}: ${t.detail}`:t.reason}},save:()=>r?chunkQONAJ66B_cjs.yb(a.currentPackage()):null,subscribe:o=>a.subscribe(()=>o()),dispose(){r=false;}}}Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunk5LFOW7UO_cjs.c}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunk5LFOW7UO_cjs.b}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunk5LFOW7UO_cjs.d}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunk5LFOW7UO_cjs.a}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunk5LFOW7UO_cjs.f}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunk5LFOW7UO_cjs.e}});exports.SERVER_AUTOMATION_CAPABILITIES=I;exports.createServerAutomationHost=L;
|
package/dist/automation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {g}from'./chunk-
|
|
1
|
+
import {g}from'./chunk-YTRVI333.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-YTRVI333.js';import {xb,Ff,Qc,yb,Rf,Je,Ke,Kf,Lf,Sc}from'./chunk-2H6LCX4H.js';var I=Object.freeze({document:true,save:true,events:true,selection:false,scrolling:false,layout:false}),D=Object.freeze({kind:"body"});function L(a,r={}){let o=xb(a,r.limits??{});if(!o.ok)return {ok:false,reason:o.reason,...o.detail?{detail:o.detail}:{}};let n=o.package.parts.get(o.package.mainDocumentPart);if(!n)return {ok:false,reason:"no-main-document-part",detail:o.package.mainDocumentPart};let e=new Ff(o.package,Qc(n));return {ok:true,host:g({port:M(e),capabilities:I})}}function j(a,r,o){let n=a.partFor(o);if(!n)return null;let e=Sc(a.currentPackage(),r,n.name);return e?(a.replacePackageShell(e.pkg),e.relationshipId):null}function M(a){let r=true;return {revision:()=>a.packageRevision,currentPackage:()=>r?a.currentPackage():null,apply(o,n=D){if(!r)return {ok:false,reason:"disposed"};let e=o(i=>j(a,i,n));if(e===null)return {ok:false,reason:"unsupported-target"};let t=a.transact(n,i=>{for(let u of e)i.apply(u);});return t.ok?{ok:true,changed:t.change!==null}:{ok:false,reason:t.detail?`${t.reason}: ${t.detail}`:t.reason}},applyLifecycle(o){if(!r)return {ok:false,reason:"disposed"};let n=a.applyLifecycleOp(o);return n.ok?{ok:true,changed:n.change!==null}:{ok:false,reason:n.detail?`${n.reason}: ${n.detail}`:n.reason}},applyCommentWrites(o,n){if(!r)return {ok:false,reason:"disposed"};if(o.length===0)return {ok:true,changed:false};let e=a.resolveStory(n);if(!e.ok)return {ok:false,reason:e.reason};if(e.store.graftPackage(()=>a.currentPackage()),o.every(u=>u.kind==="delete")){let u=false,l=false,x=e.store.transact(T=>{T.applyPackage(d=>{let m=d;for(let s of o){if(s.kind!=="delete")continue;let A={storyPartName:e.store.part.name,...s.noteId===void 0?{}:{noteId:s.noteId}},p=s.parentCommentId===void 0?Je(m,s.commentId,A):Ke(m,s.commentId,s.parentCommentId,A);if(p===null)return u=true,d;l||=p!==m,m=p;}return m});});return u||!x.ok?{ok:false,reason:"comment-delete-refused"}:(l&&a.installPackageSnapshot(e.store.package),{ok:true,changed:l})}if(o.length!==1)return {ok:false,reason:"mixed-comment-writes"};let t=o[0],i=t.kind==="create"?Kf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date}}):t.kind==="reply"?Kf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date},replyToCommentId:t.parentCommentId}):t.kind==="resolve"?Lf(e.store,t.commentId,t.resolved):null;return i===null?{ok:false,reason:"unsupported-comment-write"}:i.ok?(a.replacePackageShell(e.store.package),{ok:true,changed:true,..."commentId"in i?{commentId:i.commentId}:{}}):{ok:false,reason:i.reason}},applyCustomNodeWrite(o,n){if(!r)return {ok:false,reason:"disposed"};let e=a.resolveStory(n);if(!e.ok)return {ok:false,reason:e.reason};e.store.graftPackage(()=>a.currentPackage());let t=Rf(e.store,o);return t.ok?(a.replacePackageShell(e.store.package),{ok:true,changed:t.change!==null}):{ok:false,reason:t.detail?`${t.reason}: ${t.detail}`:t.reason}},save:()=>r?yb(a.currentPackage()):null,subscribe:o=>a.subscribe(()=>o()),dispose(){r=false;}}}export{I as SERVER_AUTOMATION_CAPABILITIES,L as createServerAutomationHost};
|
package/dist/binding.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkJ6743NQP_cjs=require('./chunk-J6743NQP.cjs');require('./chunk-BS554B6D.cjs'),require('./chunk-UKI45YR7.cjs'),require('./chunk-QONAJ66B.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.k}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.l}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.j}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunkJ6743NQP_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunkJ6743NQP_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-AMLGAD5Q.js';import'./chunk-4WWEDTTE.js';import'./chunk-G5D7EXZD.js';import'./chunk-2H6LCX4H.js';
|