@openfin/workspace-platform 9.2.5 → 9.3.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/context-menu/index.d.ts +5 -5
- package/client-api-platform/src/api/workspaces/idb.d.ts +1 -1
- package/client-api-platform/src/init/dialogs.d.ts +2 -1
- package/common/src/utils/create-and-migrate-ibd-store.d.ts +2 -0
- package/common/src/utils/local-storage-key.d.ts +2 -1
- package/common/src/utils/modal-bounds.d.ts +2 -2
- package/common/src/utils/usage-register.d.ts +9 -0
- package/common/src/utils/window.d.ts +1 -2
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="@openfin/core" />
|
|
2
|
-
import { OpenGlobalContextMenuPayload, OpenGlobalContextMenuRequest, OpenPageTabContextMenuPayload, OpenPageTabContextMenuRequest, OpenSaveButtonContextMenuPayload, OpenSaveButtonContextMenuRequest, OpenViewTabContextMenuPayload, OpenViewTabContextMenuRequest } from '../../../../client-api-platform/src/shapes';
|
|
3
|
-
export declare function openGlobalContextMenuInternal(payload: OpenGlobalContextMenuRequest & {
|
|
2
|
+
import { OpenGlobalContextMenuPayload, OpenGlobalContextMenuRequest, OpenPageTabContextMenuPayload, OpenPageTabContextMenuRequest, OpenSaveButtonContextMenuPayload, OpenSaveButtonContextMenuRequest, OpenViewTabContextMenuPayload, OpenViewTabContextMenuRequest, WorkspacePlatformProvider } from '../../../../client-api-platform/src/shapes';
|
|
3
|
+
export declare function openGlobalContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenGlobalContextMenuRequest & {
|
|
4
4
|
identity: OpenFin.Identity;
|
|
5
5
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
6
6
|
export declare const openCommonContextMenu: (payload: OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload, callerIdentity: OpenFin.Identity) => Promise<void>;
|
|
7
|
-
export declare function openViewTabContextMenuInternal(payload: OpenViewTabContextMenuRequest & {
|
|
7
|
+
export declare function openViewTabContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenViewTabContextMenuRequest & {
|
|
8
8
|
identity: OpenFin.Identity;
|
|
9
9
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
10
|
-
export declare function openPageTabContextMenuInternal(payload: OpenPageTabContextMenuRequest & {
|
|
10
|
+
export declare function openPageTabContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenPageTabContextMenuRequest & {
|
|
11
11
|
identity: OpenFin.Identity;
|
|
12
12
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
13
|
-
export declare function openSaveButtonContextMenuInternal(payload: OpenSaveButtonContextMenuRequest & {
|
|
13
|
+
export declare function openSaveButtonContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenSaveButtonContextMenuRequest & {
|
|
14
14
|
identity: OpenFin.Identity;
|
|
15
15
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Workspace } from '../../../../client-api/src/shapes';
|
|
1
|
+
import { Workspace } from '../../../../client-api-platform/src/shapes';
|
|
2
2
|
export declare const store: import("idb-keyval").UseStore;
|
|
3
3
|
export declare function getWorkspace(id: string): Promise<Workspace>;
|
|
4
4
|
export declare function getWorkspaceList(filter?: string): Promise<Workspace[]>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="@openfin/core" />
|
|
1
2
|
import { ShowQuitPlatformDialogRequest } from '..';
|
|
2
|
-
export declare const showQuitPlatformDialogInternal: (req: ShowQuitPlatformDialogRequest) => Promise<void>;
|
|
3
|
+
export declare const showQuitPlatformDialogInternal: (req: ShowQuitPlatformDialogRequest, identity: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise<void>;
|
|
@@ -4,6 +4,7 @@ declare enum LocalStorageKey {
|
|
|
4
4
|
MachineName = "machineName",
|
|
5
5
|
NewTabPageLayout = "NewTabPageLayout",
|
|
6
6
|
NewTabPageSort = "NewTabPageSort",
|
|
7
|
-
DockPosition = "DockPosition"
|
|
7
|
+
DockPosition = "DockPosition",
|
|
8
|
+
HasMovedStore = "HasMovedStore"
|
|
8
9
|
}
|
|
9
10
|
export default LocalStorageKey;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="@openfin/core" />
|
|
2
2
|
import { ResponseModalConfig } from './menu-config';
|
|
3
|
-
import { Point } from './window';
|
|
4
3
|
/**
|
|
5
4
|
* returns the correct bounds for the response modal to be displayed at
|
|
6
5
|
* this will return the correct bounds regardless of whether the window is maximized
|
|
@@ -10,7 +9,7 @@ import { Point } from './window';
|
|
|
10
9
|
* @param centerOnMonitor whether the modal should be centered on the monitor
|
|
11
10
|
* @returns a point (top/left) as to where the window should be placed
|
|
12
11
|
*/
|
|
13
|
-
export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<
|
|
12
|
+
export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<OpenFin.Bounds>;
|
|
14
13
|
/**
|
|
15
14
|
* calculates the percenage of the window that is present within the monitor (float in range 0-1)
|
|
16
15
|
*
|
|
@@ -19,3 +18,4 @@ export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig[
|
|
|
19
18
|
*/
|
|
20
19
|
export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
|
|
21
20
|
export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
|
|
21
|
+
export declare function getResponseModalBoundsAndCenterParentIfModalOffScreen(modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean): Promise<OpenFin.Bounds>;
|
|
@@ -4,6 +4,15 @@ export interface RegisterUsageStatus {
|
|
|
4
4
|
allowed: boolean;
|
|
5
5
|
rejectionCode?: string;
|
|
6
6
|
}
|
|
7
|
+
export declare enum ComponentName {
|
|
8
|
+
Browser = "Browser",
|
|
9
|
+
Dock = "Dock",
|
|
10
|
+
Home = "Home",
|
|
11
|
+
Notification = "Notification",
|
|
12
|
+
Storefront = "Storefront",
|
|
13
|
+
Platform = "Platform",
|
|
14
|
+
Theming = "Theming"
|
|
15
|
+
}
|
|
7
16
|
export declare const registerBrowserUsage: (status: RegisterUsageStatus) => Promise<void>;
|
|
8
17
|
export declare const registerHomeUsage: (status: RegisterUsageStatus) => Promise<void>;
|
|
9
18
|
export declare const registerStorefrontUsage: (status: RegisterUsageStatus) => Promise<void>;
|
|
@@ -57,7 +57,7 @@ export declare const getCenterFromBounds: (bounds: OpenFin.WindowBounds) => Poin
|
|
|
57
57
|
* @param size height and width of the window
|
|
58
58
|
* @returns coords representing the left, top of window given the center point
|
|
59
59
|
*/
|
|
60
|
-
export declare const getBoundsFromCenter: (center: Point, size: Size) =>
|
|
60
|
+
export declare const getBoundsFromCenter: (center: Point, size: Size) => OpenFin.Bounds;
|
|
61
61
|
/**
|
|
62
62
|
* Get a wrapped OpenFin window.
|
|
63
63
|
*
|
|
@@ -153,7 +153,6 @@ export declare const isNotificationCenterRunning: () => Promise<boolean>;
|
|
|
153
153
|
export declare const isHomeWindowRunning: () => Promise<boolean>;
|
|
154
154
|
export declare const showAndFocusStorefront: () => Promise<void>;
|
|
155
155
|
export declare const showAndFocusDock: () => Promise<void>;
|
|
156
|
-
export declare const centerWindowIfOffScreen: (windowIdentity?: WindowIdentity) => Promise<void>;
|
|
157
156
|
export declare const getDisableMultiplePagesOption: (identity: WindowIdentity) => Promise<any>;
|
|
158
157
|
export declare const getIsLockedOption: (identity: WindowIdentity) => Promise<any>;
|
|
159
158
|
export declare const getPlatformWindowTitle: (identity: WindowIdentity) => Promise<any>;
|