oasis-editor 0.0.228 → 0.0.229
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-Dkk2-Ed0.js +1 -0
- package/dist/core/plugin.d.ts +4 -1
- package/dist/core/pluginUiTypes.d.ts +4 -1
- package/dist/defaultToolbar-6IjbWowg.js +1 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/pt-BR.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- 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/components/Toolbar/primitives/SplitButton.d.ts +1 -0
- package/dist/ui/components/Toolbar/primitives/popoverBranch.d.ts +7 -0
- package/dist/ui/components/Toolbar/primitives/useDismiss.d.ts +3 -1
- package/dist/ui/components/Toolbar/ribbon/RibbonGroup.d.ts +2 -1
- package/dist/ui/components/Toolbar/ribbon/measureRibbonGroups.d.ts +8 -0
- package/dist/ui/components/Toolbar/ribbon/ribbonModel.d.ts +14 -1
- package/dist/ui/components/Toolbar/schema/items.d.ts +13 -4
- package/dist/ui/utils/IconManager.d.ts +3 -1
- package/package.json +7 -2
- package/dist/OasisEditorApp-CpKYMW3z.js +0 -1
- package/dist/defaultToolbar-Em7_omZA.js +0 -1
package/dist/core/plugin.d.ts
CHANGED
|
@@ -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, RibbonRow, RibbonSize, RibbonTabId } from './pluginUiTypes.js';
|
|
4
|
+
import { RibbonGroupResizePolicy, RibbonGroupLayout, 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. */
|
|
@@ -90,9 +90,12 @@ export interface PluginAction {
|
|
|
90
90
|
icon?: string;
|
|
91
91
|
tab?: RibbonTabId;
|
|
92
92
|
group?: string;
|
|
93
|
+
/** Human-readable group label, localized by the contributing plugin. */
|
|
94
|
+
groupLabel?: string;
|
|
93
95
|
row?: RibbonRow;
|
|
94
96
|
ribbonSize?: RibbonSize;
|
|
95
97
|
ribbonGroupResize?: RibbonGroupResizePolicy;
|
|
98
|
+
ribbonGroupLayout?: RibbonGroupLayout;
|
|
96
99
|
order?: number;
|
|
97
100
|
}
|
|
98
101
|
/** Menu item contribution extending {@link PluginAction} with path, shortcut, and separator. */
|
|
@@ -7,11 +7,14 @@ export type RibbonTabId = (typeof RIBBON_TABS)[number];
|
|
|
7
7
|
* UI-agnostic: the value is the command id whose `isActive` state gates the tab.
|
|
8
8
|
*/
|
|
9
9
|
export declare const CONTEXTUAL_TABS: Partial<Record<RibbonTabId, string>>;
|
|
10
|
-
export type RibbonRow = 1 | 2;
|
|
10
|
+
export type RibbonRow = 1 | 2 | 3;
|
|
11
|
+
/** Three rows are opt-in; existing two-row contributions retain their layout. */
|
|
12
|
+
export type RibbonGroupLayout = "two-rows" | "three-rows";
|
|
11
13
|
export type RibbonSize = "normal" | "large";
|
|
12
14
|
export type RibbonGroupResizeState = "full" | "compact" | "collapsed";
|
|
13
15
|
export interface RibbonGroupResizePolicy {
|
|
14
16
|
states?: RibbonGroupResizeState[];
|
|
17
|
+
/** Lower priorities reduce first; compact states precede group collapse. */
|
|
15
18
|
priority?: number;
|
|
16
19
|
compactMinWidth?: number;
|
|
17
20
|
collapsedMinWidth?: number;
|