@docx-editor.dev/editor-api 2.30.0 → 2.32.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 +346 -10
- package/README.md +31 -3
- package/dist/agent.d.mts +243 -0
- package/dist/agent.d.ts +243 -0
- package/dist/agent.js +5 -0
- package/dist/agent.mjs +5 -0
- package/dist/browser.d.mts +8 -4
- package/dist/browser.d.ts +8 -4
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{server-BHhcVU2-.d.mts → server-BB94GFr9.d.mts} +1346 -438
- package/dist/{server-BHhcVU2-.d.ts → server-BB94GFr9.d.ts} +1346 -438
- package/docs/accept-reject-without-scrolling.md +95 -0
- package/docs/comment-on-found-text.md +72 -0
- package/docs/custom-review-cards.md +178 -0
- package/docs/highlight-ranges.md +48 -0
- package/docs/index.md +36 -0
- package/docs/propose-rewrite.md +247 -0
- package/docs/tracked-replacement.md +68 -0
- package/package.json +11 -2
package/dist/browser.d.ts
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
* @packageDocumentation
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
import {
|
|
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
|
|
23
|
+
import { ao as RevisionTextView, N as DocxEditorRuntime, C as CreateServerOptions, D as DocxEditorServerRuntime, a as CreateCollaborativeOptions } from './server-BB94GFr9.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-BB94GFr9.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.
|
|
@@ -37,7 +37,11 @@ interface CreateBrowserOptions {
|
|
|
37
37
|
*
|
|
38
38
|
* Required to reply to a comment: `CT_TrackChange` makes `@w:author` mandatory, and the editor
|
|
39
39
|
* does not expose a signed-in identity to automation. Omitted means comment writes refuse with
|
|
40
|
-
* `NotSupported`; ordinary document reads
|
|
40
|
+
* `NotSupported` and the diagnostic `edit.comment-author-required`; ordinary document reads
|
|
41
|
+
* and writes are unaffected.
|
|
42
|
+
*
|
|
43
|
+
* To build a review UI over this editor, use `useReview()` from `@docx-editor.dev/pro/react`
|
|
44
|
+
* or `@docx-editor.dev/pro/vue` instead. It comments and replies as the editor's author.
|
|
41
45
|
*/
|
|
42
46
|
readonly author?: string;
|
|
43
47
|
/**
|