@docx-editor.dev/core 2.10.0 → 2.12.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 +14 -5
- package/dist/automation.d.ts +14 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +12 -11
- package/dist/binding.d.ts +12 -11
- package/dist/binding.js +1 -1
- package/dist/chunk-3JON7JMD.cjs +1 -0
- package/dist/chunk-5V6FNKBE.cjs +2 -0
- package/dist/chunk-6JIJOZDW.js +1 -0
- package/dist/chunk-BTQKU64Q.cjs +1 -0
- package/dist/chunk-BXRVGHTY.cjs +18 -0
- package/dist/chunk-BXTTPJSH.js +5 -0
- package/dist/chunk-D5EHDHYV.js +1 -0
- package/dist/{chunk-PSZH2VXP.js → chunk-GOEBQ26R.js} +1 -1
- package/dist/chunk-ILTZTY3K.cjs +10 -0
- package/dist/chunk-IUM7FZPA.js +2 -0
- package/dist/chunk-JWZG4QJ5.cjs +2 -0
- package/dist/chunk-JXZYDBKU.cjs +19 -0
- package/dist/chunk-KBOOIC2Q.js +19 -0
- package/dist/chunk-L6XZTLPS.js +10 -0
- package/dist/chunk-L7OR5TJK.cjs +5 -0
- package/dist/chunk-MHQNR2OU.js +2 -0
- package/dist/chunk-MLGPISGH.js +1 -0
- package/dist/chunk-NJXQABQU.js +18 -0
- package/dist/{chunk-YMYCPY5Y.cjs → chunk-OHJQ7GPZ.cjs} +1 -1
- package/dist/chunk-TKEGK4GQ.cjs +2 -0
- package/dist/chunk-VGFMPWND.js +2 -0
- package/dist/chunk-W77HJGYX.js +1 -0
- package/dist/chunk-XCFM3G5L.cjs +1 -0
- package/dist/chunk-ZKWRCLT2.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -0
- package/dist/collaboration/replication.d.cts +216 -0
- package/dist/collaboration/replication.d.ts +216 -0
- package/dist/collaboration/replication.js +1 -0
- package/dist/collaboration.cjs +1 -0
- package/dist/collaboration.d.cts +176 -0
- package/dist/collaboration.d.ts +176 -0
- package/dist/collaboration.js +1 -0
- package/dist/contracts/editor.cjs +1 -1
- package/dist/contracts/editor.d.cts +8 -9
- package/dist/contracts/editor.d.ts +8 -9
- package/dist/contracts/editor.js +1 -1
- package/dist/contracts/interaction.d.cts +8 -9
- package/dist/contracts/interaction.d.ts +8 -9
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.cts +21 -8
- package/dist/contracts/modules.d.ts +21 -8
- package/dist/contracts/modules.js +1 -1
- package/dist/custom-node-writes-CcNeHH5C.d.ts +310 -0
- package/dist/custom-node-writes-D4rMJIES.d.cts +310 -0
- package/dist/document-properties-D6Ahr8D6.d.cts +28 -0
- package/dist/document-properties-D6Ahr8D6.d.ts +28 -0
- package/dist/{editor-CwzY2Hcg.d.cts → editor-B76SEMZw.d.cts} +145 -49
- package/dist/{editor-C0my6Uta.d.ts → editor-BcdsPdbY.d.ts} +145 -49
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -7299
- package/dist/editor.d.cts +60 -26
- package/dist/editor.d.ts +60 -26
- package/dist/editor.js +1 -1
- package/dist/failure-BnGjoXf0.d.cts +64 -0
- package/dist/failure-BnGjoXf0.d.ts +64 -0
- package/dist/{index-kID8Ymkp.d.ts → index-BYTvklN5.d.ts} +262 -81
- package/dist/{index-nLFwo_17.d.cts → index-CDGhPib1.d.cts} +262 -81
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +19 -18
- package/dist/index.d.ts +19 -18
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +82 -53
- package/dist/layout.d.ts +82 -53
- package/dist/layout.js +1 -1
- package/dist/{note-properties-jvnw_DGG.d.ts → note-properties-Bx7rXruA.d.ts} +1 -1
- package/dist/{note-properties-CQlxjic_.d.cts → note-properties-zQ8w04en.d.cts} +1 -1
- package/dist/{omml-equation-Dd3mBep-.d.ts → omml-equation-69O1Pd8G.d.ts} +1 -1
- package/dist/{omml-equation-BD-LsmWE.d.cts → omml-equation-BmV51rim.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -8
- package/dist/output.d.ts +6 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-C7ahrdUx.d.ts → protocol-DC7ueVuo.d.ts} +2 -2
- package/dist/{protocol-UuZOcOp7.d.cts → protocol-FTXtrAIT.d.cts} +2 -2
- package/dist/{review-items-Dw-8a6Ie.d.ts → review-items-B78OsJU2.d.ts} +1 -2
- package/dist/{review-items-CwixiHNe.d.cts → review-items-C-2WQdEb.d.cts} +1 -2
- package/dist/{review-reads-BqkiJTeR.d.cts → review-reads-CbBQlb-n.d.cts} +2 -2
- package/dist/{review-reads-C0u-IKEA.d.ts → review-reads-UexYBp-m.d.ts} +2 -2
- package/dist/{revision-projection-Cc4wz30g.d.cts → revision-projection-6u8lae9J.d.cts} +1 -1
- package/dist/{revision-projection-CILpvv4M.d.ts → revision-projection-B2v9U3qx.d.ts} +1 -1
- package/dist/{semantic-cell-selection-Utrf0lz7.d.ts → semantic-cell-selection-DsYz2Vg3.d.ts} +4 -4
- package/dist/{semantic-cell-selection-DT9x9WLf.d.cts → semantic-cell-selection-nEE7E3Z8.d.cts} +4 -4
- package/dist/{semantic-interaction-B6hFRQLy.d.ts → semantic-interaction-C00BpIyC.d.ts} +1 -1
- package/dist/{semantic-interaction-Z0xKQcB4.d.cts → semantic-interaction-DiOX0FIH.d.cts} +1 -1
- package/dist/{semantic-paint-CQEOC0Od.d.cts → semantic-paint-Cc11nrDL.d.cts} +2 -2
- package/dist/{semantic-paint-quke354p.d.ts → semantic-paint-ofuoBsYo.d.ts} +2 -2
- package/dist/{semantic-records-Do3-i5oB.d.ts → semantic-records-CRG1r6-a.d.cts} +5 -4
- package/dist/{semantic-records-CMakzQ1X.d.cts → semantic-records-CzI0ZEuR.d.ts} +5 -4
- package/dist/{shaped-measurer-BxwTUluj.d.ts → shaped-measurer-CkOGZQn9.d.ts} +1 -1
- package/dist/{shaped-measurer-DzRwWrL5.d.cts → shaped-measurer-CneACGcP.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +81 -17
- package/dist/store.d.ts +81 -17
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-DSJYmf5b.d.cts → tree-op-types-CA7qgAUF.d.cts} +1288 -18
- package/dist/{tree-op-types-BuOfCrkp.d.ts → tree-op-types-HKfUzt_-.d.ts} +1288 -18
- package/dist/{custom-node-writes-BvpWCnW8.d.ts → tree-package-fragment-Cz-v-0B3.d.cts} +107 -322
- package/dist/{custom-node-writes-Db8H6Z3n.d.cts → tree-package-fragment-oJZX_5iN.d.ts} +107 -322
- package/dist/{tree-session-contract-ByWx8eew.d.cts → tree-session-contract-BPDLrEPX.d.ts} +16 -10
- package/dist/{tree-session-contract-C1dfE9hy.d.ts → tree-session-contract-Cbl87xa8.d.cts} +16 -10
- package/dist/{tree-store-ASBtz7UB.d.ts → tree-store-B7hd6cEa.d.ts} +130 -25
- package/dist/{tree-store-CWOUMGN8.d.cts → tree-store-BenW0Mg_.d.cts} +130 -25
- package/package.json +14 -3
- package/dist/chunk-27APDXY2.js +0 -2
- package/dist/chunk-35MI6K7M.cjs +0 -10
- package/dist/chunk-4XL7SOWQ.cjs +0 -2
- package/dist/chunk-6K6QQVAZ.cjs +0 -18
- package/dist/chunk-7VQ7YLW3.cjs +0 -1
- package/dist/chunk-7ZJL5AEY.cjs +0 -1
- package/dist/chunk-C6LK2BYA.cjs +0 -2
- package/dist/chunk-GQQOL4PV.js +0 -1
- package/dist/chunk-HBEBUCRM.cjs +0 -5
- package/dist/chunk-LG5K46OM.js +0 -2
- package/dist/chunk-LWADHMVV.js +0 -5
- package/dist/chunk-N725IUO7.js +0 -18
- package/dist/chunk-N7DBENH4.js +0 -10
- package/dist/chunk-NVGFWMCO.js +0 -1
- package/dist/chunk-SYTWKJPJ.cjs +0 -18
- package/dist/chunk-YI6JXF7U.js +0 -18
- package/dist/hf-references-Dvk6De4Q.d.cts +0 -70
- package/dist/hf-references-z5Y4N1ab.d.ts +0 -70
- package/dist/note-nodes-BNCANoGN.d.ts +0 -108
- package/dist/note-nodes-DL-Au22P.d.cts +0 -108
- package/dist/ooxml-package-CdEy9ufK.d.cts +0 -1222
- package/dist/ooxml-package-CdEy9ufK.d.ts +0 -1222
- package/dist/tree-op-revision-attribution-CN06Xshv.d.cts +0 -24
- package/dist/tree-op-revision-attribution-CN06Xshv.d.ts +0 -24
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { T as TreeModelChange } from '../tree-store-B7hd6cEa.js';
|
|
2
|
+
import { g as OoxmlElement, b as OoxmlPackage } from '../tree-op-types-HKfUzt_-.js';
|
|
3
|
+
import { T as TreePackageStore } from '../tree-package-fragment-oJZX_5iN.js';
|
|
4
|
+
import '../contracts/types.js';
|
|
5
|
+
|
|
6
|
+
/** Attribute name as the journal addresses it. Prefix is authored fidelity, not identity. @public */
|
|
7
|
+
interface CanonicalAttributeName {
|
|
8
|
+
readonly namespaceUri: string;
|
|
9
|
+
readonly localName: string;
|
|
10
|
+
readonly prefix?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Content-addressed binary part reference. Bytes stay out of the journal. @public */
|
|
13
|
+
interface CanonicalBinaryDescriptor {
|
|
14
|
+
readonly storageKey: string;
|
|
15
|
+
readonly digest: string;
|
|
16
|
+
readonly size: number;
|
|
17
|
+
readonly mediaType: string;
|
|
18
|
+
}
|
|
19
|
+
/** Text node shell. Value arrives later through `spliceText`. @public */
|
|
20
|
+
interface CanonicalTextNodeDescriptor {
|
|
21
|
+
readonly logicalId: string;
|
|
22
|
+
readonly kind: 'textValue';
|
|
23
|
+
}
|
|
24
|
+
/** OOXML element shell. Attributes, bindings, and children arrive as later effects. @public */
|
|
25
|
+
interface CanonicalElementNodeDescriptor {
|
|
26
|
+
readonly logicalId: string;
|
|
27
|
+
readonly kind: OoxmlElement['kind'];
|
|
28
|
+
readonly qname: CanonicalAttributeName;
|
|
29
|
+
}
|
|
30
|
+
/** Immutable node record required to create a registry entry. @public */
|
|
31
|
+
type CanonicalNodeDescriptor = CanonicalTextNodeDescriptor | CanonicalElementNodeDescriptor;
|
|
32
|
+
/** One relationship as the journal records it. @public */
|
|
33
|
+
interface CanonicalRelationshipRecord {
|
|
34
|
+
readonly ownerPart: string;
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly type: string;
|
|
37
|
+
readonly rawTarget: string;
|
|
38
|
+
readonly targetMode: 'Internal' | 'External';
|
|
39
|
+
readonly order: number;
|
|
40
|
+
}
|
|
41
|
+
/** One compositional tree or package effect captured from a canonical write. @public */
|
|
42
|
+
type CanonicalPrimitiveEffect = {
|
|
43
|
+
readonly kind: 'putNode';
|
|
44
|
+
readonly descriptor: CanonicalNodeDescriptor;
|
|
45
|
+
} | {
|
|
46
|
+
readonly kind: 'spliceText';
|
|
47
|
+
readonly logicalId: string;
|
|
48
|
+
readonly utf16Start: number;
|
|
49
|
+
readonly deleteCount: number;
|
|
50
|
+
readonly insert: string;
|
|
51
|
+
} | {
|
|
52
|
+
readonly kind: 'setAttribute';
|
|
53
|
+
readonly logicalId: string;
|
|
54
|
+
readonly qname: CanonicalAttributeName;
|
|
55
|
+
readonly value: string | null;
|
|
56
|
+
} | {
|
|
57
|
+
readonly kind: 'setNamespaceBinding';
|
|
58
|
+
readonly logicalId: string;
|
|
59
|
+
readonly prefix: string;
|
|
60
|
+
readonly uri: string | null;
|
|
61
|
+
} | {
|
|
62
|
+
readonly kind: 'spliceChildren';
|
|
63
|
+
readonly parentLogicalId: string;
|
|
64
|
+
readonly start: number;
|
|
65
|
+
readonly deleteCount: number;
|
|
66
|
+
readonly childLogicalIds: readonly string[];
|
|
67
|
+
} | {
|
|
68
|
+
readonly kind: 'moveNode';
|
|
69
|
+
readonly logicalId: string;
|
|
70
|
+
readonly destinationParentLogicalId: string;
|
|
71
|
+
readonly destinationIndex: number;
|
|
72
|
+
} | {
|
|
73
|
+
readonly kind: 'putXmlPart';
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly rootLogicalId: string;
|
|
76
|
+
} | {
|
|
77
|
+
readonly kind: 'deleteXmlPart';
|
|
78
|
+
readonly name: string;
|
|
79
|
+
} | {
|
|
80
|
+
readonly kind: 'putRelationship';
|
|
81
|
+
readonly owner: string;
|
|
82
|
+
readonly record: CanonicalRelationshipRecord;
|
|
83
|
+
} | {
|
|
84
|
+
readonly kind: 'deleteRelationship';
|
|
85
|
+
readonly owner: string;
|
|
86
|
+
readonly relationshipId: string;
|
|
87
|
+
} | {
|
|
88
|
+
readonly kind: 'putContentTypeOverride';
|
|
89
|
+
readonly partName: string;
|
|
90
|
+
readonly mediaType: string;
|
|
91
|
+
} | {
|
|
92
|
+
readonly kind: 'deleteContentTypeOverride';
|
|
93
|
+
readonly partName: string;
|
|
94
|
+
} | {
|
|
95
|
+
readonly kind: 'putBinary';
|
|
96
|
+
readonly descriptor: CanonicalBinaryDescriptor;
|
|
97
|
+
} | {
|
|
98
|
+
readonly kind: 'deleteBinary';
|
|
99
|
+
readonly storageKey: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* One immutable journal for one `TreePackageStore` transaction.
|
|
103
|
+
*
|
|
104
|
+
* Empty only when a committed write used a path the journal does not yet intercept.
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
interface CanonicalPrimitiveJournal {
|
|
109
|
+
readonly effects: readonly CanonicalPrimitiveEffect[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** Options for a canonical collaboration document port. @public */
|
|
113
|
+
interface CreateCollaborationDocumentPortOptions {
|
|
114
|
+
readonly documentId: string;
|
|
115
|
+
}
|
|
116
|
+
/** Create the narrow collaboration view over one canonical package store. @public */
|
|
117
|
+
declare function createCollaborationDocumentPort(store: TreePackageStore, options: CreateCollaborationDocumentPortOptions): CollaborationDocumentPort;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* `@docx-editor.dev/core/collaboration/replication` — the seam a replication implementation
|
|
121
|
+
* binds to, not the surface a host consumes.
|
|
122
|
+
*
|
|
123
|
+
* Everything here exists for the layer BETWEEN a CRDT and the canonical tree: the document
|
|
124
|
+
* port an adapter writes through, the primitive journal it reads, and the descriptors that
|
|
125
|
+
* journal is made of. A host that renders presence and reads a status needs none of it, which
|
|
126
|
+
* is why it lives behind its own subpath — autocomplete on
|
|
127
|
+
* `@docx-editor.dev/core/collaboration` should not offer `putXmlPart` and `spliceChildren` to
|
|
128
|
+
* somebody wiring up an avatar stack.
|
|
129
|
+
*
|
|
130
|
+
* Reach for this when you are writing a provider. `@docx-editor.dev/pro` is one.
|
|
131
|
+
*
|
|
132
|
+
* @packageDocumentation
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/** One existing body paragraph exposed to the replication adapter. @public */
|
|
137
|
+
interface CollaborationParagraph {
|
|
138
|
+
/** Uppercase `w14:paraId`, stable across save and reopen. */
|
|
139
|
+
readonly paragraphId: string;
|
|
140
|
+
/** Replica-local canonical node identity. Never sent as wire identity. */
|
|
141
|
+
readonly nodeId: string;
|
|
142
|
+
/** Current canonical UTF-16 text. */
|
|
143
|
+
readonly text: string;
|
|
144
|
+
}
|
|
145
|
+
/** Attribution for one collaboration-derived canonical publication. @public */
|
|
146
|
+
interface CollaborationMutation {
|
|
147
|
+
readonly origin: string;
|
|
148
|
+
readonly actorId: string;
|
|
149
|
+
readonly operationId: string;
|
|
150
|
+
}
|
|
151
|
+
/** One paragraph text value in an atomic collaboration publication. @public */
|
|
152
|
+
interface CollaborationParagraphTextUpdate {
|
|
153
|
+
readonly paragraphId: string;
|
|
154
|
+
readonly text: string;
|
|
155
|
+
}
|
|
156
|
+
/** Result of replacing one supported paragraph's canonical text. @public */
|
|
157
|
+
type CollaborationApplyResult = {
|
|
158
|
+
readonly ok: true;
|
|
159
|
+
readonly changed: boolean;
|
|
160
|
+
} | {
|
|
161
|
+
readonly ok: false;
|
|
162
|
+
readonly reason: string;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Narrow canonical document capability handed to a collaboration implementation.
|
|
166
|
+
*
|
|
167
|
+
* It deliberately exposes no mutable package or tree store. Every write returns through the
|
|
168
|
+
* same validated transaction path as browser and automation edits.
|
|
169
|
+
*
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
interface CollaborationDocumentPort {
|
|
173
|
+
readonly documentId: string;
|
|
174
|
+
paragraphs(): readonly CollaborationParagraph[];
|
|
175
|
+
paragraphByNodeId(nodeId: string): CollaborationParagraph | null;
|
|
176
|
+
/**
|
|
177
|
+
* Resolve a stable `w14:paraId` in any story this replica holds.
|
|
178
|
+
*
|
|
179
|
+
* `paragraphs()` stays body-only because text publication transacts against the body
|
|
180
|
+
* store. Presence may name a header, a footer, a note, or a cell, so this lookup covers
|
|
181
|
+
* those parts too. It resolves through an index, not a scan, because a remote caret
|
|
182
|
+
* resolves two addresses per selection on every caret move.
|
|
183
|
+
*/
|
|
184
|
+
paragraphByStableId(paragraphId: string): CollaborationParagraph | null;
|
|
185
|
+
applyParagraphText(paragraphId: string, text: string, mutation: CollaborationMutation): CollaborationApplyResult;
|
|
186
|
+
applyParagraphTexts(updates: readonly CollaborationParagraphTextUpdate[], mutation: CollaborationMutation): CollaborationApplyResult;
|
|
187
|
+
/**
|
|
188
|
+
* Publish one remotely materialized canonical package as one revision.
|
|
189
|
+
*
|
|
190
|
+
* The package is frozen canonical state. This port exposes no mutable store or CRDT.
|
|
191
|
+
*/
|
|
192
|
+
applyRemotePackage(pkg: OoxmlPackage, mutation: CollaborationMutation): CollaborationApplyResult;
|
|
193
|
+
revision(): number;
|
|
194
|
+
subscribe(listener: (change: TreeModelChange) => void): () => void;
|
|
195
|
+
/**
|
|
196
|
+
* Observe one settled primitive journal per committed canonical transaction.
|
|
197
|
+
*
|
|
198
|
+
* Disabled observation allocates no journal. This is the collaboration write seam;
|
|
199
|
+
* adapters never write a CRDT through this port.
|
|
200
|
+
*/
|
|
201
|
+
observePrimitiveJournal(listener: (journal: CanonicalPrimitiveJournal) => void): () => void;
|
|
202
|
+
/** True when a committed journal has not yet been frozen or delivered to observers. */
|
|
203
|
+
hasPendingJournals(): boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Freeze and deliver queued journals in production order.
|
|
206
|
+
*
|
|
207
|
+
* Local edit, layout, and paint do not wait for this. Tests and teardown call it
|
|
208
|
+
* instead of sleeping on the publication timer.
|
|
209
|
+
*/
|
|
210
|
+
flushPendingJournals(): void;
|
|
211
|
+
save(): Uint8Array;
|
|
212
|
+
/** Bytes of one binary package part, or null when the part is absent. */
|
|
213
|
+
binaryPart(storageKey: string): Uint8Array | null;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export { type CanonicalAttributeName, type CanonicalBinaryDescriptor, type CanonicalElementNodeDescriptor, type CanonicalNodeDescriptor, type CanonicalPrimitiveEffect, type CanonicalPrimitiveJournal, type CanonicalRelationshipRecord, type CanonicalTextNodeDescriptor, type CollaborationApplyResult, type CollaborationDocumentPort, type CollaborationMutation, type CollaborationParagraph, type CollaborationParagraphTextUpdate, type CreateCollaborationDocumentPortOptions, createCollaborationDocumentPort };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as createCollaborationDocumentPort}from'../chunk-W77HJGYX.js';import'../chunk-L6XZTLPS.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkBTQKU64Q_cjs=require('./chunk-BTQKU64Q.cjs');var u={"already-initialized":true,"authentication-failed":true,"baseline-digest-mismatch":true,"baseline-too-large":true,"blob-digest-mismatch":true,"blob-read":true,"blob-store-full":true,"blob-too-large":true,"collaboration-session-destroyed":true,"collaboration-session-not-attached":true,"collaboration-session-not-ready":true,"collaboration-text-limit":true,"concurrent-seed":true,"document-id-mismatch":true,"duplicate-paragraph-id":true,"experimental-collaboration-body-text-only":true,"experimental-collaboration-existing-paragraphs-only":true,"experimental-collaboration-text-only":true,"experimental-collaboration-untracked-text-only":true,"immutable-baseline-changed":true,"immutable-metadata-changed":true,"initialization-aborted":true,"initialization-timeout":true,"invalid-baseline":true,"invalid-blob-descriptor":true,"invalid-bound":true,"invalid-document-id":true,"invalid-identity":true,"invalid-identity-color":true,"invalid-logical-id":true,"invalid-relationships":true,"invalid-session-id":true,"invalid-shared-metadata":true,"invalid-string":true,"local-mirror-failed":true,"materialize-dropped-content":true,"missing-blob":true,"missing-local-blob":true,"missing-root":true,"no-main-document-part":true,"not-initialized":true,"paragraph-set-mismatch":true,"port-already-attached":true,"protocol-version-mismatch":true,"prototype-key":true,"remote-apply-failed":true,"schema-version-mismatch":true,"shared-schema-invalid":true,"text-too-long":true,"too-many-attributes":true,"too-many-children":true,"too-many-nodes":true,"too-many-parts":true,"too-many-relationships":true,transport:true,"transport-disconnected":true,"tree-too-deep":true,"unknown-logical-id":true,"unknown-paragraph-id":true,"unsafe-part-name":true,"unsupported-root-key":true};function c(t){return Object.hasOwn(u,t)}function b(t,o){return t===o?true:!t||!o?false:t.code===o.code&&t.detail===o.detail}function p(t,o){return Object.freeze(o!==void 0&&o.length>0?{code:t,detail:o}:{code:t})}function m(t="initializing"){let o=t,e,r,n=Object.freeze({status:o,reason:e,lastFailure:r});return {status:()=>o,snapshot:()=>n,set(i,l,s){let a=l===void 0?void 0:p(l,s);return o===i&&b(e,a)?false:(o=i,e=a,i==="error"&&a&&(r=a),n=Object.freeze({status:o,reason:e,lastFailure:r}),true)}}}Object.defineProperty(exports,"safeParticipantColor",{enumerable:true,get:function(){return chunkBTQKU64Q_cjs.a}});exports.createCollaborationStatusTracker=m;exports.isCollaborationFailureCode=c;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { S as StoryScope } from './tree-package-fragment-Cz-v-0B3.cjs';
|
|
2
|
+
import { T as TreeDocOp } from './tree-op-types-CA7qgAUF.cjs';
|
|
3
|
+
import { CollaborationDocumentPort } from './collaboration/replication.cjs';
|
|
4
|
+
import { C as CollaborationStatus, a as CollaborationStatusSnapshot, b as CollaborationFailureCode } from './failure-BnGjoXf0.cjs';
|
|
5
|
+
export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-BnGjoXf0.cjs';
|
|
6
|
+
import './tree-store-BenW0Mg_.cjs';
|
|
7
|
+
import './contracts/types.cjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A peer's presence color is attacker-controlled: it arrives over awareness from whoever is in
|
|
11
|
+
* the room, and the engine paints it into a CSS custom property that the stylesheet consumes in
|
|
12
|
+
* a `background` shorthand. A custom property substitutes verbatim, so `url(...)` is a valid
|
|
13
|
+
* `<bg-image>` there — an unvalidated color is a zero-click GET to any host the peer names, on
|
|
14
|
+
* every replica that paints their caret. A length cap does not help: `url(//host/t)` is short.
|
|
15
|
+
*
|
|
16
|
+
* So the only colors that reach a style property are the two shapes this engine itself produces:
|
|
17
|
+
* a hex literal, or a reference to one of the review author slots the core stylesheet owns.
|
|
18
|
+
* Anything else is dropped and the caller falls back to the accent color.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Return `value` when it is a color this engine can safely paint, otherwise `undefined`.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
declare function safeParticipantColor(value: string | undefined): string | undefined;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* `@docx-editor.dev/core/collaboration` — provider-neutral collaboration contracts.
|
|
29
|
+
*
|
|
30
|
+
* This lane names the attachment between the canonical tree and an optional replication
|
|
31
|
+
* implementation. It performs no networking and imports no CRDT.
|
|
32
|
+
*
|
|
33
|
+
* @packageDocumentation
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/** Human or automation identity attached to authored collaboration transactions. @public */
|
|
38
|
+
interface CollaborationIdentity {
|
|
39
|
+
readonly actorId: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly color?: string;
|
|
42
|
+
readonly role?: 'human' | 'agent';
|
|
43
|
+
}
|
|
44
|
+
/** One validated identity visible through ephemeral collaboration presence. @public */
|
|
45
|
+
interface CollaborationParticipant extends CollaborationIdentity {
|
|
46
|
+
readonly isLocal: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* One endpoint of a published selection: a stable paragraph id and a UTF-16 offset.
|
|
50
|
+
*
|
|
51
|
+
* The wire payload carries only these two endpoints. The receiver walks its own canonical
|
|
52
|
+
* tree to find the paragraphs between them, so a select-all does not grow with document size.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
interface CollaborationSelectionAddress {
|
|
57
|
+
readonly paragraphId: string;
|
|
58
|
+
readonly offset: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* How a published selection covers the document.
|
|
62
|
+
*
|
|
63
|
+
* Absent or omitted means a character range. `cells` means the table rectangle whose
|
|
64
|
+
* corner cells contain the two endpoints. The payload still carries only those endpoints,
|
|
65
|
+
* so a large table selection does not grow with the number of selected cells.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
type CollaborationSelectionKind = 'cells';
|
|
70
|
+
/**
|
|
71
|
+
* One endpoint of a remote selection resolved into this replica's canonical addresses.
|
|
72
|
+
*
|
|
73
|
+
* `paragraphId` is the stable `w14:paraId`. `nodeId` is replica-local and is used to paint.
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
interface CollaborationRemoteSelectionAddress {
|
|
78
|
+
readonly paragraphId: string;
|
|
79
|
+
readonly nodeId: string;
|
|
80
|
+
readonly offset: number;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Stable remote selection resolved into this replica's canonical paragraph addresses.
|
|
84
|
+
*
|
|
85
|
+
* Anchor and head may name different paragraphs. A collapsed caret is the same address twice.
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
interface CollaborationRemoteSelection {
|
|
90
|
+
readonly actorId: string;
|
|
91
|
+
readonly name: string;
|
|
92
|
+
readonly color?: string;
|
|
93
|
+
readonly anchor: CollaborationRemoteSelectionAddress;
|
|
94
|
+
readonly head: CollaborationRemoteSelectionAddress;
|
|
95
|
+
readonly kind?: CollaborationSelectionKind;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Selection published by the local editor through ephemeral awareness.
|
|
99
|
+
*
|
|
100
|
+
* Publish an anchor address and a head address. Do not materialize every covered paragraph.
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
interface CollaborationLocalSelection {
|
|
105
|
+
readonly anchor: CollaborationSelectionAddress;
|
|
106
|
+
readonly head: CollaborationSelectionAddress;
|
|
107
|
+
readonly kind?: CollaborationSelectionKind;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Optional replication session attached to an editor or headless automation host.
|
|
111
|
+
*
|
|
112
|
+
* Implementations own replication state only. The attached document port remains the authored
|
|
113
|
+
* authority for reads, layout, paint, and save.
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
interface EditorCollaborationSession {
|
|
118
|
+
readonly documentId: string;
|
|
119
|
+
/** Unique identity for this attachment lifetime. It prevents operation ID reuse after reconnect. */
|
|
120
|
+
readonly sessionId: string;
|
|
121
|
+
readonly identity: CollaborationIdentity;
|
|
122
|
+
status(): CollaborationStatus;
|
|
123
|
+
/**
|
|
124
|
+
* Cached status, current reason, and last failure.
|
|
125
|
+
*
|
|
126
|
+
* Same reference until any of those values change. A host that mounts after a
|
|
127
|
+
* recovered error still reads {@link CollaborationStatusSnapshot.lastFailure}.
|
|
128
|
+
*/
|
|
129
|
+
statusSnapshot(): CollaborationStatusSnapshot;
|
|
130
|
+
subscribeStatus(listener: (status: CollaborationStatus, reason?: CollaborationFailureCode, detail?: string) => void): () => void;
|
|
131
|
+
attach(port: CollaborationDocumentPort): () => void;
|
|
132
|
+
/**
|
|
133
|
+
* Whether an editor has attached its document port to this replica.
|
|
134
|
+
*
|
|
135
|
+
* False means edits do not replicate, whatever `status()` says — the usual cause is a host
|
|
136
|
+
* that did not remount the editor when the session appeared, so `collaborationModule`
|
|
137
|
+
* never attached. That mistake used to be reachable only as a `console.warn`, which a
|
|
138
|
+
* production build discards; this is the same fact as a value a host can render.
|
|
139
|
+
*/
|
|
140
|
+
readonly attached: boolean;
|
|
141
|
+
gateOperations(ops: readonly TreeDocOp[], scope: StoryScope): CollaborationFailureCode | null;
|
|
142
|
+
canUndo(): boolean;
|
|
143
|
+
canRedo(): boolean;
|
|
144
|
+
undo(): boolean;
|
|
145
|
+
redo(): boolean;
|
|
146
|
+
setLocalSelection(selection: CollaborationLocalSelection | null): void;
|
|
147
|
+
participants(): readonly CollaborationParticipant[];
|
|
148
|
+
subscribeParticipants(listener: (participants: readonly CollaborationParticipant[]) => void): () => void;
|
|
149
|
+
remoteSelections(): readonly CollaborationRemoteSelection[];
|
|
150
|
+
subscribeRemoteSelections(listener: (selections: readonly CollaborationRemoteSelection[]) => void): () => void;
|
|
151
|
+
/**
|
|
152
|
+
* Publish queued local journals to shared state.
|
|
153
|
+
*
|
|
154
|
+
* Local typing does not wait for replication. Undo, destroy, and page hide call this
|
|
155
|
+
* so a queued journal is never dropped.
|
|
156
|
+
*/
|
|
157
|
+
flushPendingJournals(): void;
|
|
158
|
+
destroy(): void;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* What a collaboration module contributes: the replica the surface attaches.
|
|
162
|
+
*
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
interface CollaborationModuleContribution {
|
|
166
|
+
/**
|
|
167
|
+
* A ready session. The host creates the Yjs room, then wraps it with
|
|
168
|
+
* `collaborationModule({ session })`.
|
|
169
|
+
*
|
|
170
|
+
* Core does not build a session from a document id: the opened package has
|
|
171
|
+
* no collaboration room identity. That identity is chosen before mount.
|
|
172
|
+
*/
|
|
173
|
+
readonly session: EditorCollaborationSession;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export { CollaborationFailureCode, type CollaborationIdentity, type CollaborationLocalSelection, type CollaborationModuleContribution, type CollaborationParticipant, type CollaborationRemoteSelection, type CollaborationRemoteSelectionAddress, type CollaborationSelectionAddress, type CollaborationSelectionKind, CollaborationStatus, CollaborationStatusSnapshot, type EditorCollaborationSession, safeParticipantColor };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { S as StoryScope } from './tree-package-fragment-oJZX_5iN.js';
|
|
2
|
+
import { T as TreeDocOp } from './tree-op-types-HKfUzt_-.js';
|
|
3
|
+
import { CollaborationDocumentPort } from './collaboration/replication.js';
|
|
4
|
+
import { C as CollaborationStatus, a as CollaborationStatusSnapshot, b as CollaborationFailureCode } from './failure-BnGjoXf0.js';
|
|
5
|
+
export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-BnGjoXf0.js';
|
|
6
|
+
import './tree-store-B7hd6cEa.js';
|
|
7
|
+
import './contracts/types.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A peer's presence color is attacker-controlled: it arrives over awareness from whoever is in
|
|
11
|
+
* the room, and the engine paints it into a CSS custom property that the stylesheet consumes in
|
|
12
|
+
* a `background` shorthand. A custom property substitutes verbatim, so `url(...)` is a valid
|
|
13
|
+
* `<bg-image>` there — an unvalidated color is a zero-click GET to any host the peer names, on
|
|
14
|
+
* every replica that paints their caret. A length cap does not help: `url(//host/t)` is short.
|
|
15
|
+
*
|
|
16
|
+
* So the only colors that reach a style property are the two shapes this engine itself produces:
|
|
17
|
+
* a hex literal, or a reference to one of the review author slots the core stylesheet owns.
|
|
18
|
+
* Anything else is dropped and the caller falls back to the accent color.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Return `value` when it is a color this engine can safely paint, otherwise `undefined`.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
declare function safeParticipantColor(value: string | undefined): string | undefined;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* `@docx-editor.dev/core/collaboration` — provider-neutral collaboration contracts.
|
|
29
|
+
*
|
|
30
|
+
* This lane names the attachment between the canonical tree and an optional replication
|
|
31
|
+
* implementation. It performs no networking and imports no CRDT.
|
|
32
|
+
*
|
|
33
|
+
* @packageDocumentation
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/** Human or automation identity attached to authored collaboration transactions. @public */
|
|
38
|
+
interface CollaborationIdentity {
|
|
39
|
+
readonly actorId: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly color?: string;
|
|
42
|
+
readonly role?: 'human' | 'agent';
|
|
43
|
+
}
|
|
44
|
+
/** One validated identity visible through ephemeral collaboration presence. @public */
|
|
45
|
+
interface CollaborationParticipant extends CollaborationIdentity {
|
|
46
|
+
readonly isLocal: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* One endpoint of a published selection: a stable paragraph id and a UTF-16 offset.
|
|
50
|
+
*
|
|
51
|
+
* The wire payload carries only these two endpoints. The receiver walks its own canonical
|
|
52
|
+
* tree to find the paragraphs between them, so a select-all does not grow with document size.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
interface CollaborationSelectionAddress {
|
|
57
|
+
readonly paragraphId: string;
|
|
58
|
+
readonly offset: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* How a published selection covers the document.
|
|
62
|
+
*
|
|
63
|
+
* Absent or omitted means a character range. `cells` means the table rectangle whose
|
|
64
|
+
* corner cells contain the two endpoints. The payload still carries only those endpoints,
|
|
65
|
+
* so a large table selection does not grow with the number of selected cells.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
type CollaborationSelectionKind = 'cells';
|
|
70
|
+
/**
|
|
71
|
+
* One endpoint of a remote selection resolved into this replica's canonical addresses.
|
|
72
|
+
*
|
|
73
|
+
* `paragraphId` is the stable `w14:paraId`. `nodeId` is replica-local and is used to paint.
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
interface CollaborationRemoteSelectionAddress {
|
|
78
|
+
readonly paragraphId: string;
|
|
79
|
+
readonly nodeId: string;
|
|
80
|
+
readonly offset: number;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Stable remote selection resolved into this replica's canonical paragraph addresses.
|
|
84
|
+
*
|
|
85
|
+
* Anchor and head may name different paragraphs. A collapsed caret is the same address twice.
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
interface CollaborationRemoteSelection {
|
|
90
|
+
readonly actorId: string;
|
|
91
|
+
readonly name: string;
|
|
92
|
+
readonly color?: string;
|
|
93
|
+
readonly anchor: CollaborationRemoteSelectionAddress;
|
|
94
|
+
readonly head: CollaborationRemoteSelectionAddress;
|
|
95
|
+
readonly kind?: CollaborationSelectionKind;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Selection published by the local editor through ephemeral awareness.
|
|
99
|
+
*
|
|
100
|
+
* Publish an anchor address and a head address. Do not materialize every covered paragraph.
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
interface CollaborationLocalSelection {
|
|
105
|
+
readonly anchor: CollaborationSelectionAddress;
|
|
106
|
+
readonly head: CollaborationSelectionAddress;
|
|
107
|
+
readonly kind?: CollaborationSelectionKind;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Optional replication session attached to an editor or headless automation host.
|
|
111
|
+
*
|
|
112
|
+
* Implementations own replication state only. The attached document port remains the authored
|
|
113
|
+
* authority for reads, layout, paint, and save.
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
interface EditorCollaborationSession {
|
|
118
|
+
readonly documentId: string;
|
|
119
|
+
/** Unique identity for this attachment lifetime. It prevents operation ID reuse after reconnect. */
|
|
120
|
+
readonly sessionId: string;
|
|
121
|
+
readonly identity: CollaborationIdentity;
|
|
122
|
+
status(): CollaborationStatus;
|
|
123
|
+
/**
|
|
124
|
+
* Cached status, current reason, and last failure.
|
|
125
|
+
*
|
|
126
|
+
* Same reference until any of those values change. A host that mounts after a
|
|
127
|
+
* recovered error still reads {@link CollaborationStatusSnapshot.lastFailure}.
|
|
128
|
+
*/
|
|
129
|
+
statusSnapshot(): CollaborationStatusSnapshot;
|
|
130
|
+
subscribeStatus(listener: (status: CollaborationStatus, reason?: CollaborationFailureCode, detail?: string) => void): () => void;
|
|
131
|
+
attach(port: CollaborationDocumentPort): () => void;
|
|
132
|
+
/**
|
|
133
|
+
* Whether an editor has attached its document port to this replica.
|
|
134
|
+
*
|
|
135
|
+
* False means edits do not replicate, whatever `status()` says — the usual cause is a host
|
|
136
|
+
* that did not remount the editor when the session appeared, so `collaborationModule`
|
|
137
|
+
* never attached. That mistake used to be reachable only as a `console.warn`, which a
|
|
138
|
+
* production build discards; this is the same fact as a value a host can render.
|
|
139
|
+
*/
|
|
140
|
+
readonly attached: boolean;
|
|
141
|
+
gateOperations(ops: readonly TreeDocOp[], scope: StoryScope): CollaborationFailureCode | null;
|
|
142
|
+
canUndo(): boolean;
|
|
143
|
+
canRedo(): boolean;
|
|
144
|
+
undo(): boolean;
|
|
145
|
+
redo(): boolean;
|
|
146
|
+
setLocalSelection(selection: CollaborationLocalSelection | null): void;
|
|
147
|
+
participants(): readonly CollaborationParticipant[];
|
|
148
|
+
subscribeParticipants(listener: (participants: readonly CollaborationParticipant[]) => void): () => void;
|
|
149
|
+
remoteSelections(): readonly CollaborationRemoteSelection[];
|
|
150
|
+
subscribeRemoteSelections(listener: (selections: readonly CollaborationRemoteSelection[]) => void): () => void;
|
|
151
|
+
/**
|
|
152
|
+
* Publish queued local journals to shared state.
|
|
153
|
+
*
|
|
154
|
+
* Local typing does not wait for replication. Undo, destroy, and page hide call this
|
|
155
|
+
* so a queued journal is never dropped.
|
|
156
|
+
*/
|
|
157
|
+
flushPendingJournals(): void;
|
|
158
|
+
destroy(): void;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* What a collaboration module contributes: the replica the surface attaches.
|
|
162
|
+
*
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
interface CollaborationModuleContribution {
|
|
166
|
+
/**
|
|
167
|
+
* A ready session. The host creates the Yjs room, then wraps it with
|
|
168
|
+
* `collaborationModule({ session })`.
|
|
169
|
+
*
|
|
170
|
+
* Core does not build a session from a document id: the opened package has
|
|
171
|
+
* no collaboration room identity. That identity is chosen before mount.
|
|
172
|
+
*/
|
|
173
|
+
readonly session: EditorCollaborationSession;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export { CollaborationFailureCode, type CollaborationIdentity, type CollaborationLocalSelection, type CollaborationModuleContribution, type CollaborationParticipant, type CollaborationRemoteSelection, type CollaborationRemoteSelectionAddress, type CollaborationSelectionAddress, type CollaborationSelectionKind, CollaborationStatus, CollaborationStatusSnapshot, type EditorCollaborationSession, safeParticipantColor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as safeParticipantColor}from'./chunk-6JIJOZDW.js';var u={"already-initialized":true,"authentication-failed":true,"baseline-digest-mismatch":true,"baseline-too-large":true,"blob-digest-mismatch":true,"blob-read":true,"blob-store-full":true,"blob-too-large":true,"collaboration-session-destroyed":true,"collaboration-session-not-attached":true,"collaboration-session-not-ready":true,"collaboration-text-limit":true,"concurrent-seed":true,"document-id-mismatch":true,"duplicate-paragraph-id":true,"experimental-collaboration-body-text-only":true,"experimental-collaboration-existing-paragraphs-only":true,"experimental-collaboration-text-only":true,"experimental-collaboration-untracked-text-only":true,"immutable-baseline-changed":true,"immutable-metadata-changed":true,"initialization-aborted":true,"initialization-timeout":true,"invalid-baseline":true,"invalid-blob-descriptor":true,"invalid-bound":true,"invalid-document-id":true,"invalid-identity":true,"invalid-identity-color":true,"invalid-logical-id":true,"invalid-relationships":true,"invalid-session-id":true,"invalid-shared-metadata":true,"invalid-string":true,"local-mirror-failed":true,"materialize-dropped-content":true,"missing-blob":true,"missing-local-blob":true,"missing-root":true,"no-main-document-part":true,"not-initialized":true,"paragraph-set-mismatch":true,"port-already-attached":true,"protocol-version-mismatch":true,"prototype-key":true,"remote-apply-failed":true,"schema-version-mismatch":true,"shared-schema-invalid":true,"text-too-long":true,"too-many-attributes":true,"too-many-children":true,"too-many-nodes":true,"too-many-parts":true,"too-many-relationships":true,transport:true,"transport-disconnected":true,"tree-too-deep":true,"unknown-logical-id":true,"unknown-paragraph-id":true,"unsafe-part-name":true,"unsupported-root-key":true};function c(t){return Object.hasOwn(u,t)}function b(t,o){return t===o?true:!t||!o?false:t.code===o.code&&t.detail===o.detail}function p(t,o){return Object.freeze(o!==void 0&&o.length>0?{code:t,detail:o}:{code:t})}function m(t="initializing"){let o=t,e,r,n=Object.freeze({status:o,reason:e,lastFailure:r});return {status:()=>o,snapshot:()=>n,set(i,l,s){let a=l===void 0?void 0:p(l,s);return o===i&&b(e,a)?false:(o=i,e=a,i==="error"&&a&&(r=a),n=Object.freeze({status:o,reason:e,lastFailure:r}),true)}}}export{m as createCollaborationStatusTracker,c as isCollaborationFailureCode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOHJQ7GPZ_cjs=require('../chunk-OHJQ7GPZ.cjs');Object.defineProperty(exports,"EditorFontError",{enumerable:true,get:function(){return chunkOHJQ7GPZ_cjs.a}});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.cjs';
|
|
2
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-
|
|
3
|
-
export { A as AuthoredNoteNumbering, C as CanResult,
|
|
4
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
2
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-C-2WQdEb.cjs';
|
|
3
|
+
export { A as AuthoredNoteNumbering, C as CanResult, r as DocumentChange, t as DocumentEditingMode, u as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, w as EditorCommandShape, x as EditorCommands, y as EditorError, z as EditorEvents, E as EditorFontError, B as EditorFontErrorCode, G as EditorFormatPainterCommands, H as EditorHeaderFooterCommands, J as EditorNoteCommands, K as EditorPosition, L as EditorQueries, M as EditorQuery, N as EditorQueryResults, O as EditorScope, P as EditorSelection, a as EditorSnapshot, F as FontConfiguration, n as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, Q as FormatPainterLevel, R as FormatPainterMode, m as FormatPainterSurfaceState, U as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, a1 as NoteKind, a2 as NotePropertiesSide, a3 as NotePropertiesState, a4 as PageSetup, a5 as ResolvedNoteNumbering, a6 as ReviewActivationOptions, a7 as ReviewCommentPlacement, a8 as ReviewCustomPlacement, a9 as ReviewItemPlacement, aa as ReviewItemPlacementBase, ab as ReviewItemQuery, ac as ReviewRevisionPlacement, S as SelectedImageState, ad as SemanticIdentity, ae as SemanticTarget, T as TableBorderEdgeTarget, o as TableBorderSpec, p as TableBorderStyle, af as TableBorderTarget, ag as TableCellVerticalAlignment, ah as TableColumnDividerResizeTarget, ai as TableColumnOccurrenceTarget, q as TableContext, aj as TableRightEdgeResizeTarget, ak as TableRowOccurrenceTarget, al as TextMatch, V as ViewScope, am as ZoomFitTarget, Z as ZoomMode } from '../editor-B76SEMZw.cjs';
|
|
4
|
+
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-DiOX0FIH.cjs';
|
|
5
|
+
export { z as DrawingHorizontalReferenceFrame, D as DrawingKind, w as DrawingLocks, v as DrawingPositionInput, A as DrawingVerticalReferenceFrame, x as ImageResourceState, u as ImageWrapTarget, P as PreservedImageMime, t as RenderableImageMime, R as RevisionAddress, y as SupportedImageMime, V as ValidatedImageBytesHandle, B as VectorImageMime } from '../tree-op-types-CA7qgAUF.cjs';
|
|
5
6
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.cjs';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../revision-projection-Cc4wz30g.cjs';
|
|
11
|
-
import '../omml-equation-BD-LsmWE.cjs';
|
|
7
|
+
import '../failure-BnGjoXf0.cjs';
|
|
8
|
+
import '../semantic-records-CRG1r6-a.cjs';
|
|
9
|
+
import '../revision-projection-6u8lae9J.cjs';
|
|
10
|
+
import '../omml-equation-BmV51rim.cjs';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
|
|
2
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-
|
|
3
|
-
export { A as AuthoredNoteNumbering, C as CanResult,
|
|
4
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
2
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-B78OsJU2.js';
|
|
3
|
+
export { A as AuthoredNoteNumbering, C as CanResult, r as DocumentChange, t as DocumentEditingMode, u as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, w as EditorCommandShape, x as EditorCommands, y as EditorError, z as EditorEvents, E as EditorFontError, B as EditorFontErrorCode, G as EditorFormatPainterCommands, H as EditorHeaderFooterCommands, J as EditorNoteCommands, K as EditorPosition, L as EditorQueries, M as EditorQuery, N as EditorQueryResults, O as EditorScope, P as EditorSelection, a as EditorSnapshot, F as FontConfiguration, n as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, Q as FormatPainterLevel, R as FormatPainterMode, m as FormatPainterSurfaceState, U as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, a1 as NoteKind, a2 as NotePropertiesSide, a3 as NotePropertiesState, a4 as PageSetup, a5 as ResolvedNoteNumbering, a6 as ReviewActivationOptions, a7 as ReviewCommentPlacement, a8 as ReviewCustomPlacement, a9 as ReviewItemPlacement, aa as ReviewItemPlacementBase, ab as ReviewItemQuery, ac as ReviewRevisionPlacement, S as SelectedImageState, ad as SemanticIdentity, ae as SemanticTarget, T as TableBorderEdgeTarget, o as TableBorderSpec, p as TableBorderStyle, af as TableBorderTarget, ag as TableCellVerticalAlignment, ah as TableColumnDividerResizeTarget, ai as TableColumnOccurrenceTarget, q as TableContext, aj as TableRightEdgeResizeTarget, ak as TableRowOccurrenceTarget, al as TextMatch, V as ViewScope, am as ZoomFitTarget, Z as ZoomMode } from '../editor-BcdsPdbY.js';
|
|
4
|
+
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-C00BpIyC.js';
|
|
5
|
+
export { z as DrawingHorizontalReferenceFrame, D as DrawingKind, w as DrawingLocks, v as DrawingPositionInput, A as DrawingVerticalReferenceFrame, x as ImageResourceState, u as ImageWrapTarget, P as PreservedImageMime, t as RenderableImageMime, R as RevisionAddress, y as SupportedImageMime, V as ValidatedImageBytesHandle, B as VectorImageMime } from '../tree-op-types-HKfUzt_-.js';
|
|
5
6
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../revision-projection-CILpvv4M.js';
|
|
11
|
-
import '../omml-equation-Dd3mBep-.js';
|
|
7
|
+
import '../failure-BnGjoXf0.js';
|
|
8
|
+
import '../semantic-records-CzI0ZEuR.js';
|
|
9
|
+
import '../revision-projection-B2v9U3qx.js';
|
|
10
|
+
import '../omml-equation-69O1Pd8G.js';
|
package/dist/contracts/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as EditorFontError}from'../chunk-
|
|
1
|
+
export{a as EditorFontError}from'../chunk-GOEBQ26R.js';
|