@docx-editor.dev/editor-api 2.8.0 → 2.9.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/README.md +1 -1
- package/dist/browser.d.mts +9 -3
- package/dist/browser.d.ts +9 -3
- 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-DbbWqWoz.d.mts → server-CLl0SanG.d.mts} +24 -1
- package/dist/{server-DbbWqWoz.d.ts → server-CLl0SanG.d.ts} +24 -1
- package/package.json +3 -2
|
@@ -85,6 +85,8 @@ declare abstract class HandleCollection<T extends ClientObject & PromisedItem> e
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
declare abstract class ModelObject extends ClientObject {
|
|
88
|
+
/** Runtime-wide revision view behind standard Office-compatible text reads and searches. */
|
|
89
|
+
protected revisionTextView(): 'allMarkup' | 'original';
|
|
88
90
|
/** Queue a read whose text answer becomes the loaded property `name`. */
|
|
89
91
|
protected loadTextInto(name: string, plan: () => AutomationOperation): void;
|
|
90
92
|
/** Queue a command with nothing to answer. Nothing is written until `sync()`. */
|
|
@@ -1376,6 +1378,17 @@ interface DocxEditorServerRuntime extends DocxEditorRuntime {
|
|
|
1376
1378
|
*/
|
|
1377
1379
|
save(): Promise<Uint8Array>;
|
|
1378
1380
|
}
|
|
1381
|
+
/**
|
|
1382
|
+
* The tracked-revision view used by this runtime's ordinary Office-compatible text reads.
|
|
1383
|
+
*
|
|
1384
|
+
* `allMarkup` preserves the historical behavior. `original` matches Word's Original review view:
|
|
1385
|
+
* pending deletions remain visible and pending insertions stay hidden.
|
|
1386
|
+
*
|
|
1387
|
+
* This is a DocxEditor runtime option. It is not part of the Office.js object model.
|
|
1388
|
+
*
|
|
1389
|
+
* @public
|
|
1390
|
+
*/
|
|
1391
|
+
type RevisionTextView = 'allMarkup' | 'original';
|
|
1379
1392
|
|
|
1380
1393
|
/**
|
|
1381
1394
|
* The objects a context keeps addressable beyond the run that created them.
|
|
@@ -1403,6 +1416,8 @@ interface RuntimeSession {
|
|
|
1403
1416
|
readonly capabilities: AutomationCapabilities;
|
|
1404
1417
|
/** Who a comment this runtime writes is recorded as, or absent when it may not write one. */
|
|
1405
1418
|
readonly author?: string;
|
|
1419
|
+
/** Revision view used by standard Office-compatible text reads and searches. */
|
|
1420
|
+
readonly revisionTextView: RevisionTextView;
|
|
1406
1421
|
/** Identity for adoption checks. The session object itself. */
|
|
1407
1422
|
readonly id: object;
|
|
1408
1423
|
roots(): RootHandles;
|
|
@@ -1485,6 +1500,8 @@ interface ContextInternals {
|
|
|
1485
1500
|
* write refuses (`NotSupported`) rather than putting a made-up name in the file.
|
|
1486
1501
|
*/
|
|
1487
1502
|
readonly author?: string;
|
|
1503
|
+
/** Revision view used by standard Office-compatible text reads and searches. */
|
|
1504
|
+
readonly revisionTextView: RevisionTextView;
|
|
1488
1505
|
readonly queue: ActionQueue;
|
|
1489
1506
|
/**
|
|
1490
1507
|
* Identity of the runtime session behind this context.
|
|
@@ -2046,6 +2063,12 @@ interface CreateServerOptions {
|
|
|
2046
2063
|
* placeholder name into someone's document.
|
|
2047
2064
|
*/
|
|
2048
2065
|
readonly author?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Revision view for ordinary Office-compatible `text` loads and `search()` calls.
|
|
2068
|
+
*
|
|
2069
|
+
* Omitted means `allMarkup`.
|
|
2070
|
+
*/
|
|
2071
|
+
readonly revisionTextView?: RevisionTextView;
|
|
2049
2072
|
}
|
|
2050
2073
|
|
|
2051
|
-
export { type
|
|
2074
|
+
export { type RunCallback as $, ListItem as A, type BesideLocation as B, type CreateServerOptions as C, type DocxEditorServerRuntime as D, type LoadOption as E, Font as F, type LoadQueryOptions as G, type HeaderFooterType as H, type InsertLocation as I, NoteItemCollection as J, type NoteItemType as K, List as L, PageSetup as M, NoteItem as N, Paragraph as O, type PageOrientation as P, type ParagraphAlignment as Q, ParagraphCollection as R, type ParagraphInsertTextLocation as S, Range as T, RangeCollection as U, type RangeInsertTextLocation as V, RequestContext as W, Revision as X, RevisionCollection as Y, type RevisionTextView as Z, type RevisionType as _, Body as a, type SearchOptions as a0, Section as a1, SectionCollection as a2, type SelectionMode as a3, TrackedObjects as a4, isDocxEditorError as a5, type BodyInsertParagraphLocation as b, type BodyInsertTextLocation as c, Bookmark as d, BookmarkCollection as e, ClientObject as f, ClientResult as g, Comment as h, CommentCollection as i, CommentReply as j, CommentReplyCollection as k, ContentControl as l, ContentControlCollection as m, type ContentControlLockState as n, type ContentControlSubtype as o, type ContentControlValue as p, Document as q, type DocumentCapabilities as r, type DocumentLimits as s, type DocumentXmlLimits as t, type DocumentZipLimits as u, DocxEditorError as v, type DocxEditorErrorCode as w, type DocxEditorErrorInit as x, type DocxEditorRuntime as y, ListCollection as z };
|
|
@@ -85,6 +85,8 @@ declare abstract class HandleCollection<T extends ClientObject & PromisedItem> e
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
declare abstract class ModelObject extends ClientObject {
|
|
88
|
+
/** Runtime-wide revision view behind standard Office-compatible text reads and searches. */
|
|
89
|
+
protected revisionTextView(): 'allMarkup' | 'original';
|
|
88
90
|
/** Queue a read whose text answer becomes the loaded property `name`. */
|
|
89
91
|
protected loadTextInto(name: string, plan: () => AutomationOperation): void;
|
|
90
92
|
/** Queue a command with nothing to answer. Nothing is written until `sync()`. */
|
|
@@ -1376,6 +1378,17 @@ interface DocxEditorServerRuntime extends DocxEditorRuntime {
|
|
|
1376
1378
|
*/
|
|
1377
1379
|
save(): Promise<Uint8Array>;
|
|
1378
1380
|
}
|
|
1381
|
+
/**
|
|
1382
|
+
* The tracked-revision view used by this runtime's ordinary Office-compatible text reads.
|
|
1383
|
+
*
|
|
1384
|
+
* `allMarkup` preserves the historical behavior. `original` matches Word's Original review view:
|
|
1385
|
+
* pending deletions remain visible and pending insertions stay hidden.
|
|
1386
|
+
*
|
|
1387
|
+
* This is a DocxEditor runtime option. It is not part of the Office.js object model.
|
|
1388
|
+
*
|
|
1389
|
+
* @public
|
|
1390
|
+
*/
|
|
1391
|
+
type RevisionTextView = 'allMarkup' | 'original';
|
|
1379
1392
|
|
|
1380
1393
|
/**
|
|
1381
1394
|
* The objects a context keeps addressable beyond the run that created them.
|
|
@@ -1403,6 +1416,8 @@ interface RuntimeSession {
|
|
|
1403
1416
|
readonly capabilities: AutomationCapabilities;
|
|
1404
1417
|
/** Who a comment this runtime writes is recorded as, or absent when it may not write one. */
|
|
1405
1418
|
readonly author?: string;
|
|
1419
|
+
/** Revision view used by standard Office-compatible text reads and searches. */
|
|
1420
|
+
readonly revisionTextView: RevisionTextView;
|
|
1406
1421
|
/** Identity for adoption checks. The session object itself. */
|
|
1407
1422
|
readonly id: object;
|
|
1408
1423
|
roots(): RootHandles;
|
|
@@ -1485,6 +1500,8 @@ interface ContextInternals {
|
|
|
1485
1500
|
* write refuses (`NotSupported`) rather than putting a made-up name in the file.
|
|
1486
1501
|
*/
|
|
1487
1502
|
readonly author?: string;
|
|
1503
|
+
/** Revision view used by standard Office-compatible text reads and searches. */
|
|
1504
|
+
readonly revisionTextView: RevisionTextView;
|
|
1488
1505
|
readonly queue: ActionQueue;
|
|
1489
1506
|
/**
|
|
1490
1507
|
* Identity of the runtime session behind this context.
|
|
@@ -2046,6 +2063,12 @@ interface CreateServerOptions {
|
|
|
2046
2063
|
* placeholder name into someone's document.
|
|
2047
2064
|
*/
|
|
2048
2065
|
readonly author?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Revision view for ordinary Office-compatible `text` loads and `search()` calls.
|
|
2068
|
+
*
|
|
2069
|
+
* Omitted means `allMarkup`.
|
|
2070
|
+
*/
|
|
2071
|
+
readonly revisionTextView?: RevisionTextView;
|
|
2049
2072
|
}
|
|
2050
2073
|
|
|
2051
|
-
export { type
|
|
2074
|
+
export { type RunCallback as $, ListItem as A, type BesideLocation as B, type CreateServerOptions as C, type DocxEditorServerRuntime as D, type LoadOption as E, Font as F, type LoadQueryOptions as G, type HeaderFooterType as H, type InsertLocation as I, NoteItemCollection as J, type NoteItemType as K, List as L, PageSetup as M, NoteItem as N, Paragraph as O, type PageOrientation as P, type ParagraphAlignment as Q, ParagraphCollection as R, type ParagraphInsertTextLocation as S, Range as T, RangeCollection as U, type RangeInsertTextLocation as V, RequestContext as W, Revision as X, RevisionCollection as Y, type RevisionTextView as Z, type RevisionType as _, Body as a, type SearchOptions as a0, Section as a1, SectionCollection as a2, type SelectionMode as a3, TrackedObjects as a4, isDocxEditorError as a5, type BodyInsertParagraphLocation as b, type BodyInsertTextLocation as c, Bookmark as d, BookmarkCollection as e, ClientObject as f, ClientResult as g, Comment as h, CommentCollection as i, CommentReply as j, CommentReplyCollection as k, ContentControl as l, ContentControlCollection as m, type ContentControlLockState as n, type ContentControlSubtype as o, type ContentControlValue as p, Document as q, type DocumentCapabilities as r, type DocumentLimits as s, type DocumentXmlLimits as t, type DocumentZipLimits as u, DocxEditorError as v, type DocxEditorErrorCode as w, type DocxEditorErrorInit as x, type DocxEditorRuntime as y, ListCollection as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docx-editor.dev/editor-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Document automation for DOCX: a batching object model that drives a document from a server or from an editor already open in a page",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@docx-editor.dev/core": "workspace:*",
|
|
30
31
|
"@microsoft/api-extractor": "^7.50.0",
|
|
31
32
|
"fflate": "^0.8.2",
|
|
32
33
|
"license-check-and-add": "^4.0.5"
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"publishConfig": {
|
|
74
75
|
"access": "public"
|
|
75
76
|
},
|
|
76
|
-
"
|
|
77
|
+
"peerDependencies": {
|
|
77
78
|
"@docx-editor.dev/core": "^2.8.0"
|
|
78
79
|
}
|
|
79
80
|
}
|