oasis-editor 0.0.130 → 0.0.131

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.
@@ -10,6 +10,8 @@ export interface ColorPickerProps {
10
10
  lastValue: string;
11
11
  tooltip: string;
12
12
  testId: string;
13
+ label?: string;
14
+ ribbonSize?: "normal" | "large";
13
15
  palette: ColorPalette;
14
16
  automaticLabel?: string;
15
17
  noColorLabel?: string;
@@ -5,6 +5,8 @@ export interface GridPickerProps {
5
5
  tooltip?: string;
6
6
  testId?: string;
7
7
  icon?: string;
8
+ label?: string;
9
+ ribbonSize?: "normal" | "large";
8
10
  maxRows?: number;
9
11
  maxCols?: number;
10
12
  }
@@ -4,6 +4,8 @@ export interface ToolbarSelectProps extends JSX.SelectHTMLAttributes<HTMLSelectE
4
4
  wide?: boolean;
5
5
  small?: boolean;
6
6
  tooltip?: string;
7
+ label?: string;
8
+ ribbonSize?: "normal" | "large";
7
9
  }
8
10
  /**
9
11
  * HTML select wrapper. Keeps the uncontrolled-with-sync pattern: the value is
@@ -7,6 +7,7 @@ export interface SplitButtonProps {
7
7
  tooltip?: string;
8
8
  rootClass?: string;
9
9
  rootActive?: boolean;
10
+ ribbonSize?: "normal" | "large";
10
11
  /** Main (left) button. */
11
12
  mainContent: JSX.Element;
12
13
  mainTestId?: string;
@@ -121,6 +121,9 @@ export interface SelectItem extends ToolbarItemBase {
121
121
  /** Leading "empty" option label, if any (e.g. font placeholder). */
122
122
  placeholder?: string;
123
123
  width?: "wide" | "small" | "default";
124
+ /** Caption shown above the control when `ribbonSize` is `"large"`. */
125
+ labelKey?: TranslationKey;
126
+ label?: string;
124
127
  }
125
128
  export interface StyleGalleryItem extends ToolbarItemBase {
126
129
  type: "styleGallery";
@@ -136,6 +139,9 @@ export interface ColorPickerItem extends ToolbarItemBase {
136
139
  command: CommandRef;
137
140
  palette?: ColorPalette;
138
141
  defaultValue: string;
142
+ /** Caption shown under the swatch when `ribbonSize` is `"large"`. */
143
+ labelKey?: TranslationKey;
144
+ label?: string;
139
145
  }
140
146
  export interface GridPickerItem extends ToolbarItemBase {
141
147
  type: "gridPicker";
@@ -143,6 +149,9 @@ export interface GridPickerItem extends ToolbarItemBase {
143
149
  command: CommandRef;
144
150
  maxRows?: number;
145
151
  maxCols?: number;
152
+ /** Caption shown under the icon when `ribbonSize` is `"large"`. */
153
+ labelKey?: TranslationKey;
154
+ label?: string;
146
155
  }
147
156
  export interface SeparatorItem {
148
157
  type: "separator";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.130",
3
+ "version": "0.0.131",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",