@openfin/workspace-platform 9.1.2 → 9.1.5

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.
@@ -7,7 +7,7 @@ export declare function getLastFocusedBrowserWindow(): Promise<OpenFin.Identity
7
7
  /**
8
8
  * Set the OpenFin identity of the last focused browser window.
9
9
  */
10
- export declare function setLastFocusedBrowserWindow(identity?: OpenFin.Identity): void;
10
+ export declare function setLastFocusedBrowserWindow(identity?: OpenFin.Identity): Promise<void>;
11
11
  /**
12
12
  * Listen for a browser window to be focused.
13
13
  * When a browser window is focused, store it in local storage as the last focused browser window.
@@ -1417,12 +1417,9 @@ export interface UpdateSavedWorkspaceRequest {
1417
1417
  * @private
1418
1418
  */
1419
1419
  export declare type OpenSaveMenuRequest = {
1420
- x?: number;
1421
- y?: number;
1422
- } & ({
1423
1420
  menuType: SaveModalType.SAVE_PAGE | SaveModalType.SAVE_PAGE_AS | SaveModalType.RENAME_PAGE;
1424
1421
  id: string;
1425
1422
  } | {
1426
1423
  menuType: SaveModalType.SAVE_WORKSPACE | SaveModalType.SAVE_WORKSPACE_AS | SaveModalType.RENAME_WORKSPACE;
1427
1424
  id?: never;
1428
- });
1425
+ };
@@ -1,4 +1,3 @@
1
- /// <reference types="@openfin/core" />
2
1
  import type { ThemePaletteSet } from '@openfin/ui-library';
3
2
  export interface ComputedThemes extends Array<ComputedTheme> {
4
3
  }
@@ -2,7 +2,9 @@
2
2
  import { ModalResponseContent, ResponseModalConfig } from '../../../common/src/utils/menu-config';
3
3
  import { Listener } from '../../../common/src/utils/shared-emitter';
4
4
  import type { OptionalExceptFor } from '../../../common/src/utils/types';
5
+ import { _Window } from '@openfin/core/src/api/window';
5
6
  export declare enum MenuEvent {
7
+ Ready = "ready",
6
8
  Update = "update",
7
9
  Response = "response"
8
10
  }
@@ -35,7 +37,7 @@ export declare function createMenuPosition(windowOptions: OptionalExceptFor<Open
35
37
  top: number;
36
38
  left: number;
37
39
  }>;
38
- export declare function showChildWindow({ options, parameters }: ShowChildOptions, shouldCenterOnMonitor?: boolean): Promise<import("@openfin/core/src/api/window")._Window>;
40
+ export declare function showChildWindow({ options, parameters }: ShowChildOptions, shouldCenterOnMonitor?: boolean): Promise<_Window>;
39
41
  export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, shouldCenterOnMonitor?: boolean) => Promise<import("@common/utils/window").Point>;
40
42
  export declare const waitForModalResponse: ({ options, content }: ResponseModalOptions, shouldCenterOnMonitor?: boolean) => Promise<{
41
43
  data: ModalResponse;
@@ -7,7 +7,8 @@ export declare enum WindowName {
7
7
  HomeInternal = "openfin-home-internal",
8
8
  BrowserMenu = "openfin-browser-menu",
9
9
  BrowserIndicator = "openfin-browser-indicator",
10
- BrowserWindow = "internal-generated-window"
10
+ BrowserWindow = "internal-generated-window",
11
+ ClassicWindow = "internal-generated-classic-window"
11
12
  }
12
13
  export declare enum WindowEvent {
13
14
  Shown = "shown",
@@ -121,11 +122,11 @@ export declare function restoreWindowSize(): Promise<void>;
121
122
  export declare function setSize(width: number, height: number): Promise<void>;
122
123
  export declare function animateSize(width: number, height: number): Promise<void>;
123
124
  /**
124
- * Returns true if the window name is that of a browser window.
125
- * @param name the window name.
126
- * @returns true if the name is that of a browser window's.
125
+ * Returns true if the window identity is that of a browser window.
126
+ * @param identity the window identity
127
+ * @returns boolean
127
128
  */
128
- export declare const isBrowserWindow: (name: string) => boolean;
129
+ export declare const isBrowserWindow: (identity: OpenFin.Identity) => Promise<boolean>;
129
130
  /**
130
131
  * Force document body size. Called when resizing or on scaling changes.
131
132
  */