@openfin/workspace-platform 18.0.3 → 18.0.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.
- package/common/src/api/pages/shapes.d.ts +1 -0
- package/common/src/utils/enterpriseBrowser.d.ts +2 -0
- package/common/src/utils/global-context-menu.d.ts +8 -0
- package/common/src/utils/layout.d.ts +8 -1
- package/common/src/utils/workspace-modals.d.ts +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -87,6 +87,7 @@ type AttachedPageMetadata = {
|
|
|
87
87
|
export type AttachedPage = Page & AttachedPageMetadata;
|
|
88
88
|
export type AttachedPageInternal = {
|
|
89
89
|
layoutContainerKey?: string;
|
|
90
|
+
singleViewName?: string;
|
|
90
91
|
} & AttachedPage;
|
|
91
92
|
export type ReparentAttachedPage = AttachedPage & {
|
|
92
93
|
multiInstanceViewBehavior?: 'reparent';
|
|
@@ -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;
|
|
@@ -92,4 +92,11 @@ export declare const getUnlockedLayout: (lockedLayout: PageLayout, referenceUnlo
|
|
|
92
92
|
*/
|
|
93
93
|
export declare const replaceLayout: (layout: PageLayout, page: AttachedPage) => Promise<void>;
|
|
94
94
|
export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) => any[];
|
|
95
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Calculates the total number of views in a given layout configuration.
|
|
97
|
+
*
|
|
98
|
+
* @param node - The layout configuration to traverse.
|
|
99
|
+
* @returns The total number of views in the layout configuration.
|
|
100
|
+
*/
|
|
101
|
+
export declare const countViews: (node: OpenFin.LayoutContent) => number;
|
|
102
|
+
export declare const checkSingleViewPage: () => Promise<void>;
|
|
@@ -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>;
|