oasis-editor 0.0.317 → 0.0.318
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/dist/OasisEditorApp-xTZIxGzE.js +1 -0
- package/dist/core/commands/cellRevisions.d.ts +26 -13
- package/dist/core/commands/reviewMarkup.d.ts +2 -2
- package/dist/defaultToolbar-Cl6nWoAU.js +1 -0
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/pt-BR.d.ts +1 -0
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/canvas/CanvasRevisionGeometry.d.ts +4 -4
- package/dist/ui/editorUiTypes.d.ts +1 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-DpYlS9_g.js +0 -1
- package/dist/defaultToolbar-bhURnxt1.js +0 -1
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import { EditorState } from '../model.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* (`w:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Structural or property revisions attached to a table, one of its rows, or
|
|
4
|
+
* one of its cells (`w:tblPrChange`/`w:tblGridChange`, `w:trPrChange`,
|
|
5
|
+
* `w:tcPr` insert/delete/merge and `w:tcPrChange`). These live on the node's
|
|
6
|
+
* `style`, not on any run, so every surface that lists, marks or navigates
|
|
7
|
+
* changes needs this walker. Section-level `w:sectPrChange` and pending merge
|
|
8
|
+
* state remain preservation-only here.
|
|
8
9
|
*/
|
|
9
|
-
export
|
|
10
|
+
export type TableRevisionScope = "table" | "row" | "cell";
|
|
11
|
+
export interface TableRevisionDescriptor {
|
|
10
12
|
id: string;
|
|
11
|
-
type: "insert" | "delete" | "merge" | "property";
|
|
13
|
+
type: "insert" | "delete" | "merge" | "property" | "grid";
|
|
12
14
|
author: string;
|
|
13
15
|
date: number;
|
|
14
|
-
|
|
16
|
+
scope: TableRevisionScope;
|
|
17
|
+
tableId: string;
|
|
18
|
+
/** Document row index; absent for table-scoped revisions. */
|
|
19
|
+
rowIndex?: number;
|
|
20
|
+
/** Cell index; absent for row- and table-scoped revisions. */
|
|
21
|
+
cellIndex?: number;
|
|
22
|
+
/** Every paragraph id under this scope (nested tables included). */
|
|
15
23
|
paragraphIds: string[];
|
|
16
|
-
/** Concatenated
|
|
24
|
+
/** Concatenated text, used as the Reviewing Pane snippet. */
|
|
17
25
|
snippet: string;
|
|
18
26
|
}
|
|
27
|
+
/** Backwards-compatible name for the cell-scoped subset. */
|
|
28
|
+
export type CellRevisionDescriptor = TableRevisionDescriptor;
|
|
19
29
|
/**
|
|
20
|
-
* Every
|
|
21
|
-
* by id. Unfiltered by Show Markup: the Reviewing Pane and
|
|
22
|
-
* their own visibility rules, while change bars
|
|
30
|
+
* Every table-level revision in the document, in document order,
|
|
31
|
+
* de-duplicated by id. Unfiltered by Show Markup: the Reviewing Pane and
|
|
32
|
+
* navigation apply their own visibility rules, while painting and change bars
|
|
33
|
+
* filter at the call site through `isRevisionMarkupShown`.
|
|
23
34
|
*/
|
|
24
|
-
export declare function
|
|
35
|
+
export declare function collectTableRevisions(state: EditorState): TableRevisionDescriptor[];
|
|
36
|
+
/** Cell-scoped revisions only (the Delivery 137 surface). */
|
|
37
|
+
export declare function collectCellRevisions(state: EditorState): TableRevisionDescriptor[];
|
|
@@ -77,8 +77,8 @@ export declare function reviewDisplayProjection(mode: ReviewDisplayMode | undefi
|
|
|
77
77
|
/**
|
|
78
78
|
* Paragraph ids that should carry a Simple Markup change bar: every paragraph
|
|
79
79
|
* in the raw document with at least one visible insert/delete text revision,
|
|
80
|
-
* run-level formatting (property) revision, or a revised table
|
|
81
|
-
* covers each paragraph
|
|
80
|
+
* run-level formatting (property) revision, or a revised table/row/cell (the
|
|
81
|
+
* bar covers each paragraph under that scope). Show Markup category and reviewer
|
|
82
82
|
* filters are applied through `isRevisionMarkupShown`, so hiding insertions,
|
|
83
83
|
* deletions, formatting or a reviewer removes the matching bar. Endnotes have
|
|
84
84
|
* no editable zone and are not walked.
|