@docx-editor.dev/editor-api 2.32.0 → 2.33.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 +1 -1
- 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-BB94GFr9.d.mts → server-CDfqcHfQ.d.mts} +52 -24
- package/dist/{server-BB94GFr9.d.ts → server-CDfqcHfQ.d.ts} +52 -24
- package/package.json +2 -2
package/OFFICE_JS_GUIDE.md
CHANGED
|
@@ -513,7 +513,7 @@ await runtime.run(async (context) => {
|
|
|
513
513
|
});
|
|
514
514
|
```
|
|
515
515
|
|
|
516
|
-
`acceptAll()` and `rejectAll()` on a range collection resolve every change the range overlaps, whole, including
|
|
516
|
+
`acceptAll()` and `rejectAll()` on a range collection resolve every change the range overlaps, whole, including history 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.
|
|
517
517
|
|
|
518
518
|
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.
|
|
519
519
|
|
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 Table, aC as TableCell, aD as TableCellCollection, aE as TableCollection, aF as TableRow, aG as TableRowCollection, aH as TrackedObjects, aI as UnderlineType, aJ as VerticalAlignment, aK as getReviewItemRange, aL as getReviewItemRangeOrNullObject, aM as getReviewItemRevisions, aN as isDocxEditorError } from './server-
|
|
23
|
+
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-CDfqcHfQ.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 Table, aC as TableCell, aD as TableCellCollection, aE as TableCollection, aF as TableRow, aG as TableRowCollection, aH as TrackedObjects, aI as UnderlineType, aJ as VerticalAlignment, aK as getReviewItemRange, aL as getReviewItemRangeOrNullObject, aM as getReviewItemRevisions, aN as isDocxEditorError } from './server-CDfqcHfQ.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 Table, aC as TableCell, aD as TableCellCollection, aE as TableCollection, aF as TableRow, aG as TableRowCollection, aH as TrackedObjects, aI as UnderlineType, aJ as VerticalAlignment, aK as getReviewItemRange, aL as getReviewItemRangeOrNullObject, aM as getReviewItemRevisions, aN as isDocxEditorError } from './server-
|
|
23
|
+
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-CDfqcHfQ.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 Table, aC as TableCell, aD as TableCellCollection, aE as TableCollection, aF as TableRow, aG as TableRowCollection, aH as TrackedObjects, aI as UnderlineType, aJ as VerticalAlignment, aK as getReviewItemRange, aL as getReviewItemRangeOrNullObject, aM as getReviewItemRevisions, aN as isDocxEditorError } from './server-CDfqcHfQ.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';
|