@openfin/workspace-platform 18.1.21 → 18.1.23
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/context-menu/utils.d.ts +1 -0
- package/client-api-platform/src/shapes.d.ts +7 -1
- package/common/src/api/pages/shapes.d.ts +14 -0
- package/common/src/api/protocol/browser.d.ts +2 -1
- package/common/src/api/protocol/workspace-platform.d.ts +2 -0
- package/common/src/utils/workspace-modals.d.ts +2 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -40,3 +40,4 @@ export declare const closeOtherPagesHandler: (identity: OpenFin.Identity, pageId
|
|
|
40
40
|
* @param viewIdentities Array of views to execute print on.
|
|
41
41
|
*/
|
|
42
42
|
export declare const printSelectedViews: (viewIdentities: OpenFin.Identity[]) => Promise<void>;
|
|
43
|
+
export declare const deletePageHandler: (identity: OpenFin.Identity, pageId?: string) => Promise<void>;
|
|
@@ -2,7 +2,7 @@ import type OpenFin from '@openfin/core';
|
|
|
2
2
|
import { IconProps, Languages } from '@openfin/ui-library';
|
|
3
3
|
import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/utils/usage-register';
|
|
4
4
|
import { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
|
|
5
|
-
import type { AttachedPage, CopyPagePayload, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult } from '../../common/src/api/pages/shapes';
|
|
5
|
+
import type { AddDefaultPagePayload, AttachedPage, CopyPagePayload, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult } from '../../common/src/api/pages/shapes';
|
|
6
6
|
import { SetActivePageForWindowPayload } from '../../common/src/api/pages/shapes';
|
|
7
7
|
import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
|
|
8
8
|
import type { CustomThemes } from '../../common/src/api/theming';
|
|
@@ -152,6 +152,7 @@ export declare enum PageTabContextMenuOptionType {
|
|
|
152
152
|
Rename = "Rename",
|
|
153
153
|
Save = "Save",
|
|
154
154
|
SaveAs = "Save As",
|
|
155
|
+
DeletePage = "Delete Page",
|
|
155
156
|
SaveWorkspaceAs = "SaveWorkspaceAs",
|
|
156
157
|
Refresh = "Refresh",
|
|
157
158
|
CloseOthers = "Close others",
|
|
@@ -1662,6 +1663,11 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1662
1663
|
* @param locale in ISO language code format
|
|
1663
1664
|
*/
|
|
1664
1665
|
setLanguage(locale: Locale): Promise<void>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Implementation for adding custom default page
|
|
1668
|
+
* @param payload {@link AddDefaultPagePayload}
|
|
1669
|
+
*/
|
|
1670
|
+
addDefaultPage(payload: AddDefaultPagePayload): Promise<void>;
|
|
1665
1671
|
}
|
|
1666
1672
|
/**
|
|
1667
1673
|
* The origins from which a custom action can be invoked
|
|
@@ -213,4 +213,18 @@ export interface CopyPagePayload {
|
|
|
213
213
|
/** Specifies the trigger for creating a copy. */
|
|
214
214
|
reason: 'save-as' | 'duplicate';
|
|
215
215
|
}
|
|
216
|
+
export type AddDefaultPagePayload = {
|
|
217
|
+
/** The OF window identity to attach the pages to. */
|
|
218
|
+
identity: OpenFin.Identity;
|
|
219
|
+
/** The page to attach. */
|
|
220
|
+
page: PageWithUpdatableRuntimeAttribs;
|
|
221
|
+
/** The newPageUrl provided. */
|
|
222
|
+
newPageUrl: string;
|
|
223
|
+
};
|
|
224
|
+
export type AddPagePayload = {
|
|
225
|
+
/** The OF window identity to attach the pages to. */
|
|
226
|
+
identity: OpenFin.Identity;
|
|
227
|
+
/** The page to attach. */
|
|
228
|
+
page: PageWithUpdatableRuntimeAttribs;
|
|
229
|
+
};
|
|
216
230
|
export {};
|
|
@@ -11,7 +11,8 @@ export declare const getChannelClient: (identity: OpenFin.Identity, prefix?: str
|
|
|
11
11
|
* (Should only happen in local development)
|
|
12
12
|
*/
|
|
13
13
|
export declare const createChannel: (identity?: OpenFin.Identity, prefix?: string) => Promise<OpenFin.ChannelProvider>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const getBrowserChannelClient: () => Promise<OpenFin.ChannelProvider>;
|
|
15
|
+
export declare const getViewThemeChannelClient: () => Promise<OpenFin.ChannelProvider>;
|
|
15
16
|
export interface AddToChannelRequest {
|
|
16
17
|
newChannelId: string;
|
|
17
18
|
selectedViews: OpenFin.Identity[];
|
|
@@ -24,6 +24,8 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
24
24
|
DetachPagesFromWindow = "detachPagesFromWindow",
|
|
25
25
|
ReorderPagesForWindow = "reorderPagesForWindow",
|
|
26
26
|
SetActivePage = "setActivePage",
|
|
27
|
+
AddPage = "addPage",
|
|
28
|
+
AddDefaultPage = "addDefaultPage",
|
|
27
29
|
GetAllAttachedPages = "getAllAttachedPages",
|
|
28
30
|
GetActivePageIdForWindow = "getActivePageIdForWindow",
|
|
29
31
|
GetPagesForWindow = "getPagesForWindow",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { ResponseModalConfig } from '../../../common/src/utils/menu-config';
|
|
3
3
|
export declare const restoreChangesMenu: (windowIdentity: OpenFin.Identity) => Promise<ResponseModalConfig>;
|
|
4
|
+
export declare const deletePageMenu: (windowIdentity: OpenFin.Identity, pageTitle: string) => Promise<ResponseModalConfig>;
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @param targetWindowIdentity Parent or Current OpenFin Window Identity
|
|
@@ -21,3 +22,4 @@ export declare const showPlatformQuitModal: (windowIdentity: OpenFin.Identity, w
|
|
|
21
22
|
export declare const showQuitBrowserModal: (windowIdentity: OpenFin.Identity) => Promise<boolean>;
|
|
22
23
|
export declare const showRestoreChangesModal: (windowIdentity: OpenFin.Identity) => Promise<boolean>;
|
|
23
24
|
export declare const getOverwriteWorkspaceMenu: (workspaceTitle: string) => Promise<ResponseModalConfig>;
|
|
25
|
+
export declare const showDeletePageModal: (windowIdentity: OpenFin.Identity, pageTitle: string) => Promise<boolean>;
|