@openfin/workspace-platform 20.5.1 → 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.
|
@@ -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.
|