oasis-editor 0.0.333 → 0.0.335

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.
@@ -1,7 +1,7 @@
1
1
  import { JSX } from 'solid-js';
2
2
  import { EditorState } from './model.js';
3
3
  import { CommandRef } from './commands/CommandRef.js';
4
- import { RibbonGroupResizePolicy, RibbonGroupLayout, RibbonRow, RibbonSize, RibbonTabId } from './pluginUiTypes.js';
4
+ import { RibbonGroupResizePolicy, RibbonGroupLayout, RibbonGroupGrid, RibbonRow, RibbonSize, RibbonTabId } from './pluginUiTypes.js';
5
5
  /** Function signature for unsubscribing from a subscription. */
6
6
  export type Unsubscribe = () => void;
7
7
  /** Context passed to command execution and refresh callbacks. */
@@ -96,6 +96,7 @@ export interface PluginAction {
96
96
  ribbonSize?: RibbonSize;
97
97
  ribbonGroupResize?: RibbonGroupResizePolicy;
98
98
  ribbonGroupLayout?: RibbonGroupLayout;
99
+ ribbonGroupGrid?: RibbonGroupGrid;
99
100
  order?: number;
100
101
  }
101
102
  /** Menu item contribution extending {@link PluginAction} with path, shortcut, and separator. */
@@ -15,6 +15,12 @@ export type RibbonRow = 1 | 2 | 3;
15
15
  * "large action + small-command stack" shape (stacked rows, icon-led inline).
16
16
  */
17
17
  export type RibbonGroupLayout = "two-rows" | "three-rows" | "compact";
18
+ /** Intrinsic shared columns for intentional paired action rows. */
19
+ export interface RibbonGroupGrid {
20
+ columns: number;
21
+ /** Rows occupied by one action spanning the whole grid. */
22
+ fullRows?: readonly RibbonRow[];
23
+ }
18
24
  export type RibbonSize = "normal" | "large";
19
25
  export type RibbonGroupResizeState = "full" | "compact" | "collapsed";
20
26
  export interface RibbonGroupResizePolicy {