@openfin/workspace 20.0.5 → 20.1.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 (48) hide show
  1. package/browser/src/components/ControlBar/SearchMenu/BookmarkButton.d.ts +9 -0
  2. package/browser/src/components/ControlBar/SearchMenu/useBookmarkButtonHover.d.ts +2 -0
  3. package/browser/src/components/ControlBar/SearchMenu/useEnterpriseBookmarkDialogWindow.d.ts +2 -0
  4. package/browser/src/components/ControlBar/SearchMenu/useIsBookmarked.d.ts +1 -0
  5. package/browser/src/components/ControlBar/SearchMenu/useIsSelectedViewNavigated.d.ts +5 -0
  6. package/browser/src/components/ControlBar/SearchMenu/useSelectedAndOpenViewsBroadcastChannel.d.ts +8 -0
  7. package/browser/src/components/ControlBar/SearchMenu/utils.d.ts +11 -0
  8. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +2 -2
  9. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +1 -1
  10. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +1 -1
  11. package/client-api-platform/src/api/bookmarks.d.ts +2 -0
  12. package/client-api-platform/src/api/dock.d.ts +13 -0
  13. package/client-api-platform/src/index.d.ts +1 -1
  14. package/client-api-platform/src/init/index.d.ts +4 -2
  15. package/client-api-platform/src/shapes.d.ts +172 -3
  16. package/common/src/api/overrides.d.ts +0 -2
  17. package/common/src/api/protocol/browser.d.ts +12 -1
  18. package/common/src/api/protocol/workspace-platform.d.ts +12 -1
  19. package/common/src/api/theming.d.ts +31 -4
  20. package/common/src/api/workspace-events.d.ts +1 -1
  21. package/common/src/brand/default-brand.d.ts +8 -0
  22. package/common/src/components/BaseButton/BaseButton.d.ts +2 -4
  23. package/common/src/components/CloseButton/CloseButtonLarge.d.ts +4 -0
  24. package/common/src/hooks/useAddEditBookmarkDialog.d.ts +7 -0
  25. package/common/src/hooks/usePreloadedWindow.d.ts +13 -0
  26. package/common/src/styles/svg-icons.d.ts +1 -1
  27. package/common/src/utils/bookmark-item-context-menu.d.ts +5 -0
  28. package/common/src/utils/bookmarks.d.ts +7 -3
  29. package/common/src/utils/enterprise-dock.d.ts +3 -0
  30. package/common/src/utils/get-browser-window.d.ts +3 -0
  31. package/common/src/utils/menu-window-provider.d.ts +1 -0
  32. package/common/src/utils/modal-bounds.d.ts +7 -0
  33. package/common/src/utils/popup-window.d.ts +4 -7
  34. package/common/src/utils/route.d.ts +2 -1
  35. package/common/src/utils/shared-emitter.d.ts +5 -0
  36. package/common/src/utils/usage-register.d.ts +1 -0
  37. package/common/src/utils/window.d.ts +2 -1
  38. package/home.js +215 -127
  39. package/home.js.map +1 -1
  40. package/index.js +215 -127
  41. package/index.js.map +1 -1
  42. package/notifications.js +285 -197
  43. package/notifications.js.map +1 -1
  44. package/package.json +2 -2
  45. package/store.js +215 -127
  46. package/store.js.map +1 -1
  47. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarkNavigation.d.ts +0 -8
  48. package/browser/src/components/PanelContainer/BookmarksPanel/utils.d.ts +0 -7
@@ -1,5 +1,12 @@
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>;
3
10
  /**
4
11
  * returns the correct bounds for the response modal to be displayed at
5
12
  * this will return the correct bounds regardless of whether the window is maximized
@@ -1,5 +1,4 @@
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';
@@ -53,16 +52,14 @@ export type BookmarkButtonPayload = {
53
52
  export type ContextMenuChannelMessageData = {
54
53
  parentIdentity: OpenFin.Identity;
55
54
  responseIdentity: OpenFin.Identity;
56
- anchorBehavior: AnchorBehavior;
57
55
  type: ContextMenuType;
58
56
  x: number;
59
57
  y: number;
60
- payload: OpenFin.ShowPopupMenuOptions | {
58
+ anchorBehavior?: AnchorBehavior;
59
+ payload: (OpenFin.ShowPopupMenuOptions | {
61
60
  pageId: string;
62
- } | BookmarkButtonPayload | {
63
- dropdownOptions: Array<BookmarkFolder>;
64
- width: number;
65
- selected: BookmarkFolder;
61
+ } | BookmarkButtonPayload) & {
62
+ width?: number;
66
63
  };
67
64
  };
68
65
  export type SearchMenuChannelResponse = {
@@ -25,7 +25,8 @@ 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/"
28
+ DropdownMenu = "/browser/enterprise/dropdown-menu/",
29
+ EnterpriseDock = "/browser/enterprise/dock/"
29
30
  }
30
31
  export declare const Assets: {
31
32
  readonly IconOpenFinLogo: "/icons/openfinlogo.svg";
@@ -6,6 +6,11 @@ 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;
9
14
  removeListener: <EventKey_2 extends keyof EventMap>(event: EventKey_2, listener: (...payload: EventMap[EventKey_2]) => void) => void;
10
15
  once: <EventKey_3 extends keyof EventMap>(event: EventKey_3, listener: (...payload: EventMap[EventKey_3]) => void) => void;
11
16
  };
@@ -9,6 +9,7 @@ export interface RegisterUsageStatus {
9
9
  export declare enum ComponentName {
10
10
  Browser = "Browser",
11
11
  Dock = "Dock",
12
+ EnterpriseDock = "EnterpriseDock",
12
13
  Home = "Home",
13
14
  Notification = "Notification",
14
15
  Storefront = "Storefront",
@@ -13,7 +13,8 @@ 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"
16
+ DropdownMenu = "openfin-enterprise-dropdown-menu",
17
+ DockCompanion = "openfin-dock-companion"
17
18
  }
18
19
  export interface WindowIdentity {
19
20
  uuid: ApplicationUUID | string;