@docx-editor.dev/core 2.12.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +5 -5
- package/dist/automation.d.ts +5 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +8 -8
- package/dist/binding.d.ts +8 -8
- package/dist/binding.js +1 -1
- package/dist/chunk-2PIHW2QM.cjs +1 -0
- package/dist/chunk-2QTY5S6T.js +1 -0
- package/dist/chunk-4Z5MODAE.cjs +2 -0
- package/dist/chunk-5TKAPFZT.cjs +2 -0
- package/dist/chunk-DRQHIQ4R.cjs +1 -0
- package/dist/chunk-F2K6SDHA.cjs +20 -0
- package/dist/chunk-FBA57EUJ.js +2 -0
- package/dist/{chunk-XCFM3G5L.cjs → chunk-KIAP7PFQ.cjs} +1 -1
- package/dist/chunk-KTAQ7BRQ.js +20 -0
- package/dist/chunk-LBAHXZCU.cjs +5 -0
- package/dist/chunk-MCDUQYWP.js +5 -0
- package/dist/chunk-MQP26KCF.js +1 -0
- package/dist/chunk-NDJGSR6M.cjs +19 -0
- package/dist/chunk-NJNFJPGB.cjs +11 -0
- package/dist/chunk-O5M4CR4P.cjs +2 -0
- package/dist/{chunk-W77HJGYX.js → chunk-OKEDGR65.js} +1 -1
- package/dist/{chunk-WU7PUTVA.js → chunk-RIYSCEFQ.js} +1 -1
- package/dist/chunk-UKUOZXUD.js +19 -0
- package/dist/chunk-VQ4R5LTU.js +2 -0
- package/dist/chunk-ZBEJHJN2.js +11 -0
- package/dist/chunk-ZVTW7RGD.js +2 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.cts +3 -3
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.cts +3 -3
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/editor.d.cts +7 -7
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.cts +7 -7
- package/dist/contracts/interaction.d.ts +7 -7
- package/dist/contracts/modules.d.cts +7 -7
- package/dist/contracts/modules.d.ts +7 -7
- package/dist/{custom-node-writes-D4rMJIES.d.cts → custom-node-writes-C46r3_5O.d.cts} +2 -2
- package/dist/{custom-node-writes-CcNeHH5C.d.ts → custom-node-writes-DntmaAVW.d.ts} +2 -2
- package/dist/{dist-YFULGVS3.js → dist-OSUJGKTK.js} +1 -1
- package/dist/{editor-B76SEMZw.d.cts → editor-AJ06hyyg.d.cts} +45 -9
- package/dist/{editor-BcdsPdbY.d.ts → editor-a6VvsfYU.d.ts} +45 -9
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.d.cts +22 -22
- package/dist/editor.d.ts +22 -22
- package/dist/editor.js +1 -1
- package/dist/{index-BYTvklN5.d.ts → index-C5ZnSRkF.d.ts} +209 -20
- package/dist/{index-CDGhPib1.d.cts → index-Cbw4lkOt.d.cts} +209 -20
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +203 -593
- package/dist/layout.d.ts +203 -593
- package/dist/layout.js +1 -1
- package/dist/{note-properties-Bx7rXruA.d.ts → note-properties-CDFiNXcD.d.ts} +1 -1
- package/dist/{note-properties-zQ8w04en.d.cts → note-properties-Y6qYh2Hv.d.cts} +1 -1
- package/dist/{omml-equation-69O1Pd8G.d.ts → omml-equation-BY49UOIF.d.ts} +1 -1
- package/dist/{omml-equation-BmV51rim.d.cts → omml-equation-DB8d-jCq.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -6
- package/dist/output.d.ts +6 -6
- package/dist/output.js +1 -1
- package/dist/{protocol-DC7ueVuo.d.ts → protocol-BsmQgblT.d.ts} +2 -2
- package/dist/{protocol-FTXtrAIT.d.cts → protocol-gOY5GA8K.d.cts} +2 -2
- package/dist/{review-items-B78OsJU2.d.ts → review-items-CCS1h93f.d.ts} +1 -1
- package/dist/{review-items-C-2WQdEb.d.cts → review-items-CaAkgi5s.d.cts} +1 -1
- package/dist/{review-reads-UexYBp-m.d.ts → review-reads-BjZYeMd4.d.ts} +8 -21
- package/dist/{review-reads-CbBQlb-n.d.cts → review-reads-DEsV0OOW.d.cts} +8 -21
- package/dist/{revision-projection-6u8lae9J.d.cts → revision-projection-BeXVrSSV.d.ts} +24 -3
- package/dist/{revision-projection-B2v9U3qx.d.ts → revision-projection-DXbrfNGD.d.cts} +24 -3
- package/dist/{semantic-cell-selection-DsYz2Vg3.d.ts → semantic-cell-selection-BK91NCCG.d.ts} +16 -7
- package/dist/{semantic-cell-selection-nEE7E3Z8.d.cts → semantic-cell-selection-BMhku3B1.d.cts} +16 -7
- package/dist/{semantic-interaction-C00BpIyC.d.ts → semantic-interaction-BmQ7h2cq.d.ts} +4 -2
- package/dist/{semantic-interaction-DiOX0FIH.d.cts → semantic-interaction-DUAnxbgf.d.cts} +4 -2
- package/dist/{semantic-paint-Cc11nrDL.d.cts → semantic-paint-DufNL1Zr.d.cts} +2 -2
- package/dist/{semantic-paint-ofuoBsYo.d.ts → semantic-paint-WJD2KeG1.d.ts} +2 -2
- package/dist/{semantic-records-CRG1r6-a.d.cts → semantic-records-92UnKeU_.d.ts} +1146 -10
- package/dist/{semantic-records-CzI0ZEuR.d.ts → semantic-records-BpozY7-j.d.cts} +1146 -10
- package/dist/shaped-measurer-BWbindlI.d.ts +168 -0
- package/dist/shaped-measurer-CFPnXFs9.d.cts +168 -0
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +26 -16
- package/dist/store.d.ts +26 -16
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-CA7qgAUF.d.cts → tree-op-types-BUulYD5y.d.cts} +15 -2
- package/dist/{tree-op-types-HKfUzt_-.d.ts → tree-op-types-D6HzlPR4.d.ts} +15 -2
- package/dist/{tree-package-fragment-oJZX_5iN.d.ts → tree-package-fragment-CWFjgH6a.d.ts} +3 -11
- package/dist/{tree-package-fragment-Cz-v-0B3.d.cts → tree-package-fragment-Dhyw7oPm.d.cts} +3 -11
- package/dist/{tree-session-contract-BPDLrEPX.d.ts → tree-session-contract-B2HfGt79.d.ts} +33 -6
- package/dist/{tree-session-contract-Cbl87xa8.d.cts → tree-session-contract-BY9xd7s_.d.cts} +33 -6
- package/dist/{tree-store-B7hd6cEa.d.ts → tree-store-APgWx6qn.d.ts} +1 -1
- package/dist/{tree-store-BenW0Mg_.d.cts → tree-store-DEEQ9wz_.d.cts} +1 -1
- package/package.json +5 -2
- package/dist/chunk-3JON7JMD.cjs +0 -1
- package/dist/chunk-5V6FNKBE.cjs +0 -2
- package/dist/chunk-BXRVGHTY.cjs +0 -18
- package/dist/chunk-BXTTPJSH.js +0 -5
- package/dist/chunk-ILTZTY3K.cjs +0 -10
- package/dist/chunk-IUM7FZPA.js +0 -2
- package/dist/chunk-JWZG4QJ5.cjs +0 -2
- package/dist/chunk-JXZYDBKU.cjs +0 -19
- package/dist/chunk-KBOOIC2Q.js +0 -19
- package/dist/chunk-L6XZTLPS.js +0 -10
- package/dist/chunk-L7OR5TJK.cjs +0 -5
- package/dist/chunk-MHQNR2OU.js +0 -2
- package/dist/chunk-MLGPISGH.js +0 -1
- package/dist/chunk-NJXQABQU.js +0 -18
- package/dist/chunk-TKEGK4GQ.cjs +0 -2
- package/dist/chunk-VGFMPWND.js +0 -2
- package/dist/shaped-measurer-CkOGZQn9.d.ts +0 -611
- package/dist/shaped-measurer-CneACGcP.d.cts +0 -611
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { T as TreeDocOp, C as ImageDecodePort, v as DrawingPositionInput,
|
|
1
|
+
import { T as TreeDocOp, C as ImageDecodePort, v as DrawingPositionInput, W as DrawingTransform, F as DrawingTreeDocOp, y as SupportedImageMime } from './tree-op-types-BUulYD5y.cjs';
|
|
2
2
|
import { Unsubscribe, ExecResult, ParagraphTabStop, IndentFormatting, ParagraphFlags, ParagraphDisagreements, SelectionPin } from './contracts/types.cjs';
|
|
3
|
-
import { g as ReviewRevisionKind } from './review-items-
|
|
3
|
+
import { g as ReviewRevisionKind } from './review-items-CaAkgi5s.cjs';
|
|
4
4
|
import { EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
|
|
5
|
-
import {
|
|
6
|
-
import { R as RevisionDisplayMode } from './revision-projection-
|
|
7
|
-
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-
|
|
5
|
+
import { k as FontSource, l as FontSourceSubstitution, m as FontFaceRequest, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, n as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, o as FormatPainterSurfaceState, e as TrackedChangePredicate, T as TrackedChangeFilterMode, V as ViewScope, I as ImageContext, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, t as TableContext } from './editor-AJ06hyyg.cjs';
|
|
6
|
+
import { R as RevisionDisplayMode } from './revision-projection-DXbrfNGD.cjs';
|
|
7
|
+
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-DUAnxbgf.cjs';
|
|
8
8
|
import { EditorCollaborationSession, CollaborationRemoteSelection, CollaborationModuleContribution } from './collaboration.cjs';
|
|
9
|
-
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-
|
|
10
|
-
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-
|
|
11
|
-
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-
|
|
12
|
-
import { B as BookmarkIndex } from './custom-node-writes-
|
|
13
|
-
import { I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult } from './tree-package-fragment-
|
|
14
|
-
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-
|
|
15
|
-
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-
|
|
9
|
+
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-DufNL1Zr.cjs';
|
|
10
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-Y6qYh2Hv.cjs';
|
|
11
|
+
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-BpozY7-j.cjs';
|
|
12
|
+
import { B as BookmarkIndex } from './custom-node-writes-C46r3_5O.cjs';
|
|
13
|
+
import { I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult } from './tree-package-fragment-Dhyw7oPm.cjs';
|
|
14
|
+
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-BMhku3B1.cjs';
|
|
15
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-BY9xd7s_.cjs';
|
|
16
16
|
import { C as CollaborationStatus } from './failure-BnGjoXf0.cjs';
|
|
17
17
|
import './contracts/document.cjs';
|
|
18
18
|
|
|
@@ -58,6 +58,26 @@ interface FontResolutionRequest {
|
|
|
58
58
|
readonly families: readonly string[];
|
|
59
59
|
/** The face a run naming no font resolves to, so a resolver can cover it too. */
|
|
60
60
|
readonly defaultFamily: string;
|
|
61
|
+
/**
|
|
62
|
+
* Faces an EARLIER origin in the same composition can already PAINT — either because it
|
|
63
|
+
* supplied the bytes, or because it mapped that face onto one it did supply.
|
|
64
|
+
*
|
|
65
|
+
* Absent, not empty, when there is nothing to report: the engine calling a resolver
|
|
66
|
+
* directly, and the first origin of a composition.
|
|
67
|
+
*
|
|
68
|
+
* FACES, not families, and only faces backed by bytes. Both narrowings are load-bearing.
|
|
69
|
+
* A family-grained list would let an origin holding only regular Arial suppress the bold
|
|
70
|
+
* and italic a later origin would have supplied, and a list built from substitutions
|
|
71
|
+
* alone would let an origin whose fetches all failed suppress the failover behind it,
|
|
72
|
+
* because both shipped resolvers emit their substitution map before fetching. Together
|
|
73
|
+
* they are what makes honouring this an OPTIMIZATION rather than a correctness
|
|
74
|
+
* requirement: skipping a reported face cannot lose one, so a resolver that ignores this
|
|
75
|
+
* list only spends bytes on a face first-wins composition would drop anyway.
|
|
76
|
+
*
|
|
77
|
+
* Match it case-insensitively. Word matches font names that way and both shipped
|
|
78
|
+
* resolvers do.
|
|
79
|
+
*/
|
|
80
|
+
readonly resolvedFaces?: readonly FontFaceRequest[];
|
|
61
81
|
}
|
|
62
82
|
/**
|
|
63
83
|
* Resolve fonts once the document's needs are known, instead of ahead of them.
|
|
@@ -103,6 +123,132 @@ declare const WORD_DEFAULT_FONT: FontConfiguration['defaultFont'];
|
|
|
103
123
|
*/
|
|
104
124
|
declare function composeFontConfiguration(base: FontConfigurationBase, ...fragments: readonly FontConfigurationFragment[]): FontConfiguration;
|
|
105
125
|
|
|
126
|
+
/**
|
|
127
|
+
* The namespaced key carrying the type-level half of the mark, and the runtime property
|
|
128
|
+
* name that backs it.
|
|
129
|
+
*
|
|
130
|
+
* A plain string rather than a symbol on purpose: `@docx-editor.dev/fonts` has no runtime
|
|
131
|
+
* or type dependency on the engine, so it declares the same mark itself, and two
|
|
132
|
+
* `unique symbol`s in two packages would not unify. Two identical string keys do.
|
|
133
|
+
*
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
declare const FONT_RESOLVER_MARK_KEY = "docx-editor.dev/font-resolver";
|
|
137
|
+
/**
|
|
138
|
+
* The runtime marker `defineFontResolver` sets and {@link isFontResolver} reads.
|
|
139
|
+
*
|
|
140
|
+
* Exported because a package mirroring the font contract structurally still has to mark
|
|
141
|
+
* the resolvers it builds. A package in that position sets
|
|
142
|
+
* `Symbol.for('docx-editor.dev/font-resolver')` itself; this constant is the same symbol,
|
|
143
|
+
* named, for everyone who can import it.
|
|
144
|
+
*
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
declare const FONT_RESOLVER_BRAND: unique symbol;
|
|
148
|
+
/**
|
|
149
|
+
* The type-level half of the mark: what {@link defineFontResolver} adds to a function's
|
|
150
|
+
* type so a `FontOrigin` list can REQUIRE it.
|
|
151
|
+
*
|
|
152
|
+
* Declared with a string key so `@docx-editor.dev/fonts` can declare an identical
|
|
153
|
+
* interface and have the two unify without importing anything from the engine. Set at
|
|
154
|
+
* runtime as well as in the type — non-enumerable, so it stays out of `Object.keys` and
|
|
155
|
+
* out of a host's own spread.
|
|
156
|
+
*
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
interface FontResolverMark {
|
|
160
|
+
/** Always `true`. Set non-enumerably by {@link defineFontResolver}. */
|
|
161
|
+
readonly 'docx-editor.dev/font-resolver': true;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A {@link FontResolver} that has been through {@link defineFontResolver}.
|
|
165
|
+
*
|
|
166
|
+
* This, not bare `FontResolver`, is what a `FontOrigin` list accepts. The mark is the only
|
|
167
|
+
* thing separating a resolver from a zero-argument loader, and getting that wrong loses
|
|
168
|
+
* every font silently, so the type asks for it up front.
|
|
169
|
+
*
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
type MarkedFontResolver<T extends FontResolver = FontResolver> = T & FontResolverMark;
|
|
173
|
+
/**
|
|
174
|
+
* Mark a function as an on-demand {@link FontResolver}.
|
|
175
|
+
*
|
|
176
|
+
* Wrap every resolver you put in a `fonts` list — `useFonts(...)`, `useDocxSource`'s
|
|
177
|
+
* `fonts` option, `composeFontOrigins`. The `fonts` PROP needs no marking, because a
|
|
178
|
+
* function there is always a resolver; a list also accepts the older zero-argument loader
|
|
179
|
+
* form (`{ fonts: defaultFonts }`), and this is what keeps the two apart.
|
|
180
|
+
*
|
|
181
|
+
* Returns the same function object, mutated, so the mark survives being passed around and
|
|
182
|
+
* a marked resolver stays `===` to itself. It does NOT survive `.bind()` or being wrapped:
|
|
183
|
+
* both make a new function object. Re-mark the result.
|
|
184
|
+
*
|
|
185
|
+
* ```ts
|
|
186
|
+
* const brandFonts = defineFontResolver(async ({ families }) => ({
|
|
187
|
+
* sources: await loadMine(families),
|
|
188
|
+
* }));
|
|
189
|
+
* ```
|
|
190
|
+
*
|
|
191
|
+
* Throws a `TypeError` on a frozen or sealed function, which cannot take the mark. That is
|
|
192
|
+
* deliberate: returning it unmarked would compile — the return TYPE says marked — and then
|
|
193
|
+
* lose every font at runtime.
|
|
194
|
+
*
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
declare function defineFontResolver<T extends FontResolver>(resolve: T): MarkedFontResolver<T>;
|
|
198
|
+
/**
|
|
199
|
+
* Whether a value is a function marked by {@link defineFontResolver}.
|
|
200
|
+
*
|
|
201
|
+
* False for an unmarked function, which callers read as a zero-argument loader. Calling a
|
|
202
|
+
* resolver that way reads `request.defaultFamily` off `undefined` and throws, so the
|
|
203
|
+
* callers that make this choice say so rather than swallowing it — and the type-level mark
|
|
204
|
+
* on {@link MarkedFontResolver} is there to stop it reaching runtime at all.
|
|
205
|
+
*
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
declare function isFontResolver(value: unknown): value is MarkedFontResolver;
|
|
209
|
+
/**
|
|
210
|
+
* ONE font origin, in the one shape every origin takes: a finished configuration, a
|
|
211
|
+
* fragment, a promise for either, or a marked resolver that answers per document.
|
|
212
|
+
*
|
|
213
|
+
* The point of the union is that `packagedFonts()`, `googleFonts()`, `await defaultFonts()`
|
|
214
|
+
* and a hand-built `{ sources }` are all the same kind of thing, so a list of them needs no
|
|
215
|
+
* ordering rule beyond "first wins".
|
|
216
|
+
*
|
|
217
|
+
* The resolver arm is {@link MarkedFontResolver}, not bare `FontResolver`: a list may also
|
|
218
|
+
* hold a zero-argument loader, and only the mark separates the two.
|
|
219
|
+
*
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
type FontOrigin = FontConfiguration | FontConfigurationFragment | MarkedFontResolver | Promise<FontConfiguration | FontConfigurationFragment | undefined> | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Resolve a list of {@link FontOrigin}s against one document's needs and merge them,
|
|
225
|
+
* first-wins in list order.
|
|
226
|
+
*
|
|
227
|
+
* Origins resolve IN ORDER, one after another, and each is told which faces the ones
|
|
228
|
+
* before it can already paint ({@link FontResolutionRequest.resolvedFaces}). Sequential
|
|
229
|
+
* rather than a `Promise.all`, and that is a real cost — one extra origin's latency on the
|
|
230
|
+
* critical path — bought deliberately: composition is first-wins, so a later origin's copy
|
|
231
|
+
* of a face an earlier one supplied can never be used, and fetching it anyway spends the
|
|
232
|
+
* bytes twice and tells a font host which families the document uses for a result that
|
|
233
|
+
* gets thrown away. Order origins cheapest-first.
|
|
234
|
+
*
|
|
235
|
+
* A resolver that ignores `resolvedFaces` still composes correctly; it just spends more.
|
|
236
|
+
*
|
|
237
|
+
* ONE ORIGIN CANNOT SINK THE REST. An origin that throws, answers `null`, or answers
|
|
238
|
+
* something malformed is reported and skipped whole, and the origins around it still
|
|
239
|
+
* compose — an app that listed a flaky network origin behind a bundled one keeps the
|
|
240
|
+
* bundled faces. Skipped WHOLE: an answer is read completely before any of it is
|
|
241
|
+
* committed, so a half-ingested origin can never reach composition.
|
|
242
|
+
*
|
|
243
|
+
* The result carries NO `epoch`: it is a fragment for the engine to stamp with the load
|
|
244
|
+
* sequence. A fixed epoch from here would label every document's byte set as the same one.
|
|
245
|
+
* `undefined` means no origin contributed anything, which is a normal answer — the document
|
|
246
|
+
* stays on the fixed measurer.
|
|
247
|
+
*
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
declare function composeFontOrigins(origins: readonly FontOrigin[], request: FontResolutionRequest): Promise<FontConfigurationFragment | undefined>;
|
|
251
|
+
|
|
106
252
|
/**
|
|
107
253
|
* A Word-faithful blank document, freshly zipped per call (the caller may hand the
|
|
108
254
|
* bytes to a loader that takes ownership). Calibri 11pt and Word's Normal paragraph
|
|
@@ -485,12 +631,23 @@ interface DocxEditorInstance extends Editor {
|
|
|
485
631
|
* moment they learn the pairing on either. The order puts commenters last so that adding
|
|
486
632
|
* a comment can never renumber a tracked change the painter has already drawn.
|
|
487
633
|
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
634
|
+
* The complete attached-document roster. A reviewer remains listed while this view hides
|
|
635
|
+
* their changes, so the reviewer menu can turn them on again. Empty while detached.
|
|
636
|
+
* Reference-stable between changes, so it is safe as a dependency; changes bump
|
|
637
|
+
* `stateVersion()`.
|
|
492
638
|
*/
|
|
493
639
|
getReviewAuthors(): readonly ReviewAuthorInfo[];
|
|
640
|
+
/** Whether this author's revisions and comments are shown in the current review view. */
|
|
641
|
+
isReviewAuthorVisible(author: string): boolean;
|
|
642
|
+
/**
|
|
643
|
+
* Show one author's markup, or render their revisions as accepted and hide their comments.
|
|
644
|
+
* This changes view state only. It does not apply tree operations or change saved bytes.
|
|
645
|
+
*/
|
|
646
|
+
setReviewAuthorVisible(author: string, visible: boolean): void;
|
|
647
|
+
/** Show or hide every reviewer in one layout pass. */
|
|
648
|
+
setAllReviewAuthorsVisible(visible: boolean): void;
|
|
649
|
+
/** Restore every reviewer to the shown state. */
|
|
650
|
+
showAllReviewAuthors(): void;
|
|
494
651
|
/**
|
|
495
652
|
* The presence colour the engine paints for one display name — the answer the remote
|
|
496
653
|
* caret label takes, so chrome built on this cannot disagree with the painted caret.
|
|
@@ -1152,6 +1309,8 @@ interface PaginatedSurfaceOptions {
|
|
|
1152
1309
|
* option is shared either way.
|
|
1153
1310
|
*/
|
|
1154
1311
|
readonly revisionDisplayMode?: RevisionDisplayMode;
|
|
1312
|
+
/** Authors whose changes open in their accepted view-time projection. */
|
|
1313
|
+
readonly hiddenRevisionAuthors?: readonly string[];
|
|
1155
1314
|
/**
|
|
1156
1315
|
* When a field's result wears Word's grey shading. Omitted keeps Word's own default,
|
|
1157
1316
|
* `when-selected`.
|
|
@@ -1741,6 +1900,15 @@ interface PaginatedSurface {
|
|
|
1741
1900
|
insertToc(): boolean;
|
|
1742
1901
|
/** Refresh cached TOC entries and/or page numbers through the two-pass layout pipeline. */
|
|
1743
1902
|
refreshToc(tocId?: string, mode?: 'entire' | 'pageNumbers'): boolean;
|
|
1903
|
+
/**
|
|
1904
|
+
* Rewrite stale REF field results in the body, footnote and endnote stories so a save
|
|
1905
|
+
* exports what the pages paint. Fresh results commit nothing (no transaction, no revision
|
|
1906
|
+
* bump, no undo entry); a rewrite is ONE transaction and ONE undo unit across every stale
|
|
1907
|
+
* part. Viewing, a non-editable session, and a collaborative session write nothing — the
|
|
1908
|
+
* collaboration gate cannot journal the rewrite, so those saves export cached results and
|
|
1909
|
+
* the call returns false.
|
|
1910
|
+
*/
|
|
1911
|
+
refreshRefFieldResults(): boolean;
|
|
1744
1912
|
/** Whether a body paragraph belongs to a detected TOC boundary or cached result. */
|
|
1745
1913
|
isInsideToc(paragraphId: string): boolean;
|
|
1746
1914
|
/**
|
|
@@ -1781,6 +1949,16 @@ interface PaginatedSurface {
|
|
|
1781
1949
|
* its identity.
|
|
1782
1950
|
*/
|
|
1783
1951
|
revisionAuthors(): ReadonlyMap<string, number>;
|
|
1952
|
+
/** Reviewers currently projected as accepted, without changing the document. */
|
|
1953
|
+
hiddenRevisionAuthors(): ReadonlySet<string>;
|
|
1954
|
+
/** Show one reviewer's markup, or render that reviewer's changes as accepted. */
|
|
1955
|
+
setRevisionAuthorVisible(author: string, visible: boolean): void;
|
|
1956
|
+
/** Show or hide every reviewer in one layout pass. */
|
|
1957
|
+
setAllRevisionAuthorsVisible(visible: boolean): void;
|
|
1958
|
+
/** Clear the reviewer filter in one layout pass. */
|
|
1959
|
+
showAllRevisionAuthors(): void;
|
|
1960
|
+
/** Apply a view-time predicate over complete tracked-change items. */
|
|
1961
|
+
setTrackedChangesFilter(predicate: TrackedChangePredicate | null, mode?: TrackedChangeFilterMode): void;
|
|
1784
1962
|
/** The presence colour the caret paints for `name`, sanitized as the paint sink is. */
|
|
1785
1963
|
remotePresenceColor(name: string): string | undefined;
|
|
1786
1964
|
/**
|
|
@@ -2278,6 +2456,8 @@ interface ChromeControl<Id extends string = string> {
|
|
|
2278
2456
|
readonly paths: readonly string[] | null;
|
|
2279
2457
|
/** For pickers: the i18n key of the placeholder value shown. */
|
|
2280
2458
|
readonly valueKey?: string;
|
|
2459
|
+
/** `false` keeps this public slot composable but omits it from the default toolbar. */
|
|
2460
|
+
readonly defaultToolbar?: false;
|
|
2281
2461
|
readonly state: ChromeControlState;
|
|
2282
2462
|
}
|
|
2283
2463
|
/**
|
|
@@ -2554,6 +2734,15 @@ declare const CHROME_GROUPS: readonly [{
|
|
|
2554
2734
|
readonly state: {
|
|
2555
2735
|
readonly kind: "command";
|
|
2556
2736
|
};
|
|
2737
|
+
}, {
|
|
2738
|
+
readonly id: "authors";
|
|
2739
|
+
readonly shape: "dropdown";
|
|
2740
|
+
readonly labelKey: "reviewers.label";
|
|
2741
|
+
readonly paths: readonly string[];
|
|
2742
|
+
readonly defaultToolbar: false;
|
|
2743
|
+
readonly state: {
|
|
2744
|
+
readonly kind: "command";
|
|
2745
|
+
};
|
|
2557
2746
|
}, {
|
|
2558
2747
|
readonly id: "editingMode";
|
|
2559
2748
|
readonly shape: "dropdown";
|
|
@@ -2816,7 +3005,7 @@ type ChromeGroupId = 'history' | 'zoom' | 'styles' | 'font' | 'text' | 'script'
|
|
|
2816
3005
|
*
|
|
2817
3006
|
* @public
|
|
2818
3007
|
*/
|
|
2819
|
-
type ChromeSlotId = 'history.undo' | 'history.redo' | 'zoom.level' | 'styles.style' | 'font.family' | 'font.size' | 'text.bold' | 'text.italic' | 'text.underline' | 'text.strike' | 'text.color' | 'text.highlight' | 'text.link' | 'script.super' | 'script.sub' | 'alignment.left' | 'alignment.center' | 'alignment.right' | 'alignment.justify' | 'list.bullet' | 'list.numbered' | 'list.outdent' | 'list.indent' | 'list.lineSpacing' | 'format.painter' | 'format.clear' | 'review.comments' | 'review.editingMode' | 'contentControl.showAll' | 'contentControl.formFill' | 'contentControl.inspector' | 'contentControl.remove' | 'image.insert' | 'image.properties' | 'image.wrap' | 'image.altText' | 'table.insert' | 'table.borderTarget' | 'table.borderColor' | 'table.borderStyle' | 'table.borderWidth' | 'table.cellFill' | 'file.open' | 'file.save' | 'paragraph.dialog' | 'file.pageSetup' | 'insert.footnote' | 'insert.endnote' | 'insert.pageNumber' | 'insert.totalPages' | 'insert.sectionPages' | 'insert.pageXofY' | 'insert.pageBreak' | 'insert.sectionBreakNextPage' | 'insert.sectionBreakContinuous' | 'insert.toc';
|
|
3008
|
+
type ChromeSlotId = 'history.undo' | 'history.redo' | 'zoom.level' | 'styles.style' | 'font.family' | 'font.size' | 'text.bold' | 'text.italic' | 'text.underline' | 'text.strike' | 'text.color' | 'text.highlight' | 'text.link' | 'script.super' | 'script.sub' | 'alignment.left' | 'alignment.center' | 'alignment.right' | 'alignment.justify' | 'list.bullet' | 'list.numbered' | 'list.outdent' | 'list.indent' | 'list.lineSpacing' | 'format.painter' | 'format.clear' | 'review.comments' | 'review.authors' | 'review.editingMode' | 'contentControl.showAll' | 'contentControl.formFill' | 'contentControl.inspector' | 'contentControl.remove' | 'image.insert' | 'image.properties' | 'image.wrap' | 'image.altText' | 'table.insert' | 'table.borderTarget' | 'table.borderColor' | 'table.borderStyle' | 'table.borderWidth' | 'table.cellFill' | 'file.open' | 'file.save' | 'paragraph.dialog' | 'file.pageSetup' | 'insert.footnote' | 'insert.endnote' | 'insert.pageNumber' | 'insert.totalPages' | 'insert.sectionPages' | 'insert.pageXofY' | 'insert.pageBreak' | 'insert.sectionBreakNextPage' | 'insert.sectionBreakContinuous' | 'insert.toc';
|
|
2820
3009
|
/**
|
|
2821
3010
|
* Every control id in the chrome, as a literal union. Unique WITHIN a group, not
|
|
2822
3011
|
* globally (`image.insert` / `table.insert`) — key consumers on {@link ChromeSlotId}.
|
|
@@ -2909,7 +3098,7 @@ type ChromeMenuEntry = ChromeMenuItemEntry | ChromeMenuSubmenuEntry | ChromeMenu
|
|
|
2909
3098
|
*
|
|
2910
3099
|
* @public
|
|
2911
3100
|
*/
|
|
2912
|
-
type ChromeMenuId = 'file' | 'format' | 'insert' | 'help';
|
|
3101
|
+
type ChromeMenuId = 'file' | 'format' | 'insert' | 'review' | 'help';
|
|
2913
3102
|
/** One menu of the menu bar. @public */
|
|
2914
3103
|
interface ChromeMenu {
|
|
2915
3104
|
readonly id: ChromeMenuId;
|
|
@@ -2917,7 +3106,7 @@ interface ChromeMenu {
|
|
|
2917
3106
|
readonly entries: readonly ChromeMenuEntry[];
|
|
2918
3107
|
}
|
|
2919
3108
|
/**
|
|
2920
|
-
* The menu bar the chrome shows above the toolbar, in bar order: File, Format, Insert,
|
|
3109
|
+
* The menu bar the chrome shows above the toolbar, in bar order: File, Format, Insert, Review,
|
|
2921
3110
|
* Help.
|
|
2922
3111
|
*
|
|
2923
3112
|
* @public
|
|
@@ -3199,4 +3388,4 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand):
|
|
|
3199
3388
|
*/
|
|
3200
3389
|
declare function createDocxEditor(config: DocxEditorConfig): DocxEditorInstance;
|
|
3201
3390
|
|
|
3202
|
-
export { type
|
|
3391
|
+
export { type MarkedFontResolver as $, type AnchorFrameOrigin as A, type FontLoadFailureReason as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, FONT_RESOLVER_BRAND as F, type FontMeasurementState as G, type FontOrigin as H, type FontResolutionRequest as I, type FontResolver as J, type FontResolverMark as K, type FontUrlSource as L, type HyperlinkActivation as M, type HyperlinkChromeHandlers as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type HyperlinkOps as Q, IMAGE_OVERLAY_NUDGE_PT as R, IMAGE_OVERLAY_NUDGE_SHIFT_PT as S, type TableCommandPlan as T, type ImageInteractionSession as U, type ImageOverlayScrollPort as V, type ImageResizeHandle as W, type ImageResizeResult as X, type LoadFontsRequest as Y, type LoadFontsResult as Z, MAX_RESOLVER_FAMILIES as _, type PaginatedSurface as a, layoutPointsToCssPixels as a$, type OverlayFrameRect as a0, type PaginatedSurfaceState as a1, type ParagraphPropertyEdit as a2, type RemoteCaretLabelAnchor as a3, type RemoteCaretLabelHost as a4, type ReviewWriteIntent as a5, type RunTableChromeCommandResult as a6, type SectionAnchor as a7, type SectionBreakInsertType as a8, type SelectedDrawingOverlayTarget as a9, chromeMenuSlots as aA, chromeProbeForSlot as aB, chromeSlotId as aC, chromeSlotIsToggle as aD, commandForSlot as aE, commandForSlotValue as aF, commandForTableChromeSlotValue as aG, composeFontConfiguration as aH, composeFontOrigins as aI, computeImageResizeResult as aJ, computeMovedImagePosition as aK, computeResizedImageExtentEmu as aL, createDocxEditor as aM, createFontSource as aN, createImageOverlayScrollPort as aO, cssPixelsToLayoutPoints as aP, defaultChromeGroups as aQ, defaultTableLabel as aR, defineFontResolver as aS, emuToOverlayPoints as aT, equationAtPosition as aU, executeImageCommand as aV, finalizeImageOverlayInteraction as aW, formattingBarChromeGroups as aX, isFontResolver as aY, isStaleImageInteractionCommit as aZ, isTableChromeSlot as a_, type SurfaceEquation as aa, type SurfaceFormatting as ab, type SurfaceHyperlink as ac, type SurfaceInsertImageInput as ad, type SurfaceNavigation as ae, type SurfaceOverlayCoordinates as af, type SurfaceParagraphFormat as ag, TABLE_BORDER_STYLE_OPTIONS as ah, TABLE_BORDER_TARGET_OPTIONS as ai, TABLE_BORDER_WIDTH_OPTIONS as aj, TABLE_CHROME_SLOT_IDS as ak, type TableBorderStyleOption as al, type TableBorderTargetOption as am, type TableBorderTargetValue as an, type TableBorderWidthOption as ao, type TableChromeDraft as ap, type TableChromePick as aq, type TableChromeSlotId as ar, type TableInteractionLabelKey as as, type ToolbarCommandState as at, WORD_DEFAULT_FONT as au, applyTableChromePick as av, blankDocumentBytes as aw, canExecuteImageCommand as ax, captureImageMutationPreconditions as ay, chromeControlCount as az, CHROME_MENUS as b, loadFonts as b0, overlayFrameToSheetCssPixels as b1, overlayHostOrigin as b2, pointsToEmu as b3, probeTableChromeCommand as b4, resizePreservesAspect as b5, runSave as b6, runTableChromeCommand as b7, runTableCommand as b8, runToolbarCommand as b9, selectedDrawingOverlayTargetOf as ba, selectedImageStateOf as bb, surfacePaintScale as bc, tableChromeIconPaths as bd, tableChromeLabelKeyForTarget as be, tableChromeToolbarState as bf, tableChromeVisible as bg, tableCommandToolbarState as bh, toolbarCommandState as bi, toolbarCommandStates as bj, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, DEFAULT_TABLE_CHROME_DRAFT as p, type DocxEditorConfig as q, type DrawingSelectionIntent as r, type EquationActivation as s, type EquationChromeHandlers as t, type EquationOps as u, FONT_RESOLVER_MARK_KEY as v, type FinalizedImageOverlayInteraction as w, type FontConfigurationBase as x, type FontConfigurationFragment as y, type FontLoadFailure as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkF2K6SDHA_cjs=require('./chunk-F2K6SDHA.cjs');require('./chunk-ZKWRCLT2.cjs'),require('./chunk-O5M4CR4P.cjs'),require('./chunk-NDJGSR6M.cjs'),require('./chunk-2PIHW2QM.cjs'),require('./chunk-LBAHXZCU.cjs'),require('./chunk-DRQHIQ4R.cjs'),require('./chunk-5TKAPFZT.cjs'),require('./chunk-4Z5MODAE.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-KIAP7PFQ.cjs'),require('./chunk-NJNFJPGB.cjs'),require('./chunk-OHJQ7GPZ.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Da}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ha}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.h}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.f}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.m}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ia}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.qa}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.sa}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.g}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.l}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ua}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.r}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.j}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.k}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.q}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ya}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ua}});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-BUulYD5y.cjs';
|
|
2
2
|
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 './contracts/types.cjs';
|
|
3
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-
|
|
3
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-CaAkgi5s.cjs';
|
|
4
4
|
export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
|
|
5
|
-
export { A as AuthoredNoteNumbering, C as CanResult,
|
|
6
|
-
export { R as RevisionDisplayMode } from './revision-projection-
|
|
7
|
-
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-
|
|
8
|
-
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, v as FontConfigurationBase,
|
|
5
|
+
export { A as AuthoredNoteNumbering, C as CanResult, u as DocumentChange, w as DocumentEditingMode, x as DocumentHandle, D as DocumentSource, n as Editor, b as EditorCommand, y as EditorCommandShape, z as EditorCommands, B as EditorError, G as EditorEvents, E as EditorFontError, H as EditorFontErrorCode, J as EditorFormatPainterCommands, K as EditorHeaderFooterCommands, L as EditorNoteCommands, M as EditorPosition, N as EditorQueries, O as EditorQuery, P as EditorQueryResults, Q as EditorScope, R as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, k as FontSource, l as FontSourceSubstitution, U as FormatPainterLevel, W as FormatPainterMode, o as FormatPainterSurfaceState, X as FurnitureVariant, Y as HeaderFooterSlotArgs, _ as HeaderFooterState, $ as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, a0 as InteractionAffinity, a1 as InteractionOutcome, a2 as InteractionOutcomeCode, a3 as NoteKind, a4 as NotePropertiesSide, a5 as NotePropertiesState, a6 as PageSetup, a7 as ResolvedNoteNumbering, a8 as ReviewActivationOptions, a9 as ReviewCommentPlacement, aa as ReviewCustomPlacement, ab as ReviewItemPlacement, ac as ReviewItemPlacementBase, ad as ReviewItemQuery, ae as ReviewRevisionPlacement, S as SelectedImageState, af as SemanticIdentity, ag as SemanticTarget, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, ah as TableBorderTarget, ai as TableCellVerticalAlignment, aj as TableColumnDividerResizeTarget, ak as TableColumnOccurrenceTarget, t as TableContext, al as TableRightEdgeResizeTarget, am as TableRowOccurrenceTarget, an as TextMatch, T as TrackedChangeFilterMode, e as TrackedChangePredicate, V as ViewScope, ao as ZoomFitTarget, Z as ZoomMode } from './editor-AJ06hyyg.cjs';
|
|
6
|
+
export { R as RevisionDisplayMode } from './revision-projection-DXbrfNGD.cjs';
|
|
7
|
+
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DUAnxbgf.cjs';
|
|
8
|
+
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, F as FONT_RESOLVER_BRAND, v as FONT_RESOLVER_MARK_KEY, x as FontConfigurationBase, y as FontConfigurationFragment, z as FontLoadFailure, B as FontLoadFailureReason, G as FontMeasurementState, H as FontOrigin, I as FontResolutionRequest, J as FontResolver, K as FontResolverMark, L as FontUrlSource, M as HyperlinkActivation, N as HyperlinkChromeHandlers, Y as LoadFontsRequest, Z as LoadFontsResult, $ as MarkedFontResolver, ac as SurfaceHyperlink, at as ToolbarCommandState, au as WORD_DEFAULT_FONT, aw as blankDocumentBytes, aA as chromeMenuSlots, aE as commandForSlot, aF as commandForSlotValue, aH as composeFontConfiguration, aI as composeFontOrigins, aM as createDocxEditor, aN as createFontSource, aS as defineFontResolver, aY as isFontResolver, b0 as loadFonts, b9 as runToolbarCommand, bi as toolbarCommandState } from './index-Cbw4lkOt.cjs';
|
|
9
9
|
export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.cjs';
|
|
10
10
|
import './collaboration.cjs';
|
|
11
|
-
import './tree-package-fragment-
|
|
12
|
-
import './tree-store-
|
|
11
|
+
import './tree-package-fragment-Dhyw7oPm.cjs';
|
|
12
|
+
import './tree-store-DEEQ9wz_.cjs';
|
|
13
13
|
import './collaboration/replication.cjs';
|
|
14
14
|
import './failure-BnGjoXf0.cjs';
|
|
15
|
-
import './semantic-records-
|
|
16
|
-
import './omml-equation-
|
|
17
|
-
import './semantic-paint-
|
|
18
|
-
import './note-properties-
|
|
19
|
-
import './custom-node-writes-
|
|
20
|
-
import './semantic-cell-selection-
|
|
21
|
-
import './tree-session-contract-
|
|
15
|
+
import './semantic-records-BpozY7-j.cjs';
|
|
16
|
+
import './omml-equation-DB8d-jCq.cjs';
|
|
17
|
+
import './semantic-paint-DufNL1Zr.cjs';
|
|
18
|
+
import './note-properties-Y6qYh2Hv.cjs';
|
|
19
|
+
import './custom-node-writes-C46r3_5O.cjs';
|
|
20
|
+
import './semantic-cell-selection-BMhku3B1.cjs';
|
|
21
|
+
import './tree-session-contract-BY9xd7s_.cjs';
|
|
22
22
|
import './document-properties-D6Ahr8D6.cjs';
|
|
23
23
|
import 'prosemirror-model';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-D6HzlPR4.js';
|
|
2
2
|
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 './contracts/types.js';
|
|
3
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-
|
|
3
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-CCS1h93f.js';
|
|
4
4
|
export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.js';
|
|
5
|
-
export { A as AuthoredNoteNumbering, C as CanResult,
|
|
6
|
-
export { R as RevisionDisplayMode } from './revision-projection-
|
|
7
|
-
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-
|
|
8
|
-
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, v as FontConfigurationBase,
|
|
5
|
+
export { A as AuthoredNoteNumbering, C as CanResult, u as DocumentChange, w as DocumentEditingMode, x as DocumentHandle, D as DocumentSource, n as Editor, b as EditorCommand, y as EditorCommandShape, z as EditorCommands, B as EditorError, G as EditorEvents, E as EditorFontError, H as EditorFontErrorCode, J as EditorFormatPainterCommands, K as EditorHeaderFooterCommands, L as EditorNoteCommands, M as EditorPosition, N as EditorQueries, O as EditorQuery, P as EditorQueryResults, Q as EditorScope, R as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, k as FontSource, l as FontSourceSubstitution, U as FormatPainterLevel, W as FormatPainterMode, o as FormatPainterSurfaceState, X as FurnitureVariant, Y as HeaderFooterSlotArgs, _ as HeaderFooterState, $ as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, a0 as InteractionAffinity, a1 as InteractionOutcome, a2 as InteractionOutcomeCode, a3 as NoteKind, a4 as NotePropertiesSide, a5 as NotePropertiesState, a6 as PageSetup, a7 as ResolvedNoteNumbering, a8 as ReviewActivationOptions, a9 as ReviewCommentPlacement, aa as ReviewCustomPlacement, ab as ReviewItemPlacement, ac as ReviewItemPlacementBase, ad as ReviewItemQuery, ae as ReviewRevisionPlacement, S as SelectedImageState, af as SemanticIdentity, ag as SemanticTarget, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, ah as TableBorderTarget, ai as TableCellVerticalAlignment, aj as TableColumnDividerResizeTarget, ak as TableColumnOccurrenceTarget, t as TableContext, al as TableRightEdgeResizeTarget, am as TableRowOccurrenceTarget, an as TextMatch, T as TrackedChangeFilterMode, e as TrackedChangePredicate, V as ViewScope, ao as ZoomFitTarget, Z as ZoomMode } from './editor-a6VvsfYU.js';
|
|
6
|
+
export { R as RevisionDisplayMode } from './revision-projection-BeXVrSSV.js';
|
|
7
|
+
export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BmQ7h2cq.js';
|
|
8
|
+
export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, F as FONT_RESOLVER_BRAND, v as FONT_RESOLVER_MARK_KEY, x as FontConfigurationBase, y as FontConfigurationFragment, z as FontLoadFailure, B as FontLoadFailureReason, G as FontMeasurementState, H as FontOrigin, I as FontResolutionRequest, J as FontResolver, K as FontResolverMark, L as FontUrlSource, M as HyperlinkActivation, N as HyperlinkChromeHandlers, Y as LoadFontsRequest, Z as LoadFontsResult, $ as MarkedFontResolver, ac as SurfaceHyperlink, at as ToolbarCommandState, au as WORD_DEFAULT_FONT, aw as blankDocumentBytes, aA as chromeMenuSlots, aE as commandForSlot, aF as commandForSlotValue, aH as composeFontConfiguration, aI as composeFontOrigins, aM as createDocxEditor, aN as createFontSource, aS as defineFontResolver, aY as isFontResolver, b0 as loadFonts, b9 as runToolbarCommand, bi as toolbarCommandState } from './index-C5ZnSRkF.js';
|
|
9
9
|
export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.js';
|
|
10
10
|
import './collaboration.js';
|
|
11
|
-
import './tree-package-fragment-
|
|
12
|
-
import './tree-store-
|
|
11
|
+
import './tree-package-fragment-CWFjgH6a.js';
|
|
12
|
+
import './tree-store-APgWx6qn.js';
|
|
13
13
|
import './collaboration/replication.js';
|
|
14
14
|
import './failure-BnGjoXf0.js';
|
|
15
|
-
import './semantic-records-
|
|
16
|
-
import './omml-equation-
|
|
17
|
-
import './semantic-paint-
|
|
18
|
-
import './note-properties-
|
|
19
|
-
import './custom-node-writes-
|
|
20
|
-
import './semantic-cell-selection-
|
|
21
|
-
import './tree-session-contract-
|
|
15
|
+
import './semantic-records-92UnKeU_.js';
|
|
16
|
+
import './omml-equation-BY49UOIF.js';
|
|
17
|
+
import './semantic-paint-WJD2KeG1.js';
|
|
18
|
+
import './note-properties-CDFiNXcD.js';
|
|
19
|
+
import './custom-node-writes-DntmaAVW.js';
|
|
20
|
+
import './semantic-cell-selection-BK91NCCG.js';
|
|
21
|
+
import './tree-session-contract-B2HfGt79.js';
|
|
22
22
|
import './document-properties-D6Ahr8D6.js';
|
|
23
23
|
import 'prosemirror-model';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Da as CHROME_GROUPS,Ha as CHROME_MENUS,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,f as WORD_DEFAULT_FONT,m as blankDocumentBytes,Ia as chromeMenuSlots,qa as commandForSlot,sa as commandForSlotValue,g as composeFontConfiguration,l as composeFontOrigins,Ua as createDocxEditor,r as createFontSource,j as defineFontResolver,k as isFontResolver,q as loadFonts,ya as runToolbarCommand,ua as toolbarCommandState}from'./chunk-KTAQ7BRQ.js';import'./chunk-D5EHDHYV.js';import'./chunk-VQ4R5LTU.js';import'./chunk-UKUOZXUD.js';import'./chunk-RIYSCEFQ.js';import'./chunk-2QTY5S6T.js';import'./chunk-MCDUQYWP.js';import'./chunk-MQP26KCF.js';import'./chunk-ZVTW7RGD.js';import'./chunk-FBA57EUJ.js';import'./chunk-6JIJOZDW.js';import'./chunk-OKEDGR65.js';import'./chunk-ZBEJHJN2.js';import'./chunk-GOEBQ26R.js';
|