oasis-editor 0.0.318 → 0.0.320

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.
@@ -30,6 +30,8 @@ export interface OasisEditorAppUiProps {
30
30
  showMenubar?: boolean;
31
31
  showToolbar?: boolean;
32
32
  showOutline?: boolean;
33
+ /** Horizontal ruler above the page (document shell). Defaults to `showChrome`. */
34
+ showRuler?: boolean;
33
35
  locale?: "pt-BR" | "en";
34
36
  viewportHeight?: number | string;
35
37
  class?: string;
@@ -23,6 +23,7 @@ export interface EditorWorkspaceChrome {
23
23
  showMenubar: () => boolean;
24
24
  showToolbar: () => boolean;
25
25
  showOutline: () => boolean;
26
+ showRuler: () => boolean;
26
27
  toolbarView: () => ToolbarViewMode;
27
28
  toolbarLayout: () => ToolbarLayoutMode;
28
29
  }
@@ -19,6 +19,7 @@ export interface EditorUiOptions {
19
19
  showMenubar: () => boolean;
20
20
  showToolbar: () => boolean;
21
21
  showOutline: () => boolean;
22
+ showRuler: () => boolean;
22
23
  /** Flip the outline panel visibility through the host UI overrides. */
23
24
  toggleOutline: () => void;
24
25
  toolbarView: () => ToolbarViewMode;
@@ -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
@@ -18,6 +18,7 @@ export interface ShellProps {
18
18
  showMenubar: boolean;
19
19
  showToolbar: boolean;
20
20
  showOutline: () => boolean;
21
+ showRuler: boolean;
21
22
  toolbarView: ToolbarViewMode;
22
23
  toolbarLayout: ToolbarLayoutMode;
23
24
  isReadOnly: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.318",
3
+ "version": "0.0.320",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {