@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.
@@ -0,0 +1,2 @@
1
+ import '@common/test/fin-mocks';
2
+ import '@common/test/logger-mock';
@@ -31,7 +31,8 @@ export declare class ThemeStorageController {
31
31
  private generatedPalettes?;
32
32
  private workspaceStorage?;
33
33
  private recreateFactory?;
34
- constructor(providerStorage: Pick<Storage, 'getItem' | 'setItem'>);
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';
@@ -0,0 +1,5 @@
1
+ export declare const mockLogger: {
2
+ debug: jest.Mock<any, any, any>;
3
+ warn: jest.Mock<any, any, any>;
4
+ error: jest.Mock<any, any, any>;
5
+ };
@@ -13,28 +13,46 @@
13
13
  "issuer": "common/src/utils/layout.ts"
14
14
  }
15
15
  ],
16
- "react-i18next": [
16
+ "dexie": [
17
17
  {
18
18
  "type": "root-implicit",
19
- "version": "15.4.0",
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/api/i18next.ts"
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": "^23.7.16",
45
+ "version": "15.4.0",
28
46
  "packageName": "common/package.json",
29
47
  "issuer": "common/src/api/i18next.ts"
30
48
  }
31
49
  ],
32
- "lodash.clonedeep": [
50
+ "i18next": [
33
51
  {
34
52
  "type": "root-implicit",
35
- "version": "4.5.0",
53
+ "version": "^23.7.16",
36
54
  "packageName": "common/package.json",
37
- "issuer": "common/src/utils/layout.ts"
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
- "dexie": [
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": "^4.0.11",
69
+ "version": "4.5.0",
70
70
  "packageName": "common/package.json",
71
- "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
71
+ "issuer": "common/src/utils/layout.ts"
72
72
  }
73
73
  ]
74
74
  }