oasis-editor 0.0.281 → 0.0.283

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.
@@ -34,6 +34,16 @@ export interface RibbonGroupWidth {
34
34
  * supplied, contextual tabs are omitted (used for static/enumeration contexts).
35
35
  */
36
36
  export declare function isRibbonTabVisible(id: RibbonTabId, api?: Pick<ToolbarActionApi, "commands">): boolean;
37
+ /**
38
+ * Resolves the tab a context snapshot should select, or `null` to keep the
39
+ * current tab. Entering a contextual context wins over the tab the user was
40
+ * on (Word activates the contextual tab); leaving the currently active
41
+ * contextual context falls back to Home so a stale panel is never shown.
42
+ *
43
+ * Pure so the policy is testable without mounting the Toolbar: `prev` is the
44
+ * previous snapshot, `current` the new one, both keyed by gating command.
45
+ */
46
+ export declare function resolveContextualTabTransition(entries: readonly (readonly [RibbonTabId, string])[], activeTab: RibbonTabId, prev: ReadonlyMap<string, boolean> | undefined, current: ReadonlyMap<string, boolean>): RibbonTabId | null;
37
47
  export declare function buildRibbonTabDefinitions(t: TranslateFn, api?: Pick<ToolbarActionApi, "commands">, items?: ToolbarItem[]): RibbonTabDefinition[];
38
48
  export declare const DEFAULT_RIBBON_TAB: RibbonTabId;
39
49
  export declare const DEFAULT_RIBBON_GROUP = "general";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.281",
3
+ "version": "0.0.283",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {