@docx-editor.dev/editor-api 2.29.0 → 2.31.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.
@@ -58,13 +58,28 @@ const snapshot = await runtime.run(async (context) => {
58
58
 
59
59
  This follows Microsoft's [split-loop and correlated-objects guidance](https://learn.microsoft.com/en-us/office/dev/add-ins/concepts/correlated-objects-pattern). Bound model input and member-property loads. The collection's `items` load still enumerates its members; slicing the array does not paginate the collection on the server.
60
60
 
61
+ To load members and one of their properties in one sync, use an `items/` path and bound the collection with `top`:
62
+
63
+ ```ts
64
+ const snapshot = await runtime.run(async (context) => {
65
+ const paragraphs = context.document.body.paragraphs;
66
+ paragraphs.load({ select: 'items/text', top: 40 });
67
+ await context.sync();
68
+ return paragraphs.items.map((paragraph) => paragraph.text);
69
+ });
70
+ ```
71
+
72
+ `collection.load('text')` means the same as `collection.load('items/text')`. Only one navigation level works: `items/font/bold` and `font/bold` fail with `InvalidArgument`.
73
+
61
74
  Supported read-derived proxies can share one `sync()` with their edits. For example, `body.getRange().insertText(text, 'Replace')` and `table.getCell(0, 0).value = text` resolve their reads before one atomic write transaction. This can use extra read-only transport calls. Every phase uses the same revision; concurrent changes cause `StaleDocument`.
62
75
 
63
76
  Proxies returned by insertions require a completed `sync()` before dependent operations. Do not configure a newly inserted table, image, list, or text range before that sync. If a prerequisite fails, the runtime commits no queued writes. Completed prerequisite reads can remain loaded after a later command fails.
64
77
 
65
78
  ## Keep writes within one story
66
79
 
67
- A story is the main body, a header, a footer, or another document text container. One `context.sync()` can write only one story. Writes across stories fail with `ConflictingChanges`. Reads from different stories can share a sync.
80
+ A story is the main body, a header, a footer, or another document text container. Text and formatting writes in one `context.sync()` must target one story. Writes to multiple stories fail with `ConflictingChanges`. Reads from different stories can share a sync.
81
+
82
+ Bookmark removal is an exception: `Document.deleteBookmark()` and `Bookmark.delete()` can share a sync with writes to another story. Inserting a bookmark can also move an existing name from another story in the same transaction.
68
83
 
69
84
  If the document has a primary header and footer, resolve both objects before formatting them. Then commit each story's writes separately:
70
85
 
@@ -111,6 +126,67 @@ A sync either supplies data for the next decision or commits a complete edit. Ba
111
126
 
112
127
  Always await sync. Do not replace sequential syncs with `Promise.all()` or `forEach(async ...)`. Use an explicit final sync when writes remain queued. Do not add an empty sync after a completed read-only batch. These conventions follow Microsoft's [application-specific API model](https://learn.microsoft.com/en-us/office/dev/add-ins/develop/application-specific-api-model).
113
128
 
129
+ ### Make a browser decision one undo step
130
+
131
+ Each sync that writes is its own undo step. In the browser runtime, a decision that also uses editor methods can be one undo step. Pass an open handle from `editor.beginHistoryGroup()` as run options. Every sync in the run joins the group, and so does each editor write that receives the same handle:
132
+
133
+ ```ts
134
+ const decision = editor.beginHistoryGroup();
135
+ try {
136
+ // Reply first: the card's key no longer exists after the change is accepted.
137
+ const reply = editor.replyToReviewItem(key, 'Accepted; see the new term.', {
138
+ historyGroup: decision,
139
+ });
140
+ const accepted = editor.acceptReviewItem(key, { historyGroup: decision });
141
+ if (!reply.ok || !accepted.ok) throw new Error('The review card was refused.');
142
+ await runtime.run({ historyGroup: decision }, async (context) => {
143
+ const ranges = context.document.body.search('30 days');
144
+ ranges.load('items');
145
+ await context.sync();
146
+ const target = ranges.items[0];
147
+ if (!target) throw new Error('The document has no "30 days" text.');
148
+ target.insertText('45 days', 'Replace');
149
+ await context.sync();
150
+ });
151
+ } finally {
152
+ decision.end();
153
+ }
154
+ ```
155
+
156
+ This option is DocxEditor infrastructure with no Office.js equivalent. Server and collaborative runtimes refuse it with `NotSupported`. A closed handle, or a handle from another editor, refuses with `InvalidArgument` and target `historyGroup` before the callback runs, and nothing is written. The whole run is one write of the group: after it finishes, `decision.lastOutcome` is `split` if any of its syncs split the group. Do not reuse a handle after `end()`; begin a new one.
157
+
158
+ ### Preview a change before the user accepts it
159
+
160
+ In the browser runtime, `runtime.preview(callback)` shows the edits of a callback in the page without writing them. The callback uses the same Office.js calls as `run()`. Its reads see the preview, so write the callback as you would write the final edit. Call the model before the preview, not inside it: the editor stays editable while the callback runs.
161
+
162
+ ```ts
163
+ const proposal = await model.propose(clauseText);
164
+ const preview = await runtime.preview(async (context) => {
165
+ context.document.changeTrackingMode = 'TrackMineOnly';
166
+ const ranges = context.document.body.search(proposal.find, {
167
+ matchCase: true,
168
+ });
169
+ ranges.load('items');
170
+ await context.sync();
171
+ if (ranges.items.length !== 1) throw new Error('Choose one deadline.');
172
+ ranges.items[0]!.insertText(proposal.replace, 'Replace');
173
+ await context.sync();
174
+ });
175
+ preview.reveal();
176
+ // Keep the preview, not its proxies. Decide later:
177
+ await preview.commit({ rebase: true }); // or preview.discard()
178
+ ```
179
+
180
+ `commit()` replays the recorded batches as one undo step. It never runs the callback again. Every replayed read must match its preview result. If the live document changed, `commit()` refuses with `StaleDocument` and keeps the preview open. That refusal writes nothing.
181
+
182
+ `commit({ rebase: true })` applies the recorded edits to the current document. Ranges follow their text. A changed read result or replacement target causes a refusal. The live editor can also refuse the commit, for example if permissions change. Commit validates all recorded batches on a fresh document copy before writing. A validation refusal ends the preview without changing live content or undo and redo history.
183
+
184
+ Editor event listeners and preview status listeners run after replay and its history group finish. They observe the completed edit. Listener edits cannot interrupt a partially committed preview, and listener exceptions do not change the commit result. Unexpected live replay failures undo earlier writes. If undo fails, inspect `GeneralException` with target `preview.rollback` before further writes.
185
+
186
+ After a replay refusal, read again and build a new preview. Never repeat the model's old edit without reconsidering it. While a preview shows, the editor refuses document writes. Other runs refuse writes with `PreviewActive`. A preview refuses unsupported writes, such as tables and pictures, with `NotSupported`.
187
+
188
+ Server and collaborative runtimes refuse `preview()` with `NotSupported`. This method is DocxEditor infrastructure with no Office.js equivalent.
189
+
114
190
  ## Keep proxy lifetimes clear
115
191
 
116
192
  Keep document proxies within their `runtime.run()` callback. Return plain text or structured snapshots to the model, not `Range` or `Paragraph` objects. Do not retain a proxy in a job record or reuse it after its run finishes. Explicit tracked-object adoption exists for advanced cases; fresh reads are simpler for background workers.
@@ -124,12 +200,13 @@ Use `isDocxEditorError(error)` and branch on `error.code`. `error.target` identi
124
200
  | Code | Next action |
125
201
  | --- | --- |
126
202
  | `PropertyNotLoaded` | Load the named property and await sync before reading it. |
127
- | `InvalidObjectPath` | Sync before using a newly returned proxy, or acquire a fresh proxy in a new run. |
203
+ | `InvalidObjectPath` | Sync before using a newly returned proxy, or acquire a fresh proxy in a new run. `debugInfo.innerError.code` `edit.stale-target` means the document no longer holds the object; read again. |
128
204
  | `StaleDocument` | Search again, reconsider the model proposal, then write. |
129
205
  | `ConflictingChanges` | Separate edits that claim the same paragraph and reconsider anchors between commits. |
130
206
  | `NotSupported` | Check the host, tracking mode, author, and operation against the [tracking subset](#tracking-subset). |
131
207
  | `NotImplemented` | Check the documented subset, including pending-revision boundaries. Reconsider the target; do not disable tracking. |
132
208
  | `InvalidArgument` | Validate the argument and consult the member's JSDoc. |
209
+ | `GeneralException` | Act on `error.debugInfo.innerError.code` (see [Diagnostics](/docs/2.x/guides/diagnostics#edit-internal-invariant)). For `edit.internal-invariant`, or when `innerError` is absent, report the failure with the engine version and do not retry the write unchanged. |
133
210
 
134
211
  ### Read why the engine refused
135
212
 
@@ -217,7 +294,7 @@ await runtime.run(async (context) => {
217
294
  | Tables | Track complete insertion, cell values, row additions, and partial row deletions |
218
295
  | Content controls | Wrap nonempty ordinary text in `PlainText`, `RichText`, or `DatePicker` controls outside collaboration |
219
296
 
220
- Tracked range edits refuse table and wrapper boundaries. In collaboration, a tracked replacement must remain within one paragraph. A tracked paragraph deletion fails with `NotSupported` for the last paragraph of a story, table cell, or content control, a paragraph directly before a table or block content control, a paragraph whose mark ends a section, a paragraph with an inline content control, a paragraph that contains a complex field boundary whose matching boundary is in another paragraph, and a paragraph that nests inline content more than 64 levels deep. It fails with `NotImplemented` when the paragraph or the start of the next paragraph has a pending change, including your own. Delete adjacent paragraphs in one sync; a later sync beside your own pending deletion refuses. A tracked deletion or replacement at the start of a paragraph whose previous paragraph mark you already proposed deleting also fails with `NotImplemented`. One refusal refuses the whole sync. Text that another participant types into struck text joins the proposed deletion: reject restores it, and accept removes it with no separate revision. Targets that touch foreign pending revisions refuse. Continuation can extend the runtime author's text and paragraph proposals. Simple fields with nested fields or other result containers refuse tracked deletion and replacement. Direct result runs remain supported.
297
+ Tracked range edits refuse table and wrapper boundaries. In collaboration, a tracked replacement must remain within one paragraph. A tracked paragraph deletion fails with `NotSupported` for the last paragraph of a story, table cell, or content control, a paragraph directly before a table or block content control, a paragraph whose mark ends a section, a paragraph with an inline content control, a paragraph that contains a complex field boundary whose matching boundary is in another paragraph, and a paragraph that nests inline content more than 64 levels deep. It fails with `NotImplemented` when the paragraph has your own pending change or another author's pending paragraph mark, formatting, move, or structural change, and when the start of the next paragraph has any pending change. Delete adjacent paragraphs in one sync; a later sync beside your own pending deletion refuses. A tracked deletion or replacement at the start of a paragraph whose previous paragraph mark you already proposed deleting also fails with `NotImplemented`. One refusal refuses the whole sync. Text that another participant types into struck text joins the proposed deletion: reject restores it, and accept removes it with no separate revision. Tracked edits can go inside or beside another author's pending text insertion or deletion. A deletion of their inserted text is recorded inside their insertion. New text lands after any deleted text, and new text inside their insertion splits it into two halves. The returned range names the new text where it lands, and each author's change stays a separate decision. For more information, see [Edit another author's pending text](#edit-another-authors-pending-text). Continuation can extend the runtime author's text and paragraph proposals. Simple fields with nested fields or other result containers refuse tracked deletion and replacement. Direct result runs remain supported.
221
298
 
222
299
  An author can configure a complete proposed table while it has no foreign revisions. Existing table properties and columns require permanent edits. Tracked table and cell value replacement refuse in collaboration. Row deletion suggestions must leave a row without a pending deletion. Pending row or cell structure revisions refuse tracked row deletion with `NotImplemented`.
223
300
 
@@ -229,6 +306,76 @@ When a person adopts an agent's suggestions, attribute them to that person with
229
306
 
230
307
  Standard `insertText('', 'Replace')` means deletion, and an empty insertion is a no-op. Agent tools should require nonempty insertion/replacement text and expose deletion as an explicit model decision. The shipped worker does this. The [compatibility manifest](https://github.com/eigenpal/docx-editor/blob/main/packages/editor-api/compat/manifest.json) records measured members and behavioral differences.
231
308
 
309
+ ### Edit another author's pending text
310
+
311
+ A counterparty's pending insertion is ordinary text to a tracked edit. Replace it, delete part of it, or write inside it. Your changes record under the runtime author, and each author's change stays a separate decision. New text inside their insertion splits it, so their insertion becomes two revisions, one on each side of your text. To accept or reject all of their insertion, decide both revisions, or pass both to `revisions.resolve(action, [first, second])`. In a collaboration session, the API refuses strikes over another author's pending insertion or deletion, and edits that start inside or right after one, with `edit.tracked-foreign-revision-unsupported`. In the following example, the agent replaces a counterparty's proposed term, then rejects only its own revisions:
312
+
313
+ ```ts
314
+ // Create runtime with author: 'Avery Chen' before this example.
315
+ await runtime.run(async (context) => {
316
+ context.document.changeTrackingMode = 'TrackMineOnly';
317
+ const proposed = context.document.body
318
+ .search('thirty (30) days of receipt', { matchCase: true })
319
+ .getFirst();
320
+ await context.sync();
321
+ proposed.insertText('forty-five (45) days of receipt', 'Replace');
322
+ await context.sync();
323
+
324
+ // Load the revisions again after the edit.
325
+ const revisions = context.document.body.revisions;
326
+ revisions.load('items/author');
327
+ await context.sync();
328
+
329
+ // Reject only this agent's changes. The counterparty's insertion stays pending.
330
+ for (const revision of revisions.items) {
331
+ if (revision.author === 'Avery Chen') revision.reject();
332
+ }
333
+ await context.sync();
334
+ });
335
+ ```
336
+
337
+ These tracked edits fail with `NotImplemented`. Read `error.debugInfo.innerError.code` for the rule:
338
+
339
+ | `innerError.code` | Edit |
340
+ | --- | --- |
341
+ | `edit.tracked-deleted-text-only` | A deletion or replacement that covers only deleted text and no paragraph mark |
342
+ | `edit.tracked-foreign-revision-unsupported` | An edit that touches another author's paragraph mark, formatting, move, or structural change; new text inside a link or content control within their insertion; or, in a collaboration session, strikes over another author's pending insertion or deletion, and edits that start inside or right after one |
343
+ | `edit.tracked-own-pending-change` | An edit that covers or borders your own pending change |
344
+
345
+ The range that a tracked `insertText()` returns names your own pending insertion. With tracking on, replacing or deleting that range fails with `edit.tracked-own-pending-change`, because the edit would cover your own pending text. Write the final text in one call, or reject your revision and write again.
346
+
347
+ ## Review changes in a range
348
+
349
+ Use `range.revisions` to reach the tracked changes inside a search result, a comment range, or any other range. The collection lists the changes the range overlaps in its own story, including a nested change or another author's change beside it. A partly covered change is listed whole, and a replacement lists its deletion and insertion separately. Load the members and decide on each one:
350
+
351
+ ```ts
352
+ await runtime.run(async (context) => {
353
+ const matches = context.document.body.search('within 30 days');
354
+ matches.load('items');
355
+ await context.sync();
356
+
357
+ const revisions = matches.items.map((match) => match.revisions);
358
+ for (const collection of revisions) collection.load('items');
359
+ await context.sync();
360
+
361
+ for (const collection of revisions) {
362
+ for (const revision of collection.items) revision.load('author');
363
+ }
364
+ await context.sync();
365
+
366
+ for (const collection of revisions) {
367
+ for (const revision of collection.items) {
368
+ if (revision.author === 'Agent') revision.accept();
369
+ }
370
+ }
371
+ await context.sync();
372
+ });
373
+ ```
374
+
375
+ `acceptAll()` and `rejectAll()` on a range collection resolve every change the range overlaps, whole, including structural changes that `items` omits. They fail with `NotImplemented` when one of those changes is read-only. When the range overlaps only part of a group of nested changes, only the overlapped changes resolve; the others stay pending. Two decisions in one sync that reach one change resolve it once; contrary decisions fail with `ConflictingChanges`. A change inside text that a decision in the same sync removes, such as a rejected insertion or an accepted deletion, goes with that text, so any decision on it in that sync is skipped. This also applies to `accept()` and `reject()` on single revisions. `resolve()` and `setAuthor()` refuse with `NotSupported` on a range collection. Use the story's `body.revisions` for them.
376
+
377
+ A browser review panel identifies cards by `key`. Pass the key to the DocxEditor function `getReviewItemRevisions(context, key)` to decide the card's own change, or the two halves of a paired replacement. `getReviewItemRange(context, key)` returns the range that a card covers; use `getReviewItemRangeOrNullObject(context, key)` when another reviewer can resolve the change first. Do not match cards to revisions by text.
378
+
232
379
  ## Set paragraph direction
233
380
 
234
381
  Office.js has no paragraph direction member. Use the DocxEditor addition `Paragraph.readingOrder` to write right-to-left paragraphs, such as Arabic or Hebrew text. Queue the direction writes for several paragraphs in one sync, then read them back in the next sync:
@@ -251,6 +398,20 @@ await runtime.run(async (context) => {
251
398
 
252
399
  A read returns the direction that the paragraph reads in, after its style. Writes accept only `LeftToRight` and `RightToLeft`; other values fail with `InvalidArgument`. A write of the direction that the paragraph already has changes nothing, so you can write back what you read. The write keeps `alignment` as authored: in a right-to-left paragraph, `Left` names the leading edge at the right margin. With `TrackMineOnly`, the write records a paragraph property revision.
253
400
 
401
+ ## Go to a bookmark
402
+
403
+ Go to a bookmark with the standard calls: `getBookmarkRangeOrNullObject(name)`, then `range.select()`. Check `isNullObject` after a sync instead of catching `ItemNotFound`. Selection needs a browser host (`runtime.capabilities.selection`). It opens the header, footer or note that holds the bookmark. A read-only editor refuses a selection outside the main text with `NotSupported`.
404
+
405
+ ```ts
406
+ await runtime.run(async (context) => {
407
+ const range = context.document.getBookmarkRangeOrNullObject('Intro');
408
+ await context.sync();
409
+ if (range.isNullObject) return;
410
+ range.select();
411
+ await context.sync();
412
+ });
413
+ ```
414
+
254
415
  ## Insert table rows
255
416
 
256
417
  `TableRow.insertRows('Before', count, values)` and `'After'` support ordinary source rows beside unrelated merged headers. Merged source rows and crossing vertical merges refuse. Keep each row insertion as the only write in its sync. Sync before editing returned rows. For more information, see [Tables and cells](https://docx-editor.dev/docs/2.x/editor-api/tables).
@@ -20,11 +20,11 @@
20
20
  * @packageDocumentation
21
21
  * @public
22
22
  */
23
- import { ai as RevisionTextView, J as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-BHhcVU2-.mjs';
24
- export { A as Alignment, B as BesideLocation, b as Body, c as BodyInsertParagraphLocation, d as BodyInsertTextLocation, e as Bookmark, f as BookmarkCollection, g as BreakType, h as ChangeTrackingMode, i as ClientObject, j as ClientResult, k as Comment, l as CommentCollection, m as CommentReply, n as CommentReplyCollection, o as ContentControl, p as ContentControlCollection, q as ContentControlLockState, r as ContentControlSubtype, s as ContentControlType, t as ContentControlValue, u as Document, v as DocumentCapabilities, w as DocumentLimits, x as DocumentProperties, y as DocumentXmlLimits, z as DocumentZipLimits, E as DocxEditorDebugInfo, F as DocxEditorError, G as DocxEditorErrorCode, H as DocxEditorErrorInit, I as DocxEditorInnerError, K as EditorModule, L as Field, M as FieldCollection, N as FieldType, O as FieldTypeLiteral, P as Font, Q as HeaderFooterType, R as InlinePicture, S as InlinePictureCollection, T as InsertLocation, U as List, V as ListBullet, W as ListCollection, X as ListItem, Y as ListNumbering, Z as LoadOption, _ as LoadQueryOptions, $ as NoteItem, a0 as NoteItemCollection, a1 as NoteItemType, a2 as PageOrientation, a3 as PageSetup, a4 as Paragraph, a5 as ParagraphAlignment, a6 as ParagraphCollection, a7 as ParagraphInsertTextLocation, a8 as ParagraphReadingOrder, a9 as Range, aa as RangeCollection, ab as RangeInsertTextLocation, ac as RemoveDocInfoType, ad as RequestContext, ae as Revision, af as RevisionAuthorOptions, ag as RevisionAuthorSelection, ah as RevisionCollection, aj as RevisionType, ak as RunCallback, al as RuntimeDiagnostic, am as SearchOptions, an as Section, ao as SectionCollection, ap as SelectionMode, aq as ServerPaginationOptions, ar as Shape, as as ShapeCollection, at as ShapeType, au as Table, av as TableCell, aw as TableCellCollection, ax as TableCollection, ay as TableRow, az as TableRowCollection, aA as TrackedObjects, aB as UnderlineType, aC as VerticalAlignment, aD as isDocxEditorError } from './server-BHhcVU2-.mjs';
23
+ import { am as RevisionTextView, M as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-Dw4k9h0p.mjs';
24
+ export { A as Alignment, B as BesideLocation, b as Body, c as BodyInsertParagraphLocation, d as BodyInsertTextLocation, e as Bookmark, f as BookmarkCollection, g as BreakType, h as ChangeTrackingMode, i as ClientObject, j as ClientResult, k as Comment, l as CommentCollection, m as CommentReply, n as CommentReplyCollection, o as CommitPreviewOptions, p as ContentControl, q as ContentControlCollection, r as ContentControlLockState, s as ContentControlSubtype, t as ContentControlType, u as ContentControlValue, v as Document, w as DocumentCapabilities, x as DocumentLimits, y as DocumentPreview, z as DocumentPreviewStatus, E as DocumentProperties, F as DocumentXmlLimits, G as DocumentZipLimits, H as DocxEditorDebugInfo, I as DocxEditorError, J as DocxEditorErrorCode, K as DocxEditorErrorInit, L as DocxEditorInnerError, N as EditorModule, O as Field, P as FieldCollection, Q as FieldType, R as FieldTypeLiteral, S as Font, T as HeaderFooterType, U as InlinePicture, V as InlinePictureCollection, W as InsertLocation, X as List, Y as ListBullet, Z as ListCollection, _ as ListItem, $ as ListNumbering, a0 as LoadOption, a1 as LoadQueryOptions, a2 as NoteItem, a3 as NoteItemCollection, a4 as NoteItemType, a5 as PageOrientation, a6 as PageSetup, a7 as Paragraph, a8 as ParagraphAlignment, a9 as ParagraphCollection, aa as ParagraphInsertTextLocation, ab as ParagraphReadingOrder, ac as PreviewCallback, ad as Range, ae as RangeCollection, af as RangeInsertTextLocation, ag as RemoveDocInfoType, ah as RequestContext, ai as Revision, aj as RevisionAuthorOptions, ak as RevisionAuthorSelection, al as RevisionCollection, an as RevisionType, ao as RunCallback, ap as RunOptions, aq as RuntimeDiagnostic, ar as SearchOptions, as as Section, at as SectionCollection, au as SelectionMode, av as ServerPaginationOptions, aw as Shape, ax as ShapeCollection, ay as ShapeType, az as Table, aA as TableCell, aB as TableCellCollection, aC as TableCollection, aD as TableRow, aE as TableRowCollection, aF as TrackedObjects, aG as UnderlineType, aH as VerticalAlignment, aI as getReviewItemRange, aJ as getReviewItemRangeOrNullObject, aK as getReviewItemRevisions, aL as isDocxEditorError } from './server-Dw4k9h0p.mjs';
25
25
  import { EditorCollaborationSession } from '@docx-editor.dev/core/collaboration';
26
+ export { HistoryGroup, HistoryGroupOutcome, RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
26
27
  import { DocxEditorInstance } from '@docx-editor.dev/core/editor';
27
- export { RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
28
28
 
29
29
  /**
30
30
  * How `DocxEditor.createBrowser` borrows a live editor.
package/dist/browser.d.ts CHANGED
@@ -20,11 +20,11 @@
20
20
  * @packageDocumentation
21
21
  * @public
22
22
  */
23
- import { ai as RevisionTextView, J as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-BHhcVU2-.js';
24
- export { A as Alignment, B as BesideLocation, b as Body, c as BodyInsertParagraphLocation, d as BodyInsertTextLocation, e as Bookmark, f as BookmarkCollection, g as BreakType, h as ChangeTrackingMode, i as ClientObject, j as ClientResult, k as Comment, l as CommentCollection, m as CommentReply, n as CommentReplyCollection, o as ContentControl, p as ContentControlCollection, q as ContentControlLockState, r as ContentControlSubtype, s as ContentControlType, t as ContentControlValue, u as Document, v as DocumentCapabilities, w as DocumentLimits, x as DocumentProperties, y as DocumentXmlLimits, z as DocumentZipLimits, E as DocxEditorDebugInfo, F as DocxEditorError, G as DocxEditorErrorCode, H as DocxEditorErrorInit, I as DocxEditorInnerError, K as EditorModule, L as Field, M as FieldCollection, N as FieldType, O as FieldTypeLiteral, P as Font, Q as HeaderFooterType, R as InlinePicture, S as InlinePictureCollection, T as InsertLocation, U as List, V as ListBullet, W as ListCollection, X as ListItem, Y as ListNumbering, Z as LoadOption, _ as LoadQueryOptions, $ as NoteItem, a0 as NoteItemCollection, a1 as NoteItemType, a2 as PageOrientation, a3 as PageSetup, a4 as Paragraph, a5 as ParagraphAlignment, a6 as ParagraphCollection, a7 as ParagraphInsertTextLocation, a8 as ParagraphReadingOrder, a9 as Range, aa as RangeCollection, ab as RangeInsertTextLocation, ac as RemoveDocInfoType, ad as RequestContext, ae as Revision, af as RevisionAuthorOptions, ag as RevisionAuthorSelection, ah as RevisionCollection, aj as RevisionType, ak as RunCallback, al as RuntimeDiagnostic, am as SearchOptions, an as Section, ao as SectionCollection, ap as SelectionMode, aq as ServerPaginationOptions, ar as Shape, as as ShapeCollection, at as ShapeType, au as Table, av as TableCell, aw as TableCellCollection, ax as TableCollection, ay as TableRow, az as TableRowCollection, aA as TrackedObjects, aB as UnderlineType, aC as VerticalAlignment, aD as isDocxEditorError } from './server-BHhcVU2-.js';
23
+ import { am as RevisionTextView, M as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-Dw4k9h0p.js';
24
+ export { A as Alignment, B as BesideLocation, b as Body, c as BodyInsertParagraphLocation, d as BodyInsertTextLocation, e as Bookmark, f as BookmarkCollection, g as BreakType, h as ChangeTrackingMode, i as ClientObject, j as ClientResult, k as Comment, l as CommentCollection, m as CommentReply, n as CommentReplyCollection, o as CommitPreviewOptions, p as ContentControl, q as ContentControlCollection, r as ContentControlLockState, s as ContentControlSubtype, t as ContentControlType, u as ContentControlValue, v as Document, w as DocumentCapabilities, x as DocumentLimits, y as DocumentPreview, z as DocumentPreviewStatus, E as DocumentProperties, F as DocumentXmlLimits, G as DocumentZipLimits, H as DocxEditorDebugInfo, I as DocxEditorError, J as DocxEditorErrorCode, K as DocxEditorErrorInit, L as DocxEditorInnerError, N as EditorModule, O as Field, P as FieldCollection, Q as FieldType, R as FieldTypeLiteral, S as Font, T as HeaderFooterType, U as InlinePicture, V as InlinePictureCollection, W as InsertLocation, X as List, Y as ListBullet, Z as ListCollection, _ as ListItem, $ as ListNumbering, a0 as LoadOption, a1 as LoadQueryOptions, a2 as NoteItem, a3 as NoteItemCollection, a4 as NoteItemType, a5 as PageOrientation, a6 as PageSetup, a7 as Paragraph, a8 as ParagraphAlignment, a9 as ParagraphCollection, aa as ParagraphInsertTextLocation, ab as ParagraphReadingOrder, ac as PreviewCallback, ad as Range, ae as RangeCollection, af as RangeInsertTextLocation, ag as RemoveDocInfoType, ah as RequestContext, ai as Revision, aj as RevisionAuthorOptions, ak as RevisionAuthorSelection, al as RevisionCollection, an as RevisionType, ao as RunCallback, ap as RunOptions, aq as RuntimeDiagnostic, ar as SearchOptions, as as Section, at as SectionCollection, au as SelectionMode, av as ServerPaginationOptions, aw as Shape, ax as ShapeCollection, ay as ShapeType, az as Table, aA as TableCell, aB as TableCellCollection, aC as TableCollection, aD as TableRow, aE as TableRowCollection, aF as TrackedObjects, aG as UnderlineType, aH as VerticalAlignment, aI as getReviewItemRange, aJ as getReviewItemRangeOrNullObject, aK as getReviewItemRevisions, aL as isDocxEditorError } from './server-Dw4k9h0p.js';
25
25
  import { EditorCollaborationSession } from '@docx-editor.dev/core/collaboration';
26
+ export { HistoryGroup, HistoryGroupOutcome, RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
26
27
  import { DocxEditorInstance } from '@docx-editor.dev/core/editor';
27
- export { RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
28
28
 
29
29
  /**
30
30
  * How `DocxEditor.createBrowser` borrows a live editor.