@openfin/workspace 19.1.6 → 19.1.8

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.
@@ -1334,8 +1334,10 @@ export interface WorkspacePlatformStorage {
1334
1334
  * const myPage = await workspacePlatform.Storage.getPage('myPageId');
1335
1335
  * ```
1336
1336
  * @param id the id of the page to get.
1337
+ *
1338
+ * * @returns a page object or undefined if page doesn't exist.
1337
1339
  */
1338
- getPage(id: string): Promise<Page>;
1340
+ getPage(id: string): Promise<Page | undefined>;
1339
1341
  /**
1340
1342
  * Create a page in persistent storage.
1341
1343
  *
@@ -1738,8 +1740,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
1738
1740
  /**
1739
1741
  * Implementation for getting a single page in persistent storage.
1740
1742
  * @param id
1743
+ *
1744
+ * @returns a page object or undefined if page doesn't exist.
1741
1745
  */
1742
- getSavedPage(id: string): Promise<Page>;
1746
+ getSavedPage(id: string): Promise<Page | undefined>;
1743
1747
  /**
1744
1748
  * Implementation for creating a saved page in persistent storage.
1745
1749
  * @param req the create saved page request.
@@ -121,6 +121,10 @@ export interface CustomThemeOptionsWithScheme extends BaseThemeOptions {
121
121
  notificationIndicatorColors?: NotificationIndicatorColorsWithScheme;
122
122
  }
123
123
  export type CustomThemes = (CustomThemeOptions | CustomThemeOptionsWithScheme)[];
124
+ export interface PreloadedThemeData {
125
+ themes: CustomThemes;
126
+ selectedScheme: ColorSchemeOptionType;
127
+ }
124
128
  export interface DefaultPaletteSet {
125
129
  brandPrimary: string;
126
130
  brandSecondary: string;