@openfin/workspace-platform 24.0.9 → 24.0.10
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/api/pages/attached.d.ts +0 -5
- package/common/src/api/pages/enterprise-shapes.d.ts +2 -0
- package/common/src/api/protocol/browser.d.ts +0 -2
- package/common/src/test/logger-mock.d.ts +5 -0
- package/common/src/utils/window.d.ts +1 -0
- package/common/src/utils/workspace-modals.d.ts +3 -0
- package/externals.report.json +8 -8
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -61,11 +61,6 @@ export declare const updatePageForWindow: (payload: ExtendedUpdatePageForWindowP
|
|
|
61
61
|
* @param identity the identity of the window to save the pages of in window options.
|
|
62
62
|
*/
|
|
63
63
|
export declare const updatePagesWindowOptions: (identity: OpenFin.Identity) => Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Check if the window identity is currently detaching pages.
|
|
66
|
-
* @param identity the OF window identity to check.
|
|
67
|
-
*/
|
|
68
|
-
export declare const isDetachingPages: (identity: OpenFin.Identity) => Promise<boolean>;
|
|
69
64
|
/**
|
|
70
65
|
* Check if the window identity is in the middle of changing active pages.
|
|
71
66
|
* @param identity the OF window identity to check.
|
|
@@ -34,6 +34,8 @@ export interface Page {
|
|
|
34
34
|
contextGroup?: string;
|
|
35
35
|
/** Optional property to attach custom metadata to the page object, such as version or timestamp. Must be serializable. */
|
|
36
36
|
customData?: any;
|
|
37
|
+
/** True when this page is an admin-published supertab. */
|
|
38
|
+
isPublished?: boolean;
|
|
37
39
|
}
|
|
38
40
|
type AttachedPageMetadata = {
|
|
39
41
|
/** The window the page is currently attached to. */
|
|
@@ -52,7 +52,6 @@ export declare enum PageChannelAction {
|
|
|
52
52
|
ReorderPagesForWindow = "reorder-pages-for-window",
|
|
53
53
|
UpdatePageForWindow = "update-page-for-window",
|
|
54
54
|
UpdatePagesWindowOptions = "update-pages-window-options",
|
|
55
|
-
IsDetachingPages = "is-detaching-pages",
|
|
56
55
|
IsActivePageChanging = "is-active-page-changing"
|
|
57
56
|
}
|
|
58
57
|
export declare enum CompanionDockChannelAction {
|
|
@@ -77,7 +76,6 @@ export declare const BrowserChannelAction: {
|
|
|
77
76
|
ReorderPagesForWindow: PageChannelAction.ReorderPagesForWindow;
|
|
78
77
|
UpdatePageForWindow: PageChannelAction.UpdatePageForWindow;
|
|
79
78
|
UpdatePagesWindowOptions: PageChannelAction.UpdatePagesWindowOptions;
|
|
80
|
-
IsDetachingPages: PageChannelAction.IsDetachingPages;
|
|
81
79
|
IsActivePageChanging: PageChannelAction.IsActivePageChanging;
|
|
82
80
|
CloseBrowserWindow: GeneralBrowserChannelActions.CloseBrowserWindow;
|
|
83
81
|
QuitPlatform: GeneralBrowserChannelActions.QuitPlatform;
|
|
@@ -24,6 +24,7 @@ export declare enum WindowName {
|
|
|
24
24
|
ZoomControlsDialog = "here-zoom-controls-dialog",
|
|
25
25
|
UpdateVersionModal = "here-update-version-modal",
|
|
26
26
|
ApplyAndPublishModal = "here-apply-and-publish-modal",
|
|
27
|
+
PublishOnCloseModal = "here-publish-on-close-modal",
|
|
27
28
|
DesktopSignalsModal = "here-desktop-signals-modal",
|
|
28
29
|
IntentsResolverModal = "here-intents-resolver-modal"
|
|
29
30
|
}
|
|
@@ -35,6 +35,9 @@ export declare const showUpdateVersionModal: ({ identity, title, description }:
|
|
|
35
35
|
description: string;
|
|
36
36
|
}) => Promise<ModalResponseEvent["data"]>;
|
|
37
37
|
export declare const showApplyAndPublishModal: (identity: OpenFin.Identity) => Promise<boolean>;
|
|
38
|
+
export declare const showPublishOnCloseModal: (windowIdentity: OpenFin.Identity) => Promise<{
|
|
39
|
+
data: ModalResponseEvent["data"];
|
|
40
|
+
}>;
|
|
38
41
|
/**
|
|
39
42
|
* Shows the intents resolver modal and returns the user's selection
|
|
40
43
|
* @param request - The request containing modal configuration
|
package/externals.report.json
CHANGED
|
@@ -21,14 +21,6 @@
|
|
|
21
21
|
"issuer": "common/src/utils/color-linking.ts"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"lodash.clonedeep": [
|
|
25
|
-
{
|
|
26
|
-
"type": "explicit",
|
|
27
|
-
"version": "4.5.0",
|
|
28
|
-
"packageName": "common/package.json",
|
|
29
|
-
"issuer": "common/src/utils/layout.ts"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
24
|
"react-i18next": [
|
|
33
25
|
{
|
|
34
26
|
"type": "explicit",
|
|
@@ -45,6 +37,14 @@
|
|
|
45
37
|
"issuer": "common/src/api/i18next.ts"
|
|
46
38
|
}
|
|
47
39
|
],
|
|
40
|
+
"lodash.clonedeep": [
|
|
41
|
+
{
|
|
42
|
+
"type": "explicit",
|
|
43
|
+
"version": "4.5.0",
|
|
44
|
+
"packageName": "common/package.json",
|
|
45
|
+
"issuer": "common/src/utils/layout.ts"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
48
|
"dexie": [
|
|
49
49
|
{
|
|
50
50
|
"type": "root-implicit",
|