@docx-editor.dev/editor-api 2.33.0 → 2.35.0-canary.20261102190412.sha-b9a04a3
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 +71 -6
- package/dist/browser.d.mts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{server-CDfqcHfQ.d.mts → server-DMIAaVbA.d.mts} +277 -28
- package/dist/{server-CDfqcHfQ.d.ts → server-DMIAaVbA.d.ts} +277 -28
- package/package.json +2 -2
package/OFFICE_JS_GUIDE.md
CHANGED
|
@@ -75,7 +75,19 @@ const snapshot = await runtime.run(async (context) => {
|
|
|
75
75
|
|
|
76
76
|
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`.
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
You can load an object that an insertion returns in the same `sync()` as the insertion. The runtime answers that load after the writes commit, so it reports the inserted value:
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
await runtime.run(async (context) => {
|
|
82
|
+
const inserted = context.document.body.paragraphs.getFirst().insertText('#', 'End');
|
|
83
|
+
inserted.load('text');
|
|
84
|
+
inserted.font.load('italic');
|
|
85
|
+
await context.sync();
|
|
86
|
+
return { text: inserted.text, italic: inserted.font.italic };
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
If that load fails, the writes stay applied and `sync()` rejects with the load's error code and `debugInfo.innerError.code` `edit.read-after-commit`. Read again; do not apply the edit a second time. A write to the returned object, such as `inserted.font.bold = true`, and a navigation read from it, such as `getFirst()`, `getRange()`, `search()`, or `getCell()`, still require a completed `sync()` first; before it they fail with `InvalidObjectPath` and nothing commits. If a prerequisite fails, the runtime commits no queued writes. Completed prerequisite reads can remain loaded after a later command fails.
|
|
79
91
|
|
|
80
92
|
## Keep writes within one story
|
|
81
93
|
|
|
@@ -102,6 +114,29 @@ await runtime.run(async (context) => {
|
|
|
102
114
|
|
|
103
115
|
Each write sync creates a separate transaction. Earlier successful transactions remain if a later transaction fails. Linked headers or footers can share content. Re-read that content before making a dependent edit through another section.
|
|
104
116
|
|
|
117
|
+
### Read text boxes before you edit an empty-looking body
|
|
118
|
+
|
|
119
|
+
A text box is its own story, so `body.text` and `body.search()` do not include its text. Some documents keep all of their visible text in floating text boxes, anchored by empty body paragraphs. If `body.text` is empty or short, read the shapes before you choose an edit target. Text inserted into an empty anchor paragraph usually appears behind the boxes.
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
const texts = await runtime.run(async (context) => {
|
|
123
|
+
const shapes = context.document.body.shapes.getByTypes([
|
|
124
|
+
ShapeType.textBox,
|
|
125
|
+
ShapeType.geometricShape,
|
|
126
|
+
]);
|
|
127
|
+
shapes.load('items/id');
|
|
128
|
+
await context.sync();
|
|
129
|
+
const bodies = shapes.items.map((shape) => {
|
|
130
|
+
shape.body.load('text');
|
|
131
|
+
return shape.body;
|
|
132
|
+
});
|
|
133
|
+
await context.sync();
|
|
134
|
+
return shapes.items.map((shape, index) => ({ id: shape.id, text: bodies[index]!.text }));
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
A shape that the file gives no text story reads as empty text. A write to it refuses with `InvalidArgument` and `edit.unsupported-story`. Edit a text box through its own `body` in its own sync, as with any other story.
|
|
139
|
+
|
|
105
140
|
## Preserve Office.js enum property types
|
|
106
141
|
|
|
107
142
|
Like Office.js, `Document.changeTrackingMode` and `PageSetup.orientation` use unions of the enum and its string literals for both reads and writes. Enum constants and the corresponding string literals are accepted by the type system. This matches Microsoft's [change-tracking declaration](https://learn.microsoft.com/en-us/javascript/api/word/word.document#word-word-document-changetrackingmode-member) and [page-orientation declaration](https://learn.microsoft.com/en-us/javascript/api/word/word.pagesetup#word-word-pagesetup-orientation-member).
|
|
@@ -202,7 +237,7 @@ Use `isDocxEditorError(error)` and branch on `error.code`. `error.target` identi
|
|
|
202
237
|
| Code | Next action |
|
|
203
238
|
| --- | --- |
|
|
204
239
|
| `PropertyNotLoaded` | Load the named property and await sync before reading it. |
|
|
205
|
-
| `InvalidObjectPath` | Sync before
|
|
240
|
+
| `InvalidObjectPath` | Sync before editing 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. |
|
|
206
241
|
| `StaleDocument` | Search again, reconsider the model proposal, then write. |
|
|
207
242
|
| `ConflictingChanges` | Separate edits that claim the same paragraph and reconsider anchors between commits. |
|
|
208
243
|
| `NotSupported` | The call is outside the supported subset for this host, mode, or content. Don't retry it. Read `debugInfo.innerError.code`, then check the host, tracking mode, author, and operation against the [tracking subset](#tracking-subset). |
|
|
@@ -231,7 +266,7 @@ For all codes, see [Diagnostics](https://www.docx-editor.dev/docs/2.x/guides/dia
|
|
|
231
266
|
|
|
232
267
|
### Recover from a stale range
|
|
233
268
|
|
|
234
|
-
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.
|
|
269
|
+
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. One `StaleDocument` is different: when `debugInfo.innerError.code` is `edit.read-after-commit`, the writes in that sync are applied, and only a load on an object they created failed. Read again, and do not apply the edit a second time.
|
|
235
270
|
|
|
236
271
|
```ts
|
|
237
272
|
import { isDocxEditorError } from '@docx-editor.dev/editor-api';
|
|
@@ -257,6 +292,8 @@ await runtime.run(async (context) => {
|
|
|
257
292
|
await context.sync();
|
|
258
293
|
} catch (error) {
|
|
259
294
|
if (!isDocxEditorError(error) || error.code !== 'StaleDocument') throw error;
|
|
295
|
+
// The write is applied, and only a load that followed it failed: never apply it again.
|
|
296
|
+
if (error.debugInfo.innerError?.code === 'edit.read-after-commit') continue;
|
|
260
297
|
// Equal revisions: the range moved, often through an earlier sync of this run.
|
|
261
298
|
// Different revisions: another writer changed the document.
|
|
262
299
|
// Either way, search again and reconsider before you write.
|
|
@@ -295,7 +332,8 @@ await runtime.run(async (context) => {
|
|
|
295
332
|
| Paragraph deletion | `paragraph.delete()` records the text and the paragraph mark as deletions; accept removes the paragraph |
|
|
296
333
|
| Font and paragraphs | Track font, paragraph-format, and paragraph-style edits as property revisions |
|
|
297
334
|
| Paragraph insertion | Track inserted text and paragraph marks |
|
|
298
|
-
| Paragraph split | `insertText()` with `\n`
|
|
335
|
+
| Paragraph split | `insertText()` with `\n` and `Paragraph.split()` track each new paragraph mark; reject joins the paragraphs again |
|
|
336
|
+
| Breaks | `Range.insertBreak()` tracks line, page, and next-page section breaks; reject removes the break |
|
|
299
337
|
| Lists | Track creation, membership, and level changes; configure newly proposed definitions |
|
|
300
338
|
| Tables | Track complete insertion, cell values, row additions, and partial row deletions |
|
|
301
339
|
| Content controls | Wrap nonempty ordinary text in `PlainText`, `RichText`, or `DatePicker` controls outside collaboration |
|
|
@@ -539,6 +577,33 @@ await runtime.run(async (context) => {
|
|
|
539
577
|
|
|
540
578
|
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.
|
|
541
579
|
|
|
580
|
+
## Apply a style the document defines
|
|
581
|
+
|
|
582
|
+
A style setter refuses a name that the document does not define. List the defined styles first, then pass plain names to the model. Load the item properties in the same sync as the collection:
|
|
583
|
+
|
|
584
|
+
```ts
|
|
585
|
+
await runtime.run(async (context) => {
|
|
586
|
+
const styles = context.document.getStyles();
|
|
587
|
+
styles.load('items/nameLocal,items/type,items/visibility,items/unhideWhenUsed,items/priority');
|
|
588
|
+
const paragraph = context.document.body.paragraphs.getFirst();
|
|
589
|
+
await context.sync();
|
|
590
|
+
|
|
591
|
+
// Offer an agent the paragraph styles a reader would see, in gallery order.
|
|
592
|
+
// Keep hidden styles that unhide once used, such as heading 2, so they can be applied too.
|
|
593
|
+
// Many styles share priority 99, so sort by name next for a stable order.
|
|
594
|
+
const names = styles.items
|
|
595
|
+
.filter((style) => style.type === 'Paragraph' && (style.visibility || style.unhideWhenUsed))
|
|
596
|
+
.sort((a, b) => a.priority - b.priority || a.nameLocal.localeCompare(b.nameLocal))
|
|
597
|
+
.map((style) => style.nameLocal);
|
|
598
|
+
const chosen = names.find((name) => name.toLowerCase() === 'quote');
|
|
599
|
+
if (chosen === undefined) return;
|
|
600
|
+
paragraph.style = chosen;
|
|
601
|
+
await context.sync();
|
|
602
|
+
});
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
The list includes character, table, and list styles too. The `style` setters accept paragraph style names only and refuse the others, so filter on `type` first. Every listed paragraph style applies through `style`, including linked styles such as headings. A built-in name is accepted as listed, such as `heading 1`. `styles.load()` with no arguments reads every property of each style. To check one name, call `styles.getByNameOrNullObject(name)` and read `isNullObject` after a sync; it needs no property load. Names compare without case, so `Heading 1` finds `heading 1`; compare names the same way rather than with `===`. If a `style` write still fails, the sync rejects with `InvalidArgument` and `debugInfo.innerError.code` is `edit.style-not-defined`, or `edit.no-styles-defined` when the document has no styles part. This subset has no `styleBuiltIn`; find a built-in style's name with `getStyles()` and assign it to `style`. Style definitions are read-only.
|
|
606
|
+
|
|
542
607
|
## Go to a bookmark
|
|
543
608
|
|
|
544
609
|
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`.
|
|
@@ -559,7 +624,7 @@ await runtime.run(async (context) => {
|
|
|
559
624
|
|
|
560
625
|
## Merge and split cells
|
|
561
626
|
|
|
562
|
-
`Table.mergeCells(topRow, firstCell, bottomRow, lastCell)` merges a rectangle and returns the merged cell.
|
|
627
|
+
`Table.mergeCells(topRow, firstCell, bottomRow, lastCell)` merges a rectangle and returns the merged cell. Its `value`, `shadingColor`, and `verticalAlignment` can share the sync. Sync before you edit text in the table, or the edit refuses with `ConflictingChanges`. `TableCell.split(rowCount, columnCount)` splits one cell. A ragged rectangle refuses with `InvalidArgument` and `innerError.code` `edit.table-merge-not-rectangle`. A split the cell cannot take refuses with `InvalidArgument` and `edit.table-split-unsupported`. With `TrackMineOnly`, both work inside your own proposed table, and the new shape joins that proposal: reject removes the whole table. Any other table refuses with `NotSupported`. Do not turn tracking off to make them succeed. Insert a table at the edge of the body with `body.insertTable(rows, columns, 'Start' | 'End', values)`, or beside a paragraph with `paragraph.insertTable(rows, columns, 'Before' | 'After', values)`.
|
|
563
628
|
|
|
564
629
|
```ts
|
|
565
630
|
import { DocxEditor, isDocxEditorError } from '@docx-editor.dev/editor-api';
|
|
@@ -583,7 +648,7 @@ await runtime.run(async (context) => {
|
|
|
583
648
|
|
|
584
649
|
## Pictures and fields
|
|
585
650
|
|
|
586
|
-
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. `insertText()` on a body, paragraph, or range writes `\n`, `\r`, and `\r\n` as paragraph breaks. Other paragraph separators refuse. Do not flatten these characters before sending read text back to the document.
|
|
651
|
+
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. Page and next-page section breaks also support `TrackMineOnly`; each runs alone in its 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. `insertText()` on a body, paragraph, or range writes `\n`, `\r`, and `\r\n` as paragraph breaks. Other paragraph separators refuse. Do not flatten these characters before sending read text back to the document.
|
|
587
652
|
|
|
588
653
|
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.
|
|
589
654
|
|
package/dist/browser.d.mts
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* @packageDocumentation
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-
|
|
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 ChangeTrackingVersion, j as ClientObject, k as ClientResult, l as Comment, m as CommentCollection, n as CommentReply, o as CommentReplyCollection, p as CommitPreviewOptions, q as ContentControl, r as ContentControlCollection, s as ContentControlLockState, t as ContentControlSubtype, u as ContentControlType, v as ContentControlValue, w as Document, x as DocumentCapabilities, y as DocumentLimits, z as DocumentPreview, E as DocumentPreviewStatus, F as DocumentProperties, G as DocumentXmlLimits, H as DocumentZipLimits, I as DocxEditorDebugInfo, J as DocxEditorError, K as DocxEditorErrorCode, L as DocxEditorErrorInit, M as DocxEditorInnerError, O as EditorModule, P as Field, Q as FieldCollection, R as FieldType, S as FieldTypeLiteral, T as Font, U as HeaderFooterType, V as InlinePicture, W as InlinePictureCollection, X as InsertLocation, Y as List, Z as ListBullet, _ as ListCollection, $ as ListItem, a0 as ListNumbering, a1 as LoadOption, a2 as LoadQueryOptions, a3 as NoteItem, a4 as NoteItemCollection, a5 as NoteItemType, a6 as PageOrientation, a7 as PageSetup, a8 as Paragraph, a9 as ParagraphAlignment, aa as ParagraphCollection, ab as ParagraphInsertTextLocation, ac as ParagraphReadingOrder, ad as PreviewCallback, ae as Range, af as RangeCollection, ag as RangeInsertTextLocation, ah as RangeLocation, ai as RemoveDocInfoType, aj as RequestContext, ak as Revision, al as RevisionAuthorOptions, am as RevisionAuthorSelection, an as RevisionCollection, ap as RevisionType, aq as RunCallback, ar as RunOptions, as as RuntimeDiagnostic, at as SearchOptions, au as Section, av as SectionCollection, aw as SelectionMode, ax as ServerPaginationOptions, ay as Shape, az as ShapeCollection, aA as ShapeType, aB as
|
|
23
|
+
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-DMIAaVbA.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 ChangeTrackingVersion, j as ClientObject, k as ClientResult, l as Comment, m as CommentCollection, n as CommentReply, o as CommentReplyCollection, p as CommitPreviewOptions, q as ContentControl, r as ContentControlCollection, s as ContentControlLockState, t as ContentControlSubtype, u as ContentControlType, v as ContentControlValue, w as Document, x as DocumentCapabilities, y as DocumentLimits, z as DocumentPreview, E as DocumentPreviewStatus, F as DocumentProperties, G as DocumentXmlLimits, H as DocumentZipLimits, I as DocxEditorDebugInfo, J as DocxEditorError, K as DocxEditorErrorCode, L as DocxEditorErrorInit, M as DocxEditorInnerError, O as EditorModule, P as Field, Q as FieldCollection, R as FieldType, S as FieldTypeLiteral, T as Font, U as HeaderFooterType, V as InlinePicture, W as InlinePictureCollection, X as InsertLocation, Y as List, Z as ListBullet, _ as ListCollection, $ as ListItem, a0 as ListNumbering, a1 as LoadOption, a2 as LoadQueryOptions, a3 as NoteItem, a4 as NoteItemCollection, a5 as NoteItemType, a6 as PageOrientation, a7 as PageSetup, a8 as Paragraph, a9 as ParagraphAlignment, aa as ParagraphCollection, ab as ParagraphInsertTextLocation, ac as ParagraphReadingOrder, ad as PreviewCallback, ae as Range, af as RangeCollection, ag as RangeInsertTextLocation, ah as RangeLocation, ai as RemoveDocInfoType, aj as RequestContext, ak as Revision, al as RevisionAuthorOptions, am as RevisionAuthorSelection, an as RevisionCollection, ap as RevisionType, aq as RunCallback, ar as RunOptions, as as RuntimeDiagnostic, at as SearchOptions, au as Section, av as SectionCollection, aw as SelectionMode, ax as ServerPaginationOptions, ay as Shape, az as ShapeCollection, aA as ShapeType, aB as Style, aC as StyleCollection, aD as StyleType, aE as Table, aF as TableCell, aG as TableCellCollection, aH as TableCollection, aI as TableRow, aJ as TableRowCollection, aK as TrackedObjects, aL as UnderlineType, aM as VerticalAlignment, aN as getReviewItemRange, aO as getReviewItemRangeOrNullObject, aP as getReviewItemRevisions, aQ as isDocxEditorError } from './server-DMIAaVbA.mjs';
|
|
25
25
|
import { EditorCollaborationSession } from '@docx-editor.dev/core/collaboration';
|
|
26
26
|
export { HistoryGroup, HistoryGroupOutcome, RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
|
|
27
27
|
import { DocxEditorInstance } from '@docx-editor.dev/core/editor';
|
package/dist/browser.d.ts
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* @packageDocumentation
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-
|
|
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 ChangeTrackingVersion, j as ClientObject, k as ClientResult, l as Comment, m as CommentCollection, n as CommentReply, o as CommentReplyCollection, p as CommitPreviewOptions, q as ContentControl, r as ContentControlCollection, s as ContentControlLockState, t as ContentControlSubtype, u as ContentControlType, v as ContentControlValue, w as Document, x as DocumentCapabilities, y as DocumentLimits, z as DocumentPreview, E as DocumentPreviewStatus, F as DocumentProperties, G as DocumentXmlLimits, H as DocumentZipLimits, I as DocxEditorDebugInfo, J as DocxEditorError, K as DocxEditorErrorCode, L as DocxEditorErrorInit, M as DocxEditorInnerError, O as EditorModule, P as Field, Q as FieldCollection, R as FieldType, S as FieldTypeLiteral, T as Font, U as HeaderFooterType, V as InlinePicture, W as InlinePictureCollection, X as InsertLocation, Y as List, Z as ListBullet, _ as ListCollection, $ as ListItem, a0 as ListNumbering, a1 as LoadOption, a2 as LoadQueryOptions, a3 as NoteItem, a4 as NoteItemCollection, a5 as NoteItemType, a6 as PageOrientation, a7 as PageSetup, a8 as Paragraph, a9 as ParagraphAlignment, aa as ParagraphCollection, ab as ParagraphInsertTextLocation, ac as ParagraphReadingOrder, ad as PreviewCallback, ae as Range, af as RangeCollection, ag as RangeInsertTextLocation, ah as RangeLocation, ai as RemoveDocInfoType, aj as RequestContext, ak as Revision, al as RevisionAuthorOptions, am as RevisionAuthorSelection, an as RevisionCollection, ap as RevisionType, aq as RunCallback, ar as RunOptions, as as RuntimeDiagnostic, at as SearchOptions, au as Section, av as SectionCollection, aw as SelectionMode, ax as ServerPaginationOptions, ay as Shape, az as ShapeCollection, aA as ShapeType, aB as
|
|
23
|
+
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-DMIAaVbA.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 ChangeTrackingVersion, j as ClientObject, k as ClientResult, l as Comment, m as CommentCollection, n as CommentReply, o as CommentReplyCollection, p as CommitPreviewOptions, q as ContentControl, r as ContentControlCollection, s as ContentControlLockState, t as ContentControlSubtype, u as ContentControlType, v as ContentControlValue, w as Document, x as DocumentCapabilities, y as DocumentLimits, z as DocumentPreview, E as DocumentPreviewStatus, F as DocumentProperties, G as DocumentXmlLimits, H as DocumentZipLimits, I as DocxEditorDebugInfo, J as DocxEditorError, K as DocxEditorErrorCode, L as DocxEditorErrorInit, M as DocxEditorInnerError, O as EditorModule, P as Field, Q as FieldCollection, R as FieldType, S as FieldTypeLiteral, T as Font, U as HeaderFooterType, V as InlinePicture, W as InlinePictureCollection, X as InsertLocation, Y as List, Z as ListBullet, _ as ListCollection, $ as ListItem, a0 as ListNumbering, a1 as LoadOption, a2 as LoadQueryOptions, a3 as NoteItem, a4 as NoteItemCollection, a5 as NoteItemType, a6 as PageOrientation, a7 as PageSetup, a8 as Paragraph, a9 as ParagraphAlignment, aa as ParagraphCollection, ab as ParagraphInsertTextLocation, ac as ParagraphReadingOrder, ad as PreviewCallback, ae as Range, af as RangeCollection, ag as RangeInsertTextLocation, ah as RangeLocation, ai as RemoveDocInfoType, aj as RequestContext, ak as Revision, al as RevisionAuthorOptions, am as RevisionAuthorSelection, an as RevisionCollection, ap as RevisionType, aq as RunCallback, ar as RunOptions, as as RuntimeDiagnostic, at as SearchOptions, au as Section, av as SectionCollection, aw as SelectionMode, ax as ServerPaginationOptions, ay as Shape, az as ShapeCollection, aA as ShapeType, aB as Style, aC as StyleCollection, aD as StyleType, aE as Table, aF as TableCell, aG as TableCellCollection, aH as TableCollection, aI as TableRow, aJ as TableRowCollection, aK as TrackedObjects, aL as UnderlineType, aM as VerticalAlignment, aN as getReviewItemRange, aO as getReviewItemRangeOrNullObject, aP as getReviewItemRevisions, aQ as isDocxEditorError } from './server-DMIAaVbA.js';
|
|
25
25
|
import { EditorCollaborationSession } from '@docx-editor.dev/core/collaboration';
|
|
26
26
|
export { HistoryGroup, HistoryGroupOutcome, RevisionAuthorEntry, RevisionAuthorResult, RevisionAuthorSkipReason, RevisionBatchEntry, RevisionBatchResult, RevisionBatchSkipReason } from '@docx-editor.dev/core/automation';
|
|
27
27
|
import { DocxEditorInstance } from '@docx-editor.dev/core/editor';
|