oasis-editor 0.0.317 → 0.0.319
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-Demz2a3k.js +1 -0
- package/dist/core/commands/cellRevisions.d.ts +26 -13
- package/dist/core/commands/reviewMarkup.d.ts +2 -2
- package/dist/defaultToolbar-Dp4130ql.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 -4
- package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +2 -0
- package/dist/ui/editorUiTypes.d.ts +1 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-DpYlS9_g.js +0 -1
- package/dist/defaultToolbar-bhURnxt1.js +0 -1
|
@@ -2,10 +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
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Markup filters come from the live editor state, not from the document.
|
|
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.
|
|
8
|
+
* Show Markup filters come from the live editor state, not from the document.
|
|
9
9
|
*/
|
|
10
10
|
export declare function computeRevisionMarkup(snapshot: CanvasLayoutSnapshot, state: EditorState): RevisionMarkupBox[];
|
|
11
11
|
export type { RevisionMarkupBox };
|
|
@@ -61,6 +61,8 @@ type MergedRibbonGroupResizePolicy = Omit<Required<RibbonGroupResizePolicy>, "la
|
|
|
61
61
|
export declare function ribbonGroupLabel(group: string, t: TranslateFn): string;
|
|
62
62
|
/** Filter reactive visibility before grouping, without hiding disabled actions. */
|
|
63
63
|
export declare function visibleRibbonItems(items: ToolbarItem[], api: ToolbarActionApi): ToolbarItem[];
|
|
64
|
+
/** Separators only separate actions; they never create a group by themselves. */
|
|
65
|
+
export declare function trimRibbonSeparators(items: ToolbarItem[]): ToolbarItem[];
|
|
64
66
|
/**
|
|
65
67
|
* True when two {@link visibleRibbonItems} results describe the same
|
|
66
68
|
* composition: the same actions, in the same order, with the same nested
|
|
@@ -59,7 +59,7 @@ export interface RevisionBox {
|
|
|
59
59
|
/** One decoration rectangle over a tracked insert/delete/formatting range. */
|
|
60
60
|
export interface RevisionMarkupBox {
|
|
61
61
|
revisionId: string;
|
|
62
|
-
type: "insert" | "delete" | "property" | "merge";
|
|
62
|
+
type: "insert" | "delete" | "property" | "merge" | "grid";
|
|
63
63
|
/** `cell` paints a full table-cell outline instead of a text underline. */
|
|
64
64
|
variant?: "cell";
|
|
65
65
|
left: number;
|