@docx-editor.dev/core 2.4.1 → 2.5.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/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +6 -6
- package/dist/automation.d.ts +6 -6
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +12 -12
- package/dist/binding.d.ts +12 -12
- package/dist/binding.js +1 -1
- package/dist/chunk-2GSRLGUI.cjs +10 -0
- package/dist/chunk-2QIA75K3.js +2 -0
- package/dist/chunk-32NXPFYL.js +5 -0
- package/dist/chunk-3C533HSQ.cjs +18 -0
- package/dist/{chunk-YMIMLEX4.cjs → chunk-3FRSOOND.cjs} +1 -1
- package/dist/chunk-45FL7KH4.js +1 -0
- package/dist/chunk-7GYF33B5.cjs +2 -0
- package/dist/chunk-H3DZP4LE.cjs +5 -0
- package/dist/chunk-IJ4V3LGV.cjs +2 -0
- package/dist/chunk-JDHTCMFA.cjs +2 -0
- package/dist/chunk-L2GMLEHX.cjs +14 -0
- package/dist/chunk-LJIX4ZDF.js +10 -0
- package/dist/chunk-QUZM6LWQ.js +14 -0
- package/dist/chunk-T252F4US.js +18 -0
- package/dist/chunk-UVIUNAQ6.js +2 -0
- package/dist/chunk-YTZIGUXT.js +2 -0
- package/dist/{content-control-walk-CbTqHq6O.d.cts → content-control-walk-BeAFh6Xi.d.cts} +1 -1
- package/dist/{content-control-walk-D06GijR0.d.ts → content-control-walk-CQp8l6eS.d.ts} +1 -1
- package/dist/contracts/editor.d.cts +9 -9
- package/dist/contracts/editor.d.ts +9 -9
- package/dist/contracts/interaction.d.cts +9 -9
- package/dist/contracts/interaction.d.ts +9 -9
- package/dist/contracts/modules.d.cts +5 -5
- package/dist/contracts/modules.d.ts +5 -5
- package/dist/{custom-node-writes-BkMgMXxs.d.ts → custom-node-writes-2clI36T9.d.ts} +22 -7
- package/dist/{custom-node-writes-C5YRoPcc.d.cts → custom-node-writes-CIC_-wad.d.cts} +22 -7
- package/dist/{editor-DYvC9CZs.d.cts → editor-CUul9IuY.d.cts} +22 -5
- package/dist/{editor-D1qHfzOt.d.ts → editor-DIwctMcU.d.ts} +22 -5
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +32 -0
- package/dist/editor.d.cts +24 -24
- package/dist/editor.d.ts +24 -24
- package/dist/editor.js +1 -1
- package/dist/{hf-references-CgEOSw3i.d.cts → hf-references-BPET4tlK.d.cts} +2 -2
- package/dist/{hf-references-BdjsQNE_.d.ts → hf-references-CAp1xTv6.d.ts} +2 -2
- package/dist/{image-resources-DXvPZvXD.d.cts → image-resources-CSlQmPIm.d.cts} +10 -10
- package/dist/{image-resources-BG9DLyW7.d.ts → image-resources-e13t-pgy.d.ts} +10 -10
- package/dist/{index-Bb-QAg_f.d.cts → index-8t44iXTY.d.cts} +79 -14
- package/dist/{index-DpY3WZuP.d.ts → index-BUsYjxF5.d.ts} +79 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +114 -50
- package/dist/layout.d.ts +114 -50
- package/dist/layout.js +1 -1
- package/dist/{note-nodes-C6DLxlvj.d.cts → note-nodes-B2wWES2L.d.cts} +1 -1
- package/dist/{note-nodes-BPSTVDMr.d.ts → note-nodes-CZQXU6Fg.d.ts} +1 -1
- package/dist/{review-reads-CQmU9Lcl.d.ts → note-properties-BS66XmcC.d.ts} +91 -67
- package/dist/{review-reads-CxgN62yp.d.cts → note-properties-Dhqkro--.d.cts} +91 -67
- package/dist/{ooxml-package-D_CtywTW.d.ts → ooxml-package-BrxTmTsZ.d.ts} +115 -115
- package/dist/{ooxml-package-CR5us6ad.d.cts → ooxml-package-Cmbe_M04.d.cts} +115 -115
- package/dist/{ooxml-tree-BU0e3DVi.d.cts → ooxml-tree-CG0odFyi.d.cts} +1 -1
- package/dist/{ooxml-tree-BU0e3DVi.d.ts → ooxml-tree-CG0odFyi.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +7 -7
- package/dist/output.d.ts +7 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-CD7slqvl.d.cts → protocol-B5oSt08P.d.cts} +2 -2
- package/dist/{protocol-DsbfgBwA.d.ts → protocol-ooK7PAXz.d.ts} +2 -2
- package/dist/{review-support-DgXTIYBW.d.ts → review-support-Bl9sN8cv.d.ts} +47 -3
- package/dist/{review-support-BJ-YjGmD.d.cts → review-support-CHuJxHmz.d.cts} +47 -3
- package/dist/{revision-projection-DHAkcD_L.d.ts → revision-projection-DRZMzoLD.d.cts} +54 -3
- package/dist/{revision-projection-72ZApe-g.d.cts → revision-projection-u4nT52xT.d.ts} +54 -3
- package/dist/{semantic-cell-selection-DZtyMXkH.d.ts → semantic-cell-selection-CdNQ-a9-.d.cts} +8 -5
- package/dist/{semantic-cell-selection--ezfezTe.d.cts → semantic-cell-selection-Dc-_enhm.d.ts} +8 -5
- package/dist/{semantic-interaction-DrgbgKg6.d.ts → semantic-interaction-CCVwyw2A.d.ts} +2 -30
- package/dist/{semantic-interaction-2yxdv7q0.d.cts → semantic-interaction-DgaWs-5w.d.cts} +2 -30
- package/dist/{semantic-paint-BYjE0Xbl.d.cts → semantic-paint-6iIB4fhx.d.cts} +2 -2
- package/dist/{semantic-paint-BedBxkyY.d.ts → semantic-paint-CKIbFkQ7.d.ts} +2 -2
- package/dist/{semantic-records-CR5hTqMK.d.ts → semantic-records-B-qbrnp2.d.ts} +107 -9
- package/dist/{semantic-records-DSD8WENa.d.cts → semantic-records-Dq8SlCY8.d.cts} +107 -9
- package/dist/{shaped-measurer-BL8g4AcW.d.ts → shaped-measurer-BT4FqYe9.d.ts} +1 -1
- package/dist/{shaped-measurer-CBOTJTV_.d.cts → shaped-measurer-Dx4llNhK.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +254 -231
- package/dist/store.d.ts +254 -231
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-8a6xyRCN.d.ts → tree-op-types-CZw9QhWX.d.ts} +219 -219
- package/dist/{tree-op-types-EZXbR8bW.d.cts → tree-op-types-DOYNkKqD.d.cts} +219 -219
- package/dist/{tree-session-SucW0znF.d.ts → tree-session-CF_EOhTW.d.ts} +14 -8
- package/dist/{tree-session-DrMm8Cj2.d.cts → tree-session-CtK3KgFU.d.cts} +14 -8
- package/dist/{tree-store-BoM6eXaL.d.ts → tree-store-9TaX-L0V.d.ts} +31 -4
- package/dist/{tree-store-UYrGKF_Q.d.cts → tree-store-Jg-q7fyf.d.cts} +31 -4
- package/package.json +3 -3
- package/dist/chunk-33F6TRXO.js +0 -2
- package/dist/chunk-4WWEDTTE.js +0 -2
- package/dist/chunk-BS554B6D.cjs +0 -2
- package/dist/chunk-DQ5HGUWG.cjs +0 -12
- package/dist/chunk-EQO762XH.cjs +0 -10
- package/dist/chunk-F6WNPYOM.js +0 -2
- package/dist/chunk-FL4GWK76.js +0 -12
- package/dist/chunk-GWG5IVVX.cjs +0 -5
- package/dist/chunk-IZIL6BAW.cjs +0 -12
- package/dist/chunk-LIJPSHRA.js +0 -5
- package/dist/chunk-MHDO6HLI.cjs +0 -2
- package/dist/chunk-SG7OH2EK.js +0 -12
- package/dist/chunk-TCX3PVWR.js +0 -10
- package/dist/chunk-YTYKNA6X.cjs +0 -2
- package/dist/chunk-ZACHY6OS.js +0 -1
package/dist/automation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3FRSOOND_cjs=require('./chunk-3FRSOOND.cjs'),chunk2GSRLGUI_cjs=require('./chunk-2GSRLGUI.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=chunk2GSRLGUI_cjs.yb(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 chunk2GSRLGUI_cjs.Kf(o.package,chunk2GSRLGUI_cjs.Uc(n));return {ok:true,host:chunk3FRSOOND_cjs.g({port:M(e),capabilities:I})}}function j(a,r,o){let n=a.partFor(o);if(!n)return null;let e=chunk2GSRLGUI_cjs.Wc(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?chunk2GSRLGUI_cjs.Oe(m,s.commentId,A):chunk2GSRLGUI_cjs.Pe(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"?chunk2GSRLGUI_cjs.Pf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date}}):t.kind==="reply"?chunk2GSRLGUI_cjs.Pf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date},replyToCommentId:t.parentCommentId}):t.kind==="resolve"?chunk2GSRLGUI_cjs.Qf(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=chunk2GSRLGUI_cjs.Wf(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?chunk2GSRLGUI_cjs.zb(a.currentPackage()):null,subscribe:o=>a.subscribe(()=>o()),dispose(){r=false;}}}Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunk3FRSOOND_cjs.c}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunk3FRSOOND_cjs.b}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunk3FRSOOND_cjs.d}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunk3FRSOOND_cjs.a}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunk3FRSOOND_cjs.f}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunk3FRSOOND_cjs.e}});exports.SERVER_AUTOMATION_CAPABILITIES=I;exports.createServerAutomationHost=L;
|
package/dist/automation.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-
|
|
2
|
-
export { b as AUTOMATION_COMMAND_OPERATIONS, c as AUTOMATION_QUERY_OPERATIONS, d as AUTOMATION_SOLITARY_OPERATIONS, e as AutomationAlignment, f as AutomationBatchRequest, g as AutomationBatchResponse, h as AutomationChangeEvent, i as AutomationContentControlLock, j as AutomationContentControlRangeLocation, k as AutomationContentControlScope, l as AutomationContentControlSubtype, m as AutomationContentControlValue, n as AutomationError, o as AutomationErrorCode, p as AutomationFontRead, q as AutomationFontWrite, r as AutomationHandle, s as AutomationHandleRef, t as AutomationObjectKind, u as AutomationOperation, v as AutomationOperationKind, w as AutomationOperationResult, x as AutomationPageOrientation, y as AutomationPageSetupRead, z as AutomationPageSetupWrite, B as AutomationParagraphFormatRead, C as AutomationParagraphFormatWrite, D as AutomationParagraphRef, E as AutomationPoint, F as AutomationSaveResult, G as AutomationSearchOptions, H as AutomationSelectionMode, I as AutomationSpan, J as AutomationSpanRef, K as AutomationUnsubscribe, L as AutomationValue, M as isAutomationCommand, N as isSolitaryAutomationCommand } from './protocol-
|
|
3
|
-
import { H as HeaderFooterVariant } from './hf-references-
|
|
4
|
-
import { N as NoteKind } from './note-nodes-
|
|
5
|
-
import { a as OoxmlPackageLimits, b as OoxmlPackageRejection } from './ooxml-package-
|
|
6
|
-
import './ooxml-tree-
|
|
1
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-B5oSt08P.cjs';
|
|
2
|
+
export { b as AUTOMATION_COMMAND_OPERATIONS, c as AUTOMATION_QUERY_OPERATIONS, d as AUTOMATION_SOLITARY_OPERATIONS, e as AutomationAlignment, f as AutomationBatchRequest, g as AutomationBatchResponse, h as AutomationChangeEvent, i as AutomationContentControlLock, j as AutomationContentControlRangeLocation, k as AutomationContentControlScope, l as AutomationContentControlSubtype, m as AutomationContentControlValue, n as AutomationError, o as AutomationErrorCode, p as AutomationFontRead, q as AutomationFontWrite, r as AutomationHandle, s as AutomationHandleRef, t as AutomationObjectKind, u as AutomationOperation, v as AutomationOperationKind, w as AutomationOperationResult, x as AutomationPageOrientation, y as AutomationPageSetupRead, z as AutomationPageSetupWrite, B as AutomationParagraphFormatRead, C as AutomationParagraphFormatWrite, D as AutomationParagraphRef, E as AutomationPoint, F as AutomationSaveResult, G as AutomationSearchOptions, H as AutomationSelectionMode, I as AutomationSpan, J as AutomationSpanRef, K as AutomationUnsubscribe, L as AutomationValue, M as isAutomationCommand, N as isSolitaryAutomationCommand } from './protocol-B5oSt08P.cjs';
|
|
3
|
+
import { H as HeaderFooterVariant } from './hf-references-BPET4tlK.cjs';
|
|
4
|
+
import { N as NoteKind } from './note-nodes-B2wWES2L.cjs';
|
|
5
|
+
import { a as OoxmlPackageLimits, b as OoxmlPackageRejection } from './ooxml-package-Cmbe_M04.cjs';
|
|
6
|
+
import './ooxml-tree-CG0odFyi.cjs';
|
|
7
7
|
|
|
8
8
|
/** The variants a section can declare furniture for. */
|
|
9
9
|
declare const HEADER_FOOTER_VARIANTS: readonly HeaderFooterVariant[];
|
package/dist/automation.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-
|
|
2
|
-
export { b as AUTOMATION_COMMAND_OPERATIONS, c as AUTOMATION_QUERY_OPERATIONS, d as AUTOMATION_SOLITARY_OPERATIONS, e as AutomationAlignment, f as AutomationBatchRequest, g as AutomationBatchResponse, h as AutomationChangeEvent, i as AutomationContentControlLock, j as AutomationContentControlRangeLocation, k as AutomationContentControlScope, l as AutomationContentControlSubtype, m as AutomationContentControlValue, n as AutomationError, o as AutomationErrorCode, p as AutomationFontRead, q as AutomationFontWrite, r as AutomationHandle, s as AutomationHandleRef, t as AutomationObjectKind, u as AutomationOperation, v as AutomationOperationKind, w as AutomationOperationResult, x as AutomationPageOrientation, y as AutomationPageSetupRead, z as AutomationPageSetupWrite, B as AutomationParagraphFormatRead, C as AutomationParagraphFormatWrite, D as AutomationParagraphRef, E as AutomationPoint, F as AutomationSaveResult, G as AutomationSearchOptions, H as AutomationSelectionMode, I as AutomationSpan, J as AutomationSpanRef, K as AutomationUnsubscribe, L as AutomationValue, M as isAutomationCommand, N as isSolitaryAutomationCommand } from './protocol-
|
|
3
|
-
import { H as HeaderFooterVariant } from './hf-references-
|
|
4
|
-
import { N as NoteKind } from './note-nodes-
|
|
5
|
-
import { a as OoxmlPackageLimits, b as OoxmlPackageRejection } from './ooxml-package-
|
|
6
|
-
import './ooxml-tree-
|
|
1
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-ooK7PAXz.js';
|
|
2
|
+
export { b as AUTOMATION_COMMAND_OPERATIONS, c as AUTOMATION_QUERY_OPERATIONS, d as AUTOMATION_SOLITARY_OPERATIONS, e as AutomationAlignment, f as AutomationBatchRequest, g as AutomationBatchResponse, h as AutomationChangeEvent, i as AutomationContentControlLock, j as AutomationContentControlRangeLocation, k as AutomationContentControlScope, l as AutomationContentControlSubtype, m as AutomationContentControlValue, n as AutomationError, o as AutomationErrorCode, p as AutomationFontRead, q as AutomationFontWrite, r as AutomationHandle, s as AutomationHandleRef, t as AutomationObjectKind, u as AutomationOperation, v as AutomationOperationKind, w as AutomationOperationResult, x as AutomationPageOrientation, y as AutomationPageSetupRead, z as AutomationPageSetupWrite, B as AutomationParagraphFormatRead, C as AutomationParagraphFormatWrite, D as AutomationParagraphRef, E as AutomationPoint, F as AutomationSaveResult, G as AutomationSearchOptions, H as AutomationSelectionMode, I as AutomationSpan, J as AutomationSpanRef, K as AutomationUnsubscribe, L as AutomationValue, M as isAutomationCommand, N as isSolitaryAutomationCommand } from './protocol-ooK7PAXz.js';
|
|
3
|
+
import { H as HeaderFooterVariant } from './hf-references-CAp1xTv6.js';
|
|
4
|
+
import { N as NoteKind } from './note-nodes-CZQXU6Fg.js';
|
|
5
|
+
import { a as OoxmlPackageLimits, b as OoxmlPackageRejection } from './ooxml-package-BrxTmTsZ.js';
|
|
6
|
+
import './ooxml-tree-CG0odFyi.js';
|
|
7
7
|
|
|
8
8
|
/** The variants a section can declare furniture for. */
|
|
9
9
|
declare const HEADER_FOOTER_VARIANTS: readonly HeaderFooterVariant[];
|
package/dist/automation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {g}from'./chunk-
|
|
1
|
+
import {g}from'./chunk-45FL7KH4.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-45FL7KH4.js';import {yb,Kf,Uc,zb,Wf,Oe,Pe,Pf,Qf,Wc}from'./chunk-LJIX4ZDF.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=yb(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 Kf(o.package,Uc(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=Wc(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?Oe(m,s.commentId,A):Pe(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"?Pf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date}}):t.kind==="reply"?Pf(e.store,{anchor:t.anchor,author:t.author,text:t.text,...t.date===void 0?{}:{date:t.date},replyToCommentId:t.parentCommentId}):t.kind==="resolve"?Qf(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=Wf(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?zb(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 chunkH3DZP4LE_cjs=require('./chunk-H3DZP4LE.cjs');require('./chunk-IJ4V3LGV.cjs'),require('./chunk-JDHTCMFA.cjs'),require('./chunk-2GSRLGUI.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.k}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.l}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.j}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunkH3DZP4LE_cjs.e}});
|
package/dist/binding.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Node, Schema } from 'prosemirror-model';
|
|
2
|
-
import { O as OoxmlProperty } from './tree-op-types-
|
|
3
|
-
import { T as TreeDocxSession } from './tree-session-
|
|
4
|
-
export { D as DocumentStyleEntry, M as MapResult, O as OpenTreeSessionResult, P as PROJECTION_ORIGIN, a as TreeApplyResult, b as TreeBindingRejection, c as TreeSessionRejection, d as bodyParagraphs, e as docToTreeOps, o as openTreeSession, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-
|
|
5
|
-
export { S as StoryScope, a as StoryTargetRejection } from './custom-node-writes-
|
|
2
|
+
import { O as OoxmlProperty } from './tree-op-types-DOYNkKqD.cjs';
|
|
3
|
+
import { T as TreeDocxSession } from './tree-session-CtK3KgFU.cjs';
|
|
4
|
+
export { D as DocumentStyleEntry, M as MapResult, O as OpenTreeSessionResult, P as PROJECTION_ORIGIN, a as TreeApplyResult, b as TreeBindingRejection, c as TreeSessionRejection, d as bodyParagraphs, e as docToTreeOps, o as openTreeSession, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-CtK3KgFU.cjs';
|
|
5
|
+
export { S as StoryScope, a as StoryTargetRejection } from './custom-node-writes-CIC_-wad.cjs';
|
|
6
6
|
import { EditorView } from 'prosemirror-view';
|
|
7
|
-
import './ooxml-tree-
|
|
8
|
-
import './image-resources-
|
|
9
|
-
import './ooxml-package-
|
|
10
|
-
import './review-support-
|
|
7
|
+
import './ooxml-tree-CG0odFyi.cjs';
|
|
8
|
+
import './image-resources-CSlQmPIm.cjs';
|
|
9
|
+
import './ooxml-package-Cmbe_M04.cjs';
|
|
10
|
+
import './review-support-CHuJxHmz.cjs';
|
|
11
11
|
import './contracts/modules.cjs';
|
|
12
|
-
import './revision-projection-
|
|
13
|
-
import './hf-references-
|
|
14
|
-
import './tree-store-
|
|
15
|
-
import './note-nodes-
|
|
12
|
+
import './revision-projection-DRZMzoLD.cjs';
|
|
13
|
+
import './hf-references-BPET4tlK.cjs';
|
|
14
|
+
import './tree-store-Jg-q7fyf.cjs';
|
|
15
|
+
import './note-nodes-B2wWES2L.cjs';
|
|
16
16
|
|
|
17
17
|
/** Attributes carried by a projected paragraph. */
|
|
18
18
|
interface ParagraphAttrs {
|
package/dist/binding.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Node, Schema } from 'prosemirror-model';
|
|
2
|
-
import { O as OoxmlProperty } from './tree-op-types-
|
|
3
|
-
import { T as TreeDocxSession } from './tree-session-
|
|
4
|
-
export { D as DocumentStyleEntry, M as MapResult, O as OpenTreeSessionResult, P as PROJECTION_ORIGIN, a as TreeApplyResult, b as TreeBindingRejection, c as TreeSessionRejection, d as bodyParagraphs, e as docToTreeOps, o as openTreeSession, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-
|
|
5
|
-
export { S as StoryScope, a as StoryTargetRejection } from './custom-node-writes-
|
|
2
|
+
import { O as OoxmlProperty } from './tree-op-types-CZw9QhWX.js';
|
|
3
|
+
import { T as TreeDocxSession } from './tree-session-CF_EOhTW.js';
|
|
4
|
+
export { D as DocumentStyleEntry, M as MapResult, O as OpenTreeSessionResult, P as PROJECTION_ORIGIN, a as TreeApplyResult, b as TreeBindingRejection, c as TreeSessionRejection, d as bodyParagraphs, e as docToTreeOps, o as openTreeSession, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-CF_EOhTW.js';
|
|
5
|
+
export { S as StoryScope, a as StoryTargetRejection } from './custom-node-writes-2clI36T9.js';
|
|
6
6
|
import { EditorView } from 'prosemirror-view';
|
|
7
|
-
import './ooxml-tree-
|
|
8
|
-
import './image-resources-
|
|
9
|
-
import './ooxml-package-
|
|
10
|
-
import './review-support-
|
|
7
|
+
import './ooxml-tree-CG0odFyi.js';
|
|
8
|
+
import './image-resources-e13t-pgy.js';
|
|
9
|
+
import './ooxml-package-BrxTmTsZ.js';
|
|
10
|
+
import './review-support-Bl9sN8cv.js';
|
|
11
11
|
import './contracts/modules.js';
|
|
12
|
-
import './revision-projection-
|
|
13
|
-
import './hf-references-
|
|
14
|
-
import './tree-store-
|
|
15
|
-
import './note-nodes-
|
|
12
|
+
import './revision-projection-u4nT52xT.js';
|
|
13
|
+
import './hf-references-CAp1xTv6.js';
|
|
14
|
+
import './tree-store-9TaX-L0V.js';
|
|
15
|
+
import './note-nodes-CZQXU6Fg.js';
|
|
16
16
|
|
|
17
17
|
/** Attributes carried by a projected paragraph. */
|
|
18
18
|
interface ParagraphAttrs {
|
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-32NXPFYL.js';import'./chunk-UVIUNAQ6.js';import'./chunk-YTZIGUXT.js';import'./chunk-LJIX4ZDF.js';
|