@openfin/workspace 23.1.1 → 23.1.2
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/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller-store.d.ts +16 -1
- package/client-api-platform/src/api/controllers/theme-storage-controller.d.ts +21 -23
- package/client-api-platform/src/api/theming.d.ts +11 -0
- package/client-api-platform/src/api/utils.d.ts +5 -0
- package/client-api-platform/src/init/theming.d.ts +5 -1
- package/client-api-platform/src/shapes.d.ts +32 -5
- package/common/src/api/protocol/shapes/workspace.d.ts +8 -0
- package/common/src/api/protocol/workspace-platform.d.ts +4 -1
- package/common/src/api/protocol/workspace.d.ts +2 -2
- package/common/src/api/theming.d.ts +35 -15
- package/common/src/utils/enterprise-menu.d.ts +1 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/namespaced-local-storage.d.ts +4 -3
- package/common/src/utils/route.d.ts +2 -0
- package/externals.report.json +15 -15
- package/home.js +2 -1
- package/home.js.LICENSE.txt +1 -0
- package/home.js.map +1 -1
- package/index.js +2 -1
- package/index.js.LICENSE.txt +1 -0
- package/index.js.map +1 -1
- package/notifications.js +2 -1
- package/notifications.js.LICENSE.txt +1 -0
- package/notifications.js.map +1 -1
- package/package.json +3 -3
- package/store.js +2 -1
- package/store.js.LICENSE.txt +1 -0
- package/store.js.map +1 -1
- package/common/src/brand/default-brand.d.ts +0 -8
|
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.View | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
import { GeneratedPalettes, NotificationIndicatorColorsParsed } from '../../../../common/src/api/theming';
|
|
1
2
|
import { ThemeStorageController } from '../../../../client-api-platform/src/api/controllers/theme-storage-controller';
|
|
2
3
|
import { CustomThemes } from '../../../../client-api-platform/src/shapes';
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Initialises the storage palettes from the custom themes. This function is called on platform init.
|
|
6
|
+
* This function takes both the legacy themes and the new theme system tokens and
|
|
7
|
+
* passes them into the theme engine to generate the css variables.
|
|
8
|
+
*
|
|
9
|
+
* @param customThemes the custom themes to initialise the storage palettes from.
|
|
10
|
+
* @param isWindows whether the operating system is Windows.
|
|
11
|
+
* @returns the generated palettes fromt the theme engine, theme palette sheet which is injected into the DOM, and legacy theme object if it exists.
|
|
12
|
+
*/
|
|
13
|
+
export declare const initialiseStoragePalettes: (customThemes: CustomThemes | undefined, isWindows: boolean) => {
|
|
14
|
+
generatedPalettes: GeneratedPalettes;
|
|
15
|
+
themePaletteSheet: string;
|
|
16
|
+
legacyTheme: CustomThemes | null;
|
|
17
|
+
notificationIndicatorColors: NotificationIndicatorColorsParsed | null;
|
|
18
|
+
};
|
|
4
19
|
export declare const getThemeStorageController: () => ThemeStorageController;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { GeneratedPalettes } from '../../../../common/src/api/theming';
|
|
2
|
+
import { StorageProxy } from '../../../../client-api-platform/src/api/utils';
|
|
1
3
|
import { ColorSchemeOptionType, CustomPaletteSet } from '../../../../client-api-platform/src/shapes';
|
|
2
4
|
/**
|
|
3
5
|
* Palette extensions can be used to add new variables to the palette set.
|
|
@@ -5,48 +7,34 @@ import { ColorSchemeOptionType, CustomPaletteSet } from '../../../../client-api-
|
|
|
5
7
|
* This is particularly useful if a value uses a different palette constant depending on scheme.
|
|
6
8
|
*/
|
|
7
9
|
export declare const getPaletteExtensions: (palette: CustomPaletteSet, paletteScheme: "light" | "dark", isWindows: boolean) => {
|
|
8
|
-
dockExpandedContainerBorderColor: string;
|
|
9
10
|
dockExpandedContainerBorderRadius: string;
|
|
10
|
-
dockExpandedContainerBackground: string;
|
|
11
11
|
fillerBackgroundColor: string;
|
|
12
|
-
dockCompanionContainerBackground: string;
|
|
13
|
-
dockComponentContainerBackground: string;
|
|
14
|
-
styledDropdownActiveBackground: string;
|
|
15
|
-
contentMenuWrapperInternalDivBorderColor: string;
|
|
16
|
-
contentMenuItemContainerActiveBackground: string;
|
|
17
|
-
contentMenuItemContainerHoverBackground: string;
|
|
18
|
-
contentMenuHeaderBorderColor: string;
|
|
19
|
-
dockCompanionSeparatorBorderColor: string;
|
|
20
|
-
dockComponentContainerBorderColor: string;
|
|
21
|
-
companionDockButtonActiveBackground: string;
|
|
22
|
-
companionDockButtonHoverBackground: string;
|
|
23
12
|
'computed-scrollbar-thumb-alpha': number;
|
|
24
13
|
'computed-scrollbar-track-alpha': number;
|
|
25
14
|
'scrollbar-thumb-rgb': string;
|
|
26
15
|
'scrollbar-track-rgb': string;
|
|
27
16
|
selectedTab: string;
|
|
28
17
|
};
|
|
29
|
-
export type
|
|
18
|
+
export type LegacyPalettes = {
|
|
30
19
|
dark: CustomPaletteSet;
|
|
31
20
|
light: CustomPaletteSet;
|
|
32
21
|
};
|
|
22
|
+
export type Palettes = {
|
|
23
|
+
light: string;
|
|
24
|
+
dark: string;
|
|
25
|
+
};
|
|
33
26
|
export declare class ThemeStorageController {
|
|
34
27
|
private providerStorage;
|
|
35
28
|
private darkPaletteVars?;
|
|
36
29
|
private lightPaletteVars?;
|
|
30
|
+
private themePaletteSheet?;
|
|
31
|
+
private generatedPalettes?;
|
|
37
32
|
private workspaceStorage?;
|
|
38
33
|
constructor(providerStorage: Pick<Storage, 'getItem' | 'setItem'>);
|
|
39
|
-
private getVarsByScheme;
|
|
40
34
|
/**
|
|
41
35
|
* 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`
|
|
48
36
|
*/
|
|
49
|
-
|
|
37
|
+
setWorkspaceStorageProxy: (proxy: StorageProxy) => void;
|
|
50
38
|
/**
|
|
51
39
|
* Check if there's an explicit user preference stored in localStorage.
|
|
52
40
|
* A user preference is indicated by the presence of a SelectedColorScheme key. Which is something assigned if you click on the Appearance dropdown.
|
|
@@ -64,7 +52,11 @@ export declare class ThemeStorageController {
|
|
|
64
52
|
* to allow workspace UI elements to load the palette before their first paint.
|
|
65
53
|
* @param palettes Light and Dark Palette constants
|
|
66
54
|
*/
|
|
67
|
-
|
|
55
|
+
setLegacyPalettes: ({ light, dark }: LegacyPalettes, isWindows: boolean) => Promise<void>;
|
|
56
|
+
setPalettes: ({ light, dark }: {
|
|
57
|
+
light: string;
|
|
58
|
+
dark: string;
|
|
59
|
+
}) => Promise<void>;
|
|
68
60
|
/**
|
|
69
61
|
* Set the current scheme of workspace. Specifically setting light or dark
|
|
70
62
|
* will ignore the OS scheme, whereas 'system' will always respect it.
|
|
@@ -78,9 +70,15 @@ export declare class ThemeStorageController {
|
|
|
78
70
|
* @param scheme The default scheme specified in the palette
|
|
79
71
|
*/
|
|
80
72
|
setThemeDefaultScheme(scheme: ColorSchemeOptionType): void;
|
|
73
|
+
setGeneratedPalettes(generatedPalettes: GeneratedPalettes): void;
|
|
81
74
|
/**
|
|
82
75
|
* Returns the current scheme
|
|
83
76
|
* @returns 'light' | 'system' | 'dark'
|
|
84
77
|
*/
|
|
85
78
|
getScheme(): ColorSchemeOptionType;
|
|
79
|
+
getThemePaletteSheet(): string | undefined;
|
|
80
|
+
getThemePalette(): {
|
|
81
|
+
light: string;
|
|
82
|
+
dark: string;
|
|
83
|
+
};
|
|
86
84
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
+
import type { CustomTheme, GenerateThemeParams } from '../../../common/src/api/theming';
|
|
2
3
|
import { ColorSchemeOptionType, ThemeApi } from '../../../client-api-platform/src/shapes';
|
|
3
4
|
export declare const getThemingApi: (identity: OpenFin.ApplicationIdentity) => ThemeApi;
|
|
5
|
+
export declare const dispatchThemeToWorkspaceProvider: (themeData: {
|
|
6
|
+
themePaletteSheet: string;
|
|
7
|
+
selectedScheme: ColorSchemeOptionType;
|
|
8
|
+
themePalette: {
|
|
9
|
+
light: string;
|
|
10
|
+
dark: string;
|
|
11
|
+
};
|
|
12
|
+
}) => Promise<void>;
|
|
4
13
|
export declare const setSelectedScheme: (schemeType: ColorSchemeOptionType) => Promise<void>;
|
|
5
14
|
export declare const getSelectedScheme: () => ColorSchemeOptionType | null | undefined;
|
|
15
|
+
export declare const getThemePaletteSheet: () => string | undefined;
|
|
16
|
+
export declare const mapLegacyThemeToCustomTheme: (legacyTheme: CustomTheme) => GenerateThemeParams;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { GeneratedPalettes, NotificationIndicatorColorsParsed } from '../../../common/src/api/theming';
|
|
1
2
|
import { CustomThemes } from '../shapes';
|
|
2
|
-
export declare const getThemes: () => CustomThemes;
|
|
3
|
+
export declare const getThemes: () => CustomThemes | null;
|
|
4
|
+
export declare const getGeneratedPalettes: () => GeneratedPalettes;
|
|
5
|
+
export declare const getThemePaletteSheet: () => string;
|
|
6
|
+
export declare const getNotificationIndicatorColorsInternal: () => NotificationIndicatorColorsParsed;
|
|
3
7
|
/**
|
|
4
8
|
* initTheming()
|
|
5
9
|
* @param customThemes array of theme objects
|
|
@@ -7,7 +7,7 @@ import type { Resource } from '../../common/src/api/i18next';
|
|
|
7
7
|
import type { TrackedSite } from '../../common/src/api/pages/idb';
|
|
8
8
|
import type { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, CreateBookmarkNodeRequest, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, SetActivePageForWindowPayload, ShouldPageClosePayload, ShouldPageCloseResult, UpdateBookmarkNodeRequest, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
|
|
9
9
|
import type { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
|
|
10
|
-
import type { CustomThemes } from '../../common/src/api/theming';
|
|
10
|
+
import type { CustomThemes, GeneratedPalettes, NotificationIndicatorColorsParsed } from '../../common/src/api/theming';
|
|
11
11
|
import type { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
|
|
12
12
|
import type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
|
|
13
13
|
import type { DockCompanionButton } from '../../dock3/src/shapes/index';
|
|
@@ -1779,13 +1779,40 @@ export interface LaunchAppRequest {
|
|
|
1779
1779
|
target?: OpenFin.EntityInfo;
|
|
1780
1780
|
app: App;
|
|
1781
1781
|
}
|
|
1782
|
-
/**
|
|
1783
|
-
* Get Themes from API
|
|
1784
|
-
*/
|
|
1785
1782
|
export interface ThemeApi {
|
|
1786
|
-
|
|
1783
|
+
/**
|
|
1784
|
+
* @deprecated This method is deprecated. It is recommended to use {@link getGeneratedPalettes} instead.
|
|
1785
|
+
* Get the legacy themes from the platform provider.
|
|
1786
|
+
* @returns the legacy themes or null if the platform provider is using the new theme system.
|
|
1787
|
+
*/
|
|
1788
|
+
getThemes(): Promise<CustomThemes | null>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Get the generated palettes from the platform provider.
|
|
1791
|
+
* @returns the generated palettes.
|
|
1792
|
+
*/
|
|
1793
|
+
getGeneratedPalettes(): Promise<GeneratedPalettes>;
|
|
1794
|
+
/**
|
|
1795
|
+
* @internal
|
|
1796
|
+
* Get the theme palette sheet from the platform provider.
|
|
1797
|
+
* @returns the theme palette sheet.
|
|
1798
|
+
*/
|
|
1799
|
+
getThemePaletteSheet(): Promise<string>;
|
|
1800
|
+
/**
|
|
1801
|
+
* Set the selected scheme for the platform provider.
|
|
1802
|
+
* @param newScheme the new scheme to set.
|
|
1803
|
+
*/
|
|
1787
1804
|
setSelectedScheme(newScheme: ColorSchemeOptionType): Promise<void>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Get the selected scheme from the platform provider.
|
|
1807
|
+
* @returns the selected scheme.
|
|
1808
|
+
*/
|
|
1788
1809
|
getSelectedScheme(): Promise<ColorSchemeOptionType>;
|
|
1810
|
+
/**
|
|
1811
|
+
* @internal
|
|
1812
|
+
* Get the notification indicator colors from the platform provider.
|
|
1813
|
+
* @returns the notification indicator colors.
|
|
1814
|
+
*/
|
|
1815
|
+
getNotificationIndicatorColorsInternal(): Promise<NotificationIndicatorColorsParsed | null>;
|
|
1789
1816
|
}
|
|
1790
1817
|
/**
|
|
1791
1818
|
* Controller for a Workspace Platform.
|
|
@@ -85,6 +85,14 @@ type WorkspaceChannelTypes = {
|
|
|
85
85
|
'set-search-query': (payload: SearchQueryWithProviderID) => Promise<void>;
|
|
86
86
|
'assign-home-search-context': (payload: Partial<HomeSearchListenerRequest['context']>) => Promise<void>;
|
|
87
87
|
'set-selected-scheme': (ctx: ColorSchemeOptionType) => Promise<void>;
|
|
88
|
+
'initialize-theme': (themeData: {
|
|
89
|
+
themePaletteSheet: string;
|
|
90
|
+
selectedScheme: ColorSchemeOptionType;
|
|
91
|
+
themePalette: {
|
|
92
|
+
light: string;
|
|
93
|
+
dark: string;
|
|
94
|
+
};
|
|
95
|
+
}) => Promise<void>;
|
|
88
96
|
'get-legacy-pages': () => Promise<Page[]>;
|
|
89
97
|
'get-legacy-workspaces': (payload: undefined) => Promise<LegacyWorkspace[]>;
|
|
90
98
|
'register-storefront-provider': () => Promise<void>;
|
|
@@ -35,6 +35,8 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
35
35
|
GetLastFocusedBrowserWindow = "getLastFocusedBrowserWindow",
|
|
36
36
|
GetPageByViewIdentity = "getPageByViewIdentity",
|
|
37
37
|
GetThemes = "getThemes",
|
|
38
|
+
GetGeneratedPalettes = "getGeneratedPalettes",
|
|
39
|
+
GetThemePaletteSheet = "getThemePaletteSheet",
|
|
38
40
|
GetSelectedScheme = "getSelectedScheme",
|
|
39
41
|
SetSelectedScheme = "setSelectedScheme",
|
|
40
42
|
OpenGlobalContextMenuInternal = "openGlobalContextMenuInternal",
|
|
@@ -93,7 +95,8 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
93
95
|
AddDockFavoriteInternal = "addDockFavoriteInternal",// Enterprise
|
|
94
96
|
FocusAndExpandSearchInternal = "focusAndExpandSearchInternal",// Enterprise
|
|
95
97
|
SendUpdateVersionModalResponseInternal = "sendUpdateVersionModalResponseInternal",// Enterprise
|
|
96
|
-
ShowUpdateVersionModalInternal = "showUpdateVersionModalInternal"
|
|
98
|
+
ShowUpdateVersionModalInternal = "showUpdateVersionModalInternal",// Enterprise
|
|
99
|
+
GetNotificationIndicatorColorsInternal = "getNotificationIndicatorColorsInternal"
|
|
97
100
|
}
|
|
98
101
|
export type PlatFormSupportedFeatures = boolean | {
|
|
99
102
|
isWorkspacePlatform: boolean;
|
|
@@ -19,8 +19,8 @@ export declare const launchProvider: () => Promise<void>;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const getChannelClientAndLaunchProvider: () => Promise<WorkspaceComponentChannelClient>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Gets the theme data from the Platform provider, then launches the Workspace provider if it is not running, and then dispatches the theme data to the Workspace provider.
|
|
23
23
|
* Then gets a Channel Client that is connected to the Workspace Provider.
|
|
24
24
|
* @returns the Channel Client that is connected to the Workspace Provider.
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const getChannelClientAndInitializeWorkspaceProvider: () => Promise<WorkspaceAPIClientChannelClient>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { DefaultTheme } from 'styled-components';
|
|
2
2
|
import type OpenFin from '@openfin/core';
|
|
3
3
|
import type { ColorSchemeType, ThemeSet } from '@openfin/ui-library';
|
|
4
|
-
import { Palette } from '@openfin/ui-library/dist/theme';
|
|
5
4
|
import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
|
|
5
|
+
import type { generateTheme } from '@openfin/theme-engine';
|
|
6
|
+
export declare const ColorScheme: {
|
|
7
|
+
light: string;
|
|
8
|
+
dark: string;
|
|
9
|
+
system: string;
|
|
10
|
+
};
|
|
6
11
|
export type WorkspaceComponentSetSelectedSchemePayload = {
|
|
7
12
|
newScheme: ColorSchemeOptionType;
|
|
8
13
|
identity: OpenFin.Identity;
|
|
@@ -49,6 +54,13 @@ export interface NotificationIndicatorColorsSetLightScheme {
|
|
|
49
54
|
dark?: NotificationIndicatorColorsSet;
|
|
50
55
|
light: NotificationIndicatorColorsSet;
|
|
51
56
|
}
|
|
57
|
+
export type NotificationIndicatorColors = Record<string, Omit<NotificationIndicatorColorsSet, 'foreground'> & {
|
|
58
|
+
foreground: string;
|
|
59
|
+
}>;
|
|
60
|
+
export type NotificationIndicatorColorsParsed = {
|
|
61
|
+
dark: NotificationIndicatorColors;
|
|
62
|
+
light: NotificationIndicatorColors;
|
|
63
|
+
};
|
|
52
64
|
export type NotificationIndicatorColorsWithScheme = Record<string, NotificationIndicatorColorsSetDarkScheme | NotificationIndicatorColorsSetLightScheme>;
|
|
53
65
|
export interface BaseThemeOptions {
|
|
54
66
|
label: string;
|
|
@@ -89,7 +101,7 @@ export type CustomThemeOptions = BaseThemeOptions & {
|
|
|
89
101
|
* };
|
|
90
102
|
* ```
|
|
91
103
|
*/
|
|
92
|
-
notificationIndicatorColors?:
|
|
104
|
+
notificationIndicatorColors?: NotificationIndicatorColors;
|
|
93
105
|
};
|
|
94
106
|
export type CustomThemeOptionsWithScheme = BaseThemeOptions & {
|
|
95
107
|
/**
|
|
@@ -145,10 +157,22 @@ export type CustomThemeOptionsWithScheme = BaseThemeOptions & {
|
|
|
145
157
|
*/
|
|
146
158
|
notificationIndicatorColors?: NotificationIndicatorColorsWithScheme;
|
|
147
159
|
};
|
|
148
|
-
export type
|
|
160
|
+
export type ThemeOptions = BaseThemeOptions & {
|
|
161
|
+
seed: Parameters<typeof generateTheme>[0];
|
|
162
|
+
overrides?: Parameters<typeof generateTheme>[1];
|
|
163
|
+
} & {
|
|
164
|
+
notificationIndicatorColors?: NotificationIndicatorColorsWithScheme | NotificationIndicatorColors;
|
|
165
|
+
};
|
|
166
|
+
type GenerateThemeReturn = ReturnType<typeof generateTheme>;
|
|
167
|
+
export type GeneratedPalettes = Pick<GenerateThemeReturn, 'dark' | 'light'>;
|
|
168
|
+
export type LegacyPalettes = CustomThemeOptions | CustomThemeOptionsWithScheme;
|
|
169
|
+
export type GenerateThemeParams = Parameters<typeof generateTheme>;
|
|
170
|
+
export type CustomTheme = CustomThemeOptions | CustomThemeOptionsWithScheme | ThemeOptions;
|
|
171
|
+
export type CustomThemes = CustomTheme[];
|
|
149
172
|
export interface PreloadedThemeData {
|
|
150
|
-
themes: CustomThemes;
|
|
173
|
+
themes: CustomThemes | GeneratedPalettes;
|
|
151
174
|
selectedScheme: ColorSchemeOptionType;
|
|
175
|
+
themePaletteSheet?: string;
|
|
152
176
|
}
|
|
153
177
|
export interface DefaultPaletteSet {
|
|
154
178
|
brandPrimary: string;
|
|
@@ -289,17 +313,13 @@ export declare const OpenFinDarkTheme: {
|
|
|
289
313
|
borderNeutral: "#C0C1C2";
|
|
290
314
|
};
|
|
291
315
|
export declare const DefaultOpenFinTheme: CustomThemes;
|
|
292
|
-
export declare const
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* @param storedScheme sets the default scheme if provided
|
|
298
|
-
* @returns array of {@link ComputedThemes | computed themes}
|
|
299
|
-
*/
|
|
300
|
-
export declare const computeThemes: (customThemes: CustomThemes, storedScheme?: ColorSchemeOptionType) => ComputedThemes;
|
|
301
|
-
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
|
|
316
|
+
export declare const parseNotificationIndicatorColors: (customTheme: CustomTheme) => NotificationIndicatorColorsParsed;
|
|
317
|
+
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
|
|
318
|
+
theme: GeneratedPalettes | CustomThemes;
|
|
319
|
+
defaultScheme: ColorSchemeOptionType;
|
|
320
|
+
}>;
|
|
302
321
|
export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
|
|
303
322
|
export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
|
|
304
|
-
export declare const getComputedBackgroundColor: (
|
|
323
|
+
export declare const getComputedBackgroundColor: (platformIdentity: OpenFin.Identity) => Promise<string>;
|
|
324
|
+
export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
|
|
305
325
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { EnterpriseMainContextMenuItemData, EnterpriseMainContextMenuItemTemplate, OpenGlobalContextMenuPayload } from '../../../client-api-platform/src/shapes';
|
|
3
|
-
export declare const getEnterpriseContextMenuTemplate: ({ identity
|
|
3
|
+
export declare const getEnterpriseContextMenuTemplate: ({ identity }: {
|
|
4
4
|
identity: OpenFin.Identity;
|
|
5
5
|
selectedViews: OpenFin.Identity[];
|
|
6
6
|
}) => Promise<EnterpriseMainContextMenuItemTemplate[]>;
|
|
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
|
|
|
11
11
|
export declare const isWindowDefinedWithIndexDB: boolean;
|
|
12
12
|
export declare const finUUID: string;
|
|
13
13
|
export declare const finName: string;
|
|
14
|
-
export declare const finEntityType: "" | "
|
|
14
|
+
export declare const finEntityType: "" | "view" | "window";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
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
5
|
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;
|
|
@@ -29,6 +29,7 @@ declare enum BrowserRoute {
|
|
|
29
29
|
EnterpriseContextMenu = "/context-menu/",
|
|
30
30
|
EnterpriseBookmarkDialog = "/bookmark-dialog/",
|
|
31
31
|
EnterpriseAboutPage = "/popup-menu/about/",
|
|
32
|
+
StorageProxy = "/browser/storage-proxy",
|
|
32
33
|
DropdownMenu = "/dropdown-menu/",
|
|
33
34
|
EnterpriseDock = "/dock/",
|
|
34
35
|
ZoomControlsDialog = "/zoom-controls-dialog/",
|
|
@@ -51,6 +52,7 @@ declare const PageRoute: {
|
|
|
51
52
|
EnterpriseContextMenu: BrowserRoute.EnterpriseContextMenu;
|
|
52
53
|
EnterpriseBookmarkDialog: BrowserRoute.EnterpriseBookmarkDialog;
|
|
53
54
|
EnterpriseAboutPage: BrowserRoute.EnterpriseAboutPage;
|
|
55
|
+
StorageProxy: BrowserRoute.StorageProxy;
|
|
54
56
|
DropdownMenu: BrowserRoute.DropdownMenu;
|
|
55
57
|
EnterpriseDock: BrowserRoute.EnterpriseDock;
|
|
56
58
|
ZoomControlsDialog: BrowserRoute.ZoomControlsDialog;
|
package/externals.report.json
CHANGED
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "2.13.0-alpha-
|
|
5
|
+
"version": "2.13.0-alpha-4420",
|
|
6
6
|
"packageName": "client-api/package.json",
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
|
+
"@openfin/microsoft365": [
|
|
11
|
+
{
|
|
12
|
+
"type": "explicit",
|
|
13
|
+
"version": "^1.0.1",
|
|
14
|
+
"packageName": "client-api/package.json",
|
|
15
|
+
"issuer": "client-api/src/integrations/microsoft.ts"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
10
18
|
"title-case": [
|
|
11
19
|
{
|
|
12
20
|
"type": "explicit",
|
|
@@ -21,14 +29,6 @@
|
|
|
21
29
|
"issuer": "common/src/utils/color-linking.ts"
|
|
22
30
|
}
|
|
23
31
|
],
|
|
24
|
-
"@openfin/microsoft365": [
|
|
25
|
-
{
|
|
26
|
-
"type": "explicit",
|
|
27
|
-
"version": "^1.0.1",
|
|
28
|
-
"packageName": "client-api/package.json",
|
|
29
|
-
"issuer": "client-api/src/integrations/microsoft.ts"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
32
|
"lodash.debounce": [
|
|
33
33
|
{
|
|
34
34
|
"type": "explicit",
|
|
@@ -60,12 +60,6 @@
|
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
62
|
"dexie": [
|
|
63
|
-
{
|
|
64
|
-
"type": "root-implicit",
|
|
65
|
-
"version": "^4.0.11",
|
|
66
|
-
"packageName": "common/package.json",
|
|
67
|
-
"issuer": "common/src/api/pages/idb.ts"
|
|
68
|
-
},
|
|
69
63
|
{
|
|
70
64
|
"type": "root-implicit",
|
|
71
65
|
"version": "^4.0.11",
|
|
@@ -78,6 +72,12 @@
|
|
|
78
72
|
"packageName": "client-api-platform/package.json",
|
|
79
73
|
"issuer": "client-api-platform/src/api/dock/idb.ts"
|
|
80
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"type": "root-implicit",
|
|
77
|
+
"version": "^4.0.11",
|
|
78
|
+
"packageName": "common/package.json",
|
|
79
|
+
"issuer": "common/src/api/pages/idb.ts"
|
|
80
|
+
},
|
|
81
81
|
{
|
|
82
82
|
"type": "root-implicit",
|
|
83
83
|
"version": "^4.0.11",
|