@openfin/workspace-platform 45.1.14 → 45.1.16

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.
@@ -33,11 +33,16 @@ type HomeAPIClientChannelActions = Record<string, never>;
33
33
  type WorkspaceAPIClientChannelActions = StoreAPIClientChannelActions | DockAPIClientChannelActions | HomeAPIClientChannelActions;
34
34
  /****** End of API Client Channel Actions ******/
35
35
  /****** Workspace Component Channel Actions ******/
36
+ export type WorkspaceComponentSetSelectedLanguagePayload = {
37
+ locale: string;
38
+ identity: OpenFin.Identity;
39
+ };
36
40
  /**
37
41
  * Channel Actions **registered** by all workspace components.
38
42
  */
39
43
  type SharedChannelActions = {
40
44
  'set-selected-scheme': (ctx: WorkspaceComponentSetSelectedSchemePayload) => Promise<void>;
45
+ 'set-selected-language': (payload: WorkspaceComponentSetSelectedLanguagePayload) => Promise<void>;
41
46
  };
42
47
  /**
43
48
  * Channel Actions **registered** by the Home workspace component.
@@ -93,6 +98,7 @@ type WorkspaceChannelTypes = {
93
98
  dark: string;
94
99
  };
95
100
  }) => Promise<void>;
101
+ 'set-selected-language': (locale: string) => Promise<void>;
96
102
  'get-legacy-pages': () => Promise<Page[]>;
97
103
  'get-legacy-workspaces': (payload: undefined) => Promise<LegacyWorkspace[]>;
98
104
  'register-storefront-provider': () => Promise<void>;
@@ -61,6 +61,7 @@ export declare enum WorkspacePlatformChannelAction {
61
61
  GetLanguage = "getLanguage",
62
62
  GetLanguageResourcesInternal = "getLanguageResourcesInternal",
63
63
  SetLanguage = "setLanguage",
64
+ GetCapabilitiesInternal = "getCapabilitiesInternal",
64
65
  GetDockProviderConfig = "getDockProviderConfig",
65
66
  SaveDockProviderConfig = "saveDockProviderConfig",
66
67
  HandleSaveModalOnPageClose = "handleSaveModalOnPageClose",
@@ -15,7 +15,7 @@ export type ShowContextMenuResponse = OpenFin.MenuResult & {
15
15
  export declare function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: OpenFin.Window): Promise<ShowContextMenuResponse>;
16
16
  export declare const showEnterpriseContextMenu: (opts: OpenFin.ShowPopupMenuOptions, type: PopupWindowMenuType, anchorBehavior: AnchorBehavior, win?: OpenFin.Window) => Promise<ShowContextMenuResponse>;
17
17
  export declare const Separator: OpenFin.MenuItemTemplate;
18
- export declare const EmptyContextMenuItem: OpenFin.MenuItemTemplate;
18
+ export declare const getEmptyContextMenuItem: () => OpenFin.MenuItemTemplate;
19
19
  export declare const DefaultSaveMenuBounds: {
20
20
  width: number;
21
21
  height: number;
@@ -29,6 +29,10 @@ export type SearchMenuChannelMessage = {
29
29
  type: 'update-search-menu-state';
30
30
  } | {
31
31
  type: 'ready';
32
+ } | {
33
+ /** Browser window asks the search view whether its webContents owns focus. */
34
+ type: 'focus-query';
35
+ requestId: string;
32
36
  };
33
37
  export type BrowserSearchMenuKeyboardEvent = {
34
38
  type: string;
@@ -171,5 +175,10 @@ export type SearchMenuChannelResponse = {
171
175
  } | {
172
176
  type: 'single-provider-results-announcement';
173
177
  message: string;
178
+ } | {
179
+ /** Answer to a 'focus-query' message: whether the search view's webContents owns focus. */
180
+ type: 'focus-state';
181
+ requestId: string;
182
+ hasFocus: boolean;
174
183
  };
175
184
  export {};
@@ -180,6 +180,7 @@ export declare const isStorefrontWindowRunning: () => Promise<boolean>;
180
180
  export declare const isDockWindowRunning: () => Promise<boolean>;
181
181
  export declare const isHomeWindowRunning: () => Promise<boolean>;
182
182
  export declare const isNotificationCenterRunning: () => Promise<boolean>;
183
+ export declare const isProviderWindowRunning: () => Promise<boolean>;
183
184
  export declare const showAndFocusStorefront: () => Promise<void>;
184
185
  export declare const showAndFocusDock: () => Promise<void>;
185
186
  export declare const getDisableMultiplePagesOption: (identity: WindowIdentity) => Promise<any>;
@@ -37,14 +37,6 @@
37
37
  "issuer": "common/src/api/i18next.ts"
38
38
  }
39
39
  ],
40
- "lodash.clonedeep": [
41
- {
42
- "type": "explicit",
43
- "version": "4.5.0",
44
- "packageName": "common/package.json",
45
- "issuer": "common/src/utils/layout.ts"
46
- }
47
- ],
48
40
  "dexie": [
49
41
  {
50
42
  "type": "root-implicit",
@@ -62,13 +54,21 @@
62
54
  "type": "explicit",
63
55
  "version": "^4.0.11",
64
56
  "packageName": "common/package.json",
65
- "issuer": "common/src/api/pages/idb.ts"
57
+ "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
66
58
  },
67
59
  {
68
60
  "type": "explicit",
69
61
  "version": "^4.0.11",
70
62
  "packageName": "common/package.json",
71
- "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
63
+ "issuer": "common/src/api/pages/idb.ts"
64
+ }
65
+ ],
66
+ "lodash.clonedeep": [
67
+ {
68
+ "type": "explicit",
69
+ "version": "4.5.0",
70
+ "packageName": "common/package.json",
71
+ "issuer": "common/src/utils/layout.ts"
72
72
  }
73
73
  ]
74
74
  }