@openfin/workspace-platform 22.2.3 → 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>;
@@ -144,6 +144,14 @@ export interface PaletteLayersBackgrounds {
144
144
  dark: Partial<BackgroundLayers>;
145
145
  }
146
146
  export interface CustomPaletteSet extends DefaultPaletteSet {
147
+ brandPrimaryActive?: string;
148
+ brandPrimaryHover?: string;
149
+ brandPrimaryFocused?: string;
150
+ brandPrimaryText?: string;
151
+ brandSecondaryActive?: string;
152
+ brandSecondaryHover?: string;
153
+ brandSecondaryFocused?: string;
154
+ brandSecondaryText?: string;
147
155
  functional1?: string;
148
156
  functional2?: string;
149
157
  functional3?: string;
@@ -180,6 +188,7 @@ export interface CustomPaletteSet extends DefaultPaletteSet {
180
188
  contentBackground5?: string;
181
189
  linkDefault?: string;
182
190
  linkHover?: string;
191
+ borderNeutral?: string;
183
192
  }
184
193
  export declare const OpenFinLightTheme: {
185
194
  background1: "#FFFFFF";
@@ -189,6 +198,10 @@ export declare const OpenFinLightTheme: {
189
198
  background5: "#DDDFE4";
190
199
  background6: "#C9CBD2";
191
200
  brandSecondary: "#DDDFE4";
201
+ brandSecondaryActive: "#D7DADF";
202
+ brandSecondaryHover: "#EBECEF";
203
+ brandSecondaryFocused: "#1E1F23";
204
+ brandSecondaryText: "#1E1F23";
192
205
  inputBackground: "#ECEEF1";
193
206
  inputColor: "#1E1F23";
194
207
  inputPlaceholder: "#383A40";
@@ -199,6 +212,10 @@ export declare const OpenFinLightTheme: {
199
212
  textHelp: "#2F3136";
200
213
  textInactive: "#7D808A";
201
214
  brandPrimary: string;
215
+ brandPrimaryActive: string;
216
+ brandPrimaryHover: string;
217
+ brandPrimaryFocused: "#FFFFFF";
218
+ brandPrimaryText: "#FFFFFF";
202
219
  statusSuccess: "#207735";
203
220
  statusWarning: "#F48F00";
204
221
  statusCritical: "#F31818";
@@ -208,6 +225,7 @@ export declare const OpenFinLightTheme: {
208
225
  contentBackground3: string;
209
226
  contentBackground4: string;
210
227
  contentBackground5: string;
228
+ borderNeutral: "#C0C1C2";
211
229
  };
212
230
  export declare const OpenFinDarkTheme: {
213
231
  background1: "#111214";
@@ -217,6 +235,10 @@ export declare const OpenFinDarkTheme: {
217
235
  background5: "#383A40";
218
236
  background6: "#53565F";
219
237
  brandSecondary: "#383A40";
238
+ brandSecondaryActive: "#33353B";
239
+ brandSecondaryHover: "#44464E";
240
+ brandSecondaryFocused: "#FFFFFF";
241
+ brandSecondaryText: "#FFFFFF";
220
242
  inputBackground: "#53565F";
221
243
  inputColor: "#FFFFFF";
222
244
  inputPlaceholder: "#C9CBD2";
@@ -227,6 +249,10 @@ export declare const OpenFinDarkTheme: {
227
249
  textHelp: "#C9CBD2";
228
250
  textInactive: "#7D808A";
229
251
  brandPrimary: string;
252
+ brandPrimaryActive: string;
253
+ brandPrimaryHover: string;
254
+ brandPrimaryFocused: "#FFFFFF";
255
+ brandPrimaryText: "#FFFFFF";
230
256
  statusSuccess: "#207735";
231
257
  statusWarning: "#F48F00";
232
258
  statusCritical: "#F31818";
@@ -236,6 +262,7 @@ export declare const OpenFinDarkTheme: {
236
262
  contentBackground3: string;
237
263
  contentBackground4: string;
238
264
  contentBackground5: string;
265
+ borderNeutral: "#C0C1C2";
239
266
  };
240
267
  export declare const DefaultOpenFinTheme: CustomThemes;
241
268
  export declare const getComputedPaletteSets: (customTheme: CustomThemeOptions | CustomThemeOptionsWithScheme) => WorkspaceThemeSet;
@@ -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;