@openfin/workspace-platform 23.2.14 → 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-platform/src/api/controllers/__tests__/theme-storage-controller-store.test.d.ts +2 -0
- package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +9 -1
- package/client-api-platform/src/api/theming.set-scheme.test.d.ts +1 -0
- package/client-api-platform/src/api/utils.d.ts +1 -1
- package/client-api-platform/src/api/utils.test.d.ts +1 -0
- package/common/src/test/logger-mock.d.ts +5 -0
- package/externals.report.json +29 -29
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/workspace_platform.zip +0 -0
|
@@ -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,11 @@ 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;
|
|
87
95
|
/**
|
|
88
96
|
* Set the theme's default scheme from palette configuration
|
|
89
97
|
* @param scheme The default scheme specified in the palette
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@common/test/fin-mocks';
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@common/test/fin-mocks';
|
package/externals.report.json
CHANGED
|
@@ -13,28 +13,46 @@
|
|
|
13
13
|
"issuer": "common/src/utils/layout.ts"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"
|
|
16
|
+
"dexie": [
|
|
17
17
|
{
|
|
18
18
|
"type": "root-implicit",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "^4.0.11",
|
|
20
|
+
"packageName": "dock3/package.json",
|
|
21
|
+
"issuer": "dock3/src/api/idb.ts"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "explicit",
|
|
25
|
+
"version": "^4.0.11",
|
|
26
|
+
"packageName": "client-api-platform/package.json",
|
|
27
|
+
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "root-implicit",
|
|
31
|
+
"version": "^4.0.11",
|
|
20
32
|
"packageName": "common/package.json",
|
|
21
|
-
"issuer": "common/src/
|
|
33
|
+
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "root-implicit",
|
|
37
|
+
"version": "^4.0.11",
|
|
38
|
+
"packageName": "common/package.json",
|
|
39
|
+
"issuer": "common/src/api/pages/idb.ts"
|
|
22
40
|
}
|
|
23
41
|
],
|
|
24
|
-
"i18next": [
|
|
42
|
+
"react-i18next": [
|
|
25
43
|
{
|
|
26
44
|
"type": "root-implicit",
|
|
27
|
-
"version": "
|
|
45
|
+
"version": "15.4.0",
|
|
28
46
|
"packageName": "common/package.json",
|
|
29
47
|
"issuer": "common/src/api/i18next.ts"
|
|
30
48
|
}
|
|
31
49
|
],
|
|
32
|
-
"
|
|
50
|
+
"i18next": [
|
|
33
51
|
{
|
|
34
52
|
"type": "root-implicit",
|
|
35
|
-
"version": "
|
|
53
|
+
"version": "^23.7.16",
|
|
36
54
|
"packageName": "common/package.json",
|
|
37
|
-
"issuer": "common/src/
|
|
55
|
+
"issuer": "common/src/api/i18next.ts"
|
|
38
56
|
}
|
|
39
57
|
],
|
|
40
58
|
"title-case": [
|
|
@@ -45,30 +63,12 @@
|
|
|
45
63
|
"issuer": "common/src/utils/color-linking.ts"
|
|
46
64
|
}
|
|
47
65
|
],
|
|
48
|
-
"
|
|
49
|
-
{
|
|
50
|
-
"type": "explicit",
|
|
51
|
-
"version": "^4.0.11",
|
|
52
|
-
"packageName": "client-api-platform/package.json",
|
|
53
|
-
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "root-implicit",
|
|
57
|
-
"version": "^4.0.11",
|
|
58
|
-
"packageName": "dock3/package.json",
|
|
59
|
-
"issuer": "dock3/src/api/idb.ts"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "root-implicit",
|
|
63
|
-
"version": "^4.0.11",
|
|
64
|
-
"packageName": "common/package.json",
|
|
65
|
-
"issuer": "common/src/api/pages/idb.ts"
|
|
66
|
-
},
|
|
66
|
+
"lodash.clonedeep": [
|
|
67
67
|
{
|
|
68
68
|
"type": "root-implicit",
|
|
69
|
-
"version": "
|
|
69
|
+
"version": "4.5.0",
|
|
70
70
|
"packageName": "common/package.json",
|
|
71
|
-
"issuer": "common/src/utils/
|
|
71
|
+
"issuer": "common/src/utils/layout.ts"
|
|
72
72
|
}
|
|
73
73
|
]
|
|
74
74
|
}
|