@openfin/workspace-platform 22.2.4 → 22.2.6
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/theme-storage-controller-store.d.ts +1 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +8 -3
- package/client-api-platform/src/api/utils.d.ts +0 -5
- package/client-api-platform/src/init/browser-window-focus.d.ts +8 -4
- package/common/src/utils/namespaced-local-storage.d.ts +4 -4
- package/common/src/utils/route.d.ts +0 -2
- package/externals.report.json +8 -8
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -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) =>
|
|
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
|
-
|
|
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: () =>
|
|
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
|
|
@@ -2,7 +2,6 @@ import type OpenFin from '@openfin/core';
|
|
|
2
2
|
/**
|
|
3
3
|
* Gets the last focused browser window.
|
|
4
4
|
* @returns {Promise<OpenFin.Identity | undefined>} The last focused browser window identity, or undefined if not found.
|
|
5
|
-
* @throws {Error} If there is an error retrieving the last focused browser window.
|
|
6
5
|
*/
|
|
7
6
|
export declare function getLastFocusedBrowserWindow(): Promise<OpenFin.Identity | undefined>;
|
|
8
7
|
/**
|
|
@@ -11,8 +10,13 @@ export declare function getLastFocusedBrowserWindow(): Promise<OpenFin.Identity
|
|
|
11
10
|
*/
|
|
12
11
|
export declare function getLastFocusedUnminimizedBrowserWindow(): Promise<OpenFin.Identity | undefined>;
|
|
13
12
|
/**
|
|
14
|
-
* Listen for
|
|
15
|
-
* When a browser window is focused, store it in local storage as the last focused browser window.
|
|
16
|
-
* When a browser window is closed, remove it from the LRU.
|
|
13
|
+
* Listen for browser window events to track focus and window state.
|
|
17
14
|
*/
|
|
18
15
|
export declare function listenForBrowserWindowFocus(): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Selects the appropriate browser window based on the product requirements:
|
|
18
|
+
* 1. Most recently active visible window
|
|
19
|
+
* 2. Most recently active minimized window if no visible windows
|
|
20
|
+
* 3. New window if no existing windows
|
|
21
|
+
*/
|
|
22
|
+
export declare function selectAppropriateWindow(): Promise<OpenFin.Identity>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const setItem: (key:
|
|
3
|
-
export declare const getItem: (key:
|
|
4
|
-
export declare const removeItem: (key:
|
|
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;
|
package/externals.report.json
CHANGED
|
@@ -13,28 +13,28 @@
|
|
|
13
13
|
"issuer": "common/src/utils/layout.ts"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"
|
|
16
|
+
"title-case": [
|
|
17
17
|
{
|
|
18
18
|
"type": "root-implicit",
|
|
19
|
-
"version": "
|
|
19
|
+
"version": "3.0.3",
|
|
20
20
|
"packageName": "common/package.json",
|
|
21
|
-
"issuer": "common/src/
|
|
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": "
|
|
27
|
+
"version": "15.4.0",
|
|
28
28
|
"packageName": "common/package.json",
|
|
29
29
|
"issuer": "common/src/api/i18next.ts"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
|
-
"
|
|
32
|
+
"i18next": [
|
|
33
33
|
{
|
|
34
34
|
"type": "root-implicit",
|
|
35
|
-
"version": "
|
|
35
|
+
"version": "^23.7.16",
|
|
36
36
|
"packageName": "common/package.json",
|
|
37
|
-
"issuer": "common/src/
|
|
37
|
+
"issuer": "common/src/api/i18next.ts"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"dexie": [
|