@openfin/workspace 20.2.4 → 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 (100) 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/home.js +1 -1
  11. package/home.js.map +1 -1
  12. package/index.js +3 -3
  13. package/index.js.map +1 -1
  14. package/notifications.js +2 -2
  15. package/notifications.js.map +1 -1
  16. package/package.json +2 -2
  17. package/search-api/src/client/index.d.ts +1 -1
  18. package/search-api/src/client/remote/channel-client-factory.d.ts +1 -1
  19. package/search-api/src/client/remote/disconnect.d.ts +1 -1
  20. package/search-api/src/common.d.ts +0 -5
  21. package/search-api/src/provider/index.d.ts +1 -1
  22. package/search-api/src/provider/remote/channel-factory.d.ts +1 -1
  23. package/store.js +1 -1
  24. package/store.js.map +1 -1
  25. package/browser/src/api/color-linking.d.ts +0 -23
  26. package/browser/src/api/controls.d.ts +0 -23
  27. package/browser/src/api/pages/attached.d.ts +0 -23
  28. package/browser/src/api/pages/state.d.ts +0 -10
  29. package/browser/src/api/panels.d.ts +0 -106
  30. package/browser/src/api/view.d.ts +0 -22
  31. package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar.d.ts +0 -15
  32. package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBarInput.d.ts +0 -18
  33. package/browser/src/components/ControlBar/RightControlsContainer/ToolbarContainer/menus/menuConfig.d.ts +0 -17
  34. package/browser/src/components/ControlBar/SearchMenu/BookmarkButton.d.ts +0 -9
  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/useBookmarkButtonHover.d.ts +0 -2
  41. package/browser/src/components/ControlBar/SearchMenu/useEnterpriseBookmarkDialogWindow.d.ts +0 -2
  42. package/browser/src/components/ControlBar/SearchMenu/useIsBookmarked.d.ts +0 -1
  43. package/browser/src/components/ControlBar/SearchMenu/useIsPageOpen.d.ts +0 -3
  44. package/browser/src/components/ControlBar/SearchMenu/useIsSelectedViewNavigated.d.ts +0 -5
  45. package/browser/src/components/ControlBar/SearchMenu/useSelectedAndOpenViewsBroadcastChannel.d.ts +0 -8
  46. package/browser/src/components/ControlBar/SearchMenu/utils.d.ts +0 -11
  47. package/browser/src/components/ControlBar/Tablist/utils.d.ts +0 -8
  48. package/browser/src/components/ControlBar/utils.d.ts +0 -1
  49. package/browser/src/components/LandingPage/BrandIcon.d.ts +0 -6
  50. package/browser/src/components/LayoutContainer/utils.d.ts +0 -10
  51. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarkItem.d.ts +0 -17
  52. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksFolderHeader.d.ts +0 -8
  53. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanel.d.ts +0 -9
  54. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanelHeader.d.ts +0 -3
  55. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +0 -15
  56. package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksSearchInput.d.ts +0 -7
  57. package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +0 -16
  58. package/browser/src/components/PanelContainer/BookmarksPanel/useUpdateBookmarkResultsActions.d.ts +0 -15
  59. package/browser/src/components/PanelContainer/PanelContainer.d.ts +0 -8
  60. package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/getDimensions.d.ts +0 -14
  61. package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/useAdjustSearchMenuViewDimensions.d.ts +0 -25
  62. package/browser/src/hooks/EnterpriseSearchMenu/useInitChannelToSearchMenuView.d.ts +0 -18
  63. package/browser/src/hooks/EnterpriseSearchMenu/usePostMessageToSearchMenuView.d.ts +0 -18
  64. package/browser/src/hooks/EnterpriseSearchMenu/useProcessChildContentBlockEvent.d.ts +0 -3
  65. package/browser/src/hooks/EnterpriseSearchMenu/useSearchMenuViewLifecycleManager.d.ts +0 -16
  66. package/browser/src/hooks/EnterpriseSearchMenu/useUpdateInputExpansionState.d.ts +0 -15
  67. package/browser/src/hooks/EnterpriseSearchMenu/useUpdateViewExpansionState.d.ts +0 -32
  68. package/browser/src/hooks/useEnterpriseHotkeys.d.ts +0 -4
  69. package/browser/src/hooks/usePanelBounds.d.ts +0 -4
  70. package/browser/src/hooks/useSingleViewPage.d.ts +0 -2
  71. package/browser/src/hooks/useWindowFocusState.d.ts +0 -17
  72. package/browser/src/slices/menu.d.ts +0 -28
  73. package/browser/src/slices/modal/close.d.ts +0 -10
  74. package/browser/src/slices/modal/index.d.ts +0 -8
  75. package/browser/src/slices/pages/attached.d.ts +0 -83
  76. package/browser/src/slices/tab-focus.d.ts +0 -85
  77. package/browser/src/store/index.d.ts +0 -90
  78. package/client-api-platform/src/init/override-callback/enterprise-page-required-layout-settings.d.ts +0 -5
  79. package/common/src/api/pages/internal.d.ts +0 -8
  80. package/common/src/api/workspace-events.d.ts +0 -49
  81. package/common/src/components/BaseButton/BaseButton.d.ts +0 -53
  82. package/common/src/components/CloseButton/CloseButtonLarge.d.ts +0 -4
  83. package/common/src/components/Icon/CustomIcon.d.ts +0 -15
  84. package/common/src/hooks/context.d.ts +0 -58
  85. package/common/src/hooks/useAddEditBookmarkDialog.d.ts +0 -7
  86. package/common/src/hooks/usePlatformTheme.d.ts +0 -6
  87. package/common/src/hooks/usePreloadedWindow.d.ts +0 -13
  88. package/common/src/hooks/useSystemSchemeCheck.d.ts +0 -13
  89. package/common/src/slices/environment.d.ts +0 -22
  90. package/common/src/slices/target-theming.d.ts +0 -56
  91. package/common/src/styles/svg-icons.d.ts +0 -7
  92. package/common/src/utils/a11y/index.d.ts +0 -3
  93. package/common/src/utils/bookmark-item-context-menu.d.ts +0 -8
  94. package/common/src/utils/bookmarks.d.ts +0 -16
  95. package/common/src/utils/custom-logo.d.ts +0 -16
  96. package/common/src/utils/get-browser-window.d.ts +0 -3
  97. package/common/src/utils/interop.d.ts +0 -30
  98. package/common/src/utils/navigate.d.ts +0 -8
  99. package/common/src/utils/test-ids.d.ts +0 -70
  100. package/common/src/utils/url.d.ts +0 -1
@@ -1,13 +0,0 @@
1
- import { ColorSchemeType } from '@openfin/ui-library';
2
- /**
3
- * Custom hook that checks the system color scheme and provides information about the current scheme.
4
- *
5
- * @returns An object containing the current color scheme, system color scheme, and a boolean indicating if the scheme is dark.
6
- */
7
- interface SystemSchemeCheck {
8
- currentScheme: Omit<ColorSchemeType, 'system'>;
9
- systemScheme: Omit<ColorSchemeType, 'system'>;
10
- isSchemeDark: boolean;
11
- }
12
- declare function useSystemSchemeCheck(): SystemSchemeCheck;
13
- export default useSystemSchemeCheck;
@@ -1,22 +0,0 @@
1
- export interface EnvironmentRootState {
2
- environment: {
3
- isWindows: boolean;
4
- };
5
- }
6
- export declare const getEnvironment: import("@reduxjs/toolkit").AsyncThunk<boolean, void, {}>;
7
- export declare const environmentSlice: import("@reduxjs/toolkit").Slice<{
8
- isWindows: boolean;
9
- }, {
10
- setEnvironment: (state: import("immer/dist/internal").WritableDraft<{
11
- isWindows: boolean;
12
- }>, action: {
13
- payload: any;
14
- type: string;
15
- }) => void;
16
- }, "environment">;
17
- export declare const setEnvironment: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
18
- export declare const selectIsWindows: (state: EnvironmentRootState) => boolean;
19
- declare const _default: import("redux").Reducer<{
20
- isWindows: boolean;
21
- }>;
22
- export default _default;
@@ -1,56 +0,0 @@
1
- import { ColorSchemeOptionType } from '../../../client-api-platform/src/shapes';
2
- import type { ComputedTheme } from '../api/theming';
3
- export interface TargetThemingRootState {
4
- targetTheming: {
5
- isFetchingTheme: boolean;
6
- currentTheme: ComputedTheme | undefined;
7
- hasTriedFetch: boolean;
8
- currentScheme: ColorSchemeOptionType | undefined;
9
- };
10
- }
11
- export declare const targetThemingSlice: import("@reduxjs/toolkit").Slice<{
12
- isFetchingTheme: boolean;
13
- currentTheme: ComputedTheme | undefined;
14
- hasTriedFetch: boolean;
15
- currentScheme: ColorSchemeOptionType | undefined;
16
- }, {
17
- setTheme: (state: import("immer/dist/internal").WritableDraft<{
18
- isFetchingTheme: boolean;
19
- currentTheme: ComputedTheme | undefined;
20
- hasTriedFetch: boolean;
21
- currentScheme: ColorSchemeOptionType | undefined;
22
- }>, action: {
23
- payload: any;
24
- type: string;
25
- }) => void;
26
- setIsFetchingTheme: (state: import("immer/dist/internal").WritableDraft<{
27
- isFetchingTheme: boolean;
28
- currentTheme: ComputedTheme | undefined;
29
- hasTriedFetch: boolean;
30
- currentScheme: ColorSchemeOptionType | undefined;
31
- }>, action: {
32
- payload: any;
33
- type: string;
34
- }) => void;
35
- setCurrentScheme: (state: import("immer/dist/internal").WritableDraft<{
36
- isFetchingTheme: boolean;
37
- currentTheme: ComputedTheme | undefined;
38
- hasTriedFetch: boolean;
39
- currentScheme: ColorSchemeOptionType | undefined;
40
- }>, action: {
41
- payload: any;
42
- type: string;
43
- }) => void;
44
- }, "targetTheming">;
45
- export declare const setTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setIsFetchingTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setCurrentScheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
46
- export declare const selectTargetTheming: (state: TargetThemingRootState) => ComputedTheme;
47
- export declare const selectCurrentScheme: (state: TargetThemingRootState) => ColorSchemeOptionType;
48
- export declare const selectHasTriedFetch: (state: TargetThemingRootState) => boolean;
49
- export declare const selectIsFetchingTheme: (state: TargetThemingRootState) => boolean;
50
- declare const _default: import("redux").Reducer<{
51
- isFetchingTheme: boolean;
52
- currentTheme: ComputedTheme;
53
- hasTriedFetch: boolean;
54
- currentScheme: ColorSchemeOptionType;
55
- }>;
56
- export default _default;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@openfin/ui-library").IconProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
3
- disabled?: boolean;
4
- isEnterprise?: boolean;
5
- windowFocused?: boolean;
6
- }, never>;
7
- export declare const ThemedSVG: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +0,0 @@
1
- export type HTMLElementWithAria = HTMLElement & {
2
- ariaLabel: string | null;
3
- };
@@ -1,8 +0,0 @@
1
- import { OpenFin } from '@openfin/core';
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
- export declare const getBookmarkItemContextMenuTemplate: (callerIdentity: OpenFin.Identity, bookmarkId: string) => Promise<BookmarkItemContextMenuItemTemplate[]>;
@@ -1,16 +0,0 @@
1
- import { BookmarkNode } from '../../../common/src/api/pages/shapes';
2
- export declare const ALL_BOOKMARKS_FOLDER_TITLE = "_ALL_BOOKMARKS_";
3
- export declare const FAVORITES_FOLDER_TITLE = "_FAVORITES_";
4
- export type BookmarkFolder = {
5
- id: string;
6
- title: string;
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
- export declare const sortBookmarks: (a: BookmarkNode, b: BookmarkNode) => number;
15
- export declare const collectFolders: (nodes: BookmarkNode[]) => BookmarkFolder[];
16
- export declare const getBookmarkFoldersList: (rootNode: BookmarkNode) => BookmarkFolder[];
@@ -1,16 +0,0 @@
1
- /**
2
- * Custom React hook to check the accessibility of a custom logo image.
3
- * This hook initiates an image load and returns a boolean value indicating
4
- * whether the image is accessible or not.
5
- *
6
- * @param customLogoUrl The URL of the custom logo to check. If undefined, the hook immediately returns false.
7
- * @returns A state value that is true if the custom logo is accessible and has loaded successfully, and false otherwise.
8
- * @example
9
- * ```jsx
10
- * function Component() {
11
- * const logoAccessible = useCustomLogoAccessible('http://example.com/logo.png');
12
- * return logoAccessible ? <img src='http://example.com/logo.png' /> : <DefaultLogo />;
13
- * }
14
- * ```
15
- */
16
- export declare const useCustomLogoAccessible: (customLogoUrl: string | undefined) => boolean;
@@ -1,3 +0,0 @@
1
- import OpenFin from '@openfin/core';
2
- export declare const getBrowserWindow: () => Promise<import("@client-platform/shapes").BrowserWindowModule>;
3
- export declare const getBrowserWindowWithoutView: (browserIdentity?: OpenFin.Identity) => Promise<import("@client-platform/shapes").BrowserWindowModule>;
@@ -1,30 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- export declare enum InteropEventType {
3
- JoinedContextGroup = "joined-context-group",
4
- RemovedFromContextGroup = "removed-from-context-group"
5
- }
6
- type InteropEventPayload<E extends InteropEventType> = {
7
- [InteropEventType.JoinedContextGroup]: {
8
- viewIdentity: OpenFin.Identity;
9
- contextGroupId: string;
10
- };
11
- [InteropEventType.RemovedFromContextGroup]: {
12
- viewIdentity: OpenFin.Identity;
13
- };
14
- }[E];
15
- export type InteropListener<EventType extends InteropEventType> = (payload: InteropEventPayload<EventType>) => void;
16
- /**
17
- * Returns contextGroup data.
18
- * @returns Promise<ContextGroup[]>
19
- */
20
- export declare function getContextGroups(): Promise<OpenFin.ContextGroupInfo[]>;
21
- export declare const joinContextGroup: (viewIdentity: OpenFin.Identity, contextGroupId: string) => Promise<void>;
22
- export declare const removeFromGroup: (viewIdentity: OpenFin.Identity) => Promise<void>;
23
- export declare function getViewContextGroupId(viewIdentity: OpenFin.Identity): Promise<string | null | undefined>;
24
- /**
25
- * Listen for interop events.
26
- * @param event the interop event to listen for.
27
- * @param listener the function to call when the event occurs.
28
- */
29
- export declare const addInteropListener: <Event_1 extends InteropEventType>(event: Event_1, listener: InteropListener<Event_1>) => Promise<void>;
30
- export {};
@@ -1,8 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- import { ComponentName } from '../../../common/src/utils/usage-register';
3
- export interface NavigatePayload {
4
- componentName: ComponentName;
5
- platformIdentity: OpenFin.Identity;
6
- providerId?: string;
7
- }
8
- export declare const navigateTo: (componentName: ComponentName, platformIdentity: OpenFin.Identity, providerId?: string) => Promise<void>;
@@ -1,70 +0,0 @@
1
- /**
2
- * All data test ids used by the application.
3
- */
4
- /**
5
- * Test id for the card shown when search result list on any page is empty.
6
- */
7
- export declare const listEmptyCard = "list-empty-card";
8
- /**
9
- * Test id for the homepad list item component's title.
10
- */
11
- export declare const componentsHomepadListItemTitle = "components-homepad-list-item-title";
12
- /**
13
- * Test id for the home page nav hotkey button
14
- */
15
- export declare const homepadNavHotkeyButton = "components-homepad-nav-hotkey";
16
- /**
17
- * Test id for the home's logo custom icon.
18
- */
19
- export declare const homeLogoCustomIconId = "home-logo-custom-icon";
20
- /**
21
- * Test id for the Enterprise Browser's logo custom icon.
22
- */
23
- export declare const enterpriseCustomIconId = "enterprise-logo-custom-icon";
24
- /**
25
- * Test id for the browser's Page tab button.
26
- */
27
- export declare const browserPageButton = "browser-page-button-tab";
28
- /**
29
- * Test id for the browser's New Page plus button.
30
- */
31
- export declare const browserNewPageButton = "browser-new-page-button";
32
- /**
33
- * Test id for the browser's Save Modal button in the top menu.
34
- */
35
- export declare const browserSaveModalButton = "browser-save-modal-button";
36
- /**
37
- * Test id for the input in Save Modal popup window.
38
- */
39
- export declare const browserSaveModalPopupInput = "browser-save-modal-popup-input";
40
- /**
41
- * Test id for the Save button in Save Modal popup window.
42
- */
43
- export declare const browserSaveModalPopupSaveButton = "browser-save-modal-popup-save-button";
44
- /**
45
- * Cancel button in the Workspace route, e.g. one asking if you want to switch to newly created workspace
46
- */
47
- export declare const workspaceDialogueCancelButton = "workspace-dialogue-cancel-button";
48
- /**
49
- * Input element in the Workspace route in Home
50
- */
51
- export declare const homeWorkspaceSearchInput = "home-workspace-search-input";
52
- /**
53
- * Lock/Unlock Page button when the page is locked
54
- */
55
- export declare const browserLockButtonLockedState = "lock-button-locked-state";
56
- /**
57
- * Lock/Unlock Page button when the page is unlocked
58
- */
59
- export declare const browserLockButtonUnLockedState = "lock-button-unlocked-state";
60
- /**
61
- * Test id for QA Studio.
62
- */
63
- export declare const QAStudioTestIds: {
64
- readonly homeApiPanel: "home-api-panel";
65
- readonly notificationsApiPanel: "notifications-api-panel";
66
- readonly storeApiPanel: "store-api-panel";
67
- readonly dockApiPanel: "dock-api-panel";
68
- readonly workspacePlatformApiPanel: "workspace-platform-api-panel";
69
- readonly workspaceApiPanel: "workspace-api-panel";
70
- };
@@ -1 +0,0 @@
1
- export declare function trimUrl(url: string): string;