@docx-editor.dev/editor-api 2.27.0 → 2.29.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/OFFICE_JS_GUIDE.md +93 -11
- package/README.md +1 -1
- package/dist/browser.d.mts +3 -4
- package/dist/browser.d.ts +3 -4
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{server-CK7TF4z-.d.mts → server-BHhcVU2-.d.mts} +331 -130
- package/dist/{server-CK7TF4z-.d.ts → server-BHhcVU2-.d.ts} +331 -130
- package/package.json +3 -3
package/OFFICE_JS_GUIDE.md
CHANGED
|
@@ -107,7 +107,7 @@ For orientation, use `PageSetup['orientation']` in the same way after loading an
|
|
|
107
107
|
|
|
108
108
|
## Give each sync a purpose
|
|
109
109
|
|
|
110
|
-
A sync either supplies data for the next decision or commits a complete edit. Batch independent reads and writes. For progressive agent review, one completed suggestion per sync is intentional: peers see each suggestion as it is ready. For independent edits in different paragraphs, multiple edits can share one sync and one transaction. Edits that claim the same paragraph can conflict; reconsider their anchors between commits.
|
|
110
|
+
A sync either supplies data for the next decision or commits a complete edit. Batch independent reads and writes. For progressive agent review, one completed suggestion per sync is intentional: peers see each suggestion as it is ready. For independent edits in different paragraphs, multiple edits can share one sync and one transaction. Edits that claim the same paragraph can conflict; reconsider their anchors between commits. A range read before an earlier sync changed text before its end fails with `StaleDocument`, so search again in that paragraph before the next suggestion.
|
|
111
111
|
|
|
112
112
|
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
113
|
|
|
@@ -125,12 +125,74 @@ Use `isDocxEditorError(error)` and branch on `error.code`. `error.target` identi
|
|
|
125
125
|
| --- | --- |
|
|
126
126
|
| `PropertyNotLoaded` | Load the named property and await sync before reading it. |
|
|
127
127
|
| `InvalidObjectPath` | Sync before using a newly returned proxy, or acquire a fresh proxy in a new run. |
|
|
128
|
-
| `StaleDocument` |
|
|
128
|
+
| `StaleDocument` | Search again, reconsider the model proposal, then write. |
|
|
129
129
|
| `ConflictingChanges` | Separate edits that claim the same paragraph and reconsider anchors between commits. |
|
|
130
130
|
| `NotSupported` | Check the host, tracking mode, author, and operation against the [tracking subset](#tracking-subset). |
|
|
131
131
|
| `NotImplemented` | Check the documented subset, including pending-revision boundaries. Reconsider the target; do not disable tracking. |
|
|
132
132
|
| `InvalidArgument` | Validate the argument and consult the member's JSDoc. |
|
|
133
133
|
|
|
134
|
+
### Read why the engine refused
|
|
135
|
+
|
|
136
|
+
`error.debugInfo` has the shape of Office.js `OfficeExtension.DebugInfo`: `code`, `message`, and `errorLocation`, the path of the refused call. When the engine knows a specific reason, `debugInfo.innerError` holds a stable diagnostic code and a fixed hint. Branch on `error.code`, and give `innerError.message` to the person or model that chose the edit. The hint never contains document content.
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
import { isDocxEditorError } from '@docx-editor.dev/editor-api';
|
|
140
|
+
|
|
141
|
+
try {
|
|
142
|
+
await context.sync();
|
|
143
|
+
} catch (error) {
|
|
144
|
+
if (!isDocxEditorError(error)) throw error;
|
|
145
|
+
const reason = error.debugInfo.innerError;
|
|
146
|
+
// For example: { code: 'edit.tracked-operation-unsupported', message: 'This editing API ...' }
|
|
147
|
+
if (reason) feedback.push(`${reason.code}: ${reason.message}`);
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
For all codes, see [Diagnostics](/docs/2.x/guides/diagnostics). To record anonymous refusal events, add a telemetry module to `createServer({ modules })`. For more information, see [Server agents](/docs/2.x/telemetry/agents).
|
|
152
|
+
|
|
153
|
+
### Recover from a stale range
|
|
154
|
+
|
|
155
|
+
A range addresses text by paragraph identity and offsets. When text before its end changes, including through an earlier sync of the same run, using the range fails with `StaleDocument` and nothing is applied. When `error.expectedRevision` equals `error.actualRevision`, the range moved; when they differ, another writer changed the document. In both cases, search again and reconsider the proposal before writing. Never replay the failed write unchanged.
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
import { isDocxEditorError } from '@docx-editor.dev/editor-api';
|
|
159
|
+
|
|
160
|
+
// `proposals` holds { find, replace } pairs from your model.
|
|
161
|
+
// `stillApplies` is your own check of a proposal against the current text.
|
|
162
|
+
await runtime.run(async (context) => {
|
|
163
|
+
context.document.changeTrackingMode = 'TrackMineOnly';
|
|
164
|
+
// Read every target in one sync.
|
|
165
|
+
const searches = proposals.map((proposal) => {
|
|
166
|
+
const matches = context.document.body.search(proposal.find, { matchCase: true });
|
|
167
|
+
matches.load('items');
|
|
168
|
+
return matches;
|
|
169
|
+
});
|
|
170
|
+
await context.sync();
|
|
171
|
+
|
|
172
|
+
for (const [index, proposal] of proposals.entries()) {
|
|
173
|
+
const range = searches[index]!.items[0];
|
|
174
|
+
if (!range) continue;
|
|
175
|
+
range.insertText(proposal.replace, 'Replace');
|
|
176
|
+
try {
|
|
177
|
+
// One reviewable suggestion per sync, so peers see each one as it lands.
|
|
178
|
+
await context.sync();
|
|
179
|
+
} catch (error) {
|
|
180
|
+
if (!isDocxEditorError(error) || error.code !== 'StaleDocument') throw error;
|
|
181
|
+
// Equal revisions: the range moved, often through an earlier sync of this run.
|
|
182
|
+
// Different revisions: another writer changed the document.
|
|
183
|
+
// Either way, search again and reconsider before you write.
|
|
184
|
+
const fresh = context.document.body.search(proposal.find, { matchCase: true });
|
|
185
|
+
fresh.load('items');
|
|
186
|
+
await context.sync();
|
|
187
|
+
const current = fresh.items[0];
|
|
188
|
+
if (!current || !stillApplies(proposal)) continue;
|
|
189
|
+
current.insertText(proposal.replace, 'Replace');
|
|
190
|
+
await context.sync();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
```
|
|
195
|
+
|
|
134
196
|
## Tracking subset
|
|
135
197
|
|
|
136
198
|
| Intent | Office.js-compatible API |
|
|
@@ -139,6 +201,7 @@ Use `isDocxEditorError(error)` and branch on `error.code`. `error.target` identi
|
|
|
139
201
|
| Insert before or after a range | `range.insertText(text, 'Before')` or `'After'` |
|
|
140
202
|
| Replace a range | `range.insertText(text, 'Replace')` |
|
|
141
203
|
| Delete range content | `range.delete()` or `range.clear()` |
|
|
204
|
+
| Propose removing a paragraph | `paragraph.delete()` |
|
|
142
205
|
| Read the current mode | `document.load('changeTrackingMode')`, then sync and read the property |
|
|
143
206
|
| Make an intentional permanent edit | Explicitly set `changeTrackingMode = 'Off'` |
|
|
144
207
|
|
|
@@ -146,14 +209,15 @@ Use `isDocxEditorError(error)` and branch on `error.code`. `error.target` identi
|
|
|
146
209
|
|
|
147
210
|
| Tracked edit | Supported behavior |
|
|
148
211
|
| --- | --- |
|
|
149
|
-
| Range text | Insert, replace, or delete text; adjacent sibling paragraphs work outside collaboration |
|
|
212
|
+
| Range text | Insert, replace, or delete text; deletions can span adjacent sibling paragraphs, and replacements across paragraphs work outside collaboration |
|
|
213
|
+
| Paragraph deletion | `paragraph.delete()` records the text and the paragraph mark as deletions; accept removes the paragraph |
|
|
150
214
|
| Font and paragraphs | Track font, paragraph-format, and paragraph-style edits as property revisions |
|
|
151
215
|
| Paragraph insertion | Track inserted text and paragraph marks |
|
|
152
216
|
| Lists | Track creation, membership, and level changes; configure newly proposed definitions |
|
|
153
217
|
| Tables | Track complete insertion, cell values, row additions, and partial row deletions |
|
|
154
218
|
| Content controls | Wrap nonempty ordinary text in `PlainText`, `RichText`, or `DatePicker` controls outside collaboration |
|
|
155
219
|
|
|
156
|
-
Tracked range edits refuse table and wrapper boundaries.
|
|
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.
|
|
157
221
|
|
|
158
222
|
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`.
|
|
159
223
|
|
|
@@ -161,21 +225,39 @@ Accept keeps a proposed content control. Reject restores the original formatted
|
|
|
161
225
|
|
|
162
226
|
Established list definitions and page setup refuse tracked writes. Comments and revision decisions remain available. Never silently fall back to `Off` when an edit cannot be tracked.
|
|
163
227
|
|
|
228
|
+
When a person adopts an agent's suggestions, attribute them to that person with `revisions.setAuthor(author, revisions)` or `revisions.setAuthor(author, { authors })`. This is a DocxEditor addition; Office.js has no author write. The changes stay pending. Never reject and reinsert suggestions to change their author.
|
|
229
|
+
|
|
164
230
|
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.
|
|
165
231
|
|
|
232
|
+
## Set paragraph direction
|
|
233
|
+
|
|
234
|
+
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:
|
|
235
|
+
|
|
236
|
+
```ts
|
|
237
|
+
await runtime.run(async (context) => {
|
|
238
|
+
const paragraphs = context.document.body.paragraphs;
|
|
239
|
+
paragraphs.load({ select: 'items', top: 2 });
|
|
240
|
+
await context.sync();
|
|
241
|
+
|
|
242
|
+
const targets = paragraphs.items;
|
|
243
|
+
for (const paragraph of targets) paragraph.readingOrder = 'RightToLeft';
|
|
244
|
+
await context.sync();
|
|
245
|
+
|
|
246
|
+
for (const paragraph of targets) paragraph.load('readingOrder');
|
|
247
|
+
await context.sync();
|
|
248
|
+
return targets.map((paragraph) => paragraph.readingOrder);
|
|
249
|
+
});
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
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
|
+
|
|
166
254
|
## Insert table rows
|
|
167
255
|
|
|
168
256
|
`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).
|
|
169
257
|
|
|
170
258
|
## Pictures and page fields
|
|
171
259
|
|
|
172
|
-
Insert a manual line break with `range.insertBreak('Line', 'After')` or `\v` in inserted text.
|
|
173
|
-
Call `await context.sync()` after queuing the write.
|
|
174
|
-
Manual line breaks support `TrackMineOnly` and text edits in the same sync.
|
|
175
|
-
Single-line content controls refuse manual line breaks.
|
|
176
|
-
Reads report manual line breaks as `\v`, column breaks as U+000E, and paragraph separators as `\r`.
|
|
177
|
-
Text writes refuse U+000E and paragraph separators.
|
|
178
|
-
Do not flatten these characters before sending read text back to the document.
|
|
260
|
+
Insert a manual line break with `range.insertBreak('Line', 'After')` or `\v` in inserted text. Call `await context.sync()` after queuing the write. Manual line breaks support `TrackMineOnly` and text edits in the same sync. Single-line content controls refuse manual line breaks. Reads report manual line breaks as `\v`, column breaks as U+000E, and paragraph separators as `\r`. Text writes refuse U+000E and paragraph separators. Do not flatten these characters before sending read text back to the document.
|
|
179
261
|
|
|
180
262
|
Insert PNG or JPEG images with `range.insertInlinePictureFromBase64(data, 'After')`. Sync before setting properties on the returned picture. Width and height use points. New pictures lock the aspect ratio. Set `lockAspectRatio = false` before setting independent dimensions. Set `altTextDescription` to describe the image. Deletion preserves shared media relationships.
|
|
181
263
|
|
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ await runtime.run(async (context) => {
|
|
|
100
100
|
|
|
101
101
|
Use `range.insertText(text, 'Before' | 'After')` for insertions, and `range.delete()` or `range.clear()` for deletions. `insertText()` returns the inserted range. Mode assignments and edits commit together at `sync()`; failed batches preserve the previous mode and document. Load `document.changeTrackingMode` before reading it. `Off` is the initial mode.
|
|
102
102
|
|
|
103
|
-
This is a supported Office.js subset. `TrackMineOnly` applies to this server host and persists across its `run()` calls. It does not change peers' tracking settings or save a document-wide tracking policy. `TrackAll` fails with `NotSupported`. Browser tracked writes require the Pro review module; the runtime setting does not change the editor UI mode. Tracked text edits support one paragraph, including table-cell text. The runtime rejects targets touching pending revisions, including text inside a row with a pending insertion or deletion.
|
|
103
|
+
This is a supported Office.js subset. `TrackMineOnly` applies to this server host and persists across its `run()` calls. It does not change peers' tracking settings or save a document-wide tracking policy. `TrackAll` fails with `NotSupported`. Browser tracked writes require the Pro review module; the runtime setting does not change the editor UI mode. Tracked text edits support one paragraph, including table-cell text, and adjacent sibling paragraphs outside collaboration. Tracked `Paragraph.delete()` and `Range.delete()` over whole paragraphs record deleted text and deleted paragraph marks, also in collaboration. Font, paragraph-format, paragraph-style, and `readingOrder` changes record property revisions, and paragraph insertion records inserted text and paragraph marks. The runtime rejects targets touching pending revisions, including text inside a row with a pending insertion or deletion. Other structural changes refuse while tracking. For the complete list, see [Revisions](https://docx-editor.dev/docs/2.x/editor-api/revisions). Comments and revision decisions remain available. Set `Off` explicitly when permanent edits are intended.
|
|
104
104
|
|
|
105
105
|
See the [server-agent review example](../../examples/server-agent-review/README.md) for Hocuspocus, stale-read handling, and the review lifecycle.
|
|
106
106
|
|
package/dist/browser.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
/**
|
|
3
2
|
* The same document automation, for a page that already has an editor open.
|
|
4
3
|
*
|
|
@@ -21,11 +20,11 @@
|
|
|
21
20
|
* @packageDocumentation
|
|
22
21
|
* @public
|
|
23
22
|
*/
|
|
24
|
-
import {
|
|
25
|
-
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
|
|
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';
|
|
26
25
|
import { EditorCollaborationSession } from '@docx-editor.dev/core/collaboration';
|
|
27
26
|
import { DocxEditorInstance } from '@docx-editor.dev/core/editor';
|
|
28
|
-
export { RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
|
|
27
|
+
export { RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
30
|
* How `DocxEditor.createBrowser` borrows a live editor.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
/**
|
|
3
2
|
* The same document automation, for a page that already has an editor open.
|
|
4
3
|
*
|
|
@@ -21,11 +20,11 @@
|
|
|
21
20
|
* @packageDocumentation
|
|
22
21
|
* @public
|
|
23
22
|
*/
|
|
24
|
-
import {
|
|
25
|
-
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
|
|
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';
|
|
26
25
|
import { EditorCollaborationSession } from '@docx-editor.dev/core/collaboration';
|
|
27
26
|
import { DocxEditorInstance } from '@docx-editor.dev/core/editor';
|
|
28
|
-
export { RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
|
|
27
|
+
export { RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
30
|
* How `DocxEditor.createBrowser` borrows a live editor.
|