oasis-editor 0.0.323 → 0.0.324
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-DW6joMcq.js +1 -0
- package/dist/core/commands/cellRevisions.d.ts +30 -4
- package/dist/core/commands/reviewMarkup.d.ts +9 -7
- package/dist/defaultToolbar-DMTTdv2b.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 -3
- package/dist/ui/components/RevisionMarkupOverlay.d.ts +4 -2
- package/dist/ui/editorUiTypes.d.ts +6 -2
- package/package.json +1 -1
- package/dist/OasisEditorApp-Dbi6wWe6.js +0 -1
- package/dist/defaultToolbar-CzkxV5ty.js +0 -1
|
@@ -2,9 +2,10 @@ import { EditorState } from '../../core/model.js';
|
|
|
2
2
|
import { RevisionMarkupBox } from '../editorUiTypes.js';
|
|
3
3
|
import { CanvasLayoutSnapshot } from './CanvasLayoutSnapshot.js';
|
|
4
4
|
/**
|
|
5
|
-
* Project insert/delete/formatting text ranges and table/row/cell
|
|
6
|
-
* into highlight rectangles. Text ranges reuse the canvas layout
|
|
7
|
-
* per-line slot positions; table revisions use the union of their
|
|
5
|
+
* Project insert/delete/formatting text ranges and table/row/cell/section
|
|
6
|
+
* revisions into highlight rectangles. Text ranges reuse the canvas layout
|
|
7
|
+
* snapshot's per-line slot positions; table revisions use the union of their
|
|
8
|
+
* cells' boxes and section revisions the union of their paragraphs per page.
|
|
8
9
|
* Show Markup filters come from the live editor state, not from the document.
|
|
9
10
|
*/
|
|
10
11
|
export declare function computeRevisionMarkup(snapshot: CanvasLayoutSnapshot, state: EditorState): RevisionMarkupBox[];
|
|
@@ -7,7 +7,9 @@ export interface RevisionMarkupOverlayProps {
|
|
|
7
7
|
* Paints Word-style track-changes decorations over the canvas: a solid green
|
|
8
8
|
* underline for insertions, a red strike-through for deletions and a violet
|
|
9
9
|
* underline for formatting (property) revisions. Structural table-cell
|
|
10
|
-
* revisions (`variant === "cell"`) instead draw a full coloured cell outline
|
|
11
|
-
*
|
|
10
|
+
* revisions (`variant === "cell"`) instead draw a full coloured cell outline,
|
|
11
|
+
* and section-level `w:sectPrChange` revisions (`variant === "section"`) draw
|
|
12
|
+
* an outline around the section's paragraphs on each page. Presentational only
|
|
13
|
+
* — hit-testing and editing stay on the canvas underneath.
|
|
12
14
|
*/
|
|
13
15
|
export declare function RevisionMarkupOverlay(props: RevisionMarkupOverlayProps): JSX.Element;
|
|
@@ -60,8 +60,12 @@ export interface RevisionBox {
|
|
|
60
60
|
export interface RevisionMarkupBox {
|
|
61
61
|
revisionId: string;
|
|
62
62
|
type: "insert" | "delete" | "property" | "merge" | "grid";
|
|
63
|
-
/**
|
|
64
|
-
|
|
63
|
+
/**
|
|
64
|
+
* `cell` paints a full table-cell outline; `section` paints the union of a
|
|
65
|
+
* section's paragraphs on each page as a section-properties outline. Both
|
|
66
|
+
* replace the text underline.
|
|
67
|
+
*/
|
|
68
|
+
variant?: "cell" | "section";
|
|
65
69
|
left: number;
|
|
66
70
|
top: number;
|
|
67
71
|
width: number;
|