oasis-editor 0.0.310 → 0.0.312
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-DkX3YBPU.js → OasisEditorApp-BPLSxH4R.js} +1 -1
- package/dist/core/commands/reviewMarkup.d.ts +12 -8
- package/dist/{defaultToolbar-DJ5fanM6.js → defaultToolbar--kHFg3Dr.js} +1 -1
- 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 +5 -5
- package/dist/ui/components/RevisionMarkupOverlay.d.ts +3 -2
- package/dist/ui/editorUiTypes.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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,
|
|
6
|
-
* canvas layout snapshot's per-line slot positions (the same
|
|
7
|
-
* comment highlights and the selection geometry use). One box per
|
|
8
|
-
*
|
|
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
|
|
9
|
-
*
|
|
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
|
|
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;
|