@docx-editor.dev/core 2.19.0 → 2.20.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.ts +10 -9
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +8 -9
- package/dist/binding.js +1 -1
- package/dist/chunk-2H4ABRMB.cjs +20 -0
- package/dist/{chunk-YVYEJBLL.cjs → chunk-2HQXLL5L.cjs} +1 -1
- package/dist/chunk-3EZO3O6I.js +4 -0
- package/dist/{chunk-SUEX3CL7.cjs → chunk-44SIVFJT.cjs} +5 -5
- package/dist/chunk-6UCDHGXI.js +1 -0
- package/dist/chunk-7VMVDRRU.js +2 -0
- package/dist/{chunk-4DB7ZFQN.js → chunk-CAIWEQLC.js} +1 -1
- package/dist/{chunk-PBM6WERF.cjs → chunk-CEXC2VHI.cjs} +1 -1
- package/dist/chunk-CF3JR35B.js +11 -0
- package/dist/chunk-D2V4YBWJ.cjs +2 -0
- package/dist/chunk-DGSJZMAE.cjs +11 -0
- package/dist/chunk-EHBPYFRE.js +20 -0
- package/dist/chunk-GSEUM6AI.cjs +1 -0
- package/dist/chunk-H6WDEAOJ.js +18 -0
- package/dist/chunk-I6LSEDUL.cjs +18 -0
- package/dist/{chunk-ZMM5RNM6.js → chunk-IW35GWJN.js} +1 -1
- package/dist/chunk-JRBGCIR2.js +5 -0
- package/dist/chunk-K5HIOS6J.cjs +3 -0
- package/dist/chunk-KLQXP27K.js +3 -0
- package/dist/{chunk-FZ2BIMCY.cjs → chunk-MZFFU66H.cjs} +1 -1
- package/dist/{chunk-2ZEU42EA.js → chunk-MZPNLIP3.js} +1 -1
- package/dist/{chunk-NJONXJJY.cjs → chunk-OA6LFCTG.cjs} +2 -2
- package/dist/{chunk-OODFC5R2.js → chunk-OHVJYJOA.js} +1 -1
- package/dist/{chunk-THCGTV53.js → chunk-P4TGGDK3.js} +1 -1
- package/dist/{chunk-KDYD5TAW.cjs → chunk-PIBYJZIH.cjs} +1 -1
- package/dist/{chunk-CG7CP632.cjs → chunk-WTILOUPG.cjs} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +2 -2
- package/dist/contracts/editor.d.ts +8 -9
- package/dist/contracts/modules.d.ts +5 -7
- package/dist/contracts/types.d.ts +1 -562
- package/dist/{custom-node-writes-BqIv94ei.d.ts → custom-node-writes-piokwVR5.d.ts} +2 -2
- package/dist/{document-protection-BL5zp8cU.d.ts → document-protection-C6RvCHx-.d.ts} +1 -1
- package/dist/{editor-WXbTSXx1.d.ts → editor-BgtcHulQ.d.ts} +19 -14
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.d.ts +25 -27
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +12 -13
- package/dist/export.js +1 -1
- package/dist/{font-resolver-BSrKnTeR.d.ts → font-resolver-Bv2Z25-J.d.ts} +1 -1
- package/dist/{headless-document-view-C4ttQJ5H.d.ts → headless-document-view-DHKMN_3Y.d.ts} +2 -2
- package/dist/image-resources-C51LuAAu.d.ts +210 -0
- package/dist/{index-C3As-Xxp.d.ts → index-3lr8xXF8.d.ts} +14 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -18
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-Dqu3JW3p.d.ts → layout-shaping-CKBUSaS7.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +48 -19
- package/dist/layout.js +1 -1
- package/dist/{tree-package-fragment-1pdDnhZ_.d.ts → note-lifecycle-D4AOFCAt.d.ts} +142 -141
- package/dist/{note-properties-RjYgbmXe.d.ts → note-properties-CcXUgqr8.d.ts} +2 -2
- package/dist/{omml-equation-hcP9AUFX.d.ts → omml-equation-C5P6Ym3v.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +7 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-OdRd17KZ.d.ts → protocol-CsawNZkt.d.ts} +14 -4
- package/dist/{review-paragraph-order--jLHXIcd.d.ts → review-paragraph-order-BCIqjopY.d.ts} +2 -3
- package/dist/{revision-projection-BIHO_qvw.d.ts → revision-projection-BcRnC4Yj.d.ts} +1 -1
- package/dist/{semantic-cell-selection-lCYAVCCF.d.ts → semantic-cell-selection-R9wrenwR.d.ts} +4 -4
- package/dist/{semantic-interaction-0vQXcMZk.d.ts → semantic-interaction-B7beVwH7.d.ts} +1 -1
- package/dist/{semantic-paint-BSan4pBk.d.ts → semantic-paint-CLvHwf8y.d.ts} +2 -2
- package/dist/{semantic-records-ZcYuB4-H.d.ts → semantic-records-CbXwnS80.d.ts} +5 -4
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +13 -14
- package/dist/store.js +1 -1
- package/dist/{tree-session-contract-Cgn6fQ-M.d.ts → tree-session-contract-DTQxw2zL.d.ts} +5 -5
- package/dist/{tree-op-types-DbdM7fJV.d.ts → types-barrel-CEOy-Jv0.d.ts} +961 -210
- package/package.json +2 -2
- package/dist/chunk-4KMSEFIG.js +0 -3
- package/dist/chunk-72BDQFHY.js +0 -18
- package/dist/chunk-77DD4EBC.cjs +0 -11
- package/dist/chunk-BEOPUDAB.js +0 -5
- package/dist/chunk-CJCFEXTA.js +0 -11
- package/dist/chunk-DQS4KZUX.js +0 -4
- package/dist/chunk-GUPITGJQ.cjs +0 -2
- package/dist/chunk-LQ6XWTKQ.cjs +0 -18
- package/dist/chunk-MDP5SNK4.cjs +0 -3
- package/dist/chunk-MRPPCGCX.cjs +0 -20
- package/dist/chunk-MSIFK7TJ.js +0 -1
- package/dist/chunk-P6VGDI57.js +0 -2
- package/dist/chunk-QBMAXYN7.js +0 -20
- package/dist/chunk-ZKQX2PNF.cjs +0 -1
- package/dist/review-items-CJz-kAW8.d.ts +0 -370
package/dist/automation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkD2V4YBWJ_cjs=require('./chunk-D2V4YBWJ.cjs');require('./chunk-GSEUM6AI.cjs'),require('./chunk-I6LSEDUL.cjs'),require('./chunk-2HQXLL5L.cjs'),require('./chunk-FGBADUSK.cjs');var chunkK5HIOS6J_cjs=require('./chunk-K5HIOS6J.cjs'),chunkCEXC2VHI_cjs=require('./chunk-CEXC2VHI.cjs'),chunkDGSJZMAE_cjs=require('./chunk-DGSJZMAE.cjs');var D=Object.freeze({document:true,save:true,events:true,selection:false,scrolling:false,layout:false}),_=Object.freeze({kind:"body"});function V(o,t={}){let m=chunkDGSJZMAE_cjs.dc(o,t.limits??{});if(!m.ok)return {ok:false,reason:m.reason,...m.limit===void 0?{}:{limit:m.limit},...m.detail?{detail:m.detail}:{}};let p=m.package.parts.get(m.package.mainDocumentPart);if(!p)return {ok:false,reason:"no-main-document-part",detail:m.package.mainDocumentPart};let u=new chunkK5HIOS6J_cjs.O(m.package,chunkDGSJZMAE_cjs.Kb(p)),y=t.collaborationModel?.session,c=()=>{},n=K(u,y,()=>c());if(t.pagination){let i,l=-1,e=t.pagination;n.prepare=async f=>{if(!f.operations.some(s=>s.op==="updateFieldResult"))return;i=void 0;let a=u.packageRevision,d=await e(chunkK5HIOS6J_cjs.$a(u));u.packageRevision===a&&(i=d,l=a);},n.fieldPageContext=(f,a,d)=>{if(u.packageRevision!==l)return null;let s=chunkD2V4YBWJ_cjs.e(u.currentPackage()).story(f);return s?chunkD2V4YBWJ_cjs.b(i,s.part,a,d):null};}let r=chunkD2V4YBWJ_cjs.k({port:n,capabilities:D});return y&&(c=y.attach(chunkCEXC2VHI_cjs.b(u,{documentId:y.documentId}))),{ok:true,host:r}}function Y(o,t,m){let p=o.partFor(m);return p?chunkDGSJZMAE_cjs.Ba(o,()=>{let u=chunkDGSJZMAE_cjs.sf(o.currentPackage(),t,p.name);return u?(o.replacePackageShell(u.pkg),u.relationshipId):null},u=>u!==null):null}function K(o,t,m=()=>{}){let p=true,u=0,y=()=>t?(u+=1,{origin:t.identity.role==="agent"?chunkDGSJZMAE_cjs.b.mutationAgent:chunkDGSJZMAE_cjs.b.mutationHuman,actorId:t.identity.actorId,operationId:`${t.identity.actorId}:${t.sessionId}:automation:${u}`,recordsHistory:false}):{},c=n=>(t?.flushPendingJournals(),n);return {localChangeTracking:true,revision:()=>o.packageRevision,currentPackage:()=>p?o.currentPackage():null,apply(n,r=_,i=[]){if(!p)return {ok:false,reason:"disposed"};let l=n(d=>chunkDGSJZMAE_cjs.Mb(t?.identity.actorId,()=>Y(o,d,r)));if(l===null)return {ok:false,reason:"unsupported-target"};let e=t?.gateOperations(l,r);if(e)return {ok:false,reason:e};let f=t?o.partFor(r)?.name:void 0,a=o.transact(r,d=>{for(let s of i)d.applyPackage(s);for(let s of l)d.apply(s);f&&d.applyPackage(s=>chunkCEXC2VHI_cjs.a(s,f,l));},y());return a.ok?c({ok:true,changed:a.change!==null}):{ok:false,reason:a.detail?`${a.reason}: ${a.detail}`:a.reason}},applyLifecycle(n){if(!p)return {ok:false,reason:"disposed"};let r=t?.gateOperations([n],_);if(r)return {ok:false,reason:r};let i=chunkDGSJZMAE_cjs.Mb(t?.identity.actorId,()=>o.applyLifecycleOp(n));return i.ok?c({ok:true,changed:i.change!==null}):{ok:false,reason:i.detail?`${i.reason}: ${i.detail}`:i.reason}},applyCommentWrites(n,r){if(!p)return {ok:false,reason:"disposed"};if(n.length===0)return {ok:true,changed:false};let i=t?.gateOperations([],r);if(i)return {ok:false,reason:i};let l=o.resolveStory(r);if(!l.ok)return {ok:false,reason:l.reason};if(l.store.graftPackage(()=>o.currentPackage()),n.every(a=>a.kind==="delete")){let a=n.find(s=>s.kind==="delete"),d=chunkDGSJZMAE_cjs.Mb(t?.identity.actorId,()=>chunkK5HIOS6J_cjs.$(o,n.flatMap(s=>s.kind==="delete"?[{commentId:s.commentId,...s.parentCommentId===void 0?{}:{parentCommentId:s.parentCommentId}}]:[]),r,a?.kind==="delete"?a.noteId:void 0));return d?c({ok:true,changed:d}):{ok:false,reason:"comment-delete-refused"}}if(n.length!==1)return {ok:false,reason:"mixed-comment-writes"};let e=n[0];if(e.kind==="create"||e.kind==="reply"){let a=chunkDGSJZMAE_cjs.Mb(t?.identity.actorId,()=>chunkK5HIOS6J_cjs.Z(o,{anchor:e.anchor,author:e.author,text:e.text,...e.date===void 0?{}:{date:e.date},...e.kind==="reply"?{replyToCommentId:e.parentCommentId}:{}},r));return a.ok?c({ok:true,changed:true,..."commentId"in a?{commentId:a.commentId}:{}}):{ok:false,reason:a.reason}}if(e.kind!=="resolve")return {ok:false,reason:"unsupported-comment-write"};let f=chunkDGSJZMAE_cjs.Mb(t?.identity.actorId,()=>chunkK5HIOS6J_cjs._(o,e.commentId,e.resolved));return f.ok?c({ok:true,changed:true}):{ok:false,reason:f.reason}},applyCustomNodeWrite(n,r){if(!p)return {ok:false,reason:"disposed"};let i=t?.gateOperations([],r);if(i)return {ok:false,reason:i};let l=o.resolveStory(r);if(!l.ok)return {ok:false,reason:l.reason};let e=chunkDGSJZMAE_cjs.Mb(t?.identity.actorId,()=>chunkK5HIOS6J_cjs.ha(o,n,r));return e.ok?c({ok:true,changed:e.change!==null}):{ok:false,reason:e.detail?`${e.reason}: ${e.detail}`:e.reason}},save:()=>p?chunkDGSJZMAE_cjs.ec(o.currentPackage()):null,subscribe:n=>o.subscribe(()=>n()),dispose(){m(),p=false;}}}Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.g}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.f}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.h}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.d}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.c}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.j}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.i}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkD2V4YBWJ_cjs.a}});exports.SERVER_AUTOMATION_CAPABILITIES=D;exports.createServerAutomationHost=V;
|
package/dist/automation.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
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 AutomationTextProjection, L as AutomationUnsubscribe, M as AutomationValue, N as isAutomationCommand, O as isSolitaryAutomationCommand } from './protocol-
|
|
3
|
-
import { H as HeaderFooterVariant, N as NoteKind } from './
|
|
4
|
-
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-
|
|
5
|
-
import { H as HeadlessDocumentView } from './headless-document-view-
|
|
6
|
-
import {
|
|
1
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-CsawNZkt.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 AutomationTextProjection, L as AutomationUnsubscribe, M as AutomationValue, N as isAutomationCommand, O as isSolitaryAutomationCommand } from './protocol-CsawNZkt.js';
|
|
3
|
+
import { H as HeaderFooterVariant, N as NoteKind } from './note-lifecycle-D4AOFCAt.js';
|
|
4
|
+
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-CbXwnS80.js';
|
|
5
|
+
import { H as HeadlessDocumentView } from './headless-document-view-DHKMN_3Y.js';
|
|
6
|
+
import { X as OoxmlPackageLimits, Y as OoxmlPackageRejection } from './types-barrel-CEOy-Jv0.js';
|
|
7
|
+
export { Z as RevisionBatchEntry, _ as RevisionBatchResult, $ as RevisionBatchSkipReason } from './types-barrel-CEOy-Jv0.js';
|
|
7
8
|
import { CollaborationModuleContribution } from './collaboration.js';
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
9
|
+
import './image-resources-C51LuAAu.js';
|
|
10
|
+
import './revision-projection-BcRnC4Yj.js';
|
|
11
|
+
import './omml-equation-C5P6Ym3v.js';
|
|
11
12
|
import './collaboration/replication.js';
|
|
12
13
|
import './failure-DNNmwsgD.js';
|
|
13
14
|
|
package/dist/automation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {k,e,b as b$1}from'./chunk-
|
|
1
|
+
import {k,e,b as b$1}from'./chunk-7VMVDRRU.js';export{g as AUTOMATION_COMMAND_OPERATIONS,f as AUTOMATION_QUERY_OPERATIONS,h as AUTOMATION_SOLITARY_OPERATIONS,d as HEADER_FOOTER_VARIANTS,c as createAutomationPaginationProvider,j as isAutomationCommand,i as isSolitaryAutomationCommand,a as paginationSnapshotOf}from'./chunk-7VMVDRRU.js';import'./chunk-6UCDHGXI.js';import'./chunk-H6WDEAOJ.js';import'./chunk-P4TGGDK3.js';import'./chunk-VP7SDFCM.js';import {O,$a,ha,$,Z,_ as _$1}from'./chunk-KLQXP27K.js';import {b,a}from'./chunk-IW35GWJN.js';import {dc,Kb,ec,Mb,Ba,sf,b as b$2}from'./chunk-CF3JR35B.js';var D=Object.freeze({document:true,save:true,events:true,selection:false,scrolling:false,layout:false}),_=Object.freeze({kind:"body"});function V(o,t={}){let m=dc(o,t.limits??{});if(!m.ok)return {ok:false,reason:m.reason,...m.limit===void 0?{}:{limit:m.limit},...m.detail?{detail:m.detail}:{}};let p=m.package.parts.get(m.package.mainDocumentPart);if(!p)return {ok:false,reason:"no-main-document-part",detail:m.package.mainDocumentPart};let u=new O(m.package,Kb(p)),y=t.collaborationModel?.session,c=()=>{},n=K(u,y,()=>c());if(t.pagination){let i,l=-1,e$1=t.pagination;n.prepare=async f=>{if(!f.operations.some(s=>s.op==="updateFieldResult"))return;i=void 0;let a=u.packageRevision,d=await e$1($a(u));u.packageRevision===a&&(i=d,l=a);},n.fieldPageContext=(f,a,d)=>{if(u.packageRevision!==l)return null;let s=e(u.currentPackage()).story(f);return s?b$1(i,s.part,a,d):null};}let r=k({port:n,capabilities:D});return y&&(c=y.attach(b(u,{documentId:y.documentId}))),{ok:true,host:r}}function Y(o,t,m){let p=o.partFor(m);return p?Ba(o,()=>{let u=sf(o.currentPackage(),t,p.name);return u?(o.replacePackageShell(u.pkg),u.relationshipId):null},u=>u!==null):null}function K(o,t,m=()=>{}){let p=true,u=0,y=()=>t?(u+=1,{origin:t.identity.role==="agent"?b$2.mutationAgent:b$2.mutationHuman,actorId:t.identity.actorId,operationId:`${t.identity.actorId}:${t.sessionId}:automation:${u}`,recordsHistory:false}):{},c=n=>(t?.flushPendingJournals(),n);return {localChangeTracking:true,revision:()=>o.packageRevision,currentPackage:()=>p?o.currentPackage():null,apply(n,r=_,i=[]){if(!p)return {ok:false,reason:"disposed"};let l=n(d=>Mb(t?.identity.actorId,()=>Y(o,d,r)));if(l===null)return {ok:false,reason:"unsupported-target"};let e=t?.gateOperations(l,r);if(e)return {ok:false,reason:e};let f=t?o.partFor(r)?.name:void 0,a$1=o.transact(r,d=>{for(let s of i)d.applyPackage(s);for(let s of l)d.apply(s);f&&d.applyPackage(s=>a(s,f,l));},y());return a$1.ok?c({ok:true,changed:a$1.change!==null}):{ok:false,reason:a$1.detail?`${a$1.reason}: ${a$1.detail}`:a$1.reason}},applyLifecycle(n){if(!p)return {ok:false,reason:"disposed"};let r=t?.gateOperations([n],_);if(r)return {ok:false,reason:r};let i=Mb(t?.identity.actorId,()=>o.applyLifecycleOp(n));return i.ok?c({ok:true,changed:i.change!==null}):{ok:false,reason:i.detail?`${i.reason}: ${i.detail}`:i.reason}},applyCommentWrites(n,r){if(!p)return {ok:false,reason:"disposed"};if(n.length===0)return {ok:true,changed:false};let i=t?.gateOperations([],r);if(i)return {ok:false,reason:i};let l=o.resolveStory(r);if(!l.ok)return {ok:false,reason:l.reason};if(l.store.graftPackage(()=>o.currentPackage()),n.every(a=>a.kind==="delete")){let a=n.find(s=>s.kind==="delete"),d=Mb(t?.identity.actorId,()=>$(o,n.flatMap(s=>s.kind==="delete"?[{commentId:s.commentId,...s.parentCommentId===void 0?{}:{parentCommentId:s.parentCommentId}}]:[]),r,a?.kind==="delete"?a.noteId:void 0));return d?c({ok:true,changed:d}):{ok:false,reason:"comment-delete-refused"}}if(n.length!==1)return {ok:false,reason:"mixed-comment-writes"};let e=n[0];if(e.kind==="create"||e.kind==="reply"){let a=Mb(t?.identity.actorId,()=>Z(o,{anchor:e.anchor,author:e.author,text:e.text,...e.date===void 0?{}:{date:e.date},...e.kind==="reply"?{replyToCommentId:e.parentCommentId}:{}},r));return a.ok?c({ok:true,changed:true,..."commentId"in a?{commentId:a.commentId}:{}}):{ok:false,reason:a.reason}}if(e.kind!=="resolve")return {ok:false,reason:"unsupported-comment-write"};let f=Mb(t?.identity.actorId,()=>_$1(o,e.commentId,e.resolved));return f.ok?c({ok:true,changed:true}):{ok:false,reason:f.reason}},applyCustomNodeWrite(n,r){if(!p)return {ok:false,reason:"disposed"};let i=t?.gateOperations([],r);if(i)return {ok:false,reason:i};let l=o.resolveStory(r);if(!l.ok)return {ok:false,reason:l.reason};let e=Mb(t?.identity.actorId,()=>ha(o,n,r));return e.ok?c({ok:true,changed:e.change!==null}):{ok:false,reason:e.detail?`${e.reason}: ${e.detail}`:e.reason}},save:()=>p?ec(o.currentPackage()):null,subscribe:n=>o.subscribe(()=>n()),dispose(){m(),p=false;}}}export{D as SERVER_AUTOMATION_CAPABILITIES,V as createServerAutomationHost};
|
package/dist/binding.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk44SIVFJT_cjs=require('./chunk-44SIVFJT.cjs');require('./chunk-WTILOUPG.cjs'),require('./chunk-2HQXLL5L.cjs'),require('./chunk-FGBADUSK.cjs'),require('./chunk-K5HIOS6J.cjs'),require('./chunk-CEXC2VHI.cjs'),require('./chunk-DGSJZMAE.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.k}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.l}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.j}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk44SIVFJT_cjs.e}});
|
package/dist/binding.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { Node, Schema } from 'prosemirror-model';
|
|
2
|
-
import {
|
|
3
|
-
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-
|
|
4
|
-
export { D as DocumentStyleEntry, M as MapResult, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-
|
|
2
|
+
import { a0 as OoxmlProperty, Y as OoxmlPackageRejection } from './types-barrel-CEOy-Jv0.js';
|
|
3
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-DTQxw2zL.js';
|
|
4
|
+
export { D as DocumentStyleEntry, M as MapResult, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-DTQxw2zL.js';
|
|
5
5
|
import { ReviewModuleContribution } from './contracts/modules.js';
|
|
6
|
-
export { S as StoryScope, a as StoryTargetRejection } from './
|
|
6
|
+
export { S as StoryScope, a as StoryTargetRejection } from './note-lifecycle-D4AOFCAt.js';
|
|
7
7
|
import { EditorView } from 'prosemirror-view';
|
|
8
|
-
import './
|
|
9
|
-
import './custom-node-writes-
|
|
10
|
-
import './headless-document-view-
|
|
11
|
-
import './review-items-CJz-kAW8.js';
|
|
8
|
+
import './image-resources-C51LuAAu.js';
|
|
9
|
+
import './custom-node-writes-piokwVR5.js';
|
|
10
|
+
import './headless-document-view-DHKMN_3Y.js';
|
|
12
11
|
import './collaboration/replication.js';
|
|
13
12
|
import './editor-scope-DZJT4ukT.js';
|
|
13
|
+
import './revision-projection-BcRnC4Yj.js';
|
|
14
14
|
import './collaboration.js';
|
|
15
15
|
import './failure-DNNmwsgD.js';
|
|
16
|
-
import './revision-projection-BIHO_qvw.js';
|
|
17
16
|
|
|
18
17
|
/** Attributes carried by a projected paragraph. */
|
|
19
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-JRBGCIR2.js';import'./chunk-CAIWEQLC.js';import'./chunk-P4TGGDK3.js';import'./chunk-VP7SDFCM.js';import'./chunk-KLQXP27K.js';import'./chunk-IW35GWJN.js';import'./chunk-CF3JR35B.js';
|