@openfin/workspace-platform 18.1.10 → 18.1.12
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 +2 -0
- package/common/src/api/pages/shapes.d.ts +1 -0
- package/common/src/utils/indicators/browser.d.ts +5 -2
- package/common/src/utils/indicators/helper.d.ts +1 -1
- package/common/src/utils/workspace-modals.d.ts +8 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1700,6 +1700,8 @@ export interface ApplyWorkspaceOptions {
|
|
|
1700
1700
|
* Options to apply the workspace snapshot with.
|
|
1701
1701
|
*/
|
|
1702
1702
|
applySnapshotOptions?: ApplySnapshotOptions;
|
|
1703
|
+
/** Should the dialog modal be centered on the monitor instead of on top of the platform window */
|
|
1704
|
+
shouldCenterModalOnMonitor?: boolean;
|
|
1703
1705
|
}
|
|
1704
1706
|
/**
|
|
1705
1707
|
* Options used within the {@link WorkspacePlatformModule.applyWorkspace applyWorkspace} method.
|
|
@@ -131,6 +131,7 @@ export interface AttachPagesToWindowPayload {
|
|
|
131
131
|
identity: OpenFin.Identity;
|
|
132
132
|
/** The pages to attach. */
|
|
133
133
|
pages: PageWithUpdatableRuntimeAttribs[];
|
|
134
|
+
insertionIndex?: number;
|
|
134
135
|
}
|
|
135
136
|
export interface ExtendedAttachPagesToWindowPayload extends AttachPagesToWindowPayload {
|
|
136
137
|
/** The pages to attach. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
1
2
|
import { IndicatorType } from '../../../../common/src/components/Indicator/Indicator.constants';
|
|
2
3
|
export declare enum BrowserIndicatorIcon {
|
|
3
4
|
Locked = "LockClosedIcon",
|
|
@@ -7,12 +8,14 @@ export interface ShowBrowserIndicatorPayload {
|
|
|
7
8
|
type: IndicatorType;
|
|
8
9
|
message: string;
|
|
9
10
|
parentBrowserName?: string;
|
|
11
|
+
secondaryMessage?: string;
|
|
10
12
|
icon?: BrowserIndicatorIcon;
|
|
13
|
+
isEnterprise?: boolean;
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
16
|
* Creates a window containing a visual indicator contained in a Browser Window
|
|
14
17
|
*/
|
|
15
|
-
export declare function showBrowserIndicator(type: IndicatorType, message: string, parentBrowserName?: string, icon?: BrowserIndicatorIcon): Promise<void>;
|
|
18
|
+
export declare function showBrowserIndicator(type: IndicatorType, message: string, parentBrowserName?: string, secondaryMessage?: string, icon?: BrowserIndicatorIcon, isEnterprise?: boolean): Promise<void>;
|
|
16
19
|
/**
|
|
17
20
|
* Creates a window containing an error indicator
|
|
18
21
|
*/
|
|
@@ -20,7 +23,7 @@ export declare function showBrowserError(message: string, parentBrowserName?: st
|
|
|
20
23
|
/**
|
|
21
24
|
* Creates a window containing a success indicator
|
|
22
25
|
*/
|
|
23
|
-
export declare function showBrowserSuccess(message: string,
|
|
26
|
+
export declare function showBrowserSuccess(message: string, identity?: OpenFin.Identity, secondaryMessage?: string, icon?: BrowserIndicatorIcon): Promise<void>;
|
|
24
27
|
/**
|
|
25
28
|
* Creates a window containing an info indicator
|
|
26
29
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
export default function makeShowIndicator(opts?: OpenFin.PlatformWindowCreationOptions): (namespace: string, url: string, message: string, type: string) => Promise<void>;
|
|
2
|
+
export default function makeShowIndicator(opts?: OpenFin.PlatformWindowCreationOptions): (namespace: string, url: string, message: string, type: string, secondaryMessage: string) => Promise<void>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { ResponseModalConfig } from '../../../common/src/utils/menu-config';
|
|
3
3
|
export declare const restoreChangesMenu: (windowIdentity: OpenFin.Identity) => Promise<ResponseModalConfig>;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param targetWindowIdentity Parent or Current OpenFin Window Identity
|
|
7
|
+
* @param workspaceTitle The platform label that was selected to be switched to
|
|
8
|
+
* @param shouldCenterOnMonitor Boolean - determines if modal window is centered on the monitor.
|
|
9
|
+
* @returns Boolean - Affirmative or Negative response from user
|
|
10
|
+
*/
|
|
11
|
+
export declare const showSwitchWorkspaceModal: (targetWindowIdentity: OpenFin.Identity | undefined, workspaceTitle: string, shouldCenterOnMonitor?: boolean) => Promise<boolean>;
|
|
5
12
|
export declare const showDeleteWorkspaceModal: (windowIdentity: OpenFin.Identity, workspaceTitle: string) => Promise<boolean>;
|
|
6
13
|
/**
|
|
7
14
|
*
|