@openfin/workspace 45.1.0-alpha.9e06d950 → 45.1.0-alpha.b60eecc8
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/api/pages/shapes.d.ts +4 -0
- package/common/src/utils/env.d.ts +1 -1
- package/common/src/utils/layout.d.ts +13 -0
- package/enterprise-api/src/shapes.d.ts +2 -0
- package/externals.report.json +1 -1
- package/home.js +1 -1
- package/index.js +1 -1
- package/notifications.js +1 -1
- package/package.json +3 -3
- package/store.js +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.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -160,6 +160,8 @@ export interface AttachPagesToWindowPayload {
|
|
|
160
160
|
insertionIndex?: number;
|
|
161
161
|
/** Whether to replace the active page with the first new page, if true insertionIndex is ignored and pages are inserted at the active page's index */
|
|
162
162
|
replaceActivePage?: boolean;
|
|
163
|
+
/** Whether to insert the first new page as the active page in the same state update. */
|
|
164
|
+
activateOnAdd?: boolean;
|
|
163
165
|
}
|
|
164
166
|
export interface ExtendedAttachPagesToWindowPayload extends AttachPagesToWindowPayload {
|
|
165
167
|
/** The pages to attach. */
|
|
@@ -283,6 +285,8 @@ export type AddPagePayload = {
|
|
|
283
285
|
/** Index at which the page should be added */
|
|
284
286
|
insertionIndex?: number;
|
|
285
287
|
multiInstanceViewBehavior?: OpenFin.MultiInstanceViewBehavior;
|
|
288
|
+
/** Whether to insert the page as active in the same state update. */
|
|
289
|
+
activateOnAdd?: boolean;
|
|
286
290
|
};
|
|
287
291
|
/**
|
|
288
292
|
* A node that represents either a bookmark or folder in the bookmark tree.
|
|
@@ -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: "" | "window" | "view";
|
|
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
|
/**
|
|
@@ -12,6 +12,8 @@ export interface BasePageOpts {
|
|
|
12
12
|
*/
|
|
13
13
|
export interface PageOpts extends BasePageOpts {
|
|
14
14
|
index?: number;
|
|
15
|
+
/** Add the page and make it active in the same state update. */
|
|
16
|
+
activateOnAdd?: boolean;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* Options for adding pages, either by index or by replacing the active page.
|