@openfin/workspace 19.1.8 → 19.1.10
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/browser-defaults.d.ts +2 -2
- package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +7 -2
- 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,9 +1,9 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PreloadedThemeData } from '../../../../common/src/api/theming';
|
|
3
3
|
import { BrowserInitConfig } from '../../../../client-api-platform/src/shapes';
|
|
4
4
|
export declare const DEFAULT_BROWSER_URL: string;
|
|
5
5
|
export declare const ENTERPRISE_LANDING_PAGE_URL: string;
|
|
6
6
|
/**
|
|
7
7
|
* Applies default options to the creation of browser windows.
|
|
8
8
|
*/
|
|
9
|
-
export declare
|
|
9
|
+
export declare function applyBrowserDefaults(options: OpenFin.PlatformWindowCreationOptions, initOptions: Pick<BrowserInitConfig, 'defaultWindowOptions' | 'defaultPageOptions' | 'defaultViewOptions'> | undefined, themeData?: PreloadedThemeData): Promise<OpenFin.PlatformWindowCreationOptions>;
|
|
@@ -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[]>;
|
|
@@ -1481,8 +1481,11 @@ export interface WorkspacePlatformStorage {
|
|
|
1481
1481
|
* const myWorkspace = await workspacePlatform.Storage.getWorkspace('myWorkspaceId');
|
|
1482
1482
|
* ```
|
|
1483
1483
|
* @param id the id of the workspace to get.
|
|
1484
|
+
*
|
|
1485
|
+
* * @returns a workspace object or undefined if workspace doesn't exist.
|
|
1486
|
+
*
|
|
1484
1487
|
*/
|
|
1485
|
-
getWorkspace(id: string): Promise<Workspace>;
|
|
1488
|
+
getWorkspace(id: string): Promise<Workspace | undefined>;
|
|
1486
1489
|
/**
|
|
1487
1490
|
* Create a workspace in persistent storage.
|
|
1488
1491
|
*
|
|
@@ -1772,8 +1775,10 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1772
1775
|
/**
|
|
1773
1776
|
* Implementation for getting a single workspace in persistent storage.
|
|
1774
1777
|
* @param id
|
|
1778
|
+
*
|
|
1779
|
+
* * @returns a workspace object or undefined if workspace doesn't exist.
|
|
1775
1780
|
*/
|
|
1776
|
-
getSavedWorkspace(id: string): Promise<Workspace>;
|
|
1781
|
+
getSavedWorkspace(id: string): Promise<Workspace | undefined>;
|
|
1777
1782
|
/**
|
|
1778
1783
|
* Implementation for creating a saved workspace in persistent storage.
|
|
1779
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
|
/**
|