@openfin/workspace-platform 19.1.8 → 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
|
|
3
|
+
import { BrowserInitConfig } from '../..';
|
|
4
4
|
export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig, 'defaultPageOptions' | 'defaultViewOptions' | 'defaultWindowOptions'>, overrideOptions?: OpenFin.PlatformWindowCreationOptions) => Promise<AttachedPageInternal[]>;
|
|
@@ -1282,8 +1282,11 @@ export interface WorkspacePlatformStorage {
|
|
|
1282
1282
|
* const myWorkspace = await workspacePlatform.Storage.getWorkspace('myWorkspaceId');
|
|
1283
1283
|
* ```
|
|
1284
1284
|
* @param id the id of the workspace to get.
|
|
1285
|
+
*
|
|
1286
|
+
* * @returns a workspace object or undefined if workspace doesn't exist.
|
|
1287
|
+
*
|
|
1285
1288
|
*/
|
|
1286
|
-
getWorkspace(id: string): Promise<Workspace>;
|
|
1289
|
+
getWorkspace(id: string): Promise<Workspace | undefined>;
|
|
1287
1290
|
/**
|
|
1288
1291
|
* Create a workspace in persistent storage.
|
|
1289
1292
|
*
|
|
@@ -1555,8 +1558,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1555
1558
|
/**
|
|
1556
1559
|
* Implementation for getting a single workspace in persistent storage.
|
|
1557
1560
|
* @param id
|
|
1561
|
+
*
|
|
1562
|
+
* * @returns a workspace object or undefined if workspace doesn't exist.
|
|
1558
1563
|
*/
|
|
1559
|
-
getSavedWorkspace(id: string): Promise<Workspace>;
|
|
1564
|
+
getSavedWorkspace(id: string): Promise<Workspace | undefined>;
|
|
1560
1565
|
/**
|
|
1561
1566
|
* Implementation for creating a saved workspace in persistent storage.
|
|
1562
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
|
/**
|