@openfin/workspace-platform 22.5.4 → 22.5.5

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.
@@ -58,12 +58,14 @@ export declare enum PageChannelAction {
58
58
  export declare enum CompanionDockChannelAction {
59
59
  UpdateFavoriteEntries = "update-favorite-entries",
60
60
  UpdateContentMenu = "update-content-menu",
61
- NavigateContentMenu = "navigate-content-menu"
61
+ NavigateContentMenu = "navigate-content-menu",
62
+ MoreMenuCustomOptionClicked = "more-menu-custom-option-clicked"
62
63
  }
63
64
  export declare const BrowserChannelAction: {
64
65
  UpdateFavoriteEntries: CompanionDockChannelAction.UpdateFavoriteEntries;
65
66
  UpdateContentMenu: CompanionDockChannelAction.UpdateContentMenu;
66
67
  NavigateContentMenu: CompanionDockChannelAction.NavigateContentMenu;
68
+ MoreMenuCustomOptionClicked: CompanionDockChannelAction.MoreMenuCustomOptionClicked;
67
69
  GetPages: PageChannelAction.GetPages;
68
70
  GetActivePageForWindow: PageChannelAction.GetActivePageForWindow;
69
71
  AttachPagesToWindow: PageChannelAction.AttachPagesToWindow;
@@ -1 +1,7 @@
1
- export {};
1
+ /**
2
+ * Payload for more menu custom option actions
3
+ */
4
+ export interface MoreMenuCustomOptionPayload {
5
+ action: string;
6
+ customData?: any;
7
+ }
@@ -2,6 +2,7 @@ import type { OpenFin } from '@openfin/core';
2
2
  import { BookmarkDockEntryPayload, LaunchDockEntryPayload } from '../../../client-api-platform/src/index';
3
3
  import { Dock3Config } from '../../../dock3/src/shapes';
4
4
  import { Async, CamelCase } from '../../../dock3/src/utils';
5
+ import { MoreMenuCustomOptionPayload } from './protocol';
5
6
  import { Dock3ChannelProvider, Dock3ChannelProviderChannelActions } from './protocol';
6
7
  type InternalDock3ChannelActions = 'ready';
7
8
  type Dock3ProviderAPI = {
@@ -22,6 +23,11 @@ export declare class Dock3Provider {
22
23
  */
23
24
  get ready(): Promise<void>;
24
25
  bookmarkContentMenuEntry(payload: BookmarkDockEntryPayload): Promise<void>;
26
+ /**
27
+ * Override this method to handle clicks on custom menu items.
28
+ * Called when user clicks on a custom menu option.
29
+ */
30
+ moreMenuCustomOptionClicked(payload: MoreMenuCustomOptionPayload): Promise<void>;
25
31
  /**
26
32
  * Read-only access to the current configuration of the Dock3Provider.
27
33
  */
@@ -1,5 +1,6 @@
1
1
  import type { OpenFin } from '@openfin/core';
2
2
  import { WorkspaceButton } from '../../../client-api/src/dock';
3
+ import { BaseCustomDropdownItem } from '../../../client-api/src/shapes';
3
4
  import { ContentMenuEntry, DockEntry, TaskbarIcon } from '../../../client-api-platform/src/shapes';
4
5
  export type { Dock3Provider, Dock3ConstructorOverride } from '../api/provider';
5
6
  export type Dock3Button = WorkspaceButton | 'contentMenu' | 'manageWorkspaces';
@@ -57,6 +58,14 @@ export interface Dock3Config {
57
58
  */
58
59
  skipDialog?: boolean;
59
60
  };
61
+ /**
62
+ * Custom menu option to display in the dock more menu.
63
+ * Configuration for customizable menu items that will appear in the dock context menu.
64
+ */
65
+ moreMenuCustomOption?: {
66
+ label: string;
67
+ options: BaseCustomDropdownItem[];
68
+ };
60
69
  };
61
70
  manageWorkspaces?: {
62
71
  newWindow?: {
@@ -38,6 +38,12 @@
38
38
  }
39
39
  ],
40
40
  "dexie": [
41
+ {
42
+ "type": "root-implicit",
43
+ "version": "^4.0.11",
44
+ "packageName": "common/package.json",
45
+ "issuer": "common/src/api/pages/idb.ts"
46
+ },
41
47
  {
42
48
  "type": "explicit",
43
49
  "version": "^4.0.11",
@@ -50,12 +56,6 @@
50
56
  "packageName": "dock3/package.json",
51
57
  "issuer": "dock3/src/api/idb.ts"
52
58
  },
53
- {
54
- "type": "root-implicit",
55
- "version": "^4.0.11",
56
- "packageName": "common/package.json",
57
- "issuer": "common/src/api/pages/idb.ts"
58
- },
59
59
  {
60
60
  "type": "root-implicit",
61
61
  "version": "^4.0.11",