@openfin/workspace-platform 20.5.0 → 20.5.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/src/internal/home/index.d.ts +1 -1
- package/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/common/src/api/pages/internal.d.ts +8 -0
- package/common/src/api/pages/shapes.d.ts +4 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/workspace_platform.zip +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ProvidersMap } from '../../../../client-api/src/internal/providers';
|
|
2
2
|
import { CLIProvider, HomeProvider, RegisterMetaInfoInternal } from '../..';
|
|
3
|
-
export declare const HomeProviders: ProvidersMap<
|
|
3
|
+
export declare const HomeProviders: ProvidersMap<CLIProvider | HomeProvider>;
|
|
4
4
|
export declare const registerHomeProviderInternal: (provider: HomeProvider | CLIProvider) => Promise<RegisterMetaInfoInternal>;
|
|
@@ -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.Application | OpenFin.Identity | OpenFin.Platform | OpenFin.View>;
|
|
11
11
|
export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
|
|
12
12
|
export declare function getResults(payload: {
|
|
13
13
|
req: SearchSitesRequest;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CopyPagePayload, HandleSaveModalOnPageClosePayload, Page, SaveModalOnPageCloseResult, ShouldPageClosePayload, ShouldPageCloseResult } from '../../../../common/src/api/pages/shapes';
|
|
2
|
+
import { shouldWindowClose } from '../../../../client-api-platform/src/api/pages';
|
|
3
|
+
import { HandlePageChangesPayload, ModifiedPageState } from '../../../../client-api-platform/src/shapes';
|
|
4
|
+
export declare const requestPageSaveModalDecision: (req: HandleSaveModalOnPageClosePayload) => Promise<SaveModalOnPageCloseResult>;
|
|
5
|
+
export declare const requestShouldPageClose: (req: ShouldPageClosePayload) => Promise<ShouldPageCloseResult>;
|
|
6
|
+
export declare const requestShouldWindowClose: (payload: Parameters<typeof shouldWindowClose>[0]) => ReturnType<typeof shouldWindowClose>;
|
|
7
|
+
export declare const copyPage: (req: CopyPagePayload) => Promise<Page>;
|
|
8
|
+
export declare const requestPageChangesDecision: (req: HandlePageChangesPayload) => Promise<ModifiedPageState>;
|
|
@@ -94,7 +94,9 @@ export type AttachedPageInternal = {
|
|
|
94
94
|
export type ReparentAttachedPage = AttachedPage & {
|
|
95
95
|
multiInstanceViewBehavior?: 'reparent';
|
|
96
96
|
};
|
|
97
|
-
export type PageWithUpdatableRuntimeAttribs = Page & Pick<AttachedPage, 'hasUnsavedChanges'
|
|
97
|
+
export type PageWithUpdatableRuntimeAttribs = Page & Pick<AttachedPage, 'hasUnsavedChanges'> & {
|
|
98
|
+
multiInstanceViewBehavior?: OpenFin.MultiInstanceViewBehavior;
|
|
99
|
+
};
|
|
98
100
|
export interface DetachPagesFromWindowPayload {
|
|
99
101
|
/** The OF window identity to detach the pages from. */
|
|
100
102
|
identity: OpenFin.Identity;
|
|
@@ -256,6 +258,7 @@ export type AddPagePayload = {
|
|
|
256
258
|
page: PageWithUpdatableRuntimeAttribs;
|
|
257
259
|
/** Index at which the page should be added */
|
|
258
260
|
insertionIndex?: number;
|
|
261
|
+
multiInstanceViewBehavior?: OpenFin.MultiInstanceViewBehavior;
|
|
259
262
|
};
|
|
260
263
|
/**
|
|
261
264
|
* A node that represents either a bookmark or folder in the bookmark tree.
|