@openfin/workspace-platform 20.1.4 → 20.1.6

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.
Files changed (57) hide show
  1. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +2 -2
  2. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanel.d.ts +1 -1
  3. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +1 -1
  4. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarkNavigation.d.ts +8 -0
  5. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +1 -1
  6. package/browser/src/components/PanelContainer/BookmarksPanel/utils.d.ts +7 -0
  7. package/client-api-platform/src/api/app-directory.d.ts +1 -1
  8. package/client-api-platform/src/index.d.ts +1 -1
  9. package/client-api-platform/src/init/index.d.ts +2 -4
  10. package/client-api-platform/src/shapes.d.ts +4 -59
  11. package/common/src/api/overrides.d.ts +2 -0
  12. package/common/src/api/protocol/browser.d.ts +1 -12
  13. package/common/src/api/protocol/workspace-platform.d.ts +1 -12
  14. package/common/src/api/theming.d.ts +4 -6
  15. package/common/src/api/workspace-events.d.ts +1 -1
  16. package/common/src/components/BaseButton/BaseButton.d.ts +4 -2
  17. package/common/src/utils/bookmark-item-context-menu.d.ts +0 -5
  18. package/common/src/utils/bookmarks.d.ts +3 -7
  19. package/common/src/utils/menu-window-provider.d.ts +0 -1
  20. package/common/src/utils/modal-bounds.d.ts +0 -7
  21. package/common/src/utils/popup-window.d.ts +7 -4
  22. package/common/src/utils/route.d.ts +1 -2
  23. package/common/src/utils/router/base.d.ts +1 -1
  24. package/common/src/utils/shared-emitter.d.ts +0 -5
  25. package/common/src/utils/usage-register.d.ts +0 -1
  26. package/common/src/utils/window.d.ts +1 -2
  27. package/index.js +5 -5
  28. package/index.js.map +1 -1
  29. package/package.json +4 -4
  30. package/search-api/src/client/internal.d.ts +4 -4
  31. package/search-api/src/client/remote/channel-client-factory.d.ts +1 -2
  32. package/search-api/src/client/remote/channel-client.d.ts +4 -4
  33. package/search-api/src/fin/index.d.ts +3 -2
  34. package/search-api/src/fin/shapes.d.ts +23 -0
  35. package/search-api/src/index.d.ts +1 -1
  36. package/search-api/src/internal-shapes.d.ts +1 -1
  37. package/search-api/src/provider/internal.d.ts +1 -3
  38. package/search-api/src/provider/remote/channel-factory.d.ts +1 -2
  39. package/search-api/src/provider/remote/channel.d.ts +4 -4
  40. package/search-api/src/shapes.d.ts +2 -17
  41. package/workspace_platform.zip +0 -0
  42. package/browser/src/components/ControlBar/SearchMenu/BookmarkButton.d.ts +0 -9
  43. package/browser/src/components/ControlBar/SearchMenu/useBookmarkButtonHover.d.ts +0 -2
  44. package/browser/src/components/ControlBar/SearchMenu/useEnterpriseBookmarkDialogWindow.d.ts +0 -2
  45. package/browser/src/components/ControlBar/SearchMenu/useIsBookmarked.d.ts +0 -1
  46. package/browser/src/components/ControlBar/SearchMenu/useIsSelectedViewNavigated.d.ts +0 -5
  47. package/browser/src/components/ControlBar/SearchMenu/useSelectedAndOpenViewsBroadcastChannel.d.ts +0 -8
  48. package/browser/src/components/ControlBar/SearchMenu/utils.d.ts +0 -11
  49. package/client-api-platform/src/api/bookmarks.d.ts +0 -2
  50. package/client-api-platform/src/api/bookmarks.test.d.ts +0 -1
  51. package/client-api-platform/src/api/dock.d.ts +0 -13
  52. package/common/src/brand/default-brand.d.ts +0 -8
  53. package/common/src/components/CloseButton/CloseButtonLarge.d.ts +0 -4
  54. package/common/src/hooks/useAddEditBookmarkDialog.d.ts +0 -7
  55. package/common/src/hooks/usePreloadedWindow.d.ts +0 -13
  56. package/common/src/utils/enterprise-dock.d.ts +0 -3
  57. package/common/src/utils/get-browser-window.d.ts +0 -3
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
- import { BaseButtonProps } from '../../../../../common/src/components/BaseButton/BaseButton';
3
+ import { Props as BaseButtonProps } from '../../../../../common/src/components/BaseButton/BaseButton';
4
4
  interface BookmarkItemProps {
5
5
  bookmark: BookmarkNode;
6
6
  isRenaming: boolean;
@@ -9,7 +9,7 @@ interface BookmarkItemProps {
9
9
  }
10
10
  declare const _default: import("react").NamedExoticComponent<BookmarkItemProps>;
11
11
  export default _default;
12
- export declare const BookmarkItemButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, BaseButtonProps & {
12
+ export declare const BookmarkItemButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, BaseButtonProps & {
13
13
  isRenaming?: boolean;
14
14
  }, never>;
15
15
  export declare const BookmarkItemButtonContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -5,5 +5,5 @@ export declare const TextHelp: import("styled-components").StyledComponent<"span
5
5
  color?: "background6" | "textDefault";
6
6
  children: import("react").ReactNode;
7
7
  size?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge";
8
- weight?: "bold" | "normal";
8
+ weight?: "normal" | "bold";
9
9
  }, never>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { CategorizedBookmarkSearchResults } from '../../../../../common/src/utils/bookmarks';
3
2
  import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
+ import { CategorizedBookmarkSearchResults } from './utils';
4
4
  interface BookmarksResultsProps {
5
5
  currentFolder: BookmarkNode;
6
6
  bookmarksList: BookmarkNode[];
@@ -0,0 +1,8 @@
1
+ import { MouseEvent } from 'react';
2
+ import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
+ /**
4
+ * Custom hook that returns function to handle navigation for a click on a bookmark item.
5
+ *
6
+ * @returns {Function} Function to handle bookmark navigation click.
7
+ */
8
+ export declare const useBookmarkNavigation: () => (bookmark: BookmarkNode, event: MouseEvent<HTMLButtonElement>) => Promise<void>;
@@ -1,5 +1,5 @@
1
- import { CategorizedBookmarkSearchResults } from '../../../../../common/src/utils/bookmarks';
2
1
  import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
2
+ import { CategorizedBookmarkSearchResults } from './utils';
3
3
  /**
4
4
  * Custom hook that manages and sorts bookmark search results and returns an object of categorized bookmarks
5
5
  * and actions to update the search query.
@@ -0,0 +1,7 @@
1
+ import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
2
+ export type CategorizedBookmarkSearchResults = {
3
+ bookmarksInFolder: BookmarkNode[];
4
+ bookmarksOutsideFolder: BookmarkNode[];
5
+ };
6
+ export declare const renderBookmarkNodeTitle: (title: string) => string;
7
+ export declare const categorizeSearchResults: (bookmarks: BookmarkNode[], folderId: string) => CategorizedBookmarkSearchResults;
@@ -6,7 +6,7 @@ import type { LaunchAppRequest, SearchSitesRequest, SearchSitesResponse, Site }
6
6
  * @param app the app directory entry.
7
7
  * @param opts launch options.
8
8
  */
9
- export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Application | OpenFin.Identity | OpenFin.Platform | OpenFin.View>;
9
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Application | OpenFin.Identity | OpenFin.View | OpenFin.Platform>;
10
10
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
11
11
  export declare function getResults(payload: {
12
12
  req: SearchSitesRequest;
@@ -1,3 +1,3 @@
1
1
  export * from './shapes';
2
- export { init, initDockCompanion } from './init';
2
+ export { init } from './init';
3
3
  export { getCurrentSync, wrapSync } from './api';
@@ -1,6 +1,4 @@
1
- import OpenFin from '@openfin/core';
2
- import { CompanionDockConfig, WorkspacePlatformInitConfig } from '../shapes';
3
- export declare function initDockCompanion(config: CompanionDockConfig, platform: OpenFin.Platform): Promise<void>;
1
+ import type { WorkspacePlatformInitConfig } from '../shapes';
4
2
  /**
5
3
  * Initilaize a Workspace Platform.
6
4
  *
@@ -36,4 +34,4 @@ export declare function initDockCompanion(config: CompanionDockConfig, platform:
36
34
  * ```
37
35
  * @param options options for configuring the platform.
38
36
  */
39
- export declare const init: ({ theme, customActions, language, ...rest }: WorkspacePlatformInitConfig) => Promise<OpenFin.Platform>;
37
+ export declare const init: ({ theme, customActions, language, ...rest }: WorkspacePlatformInitConfig) => Promise<void>;
@@ -1,12 +1,12 @@
1
1
  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
- import { BaseCustomDropdownItem, CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
5
- import { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
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';
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';
9
- import { App, DockProviderConfigWithIdentity, StoreButtonConfig, WorkspaceButton } from '../../client-api/src/shapes';
9
+ import type { App, DockProviderConfigWithIdentity, StoreButtonConfig } from '../../client-api/src/shapes';
10
10
  import type { WorkflowIntegration } from '../../client-api/src/shapes/integrations';
11
11
  export { AppManifestType } from '../../client-api/src/shapes';
12
12
  export type { App, AppIntent, Image } from '../../client-api/src/shapes';
@@ -959,14 +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
- /**
963
- * Internal implementation to retrieve selected view ids from available layouts in a browser window instances
964
- */
965
- _getLayoutsWithSelectedViews(): Promise<Array<{
966
- layoutContainerKey: string;
967
- isActive: boolean;
968
- selectedViews: OpenFin.Identity[];
969
- }>>;
970
962
  _bookmarks: BrowserBookmarks;
971
963
  }
972
964
  export interface BrowserBookmarks {
@@ -1131,7 +1123,7 @@ export interface BrowserWindowFactory {
1131
1123
  * const windowIdentity = await workspacePlatform.Browser.getLastFocusedWindow();
1132
1124
  * ```
1133
1125
  */
1134
- getLastFocusedWindow(): Promise<OpenFin.Identity | undefined>;
1126
+ getLastFocusedWindow(): Promise<OpenFin.Identity>;
1135
1127
  }
1136
1128
  /**
1137
1129
  * API for interacting with persistent storage.
@@ -1531,44 +1523,6 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1531
1523
  */
1532
1524
  getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1533
1525
  _raiseAnalytics(events: AnalyticsEventInternal[]): Promise<void>;
1534
- /**
1535
- * Launches a bookmark in the browser window.
1536
- * @param payload
1537
- */
1538
- _launchBookmarkInternal: (payload: LaunchBookmarkPayload) => Promise<void>;
1539
- /**
1540
- * Updates companion dock favorites list.
1541
- * @param favorites
1542
- */
1543
- _updateDockFavoritesInternal: (favorites: DockEntry[]) => Promise<void>;
1544
- /**
1545
- * Updates companion dock content menu.
1546
- * @param contentMenu
1547
- */
1548
- _updateContentMenuInternal: (contentMenu: ContentMenuEntry[]) => Promise<void>;
1549
- /**
1550
- * Launches companion dock content menu item.
1551
- * @param id
1552
- */
1553
- _launchDockEntryInternal: (entry: DockEntry) => Promise<void>;
1554
- _setDockFavoritesInternal: (favorites: DockEntry[]) => Promise<void>;
1555
- _setDockWorkspaceButtonsOrderInternal: (favorites: WorkspacePanelButton[]) => Promise<void>;
1556
- _removeDockFavoriteInternal: (entry: DockEntry) => Promise<void>;
1557
- _addDockFavoriteInternal: (entry: DockEntry) => Promise<void>;
1558
- /**
1559
- * Navigates companion dock content menu to a specified folder.
1560
- * @param id
1561
- */
1562
- _navigateContentMenuInternal(id: string): Promise<void>;
1563
- /**
1564
- * Retrieves companion dock workspaces dropdown context menu.
1565
- */
1566
- _openDockWorkspacesContextMenuInternal(): Promise<BaseCustomDropdownItem[]>;
1567
- /**
1568
- * Handles companion dock workspaces dropdown context menu response.
1569
- * @param payload
1570
- */
1571
- _handleDockWorkspacesMenuResponseInternal(payload: any): Promise<void>;
1572
1526
  /**
1573
1527
  * The browser window factory for the Workspace Platform.
1574
1528
  */
@@ -2187,7 +2141,6 @@ export type WorkspacePlatformOverrideCallback = OpenFin.OverrideCallback<Workspa
2187
2141
  * @deprecated
2188
2142
  */
2189
2143
  export type BrowserOverrideCallback = WorkspacePlatformOverrideCallback;
2190
- export type WorkspacePanelButton = Exclude<WorkspaceButton, 'store'> | 'contentMenu';
2191
2144
  /**
2192
2145
  * Configuration for initializing a Browser.
2193
2146
  */
@@ -2262,11 +2215,3 @@ export type TaskbarIcon = {
2262
2215
  dark: string;
2263
2216
  light: string;
2264
2217
  };
2265
- /**
2266
- * Launch bookmark request payload
2267
- */
2268
- export interface LaunchBookmarkPayload {
2269
- bookmark: BookmarkNode;
2270
- sourceIdentity: OpenFin.Identity;
2271
- sourceEvent: Pick<MouseEvent, 'ctrlKey' | 'metaKey' | 'shiftKey'>;
2272
- }
@@ -5,6 +5,8 @@ interface HotkeyOverrides {
5
5
  toggleHomeVisibility: string;
6
6
  }
7
7
  export interface Overrides {
8
+ disableBrowserNewPageButton: boolean;
9
+ enableWorkspaceDock: boolean;
8
10
  hotkeys: HotkeyOverrides;
9
11
  style: StyleOverrides;
10
12
  browserWindowTitle: string;
@@ -3,7 +3,6 @@ export declare const getWindowChannelId: (identity: OpenFin.Identity, prefix?: s
3
3
  export interface ChannelClient extends OpenFin.ChannelClient {
4
4
  dispatch: (action: (typeof BrowserChannelAction)[keyof BrowserChannelAction], payload?: any) => Promise<any>;
5
5
  }
6
- export declare const getNamedChannelClient: (channelName: string) => Promise<ChannelClient>;
7
6
  export declare const getChannelClient: (identity: OpenFin.Identity, prefix?: string) => Promise<ChannelClient>;
8
7
  /**
9
8
  * If the browser window is reloaded too quickly, runtime will
@@ -34,8 +33,7 @@ declare enum GeneralBrowserChannelActions {
34
33
  SetSelectedScheme = "set-selected-scheme",
35
34
  ShowBrowserIndicator = "show-browser-indicator",
36
35
  SetSelectedLanguage = "set-selected-language",
37
- RefreshBookmarksInternal = "refresh-bookmarks",
38
- GetLayoutsWithSelectedViewsInternal = "get-layouts-with-selected-views"
36
+ RefreshBookmarksInternal = "refresh-bookmarks"
39
37
  }
40
38
  /**
41
39
  * All of the remote procedures that can be called in the
@@ -54,15 +52,7 @@ export declare enum PageChannelAction {
54
52
  IsDetachingPages = "is-detaching-pages",
55
53
  IsActivePageChanging = "is-active-page-changing"
56
54
  }
57
- export declare enum CompanionDockChannelAction {
58
- UpdateFavoriteEntries = "update-favorite-entries",
59
- UpdateContentMenu = "update-content-menu",
60
- NavigateContentMenu = "navigate-content-menu"
61
- }
62
55
  export declare const BrowserChannelAction: {
63
- UpdateFavoriteEntries: CompanionDockChannelAction.UpdateFavoriteEntries;
64
- UpdateContentMenu: CompanionDockChannelAction.UpdateContentMenu;
65
- NavigateContentMenu: CompanionDockChannelAction.NavigateContentMenu;
66
56
  GetPages: PageChannelAction.GetPages;
67
57
  GetActivePageForWindow: PageChannelAction.GetActivePageForWindow;
68
58
  AttachPagesToWindow: PageChannelAction.AttachPagesToWindow;
@@ -85,7 +75,6 @@ export declare const BrowserChannelAction: {
85
75
  ShowBrowserIndicator: GeneralBrowserChannelActions.ShowBrowserIndicator;
86
76
  SetSelectedLanguage: GeneralBrowserChannelActions.SetSelectedLanguage;
87
77
  RefreshBookmarksInternal: GeneralBrowserChannelActions.RefreshBookmarksInternal;
88
- GetLayoutsWithSelectedViewsInternal: GeneralBrowserChannelActions.GetLayoutsWithSelectedViewsInternal;
89
78
  };
90
79
  export type BrowserChannelAction = typeof BrowserChannelAction;
91
80
  export {};
@@ -73,18 +73,7 @@ export declare enum WorkspacePlatformChannelAction {
73
73
  GetCuratedContentInternal = "getCuratedContentInternal",
74
74
  HandleRequestNavigationInternal = "handleRequestNavigationInternal",
75
75
  RefreshBookmarksInternal = "refreshBookmarksInternal",
76
- LaunchBookmarkInternal = "launchBookmarkInternal",
77
- GetNotificationsConfig = "getNotificationsConfig",
78
- UpdateDockFavoritesInternal = "updateDockFavoritesInternal",
79
- UpdateContentMenuInternal = "updateContentMenuInternal",
80
- LaunchDockEntryInternal = "launchDockEntryInternal",
81
- SetDockFavoritesOrderInternal = "setDockFavoritesOrderInternal",
82
- NavigateContentMenuInternal = "navigateContentMenuInternal",
83
- SetDockWorkspaceButtonsOrderInternal = "setDockWorkspaceButtonsOrderInternal",
84
- GetDockWorkspacesContextMenuInternal = "getDockWorkspacesContextMenuInternal",
85
- HandleDockWorkspacesMenuResponseInternal = "handleDockWorkspacesMenuResponseInternal",
86
- RemoveDockFavoriteInternal = "removeDockFavoriteInternal",
87
- AddDockFavoriteInternal = "addDockFavoriteInternal"
76
+ GetNotificationsConfig = "getNotificationsConfig"
88
77
  }
89
78
  export type PlatFormSupportedFeatures = boolean | {
90
79
  isWorkspacePlatform: boolean;
@@ -1,7 +1,6 @@
1
1
  import type { DefaultTheme } from 'styled-components';
2
2
  import type OpenFin from '@openfin/core';
3
3
  import { ColorSchemeType, ThemeSet } from '@openfin/ui-library';
4
- import { Palette } from '@openfin/ui-library';
5
4
  import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
6
5
  export type WorkspaceComponentSetSelectedSchemePayload = {
7
6
  newScheme: ColorSchemeOptionType;
@@ -40,7 +39,7 @@ export interface BaseThemeOptions {
40
39
  label: string;
41
40
  logoUrl?: string;
42
41
  }
43
- export type CustomThemeOptions = BaseThemeOptions & {
42
+ export interface CustomThemeOptions extends BaseThemeOptions {
44
43
  palette: CustomPaletteSet;
45
44
  /**
46
45
  * NOTE: Only used in Notifications
@@ -66,8 +65,8 @@ export type CustomThemeOptions = BaseThemeOptions & {
66
65
  * ```
67
66
  */
68
67
  notificationIndicatorColors?: Record<string, NotificationIndicatorColorsSet>;
69
- };
70
- export type CustomThemeOptionsWithScheme = BaseThemeOptions & {
68
+ }
69
+ export interface CustomThemeOptionsWithScheme extends BaseThemeOptions {
71
70
  /**
72
71
  * The default color scheme for this theme.
73
72
  *
@@ -120,7 +119,7 @@ export type CustomThemeOptionsWithScheme = BaseThemeOptions & {
120
119
  * ```
121
120
  */
122
121
  notificationIndicatorColors?: NotificationIndicatorColorsWithScheme;
123
- };
122
+ }
124
123
  export type CustomThemes = (CustomThemeOptions | CustomThemeOptionsWithScheme)[];
125
124
  export interface PreloadedThemeData {
126
125
  themes: CustomThemes;
@@ -248,4 +247,3 @@ export declare const computeThemes: (customThemes: CustomThemes, storedScheme?:
248
247
  export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<ComputedTheme>;
249
248
  export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
250
249
  export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, 'system'>>;
251
- export declare const getComputedBackgroundColor: (paletteKey: keyof typeof Palette, defaultColor?: string) => Promise<string>;
@@ -45,5 +45,5 @@ type EventTypeTypes = {
45
45
  */
46
46
  'component-navigation': [NavigatePayload];
47
47
  };
48
- export declare const addListener: <EventKey extends keyof EventTypeTypes>(event: EventKey, listener: (...payload: EventTypeTypes[EventKey]) => void) => void, removeListener: <EventKey extends keyof EventTypeTypes>(event: EventKey, listener: (...payload: EventTypeTypes[EventKey]) => void) => void, addListenerWithUUID: (uuid: string) => <EventKey extends keyof EventTypeTypes>(event: EventKey, listener: (...payload: EventTypeTypes[EventKey]) => void) => void, emit: <EventKey extends keyof EventTypeTypes>(event: EventKey, ...payload: EventTypeTypes[EventKey]) => Promise<void>;
48
+ export declare const addListener: <EventKey extends keyof EventTypeTypes>(event: EventKey, listener: (...payload: EventTypeTypes[EventKey]) => void) => void, removeListener: <EventKey extends keyof EventTypeTypes>(event: EventKey, listener: (...payload: EventTypeTypes[EventKey]) => void) => void, emit: <EventKey extends keyof EventTypeTypes>(event: EventKey, ...payload: EventTypeTypes[EventKey]) => Promise<void>;
49
49
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SizeType } from '@openfin/ui-library';
3
- export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ export interface Props {
4
4
  /**
5
5
  * Icon to be shown for the control.
6
6
  *
@@ -26,6 +26,8 @@ export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement>
26
26
  disabled?: boolean;
27
27
  /** Button selected state. Can be used to implement sticky buttons. */
28
28
  selected?: boolean;
29
+ /** Use wide button */
30
+ wide?: boolean;
29
31
  /** Disable hover/active background-color change */
30
32
  hoverless?: boolean;
31
33
  /** If not set, svgs in the button will be forced to 13px */
@@ -49,5 +51,5 @@ export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement>
49
51
  *
50
52
  * Note: This relies on global CSS and is written to run within the context of the Browser window which contains these globals.
51
53
  */
52
- declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLButtonElement>>;
54
+ declare const BaseButton: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
53
55
  export default BaseButton;
@@ -1,8 +1,3 @@
1
1
  import { OpenFin } from '@openfin/core';
2
2
  import { BookmarkItemContextMenuItemTemplate } from '../../../client-api-platform/src/shapes';
3
- import { BookmarkFolder } from './bookmarks';
4
- export declare const getSortedBookmarkFoldersContextMenuOptions: (bookmarkFolders: BookmarkFolder[], checkedNodeId: string, separators?: {
5
- afterAllBookmarks?: boolean;
6
- afterFavorites?: boolean;
7
- }) => BookmarkItemContextMenuItemTemplate[];
8
3
  export declare const getBookmarkItemContextMenuTemplate: (callerIdentity: OpenFin.Identity, bookmarkId: string) => Promise<BookmarkItemContextMenuItemTemplate[]>;
@@ -5,12 +5,8 @@ export type BookmarkFolder = {
5
5
  id: string;
6
6
  title: string;
7
7
  };
8
- export type CategorizedBookmarkSearchResults = {
9
- bookmarksInFolder: BookmarkNode[];
10
- bookmarksOutsideFolder: BookmarkNode[];
11
- };
12
- export declare const getBookmarkNodeTitle: (title: string) => string;
13
- export declare const categorizeSearchResults: (bookmarks: BookmarkNode[], folderId: string) => CategorizedBookmarkSearchResults;
14
8
  export declare const sortBookmarks: (a: BookmarkNode, b: BookmarkNode) => number;
15
- export declare const collectFolders: (nodes: BookmarkNode[]) => BookmarkFolder[];
9
+ export declare const collectFolders: (nodes: Array<BookmarkNode>) => Array<BookmarkFolder>;
10
+ export declare const collectFoldersExcludingBuiltin: (nodes: Array<BookmarkNode>) => Array<BookmarkFolder>;
11
+ export declare const prioritizeFolders: (folders: Array<BookmarkFolder>) => Array<BookmarkFolder>;
16
12
  export declare const getBookmarkFoldersList: (rootNode: BookmarkNode) => BookmarkFolder[];
@@ -18,7 +18,6 @@ export interface ModalResponseEvent {
18
18
  export declare const menuEvents: {
19
19
  emit: <EventKey extends keyof MenuEventTypes>(event: EventKey, ...payload: MenuEventTypes[EventKey]) => Promise<void>;
20
20
  addListener: <EventKey_1 extends keyof MenuEventTypes>(event: EventKey_1, listener: (...payload: MenuEventTypes[EventKey_1]) => void) => void;
21
- addListenerWithUUID: (uuid: string) => <EventKey_1 extends keyof MenuEventTypes>(event: EventKey_1, listener: (...payload: MenuEventTypes[EventKey_1]) => void) => void;
22
21
  removeListener: <EventKey_2 extends keyof MenuEventTypes>(event: EventKey_2, listener: (...payload: MenuEventTypes[EventKey_2]) => void) => void;
23
22
  once: <EventKey_3 extends keyof MenuEventTypes>(event: EventKey_3, listener: (...payload: MenuEventTypes[EventKey_3]) => void) => void;
24
23
  };
@@ -1,12 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { ResponseModalConfig } from './menu-config';
3
- import { Point } from './window';
4
- /**
5
- *
6
- * @param parentWindowIdentity parent window for the modal
7
- * @returns a point (top/left) that represents the center of the monitor the parent window is on
8
- */
9
- export declare const getCenterOfParentWindowMonitor: (parentWindowIdentity?: OpenFin.Identity) => Promise<Point>;
10
3
  /**
11
4
  * returns the correct bounds for the response modal to be displayed at
12
5
  * this will return the correct bounds regardless of whether the window is maximized
@@ -1,4 +1,5 @@
1
1
  import type OpenFin from '@openfin/core';
2
+ import { BookmarkFolder } from '../../../common/src/utils/bookmarks';
2
3
  import { UserMenuParams } from '../../../common/src/utils/menu';
3
4
  import { OptionalExceptFor } from '../../../common/src/utils/types';
4
5
  import { AnchorBehavior } from '../../../client-api-platform/src/api/context-menu';
@@ -52,14 +53,16 @@ export type BookmarkButtonPayload = {
52
53
  export type ContextMenuChannelMessageData = {
53
54
  parentIdentity: OpenFin.Identity;
54
55
  responseIdentity: OpenFin.Identity;
56
+ anchorBehavior: AnchorBehavior;
55
57
  type: ContextMenuType;
56
58
  x: number;
57
59
  y: number;
58
- anchorBehavior?: AnchorBehavior;
59
- payload: (OpenFin.ShowPopupMenuOptions | {
60
+ payload: OpenFin.ShowPopupMenuOptions | {
60
61
  pageId: string;
61
- } | BookmarkButtonPayload) & {
62
- width?: number;
62
+ } | BookmarkButtonPayload | {
63
+ dropdownOptions: Array<BookmarkFolder>;
64
+ width: number;
65
+ selected: BookmarkFolder;
63
66
  };
64
67
  };
65
68
  export type SearchMenuChannelResponse = {
@@ -25,8 +25,7 @@ export declare enum PageRoute {
25
25
  EnterpriseBrowser = "/browser/enterprise/",
26
26
  EnterpriseContextMenu = "/browser/enterprise/context-menu/",
27
27
  EnterpriseBookmarkDialog = "/browser/enterprise/bookmark-dialog/",
28
- DropdownMenu = "/browser/enterprise/dropdown-menu/",
29
- EnterpriseDock = "/browser/enterprise/dock/"
28
+ DropdownMenu = "/browser/enterprise/dropdown-menu/"
30
29
  }
31
30
  export declare const Assets: {
32
31
  readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
@@ -37,7 +37,7 @@ export declare function getAbsoluteRoutePath(route: PageRoute | string): string;
37
37
  * The base path of the router contains the router's zone as a postfix.
38
38
  */
39
39
  export declare function getBasePath(): string;
40
- export declare function resolveAbsolutePath(path: string): string;
40
+ export declare function resolveAbsolutePath(path: string, baseUrl?: URL): string;
41
41
  /**
42
42
  * Gets the path to the route with the router's base path.
43
43
  * @param route the route.
@@ -6,11 +6,6 @@ export default function makeSharedEmitter<EventMap extends {
6
6
  }>(id: string): {
7
7
  emit: <EventKey extends keyof EventMap>(event: EventKey, ...payload: EventMap[EventKey]) => Promise<void>;
8
8
  addListener: <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
9
- /**
10
- * Creates a listener for a particular UUID instead of ApplicationUUID.Workspace.
11
- * @param uuid The UUID of the application to subscribe to.
12
- */
13
- addListenerWithUUID: (uuid: string) => <EventKey_1 extends keyof EventMap>(event: EventKey_1, listener: (...payload: EventMap[EventKey_1]) => void) => void;
14
9
  removeListener: <EventKey_2 extends keyof EventMap>(event: EventKey_2, listener: (...payload: EventMap[EventKey_2]) => void) => void;
15
10
  once: <EventKey_3 extends keyof EventMap>(event: EventKey_3, listener: (...payload: EventMap[EventKey_3]) => void) => void;
16
11
  };
@@ -9,7 +9,6 @@ export interface RegisterUsageStatus {
9
9
  export declare enum ComponentName {
10
10
  Browser = "Browser",
11
11
  Dock = "Dock",
12
- EnterpriseDock = "EnterpriseDock",
13
12
  Home = "Home",
14
13
  Notification = "Notification",
15
14
  Storefront = "Storefront",
@@ -13,8 +13,7 @@ export declare enum WindowName {
13
13
  EnterpriseContextMenu = "openfin-enterprise-context-menu",
14
14
  BrowserAddressSearchPrefix = "openfin-browser-menu-address-search-",
15
15
  EnterpriseBookmarkDialogWindow = "openfin-enterprise-bookmark-dialog",
16
- DropdownMenu = "openfin-enterprise-dropdown-menu",
17
- DockCompanion = "openfin-dock-companion"
16
+ DropdownMenu = "openfin-enterprise-dropdown-menu"
18
17
  }
19
18
  export interface WindowIdentity {
20
19
  uuid: ApplicationUUID | string;