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.
- package/dist/{OasisEditorApp-BQvsqccA.js → OasisEditorApp-Dn2I2b-M.js} +1 -1
- package/dist/{index-CX5iCo8O.js → index-BXo_oqOC.js} +194 -93
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/components/Toolbar/primitives/ColorPicker.d.ts +2 -0
- package/dist/ui/components/Toolbar/primitives/GridPicker.d.ts +2 -0
- package/dist/ui/components/Toolbar/primitives/Select.d.ts +2 -0
- package/dist/ui/components/Toolbar/primitives/SplitButton.d.ts +1 -0
- package/dist/ui/components/Toolbar/schema/items.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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
|
|
@@ -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";
|