@docx-editor.dev/editor-api 2.3.1 → 2.4.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 +10 -0
- 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-BaHNZNu1.d.mts → server-BHhEJM8H.d.mts} +26 -25
- package/dist/{server-BaHNZNu1.d.ts → server-BHhEJM8H.d.ts} +26 -25
- package/package.json +2 -2
|
@@ -345,9 +345,10 @@ declare class BookmarkCollection extends HandleCollection<Bookmark> {
|
|
|
345
345
|
*
|
|
346
346
|
* The WHOLE upstream vocabulary, because a declaration says what a caller may be handed and a caller
|
|
347
347
|
* switching on it should not have to be told which subset this engine happens to produce. Seven of
|
|
348
|
-
* these actually occur — insert, delete, replace, the two property kinds and
|
|
349
|
-
*
|
|
350
|
-
*
|
|
348
|
+
* these actually occur as published objects — insert, delete, replace, the two property kinds and
|
|
349
|
+
* the two move halves. Structural cards whose exact Word subtype this API cannot name are omitted
|
|
350
|
+
* from `items`; collection-wide decisions still resolve every store-resolvable revision. See
|
|
351
|
+
* `compat/manifest.json`.
|
|
351
352
|
*/
|
|
352
353
|
type RevisionType = 'None' | 'Insert' | 'Delete' | 'Property' | 'ParagraphNumber' | 'DisplayField' | 'Reconcile' | 'Conflict' | 'Style' | 'Replace' | 'ParagraphProperty' | 'TableProperty' | 'SectionProperty' | 'StyleDefinition' | 'MovedFrom' | 'MovedTo' | 'CellInsertion' | 'CellDeletion' | 'CellMerge' | 'CellSplit' | 'ConflictInsert' | 'ConflictDelete';
|
|
353
354
|
/** What a comment and a reply both are: an author, a date, an id and a body. */
|
|
@@ -483,12 +484,11 @@ declare class CommentCollection extends HandleCollection<Comment> {
|
|
|
483
484
|
protected promised(label: string, nullable: boolean): Comment & PromisedItem;
|
|
484
485
|
}
|
|
485
486
|
/**
|
|
486
|
-
* One tracked change,
|
|
487
|
+
* One tracked change, published when this API can name its Word subtype.
|
|
487
488
|
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
* stall on such an item with nothing to read that explains why.
|
|
489
|
+
* Structural cards whose exact Word subtype cannot be typed — a row, a cell, a section, the table
|
|
490
|
+
* grid — are omitted from the collection rather than shipped as objects with an unpublishable
|
|
491
|
+
* `type`. That listing is not the collection decision set: see {@link RevisionCollection}.
|
|
492
492
|
*
|
|
493
493
|
* @public
|
|
494
494
|
*/
|
|
@@ -521,24 +521,24 @@ declare class Revision extends ModelObject implements PromisedItem {
|
|
|
521
521
|
/**
|
|
522
522
|
* The tracked changes on a document, story or range, as of the batch that loaded them.
|
|
523
523
|
*
|
|
524
|
-
*
|
|
525
|
-
*
|
|
524
|
+
* `items` omits structural cards whose Word subtype this API cannot name; see {@link Revision}.
|
|
525
|
+
* Collection-wide `acceptAll` / `rejectAll` still resolve every store-resolvable revision in this
|
|
526
|
+
* story and refuse atomically if any `readOnly` or otherwise unsupported revision remains.
|
|
526
527
|
*
|
|
527
528
|
* @public
|
|
528
529
|
*/
|
|
529
530
|
declare class RevisionCollection extends HandleCollection<Revision> {
|
|
530
531
|
#private;
|
|
531
532
|
/** @internal The pending decisions of one story. */
|
|
532
|
-
static of(context: RequestContext, label: string, owner: ObjectPath, body: AutomationHandle
|
|
533
|
+
static of(context: RequestContext, label: string, owner: ObjectPath, body: AutomationHandle): RevisionCollection;
|
|
533
534
|
private constructor();
|
|
534
535
|
/**
|
|
535
|
-
* Keep every change, as ONE decision and one undo unit.
|
|
536
|
+
* Keep every change in this story, as ONE decision and one undo unit.
|
|
536
537
|
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
* pending changes.
|
|
538
|
+
* Resolves every store-resolvable revision in the story, including complete tracked rows
|
|
539
|
+
* omitted from `items`. Refuses the sync outright where any `readOnly` or otherwise
|
|
540
|
+
* unsupported revision remains, rather than reporting the story as reviewed while pending
|
|
541
|
+
* changes remain.
|
|
542
542
|
*/
|
|
543
543
|
acceptAll(): void;
|
|
544
544
|
/** Undo every change, likewise as one decision. */
|
|
@@ -1298,12 +1298,12 @@ declare class Document extends ModelObject {
|
|
|
1298
1298
|
/** The comments anchored in the main story, in document order. */
|
|
1299
1299
|
get comments(): CommentCollection;
|
|
1300
1300
|
/**
|
|
1301
|
-
* The tracked changes of the main story that
|
|
1301
|
+
* The tracked changes of the main-body story that this API can publish as typed objects.
|
|
1302
1302
|
*
|
|
1303
|
-
* Structural
|
|
1304
|
-
*
|
|
1305
|
-
*
|
|
1306
|
-
*
|
|
1303
|
+
* Structural cards whose exact Word subtype cannot be named are omitted from `items`.
|
|
1304
|
+
* `acceptAll` / `rejectAll` still resolve every store-resolvable revision in the main body
|
|
1305
|
+
* and refuse atomically if any `readOnly` or otherwise unsupported revision remains. Header,
|
|
1306
|
+
* footer, and note revisions live on those stories' own `Body.revisions` collections.
|
|
1307
1307
|
*/
|
|
1308
1308
|
get revisions(): RevisionCollection;
|
|
1309
1309
|
/**
|
|
@@ -1965,11 +1965,12 @@ declare class Body extends ModelObject {
|
|
|
1965
1965
|
/** The comments anchored in this story, in document order. Replies hang off the comment. */
|
|
1966
1966
|
getComments(): CommentCollection;
|
|
1967
1967
|
/**
|
|
1968
|
-
* The tracked changes in this story that
|
|
1968
|
+
* The tracked changes in this story that this API can publish as typed objects, in document order.
|
|
1969
1969
|
*
|
|
1970
1970
|
* DocxEditor's own accessor: upstream reaches revisions from the document, and this story-scoped
|
|
1971
|
-
*
|
|
1972
|
-
* `compat/manifest.json`.
|
|
1971
|
+
* collection is what makes a header's, footer's, or note's changes reachable at all. Recorded in
|
|
1972
|
+
* `compat/manifest.json`. `items` may omit structural cards; collection-wide decisions still
|
|
1973
|
+
* resolve every store-resolvable revision in this story.
|
|
1973
1974
|
*/
|
|
1974
1975
|
get revisions(): RevisionCollection;
|
|
1975
1976
|
/** Every occurrence of `searchText` in this story, as ranges, in reading order. */
|
|
@@ -345,9 +345,10 @@ declare class BookmarkCollection extends HandleCollection<Bookmark> {
|
|
|
345
345
|
*
|
|
346
346
|
* The WHOLE upstream vocabulary, because a declaration says what a caller may be handed and a caller
|
|
347
347
|
* switching on it should not have to be told which subset this engine happens to produce. Seven of
|
|
348
|
-
* these actually occur — insert, delete, replace, the two property kinds and
|
|
349
|
-
*
|
|
350
|
-
*
|
|
348
|
+
* these actually occur as published objects — insert, delete, replace, the two property kinds and
|
|
349
|
+
* the two move halves. Structural cards whose exact Word subtype this API cannot name are omitted
|
|
350
|
+
* from `items`; collection-wide decisions still resolve every store-resolvable revision. See
|
|
351
|
+
* `compat/manifest.json`.
|
|
351
352
|
*/
|
|
352
353
|
type RevisionType = 'None' | 'Insert' | 'Delete' | 'Property' | 'ParagraphNumber' | 'DisplayField' | 'Reconcile' | 'Conflict' | 'Style' | 'Replace' | 'ParagraphProperty' | 'TableProperty' | 'SectionProperty' | 'StyleDefinition' | 'MovedFrom' | 'MovedTo' | 'CellInsertion' | 'CellDeletion' | 'CellMerge' | 'CellSplit' | 'ConflictInsert' | 'ConflictDelete';
|
|
353
354
|
/** What a comment and a reply both are: an author, a date, an id and a body. */
|
|
@@ -483,12 +484,11 @@ declare class CommentCollection extends HandleCollection<Comment> {
|
|
|
483
484
|
protected promised(label: string, nullable: boolean): Comment & PromisedItem;
|
|
484
485
|
}
|
|
485
486
|
/**
|
|
486
|
-
* One tracked change,
|
|
487
|
+
* One tracked change, published when this API can name its Word subtype.
|
|
487
488
|
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
* stall on such an item with nothing to read that explains why.
|
|
489
|
+
* Structural cards whose exact Word subtype cannot be typed — a row, a cell, a section, the table
|
|
490
|
+
* grid — are omitted from the collection rather than shipped as objects with an unpublishable
|
|
491
|
+
* `type`. That listing is not the collection decision set: see {@link RevisionCollection}.
|
|
492
492
|
*
|
|
493
493
|
* @public
|
|
494
494
|
*/
|
|
@@ -521,24 +521,24 @@ declare class Revision extends ModelObject implements PromisedItem {
|
|
|
521
521
|
/**
|
|
522
522
|
* The tracked changes on a document, story or range, as of the batch that loaded them.
|
|
523
523
|
*
|
|
524
|
-
*
|
|
525
|
-
*
|
|
524
|
+
* `items` omits structural cards whose Word subtype this API cannot name; see {@link Revision}.
|
|
525
|
+
* Collection-wide `acceptAll` / `rejectAll` still resolve every store-resolvable revision in this
|
|
526
|
+
* story and refuse atomically if any `readOnly` or otherwise unsupported revision remains.
|
|
526
527
|
*
|
|
527
528
|
* @public
|
|
528
529
|
*/
|
|
529
530
|
declare class RevisionCollection extends HandleCollection<Revision> {
|
|
530
531
|
#private;
|
|
531
532
|
/** @internal The pending decisions of one story. */
|
|
532
|
-
static of(context: RequestContext, label: string, owner: ObjectPath, body: AutomationHandle
|
|
533
|
+
static of(context: RequestContext, label: string, owner: ObjectPath, body: AutomationHandle): RevisionCollection;
|
|
533
534
|
private constructor();
|
|
534
535
|
/**
|
|
535
|
-
* Keep every change, as ONE decision and one undo unit.
|
|
536
|
+
* Keep every change in this story, as ONE decision and one undo unit.
|
|
536
537
|
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
* pending changes.
|
|
538
|
+
* Resolves every store-resolvable revision in the story, including complete tracked rows
|
|
539
|
+
* omitted from `items`. Refuses the sync outright where any `readOnly` or otherwise
|
|
540
|
+
* unsupported revision remains, rather than reporting the story as reviewed while pending
|
|
541
|
+
* changes remain.
|
|
542
542
|
*/
|
|
543
543
|
acceptAll(): void;
|
|
544
544
|
/** Undo every change, likewise as one decision. */
|
|
@@ -1298,12 +1298,12 @@ declare class Document extends ModelObject {
|
|
|
1298
1298
|
/** The comments anchored in the main story, in document order. */
|
|
1299
1299
|
get comments(): CommentCollection;
|
|
1300
1300
|
/**
|
|
1301
|
-
* The tracked changes of the main story that
|
|
1301
|
+
* The tracked changes of the main-body story that this API can publish as typed objects.
|
|
1302
1302
|
*
|
|
1303
|
-
* Structural
|
|
1304
|
-
*
|
|
1305
|
-
*
|
|
1306
|
-
*
|
|
1303
|
+
* Structural cards whose exact Word subtype cannot be named are omitted from `items`.
|
|
1304
|
+
* `acceptAll` / `rejectAll` still resolve every store-resolvable revision in the main body
|
|
1305
|
+
* and refuse atomically if any `readOnly` or otherwise unsupported revision remains. Header,
|
|
1306
|
+
* footer, and note revisions live on those stories' own `Body.revisions` collections.
|
|
1307
1307
|
*/
|
|
1308
1308
|
get revisions(): RevisionCollection;
|
|
1309
1309
|
/**
|
|
@@ -1965,11 +1965,12 @@ declare class Body extends ModelObject {
|
|
|
1965
1965
|
/** The comments anchored in this story, in document order. Replies hang off the comment. */
|
|
1966
1966
|
getComments(): CommentCollection;
|
|
1967
1967
|
/**
|
|
1968
|
-
* The tracked changes in this story that
|
|
1968
|
+
* The tracked changes in this story that this API can publish as typed objects, in document order.
|
|
1969
1969
|
*
|
|
1970
1970
|
* DocxEditor's own accessor: upstream reaches revisions from the document, and this story-scoped
|
|
1971
|
-
*
|
|
1972
|
-
* `compat/manifest.json`.
|
|
1971
|
+
* collection is what makes a header's, footer's, or note's changes reachable at all. Recorded in
|
|
1972
|
+
* `compat/manifest.json`. `items` may omit structural cards; collection-wide decisions still
|
|
1973
|
+
* resolve every store-resolvable revision in this story.
|
|
1973
1974
|
*/
|
|
1974
1975
|
get revisions(): RevisionCollection;
|
|
1975
1976
|
/** Every occurrence of `searchText` in this story, as ranges, in reading order. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docx-editor.dev/editor-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@docx-editor.dev/core": "^2.
|
|
76
|
+
"@docx-editor.dev/core": "^2.4.0"
|
|
77
77
|
}
|
|
78
78
|
}
|