@openfin/workspace-platform 18.0.4 → 18.0.6
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.
|
@@ -10,6 +10,13 @@ export declare const getCloseWindow: () => {
|
|
|
10
10
|
type: WP.GlobalContextMenuOptionType;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
export declare const getQuitPlatform: () => {
|
|
14
|
+
type: MenuItemType;
|
|
15
|
+
label: string;
|
|
16
|
+
data: {
|
|
17
|
+
type: WP.GlobalContextMenuOptionType;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
13
20
|
export declare const newWindow: () => {
|
|
14
21
|
type: MenuItemType;
|
|
15
22
|
label: string;
|
|
@@ -60,6 +67,7 @@ export declare const saveWorkspaceAs: () => {
|
|
|
60
67
|
type: WP.GlobalContextMenuOptionType;
|
|
61
68
|
};
|
|
62
69
|
};
|
|
70
|
+
export declare const printMenuOptions: (isViewSelected: boolean) => Promise<GlobalContextMenuItemTemplate>;
|
|
63
71
|
export declare const renameWorkspace: () => {
|
|
64
72
|
type: MenuItemType;
|
|
65
73
|
label: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
3
|
+
import { WindowIdentity } from './window';
|
|
3
4
|
export type LayoutDOMEventType =
|
|
4
5
|
/**
|
|
5
6
|
* Fired when a tab is created in a container. (Emmitted by ??)
|
|
@@ -12,11 +13,11 @@ export type LayoutDOMEventType =
|
|
|
12
13
|
/**
|
|
13
14
|
* Fired when the layout container is ready to be used. (Emitted by us)
|
|
14
15
|
*/
|
|
15
|
-
| 'container-resized';
|
|
16
|
+
| 'container-resized' | 'tab-closed';
|
|
16
17
|
export type LayoutDOMEvent = {
|
|
17
18
|
type: Extract<LayoutDOMEventType, 'container-resized'>;
|
|
18
19
|
} | {
|
|
19
|
-
type: Extract<LayoutDOMEventType, 'tab-created'>;
|
|
20
|
+
type: Extract<LayoutDOMEventType, 'tab-created' | 'tab-closed'>;
|
|
20
21
|
detail: {
|
|
21
22
|
containerSelector: string;
|
|
22
23
|
tabSelector: string;
|
|
@@ -24,8 +25,10 @@ export type LayoutDOMEvent = {
|
|
|
24
25
|
topic: string;
|
|
25
26
|
type: string;
|
|
26
27
|
uuid: string;
|
|
28
|
+
originalElement: HTMLElement;
|
|
27
29
|
};
|
|
28
30
|
isInitialized: boolean;
|
|
31
|
+
target: HTMLElement;
|
|
29
32
|
} | {
|
|
30
33
|
type: Extract<LayoutDOMEventType, 'tabs-list-resized'>;
|
|
31
34
|
};
|
|
@@ -62,6 +65,7 @@ export declare const cloneViewComponentWithoutName: (componentState: any) => any
|
|
|
62
65
|
export declare const cloneLayoutAndRemoveNames: (layout: PageLayout) => any;
|
|
63
66
|
export declare const mapContentComponentState: (content: OpenFin.LayoutContent) => OpenFin.LayoutComponent['componentState'][];
|
|
64
67
|
export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
|
|
68
|
+
export declare const layoutNameInitializedMap: Map<string, boolean>;
|
|
65
69
|
export declare const isLayoutTabActive: (tabSelector: string) => boolean;
|
|
66
70
|
export declare const containerId = "layout_container";
|
|
67
71
|
export declare const viewTabslistSelectors = ".lm_tabs";
|
|
@@ -100,3 +104,4 @@ export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) =>
|
|
|
100
104
|
*/
|
|
101
105
|
export declare const countViews: (node: OpenFin.LayoutContent) => number;
|
|
102
106
|
export declare const checkSingleViewPage: () => Promise<void>;
|
|
107
|
+
export declare const findPageForView: (viewName: string, browserWindowIdentity?: WindowIdentity) => Promise<AttachedPage | undefined>;
|
|
@@ -11,5 +11,6 @@ export declare const showDeleteWorkspaceModal: (windowIdentity: OpenFin.Identity
|
|
|
11
11
|
* @returns Boolean - Affirmative or Negative response from user
|
|
12
12
|
*/
|
|
13
13
|
export declare const showPlatformQuitModal: (windowIdentity: OpenFin.Identity, workspaceTitle: string, shouldCenterOnMonitor?: boolean) => Promise<boolean>;
|
|
14
|
+
export declare const showQuitBrowserModal: (windowIdentity: OpenFin.Identity) => Promise<boolean>;
|
|
14
15
|
export declare const showRestoreChangesModal: (windowIdentity: OpenFin.Identity) => Promise<boolean>;
|
|
15
16
|
export declare const getOverwriteWorkspaceMenu: (workspaceTitle: string) => Promise<ResponseModalConfig>;
|