@openfin/workspace-platform 24.0.4 → 24.0.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.
@@ -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.Identity | OpenFin.View | OpenFin.Platform | OpenFin.Application>;
10
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Application | OpenFin.View | OpenFin.Platform>;
11
11
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
12
12
  export declare function getResults(payload: {
13
13
  req: SearchSitesRequest;
@@ -90,6 +90,12 @@ export declare class ThemeStorageController {
90
90
  */
91
91
  setThemeDefaultScheme(scheme: ColorSchemeOptionType): void;
92
92
  setGeneratedPalettes(generatedPalettes: GeneratedPalettes): void;
93
+ /**
94
+ * Write the theme palette sheet to both in-memory state and providerStorage (namespaced localStorage)
95
+ * immediately. This ensures the theme is available for themeLoader on same-origin pages
96
+ * without waiting for the workspace storage proxy to be initialised.
97
+ */
98
+ setThemePaletteSheet(sheet: string): void;
93
99
  /**
94
100
  * Returns the current scheme
95
101
  * @returns 'light' | 'system' | 'dark'
@@ -4,10 +4,11 @@ export declare const getThemes: () => CustomThemes | null;
4
4
  export declare const getGeneratedPalettes: () => GeneratedPalettes;
5
5
  export declare const getThemePaletteSheet: () => string;
6
6
  export declare const getNotificationIndicatorColorsInternal: () => NotificationIndicatorColorsParsed;
7
+ export declare const isThemePreInitialised: () => boolean;
7
8
  /**
8
9
  * initTheming()
9
10
  * @param customThemes array of theme objects
10
- * Accepts an array of CustomThemes objects and stores it
11
- * @returns array of custom theme objects
11
+ * Accepts an array of CustomThemes objects and stores it.
12
+ * Sets themePreInitialised to true so subsequent calls are no-ops.
12
13
  */
13
- export default function initTheming(customThemes: CustomThemes | undefined): Promise<void>;
14
+ export declare const initTheming: (customThemes: CustomThemes | undefined) => Promise<void>;
@@ -46,18 +46,18 @@
46
46
  }
47
47
  ],
48
48
  "dexie": [
49
- {
50
- "type": "root-implicit",
51
- "version": "^4.0.11",
52
- "packageName": "dock3/package.json",
53
- "issuer": "dock3/src/api/idb.ts"
54
- },
55
49
  {
56
50
  "type": "explicit",
57
51
  "version": "^4.0.11",
58
52
  "packageName": "client-api-platform/package.json",
59
53
  "issuer": "client-api-platform/src/api/dock/idb.ts"
60
54
  },
55
+ {
56
+ "type": "root-implicit",
57
+ "version": "^4.0.11",
58
+ "packageName": "dock3/package.json",
59
+ "issuer": "dock3/src/api/idb.ts"
60
+ },
61
61
  {
62
62
  "type": "explicit",
63
63
  "version": "^4.0.11",