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.
@@ -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 revisions
6
- * into highlight rectangles. Text ranges reuse the canvas layout snapshot's
7
- * per-line slot positions; table revisions use the union of their cells' boxes.
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
- * Presentational only — hit-testing and editing stay on the canvas underneath.
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
- /** `cell` paints a full table-cell outline instead of a text underline. */
64
- variant?: "cell";
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.323",
3
+ "version": "0.0.324",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {