@openfin/workspace-platform 18.1.30 → 19.0.0
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 +0 -4
- package/client-api-platform/src/api/context-menu/browser-pagetab-handler.d.ts +1 -1
- package/client-api-platform/src/api/context-menu/index.d.ts +4 -10
- package/client-api-platform/src/shapes.d.ts +8 -9
- package/common/src/api/protocol/workspace-platform.d.ts +1 -1
- package/common/src/utils/context-menu.d.ts +1 -4
- package/common/src/utils/route.d.ts +1 -2
- package/common/src/utils/window.d.ts +0 -1
- package/index.js +5 -118
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/client-api-platform/src/api/context-menu/index.test.d.ts +0 -1
- package/client-api-platform/src/init/override-callback/enterprise-page-required-layout-settings.d.ts +0 -5
- package/common/src/utils/enterprise-context-menu-cahnnels.d.ts +0 -4
- package/common/src/utils/menu.d.ts +0 -22
- package/common/src/utils/popup-window.d.ts +0 -59
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { App } from '../../../client-api/src/shapes';
|
|
3
2
|
import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site } from '../shapes';
|
|
4
3
|
/**
|
|
5
4
|
* Launch the app described by an App Directory entry.
|
|
@@ -16,6 +15,3 @@ export declare function getResults(payload: {
|
|
|
16
15
|
export declare function getCuratedContent(payload: {
|
|
17
16
|
identity: OpenFin.Identity;
|
|
18
17
|
}): Promise<Site[]>;
|
|
19
|
-
export declare function getRecentlyVisited(payload: {
|
|
20
|
-
identity: OpenFin.Identity;
|
|
21
|
-
}): Promise<App[]>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { OpenPageTabContextMenuPayload } from '../../../../client-api-platform/src/index';
|
|
2
2
|
import { PageTabContextMenuItemData } from '../../../../client-api-platform/src/shapes';
|
|
3
|
-
export declare const pageTabContextMenuItemHandler: (data: PageTabContextMenuItemData, payload: OpenPageTabContextMenuPayload
|
|
3
|
+
export declare const pageTabContextMenuItemHandler: (data: PageTabContextMenuItemData, payload: OpenPageTabContextMenuPayload) => Promise<void>;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare enum AnchorBehavior {
|
|
5
|
-
BottomLeft = 0,
|
|
6
|
-
BottomRight = 1,
|
|
7
|
-
Center = 2
|
|
8
|
-
}
|
|
9
|
-
export declare const openCommonContextMenu: (payload: OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload, _callerIdentity: OpenFin.Identity, type?: ContextMenuType, anchorBehavior?: AnchorBehavior) => Promise<void>;
|
|
10
|
-
export declare function openGlobalContextMenuInternal(this: WorkspacePlatformProvider, payload: InternalOpenGlobalContextMenuRequest & {
|
|
2
|
+
import { OpenGlobalContextMenuPayload, OpenGlobalContextMenuRequest, OpenPageTabContextMenuPayload, OpenPageTabContextMenuRequest, OpenSaveButtonContextMenuPayload, OpenSaveButtonContextMenuRequest, OpenViewTabContextMenuPayload, OpenViewTabContextMenuRequest, WorkspacePlatformProvider } from '../../../../client-api-platform/src/shapes';
|
|
3
|
+
export declare function openGlobalContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenGlobalContextMenuRequest & {
|
|
11
4
|
identity: OpenFin.Identity;
|
|
12
5
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
6
|
+
export declare const openCommonContextMenu: (payload: OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload, _callerIdentity: OpenFin.Identity) => Promise<void>;
|
|
13
7
|
export declare function openViewTabContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenViewTabContextMenuRequest & {
|
|
14
8
|
identity: OpenFin.Identity;
|
|
15
9
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
16
|
-
export declare function openPageTabContextMenuInternal(this: WorkspacePlatformProvider, payload:
|
|
10
|
+
export declare function openPageTabContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenPageTabContextMenuRequest & {
|
|
17
11
|
identity: OpenFin.Identity;
|
|
18
12
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
19
13
|
export declare function openSaveButtonContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenSaveButtonContextMenuRequest & {
|
|
@@ -85,9 +85,9 @@ export interface ReorderPagesRequest {
|
|
|
85
85
|
* Request for opening a logo context menu in Browser.
|
|
86
86
|
*/
|
|
87
87
|
export interface OpenGlobalContextMenuRequest {
|
|
88
|
-
/**
|
|
88
|
+
/** Screen x-coordinate where context menu should be shown. */
|
|
89
89
|
x: number;
|
|
90
|
-
/**
|
|
90
|
+
/** Screen y-coordinate where context menu should be shown. */
|
|
91
91
|
y: number;
|
|
92
92
|
/** Miscellaneous options necessary for implementing custom logic in the provider override. */
|
|
93
93
|
customData?: any;
|
|
@@ -213,24 +213,23 @@ export type ViewTabContextMenuTemplate = OpenFin.MenuItemTemplate<ViewTabMenuDat
|
|
|
213
213
|
* Request for opening a view tab context menu in Browser.
|
|
214
214
|
*/
|
|
215
215
|
export interface OpenViewTabContextMenuRequest {
|
|
216
|
-
/**
|
|
216
|
+
/** Screen x-coordinate where context menu should be shown. */
|
|
217
217
|
x: number;
|
|
218
|
-
/**
|
|
218
|
+
/** Screen y-coordinate where context menu should be shown. */
|
|
219
219
|
y: number;
|
|
220
220
|
/** Miscellaneous options necessary for implementing custom logic in the provider override. */
|
|
221
221
|
customData?: any;
|
|
222
222
|
/** Template defining the options to show in the context menu. */
|
|
223
223
|
template: ViewTabContextMenuTemplate[];
|
|
224
|
-
/** Ids of selected views */
|
|
225
224
|
selectedViews: OpenFin.Identity[];
|
|
226
225
|
}
|
|
227
226
|
/**
|
|
228
227
|
* Request for opening a page tab context menu in Browser.
|
|
229
228
|
*/
|
|
230
229
|
export interface OpenPageTabContextMenuRequest {
|
|
231
|
-
/**
|
|
230
|
+
/** Screen x-coordinate where context menu should be shown. */
|
|
232
231
|
x: number;
|
|
233
|
-
/**
|
|
232
|
+
/** Screen y-coordinate where context menu should be shown. */
|
|
234
233
|
y: number;
|
|
235
234
|
/** Miscellaneous options necessary for implementing custom logic in the provider override. */
|
|
236
235
|
customData?: any;
|
|
@@ -507,9 +506,9 @@ export interface SaveButtonContextMenuItemTemplate extends OpenFin.MenuItemTempl
|
|
|
507
506
|
* Request for opening a context menu from save button in Browser.
|
|
508
507
|
*/
|
|
509
508
|
export interface OpenSaveButtonContextMenuRequest {
|
|
510
|
-
/**
|
|
509
|
+
/** Screen x-coordinate where context menu should be shown. */
|
|
511
510
|
x: number;
|
|
512
|
-
/**
|
|
511
|
+
/** Screen y-coordinate where context menu should be shown. */
|
|
513
512
|
y: number;
|
|
514
513
|
/** Screen x-coordinate of save button */
|
|
515
514
|
buttonLeft: number;
|
|
@@ -65,7 +65,7 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
65
65
|
TrackRemovedTabInternal = "trackRemovedTabInternal",
|
|
66
66
|
RestoreRemovedTabInternal = "restoreRemovedTabInternal",
|
|
67
67
|
TrackVisitedSiteInternal = "trackVisitedSiteInternal",
|
|
68
|
-
|
|
68
|
+
GetRecentVisitedSitesInternal = "getRecentVisitedSitesInternal",
|
|
69
69
|
GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal",
|
|
70
70
|
SearchSitesInternal = "searchSitesInternal",
|
|
71
71
|
GetCuratedContentInternal = "getCuratedContentInternal",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { AnchorBehavior } from '../../../client-api-platform/src/api/context-menu';
|
|
3
|
-
import { ContextMenuType } from './popup-window';
|
|
4
2
|
export declare enum MenuItemType {
|
|
5
3
|
Label = "normal",
|
|
6
4
|
Separator = "separator",
|
|
@@ -10,8 +8,7 @@ export declare enum MenuItemType {
|
|
|
10
8
|
export type ShowContextMenuResponse = OpenFin.MenuResult & {
|
|
11
9
|
data: any;
|
|
12
10
|
};
|
|
13
|
-
export
|
|
14
|
-
export declare const showEnterpriseContextMenu: (opts: OpenFin.ShowPopupMenuOptions, type: ContextMenuType, anchorBehavior: AnchorBehavior, win?: OpenFin.Window) => Promise<ShowContextMenuResponse>;
|
|
11
|
+
export default function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: OpenFin.Window): Promise<ShowContextMenuResponse>;
|
|
15
12
|
export declare const Separator: OpenFin.MenuItemTemplate;
|
|
16
13
|
export declare const EmptyContextMenuItem: OpenFin.MenuItemTemplate;
|
|
17
14
|
export declare const DefaultSaveMenuBounds: {
|
|
@@ -22,8 +22,7 @@ export declare enum PageRoute {
|
|
|
22
22
|
Storefront = "/storefront/",
|
|
23
23
|
DeprecatedAlert = "/provider/deprecated-alert/",
|
|
24
24
|
Analytics = "/provider/analytics/",
|
|
25
|
-
EnterpriseBrowser = "/browser/enterprise/"
|
|
26
|
-
EnterpriseContextMenu = "/browser/enterprise/context-menu/"
|
|
25
|
+
EnterpriseBrowser = "/browser/enterprise/"
|
|
27
26
|
}
|
|
28
27
|
export declare const Assets: {
|
|
29
28
|
readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
|
|
@@ -10,7 +10,6 @@ export declare enum WindowName {
|
|
|
10
10
|
BrowserIndicator = "openfin-browser-indicator",
|
|
11
11
|
BrowserWindow = "internal-generated-window",
|
|
12
12
|
ClassicWindow = "internal-generated-classic-window",
|
|
13
|
-
EnterpriseContextMenu = "openfin-enterprise-context-menu",
|
|
14
13
|
BrowserAddressSearchPrefix = "openfin-browser-menu-address-search-"
|
|
15
14
|
}
|
|
16
15
|
export interface WindowIdentity {
|