@openfin/workspace-platform 10.1.0 → 10.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/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/api/pages/index.d.ts +0 -1
- package/client-api-platform/src/shapes.d.ts +7 -4
- package/common/src/utils/application.d.ts +1 -1
- package/common/src/utils/{response-modal-bounds.d.ts → modal-bounds.d.ts} +1 -0
- package/index.js +10 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,4 +5,4 @@ import type { LaunchAppRequest } from '../shapes';
|
|
|
5
5
|
* @param app the app directory entry.
|
|
6
6
|
* @param opts launch options.
|
|
7
7
|
*/
|
|
8
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | import("@openfin/core/src/api/view").View |
|
|
8
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | import("@openfin/core/src/api/view").View | import("@openfin/core/src/api/application").Application | import("@openfin/core/src/api/platform").Platform | OpenFin.Identity>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@openfin/core" />
|
|
2
1
|
import type { AttachedPage, AttachPagesToWindowPayload, DetachPagesFromWindowPayload, ReorderPagesForWindowPayload, SetActivePageForWindowPayload, UpdatePageForWindowPayload } from '../../../../common/src/api/pages/shapes';
|
|
3
2
|
import type { CreateSavedPageRequest, Page, UpdateSavedPageRequest } from '../../../../client-api-platform/src/shapes';
|
|
4
3
|
/**
|
|
@@ -85,7 +85,7 @@ export interface WorkspaceContextMenuItemData extends GlobalContextMenuItemData
|
|
|
85
85
|
}
|
|
86
86
|
/**Configuration of an option in the global context menu */
|
|
87
87
|
export interface GlobalContextMenuItemTemplate extends Exclude<OpenFin.MenuItemTemplate, 'data'> {
|
|
88
|
-
data
|
|
88
|
+
data?: GlobalContextMenuItemData;
|
|
89
89
|
}
|
|
90
90
|
/**Shape of the data property of a page tab context menu template item */
|
|
91
91
|
export interface PageTabContextMenuItemData extends ContextMenuItemData {
|
|
@@ -93,7 +93,7 @@ export interface PageTabContextMenuItemData extends ContextMenuItemData {
|
|
|
93
93
|
}
|
|
94
94
|
/**Configuration of an option in the page tab context menu */
|
|
95
95
|
export interface PageTabContextMenuItemTemplate extends OpenFin.MenuItemTemplate {
|
|
96
|
-
data
|
|
96
|
+
data?: PageTabContextMenuItemData;
|
|
97
97
|
}
|
|
98
98
|
/**Payload received by a Custom Action that is invoked by a custom global context menu option */
|
|
99
99
|
export interface GlobalContextMenuOptionActionPayload {
|
|
@@ -125,7 +125,7 @@ export declare type OpenGlobalContextMenuPayload = OpenGlobalContextMenuRequest
|
|
|
125
125
|
callback: (data: GlobalContextMenuItemData, payload: OpenGlobalContextMenuPayload) => any;
|
|
126
126
|
};
|
|
127
127
|
export interface ViewTabContextMenuTemplate extends OpenFin.MenuItemTemplate {
|
|
128
|
-
data
|
|
128
|
+
data?: ViewTabMenuData;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Request for opening a view tab context menu in Browser.
|
|
@@ -162,6 +162,9 @@ export declare enum ViewTabMenuOptionType {
|
|
|
162
162
|
CloseViews = "CloseTab",
|
|
163
163
|
AddToChannel = "AddToChannel",
|
|
164
164
|
RemoveFromChannel = "RemoveFromChannel",
|
|
165
|
+
Back = "Back",
|
|
166
|
+
Forward = "Forward",
|
|
167
|
+
Print = "Print",
|
|
165
168
|
Custom = "Custom"
|
|
166
169
|
}
|
|
167
170
|
export interface ViewTabMenuData {
|
|
@@ -304,7 +307,7 @@ export interface SaveButtonContextMenuItemData extends ContextMenuItemData {
|
|
|
304
307
|
}
|
|
305
308
|
/**Configuration of an option in the save button context menu */
|
|
306
309
|
export interface SaveButtonContextMenuItemTemplate extends OpenFin.MenuItemTemplate {
|
|
307
|
-
data
|
|
310
|
+
data?: SaveButtonContextMenuItemData;
|
|
308
311
|
}
|
|
309
312
|
/**
|
|
310
313
|
* Request for opening a context menu from save button in Browser.
|
|
@@ -18,3 +18,4 @@ export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig[
|
|
|
18
18
|
* @param monitor the monitor to check against
|
|
19
19
|
*/
|
|
20
20
|
export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
|
|
21
|
+
export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
|