@openfin/workspace 45.1.10 → 45.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/api/app-directory.d.ts +1 -1
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/layout.d.ts +13 -0
- package/common/src/utils/navigate.d.ts +9 -0
- package/common/src/utils/window.d.ts +31 -2
- package/externals.report.json +15 -15
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +1 -1
- package/notifications.js.map +1 -1
- package/package.json +3 -3
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -7,7 +7,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
|
|
|
7
7
|
* @param app the app directory entry.
|
|
8
8
|
* @param opts launch options.
|
|
9
9
|
*/
|
|
10
|
-
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.
|
|
10
|
+
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.View | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
|
|
|
11
11
|
export declare const isWindowDefinedWithIndexDB: boolean;
|
|
12
12
|
export declare const finUUID: string;
|
|
13
13
|
export declare const finName: string;
|
|
14
|
-
export declare const finEntityType: "" | "
|
|
14
|
+
export declare const finEntityType: "" | "view" | "window";
|
|
15
15
|
export declare const isEnvLocal: boolean;
|
|
16
16
|
export declare const isEnvDev: boolean;
|
|
17
17
|
export declare const isEnvStaging: boolean;
|
|
@@ -153,6 +153,19 @@ export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) =>
|
|
|
153
153
|
* @returns The total number of views in the layout configuration.
|
|
154
154
|
*/
|
|
155
155
|
export declare const countViews: (node: OpenFin.LayoutContent) => number;
|
|
156
|
+
/**
|
|
157
|
+
* Returns the sole view component when a page layout contains exactly one view.
|
|
158
|
+
* Used to decide whether a page-tab drag should emit a single-view merge payload.
|
|
159
|
+
*
|
|
160
|
+
* Importantly this counts views recursively across the layout tree, not just
|
|
161
|
+
* top-level sections — a one-section/tab-strip supertab with multiple views
|
|
162
|
+
* must not be treated as a single-view page.
|
|
163
|
+
*
|
|
164
|
+
* Also requires a non-empty `componentState.name`. Core types mark
|
|
165
|
+
* `componentState` / `name` as optional, and a merge payload without a name
|
|
166
|
+
* is invalid — treat those layouts as non-mergeable page drags instead.
|
|
167
|
+
*/
|
|
168
|
+
export declare const getSingleViewComponent: (content: OpenFin.LayoutContent | undefined) => OpenFin.LayoutComponent | null;
|
|
156
169
|
export declare const getLayoutConfig: (layoutContainerKey: string) => Promise<any>;
|
|
157
170
|
export declare const findPageForView: (viewName: string, browserWindowIdentity?: WindowIdentity) => Promise<AttachedPage | undefined>;
|
|
158
171
|
/**
|
|
@@ -6,6 +6,8 @@ import { ComponentName } from '../../../common/src/utils/usage-register';
|
|
|
6
6
|
export declare const NavigationSource: {
|
|
7
7
|
readonly DOCK_SEARCH_BUTTON: "dock-search-button";
|
|
8
8
|
readonly DOCK_STORE_BUTTON: "dock-store-button";
|
|
9
|
+
readonly DOCK3_SEARCH_BUTTON: "dock3-search-button";
|
|
10
|
+
readonly DOCK3_STORE_BUTTON: "dock3-store-button";
|
|
9
11
|
readonly HOME_ESC: "home-esc";
|
|
10
12
|
readonly HOME_COMMAND: "home-command";
|
|
11
13
|
};
|
|
@@ -21,3 +23,10 @@ export interface NavigateToOptions {
|
|
|
21
23
|
source?: NavigationSourceType | null;
|
|
22
24
|
}
|
|
23
25
|
export declare const navigateTo: (componentName: ComponentName, platformIdentity: OpenFin.Identity, options?: NavigateToOptions) => Promise<void>;
|
|
26
|
+
/** True when Home/Storefront was opened from classic Dock or Dock3. */
|
|
27
|
+
export declare const wasOpenedFromDock: (source: string | null | undefined) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Show/focus the dock that opened Home or Storefront (classic vs Dock3).
|
|
30
|
+
* @returns true if the source was a dock opener (whether or not that dock was running).
|
|
31
|
+
*/
|
|
32
|
+
export declare const showOpenerDockForNavigationSource: (source: string | null | undefined, platformUuid: string) => Promise<boolean>;
|
|
@@ -28,7 +28,11 @@ export declare enum WindowName {
|
|
|
28
28
|
DesktopSignalsModal = "here-desktop-signals-modal",
|
|
29
29
|
IntentsResolverModal = "here-intents-resolver-modal",
|
|
30
30
|
/** Browser-zone Home VPW window (platform child window). */
|
|
31
|
-
HomeVpw = "home-vpw"
|
|
31
|
+
HomeVpw = "home-vpw",
|
|
32
|
+
/** Browser-zone Storefront VPW window (platform child window). */
|
|
33
|
+
StorefrontVpw = "storefront-vpw",
|
|
34
|
+
/** Dock3 window (platform child window). */
|
|
35
|
+
Dock3 = "dock3"
|
|
32
36
|
}
|
|
33
37
|
export interface WindowIdentity {
|
|
34
38
|
uuid: ApplicationUUID | string;
|
|
@@ -105,6 +109,12 @@ export declare const providerOFIdentity: {
|
|
|
105
109
|
readonly name: ApplicationUUID.Workspace;
|
|
106
110
|
readonly uuid: ApplicationUUID.Workspace;
|
|
107
111
|
};
|
|
112
|
+
/** Home VPW window identity under a platform UUID. */
|
|
113
|
+
export declare const getHomeVpwOFIdentity: (platformUuid: string) => WindowIdentity;
|
|
114
|
+
/** Storefront VPW window identity under a platform UUID. */
|
|
115
|
+
export declare const getStorefrontVpwOFIdentity: (platformUuid: string) => WindowIdentity;
|
|
116
|
+
/** Dock3 window identity under a platform UUID. */
|
|
117
|
+
export declare const getDock3OFIdentity: (platformUuid: string) => WindowIdentity;
|
|
108
118
|
/**
|
|
109
119
|
* Get the Home OpenFin window.
|
|
110
120
|
*/
|
|
@@ -175,7 +185,26 @@ export declare const showAndFocusDock: () => Promise<void>;
|
|
|
175
185
|
export declare const getDisableMultiplePagesOption: (identity: WindowIdentity) => Promise<any>;
|
|
176
186
|
export declare const getIsLockedOption: (identity: WindowIdentity) => Promise<any>;
|
|
177
187
|
export declare const getPlatformWindowTitle: (identity: WindowIdentity) => Promise<any>;
|
|
178
|
-
|
|
188
|
+
/**
|
|
189
|
+
* Prefer a running Home VPW window for the platform; fall back to classic Home.
|
|
190
|
+
*/
|
|
191
|
+
export declare const resolvePreferredHomeIdentity: (platformUuid: string) => Promise<WindowIdentity | null>;
|
|
192
|
+
/**
|
|
193
|
+
* Prefer a running Storefront VPW window for the platform; fall back to classic Storefront.
|
|
194
|
+
*/
|
|
195
|
+
export declare const resolvePreferredStorefrontIdentity: (platformUuid: string) => Promise<WindowIdentity | null>;
|
|
196
|
+
export declare const showPreferredHomeWindow: (platformUuid: string) => Promise<void>;
|
|
197
|
+
export declare const showPreferredStorefrontWindow: (platformUuid: string) => Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* Prefer a running Dock3 window for the platform; fall back to classic Dock.
|
|
200
|
+
*/
|
|
201
|
+
export declare const resolvePreferredDockIdentity: (platformUuid: string) => Promise<WindowIdentity | null>;
|
|
202
|
+
export declare const showPreferredDockWindow: (platformUuid: string) => Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* Whether classic and/or VPW Home/Storefront windows are running.
|
|
205
|
+
* When `platformUuid` is provided, VPW windows under that platform count as running.
|
|
206
|
+
*/
|
|
207
|
+
export declare const getComponentWindowStatus: (platformUuid?: string) => Promise<{
|
|
179
208
|
storefrontRunning: boolean;
|
|
180
209
|
homeRunning: boolean;
|
|
181
210
|
}>;
|
package/externals.report.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"@openfin/notifications": [
|
|
3
3
|
{
|
|
4
4
|
"type": "explicit",
|
|
5
|
-
"version": "45.1.0-alpha-
|
|
5
|
+
"version": "45.1.0-alpha-4953",
|
|
6
6
|
"packageName": "client-api/package.json",
|
|
7
7
|
"issuer": "client-api/src/notifications.ts"
|
|
8
8
|
}
|
|
@@ -43,14 +43,6 @@
|
|
|
43
43
|
"issuer": "common/src/utils/layout.ts"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
|
-
"lodash.clonedeep": [
|
|
47
|
-
{
|
|
48
|
-
"type": "explicit",
|
|
49
|
-
"version": "4.5.0",
|
|
50
|
-
"packageName": "common/package.json",
|
|
51
|
-
"issuer": "common/src/utils/layout.ts"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
46
|
"react-i18next": [
|
|
55
47
|
{
|
|
56
48
|
"type": "explicit",
|
|
@@ -68,12 +60,6 @@
|
|
|
68
60
|
}
|
|
69
61
|
],
|
|
70
62
|
"dexie": [
|
|
71
|
-
{
|
|
72
|
-
"type": "explicit",
|
|
73
|
-
"version": "^4.0.11",
|
|
74
|
-
"packageName": "common/package.json",
|
|
75
|
-
"issuer": "common/src/api/pages/idb.ts"
|
|
76
|
-
},
|
|
77
63
|
{
|
|
78
64
|
"type": "root-implicit",
|
|
79
65
|
"version": "^4.0.11",
|
|
@@ -91,6 +77,20 @@
|
|
|
91
77
|
"version": "^4.0.11",
|
|
92
78
|
"packageName": "common/package.json",
|
|
93
79
|
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "explicit",
|
|
83
|
+
"version": "^4.0.11",
|
|
84
|
+
"packageName": "common/package.json",
|
|
85
|
+
"issuer": "common/src/api/pages/idb.ts"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"lodash.clonedeep": [
|
|
89
|
+
{
|
|
90
|
+
"type": "explicit",
|
|
91
|
+
"version": "4.5.0",
|
|
92
|
+
"packageName": "common/package.json",
|
|
93
|
+
"issuer": "common/src/utils/layout.ts"
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
}
|