@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.
@@ -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 | OpenFin.Identity | import("@openfin/core/src/api/application").Application | import("@openfin/core/src/api/platform").Platform>;
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: GlobalContextMenuItemData;
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: PageTabContextMenuItemData;
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: ViewTabMenuData;
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: SaveButtonContextMenuItemData;
310
+ data?: SaveButtonContextMenuItemData;
308
311
  }
309
312
  /**
310
313
  * Request for opening a context menu from save button in Browser.
@@ -4,7 +4,7 @@ export declare enum ApplicationUUID {
4
4
  * The UUID of workspace.
5
5
  * Home is a part of this application.
6
6
  */
7
- Workspace = "openfin-workspace"
7
+ Workspace = "openfin-browser"
8
8
  }
9
9
  export interface ApplicationEvent {
10
10
  viewIdentity?: OpenFin.Identity;
@@ -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>;