@openfin/workspace-platform 23.2.10 → 23.2.12

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,5 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
- import type { CustomTheme, GenerateThemeParams } from '../../../common/src/api/theming';
2
+ import type { BaseThemeOptions, CustomTheme, GenerateThemeParams } from '../../../common/src/api/theming';
3
3
  import { ColorSchemeOptionType, ThemeApi } from '../../../client-api-platform/src/shapes';
4
4
  export declare const getThemingApi: (identity: OpenFin.ApplicationIdentity) => ThemeApi;
5
5
  export declare const dispatchThemeToWorkspaceProvider: (themeData: {
@@ -14,3 +14,4 @@ export declare const setSelectedScheme: (schemeType: ColorSchemeOptionType) => P
14
14
  export declare const getSelectedScheme: () => ColorSchemeOptionType | null | undefined;
15
15
  export declare const getThemePaletteSheet: () => string | undefined;
16
16
  export declare const mapLegacyThemeToCustomTheme: (legacyTheme: CustomTheme) => GenerateThemeParams;
17
+ export declare const mapLegacyBrandIcons: (legacyBrand: BaseThemeOptions["brand"]) => GenerateThemeParams[1];
@@ -291,12 +291,13 @@ export declare const OpenFinDarkTheme: {
291
291
  };
292
292
  export declare const DefaultOpenFinTheme: CustomThemes;
293
293
  export declare const parseNotificationIndicatorColors: (customTheme: CustomTheme) => NotificationIndicatorColorsParsed;
294
+ export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
294
295
  export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
295
296
  theme: CustomThemes | GeneratedPalettes;
296
297
  defaultScheme: ColorSchemeOptionType;
298
+ themePaletteSheet: string;
297
299
  }>;
298
300
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
299
301
  export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
300
302
  export declare const getComputedBackgroundColor: (platformIdentity: OpenFin.Identity) => Promise<string>;
301
- export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
302
303
  export {};
@@ -1,4 +1,10 @@
1
+ import type OpenFin from '@openfin/core';
1
2
  import { BackgroundLayers, CustomPaletteSet } from '../../../common/src/api/theming';
3
+ export type ColorSchemeValue = 'light' | 'dark' | 'system';
4
+ export type WorkspaceSchemeSetting = 'light' | 'dark' | 'system';
5
+ export type MediaSchemeValue = 'light' | 'dark';
6
+ /** Maps a color scheme to OpenFin native theme preferences. */
7
+ export declare const mapColorSchemeToNativeTheme: (scheme: ColorSchemeValue) => OpenFin.NativeTheme;
2
8
  /**
3
9
  * Parses a CSS color string (hex, rgb(a), or hsl(a)) into a structured RGB string and alpha value.
4
10
  *
@@ -29,6 +29,14 @@
29
29
  "issuer": "common/src/api/i18next.ts"
30
30
  }
31
31
  ],
32
+ "title-case": [
33
+ {
34
+ "type": "root-implicit",
35
+ "version": "3.0.3",
36
+ "packageName": "common/package.json",
37
+ "issuer": "common/src/utils/color-linking.ts"
38
+ }
39
+ ],
32
40
  "lodash.clonedeep": [
33
41
  {
34
42
  "type": "root-implicit",
@@ -38,12 +46,6 @@
38
46
  }
39
47
  ],
40
48
  "dexie": [
41
- {
42
- "type": "root-implicit",
43
- "version": "^4.0.11",
44
- "packageName": "dock3/package.json",
45
- "issuer": "dock3/src/api/idb.ts"
46
- },
47
49
  {
48
50
  "type": "explicit",
49
51
  "version": "^4.0.11",
@@ -53,22 +55,20 @@
53
55
  {
54
56
  "type": "root-implicit",
55
57
  "version": "^4.0.11",
56
- "packageName": "common/package.json",
57
- "issuer": "common/src/api/pages/idb.ts"
58
+ "packageName": "dock3/package.json",
59
+ "issuer": "dock3/src/api/idb.ts"
58
60
  },
59
61
  {
60
62
  "type": "root-implicit",
61
63
  "version": "^4.0.11",
62
64
  "packageName": "common/package.json",
63
- "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
64
- }
65
- ],
66
- "title-case": [
65
+ "issuer": "common/src/api/pages/idb.ts"
66
+ },
67
67
  {
68
68
  "type": "root-implicit",
69
- "version": "3.0.3",
69
+ "version": "^4.0.11",
70
70
  "packageName": "common/package.json",
71
- "issuer": "common/src/utils/color-linking.ts"
71
+ "issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
72
72
  }
73
73
  ]
74
74
  }