@openfin/workspace 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.
@@ -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.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
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,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];
@@ -315,12 +315,13 @@ export declare const OpenFinDarkTheme: {
315
315
  };
316
316
  export declare const DefaultOpenFinTheme: CustomThemes;
317
317
  export declare const parseNotificationIndicatorColors: (customTheme: CustomTheme) => NotificationIndicatorColorsParsed;
318
+ export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
318
319
  export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
319
320
  theme: GeneratedPalettes | CustomThemes;
320
321
  defaultScheme: ColorSchemeOptionType;
322
+ themePaletteSheet: string;
321
323
  }>;
322
324
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
323
325
  export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
324
326
  export declare const getComputedBackgroundColor: (platformIdentity: OpenFin.Identity) => Promise<string>;
325
- export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
326
327
  export {};
@@ -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: "" | "window" | "view";
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,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
  *
@@ -7,14 +7,6 @@
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
- ],
18
10
  "title-case": [
19
11
  {
20
12
  "type": "explicit",
@@ -29,6 +21,14 @@
29
21
  "issuer": "common/src/utils/color-linking.ts"
30
22
  }
31
23
  ],
24
+ "@openfin/microsoft365": [
25
+ {
26
+ "type": "explicit",
27
+ "version": "^1.1.0",
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",