@openfin/workspace-platform 22.2.4 → 22.2.5

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 { ThemeStorageController } from '../../../../client-api-platform/src/api/controllers/theme-storage-controller';
2
2
  import { CustomThemes } from '../../../../client-api-platform/src/shapes';
3
- export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => void;
3
+ export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => CustomThemes;
4
4
  export declare const getThemeStorageController: () => ThemeStorageController;
@@ -1,4 +1,3 @@
1
- import { StorageProxy } from '../../../../client-api-platform/src/api/utils';
2
1
  import { ColorSchemeOptionType, CustomPaletteSet } from '../../../../client-api-platform/src/shapes';
3
2
  /**
4
3
  * Palette extensions can be used to add new variables to the palette set.
@@ -40,13 +39,19 @@ export declare class ThemeStorageController {
40
39
  private getVarsByScheme;
41
40
  /**
42
41
  * Set the current Storage Proxy to enable Workspace Storage properties to be populated.
42
+ *
43
+ * Currently, we only support same Storage Based theming for same origin scenarios like EB, where the provider
44
+ * is in the same origin as the workspace pages.
45
+ *
46
+ * A workaround that can be leveraged in cross origin scenarios (which is the majority of the workspace use case) is available in this commit: 233e843cda6cd68968fd5831fb20597e0d5bb7cc
47
+ * `git revert 233e843cda6cd68968fd5831fb20597e0d5bb7cc --no-commit`
43
48
  */
44
- setWorkspaceStorageProxy: (proxy: StorageProxy) => void;
49
+ setWorkspaceStorage: (proxy: Pick<Storage, "setItem">) => void;
45
50
  /**
46
51
  * Synchronize the current palette and scheme with workspace's storage instance if
47
52
  * storage based theming is enabled
48
53
  */
49
- trySynchronizeWorkspaceStorage: () => Promise<void>;
54
+ trySynchronizeWorkspaceStorage: () => void;
50
55
  /**
51
56
  * Set the current Palette to be used by workspace. This palette will be converted into
52
57
  * css vars and combined into a single stylesheet. This stylesheet is exposed in localstorage
@@ -1,6 +1 @@
1
1
  export declare const listenForStoreClose: () => void;
2
- export type StorageProxy = {
3
- setItem: (data: string, value: string) => Promise<void>;
4
- destroy: () => Promise<void>;
5
- };
6
- export declare const createStorageProxy: (url: string) => Promise<StorageProxy>;
@@ -1,4 +1,4 @@
1
- import LocalStorageKey from './local-storage-key';
2
- export declare const setItem: (key: LocalStorageKey, value: string) => void;
3
- export declare const getItem: (key: LocalStorageKey) => string;
4
- export declare const removeItem: (key: LocalStorageKey) => void;
1
+ export declare const createNamespacedLocalStorage: <TKey extends string>(namespace: string) => Pick<Storage, "setItem" | "getItem" | "removeItem">;
2
+ export declare const setItem: (key: string, value: string) => void;
3
+ export declare const getItem: (key: string) => string | null;
4
+ export declare const removeItem: (key: string) => void;
@@ -28,7 +28,6 @@ declare enum BrowserRoute {
28
28
  EnterpriseLandingPage = "/enterprise/landing/",
29
29
  EnterpriseContextMenu = "/context-menu/",
30
30
  EnterpriseBookmarkDialog = "/bookmark-dialog/",
31
- EnterpriseStorageProxy = "/enterprise/storage-proxy",
32
31
  DropdownMenu = "/dropdown-menu/",
33
32
  EnterpriseDock = "/dock/",
34
33
  ZoomControlsDialog = "/zoom-controls-dialog/"
@@ -47,7 +46,6 @@ declare const PageRoute: {
47
46
  EnterpriseLandingPage: BrowserRoute.EnterpriseLandingPage;
48
47
  EnterpriseContextMenu: BrowserRoute.EnterpriseContextMenu;
49
48
  EnterpriseBookmarkDialog: BrowserRoute.EnterpriseBookmarkDialog;
50
- EnterpriseStorageProxy: BrowserRoute.EnterpriseStorageProxy;
51
49
  DropdownMenu: BrowserRoute.DropdownMenu;
52
50
  EnterpriseDock: BrowserRoute.EnterpriseDock;
53
51
  ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
@@ -13,28 +13,28 @@
13
13
  "issuer": "common/src/utils/layout.ts"
14
14
  }
15
15
  ],
16
- "react-i18next": [
16
+ "title-case": [
17
17
  {
18
18
  "type": "root-implicit",
19
- "version": "15.4.0",
19
+ "version": "3.0.3",
20
20
  "packageName": "common/package.json",
21
- "issuer": "common/src/api/i18next.ts"
21
+ "issuer": "common/src/utils/color-linking.ts"
22
22
  }
23
23
  ],
24
- "i18next": [
24
+ "react-i18next": [
25
25
  {
26
26
  "type": "root-implicit",
27
- "version": "^23.7.16",
27
+ "version": "15.4.0",
28
28
  "packageName": "common/package.json",
29
29
  "issuer": "common/src/api/i18next.ts"
30
30
  }
31
31
  ],
32
- "title-case": [
32
+ "i18next": [
33
33
  {
34
34
  "type": "root-implicit",
35
- "version": "3.0.3",
35
+ "version": "^23.7.16",
36
36
  "packageName": "common/package.json",
37
- "issuer": "common/src/utils/color-linking.ts"
37
+ "issuer": "common/src/api/i18next.ts"
38
38
  }
39
39
  ],
40
40
  "dexie": [