@openfin/workspace-platform 20.0.0 → 20.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/context-menu/index.d.ts +1 -3
- package/client-api-platform/src/shapes.d.ts +2 -5
- package/common/src/api/pages/shapes.d.ts +0 -91
- package/common/src/api/protocol/browser.d.ts +1 -3
- package/common/src/api/protocol/workspace-platform.d.ts +0 -1
- package/common/src/api/theming.d.ts +1 -2
- package/common/src/utils/enterprise-context-menu-cahnnels.d.ts +4 -0
- package/common/src/utils/enterpriseBrowser.d.ts +0 -1
- package/common/src/utils/layout.d.ts +0 -6
- package/common/src/utils/menu-config.d.ts +0 -1
- package/common/src/utils/modal-bounds.d.ts +8 -0
- package/common/src/utils/popup-window.d.ts +10 -31
- package/common/src/utils/route.d.ts +2 -4
- package/common/src/utils/window.d.ts +1 -12
- package/index.js +15 -15
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/browser/src/api/color-linking.d.ts +0 -23
- package/browser/src/api/controls.d.ts +0 -23
- package/browser/src/api/pages/attached.d.ts +0 -23
- package/browser/src/api/pages/state.d.ts +0 -10
- package/browser/src/api/panels.d.ts +0 -106
- package/browser/src/api/view.d.ts +0 -22
- package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar.d.ts +0 -15
- package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBarInput.d.ts +0 -18
- package/browser/src/components/ControlBar/RightControlsContainer/ToolbarContainer/menus/menuConfig.d.ts +0 -17
- package/browser/src/components/ControlBar/SearchMenu/CommandBar.d.ts +0 -9
- package/browser/src/components/ControlBar/SearchMenu/Icons.d.ts +0 -23
- package/browser/src/components/ControlBar/SearchMenu/ResultIcon.d.ts +0 -11
- package/browser/src/components/ControlBar/SearchMenu/SecureIcon.d.ts +0 -5
- package/browser/src/components/ControlBar/SearchMenu/UrlInput.d.ts +0 -3
- package/browser/src/components/ControlBar/SearchMenu/useIsPageOpen.d.ts +0 -3
- package/browser/src/components/ControlBar/Tablist/utils.d.ts +0 -8
- package/browser/src/components/ControlBar/utils.d.ts +0 -1
- package/browser/src/components/LandingPage/BrandIcon.d.ts +0 -6
- package/browser/src/components/LayoutContainer/utils.d.ts +0 -10
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +0 -17
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksFolderHeader.d.ts +0 -8
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanel.d.ts +0 -9
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanelHeader.d.ts +0 -3
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +0 -15
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksSearchInput.d.ts +0 -7
- package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarkNavigation.d.ts +0 -8
- package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +0 -16
- package/browser/src/components/PanelContainer/BookmarksPanel/useUpdateBookmarkResultsActions.d.ts +0 -15
- package/browser/src/components/PanelContainer/BookmarksPanel/utils.d.ts +0 -7
- package/browser/src/components/PanelContainer/PanelContainer.d.ts +0 -8
- package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/getDimensions.d.ts +0 -14
- package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/useAdjustSearchMenuViewDimensions.d.ts +0 -29
- package/browser/src/hooks/EnterpriseSearchMenu/useInitChannelToSearchMenuView.d.ts +0 -18
- package/browser/src/hooks/EnterpriseSearchMenu/usePostMessageToSearchMenuView.d.ts +0 -18
- package/browser/src/hooks/EnterpriseSearchMenu/useProcessChildContentBlockEvent.d.ts +0 -3
- package/browser/src/hooks/EnterpriseSearchMenu/useSearchMenuViewLifecycleManager.d.ts +0 -16
- package/browser/src/hooks/EnterpriseSearchMenu/useUpdateInputExpansionState.d.ts +0 -15
- package/browser/src/hooks/EnterpriseSearchMenu/useUpdateViewExpansionState.d.ts +0 -32
- package/browser/src/hooks/useEnterpriseHotkeys.d.ts +0 -4
- package/browser/src/hooks/usePanelBounds.d.ts +0 -4
- package/browser/src/hooks/useSingleViewPage.d.ts +0 -2
- package/browser/src/hooks/useWindowFocusState.d.ts +0 -17
- package/browser/src/slices/menu.d.ts +0 -28
- package/browser/src/slices/modal/close.d.ts +0 -10
- package/browser/src/slices/modal/index.d.ts +0 -8
- package/browser/src/slices/pages/attached.d.ts +0 -83
- package/browser/src/slices/tab-focus.d.ts +0 -85
- package/browser/src/store/index.d.ts +0 -90
- package/client-api-platform/src/api/browser/bookmarks.d.ts +0 -6
- package/common/src/api/pages/internal.d.ts +0 -8
- package/common/src/api/workspace-events.d.ts +0 -49
- package/common/src/components/BaseButton/BaseButton.d.ts +0 -55
- package/common/src/components/Icon/CustomIcon.d.ts +0 -15
- package/common/src/hooks/context.d.ts +0 -58
- package/common/src/hooks/usePlatformTheme.d.ts +0 -6
- package/common/src/hooks/useSystemSchemeCheck.d.ts +0 -13
- package/common/src/slices/environment.d.ts +0 -22
- package/common/src/slices/target-theming.d.ts +0 -56
- package/common/src/styles/svg-icons.d.ts +0 -7
- package/common/src/utils/a11y/index.d.ts +0 -3
- package/common/src/utils/bookmark-item-context-menu.d.ts +0 -3
- package/common/src/utils/bookmarks.d.ts +0 -12
- package/common/src/utils/custom-logo.d.ts +0 -16
- package/common/src/utils/enterprise-channels.d.ts +0 -13
- package/common/src/utils/interop.d.ts +0 -30
- package/common/src/utils/navigate.d.ts +0 -8
- package/common/src/utils/test-ids.d.ts +0 -70
- package/common/src/utils/url.d.ts +0 -1
|
@@ -6,8 +6,7 @@ export declare enum AnchorBehavior {
|
|
|
6
6
|
BottomRight = 1,
|
|
7
7
|
Center = 2
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
export declare const openCommonContextMenu: (payload: ContextMenuPayload, _callerIdentity: OpenFin.Identity, type?: ContextMenuType, anchorBehavior?: AnchorBehavior) => Promise<void>;
|
|
9
|
+
export declare const openCommonContextMenu: (payload: OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload, _callerIdentity: OpenFin.Identity, type?: ContextMenuType, anchorBehavior?: AnchorBehavior) => Promise<void>;
|
|
11
10
|
export declare function openGlobalContextMenuInternal(this: WorkspacePlatformProvider, payload: InternalOpenGlobalContextMenuRequest & {
|
|
12
11
|
identity: OpenFin.Identity;
|
|
13
12
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
@@ -20,4 +19,3 @@ export declare function openPageTabContextMenuInternal(this: WorkspacePlatformPr
|
|
|
20
19
|
export declare function openSaveButtonContextMenuInternal(this: WorkspacePlatformProvider, payload: OpenSaveButtonContextMenuRequest & {
|
|
21
20
|
identity: OpenFin.Identity;
|
|
22
21
|
}, callerIdentity: OpenFin.Identity): Promise<void>;
|
|
23
|
-
export {};
|
|
@@ -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 { AddDefaultPagePayload, AttachedPage, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
|
|
5
|
+
import type { AddDefaultPagePayload, AttachedPage, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } 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';
|
|
@@ -959,9 +959,6 @@ export interface BrowserWindowModule {
|
|
|
959
959
|
* @property {string} [value] - The value associated with the 'custom' type.
|
|
960
960
|
*/
|
|
961
961
|
updateBrowserWindowTitle(title: WindowTitle): Promise<void>;
|
|
962
|
-
_bookmarks: BrowserBookmarks;
|
|
963
|
-
}
|
|
964
|
-
export interface BrowserBookmarks {
|
|
965
962
|
}
|
|
966
963
|
/**
|
|
967
964
|
* Factory for wrapping browser windows and global operations.
|
|
@@ -1522,7 +1519,6 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
|
|
|
1522
1519
|
* Implementation for getting the notifications workspace platform configuration.
|
|
1523
1520
|
*/
|
|
1524
1521
|
getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
|
|
1525
|
-
_raiseAnalytics(events: AnalyticsEventInternal[]): Promise<void>;
|
|
1526
1522
|
/**
|
|
1527
1523
|
* The browser window factory for the Workspace Platform.
|
|
1528
1524
|
*/
|
|
@@ -1535,6 +1531,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
|
|
|
1535
1531
|
* Theme API for the Workspace Platform.
|
|
1536
1532
|
*/
|
|
1537
1533
|
Theme: ThemeApi;
|
|
1534
|
+
_raiseAnalytics(events: AnalyticsEventInternal[]): Promise<void>;
|
|
1538
1535
|
}
|
|
1539
1536
|
export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
|
|
1540
1537
|
/**
|
|
@@ -257,95 +257,4 @@ export type AddPagePayload = {
|
|
|
257
257
|
/** Index at which the page should be added */
|
|
258
258
|
insertionIndex?: number;
|
|
259
259
|
};
|
|
260
|
-
/**
|
|
261
|
-
* A node that represents either a bookmark or folder in the bookmark tree.
|
|
262
|
-
*/
|
|
263
|
-
export interface BookmarkNode {
|
|
264
|
-
/**
|
|
265
|
-
* The unique id of the node.
|
|
266
|
-
*/
|
|
267
|
-
id: string;
|
|
268
|
-
/**
|
|
269
|
-
* The title of the bookmark or folder.
|
|
270
|
-
*/
|
|
271
|
-
title: string;
|
|
272
|
-
/**
|
|
273
|
-
* The unique URL associated with a bookmark. Is undefined for folders.
|
|
274
|
-
*/
|
|
275
|
-
url?: string;
|
|
276
|
-
/**
|
|
277
|
-
* When this bookmark or folder was created, in milliseconds since the epoch.
|
|
278
|
-
*/
|
|
279
|
-
dateCreated: number;
|
|
280
|
-
/**
|
|
281
|
-
* The favicon to display next to titles for bookmarks. When no icon or a
|
|
282
|
-
* broken icon is provided, the default globe icon will be used instead. Is
|
|
283
|
-
* undefined for folders.
|
|
284
|
-
*/
|
|
285
|
-
favIcon?: string;
|
|
286
|
-
/**
|
|
287
|
-
* The id of the parent folder that contains a bookmark. Is undefined for the
|
|
288
|
-
* root node.
|
|
289
|
-
*/
|
|
290
|
-
parentId?: string;
|
|
291
|
-
/**
|
|
292
|
-
* The children of this node. Can only contain bookmarks. Is undefined for
|
|
293
|
-
* bookmarks.
|
|
294
|
-
*/
|
|
295
|
-
children?: BookmarkNode[];
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Request object to create a new bookmark node.
|
|
299
|
-
*/
|
|
300
|
-
export interface CreateBookmarkNodeRequest {
|
|
301
|
-
/**
|
|
302
|
-
* The title of the bookmark or folder.
|
|
303
|
-
*/
|
|
304
|
-
title: string;
|
|
305
|
-
/**
|
|
306
|
-
* The unique URL associated with the bookmark. Omit for folders.
|
|
307
|
-
*/
|
|
308
|
-
url?: string;
|
|
309
|
-
/**
|
|
310
|
-
* The favicon to display next to titles for bookmarks. When no icon or a
|
|
311
|
-
* broken icon is provided, the default globe icon will be used instead. Omit
|
|
312
|
-
* for folders.
|
|
313
|
-
*/
|
|
314
|
-
favIcon?: string;
|
|
315
|
-
/**
|
|
316
|
-
* The id of the parent folder for this bookmark. Omit for bookmarks under
|
|
317
|
-
* "All Bookmarks" and folders.
|
|
318
|
-
*/
|
|
319
|
-
parentId?: string;
|
|
320
|
-
}
|
|
321
|
-
export type UpdatedBookmarkNodeAttrs = {
|
|
322
|
-
/**
|
|
323
|
-
* The new title to apply to the bookmark/folder.
|
|
324
|
-
*/
|
|
325
|
-
title?: string;
|
|
326
|
-
/**
|
|
327
|
-
* The id of the parent folder to move this bookmark to. Leave undefined to
|
|
328
|
-
* move bookmark under "All Bookmarks". Omit for folders.
|
|
329
|
-
*/
|
|
330
|
-
parentId?: string;
|
|
331
|
-
/**
|
|
332
|
-
* The favicon to display next to titles for bookmarks. When no icon or a
|
|
333
|
-
* broken icon is provided, the default globe icon will be used instead. Omit
|
|
334
|
-
* for folders.
|
|
335
|
-
*/
|
|
336
|
-
favIcon?: string;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* Request object to update a bookmark node.
|
|
340
|
-
*/
|
|
341
|
-
export interface UpdateBookmarkNodeRequest {
|
|
342
|
-
/**
|
|
343
|
-
* The unique id of the bookmark.
|
|
344
|
-
*/
|
|
345
|
-
id: string;
|
|
346
|
-
/**
|
|
347
|
-
* The object describing which attributes of the bookmark to update.
|
|
348
|
-
*/
|
|
349
|
-
changes: UpdatedBookmarkNodeAttrs;
|
|
350
|
-
}
|
|
351
260
|
export {};
|
|
@@ -32,8 +32,7 @@ declare enum GeneralBrowserChannelActions {
|
|
|
32
32
|
DuplicatePage = "duplicate-page",
|
|
33
33
|
SetSelectedScheme = "set-selected-scheme",
|
|
34
34
|
ShowBrowserIndicator = "show-browser-indicator",
|
|
35
|
-
SetSelectedLanguage = "set-selected-language"
|
|
36
|
-
RefreshBookmarksInternal = "refresh-bookmarks"
|
|
35
|
+
SetSelectedLanguage = "set-selected-language"
|
|
37
36
|
}
|
|
38
37
|
/**
|
|
39
38
|
* All of the remote procedures that can be called in the
|
|
@@ -74,7 +73,6 @@ export declare const BrowserChannelAction: {
|
|
|
74
73
|
SetSelectedScheme: GeneralBrowserChannelActions.SetSelectedScheme;
|
|
75
74
|
ShowBrowserIndicator: GeneralBrowserChannelActions.ShowBrowserIndicator;
|
|
76
75
|
SetSelectedLanguage: GeneralBrowserChannelActions.SetSelectedLanguage;
|
|
77
|
-
RefreshBookmarksInternal: GeneralBrowserChannelActions.RefreshBookmarksInternal;
|
|
78
76
|
};
|
|
79
77
|
export type BrowserChannelAction = typeof BrowserChannelAction;
|
|
80
78
|
export {};
|
|
@@ -72,7 +72,6 @@ export declare enum WorkspacePlatformChannelAction {
|
|
|
72
72
|
SearchSitesInternal = "searchSitesInternal",
|
|
73
73
|
GetCuratedContentInternal = "getCuratedContentInternal",
|
|
74
74
|
HandleRequestNavigationInternal = "handleRequestNavigationInternal",
|
|
75
|
-
RefreshBookmarksInternal = "refreshBookmarksInternal",
|
|
76
75
|
GetNotificationsConfig = "getNotificationsConfig"
|
|
77
76
|
}
|
|
78
77
|
export type PlatFormSupportedFeatures = boolean | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DefaultTheme } from 'styled-components';
|
|
2
2
|
import type OpenFin from '@openfin/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeSet } from '@openfin/ui-library';
|
|
4
4
|
import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
|
|
5
5
|
export type WorkspaceComponentSetSelectedSchemePayload = {
|
|
6
6
|
newScheme: ColorSchemeOptionType;
|
|
@@ -246,4 +246,3 @@ export declare const OpenFinDarkTheme: {
|
|
|
246
246
|
export declare const computeThemes: (customThemes: CustomThemes, storedScheme?: ColorSchemeOptionType) => ComputedThemes;
|
|
247
247
|
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
|
|
248
248
|
export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
|
|
249
|
-
export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, 'system'>>;
|
|
@@ -6,4 +6,3 @@ export declare function formatUrl(url: string): string;
|
|
|
6
6
|
export declare const getIsEnterpriseBrowser: (id?: OpenFin.Identity) => Promise<boolean>;
|
|
7
7
|
export declare const getMenuWindowWidth: () => Promise<number>;
|
|
8
8
|
export declare const isLandingPage: (url: string) => boolean;
|
|
9
|
-
export declare const isLandingPageOrEmpty: (url: string) => boolean;
|
|
@@ -65,12 +65,6 @@ export declare const cloneViewComponentWithoutName: (componentState: any) => any
|
|
|
65
65
|
* @returns A copy of the layout with names removed
|
|
66
66
|
*/
|
|
67
67
|
export declare const cloneLayoutAndRemoveNames: (layout: PageLayout) => any;
|
|
68
|
-
/**
|
|
69
|
-
* Deep clones a layout and removes generated view names.
|
|
70
|
-
* @param layout The Layout to be cloned
|
|
71
|
-
* @returns A copy of the layout with generated names removed
|
|
72
|
-
*/
|
|
73
|
-
export declare const cloneLayoutAndRemoveGeneratedNames: (layout: PageLayout) => any;
|
|
74
68
|
export declare const mapContentComponentState: (content: OpenFin.LayoutContent) => OpenFin.LayoutComponent['componentState'][];
|
|
75
69
|
export declare const getLayoutWithSingleView: (title: string, url: string, winIdentity?: OpenFin.Identity) => Promise<any>;
|
|
76
70
|
export declare const layoutNameInitializedMap: Map<string, boolean>;
|
|
@@ -10,4 +10,12 @@ import { ResponseModalConfig } from './menu-config';
|
|
|
10
10
|
* @returns the bounds for where the modal is to be displayed
|
|
11
11
|
*/
|
|
12
12
|
export declare const getResponseModalBounds: (modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean) => Promise<OpenFin.Bounds>;
|
|
13
|
+
/**
|
|
14
|
+
* calculates the percenage of the window that is present within the monitor (float in range 0-1)
|
|
15
|
+
*
|
|
16
|
+
* @param bounds the bounds of the window
|
|
17
|
+
* @param monitor the monitor to check against
|
|
18
|
+
*/
|
|
19
|
+
export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
|
|
20
|
+
export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
|
|
13
21
|
export declare function getResponseModalBoundsAndCenterParentIfModalOffScreen(modalOptions: ResponseModalConfig['windowOptions'], parentWindowIdentity?: OpenFin.Identity, centerOnMonitor?: boolean): Promise<OpenFin.Bounds>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type OpenFin from '@openfin/core';
|
|
2
|
-
import { BookmarkFolder } from '../../../common/src/utils/bookmarks';
|
|
3
2
|
import { UserMenuParams } from '../../../common/src/utils/menu';
|
|
4
3
|
import { OptionalExceptFor } from '../../../common/src/utils/types';
|
|
5
4
|
import { AnchorBehavior } from '../../../client-api-platform/src/api/context-menu';
|
|
6
|
-
import { SearchViewExpansionState } from '../../../browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar';
|
|
7
5
|
import { Site, SiteAction } from '../../../client-api-platform/src/shapes';
|
|
8
6
|
export declare enum SaveMenuType {
|
|
9
7
|
Save = "Save",
|
|
@@ -16,6 +14,9 @@ export declare enum SaveMenuType {
|
|
|
16
14
|
*/
|
|
17
15
|
export declare const getSaveContextMenuTemplate: (saveMenuType?: SaveMenuType) => OpenFin.MenuItemTemplate[];
|
|
18
16
|
export declare function showModalWin<T extends keyof UserMenuParams>(params: UserMenuParams[T], windowOpts: OptionalExceptFor<OpenFin.WindowOptions, 'x' | 'y' | 'defaultWidth' | 'url' | 'name'>): Promise<OpenFin.Window>;
|
|
17
|
+
export type SearchMenuChannelFocusView = {
|
|
18
|
+
type: 'focus-search-menu';
|
|
19
|
+
};
|
|
19
20
|
export type SearchMenuChannelViewResized = {
|
|
20
21
|
type: 'view-resized';
|
|
21
22
|
height: number;
|
|
@@ -25,44 +26,22 @@ export type SearchMenuChannelUpdateState = {
|
|
|
25
26
|
selectedViews: OpenFin.Identity[];
|
|
26
27
|
openViews: OpenFin.Identity[];
|
|
27
28
|
windowId: OpenFin.Identity;
|
|
28
|
-
searchText?: string;
|
|
29
|
-
keyboardEvent?: BrowserSearchMenuKeyboardEvent;
|
|
30
|
-
shouldExpandMenu?: SearchViewExpansionState;
|
|
31
29
|
type: 'update-search-menu-state';
|
|
32
30
|
};
|
|
33
|
-
export type
|
|
34
|
-
type: string;
|
|
35
|
-
options: {
|
|
36
|
-
key: string;
|
|
37
|
-
metaKey?: boolean;
|
|
38
|
-
ctrlKey?: boolean;
|
|
39
|
-
altKey?: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export type SearchMenuChannelRequest = SearchMenuChannelViewResized | SearchMenuChannelUpdateState;
|
|
31
|
+
export type SearchMenuChannelRequest = SearchMenuChannelFocusView | SearchMenuChannelViewResized | SearchMenuChannelUpdateState;
|
|
43
32
|
export declare enum ContextMenuType {
|
|
44
33
|
GlobalMenu = "global-menu",
|
|
45
34
|
ContextMenu = "context-menu",
|
|
46
|
-
RenameSupertab = "rename-supertab"
|
|
47
|
-
AddEditBookmark = "add-edit-bookmark",
|
|
48
|
-
DropdownMenu = "dropdown-menu"
|
|
35
|
+
RenameSupertab = "rename-supertab"
|
|
49
36
|
}
|
|
50
|
-
export type BookmarkButtonPayload = {
|
|
51
|
-
selectedViewIdentity?: OpenFin.Identity;
|
|
52
|
-
};
|
|
53
37
|
export type ContextMenuChannelMessageData = {
|
|
54
38
|
parentIdentity: OpenFin.Identity;
|
|
55
|
-
responseIdentity: OpenFin.Identity;
|
|
56
39
|
anchorBehavior: AnchorBehavior;
|
|
57
40
|
type: ContextMenuType;
|
|
58
41
|
x: number;
|
|
59
42
|
y: number;
|
|
60
43
|
payload: OpenFin.ShowPopupMenuOptions | {
|
|
61
44
|
pageId: string;
|
|
62
|
-
} | BookmarkButtonPayload | {
|
|
63
|
-
dropdownOptions: Array<BookmarkFolder>;
|
|
64
|
-
width: number;
|
|
65
|
-
selected: BookmarkFolder;
|
|
66
45
|
};
|
|
67
46
|
};
|
|
68
47
|
export type SearchMenuChannelResponse = {
|
|
@@ -72,14 +51,14 @@ export type SearchMenuChannelResponse = {
|
|
|
72
51
|
selectedView: OpenFin.Identity;
|
|
73
52
|
inputUpdate?: string;
|
|
74
53
|
trigger?: SiteAction;
|
|
75
|
-
|
|
54
|
+
} | {
|
|
55
|
+
type: 'update-input';
|
|
56
|
+
inputText: string;
|
|
57
|
+
isSecure: boolean;
|
|
58
|
+
landingPage: boolean;
|
|
76
59
|
} | {
|
|
77
60
|
type: 'resize-view';
|
|
78
|
-
isExpanded: boolean;
|
|
79
61
|
height: number;
|
|
80
62
|
width: number;
|
|
81
|
-
} | {
|
|
82
|
-
type: 'keyboard-event';
|
|
83
|
-
keyboardEvent: BrowserSearchMenuKeyboardEvent;
|
|
84
63
|
};
|
|
85
64
|
export declare function showPopupWin<T extends keyof UserMenuParams>(parentWindow: OpenFin.Window, params: UserMenuParams[T], windowOpts: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;
|
|
@@ -15,7 +15,7 @@ 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
|
-
|
|
18
|
+
BrowserPopupMenuAddressSearchView = "/browser/popup-menu/address-search-view/",
|
|
19
19
|
ResponseModal = "/browser/popup-menu/response-modal/",
|
|
20
20
|
CloseConfirmationModal = "/browser/popup-menu/close-confirmation-modal/",
|
|
21
21
|
Docs = "/provider/docs/",
|
|
@@ -23,9 +23,7 @@ export declare enum PageRoute {
|
|
|
23
23
|
DeprecatedAlert = "/provider/deprecated-alert/",
|
|
24
24
|
Analytics = "/provider/analytics/",
|
|
25
25
|
EnterpriseBrowser = "/browser/enterprise/",
|
|
26
|
-
EnterpriseContextMenu = "/browser/enterprise/context-menu/"
|
|
27
|
-
EnterpriseBookmarkDialog = "/browser/enterprise/bookmark-dialog/",
|
|
28
|
-
DropdownMenu = "/browser/enterprise/dropdown-menu/"
|
|
26
|
+
EnterpriseContextMenu = "/browser/enterprise/context-menu/"
|
|
29
27
|
}
|
|
30
28
|
export declare const Assets: {
|
|
31
29
|
readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
|
|
@@ -11,9 +11,7 @@ export declare enum WindowName {
|
|
|
11
11
|
BrowserWindow = "internal-generated-window",
|
|
12
12
|
ClassicWindow = "internal-generated-classic-window",
|
|
13
13
|
EnterpriseContextMenu = "openfin-enterprise-context-menu",
|
|
14
|
-
BrowserAddressSearchPrefix = "openfin-browser-menu-address-search-"
|
|
15
|
-
EnterpriseBookmarkDialogWindow = "openfin-enterprise-bookmark-dialog",
|
|
16
|
-
DropdownMenu = "openfin-enterprise-dropdown-menu"
|
|
14
|
+
BrowserAddressSearchPrefix = "openfin-browser-menu-address-search-"
|
|
17
15
|
}
|
|
18
16
|
export interface WindowIdentity {
|
|
19
17
|
uuid: ApplicationUUID | string;
|
|
@@ -165,13 +163,4 @@ export declare const getComponentWindowStatus: () => Promise<{
|
|
|
165
163
|
}>;
|
|
166
164
|
export declare const deserializeWindowBounds: (serialized: string) => OpenFin.WindowBounds | null;
|
|
167
165
|
export declare const serializeWindowBounds: (bounds: OpenFin.WindowBounds) => string;
|
|
168
|
-
export declare const getWindowBounds: (window: OpenFin.Window) => Promise<OpenFin.RectangleByEdgePositions>;
|
|
169
|
-
/**
|
|
170
|
-
* calculates the percenage of the window that is present within the monitor (float in range 0-1)
|
|
171
|
-
*
|
|
172
|
-
* @param bounds the bounds of the window
|
|
173
|
-
* @param monitor the monitor to check against
|
|
174
|
-
*/
|
|
175
|
-
export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
|
|
176
|
-
export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
|
|
177
166
|
export {};
|