@openfin/workspace 45.1.15 → 45.1.17
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/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/language.d.ts +9 -0
- package/client-api-platform/src/shapes.d.ts +17 -1
- package/common/src/api/protocol/shapes/workspace.d.ts +6 -0
- package/common/src/api/protocol/workspace-platform.d.ts +1 -0
- package/common/src/utils/context-menu.d.ts +1 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/popup-window.d.ts +9 -0
- package/common/src/utils/window.d.ts +1 -0
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +1 -1
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.View | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PlatformCapabilities } from '../../../client-api-platform/src/shapes';
|
|
1
2
|
import { Locale } from '../../../client-api-platform/src/shapes';
|
|
2
3
|
export declare function getLanguage(): Locale;
|
|
3
4
|
export declare const dispatchLanguageToBrowserWindows: (language: Locale) => Promise<void[]>;
|
|
@@ -6,6 +7,14 @@ export declare function getLanguageResourcesInternal(): {
|
|
|
6
7
|
currentLanguage: string;
|
|
7
8
|
resources: import("i18next").Resource;
|
|
8
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* This API returns what functionality is supported by the platform.
|
|
12
|
+
* This is useful when Home/Dock/NC is of a higher version
|
|
13
|
+
* and may depend on functionality that is not available
|
|
14
|
+
* in the current Workspace Platform version.
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCapabilitiesInternal(): PlatformCapabilities;
|
|
9
18
|
/**
|
|
10
19
|
* initLanguage()
|
|
11
20
|
* @param language - optional - ISO language code. Built-in languages are always accepted.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import type { IconProps, IconType } from '@openfin/ui-library';
|
|
3
|
-
import type { ModalResponseEvent } from '../../common/src/utils/menu-window-provider';
|
|
4
3
|
import type { WorkspaceIndicatorConfig } from '../../common/src/utils/indicators/workspace-indicators';
|
|
4
|
+
import type { ModalResponseEvent } from '../../common/src/utils/menu-window-provider';
|
|
5
5
|
import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/utils/usage-register';
|
|
6
6
|
import type { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
7
7
|
import type { Resource } from '../../common/src/api/i18next';
|
|
@@ -23,6 +23,17 @@ export { PanelPosition } from '../../common/src/api/pages/shapes';
|
|
|
23
23
|
export type { CustomThemes, CustomThemeOptions, ThemeOptions, CustomThemeOptionsWithScheme, CustomPaletteSet, BaseThemeOptions, ThemeExtension, WorkspaceThemeSet, NotificationIndicatorColorsSet, NotificationIndicatorColorsSetDarkScheme, NotificationIndicatorColorsSetLightScheme, NotificationIndicatorColorsWithScheme } from '../../common/src/api/theming';
|
|
24
24
|
export type { AnalyticsEvent } from '../../common/src/utils/usage-register';
|
|
25
25
|
export type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
|
|
26
|
+
/**
|
|
27
|
+
* Platform capabilities for feature detection by workspace components (Home, Dock).
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export interface PlatformCapabilities {
|
|
31
|
+
languageBroadcast?: {
|
|
32
|
+
home?: boolean;
|
|
33
|
+
dock?: boolean;
|
|
34
|
+
notifications?: boolean;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
26
37
|
/**
|
|
27
38
|
* Request for creating a saved page in persistent storage.
|
|
28
39
|
*/
|
|
@@ -2105,6 +2116,11 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
|
|
|
2105
2116
|
currentLanguage: Locale;
|
|
2106
2117
|
resources: Resource;
|
|
2107
2118
|
}>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Returns platform capabilities for feature detection by workspace components.
|
|
2121
|
+
* @internal
|
|
2122
|
+
*/
|
|
2123
|
+
_getCapabilities(): Promise<PlatformCapabilities>;
|
|
2108
2124
|
/**
|
|
2109
2125
|
* Sets the language to ISO language code passed in
|
|
2110
2126
|
* @param locale the ISO language code
|
|
@@ -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
|
|
18
|
+
export declare const getEmptyContextMenuItem: () => OpenFin.MenuItemTemplate;
|
|
19
19
|
export declare const DefaultSaveMenuBounds: {
|
|
20
20
|
width: number;
|
|
21
21
|
height: number;
|
|
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
|
|
|
11
11
|
export declare const isWindowDefinedWithIndexDB: boolean;
|
|
12
12
|
export declare const finUUID: string;
|
|
13
13
|
export declare const finName: string;
|
|
14
|
-
export declare const finEntityType: "" | "
|
|
14
|
+
export declare const finEntityType: "" | "view" | "window";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
|
@@ -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>;
|