@openfin/workspace-platform 20.1.3 → 20.2.0
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/shapes.d.ts +1 -1
- package/common/src/utils/layout.d.ts +7 -0
- package/common/src/utils/menu-config.d.ts +1 -0
- package/common/src/utils/menu-window-provider.d.ts +2 -1
- package/common/src/utils/popup-window.d.ts +0 -6
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/workspace_platform.zip +0 -0
|
@@ -1131,7 +1131,7 @@ export interface BrowserWindowFactory {
|
|
|
1131
1131
|
* const windowIdentity = await workspacePlatform.Browser.getLastFocusedWindow();
|
|
1132
1132
|
* ```
|
|
1133
1133
|
*/
|
|
1134
|
-
getLastFocusedWindow(): Promise<OpenFin.Identity>;
|
|
1134
|
+
getLastFocusedWindow(): Promise<OpenFin.Identity | undefined>;
|
|
1135
1135
|
}
|
|
1136
1136
|
/**
|
|
1137
1137
|
* API for interacting with persistent storage.
|
|
@@ -36,6 +36,13 @@ export type LayoutDOMEvent = {
|
|
|
36
36
|
};
|
|
37
37
|
export type LayoutDOMEventListener = (ev: LayoutDOMEvent) => void;
|
|
38
38
|
export declare const getFirstActiveViewFromLayout: (identity: OpenFin.LayoutIdentity) => Promise<OpenFin.Identity>;
|
|
39
|
+
/**
|
|
40
|
+
* Recursively clones a layout object, calling a passed callback on each `componentState` in the tree.
|
|
41
|
+
* @param node Either the layout object itself, or one of the items in its tree.
|
|
42
|
+
* @param callback Callback to be called on each component's `componentState`
|
|
43
|
+
* @returns A mapped copy of the layout
|
|
44
|
+
*/
|
|
45
|
+
export declare const mapLayoutViewComponents: (node: any, callback: (arg0: any) => any) => any;
|
|
39
46
|
/**
|
|
40
47
|
* Copies the componentState and generates a name if it's not there
|
|
41
48
|
* @param componentState view's componentState in the layout object, corresponds to View options
|
|
@@ -3,6 +3,7 @@ import type { OptionalExceptFor } from '../../../common/src/utils/types';
|
|
|
3
3
|
export interface MenuConfig {
|
|
4
4
|
windowOptions: OptionalExceptFor<OpenFin.WindowOptions, 'url' | 'name' | 'defaultHeight' | 'defaultWidth'>;
|
|
5
5
|
title: string;
|
|
6
|
+
parameters?: URLSearchParams;
|
|
6
7
|
}
|
|
7
8
|
export interface RightMenuConfig extends MenuConfig {
|
|
8
9
|
windowOffset?: {
|
|
@@ -35,13 +35,14 @@ export interface ShowChildOptions {
|
|
|
35
35
|
export interface ResponseModalOptions {
|
|
36
36
|
options: WindowOptionsWithBounds;
|
|
37
37
|
content: ResponseModalContent;
|
|
38
|
+
parameters?: URLSearchParams;
|
|
38
39
|
}
|
|
39
40
|
export declare function createMenuPosition(windowOptions: OptionalExceptFor<OpenFin.WindowOptions, 'x' | 'y' | 'defaultWidth'>): Promise<{
|
|
40
41
|
top: number;
|
|
41
42
|
left: number;
|
|
42
43
|
}>;
|
|
43
44
|
export declare function showChildWindow({ options, parameters }: ShowChildOptions): Promise<OpenFin.Window>;
|
|
44
|
-
export declare const waitForModalResponse: ({ options, content }: ResponseModalOptions) => Promise<{
|
|
45
|
+
export declare const waitForModalResponse: ({ options, content, parameters }: ResponseModalOptions) => Promise<{
|
|
45
46
|
data: ModalResponseEvent['data'];
|
|
46
47
|
}>;
|
|
47
48
|
export {};
|
|
@@ -8,12 +8,6 @@ export declare enum SaveMenuType {
|
|
|
8
8
|
Save = "Save",
|
|
9
9
|
SaveAs = "SaveAs"
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* getSaveContextMenuTemplate
|
|
13
|
-
* @param saveMenuType accepts SaveMenuTypes, default SaveMenuType.Save
|
|
14
|
-
* @returns an array of objects for context menu
|
|
15
|
-
*/
|
|
16
|
-
export declare const getSaveContextMenuTemplate: (saveMenuType?: SaveMenuType) => OpenFin.MenuItemTemplate[];
|
|
17
11
|
export declare function showModalWin<T extends keyof UserMenuParams>(params: UserMenuParams[T], windowOpts: OptionalExceptFor<OpenFin.WindowOptions, 'x' | 'y' | 'defaultWidth' | 'url' | 'name'>): Promise<OpenFin.Window>;
|
|
18
12
|
export type SearchMenuChannelViewResized = {
|
|
19
13
|
type: 'view-resized';
|