@openfin/workspace-platform 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.
@@ -1135,8 +1135,10 @@ export interface WorkspacePlatformStorage {
1135
1135
  * const myPage = await workspacePlatform.Storage.getPage('myPageId');
1136
1136
  * ```
1137
1137
  * @param id the id of the page to get.
1138
+ *
1139
+ * * @returns a page object or undefined if page doesn't exist.
1138
1140
  */
1139
- getPage(id: string): Promise<Page>;
1141
+ getPage(id: string): Promise<Page | undefined>;
1140
1142
  /**
1141
1143
  * Create a page in persistent storage.
1142
1144
  *
@@ -1521,8 +1523,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
1521
1523
  /**
1522
1524
  * Implementation for getting a single page in persistent storage.
1523
1525
  * @param id
1526
+ *
1527
+ * @returns a page object or undefined if page doesn't exist.
1524
1528
  */
1525
- getSavedPage(id: string): Promise<Page>;
1529
+ getSavedPage(id: string): Promise<Page | undefined>;
1526
1530
  /**
1527
1531
  * Implementation for creating a saved page in persistent storage.
1528
1532
  * @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;