oasis-editor 0.0.321 → 0.0.323
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-DvPNUkIU.js → OasisEditorApp-Dbi6wWe6.js} +1 -1
- package/dist/core/commands/reviewMarkup.d.ts +19 -0
- package/dist/defaultToolbar-CzkxV5ty.js +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/canvas/CanvasChangeBarGeometry.d.ts +12 -8
- package/dist/ui/components/Toolbar/ToolbarOverflowManager.d.ts +4 -0
- package/package.json +1 -1
- package/dist/defaultToolbar-COMYxry_.js +0 -1
|
@@ -84,6 +84,25 @@ export declare function reviewDisplayProjection(mode: ReviewDisplayMode | undefi
|
|
|
84
84
|
* no editable zone and are not walked.
|
|
85
85
|
*/
|
|
86
86
|
export declare function collectChangeBarParagraphIds(state: EditorState): Set<string>;
|
|
87
|
+
/** A visible revision's extent in the accepted (final) text of a paragraph. */
|
|
88
|
+
export interface ChangeBarRange {
|
|
89
|
+
start: number;
|
|
90
|
+
end: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Per-paragraph extents of visible revisions, expressed in *final-text* offsets
|
|
94
|
+
* — the coordinate space of Simple Markup's projected layout. A `null` value
|
|
95
|
+
* means the whole paragraph is changed (a table/row/cell/grid revision covers
|
|
96
|
+
* every line), while an array marks only the lines overlapping those ranges.
|
|
97
|
+
*
|
|
98
|
+
* Inserted and property-revision runs survive the "final" projection, so their
|
|
99
|
+
* offsets are used directly. Deleted runs are removed from the projection, so
|
|
100
|
+
* they contribute a narrow marker at the join point instead: the line the text
|
|
101
|
+
* disappeared from is still marked. Show Markup filters are applied through
|
|
102
|
+
* `isRevisionMarkupShown`, keeping this in lockstep with
|
|
103
|
+
* `collectChangeBarParagraphIds`.
|
|
104
|
+
*/
|
|
105
|
+
export declare function collectChangeBarRanges(state: EditorState): Map<string, ChangeBarRange[] | null>;
|
|
87
106
|
/** The explicit author allow-list, or null when all authors are shown. */
|
|
88
107
|
export declare function visibleMarkupAuthors(state: EditorState): string[] | null;
|
|
89
108
|
/** Flip one markup section; returns the same state when nothing changes. */
|