oasis-editor 0.0.310 → 0.0.311

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,11 +2,11 @@ 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 revision ranges into highlight rectangles, reusing the
6
- * canvas layout snapshot's per-line slot positions (the same machinery the
7
- * comment highlights and the selection geometry use). One box per covered line;
8
- * property/formatting and merge/grid revisions are not painted. Show Markup
9
- * filters come from the live editor state, not from the document.
5
+ * Project insert/delete/formatting revision ranges into highlight rectangles,
6
+ * reusing the canvas layout snapshot's per-line slot positions (the same
7
+ * machinery the comment highlights and the selection geometry use). One box per
8
+ * covered line; merge/grid and structural table revisions are not painted.
9
+ * Show Markup filters come from the live editor state, not from the document.
10
10
  */
11
11
  export declare function computeRevisionMarkup(snapshot: CanvasLayoutSnapshot, state: EditorState): RevisionMarkupBox[];
12
12
  export type { RevisionMarkupBox };
@@ -5,7 +5,8 @@ export interface RevisionMarkupOverlayProps {
5
5
  }
6
6
  /**
7
7
  * Paints Word-style track-changes decorations over the canvas: a solid green
8
- * underline for insertions and a red strike-through for deletions. Presentational
9
- * only — hit-testing and editing stay on the canvas surface underneath.
8
+ * underline for insertions, a red strike-through for deletions and a violet
9
+ * underline for formatting (property) revisions. Presentational only —
10
+ * hit-testing and editing stay on the canvas surface underneath.
10
11
  */
11
12
  export declare function RevisionMarkupOverlay(props: RevisionMarkupOverlayProps): JSX.Element;
@@ -56,10 +56,10 @@ export interface RevisionBox {
56
56
  left: number;
57
57
  top: number;
58
58
  }
59
- /** One decoration rectangle over an inserted/deleted tracked range. */
59
+ /** One decoration rectangle over a tracked insert/delete/formatting range. */
60
60
  export interface RevisionMarkupBox {
61
61
  revisionId: string;
62
- type: "insert" | "delete";
62
+ type: "insert" | "delete" | "property";
63
63
  left: number;
64
64
  top: number;
65
65
  width: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.310",
3
+ "version": "0.0.311",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {