@openfin/workspace 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.
- package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +13 -4
- package/common/src/api/action.d.ts +3 -1
- package/home.js +2 -2
- package/home.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/notifications.js +2 -2
- package/notifications.js.map +1 -1
- package/package.json +1 -1
- package/store.js +2 -2
- package/store.js.map +1 -1
|
@@ -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[]>;
|
|
@@ -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
|
*
|
|
@@ -1479,8 +1481,11 @@ export interface WorkspacePlatformStorage {
|
|
|
1479
1481
|
* const myWorkspace = await workspacePlatform.Storage.getWorkspace('myWorkspaceId');
|
|
1480
1482
|
* ```
|
|
1481
1483
|
* @param id the id of the workspace to get.
|
|
1484
|
+
*
|
|
1485
|
+
* * @returns a workspace object or undefined if workspace doesn't exist.
|
|
1486
|
+
*
|
|
1482
1487
|
*/
|
|
1483
|
-
getWorkspace(id: string): Promise<Workspace>;
|
|
1488
|
+
getWorkspace(id: string): Promise<Workspace | undefined>;
|
|
1484
1489
|
/**
|
|
1485
1490
|
* Create a workspace in persistent storage.
|
|
1486
1491
|
*
|
|
@@ -1738,8 +1743,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1738
1743
|
/**
|
|
1739
1744
|
* Implementation for getting a single page in persistent storage.
|
|
1740
1745
|
* @param id
|
|
1746
|
+
*
|
|
1747
|
+
* @returns a page object or undefined if page doesn't exist.
|
|
1741
1748
|
*/
|
|
1742
|
-
getSavedPage(id: string): Promise<Page>;
|
|
1749
|
+
getSavedPage(id: string): Promise<Page | undefined>;
|
|
1743
1750
|
/**
|
|
1744
1751
|
* Implementation for creating a saved page in persistent storage.
|
|
1745
1752
|
* @param req the create saved page request.
|
|
@@ -1768,8 +1775,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1768
1775
|
/**
|
|
1769
1776
|
* Implementation for getting a single workspace in persistent storage.
|
|
1770
1777
|
* @param id
|
|
1778
|
+
*
|
|
1779
|
+
* * @returns a workspace object or undefined if workspace doesn't exist.
|
|
1771
1780
|
*/
|
|
1772
|
-
getSavedWorkspace(id: string): Promise<Workspace>;
|
|
1781
|
+
getSavedWorkspace(id: string): Promise<Workspace | undefined>;
|
|
1773
1782
|
/**
|
|
1774
1783
|
* Implementation for creating a saved workspace in persistent storage.
|
|
1775
1784
|
* @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
|
/**
|