@openfin/workspace 19.3.9 → 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.
Files changed (94) hide show
  1. package/client-api-platform/src/api/app-directory.d.ts +1 -1
  2. package/client-api-platform/src/api/context-menu/index.d.ts +1 -3
  3. package/client-api-platform/src/shapes.d.ts +2 -55
  4. package/common/src/api/pages/shapes.d.ts +0 -91
  5. package/common/src/api/protocol/browser.d.ts +1 -13
  6. package/common/src/api/protocol/workspace-platform.d.ts +0 -1
  7. package/common/src/api/theming.d.ts +1 -2
  8. package/common/src/utils/enterprise-context-menu-cahnnels.d.ts +4 -0
  9. package/common/src/utils/enterpriseBrowser.d.ts +0 -1
  10. package/common/src/utils/env.d.ts +1 -1
  11. package/common/src/utils/layout.d.ts +0 -6
  12. package/common/src/utils/menu-config.d.ts +0 -1
  13. package/common/src/utils/modal-bounds.d.ts +8 -0
  14. package/common/src/utils/popup-window.d.ts +10 -31
  15. package/common/src/utils/route.d.ts +2 -4
  16. package/common/src/utils/window.d.ts +1 -12
  17. package/home.js +3 -3
  18. package/home.js.map +1 -1
  19. package/index.js +3 -3
  20. package/index.js.map +1 -1
  21. package/notifications.js +4 -4
  22. package/notifications.js.map +1 -1
  23. package/package.json +3 -3
  24. package/store.js +3 -3
  25. package/store.js.map +1 -1
  26. package/browser/src/api/color-linking.d.ts +0 -23
  27. package/browser/src/api/controls.d.ts +0 -23
  28. package/browser/src/api/pages/attached.d.ts +0 -23
  29. package/browser/src/api/pages/state.d.ts +0 -10
  30. package/browser/src/api/panels.d.ts +0 -104
  31. package/browser/src/api/view.d.ts +0 -22
  32. package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar.d.ts +0 -15
  33. package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBarInput.d.ts +0 -18
  34. package/browser/src/components/ControlBar/RightControlsContainer/ToolbarContainer/menus/menuConfig.d.ts +0 -17
  35. package/browser/src/components/ControlBar/SearchMenu/CommandBar.d.ts +0 -9
  36. package/browser/src/components/ControlBar/SearchMenu/Icons.d.ts +0 -23
  37. package/browser/src/components/ControlBar/SearchMenu/ResultIcon.d.ts +0 -11
  38. package/browser/src/components/ControlBar/SearchMenu/SecureIcon.d.ts +0 -5
  39. package/browser/src/components/ControlBar/SearchMenu/UrlInput.d.ts +0 -3
  40. package/browser/src/components/ControlBar/SearchMenu/useIsPageOpen.d.ts +0 -3
  41. package/browser/src/components/ControlBar/Tablist/utils.d.ts +0 -8
  42. package/browser/src/components/ControlBar/utils.d.ts +0 -1
  43. package/browser/src/components/LandingPage/BrandIcon.d.ts +0 -6
  44. package/browser/src/components/LayoutContainer/utils.d.ts +0 -10
  45. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +0 -17
  46. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksFolderHeader.d.ts +0 -8
  47. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanel.d.ts +0 -9
  48. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanelHeader.d.ts +0 -3
  49. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +0 -15
  50. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksSearchInput.d.ts +0 -7
  51. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarkNavigation.d.ts +0 -8
  52. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +0 -16
  53. package/browser/src/components/PanelContainer/BookmarksPanel/useUpdateBookmarkResultsActions.d.ts +0 -15
  54. package/browser/src/components/PanelContainer/BookmarksPanel/utils.d.ts +0 -7
  55. package/browser/src/components/PanelContainer/PanelContainer.d.ts +0 -8
  56. package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/getDimensions.d.ts +0 -14
  57. package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/useAdjustSearchMenuViewDimensions.d.ts +0 -29
  58. package/browser/src/hooks/EnterpriseSearchMenu/useInitChannelToSearchMenuView.d.ts +0 -17
  59. package/browser/src/hooks/EnterpriseSearchMenu/usePostMessageToSearchMenuView.d.ts +0 -18
  60. package/browser/src/hooks/EnterpriseSearchMenu/useProcessChildContentBlockEvent.d.ts +0 -3
  61. package/browser/src/hooks/EnterpriseSearchMenu/useSearchMenuViewLifecycleManager.d.ts +0 -16
  62. package/browser/src/hooks/EnterpriseSearchMenu/useUpdateInputExpansionState.d.ts +0 -15
  63. package/browser/src/hooks/EnterpriseSearchMenu/useUpdateViewExpansionState.d.ts +0 -32
  64. package/browser/src/hooks/useEnterpriseHotkeys.d.ts +0 -4
  65. package/browser/src/hooks/usePanelBounds.d.ts +0 -4
  66. package/browser/src/hooks/useSingleViewPage.d.ts +0 -2
  67. package/browser/src/hooks/useWindowFocusState.d.ts +0 -17
  68. package/browser/src/slices/menu.d.ts +0 -28
  69. package/browser/src/slices/modal/close.d.ts +0 -10
  70. package/browser/src/slices/modal/index.d.ts +0 -8
  71. package/browser/src/slices/pages/attached.d.ts +0 -83
  72. package/browser/src/slices/tab-focus.d.ts +0 -85
  73. package/browser/src/store/index.d.ts +0 -90
  74. package/client-api-platform/src/api/browser/bookmarks.d.ts +0 -6
  75. package/client-api-platform/src/init/override-callback/enterprise-page-required-layout-settings.d.ts +0 -5
  76. package/common/src/api/pages/internal.d.ts +0 -8
  77. package/common/src/api/workspace-events.d.ts +0 -49
  78. package/common/src/components/BaseButton/BaseButton.d.ts +0 -55
  79. package/common/src/components/Icon/CustomIcon.d.ts +0 -15
  80. package/common/src/hooks/context.d.ts +0 -58
  81. package/common/src/hooks/usePlatformTheme.d.ts +0 -6
  82. package/common/src/hooks/useSystemSchemeCheck.d.ts +0 -13
  83. package/common/src/slices/environment.d.ts +0 -22
  84. package/common/src/slices/target-theming.d.ts +0 -56
  85. package/common/src/styles/svg-icons.d.ts +0 -7
  86. package/common/src/utils/a11y/index.d.ts +0 -3
  87. package/common/src/utils/bookmark-item-context-menu.d.ts +0 -3
  88. package/common/src/utils/bookmarks.d.ts +0 -12
  89. package/common/src/utils/custom-logo.d.ts +0 -16
  90. package/common/src/utils/enterprise-channels.d.ts +0 -13
  91. package/common/src/utils/interop.d.ts +0 -30
  92. package/common/src/utils/navigate.d.ts +0 -8
  93. package/common/src/utils/test-ids.d.ts +0 -70
  94. package/common/src/utils/url.d.ts +0 -1
@@ -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.View | OpenFin.Identity | OpenFin.Platform | OpenFin.Application>;
9
+ export declare function launchApp({ app, target }: LaunchAppRequest): Promise<void | OpenFin.Identity | OpenFin.Platform | OpenFin.View | OpenFin.Application>;
10
10
  export declare const enterpriseAppDirectoryChannelClient: () => Promise<OpenFin.ChannelClient>;
11
11
  export declare function getResults(payload: {
12
12
  req: SearchSitesRequest;
@@ -6,8 +6,7 @@ export declare enum AnchorBehavior {
6
6
  BottomRight = 1,
7
7
  Center = 2
8
8
  }
9
- type ContextMenuPayload = OpenGlobalContextMenuPayload | OpenViewTabContextMenuPayload | OpenPageTabContextMenuPayload | OpenSaveButtonContextMenuPayload;
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 {};
@@ -4,7 +4,7 @@ import type { AnalyticsEvent, AnalyticsEventInternal } from '../../common/src/ut
4
4
  import { CustomActionSpecifier, CustomButtonConfig } from '../../common/src/api/action';
5
5
  import { Resource } from '../../common/src/api/i18next';
6
6
  import { TrackedSite } from '../../common/src/api/pages/idb';
7
- import { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, CreateBookmarkNodeRequest, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, ShouldPageClosePayload, ShouldPageCloseResult, UpdateBookmarkNodeRequest, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
7
+ import type { AddDefaultPagePayload, AttachedPage, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageWithUpdatableRuntimeAttribs, SaveModalOnPageCloseResult, ShouldPageClosePayload, ShouldPageCloseResult, ViewsPreventingUnloadPayload } from '../../common/src/api/pages/shapes';
8
8
  import { SetActivePageForWindowPayload } from '../../common/src/api/pages/shapes';
9
9
  import { NotificationsCustomManifestOptions } from '../../common/src/api/shapes/notifications';
10
10
  import type { CustomThemes } from '../../common/src/api/theming';
@@ -170,12 +170,6 @@ export declare enum EnterpriseMainContextMenuOptionType {
170
170
  Print = "Print",
171
171
  Pin = "Pin"
172
172
  }
173
- /** @internal */
174
- export declare enum BookmarkItemContextMenuOptionType {
175
- EditName = "Edit Name",
176
- Move = "Move",
177
- Delete = "Delete"
178
- }
179
173
  /**Shape of the data property of a global context menu template item */
180
174
  export interface GlobalContextMenuItemData extends ContextMenuItemData {
181
175
  type: GlobalContextMenuOptionType;
@@ -195,13 +189,6 @@ export interface AppearanceContextMenuItemData extends GlobalContextMenuItemData
195
189
  export type GlobalContextMenuItemTemplate = OpenFin.MenuItemTemplate<GlobalContextMenuItemData>;
196
190
  /** @internal */
197
191
  export type EnterpriseMainContextMenuItemTemplate = OpenFin.MenuItemTemplate<EnterpriseMainContextMenuItemData>;
198
- /** @internal */
199
- export interface BookmarkItemContextMenuItemData extends ContextMenuItemData {
200
- type: BookmarkItemContextMenuOptionType;
201
- parentId?: string;
202
- }
203
- /** @internal */
204
- export type BookmarkItemContextMenuItemTemplate = OpenFin.MenuItemTemplate<BookmarkItemContextMenuItemData>;
205
192
  /**Shape of the data property of a page tab context menu template item */
206
193
  export interface PageTabContextMenuItemData extends ContextMenuItemData {
207
194
  type: PageTabContextMenuOptionType;
@@ -1097,39 +1084,6 @@ export interface BrowserWindowModule {
1097
1084
  _getCuratedContent(req?: any): Promise<Site[]>;
1098
1085
  /** @internal */
1099
1086
  _handleRequestNavigation(args: NavigationRequest): Promise<void>;
1100
- _bookmarks: BrowserBookmarks;
1101
- }
1102
- export interface BrowserBookmarks {
1103
- /**
1104
- * Implementation for creating a new bookmark node.
1105
- * @param req The request object specifying the attributes of the new node.
1106
- * @internal
1107
- */
1108
- _createBookmarkNode(req: CreateBookmarkNodeRequest): Promise<BookmarkNode>;
1109
- /**
1110
- * Implementation for getting a bookmark node.
1111
- * @param string The unique id of the node. Returns root node when left undefined.
1112
- * @internal
1113
- */
1114
- _getBookmarkNode(id?: string): Promise<BookmarkNode | undefined>;
1115
- /**
1116
- * Implementation for searching for a bookmark node.
1117
- * @param query The string used to filter bookmark nodes by title or, in the case of bookmarks, URL, as well.
1118
- * @internal
1119
- */
1120
- _searchBookmarkNodes(query: string): Promise<BookmarkNode[]>;
1121
- /**
1122
- * Implementation for updating a bookmark node.
1123
- * @param req The request object with the updated attributes of the targeted node.
1124
- * @internal
1125
- */
1126
- _updateBookmarkNode(req: UpdateBookmarkNodeRequest): Promise<BookmarkNode | undefined>;
1127
- /**
1128
- * Implementation for deleting a bookmark node.
1129
- * @param id The unique id of the node.
1130
- * @internal
1131
- */
1132
- _deleteBookmarkNode(id: string): Promise<void>;
1133
1087
  }
1134
1088
  /**
1135
1089
  * @internal
@@ -1782,12 +1736,6 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1782
1736
  * Implementation for getting the notifications workspace platform configuration.
1783
1737
  */
1784
1738
  getNotificationsConfig(): Promise<NotificationsCustomManifestOptions | undefined>;
1785
- _raiseAnalytics(events: AnalyticsEventInternal[]): Promise<void>;
1786
- /**
1787
- * Triggers all browser windows to refresh bookmarks data
1788
- * @internal
1789
- */
1790
- _refreshBookmarksInternal(): Promise<void>;
1791
1739
  /**
1792
1740
  * The browser window factory for the Workspace Platform.
1793
1741
  */
@@ -1800,6 +1748,7 @@ export interface WorkspacePlatformModule extends OpenFin.Platform {
1800
1748
  * Theme API for the Workspace Platform.
1801
1749
  */
1802
1750
  Theme: ThemeApi;
1751
+ _raiseAnalytics(events: AnalyticsEventInternal[]): Promise<void>;
1803
1752
  }
1804
1753
  export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
1805
1754
  /**
@@ -2039,8 +1988,6 @@ export interface WorkspacePlatformProvider extends OpenFin.PlatformProvider {
2039
1988
  }): Promise<SearchSitesResponse>;
2040
1989
  /** @internal */
2041
1990
  handleRequestNavigationInternal(req: NavigationRequest): Promise<void>;
2042
- /** @internal */
2043
- refreshBookmarksInternal(): Promise<void>;
2044
1991
  }
2045
1992
  /**
2046
1993
  * The origins from which a custom action can be invoked
@@ -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
@@ -60,16 +59,6 @@ export declare enum EnterpriseAppDirectoryChannelAction {
60
59
  GetCuratedContent = "get-curated-content",
61
60
  GetRecentlyVisited = "get-recently-visited"
62
61
  }
63
- /**
64
- * @internal
65
- */
66
- export declare enum EnterpriseBookmarkChannelAction {
67
- CreateBookmarkNode = "create-bookmark-node",
68
- GetBookmarkNode = "get-bookmark-node",
69
- SearchBookmarkNodes = "search-bookmark-nodes",
70
- UpdateBookmarkNode = "update-bookmark-node",
71
- DeleteBookmarkNode = "delete-bookmark-node"
72
- }
73
62
  export declare const BrowserChannelAction: {
74
63
  GetPages: PageChannelAction.GetPages;
75
64
  GetActivePageForWindow: PageChannelAction.GetActivePageForWindow;
@@ -92,7 +81,6 @@ export declare const BrowserChannelAction: {
92
81
  SetSelectedScheme: GeneralBrowserChannelActions.SetSelectedScheme;
93
82
  ShowBrowserIndicator: GeneralBrowserChannelActions.ShowBrowserIndicator;
94
83
  SetSelectedLanguage: GeneralBrowserChannelActions.SetSelectedLanguage;
95
- RefreshBookmarksInternal: GeneralBrowserChannelActions.RefreshBookmarksInternal;
96
84
  };
97
85
  export type BrowserChannelAction = typeof BrowserChannelAction;
98
86
  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 { ColorSchemeType, ThemeSet } from '@openfin/ui-library';
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'>>;
@@ -0,0 +1,4 @@
1
+ import OpenFin from '@openfin/core';
2
+ export declare const getChannelName: () => string;
3
+ export declare const createContextMenuChannel: () => Promise<OpenFin.ChannelProvider>;
4
+ export declare const connectToContextMenuChannel: () => Promise<OpenFin.ChannelClient>;
@@ -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;
@@ -11,7 +11,7 @@ export declare const isDocumentDefined: boolean;
11
11
  export declare const isWindowDefinedWithIndexDB: boolean;
12
12
  export declare const finUUID: string;
13
13
  export declare const finName: string;
14
- export declare const finEntityType: "" | "window" | "view";
14
+ export declare const finEntityType: "" | "view" | "window";
15
15
  export declare const isEnvLocal: boolean;
16
16
  export declare const isEnvDev: boolean;
17
17
  export declare const isEnvStaging: 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>;
@@ -37,5 +37,4 @@ export type ButtonConfig = {
37
37
  label: string;
38
38
  type: 'primary' | 'secondary';
39
39
  id: string;
40
- variant?: 'critical' | 'outline';
41
40
  };
@@ -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 BrowserSearchMenuKeyboardEvent = {
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
- handled?: boolean;
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
- BrowserPopupMenuAddressSearchResultsView = "/browser/popup-menu/address-search-results-view/",
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 {};