@openfin/workspace 18.0.0 → 18.0.1
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 +6 -1
- package/client-api-platform/src/api/context-menu/browser-viewtab-handler.d.ts +3 -0
- package/client-api-platform/src/api/context-menu/utils.d.ts +21 -0
- package/client-api-platform/src/init/override-callback/page-defaults.d.ts +1 -1
- package/client-api-platform/src/init/utils.d.ts +1 -1
- package/client-api-platform/src/shapes.d.ts +94 -0
- package/common/src/api/action.d.ts +1 -0
- package/common/src/api/pages/idb.d.ts +21 -0
- package/common/src/api/protocol/workspace-platform.d.ts +7 -0
- package/common/src/api/tabs.d.ts +16 -0
- package/common/src/utils/color-linking.d.ts +3 -0
- package/common/src/utils/context-menu.d.ts +1 -1
- package/common/src/utils/enterprise-menu.d.ts +8 -0
- package/common/src/utils/enterpriseBrowser.d.ts +2 -0
- package/common/src/utils/global-context-menu.d.ts +98 -1
- package/common/src/utils/interop.d.ts +20 -0
- package/common/src/utils/layout.d.ts +10 -1
- package/common/src/utils/route.d.ts +4 -2
- package/common/src/utils/window.d.ts +2 -1
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +3 -3
- package/notifications.js.map +1 -1
- package/package.json +3 -2
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import type { LaunchAppRequest } from '../shapes';
|
|
2
|
+
import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse } from '../shapes';
|
|
3
3
|
/**
|
|
4
4
|
* Launch the app described by an App Directory entry.
|
|
5
5
|
* @param app the app directory entry.
|
|
6
6
|
* @param opts launch options.
|
|
7
7
|
*/
|
|
8
8
|
export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
|
|
9
|
+
export declare function getResults(payload: {
|
|
10
|
+
req: SearchSitesRequest;
|
|
11
|
+
} & {
|
|
12
|
+
identity: OpenFin.Identity;
|
|
13
|
+
}): Promise<SearchSitesResponse>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
1
2
|
import { OpenViewTabContextMenuPayload, ViewTabMenuData } from '../../../../client-api-platform/src/index';
|
|
3
|
+
export declare const addToChannel: (winIdentity: OpenFin.Identity, newChannelId: string, selectedViews: OpenFin.Identity[]) => Promise<void>;
|
|
4
|
+
export declare const removeFromChannel: (winIdentity: OpenFin.Identity, selectedViews: OpenFin.Identity[]) => Promise<void>;
|
|
2
5
|
declare const handler: (data: ViewTabMenuData, payload: OpenViewTabContextMenuPayload) => Promise<void>;
|
|
3
6
|
export default handler;
|
|
@@ -15,6 +15,27 @@ export declare const savePageAsHandler: (identity: OpenFin.Identity, pageId?: st
|
|
|
15
15
|
export declare const switchWorkspaceHandler: (winIdentity: OpenFin.Identity, workspaceItemData: WorkspaceContextMenuItemData) => Promise<void>;
|
|
16
16
|
export declare const deleteWorkspaceHandler: (winIdentity: OpenFin.Identity, workspaceItemData: WorkspaceContextMenuItemData) => Promise<void>;
|
|
17
17
|
export declare const downloadsHandler: (identity: OpenFin.Identity) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Reload activ view
|
|
20
|
+
* Enterprise Browser
|
|
21
|
+
* @param identity
|
|
22
|
+
* @param pageId
|
|
23
|
+
*/
|
|
24
|
+
export declare const reloadPageHandler: (identity: OpenFin.Identity, pageId?: string) => Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Close page, without Save Modal
|
|
27
|
+
* Enterprise Browser
|
|
28
|
+
* @param identity
|
|
29
|
+
* @param pageId
|
|
30
|
+
*/
|
|
31
|
+
export declare const closePageHandler: (identity: OpenFin.Identity, pageId?: string) => Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Close other pages
|
|
34
|
+
* Enterprise Browser
|
|
35
|
+
* @param identity
|
|
36
|
+
* @param pageId
|
|
37
|
+
*/
|
|
38
|
+
export declare const closeOtherPagesHandler: (identity: OpenFin.Identity, pageId?: string) => Promise<void>;
|
|
18
39
|
/**
|
|
19
40
|
* @param viewIdentities Array of views to execute print on.
|
|
20
41
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AttachedPage, AttachedPageInternal } from '../../../../common/src/api/pages/shapes';
|
|
2
2
|
import type { BrowserInitConfig } from '../..';
|
|
3
|
-
export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig, 'defaultPageOptions' | 'defaultViewOptions'
|
|
3
|
+
export declare const applyPageDefaults: (pages: AttachedPage[], initOptions?: Pick<BrowserInitConfig, 'defaultPageOptions' | 'defaultViewOptions'>, isEnterprise?: boolean) => Promise<AttachedPageInternal[]>;
|
|
@@ -23,7 +23,7 @@ type LegacyWindowOptions = Omit<OpenFin.PlatformWindowCreationOptions, 'workspac
|
|
|
23
23
|
workstacks?: Page[];
|
|
24
24
|
};
|
|
25
25
|
export declare const initWorkspacePlatformOptions: (options: LegacyWindowOptions | OpenFin.PlatformWindowCreationOptions) => OpenFin.PlatformWindowCreationOptions;
|
|
26
|
-
export type WindowType = 'browser' | 'platform' | 'classic' | 'mixed';
|
|
26
|
+
export type WindowType = 'browser' | 'platform' | 'classic' | 'mixed' | 'enterprise';
|
|
27
27
|
/**
|
|
28
28
|
* checkHasBrowserWindows
|
|
29
29
|
* Determines whether the snapshot has browser windows.
|
|
@@ -3,6 +3,7 @@ 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
5
|
import { Resource } from '../../common/src/api/i18next';
|
|
6
|
+
import { TrackedSite } from '../../common/src/api/pages/idb';
|
|
6
7
|
import type { AttachedPage, CopyPagePayload, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult } from '../../common/src/api/pages/shapes';
|
|
7
8
|
import { SetActivePageForWindowPayload } from '../../common/src/api/pages/shapes';
|
|
8
9
|
import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
|
|
@@ -120,12 +121,27 @@ export declare enum PageTabContextMenuOptionType {
|
|
|
120
121
|
Rename = "Rename",
|
|
121
122
|
Save = "Save",
|
|
122
123
|
SaveAs = "Save As",
|
|
124
|
+
SaveWorkspaceAs = "SaveWorkspaceAs",
|
|
125
|
+
Refresh = "Refresh",
|
|
126
|
+
CloseOthers = "Close others",
|
|
123
127
|
Custom = "Custom"
|
|
124
128
|
}
|
|
129
|
+
export declare enum EnterpriseMainContextMenuOptionType {
|
|
130
|
+
Lock = "Lock",
|
|
131
|
+
ShowHideTabs = "ShowHideTabs",
|
|
132
|
+
AddToChanel = "AddToChannel",
|
|
133
|
+
QuitBrowser = "QuitBrowser",
|
|
134
|
+
Print = "Print",
|
|
135
|
+
Pin = "Pin"
|
|
136
|
+
}
|
|
125
137
|
/**Shape of the data property of a global context menu template item */
|
|
126
138
|
export interface GlobalContextMenuItemData extends ContextMenuItemData {
|
|
127
139
|
type: GlobalContextMenuOptionType;
|
|
128
140
|
}
|
|
141
|
+
export interface EnterpriseMainContextMenuItemData extends ContextMenuItemData {
|
|
142
|
+
type: GlobalContextMenuOptionType | EnterpriseMainContextMenuOptionType | ViewTabMenuOptionType;
|
|
143
|
+
option?: string;
|
|
144
|
+
}
|
|
129
145
|
export interface WorkspaceContextMenuItemData extends GlobalContextMenuItemData {
|
|
130
146
|
workspaceId: string;
|
|
131
147
|
}
|
|
@@ -134,6 +150,7 @@ export interface AppearanceContextMenuItemData extends GlobalContextMenuItemData
|
|
|
134
150
|
}
|
|
135
151
|
/**Configuration of an option in the global context menu */
|
|
136
152
|
export type GlobalContextMenuItemTemplate = OpenFin.MenuItemTemplate<GlobalContextMenuItemData>;
|
|
153
|
+
export type EnterpriseMainContextMenuItemTemplate = OpenFin.MenuItemTemplate<EnterpriseMainContextMenuItemData>;
|
|
137
154
|
/**Shape of the data property of a page tab context menu template item */
|
|
138
155
|
export interface PageTabContextMenuItemData extends ContextMenuItemData {
|
|
139
156
|
type: PageTabContextMenuOptionType;
|
|
@@ -376,6 +393,7 @@ export interface PreDefinedButtonConfig {
|
|
|
376
393
|
iconUrl?: string;
|
|
377
394
|
iconProps?: IconProps;
|
|
378
395
|
disabled?: boolean;
|
|
396
|
+
parentHover?: boolean;
|
|
379
397
|
}
|
|
380
398
|
/**
|
|
381
399
|
* Configuration Object for the show/hide tabs button within the browser toolbar
|
|
@@ -932,8 +950,11 @@ export interface BrowserWindowModule {
|
|
|
932
950
|
* @internal
|
|
933
951
|
*/
|
|
934
952
|
_openGlobalContextMenu(req: OpenGlobalContextMenuRequest): Promise<void>;
|
|
953
|
+
/** @internal */
|
|
935
954
|
_openViewTabContextMenu(req: OpenViewTabContextMenuRequest): Promise<void>;
|
|
955
|
+
/** @internal */
|
|
936
956
|
_openPageTabContextMenu(req: OpenPageTabContextMenuRequest): Promise<void>;
|
|
957
|
+
/** @internal */
|
|
937
958
|
_openSaveButtonContextMenu(req: OpenSaveButtonContextMenuRequest): Promise<void>;
|
|
938
959
|
/**
|
|
939
960
|
* ```ts
|
|
@@ -956,7 +977,64 @@ export interface BrowserWindowModule {
|
|
|
956
977
|
* @internal
|
|
957
978
|
*/
|
|
958
979
|
_openSaveModal(req: OpenSaveMenuRequest): Promise<OpenFin.Identity>;
|
|
980
|
+
/** @internal */
|
|
981
|
+
_trackRemovedTab(req: any): Promise<void>;
|
|
982
|
+
/** @internal */
|
|
983
|
+
_restoreRemovedTab(req?: any): Promise<void>;
|
|
984
|
+
/** @internal */
|
|
985
|
+
_trackVisitedSite(req: any): Promise<void>;
|
|
986
|
+
/** @internal */
|
|
987
|
+
_getRecentVisitedSites(req?: number): Promise<any[]>;
|
|
988
|
+
/** @internal */
|
|
989
|
+
_getFrequentlyVisitedSites(req?: any): Promise<any[]>;
|
|
990
|
+
/** @internal */
|
|
991
|
+
_searchSites(req?: SearchSitesRequest): Promise<SearchSitesResponse>;
|
|
992
|
+
/** @internal */
|
|
993
|
+
_handleRequestNavigation(args: NavigationRequest): Promise<void>;
|
|
959
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* @internal
|
|
997
|
+
*/
|
|
998
|
+
export type NavigationRequest = {
|
|
999
|
+
viewIdentity: OpenFin.Identity;
|
|
1000
|
+
} & ({
|
|
1001
|
+
action: 'result-selected';
|
|
1002
|
+
site: Site;
|
|
1003
|
+
} | (SearchSitesRequest & {
|
|
1004
|
+
action: 'search-input';
|
|
1005
|
+
}));
|
|
1006
|
+
/**
|
|
1007
|
+
* @internal
|
|
1008
|
+
*/
|
|
1009
|
+
export type SearchSitesRequest = {
|
|
1010
|
+
searchQuery: string;
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* @internal
|
|
1014
|
+
*/
|
|
1015
|
+
export type SearchSitesResponse = {
|
|
1016
|
+
suggestions?: Site[];
|
|
1017
|
+
favorites?: Site[];
|
|
1018
|
+
bookmarks?: Site[];
|
|
1019
|
+
platformContent?: Site[];
|
|
1020
|
+
};
|
|
1021
|
+
/**
|
|
1022
|
+
* @internal
|
|
1023
|
+
*/
|
|
1024
|
+
export type Site = {
|
|
1025
|
+
id: string;
|
|
1026
|
+
title: string;
|
|
1027
|
+
cta?: string;
|
|
1028
|
+
type: 'app' | 'website';
|
|
1029
|
+
url: string;
|
|
1030
|
+
icon: string;
|
|
1031
|
+
customData?: unknown;
|
|
1032
|
+
} | {
|
|
1033
|
+
id: string;
|
|
1034
|
+
title: string;
|
|
1035
|
+
cta?: string;
|
|
1036
|
+
type: 'page' | 'workspace';
|
|
1037
|
+
};
|
|
960
1038
|
/**
|
|
961
1039
|
* Factory for wrapping browser windows and global operations.
|
|
962
1040
|
*/
|
|
@@ -1688,6 +1766,22 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
|
1688
1766
|
* @param locale in ISO language code format
|
|
1689
1767
|
*/
|
|
1690
1768
|
setLanguage(locale: Locale): Promise<void>;
|
|
1769
|
+
/** @internal */
|
|
1770
|
+
restoreRemovedTabInternal(): Promise<void>;
|
|
1771
|
+
/** @internal */
|
|
1772
|
+
trackVisitedSiteInternal(site: Site): Promise<void>;
|
|
1773
|
+
/** @internal */
|
|
1774
|
+
getRecentVisitedSitesInternal(siteCount?: number): Promise<TrackedSite[]>;
|
|
1775
|
+
/** @internal */
|
|
1776
|
+
getFrequentlyVisitedSitesInternal(): Promise<TrackedSite[]>;
|
|
1777
|
+
/** @internal */
|
|
1778
|
+
searchSitesInternal(payload: {
|
|
1779
|
+
req: SearchSitesRequest;
|
|
1780
|
+
} & {
|
|
1781
|
+
identity: OpenFin.Identity;
|
|
1782
|
+
}): Promise<SearchSitesResponse>;
|
|
1783
|
+
/** @internal */
|
|
1784
|
+
handleRequestNavigationInternal(req: NavigationRequest): Promise<void>;
|
|
1691
1785
|
}
|
|
1692
1786
|
/**
|
|
1693
1787
|
* The origins from which a custom action can be invoked
|
|
@@ -17,6 +17,7 @@ export interface BaseCustomButtonConfig {
|
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
/** icon URL for icon image */
|
|
19
19
|
iconUrl?: string;
|
|
20
|
+
parentHover?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export interface BaseCustomDropdownItem extends BaseCustomButtonConfig {
|
|
22
23
|
/** Is this dropdown item checked? Any value other than undefined will decorate the dropdown option as a checkbox option. */
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
1
2
|
import type { Page } from '../../../../common/src/api/pages/shapes';
|
|
3
|
+
import { SearchSitesRequest, Site } from '../../../../client-api-platform/src/shapes';
|
|
2
4
|
export declare const store: import("idb-keyval").UseStore;
|
|
3
5
|
export declare function getPage(id: string): Promise<Page | undefined>;
|
|
4
6
|
export declare function getPageList(filter?: string): Promise<Page[]>;
|
|
@@ -10,3 +12,22 @@ export declare function updatePage({ pageId, page }: {
|
|
|
10
12
|
page: Page;
|
|
11
13
|
pageId: string;
|
|
12
14
|
}): Promise<void>;
|
|
15
|
+
export declare const storeEnterpriseRemovedTab: import("idb-keyval").UseStore;
|
|
16
|
+
export declare const addRemovedTab: (payload: any) => Promise<void>;
|
|
17
|
+
export declare const popLastRemovedTab: () => Promise<any>;
|
|
18
|
+
export declare const storeEnterpriseVisitedSites: import("idb-keyval").UseStore;
|
|
19
|
+
export declare const trackVisitedSite: (payload: Site) => Promise<void>;
|
|
20
|
+
export declare const getRecentVisitedSites: (numOfSites?: number) => Promise<TrackedSite[] | [
|
|
21
|
+
]>;
|
|
22
|
+
export declare const getFrequentlyVisitedSites: () => Promise<TrackedSite[] | [
|
|
23
|
+
]>;
|
|
24
|
+
export declare const searchSites: (payload: {
|
|
25
|
+
req: SearchSitesRequest;
|
|
26
|
+
} & {
|
|
27
|
+
identity: OpenFin.Identity;
|
|
28
|
+
}) => Promise<any[]>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type TrackedSite = Site & {
|
|
31
|
+
accessTime?: number;
|
|
32
|
+
visitCount?: number;
|
|
33
|
+
};
|
|
@@ -59,6 +59,13 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
59
59
|
HandleSaveModalOnPageClose = "handleSaveModalOnPageClose",
|
|
60
60
|
CopyPage = "copyPage",
|
|
61
61
|
HandlePageChanges = "handlePageChanges",
|
|
62
|
+
TrackRemovedTabInternal = "trackRemovedTabInternal",
|
|
63
|
+
RestoreRemovedTabInternal = "restoreRemovedTabInternal",
|
|
64
|
+
TrackVisitedSiteInternal = "trackVisitedSiteInternal",
|
|
65
|
+
GetRecentVisitedSitesInternal = "getRecentVisitedSitesInternal",
|
|
66
|
+
GetFrequentlyVisitedSitesInternal = "getFrequentlyVisitedSitesInternal",
|
|
67
|
+
SearchSitesInternal = "searchSitesInternal",
|
|
68
|
+
HandleRequestNavigationInternal = "handleRequestNavigationInternal",
|
|
62
69
|
GetNotificationsConfig = "getNotificationsConfig"
|
|
63
70
|
}
|
|
64
71
|
export type PlatFormSupportedFeatures = boolean | {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
export interface TabsHandler {
|
|
3
|
+
/**
|
|
4
|
+
* Shows tabs for specified window instance. Does nothing if tabs are visible.
|
|
5
|
+
*/
|
|
6
|
+
show(): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Hides tabs for specified window instance. Does nothing if tabs are hidden.
|
|
9
|
+
*/
|
|
10
|
+
hide(layoutOverrides?: OpenFin.LayoutOptions): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Checks if the tabs for specified window are visible and resolves with true/false.
|
|
13
|
+
*/
|
|
14
|
+
isShowingTabs(): Promise<boolean>;
|
|
15
|
+
}
|
|
16
|
+
export declare const getTabsHandler: (identity: OpenFin.Identity) => TabsHandler;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
import { ViewTabContextMenuTemplate } from '../../../client-api-platform/src/shapes';
|
|
3
|
+
export declare const getChannelsMenuOptions: (channelsForViews: string[], colorGroups: OpenFin.ContextGroupInfo[]) => Promise<ViewTabContextMenuTemplate[]>;
|
|
@@ -6,7 +6,7 @@ export declare enum MenuItemType {
|
|
|
6
6
|
Checkbox = "checkbox"
|
|
7
7
|
}
|
|
8
8
|
export type ShowContextMenuResponse = OpenFin.MenuResult & {
|
|
9
|
-
data:
|
|
9
|
+
data: any;
|
|
10
10
|
};
|
|
11
11
|
export default function showContextMenu(opts: OpenFin.ShowPopupMenuOptions, win?: OpenFin.Window): Promise<ShowContextMenuResponse>;
|
|
12
12
|
export declare const Separator: OpenFin.MenuItemTemplate;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
import { EnterpriseMainContextMenuItemData, EnterpriseMainContextMenuItemTemplate, OpenGlobalContextMenuPayload } from '../../../client-api-platform/src/shapes';
|
|
3
|
+
export declare const getEnterpriseContextMenuTemplate: ({ identity, selectedViews, contextGroups }: {
|
|
4
|
+
identity: OpenFin.Identity;
|
|
5
|
+
selectedViews: OpenFin.Identity[];
|
|
6
|
+
contextGroups: OpenFin.ContextGroupInfo[];
|
|
7
|
+
}) => Promise<EnterpriseMainContextMenuItemTemplate[]>;
|
|
8
|
+
export declare const handleEnterpriseMenuResponse: (data: EnterpriseMainContextMenuItemData, payload: OpenGlobalContextMenuPayload) => Promise<boolean>;
|
|
@@ -1,4 +1,101 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import {
|
|
2
|
+
import { MenuItemType } from '../../../common/src/utils/context-menu';
|
|
3
|
+
import * as WP from '../../../client-api-platform/src/index';
|
|
4
|
+
import { GlobalContextMenuItemTemplate, GlobalContextMenuOptionType, Workspace } from '../../../client-api-platform/src/shapes';
|
|
3
5
|
export declare const isOSWindows: () => Promise<boolean>;
|
|
6
|
+
export declare const getCloseWindow: () => {
|
|
7
|
+
type: MenuItemType;
|
|
8
|
+
label: string;
|
|
9
|
+
data: {
|
|
10
|
+
type: WP.GlobalContextMenuOptionType;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const newWindow: () => {
|
|
14
|
+
type: MenuItemType;
|
|
15
|
+
label: string;
|
|
16
|
+
data: {
|
|
17
|
+
type: WP.GlobalContextMenuOptionType;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const savePage: () => {
|
|
21
|
+
type: MenuItemType;
|
|
22
|
+
label: string;
|
|
23
|
+
data: {
|
|
24
|
+
type: WP.GlobalContextMenuOptionType;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const savePageAs: () => {
|
|
28
|
+
type: MenuItemType;
|
|
29
|
+
label: string;
|
|
30
|
+
data: {
|
|
31
|
+
type: WP.GlobalContextMenuOptionType;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const newPage: (enabled: boolean) => {
|
|
35
|
+
type: MenuItemType;
|
|
36
|
+
label: string;
|
|
37
|
+
data: {
|
|
38
|
+
type: WP.GlobalContextMenuOptionType;
|
|
39
|
+
};
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
};
|
|
42
|
+
export declare const restoreChanges: () => {
|
|
43
|
+
type: MenuItemType;
|
|
44
|
+
label: string;
|
|
45
|
+
data: {
|
|
46
|
+
type: WP.GlobalContextMenuOptionType;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const saveWorkspace: () => {
|
|
50
|
+
type: MenuItemType;
|
|
51
|
+
label: string;
|
|
52
|
+
data: {
|
|
53
|
+
type: WP.GlobalContextMenuOptionType;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const saveWorkspaceAs: () => {
|
|
57
|
+
type: MenuItemType;
|
|
58
|
+
label: string;
|
|
59
|
+
data: {
|
|
60
|
+
type: WP.GlobalContextMenuOptionType;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const renameWorkspace: () => {
|
|
64
|
+
type: MenuItemType;
|
|
65
|
+
label: string;
|
|
66
|
+
data: {
|
|
67
|
+
type: WP.GlobalContextMenuOptionType;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export declare const switchWorkspace: () => {
|
|
71
|
+
label: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const deleteWorkspace: () => {
|
|
74
|
+
label: string;
|
|
75
|
+
};
|
|
76
|
+
export declare const downloads: () => {
|
|
77
|
+
label: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const appearance: () => {
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
export declare const getSavedWorkspaceContextMenuOptions: (activeWorkspace: Workspace, savedWorkspaces: Workspace[], contextMenuOptionType: GlobalContextMenuOptionType) => {
|
|
83
|
+
label: string;
|
|
84
|
+
type: MenuItemType;
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
checked: boolean;
|
|
87
|
+
data: {
|
|
88
|
+
type: WP.GlobalContextMenuOptionType;
|
|
89
|
+
workspaceId: string;
|
|
90
|
+
};
|
|
91
|
+
}[];
|
|
92
|
+
export declare const getAppearanceContextMenuOptions: () => Promise<{
|
|
93
|
+
label: string;
|
|
94
|
+
type: MenuItemType;
|
|
95
|
+
checked: boolean;
|
|
96
|
+
data: {
|
|
97
|
+
type: WP.GlobalContextMenuOptionType;
|
|
98
|
+
scheme: WP.ColorSchemeOptionType;
|
|
99
|
+
};
|
|
100
|
+
}[]>;
|
|
4
101
|
export declare const getGlobalContextMenuTemplate: (winIdentity: OpenFin.Identity, selectedViews?: OpenFin.Identity[]) => Promise<GlobalContextMenuItemTemplate[]>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
2
|
+
export declare enum InteropEventType {
|
|
3
|
+
JoinedContextGroup = "joined-context-group",
|
|
4
|
+
RemovedFromContextGroup = "removed-from-context-group"
|
|
5
|
+
}
|
|
6
|
+
export type InteropListener = (identity: OpenFin.Identity) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Returns contextGroup data.
|
|
9
|
+
* @returns Promise<ContextGroup[]>
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContextGroups(): Promise<OpenFin.ContextGroupInfo[]>;
|
|
12
|
+
export declare const joinContextGroup: (view: OpenFin.Identity, contextGroupId: string) => Promise<void>;
|
|
13
|
+
export declare const removeFromGroup: (view: OpenFin.Identity) => Promise<void>;
|
|
14
|
+
export declare function getViewContextGroupId(viewIdentity: OpenFin.Identity): Promise<string | null | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Listen for interop events.
|
|
17
|
+
* @param event the interop event to listen for.
|
|
18
|
+
* @param listener the function to call when the event occurs.
|
|
19
|
+
*/
|
|
20
|
+
export declare const addInteropListener: (event: InteropEventType, listener: InteropListener) => Promise<void>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
2
|
import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
|
|
3
3
|
export type LayoutDOMEventType =
|
|
4
|
+
/**
|
|
5
|
+
* Fired when a tab is created in a container. (Emmitted by ??)
|
|
6
|
+
*/
|
|
7
|
+
'tabs-list-resized'
|
|
4
8
|
/**
|
|
5
9
|
* Fired when a tab is created in a container. (Emmitted by core)
|
|
6
10
|
*/
|
|
7
|
-
'tab-created'
|
|
11
|
+
| 'tab-created'
|
|
8
12
|
/**
|
|
9
13
|
* Fired when the layout container is ready to be used. (Emitted by us)
|
|
10
14
|
*/
|
|
@@ -22,6 +26,8 @@ export type LayoutDOMEvent = {
|
|
|
22
26
|
uuid: string;
|
|
23
27
|
};
|
|
24
28
|
isInitialized: boolean;
|
|
29
|
+
} | {
|
|
30
|
+
type: Extract<LayoutDOMEventType, 'tabs-list-resized'>;
|
|
25
31
|
};
|
|
26
32
|
export type LayoutDOMEventListener = (ev: LayoutDOMEvent) => void;
|
|
27
33
|
export declare const getFirstActiveViewFromLayout: (identity: OpenFin.LayoutIdentity) => Promise<OpenFin.Identity>;
|
|
@@ -58,6 +64,7 @@ export declare const mapContentComponentState: (content: OpenFin.LayoutContent)
|
|
|
58
64
|
export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
|
|
59
65
|
export declare const isLayoutTabActive: (tabSelector: string) => boolean;
|
|
60
66
|
export declare const containerId = "layout_container";
|
|
67
|
+
export declare const viewTabslistSelectors = ".lm_tabs";
|
|
61
68
|
export declare const addLayoutEventListener: (event: LayoutDOMEventType, listener: LayoutDOMEventListener) => void;
|
|
62
69
|
/**
|
|
63
70
|
* Initialize the layout for the current OF window.
|
|
@@ -84,3 +91,5 @@ export declare const getUnlockedLayout: (lockedLayout: PageLayout, referenceUnlo
|
|
|
84
91
|
* @returns
|
|
85
92
|
*/
|
|
86
93
|
export declare const replaceLayout: (layout: PageLayout, page: AttachedPage) => Promise<void>;
|
|
94
|
+
export declare const findViewInLayout: (node: any, viewId: OpenFin.Identity) => any[];
|
|
95
|
+
export declare const checkShowHeader: () => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* All routes that serve HTML pages for the app.
|
|
3
|
-
* Routes should include the zone
|
|
3
|
+
* Routes should include the zone that the HTML page is a part of.
|
|
4
4
|
* Make sure to include trailing slash, as it is essential for deployed version to route correctly.
|
|
5
5
|
*/
|
|
6
6
|
export declare enum PageRoute {
|
|
@@ -15,12 +15,14 @@ export declare enum PageRoute {
|
|
|
15
15
|
BrowserPopupMenuLayouts = "/browser/popup-menu/layouts/layouts/",
|
|
16
16
|
BrowserPopupMenuColorLinking = "/browser/popup-menu/color-linking/color-linking/",
|
|
17
17
|
BrowserIndicator = "/browser/indicator/",
|
|
18
|
+
BrowserPopupMenuAddressSearch = "/browser/popup-menu/address-search/",
|
|
18
19
|
ResponseModal = "/browser/popup-menu/response-modal/",
|
|
19
20
|
CloseConfirmationModal = "/browser/popup-menu/close-confirmation-modal/",
|
|
20
21
|
Docs = "/provider/docs/",
|
|
21
22
|
Storefront = "/storefront/",
|
|
22
23
|
DeprecatedAlert = "/provider/deprecated-alert/",
|
|
23
|
-
Analytics = "/provider/analytics/"
|
|
24
|
+
Analytics = "/provider/analytics/",
|
|
25
|
+
EnterpriseBrowser = "/browser/enterprise/"
|
|
24
26
|
}
|
|
25
27
|
export declare const Assets: {
|
|
26
28
|
readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
|
|
@@ -9,7 +9,8 @@ export declare enum WindowName {
|
|
|
9
9
|
BrowserSaveMenu = "openfin-browser-save-menu",
|
|
10
10
|
BrowserIndicator = "openfin-browser-indicator",
|
|
11
11
|
BrowserWindow = "internal-generated-window",
|
|
12
|
-
ClassicWindow = "internal-generated-classic-window"
|
|
12
|
+
ClassicWindow = "internal-generated-classic-window",
|
|
13
|
+
BrowserAddressSearch = "openfin-browser-menu-address-search"
|
|
13
14
|
}
|
|
14
15
|
export interface WindowIdentity {
|
|
15
16
|
uuid: ApplicationUUID | string;
|