@openfin/workspace-platform 19.1.7 → 19.1.9

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,4 +1,4 @@
1
1
  import OpenFin from '@openfin/core';
2
2
  import type { AttachedPage, AttachedPageInternal } from '../../../../common/src/api/pages/shapes';
3
- import type { BrowserInitConfig } from '../..';
3
+ import { BrowserInitConfig } from '../..';
4
4
  export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig, 'defaultPageOptions' | 'defaultViewOptions' | 'defaultWindowOptions'>, overrideOptions?: OpenFin.PlatformWindowCreationOptions) => Promise<AttachedPageInternal[]>;
@@ -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
  *
@@ -1280,8 +1282,11 @@ export interface WorkspacePlatformStorage {
1280
1282
  * const myWorkspace = await workspacePlatform.Storage.getWorkspace('myWorkspaceId');
1281
1283
  * ```
1282
1284
  * @param id the id of the workspace to get.
1285
+ *
1286
+ * * @returns a workspace object or undefined if workspace doesn't exist.
1287
+ *
1283
1288
  */
1284
- getWorkspace(id: string): Promise<Workspace>;
1289
+ getWorkspace(id: string): Promise<Workspace | undefined>;
1285
1290
  /**
1286
1291
  * Create a workspace in persistent storage.
1287
1292
  *
@@ -1521,8 +1526,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
1521
1526
  /**
1522
1527
  * Implementation for getting a single page in persistent storage.
1523
1528
  * @param id
1529
+ *
1530
+ * @returns a page object or undefined if page doesn't exist.
1524
1531
  */
1525
- getSavedPage(id: string): Promise<Page>;
1532
+ getSavedPage(id: string): Promise<Page | undefined>;
1526
1533
  /**
1527
1534
  * Implementation for creating a saved page in persistent storage.
1528
1535
  * @param req the create saved page request.
@@ -1551,8 +1558,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
1551
1558
  /**
1552
1559
  * Implementation for getting a single workspace in persistent storage.
1553
1560
  * @param id
1561
+ *
1562
+ * * @returns a workspace object or undefined if workspace doesn't exist.
1554
1563
  */
1555
- getSavedWorkspace(id: string): Promise<Workspace>;
1564
+ getSavedWorkspace(id: string): Promise<Workspace | undefined>;
1556
1565
  /**
1557
1566
  * Implementation for creating a saved workspace in persistent storage.
1558
1567
  * @param req the create saved workspace request.
@@ -19,12 +19,14 @@ export interface BaseCustomButtonConfig {
19
19
  iconUrl?: string;
20
20
  parentHover?: boolean;
21
21
  }
22
- export interface BaseCustomDropdownItem extends BaseCustomButtonConfig {
22
+ export interface BaseCustomDropdownItem extends Omit<BaseCustomButtonConfig, 'tooltip'> {
23
+ tooltip?: string;
23
24
  /** Is this dropdown item checked? Any value other than undefined will decorate the dropdown option as a checkbox option. */
24
25
  checked?: boolean;
25
26
  /** icon URL for icon image */
26
27
  action?: any;
27
28
  options?: (BaseCustomDropdownItem | BaseCustomDropdownConfig)[];
29
+ separator?: boolean;
28
30
  }
29
31
  export type BaseCustomDropdownItems = BaseCustomDropdownItem[] | (() => Promise<BaseCustomDropdownItem[]>);
30
32
  /**