@openfin/workspace 23.2.15 → 23.2.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.
- package/client-api/src/dock.test.d.ts +1 -0
- package/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +11 -1
- package/client-api-platform/src/api/theming.d.ts +2 -0
- package/client-api-platform/src/api/utils.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +10 -0
- package/common/src/api/protocol/workspace-platform.d.ts +3 -1
- package/common/src/test/logger-mock.d.ts +5 -0
- package/common/src/utils/env.d.ts +1 -1
- package/externals.report.json +16 -16
- 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.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -31,7 +31,8 @@ export declare class ThemeStorageController {
|
|
|
31
31
|
private generatedPalettes?;
|
|
32
32
|
private workspaceStorage?;
|
|
33
33
|
private recreateFactory?;
|
|
34
|
-
|
|
34
|
+
private isLegacySinglePaletteTheme;
|
|
35
|
+
constructor(providerStorage: Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>);
|
|
35
36
|
/**
|
|
36
37
|
* Set the current Storage Proxy to enable Workspace Storage properties to be populated.
|
|
37
38
|
*/
|
|
@@ -63,6 +64,8 @@ export declare class ThemeStorageController {
|
|
|
63
64
|
/**
|
|
64
65
|
* Synchronize the current palette and scheme with workspace's storage instance if
|
|
65
66
|
* storage based theming is enabled. Only syncs when user has explicitly selected a scheme.
|
|
67
|
+
*
|
|
68
|
+
* Wrapped in try/catch so it does not throw
|
|
66
69
|
*/
|
|
67
70
|
trySynchronizeWorkspaceStorage: () => Promise<void>;
|
|
68
71
|
/**
|
|
@@ -84,6 +87,13 @@ export declare class ThemeStorageController {
|
|
|
84
87
|
* @param scheme 'light', 'dark' or 'system'.
|
|
85
88
|
*/
|
|
86
89
|
setScheme(scheme: ColorSchemeOptionType): void;
|
|
90
|
+
/**
|
|
91
|
+
* Clears an explicit user scheme choice (e.g. from Appearance) so resolution falls back to theme default.
|
|
92
|
+
*/
|
|
93
|
+
clearUserSelectedSchemePreference(): void;
|
|
94
|
+
setLegacySinglePaletteTheme(value: boolean): void;
|
|
95
|
+
/** @internal */
|
|
96
|
+
getIsLegacySinglePaletteTheme(): boolean;
|
|
87
97
|
/**
|
|
88
98
|
* Set the theme's default scheme from palette configuration
|
|
89
99
|
* @param scheme The default scheme specified in the palette
|
|
@@ -12,6 +12,8 @@ export declare const dispatchThemeToWorkspaceProvider: (themeData: {
|
|
|
12
12
|
}) => Promise<void>;
|
|
13
13
|
export declare const setSelectedScheme: (schemeType: ColorSchemeOptionType) => Promise<void>;
|
|
14
14
|
export declare const getSelectedScheme: () => ColorSchemeOptionType | null | undefined;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const getIsLegacySinglePaletteTheme: () => boolean;
|
|
15
17
|
export declare const getThemePaletteSheet: () => string | undefined;
|
|
16
18
|
export declare const mapLegacyThemeToCustomTheme: (legacyTheme: CustomTheme) => GenerateThemeParams;
|
|
17
19
|
export declare const mapLegacyBrandIcons: (legacyBrand: BaseThemeOptions["brand"]) => GenerateThemeParams[1];
|
|
@@ -3,7 +3,7 @@ export type StorageProxy = {
|
|
|
3
3
|
setItem: (data: string, value: string) => Promise<void>;
|
|
4
4
|
destroy: () => Promise<void>;
|
|
5
5
|
};
|
|
6
|
-
export declare const createStorageProxy: (url: string) => Promise<StorageProxy>;
|
|
6
|
+
export declare const createStorageProxy: (url: string, isEnterprise: boolean) => Promise<StorageProxy>;
|
|
7
7
|
/**
|
|
8
8
|
* Ensure the workspace storage proxy window exists. Recreates it if it was previously destroyed
|
|
9
9
|
* (e.g. when the last browser window closed with preventQuitOnLastWindowClosed true and a new
|
|
@@ -1807,6 +1807,11 @@ export interface ThemeApi {
|
|
|
1807
1807
|
* @returns the selected scheme.
|
|
1808
1808
|
*/
|
|
1809
1809
|
getSelectedScheme(): Promise<ColorSchemeOptionType>;
|
|
1810
|
+
/**
|
|
1811
|
+
* @internal
|
|
1812
|
+
* Whether the active platform theme is a legacy theme defined with a single shared palette (light and dark are not independently specified).
|
|
1813
|
+
*/
|
|
1814
|
+
getIsLegacySinglePaletteTheme(): Promise<boolean>;
|
|
1810
1815
|
/**
|
|
1811
1816
|
* @internal
|
|
1812
1817
|
* Get the notification indicator colors from the platform provider.
|
|
@@ -2243,6 +2248,11 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
2243
2248
|
* @param schemeType {@link ColorSchemeOptionType scheme} to be set
|
|
2244
2249
|
*/
|
|
2245
2250
|
setSelectedScheme(schemeType: ColorSchemeOptionType): Promise<void>;
|
|
2251
|
+
/**
|
|
2252
|
+
* @internal
|
|
2253
|
+
* Whether the active platform theme is a legacy single-palette theme (Appearance scheme switching is not supported).
|
|
2254
|
+
*/
|
|
2255
|
+
getIsLegacySinglePaletteTheme(): boolean;
|
|
2246
2256
|
/**
|
|
2247
2257
|
* Implementation for handling Workspace analytics events
|
|
2248
2258
|
* @param req the payload received by the provider
|
|
@@ -96,7 +96,9 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
96
96
|
FocusAndExpandSearchInternal = "focusAndExpandSearchInternal",// Enterprise
|
|
97
97
|
SendUpdateVersionModalResponseInternal = "sendUpdateVersionModalResponseInternal",// Enterprise
|
|
98
98
|
ShowUpdateVersionModalInternal = "showUpdateVersionModalInternal",// Enterprise
|
|
99
|
-
GetNotificationIndicatorColorsInternal = "getNotificationIndicatorColorsInternal"
|
|
99
|
+
GetNotificationIndicatorColorsInternal = "getNotificationIndicatorColorsInternal",// Custom Notification Indicators Colors
|
|
100
|
+
/** @internal */
|
|
101
|
+
GetIsLegacySinglePaletteTheme = "getIsLegacySinglePaletteTheme"
|
|
100
102
|
}
|
|
101
103
|
export type PlatFormSupportedFeatures = boolean | {
|
|
102
104
|
isWorkspacePlatform: boolean;
|
|
@@ -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: "" | "window" | "view";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
package/externals.report.json
CHANGED
|
@@ -7,14 +7,6 @@
|
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
|
-
"@openfin/microsoft365": [
|
|
11
|
-
{
|
|
12
|
-
"type": "explicit",
|
|
13
|
-
"version": "^1.1.0",
|
|
14
|
-
"packageName": "client-api/package.json",
|
|
15
|
-
"issuer": "client-api/src/integrations/microsoft.ts"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
10
|
"title-case": [
|
|
19
11
|
{
|
|
20
12
|
"type": "explicit",
|
|
@@ -29,6 +21,14 @@
|
|
|
29
21
|
"issuer": "common/src/utils/color-linking.ts"
|
|
30
22
|
}
|
|
31
23
|
],
|
|
24
|
+
"@openfin/microsoft365": [
|
|
25
|
+
{
|
|
26
|
+
"type": "explicit",
|
|
27
|
+
"version": "^1.1.0",
|
|
28
|
+
"packageName": "client-api/package.json",
|
|
29
|
+
"issuer": "client-api/src/integrations/microsoft.ts"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
32
|
"lodash.debounce": [
|
|
33
33
|
{
|
|
34
34
|
"type": "explicit",
|
|
@@ -43,14 +43,6 @@
|
|
|
43
43
|
"issuer": "common/src/utils/layout.ts"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
|
-
"lodash.clonedeep": [
|
|
47
|
-
{
|
|
48
|
-
"type": "root-implicit",
|
|
49
|
-
"version": "4.5.0",
|
|
50
|
-
"packageName": "common/package.json",
|
|
51
|
-
"issuer": "common/src/utils/layout.ts"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
46
|
"react-i18next": [
|
|
55
47
|
{
|
|
56
48
|
"type": "root-implicit",
|
|
@@ -67,6 +59,14 @@
|
|
|
67
59
|
"issuer": "common/src/api/i18next.ts"
|
|
68
60
|
}
|
|
69
61
|
],
|
|
62
|
+
"lodash.clonedeep": [
|
|
63
|
+
{
|
|
64
|
+
"type": "root-implicit",
|
|
65
|
+
"version": "4.5.0",
|
|
66
|
+
"packageName": "common/package.json",
|
|
67
|
+
"issuer": "common/src/utils/layout.ts"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
70
|
"dexie": [
|
|
71
71
|
{
|
|
72
72
|
"type": "root-implicit",
|