@openfin/workspace-platform 21.0.0 → 21.0.2
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/browser/index.d.ts +2 -10
- package/client-api-platform/src/shapes.d.ts +11 -0
- package/common/src/api/pages/shapes.d.ts +2 -0
- package/common/src/api/protocol/workspace-platform.d.ts +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export declare const getBrowserApi: (identity: OpenFin.ApplicationIdentity) => {
|
|
5
|
-
wrapSync: (windowIdentity: OpenFin.Identity) => BrowserWindowModule;
|
|
6
|
-
createWindow: (options: BrowserCreateWindowRequest) => Promise<BrowserWindowModule>;
|
|
7
|
-
getAllAttachedPages: () => Promise<AttachedPage[]>;
|
|
8
|
-
getAllWindows: () => Promise<BrowserWindowModule[]>;
|
|
9
|
-
getUniquePageTitle: (title?: string) => Promise<any>;
|
|
10
|
-
getLastFocusedWindow: () => Promise<any>;
|
|
11
|
-
};
|
|
2
|
+
import type { BrowserWindowFactory } from '../../shapes';
|
|
3
|
+
export declare const getBrowserApi: (identity: OpenFin.ApplicationIdentity) => BrowserWindowFactory;
|
|
@@ -1131,6 +1131,16 @@ export interface BrowserWindowFactory {
|
|
|
1131
1131
|
* ```
|
|
1132
1132
|
*/
|
|
1133
1133
|
getLastFocusedWindow(): Promise<OpenFin.Identity | undefined>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Gets a page that contains a given view identity.
|
|
1136
|
+
*
|
|
1137
|
+
* @param viewIdentity the identity of the view to search for.
|
|
1138
|
+
*/
|
|
1139
|
+
getPageByViewIdentity(viewIdentity: OpenFin.Identity): Promise<{
|
|
1140
|
+
page: AttachedPage;
|
|
1141
|
+
windowIdentity: OpenFin.Identity;
|
|
1142
|
+
pageIndex: number;
|
|
1143
|
+
}>;
|
|
1134
1144
|
}
|
|
1135
1145
|
/**
|
|
1136
1146
|
* API for interacting with persistent storage.
|
|
@@ -1803,6 +1813,7 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1803
1813
|
* @param payload {@link AddDefaultPagePayload}
|
|
1804
1814
|
*/
|
|
1805
1815
|
addDefaultPage(payload: AddDefaultPagePayload): Promise<void>;
|
|
1816
|
+
getPageByViewIdentity(viewIdentity: OpenFin.Identity): Promise<Awaited<ReturnType<BrowserWindowFactory['getPageByViewIdentity']>>>;
|
|
1806
1817
|
}
|
|
1807
1818
|
/**
|
|
1808
1819
|
* The origins from which a custom action can be invoked
|
|
@@ -79,6 +79,8 @@ type AttachedPageMetadata = {
|
|
|
79
79
|
parentIdentity?: OpenFin.Identity;
|
|
80
80
|
/** True if the page is the currently active page for its parent window. */
|
|
81
81
|
isActive?: boolean;
|
|
82
|
+
/** The name of the layout this page contains, useful for interacting with OpenFin Core APIs. */
|
|
83
|
+
layoutName?: string;
|
|
82
84
|
/** True if the page has unsaved changes. */
|
|
83
85
|
hasUnsavedChanges?: boolean;
|
|
84
86
|
/** Panel config with all view identities in place */
|
|
@@ -33,6 +33,7 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
33
33
|
GetSavedPageMetadata = "getSavedPageMetadata",
|
|
34
34
|
GetUniquePageTitle = "getUniquePageTitle",
|
|
35
35
|
GetLastFocusedBrowserWindow = "getLastFocusedBrowserWindow",
|
|
36
|
+
GetPageByViewIdentity = "getPageByViewIdentity",
|
|
36
37
|
GetThemes = "getThemes",
|
|
37
38
|
GetSelectedScheme = "getSelectedScheme",
|
|
38
39
|
SetSelectedScheme = "setSelectedScheme",
|