@openfin/workspace-platform 20.2.5 → 20.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/client-api-platform/src/init/override-callback/browser-defaults.d.ts +0 -1
  2. package/client-api-platform/src/shapes.d.ts +5 -6
  3. package/common/src/api/pages/shapes.d.ts +21 -0
  4. package/common/src/utils/browser-base-url.d.ts +21 -2
  5. package/common/src/utils/context-menu.d.ts +2 -0
  6. package/common/src/utils/layout.d.ts +5 -1
  7. package/common/src/utils/popup-window.d.ts +5 -1
  8. package/common/src/utils/route.d.ts +44 -16
  9. package/common/src/utils/router/base.d.ts +2 -1
  10. package/index.js +1 -1
  11. package/index.js.map +1 -1
  12. package/package.json +1 -1
  13. package/search-api/src/client/index.d.ts +1 -1
  14. package/search-api/src/client/remote/channel-client-factory.d.ts +1 -1
  15. package/search-api/src/client/remote/disconnect.d.ts +1 -1
  16. package/search-api/src/common.d.ts +0 -5
  17. package/search-api/src/provider/index.d.ts +1 -1
  18. package/search-api/src/provider/remote/channel-factory.d.ts +1 -1
  19. package/workspace_platform.zip +0 -0
  20. package/browser/src/api/color-linking.d.ts +0 -23
  21. package/browser/src/api/controls.d.ts +0 -23
  22. package/browser/src/api/pages/attached.d.ts +0 -23
  23. package/browser/src/api/pages/state.d.ts +0 -10
  24. package/browser/src/api/panels.d.ts +0 -106
  25. package/browser/src/api/view.d.ts +0 -22
  26. package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar.d.ts +0 -15
  27. package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBarInput.d.ts +0 -18
  28. package/browser/src/components/ControlBar/RightControlsContainer/ToolbarContainer/menus/menuConfig.d.ts +0 -17
  29. package/browser/src/components/ControlBar/SearchMenu/BookmarkButton.d.ts +0 -9
  30. package/browser/src/components/ControlBar/SearchMenu/CommandBar.d.ts +0 -9
  31. package/browser/src/components/ControlBar/SearchMenu/Icons.d.ts +0 -23
  32. package/browser/src/components/ControlBar/SearchMenu/ResultIcon.d.ts +0 -11
  33. package/browser/src/components/ControlBar/SearchMenu/SecureIcon.d.ts +0 -5
  34. package/browser/src/components/ControlBar/SearchMenu/UrlInput.d.ts +0 -3
  35. package/browser/src/components/ControlBar/SearchMenu/useBookmarkButtonHover.d.ts +0 -2
  36. package/browser/src/components/ControlBar/SearchMenu/useEnterpriseBookmarkDialogWindow.d.ts +0 -2
  37. package/browser/src/components/ControlBar/SearchMenu/useIsBookmarked.d.ts +0 -1
  38. package/browser/src/components/ControlBar/SearchMenu/useIsPageOpen.d.ts +0 -3
  39. package/browser/src/components/ControlBar/SearchMenu/useIsSelectedViewNavigated.d.ts +0 -5
  40. package/browser/src/components/ControlBar/SearchMenu/useSelectedAndOpenViewsBroadcastChannel.d.ts +0 -8
  41. package/browser/src/components/ControlBar/SearchMenu/utils.d.ts +0 -11
  42. package/browser/src/components/ControlBar/Tablist/utils.d.ts +0 -8
  43. package/browser/src/components/ControlBar/utils.d.ts +0 -1
  44. package/browser/src/components/LandingPage/BrandIcon.d.ts +0 -6
  45. package/browser/src/components/LayoutContainer/utils.d.ts +0 -10
  46. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +0 -17
  47. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksFolderHeader.d.ts +0 -8
  48. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanel.d.ts +0 -9
  49. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanelHeader.d.ts +0 -3
  50. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +0 -15
  51. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksSearchInput.d.ts +0 -7
  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/PanelContainer.d.ts +0 -8
  55. package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/getDimensions.d.ts +0 -14
  56. package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/useAdjustSearchMenuViewDimensions.d.ts +0 -25
  57. package/browser/src/hooks/EnterpriseSearchMenu/useInitChannelToSearchMenuView.d.ts +0 -18
  58. package/browser/src/hooks/EnterpriseSearchMenu/usePostMessageToSearchMenuView.d.ts +0 -18
  59. package/browser/src/hooks/EnterpriseSearchMenu/useProcessChildContentBlockEvent.d.ts +0 -3
  60. package/browser/src/hooks/EnterpriseSearchMenu/useSearchMenuViewLifecycleManager.d.ts +0 -16
  61. package/browser/src/hooks/EnterpriseSearchMenu/useUpdateInputExpansionState.d.ts +0 -15
  62. package/browser/src/hooks/EnterpriseSearchMenu/useUpdateViewExpansionState.d.ts +0 -32
  63. package/browser/src/hooks/useEnterpriseHotkeys.d.ts +0 -4
  64. package/browser/src/hooks/usePanelBounds.d.ts +0 -4
  65. package/browser/src/hooks/useSingleViewPage.d.ts +0 -2
  66. package/browser/src/hooks/useWindowFocusState.d.ts +0 -17
  67. package/browser/src/slices/menu.d.ts +0 -28
  68. package/browser/src/slices/modal/close.d.ts +0 -10
  69. package/browser/src/slices/modal/index.d.ts +0 -8
  70. package/browser/src/slices/pages/attached.d.ts +0 -83
  71. package/browser/src/slices/tab-focus.d.ts +0 -85
  72. package/browser/src/store/index.d.ts +0 -90
  73. package/common/src/api/pages/internal.d.ts +0 -8
  74. package/common/src/api/workspace-events.d.ts +0 -49
  75. package/common/src/components/BaseButton/BaseButton.d.ts +0 -53
  76. package/common/src/components/CloseButton/CloseButtonLarge.d.ts +0 -4
  77. package/common/src/components/Icon/CustomIcon.d.ts +0 -15
  78. package/common/src/hooks/context.d.ts +0 -58
  79. package/common/src/hooks/useAddEditBookmarkDialog.d.ts +0 -7
  80. package/common/src/hooks/usePlatformTheme.d.ts +0 -6
  81. package/common/src/hooks/usePreloadedWindow.d.ts +0 -13
  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 -8
  88. package/common/src/utils/bookmarks.d.ts +0 -16
  89. package/common/src/utils/custom-logo.d.ts +0 -16
  90. package/common/src/utils/get-browser-window.d.ts +0 -3
  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
@@ -2,7 +2,6 @@ import type OpenFin from '@openfin/core';
2
2
  import { WindowName } from '../../../../common/src/utils/window';
3
3
  import type { PreloadedThemeData } from '../../../../common/src/api/theming';
4
4
  import { BrowserInitConfig } from '../../../../client-api-platform/src/shapes';
5
- export declare const defaultBrowserUrl: () => Promise<string>;
6
5
  export declare const ENTERPRISE_LANDING_PAGE_URL: string;
7
6
  export declare const searchMenuIdentityBase: {
8
7
  uuid: string;
@@ -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 { 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';
5
+ import { AddDefaultPagePayload, AttachedPage, BookmarkNode, CopyPagePayload, HandlePagesAndWindowClosePayload, HandlePagesAndWindowCloseResult, HandleSaveModalOnPageClosePayload, Page, PageLayoutsWithSelectedViews, 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';
@@ -158,6 +158,9 @@ export declare enum PageTabContextMenuOptionType {
158
158
  Refresh = "Refresh",
159
159
  CloseOthers = "Close others",
160
160
  Delete = "Delete",
161
+ Print = "Print",
162
+ PrintAll = "PrintAll",
163
+ PrintScreen = "PrintScreen",
161
164
  Custom = "Custom"
162
165
  }
163
166
  /**Shape of the data property of a global context menu template item */
@@ -962,11 +965,7 @@ export interface BrowserWindowModule {
962
965
  /**
963
966
  * Internal implementation to retrieve selected view ids from available layouts in a browser window instances
964
967
  */
965
- _getLayoutsWithSelectedViews(): Promise<Array<{
966
- layoutContainerKey: string;
967
- isActive: boolean;
968
- selectedViews: OpenFin.Identity[];
969
- }>>;
968
+ _getLayoutsWithSelectedViews(): Promise<PageLayoutsWithSelectedViews[]>;
970
969
  _bookmarks: BrowserBookmarks;
971
970
  }
972
971
  export interface BrowserBookmarks {
@@ -348,4 +348,25 @@ export interface UpdateBookmarkNodeRequest {
348
348
  */
349
349
  changes: UpdatedBookmarkNodeAttrs;
350
350
  }
351
+ /**
352
+ * Represents the layout of a page with selected views.
353
+ */
354
+ export interface PageLayoutsWithSelectedViews {
355
+ /**
356
+ * The unique id of the page.
357
+ */
358
+ pageId: string;
359
+ /**
360
+ * The key of the layout container.
361
+ */
362
+ layoutContainerKey: string;
363
+ /**
364
+ * Indicates if the page is active.
365
+ */
366
+ isActive: boolean;
367
+ /**
368
+ * The selected views in the layout.
369
+ */
370
+ selectedViews: OpenFin.Identity[];
371
+ }
351
372
  export {};
@@ -1,7 +1,26 @@
1
1
  export declare function setLocalBrowserUrl(url: string): void;
2
2
  /**
3
- * Get the browser base url override if it exists
3
+ * Get the base url override if it exists
4
4
  *
5
+ * @returns The base url override if it exists, otherwise null
6
+ */
7
+ export declare function getBaseUrl(): Promise<string>;
8
+ /**
9
+ * Get the browser base url
10
+ * @param returnUrlWithATrailingSlash - if true, the url is returned with a trailing slash, if false it is not.
11
+ * @returns The browser base url override if it exists, otherwise null
12
+ */
13
+ export declare function getBrowserBaseUrl(returnUrlWithATrailingSlash?: boolean): Promise<string>;
14
+ /**
15
+ * Get the enterprise browser base url
16
+ * @param returnUrlWithATrailingSlash - if true, the url is returned with a trailing slash, if false it is not.
17
+ * @returns The browser base url override if it exists, otherwise null
18
+ */
19
+ export declare function getEnterpriseBaseUrl(returnUrlWithATrailingSlash?: boolean): Promise<string>;
20
+ /**
21
+ * Get the enterprise browser or the workspace browser base url
22
+ * @param isEnterprise - if true, we are in enterprise browser
23
+ * @param returnUrlWithATrailingSlash - if true, the url is returned with a trailing slash, if false it is not.
5
24
  * @returns The browser base url override if it exists, otherwise null
6
25
  */
7
- export declare function getBrowserBaseUrl(): Promise<string>;
26
+ export declare const getDefaultBrowserUrl: (isEnterprise: boolean, returnUrlWithATrailingSlash?: boolean) => Promise<string>;
@@ -1,5 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
2
  import { AnchorBehavior } from '../../../client-api-platform/src/api/context-menu';
3
+ import { PageTabContextMenuItemTemplate, ViewTabContextMenuTemplate } from '../../../client-api-platform/src/shapes';
3
4
  import { ContextMenuType } from './popup-window';
4
5
  export declare enum MenuItemType {
5
6
  Label = "normal",
@@ -18,3 +19,4 @@ export declare const DefaultSaveMenuBounds: {
18
19
  width: number;
19
20
  height: number;
20
21
  };
22
+ export declare const getPrintOption: () => Promise<ViewTabContextMenuTemplate | PageTabContextMenuItemTemplate>;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="lodash" />
2
2
  import type OpenFin from '@openfin/core';
3
+ import { WindowIdentity } from '../../../common/src/utils/window';
3
4
  import { AttachedPageInternal } from '../../../common/src/api/pages/shapes';
4
5
  import { AttachedPage, PageLayout } from '../../../client-api-platform/src/shapes';
5
- import { WindowIdentity } from './window';
6
6
  export type LayoutDOMEventType =
7
7
  /**
8
8
  * Fired when a tab is created in a container. (Emmitted by ??)
@@ -123,3 +123,7 @@ export declare const updateTabStateBasedOnViewCount: (page: AttachedPageInternal
123
123
  export declare const updatePageForViewCount: (activePage: AttachedPageInternal) => Promise<void>;
124
124
  export declare const debouncedUpdatePageForViewCount: import("lodash").DebouncedFunc<(activePage: AttachedPageInternal) => Promise<void>>;
125
125
  export declare const findPageForView: (viewName: string, browserWindowIdentity?: WindowIdentity) => Promise<AttachedPage | undefined>;
126
+ /**
127
+ * Only show the view tab icon when not on the landing page
128
+ */
129
+ export declare const hideFavIconForLandingPage: (view: OpenFin.View, tab: HTMLElement) => Promise<void>;
@@ -2,12 +2,15 @@ import type OpenFin from '@openfin/core';
2
2
  import { UserMenuParams } from '../../../common/src/utils/menu';
3
3
  import { OptionalExceptFor } from '../../../common/src/utils/types';
4
4
  import { AnchorBehavior } from '../../../client-api-platform/src/api/context-menu';
5
- import { SearchViewExpansionState } from '../../../browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar';
6
5
  import { Site, SiteAction } from '../../../client-api-platform/src/shapes';
7
6
  export declare enum SaveMenuType {
8
7
  Save = "Save",
9
8
  SaveAs = "SaveAs"
10
9
  }
10
+ type SearchViewExpansionState = {
11
+ method?: 'click' | 'keystroke';
12
+ shouldExpand: boolean;
13
+ };
11
14
  export declare function showModalWin<T extends keyof UserMenuParams>(params: UserMenuParams[T], windowOpts: OptionalExceptFor<OpenFin.WindowOptions, 'x' | 'y' | 'defaultWidth' | 'url' | 'name'>): Promise<OpenFin.Window>;
12
15
  export type SearchMenuChannelUpdateState = {
13
16
  selectedViews: OpenFin.Identity[];
@@ -68,3 +71,4 @@ export type SearchMenuChannelResponse = {
68
71
  keyboardEvent: BrowserSearchMenuKeyboardEvent;
69
72
  };
70
73
  export declare function showPopupWin<T extends keyof UserMenuParams>(parentWindow: OpenFin.Window, params: UserMenuParams[T], windowOpts: OpenFin.PopupOptions): Promise<OpenFin.PopupResult>;
74
+ export {};
@@ -3,31 +3,59 @@
3
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
- export declare enum PageRoute {
6
+ declare enum WorkspaceRoute {
7
7
  Home = "/home/",
8
8
  HomeSearch = "/home/?deeplink=search",
9
9
  HomePagesRename = "/home/pages/rename/",
10
10
  Dock = "/dock/",
11
- Browser = "/browser/",
12
- BrowserPopupMenu = "/browser/popup-menu/",
13
- Provider = "/provider/",
14
- BrowserPopupMenuSaveModal = "/browser/popup-menu/save-modal/",
15
- BrowserPopupMenuLayouts = "/browser/popup-menu/layouts/layouts/",
16
- BrowserPopupMenuColorLinking = "/browser/popup-menu/color-linking/color-linking/",
17
- BrowserIndicator = "/browser/indicator/",
18
- BrowserPopupMenuAddressSearchResultsView = "/browser/popup-menu/address-search-results-view/",
19
- ResponseModal = "/browser/popup-menu/response-modal/",
20
- CloseConfirmationModal = "/browser/popup-menu/close-confirmation-modal/",
21
11
  Docs = "/provider/docs/",
22
12
  Storefront = "/storefront/",
23
13
  DeprecatedAlert = "/provider/deprecated-alert/",
24
14
  Analytics = "/provider/analytics/",
25
- EnterpriseBrowser = "/browser/enterprise/",
26
- EnterpriseContextMenu = "/browser/enterprise/context-menu/",
27
- EnterpriseBookmarkDialog = "/browser/enterprise/bookmark-dialog/",
28
- DropdownMenu = "/browser/enterprise/dropdown-menu/",
29
- EnterpriseDock = "/browser/enterprise/dock/"
15
+ Provider = "/provider/"
16
+ }
17
+ declare enum BrowserRoute {
18
+ Browser = "/browser/",
19
+ BrowserPopupMenu = "/popup-menu/",
20
+ BrowserPopupMenuSaveModal = "/popup-menu/save-modal/",
21
+ BrowserPopupMenuLayouts = "/popup-menu/layouts/layouts/",
22
+ BrowserPopupMenuColorLinking = "/popup-menu/color-linking/color-linking/",
23
+ BrowserIndicator = "/indicator/",
24
+ BrowserPopupMenuAddressSearchResultsView = "/popup-menu/address-search-results-view/",
25
+ ResponseModal = "/popup-menu/response-modal/",
26
+ CloseConfirmationModal = "/popup-menu/close-confirmation-modal/",
27
+ EnterpriseBrowser = "/enterprise/",
28
+ EnterpriseContextMenu = "/enterprise/context-menu/",
29
+ EnterpriseBookmarkDialog = "/enterprise/bookmark-dialog/",
30
+ DropdownMenu = "/enterprise/dropdown-menu/",
31
+ EnterpriseDock = "/enterprise/dock/"
30
32
  }
33
+ declare const PageRoute: {
34
+ Browser: BrowserRoute.Browser;
35
+ BrowserPopupMenu: BrowserRoute.BrowserPopupMenu;
36
+ BrowserPopupMenuSaveModal: BrowserRoute.BrowserPopupMenuSaveModal;
37
+ BrowserPopupMenuLayouts: BrowserRoute.BrowserPopupMenuLayouts;
38
+ BrowserPopupMenuColorLinking: BrowserRoute.BrowserPopupMenuColorLinking;
39
+ BrowserIndicator: BrowserRoute.BrowserIndicator;
40
+ BrowserPopupMenuAddressSearchResultsView: BrowserRoute.BrowserPopupMenuAddressSearchResultsView;
41
+ ResponseModal: BrowserRoute.ResponseModal;
42
+ CloseConfirmationModal: BrowserRoute.CloseConfirmationModal;
43
+ EnterpriseBrowser: BrowserRoute.EnterpriseBrowser;
44
+ EnterpriseContextMenu: BrowserRoute.EnterpriseContextMenu;
45
+ EnterpriseBookmarkDialog: BrowserRoute.EnterpriseBookmarkDialog;
46
+ DropdownMenu: BrowserRoute.DropdownMenu;
47
+ EnterpriseDock: BrowserRoute.EnterpriseDock;
48
+ Home: WorkspaceRoute.Home;
49
+ HomeSearch: WorkspaceRoute.HomeSearch;
50
+ HomePagesRename: WorkspaceRoute.HomePagesRename;
51
+ Dock: WorkspaceRoute.Dock;
52
+ Docs: WorkspaceRoute.Docs;
53
+ Storefront: WorkspaceRoute.Storefront;
54
+ DeprecatedAlert: WorkspaceRoute.DeprecatedAlert;
55
+ Analytics: WorkspaceRoute.Analytics;
56
+ Provider: WorkspaceRoute.Provider;
57
+ };
58
+ type PageRoute = WorkspaceRoute | BrowserRoute;
31
59
  export declare const Assets: {
32
60
  readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
33
61
  readonly IconFilter: "/icons/filter.svg";
@@ -1,4 +1,4 @@
1
- import type { PageRoute } from '../route';
1
+ import type PageRoute from '../../../../common/src/utils/route';
2
2
  /**
3
3
  * Multiple different Next projects can be merged together into one using zones.
4
4
  * This is the path prefix to a single one of those deployed projects.
@@ -8,6 +8,7 @@ import type { PageRoute } from '../route';
8
8
  export declare enum Zone {
9
9
  Home = "/home",
10
10
  Browser = "/browser",
11
+ Enterprise = "/enterprise",
11
12
  Provider = "/provider",
12
13
  Storefront = "/storefront",
13
14
  Dock = "/dock"