@openfin/workspace-platform 20.1.14 → 20.1.15

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.
@@ -1,4 +1,4 @@
1
1
  import { PanelConfigVertical, PanelPosition } from '../../../common/src/api/pages/shapes';
2
2
  export type CSSBounds = Partial<Record<'top' | 'right' | 'bottom' | 'left' | 'height' | 'width', string>>;
3
3
  export declare const BookmarksPanelConfig: PanelConfigVertical;
4
- export declare const usePanelBounds: (panelPosition: PanelPosition | 'Center') => Partial<Record<"height" | "width" | "top" | "left" | "bottom" | "right", string>>;
4
+ export declare const usePanelBounds: (panelPosition: PanelPosition | 'Center') => Partial<Record<"top" | "left" | "height" | "width" | "bottom" | "right", string>>;
@@ -6,7 +6,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
6
6
  * @param app the app directory entry.
7
7
  * @param opts launch options.
8
8
  */
9
- export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
9
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Application | OpenFin.Identity | OpenFin.View | OpenFin.Platform>;
10
10
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
11
11
  export declare function getResults(payload: {
12
12
  req: SearchSitesRequest;
@@ -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.
@@ -85,6 +90,7 @@ type WorkspaceChannelTypes = {
85
90
  'set-search-query': (payload: SearchQueryWithProviderID) => Promise<void>;
86
91
  'assign-home-search-context': (payload: Partial<HomeSearchListenerRequest['context']>) => Promise<void>;
87
92
  'set-selected-scheme': (ctx: ColorSchemeOptionType) => Promise<void>;
93
+ 'set-selected-language': (locale: string) => Promise<void>;
88
94
  'get-legacy-pages': () => Promise<Page[]>;
89
95
  'get-legacy-workspaces': (payload: undefined) => Promise<LegacyWorkspace[]>;
90
96
  'register-storefront-provider': () => Promise<void>;
@@ -56,6 +56,7 @@ export declare enum WorkspacePlatformChannelAction {
56
56
  GetLanguage = "getLanguage",
57
57
  GetLanguageResourcesInternal = "getLanguageResourcesInternal",
58
58
  SetLanguage = "setLanguage",
59
+ GetCapabilitiesInternal = "getCapabilitiesInternal",
59
60
  GetDockProviderConfig = "getDockProviderConfig",
60
61
  SaveDockProviderConfig = "saveDockProviderConfig",
61
62
  HandleSaveModalOnPageClose = "handleSaveModalOnPageClose",
@@ -13,7 +13,7 @@ export type ShowContextMenuResponse = OpenFin.MenuResult & {
13
13
  export declare function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: OpenFin.Window): Promise<ShowContextMenuResponse>;
14
14
  export declare const showEnterpriseContextMenu: (opts: OpenFin.ShowPopupMenuOptions, type: ContextMenuType, anchorBehavior: AnchorBehavior, win?: OpenFin.Window) => Promise<ShowContextMenuResponse>;
15
15
  export declare const Separator: OpenFin.MenuItemTemplate;
16
- export declare const EmptyContextMenuItem: OpenFin.MenuItemTemplate;
16
+ export declare const getEmptyContextMenuItem: () => OpenFin.MenuItemTemplate;
17
17
  export declare const DefaultSaveMenuBounds: {
18
18
  width: number;
19
19
  height: number;
@@ -155,6 +155,7 @@ export declare const isStorefrontWindowRunning: () => Promise<boolean>;
155
155
  export declare const isDockWindowRunning: () => Promise<boolean>;
156
156
  export declare const isHomeWindowRunning: () => Promise<boolean>;
157
157
  export declare const isNotificationCenterWindowRunning: () => Promise<boolean>;
158
+ export declare const isProviderWindowRunning: () => Promise<boolean>;
158
159
  export declare const showAndFocusStorefront: () => Promise<void>;
159
160
  export declare const showAndFocusDock: () => Promise<void>;
160
161
  export declare const getDisableMultiplePagesOption: (identity: WindowIdentity) => Promise<any>;