@openfin/workspace-platform 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 (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 +2 -2
  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
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@openfin/workspace-platform",
3
3
  "description": "An API for creating your own Workspace platform.",
4
4
  "contributors": [],
5
- "version": "20.2.4",
5
+ "version": "20.3.0",
6
6
  "main": "index.js",
7
7
  "keywords": [
8
8
  "client",
@@ -31,7 +31,7 @@
31
31
  "lodash.merge": "^4.6.2",
32
32
  "next": "^12.3.4",
33
33
  "nprogress": "0.2.0",
34
- "openfin-notifications": "2.9.0-alpha-3761",
34
+ "openfin-notifications": "2.9.1",
35
35
  "react": "17.0.2",
36
36
  "react-color": "2.19.3",
37
37
  "react-dom": "17.0.2",
@@ -3,4 +3,4 @@ import type { SearchTopicClient } from '../shapes';
3
3
  * Subscribe to an existing search topic.
4
4
  * @param req the subscribe request.
5
5
  */
6
- export declare function subscribe(): Promise<SearchTopicClient>;
6
+ export declare function subscribe(channelName: string): Promise<SearchTopicClient>;
@@ -1,2 +1,2 @@
1
1
  import type { OpenFin } from '@openfin/core';
2
- export declare function create(): Promise<OpenFin.ChannelClient>;
2
+ export declare function create(channelName: string): Promise<OpenFin.ChannelClient>;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * On channel disconnect, will attempt to reconnect.
3
3
  */
4
- export declare function makeStreamListener(): () => Promise<void>;
4
+ export declare function makeStreamListener(channelName: string): () => Promise<void>;
@@ -1,11 +1,6 @@
1
1
  import type OpenFin from '@openfin/core';
2
- import { ApplicationUUID } from '../../common/src/utils/application';
3
2
  import { InternalSearchListenerRequest, InternalSearchListenerResponse, SearchProviderWithIdentity } from './internal-shapes';
4
3
  import { DeregisterListener, DispatchedAction, DispatchedSearchResult, RegisterListener, ScoreOrder, SearchProvider, SearchRequest, SearchResult } from './shapes';
5
- export declare const HOME_SEARCH_TOPIC: "home";
6
- export declare const HOME_SEARCH_NAMESPACE: ApplicationUUID.OldWorkspace;
7
- export declare const HOME_SEARCH_NAMESPACED_TOPIC: "openfin-browser-home";
8
- export declare const HOME_SEARCH_CHANNEL_NAME: "__search-openfin-browser-home-topic__";
9
4
  export declare const defaultSearchTopic = "all";
10
5
  /**
11
6
  * The stream id that data is requested and transported back to the creator of a search topic on.
@@ -4,4 +4,4 @@ import type { SearchTopic } from '../shapes';
4
4
  * If the OpenFin identity creating the topic is running in a platform, the search topic will be sandboxed to the platform.
5
5
  * In order to subscribe to a sandboxed search topic, the UUID of the platform must be specifed explicitly or the subscribing OpenFin identity must be running in the platform.
6
6
  */
7
- export declare function create(): Promise<SearchTopic>;
7
+ export declare function create(channelName: string): Promise<SearchTopic>;
@@ -3,4 +3,4 @@ import type { OpenFin } from '@openfin/core';
3
3
  * Create a channel for interacting with remote search providers.
4
4
  * @param ctx the context of the search topic to create the channel for.
5
5
  */
6
- export declare function create(): Promise<OpenFin.ChannelProvider>;
6
+ export declare function create(namespace: string): Promise<OpenFin.ChannelProvider>;
Binary file
@@ -1,23 +0,0 @@
1
- /// <reference types="lodash" />
2
- import type OpenFin from '@openfin/core';
3
- export declare enum ColorLinkingUiClass {
4
- SHOW_INTEROP_GROUPS = "showInteropGroups",
5
- HIGHLIGHT = "highlight"
6
- }
7
- export declare function getContextGroupColorForView(viewIdentity: OpenFin.Identity): Promise<OpenFin.DisplayMetadata | undefined>;
8
- export declare function isSameGroup(viewIdentity: OpenFin.Identity, groupId: string): Promise<boolean>;
9
- export declare function findActiveLayout(layoutContainerKey: string): HTMLElement;
10
- export declare function updateBorderColor(viewIdentity: OpenFin.Identity): Promise<void>;
11
- export declare const debouncedSetContextHighlighting: import("lodash").DebouncedFunc<(ids: OpenFin.Identity[], layoutContainerKey: string) => Promise<void>>;
12
- export declare function showBorder(viewIdentity: OpenFin.Identity): Promise<void>;
13
- export declare function highlightAllInteropViews(): Promise<void>;
14
- export declare function removeInteropOutlines(): void;
15
- /**
16
- * Accepts a group of views and a channelId and updates group membership based on the following rules:
17
- * - If all selected views are a member of group, remove them.
18
- * - If one or more view is NOT a member of the group, add all to group.
19
- * @param views Array of view identities
20
- * @param channelId id of the channel for the group to be joined / removed from
21
- * @returns Promise<void>
22
- */
23
- export declare const updateContextGroup: (views: OpenFin.Identity[], channelId: string) => Promise<void>;
@@ -1,23 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- import { ShowBrowserIndicatorPayload } from '../../../common/src/utils/indicators/browser';
3
- import { AddToChannelRequest } from '../../../common/src/api/protocol/browser';
4
- import { OpenSaveMenuRequest } from '../../../client-api-platform/src/shapes';
5
- export declare const requestCloseBrowserWindow: () => Promise<void>;
6
- export declare const requestClosePage: (arg: import("@browser/slices/modal/close").ClosePageRequestPayload) => Promise<void>;
7
- /**
8
- * Opens the save menu with the specified menu type provided and the ID to be saved
9
- *
10
- * @param menuType Provide one of the SaveModalType's to define the content to render
11
- * @id id of the page or workspace to action against
12
- */
13
- export declare const requestOpenSaveModal: ({ menuType, id }: OpenSaveMenuRequest) => Promise<OpenFin.Identity>;
14
- /**
15
- * Creates a copy of a page in the same window.
16
- * @param page The page to be duplicated
17
- */
18
- export declare const requestDuplicatePage: (pageId: string) => Promise<void>;
19
- export declare const raiseJoinContextGroupAnalytics: (colorName: string, view: OpenFin.Identity) => void;
20
- export declare const requestAddToChannel: ({ newChannelId, selectedViews }: AddToChannelRequest) => void;
21
- export declare const raiseLeaveContextGroupAnalytics: (colorName: string, view: OpenFin.Identity) => void;
22
- export declare const requestRemoveFromChannel: (selectedViews: OpenFin.Identity[]) => void;
23
- export declare const requestShowBrowserIndicator: ({ type, message, parentBrowserName, secondaryMessage, icon, isEnterprise }: ShowBrowserIndicatorPayload) => Promise<void>;
@@ -1,23 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- import { attachPagesToWindow as AttachPagesToWindowType, detachPagesFromWindow as DetachPagesFromWindowType, getPages as GetPagesType, renamePage as RenamePageType, reorderPagesForWindow as ReorderPagesForWindowType, setActivePageForWindow as SetActivePageForWindowType, updatePageForWindow as UpdatePageForWindowType } from '../../../../common/src/api/pages/attached';
3
- import type { AttachedPage } from '../../../../common/src/api/pages/shapes';
4
- /**
5
- * Save the current attached page state in window options.
6
- */
7
- export declare const updatePagesWindowOptions: () => Promise<void>;
8
- export declare const setActivePageForWindow: typeof SetActivePageForWindowType;
9
- export declare const getActivePageForWindow: () => Promise<AttachedPage>;
10
- export declare const renamePage: typeof RenamePageType;
11
- export declare const getPages: typeof GetPagesType;
12
- export declare const attachPagesToWindow: typeof AttachPagesToWindowType;
13
- export declare const detachPagesFromWindow: typeof DetachPagesFromWindowType;
14
- export declare const reorderPagesForWindow: typeof ReorderPagesForWindowType;
15
- export declare const updatePageForWindow: typeof UpdatePageForWindowType;
16
- export declare const isDetachingPages: () => boolean;
17
- export declare const isActivePageChanging: () => boolean;
18
- export declare const handleViewCrashed: ({ viewIdentity }: {
19
- viewIdentity: OpenFin.Identity;
20
- }) => void;
21
- export declare const handleViewAttached: ({ viewIdentity }: {
22
- viewIdentity: OpenFin.Identity;
23
- }) => Promise<void>;
@@ -1,10 +0,0 @@
1
- import type { AnyAction } from 'redux';
2
- import type { ThunkDispatch } from 'redux-thunk';
3
- import { AttachedPagesRootState } from '../../../../browser/src/slices/pages/attached';
4
- declare let dispatchInstance: ThunkDispatch<unknown, unknown, AnyAction>;
5
- declare let getStateInstance: () => AttachedPagesRootState;
6
- export declare const getState: () => AttachedPagesRootState;
7
- export declare const dispatch: typeof dispatchInstance;
8
- export declare const setGetStateInstance: (instance: typeof getStateInstance) => void;
9
- export declare const setDispatchInstance: (instance: typeof dispatchInstance) => void;
10
- export {};
@@ -1,106 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- import { ExtendedPanelConfig, PanelPosition } from '../../../common/src/api/pages/shapes';
3
- export declare function attachPanelViews(panels?: ExtendedPanelConfig[]): Promise<void>;
4
- export declare function setUpPanelViews(panels?: ExtendedPanelConfig[], panelsToReplace?: ExtendedPanelConfig[]): Promise<void>;
5
- export declare function getPanelsWithViewSnapshots(panels?: ExtendedPanelConfig[]): Promise<({
6
- viewOptions: {
7
- uuid: string;
8
- api?: OpenFin.ApiSettings;
9
- name: string;
10
- url: string;
11
- target: OpenFin.Identity;
12
- title?: string;
13
- contentCreation?: OpenFin.ContentCreationOptions;
14
- customRequestHeaders?: OpenFin.CustomRequestHeaders[];
15
- bounds?: OpenFin.Bounds;
16
- permissions?: Partial<OpenFin.Permissions>;
17
- processAffinity?: string;
18
- hotkeys?: OpenFin.Hotkey[];
19
- preloadScripts?: OpenFin.PreloadScript[];
20
- manifestUrl?: string;
21
- zoomLevel?: number;
22
- experimental?: any;
23
- fdc3InteropApi?: string;
24
- enableBeforeUnload?: boolean;
25
- accelerator?: Partial<OpenFin.Accelerator>;
26
- autoplayPolicy?: OpenFin.AutoplayPolicyOptions;
27
- closeBehavior?: "hide" | "detach" | "destroy";
28
- downloadShelf?: {
29
- enabled: boolean;
30
- };
31
- excludeOptions?: OpenFin.ExcludeOptions;
32
- autoResize?: OpenFin.AutoResizeOptions;
33
- contextMenu?: boolean;
34
- contextMenuSettings?: OpenFin.ContextMenuSettings;
35
- contextMenuOptions?: OpenFin.ContextMenuOptions;
36
- backgroundColor?: string;
37
- customData?: any;
38
- customContext?: any;
39
- contentNavigation?: OpenFin.NavigationRules;
40
- contentRedirect?: OpenFin.NavigationRules;
41
- detachOnClose?: boolean;
42
- isClosable?: boolean;
43
- preventDragOut?: boolean;
44
- interop?: OpenFin.InteropConfig;
45
- _internalWorkspaceData?: any;
46
- throttling?: OpenFin.ViewThrottling;
47
- chromiumPolicies?: OpenFin.ChromiumPolicies;
48
- componentName: "view";
49
- initialUrl: string;
50
- minWidth?: number;
51
- };
52
- position: PanelPosition.Top | PanelPosition.Bottom;
53
- height: string;
54
- } | {
55
- viewOptions: {
56
- uuid: string;
57
- api?: OpenFin.ApiSettings;
58
- name: string;
59
- url: string;
60
- target: OpenFin.Identity;
61
- title?: string;
62
- contentCreation?: OpenFin.ContentCreationOptions;
63
- customRequestHeaders?: OpenFin.CustomRequestHeaders[];
64
- bounds?: OpenFin.Bounds;
65
- permissions?: Partial<OpenFin.Permissions>;
66
- processAffinity?: string;
67
- hotkeys?: OpenFin.Hotkey[];
68
- preloadScripts?: OpenFin.PreloadScript[];
69
- manifestUrl?: string;
70
- zoomLevel?: number;
71
- experimental?: any;
72
- fdc3InteropApi?: string;
73
- enableBeforeUnload?: boolean;
74
- accelerator?: Partial<OpenFin.Accelerator>;
75
- autoplayPolicy?: OpenFin.AutoplayPolicyOptions;
76
- closeBehavior?: "hide" | "detach" | "destroy";
77
- downloadShelf?: {
78
- enabled: boolean;
79
- };
80
- excludeOptions?: OpenFin.ExcludeOptions;
81
- autoResize?: OpenFin.AutoResizeOptions;
82
- contextMenu?: boolean;
83
- contextMenuSettings?: OpenFin.ContextMenuSettings;
84
- contextMenuOptions?: OpenFin.ContextMenuOptions;
85
- backgroundColor?: string;
86
- customData?: any;
87
- customContext?: any;
88
- contentNavigation?: OpenFin.NavigationRules;
89
- contentRedirect?: OpenFin.NavigationRules;
90
- detachOnClose?: boolean;
91
- isClosable?: boolean;
92
- preventDragOut?: boolean;
93
- interop?: OpenFin.InteropConfig;
94
- _internalWorkspaceData?: any;
95
- throttling?: OpenFin.ViewThrottling;
96
- chromiumPolicies?: OpenFin.ChromiumPolicies;
97
- componentName: "view";
98
- initialUrl: string;
99
- minWidth?: number;
100
- };
101
- position: PanelPosition.Left | PanelPosition.Right;
102
- width: string;
103
- extendToTop?: boolean;
104
- extendToBottom?: boolean;
105
- })[]>;
106
- export declare const handlePanelViewDetached: (e: OpenFin.WindowEvents.ViewDetachedEvent) => void;
@@ -1,22 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- export declare function getOFView(identity: OpenFin.Identity): OpenFin.View;
3
- /**
4
- * Creates a new View to the landing page at the end of the tab strip
5
- * which includes the currently selected View
6
- * @param view the currently selected View
7
- */
8
- export declare const makeNewView: (view: OpenFin.View) => Promise<void>;
9
- /**
10
- * Duplicates the current View at the end of the tab strip
11
- * which includes the currently selected View
12
- * @param view the currently selected View
13
- */
14
- export declare const duplicateView: (view: OpenFin.View) => Promise<void>;
15
- /**
16
- * Detaches the given OpenFin view.
17
- * This allows for view pooling between windows.
18
- *
19
- * @param view the View to detach.
20
- * @returns a promise that resolves when the View is detached.
21
- */
22
- export declare const detachView: (view: OpenFin.View) => Promise<void>;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- export declare const searchMenuIdentity: {
3
- uuid: string;
4
- name: string;
5
- };
6
- export type SearchViewExpansionState = {
7
- method?: 'click' | 'keystroke';
8
- shouldExpand: boolean;
9
- };
10
- export type SecureIconState = {
11
- shouldShow: boolean;
12
- isSecureSite: boolean;
13
- };
14
- declare const AddressBar: React.FC;
15
- export default AddressBar;
@@ -1,18 +0,0 @@
1
- import { Dispatch, MutableRefObject, SetStateAction } from 'react';
2
- import { OpenFin } from '@openfin/core';
3
- import { BrowserSearchMenuKeyboardEvent } from '../../../../../../../common/src/utils/popup-window';
4
- import { SearchViewExpansionState, SecureIconState } from './AddressBar';
5
- type AddressBarInputProps = {
6
- addressSearchResultsView: OpenFin.View;
7
- addressBarInputRef: MutableRefObject<HTMLInputElement>;
8
- inputContainerRef: MutableRefObject<HTMLDivElement>;
9
- addressBarWidth: number;
10
- isSecure: SecureIconState;
11
- setShouldExpandMenu: Dispatch<SetStateAction<SearchViewExpansionState>>;
12
- shouldExpandMenu: SearchViewExpansionState;
13
- setSearchText: Dispatch<SetStateAction<string>>;
14
- searchText: string;
15
- sendKeyboardEventToSearchMenuView: (keyboardEvent: BrowserSearchMenuKeyboardEvent) => void;
16
- };
17
- export declare const AddressBarInput: React.FC<AddressBarInputProps>;
18
- export {};
@@ -1,17 +0,0 @@
1
- import { MenuConfig, ResponseModalConfig, RightMenuConfig } from '../../../../../../../common/src/utils/menu-config';
2
- type PageCloseMenuOptions = {
3
- textInputOptions: {
4
- placeholder: string;
5
- defaultValue: string;
6
- };
7
- titlePrefix?: string;
8
- };
9
- export declare const getPageCloseMenu: ({ textInputOptions, titlePrefix }: PageCloseMenuOptions) => Promise<ResponseModalConfig>;
10
- type WindowCloseMenuOptions = {
11
- unsavedPagesCount: number;
12
- };
13
- export declare const getBrowserWindowCloseMenu: ({ unsavedPagesCount }: WindowCloseMenuOptions) => Promise<ResponseModalConfig>;
14
- export declare const getColorLinkingMenu: (title: string) => Promise<RightMenuConfig>;
15
- export declare const getLayoutsMenu: (title: string) => Promise<RightMenuConfig>;
16
- export declare const getSaveMenu: () => Promise<MenuConfig>;
17
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- type BookmarkIconProps = {
3
- inputContainerRef: React.MutableRefObject<HTMLDivElement>;
4
- iconGradientClick?: () => void;
5
- url?: string;
6
- isMenuExpanded?: boolean;
7
- };
8
- export declare const BookmarkButton: ({ inputContainerRef, url, iconGradientClick, isMenuExpanded }: BookmarkIconProps) => JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { AttachedPage, Site } from '../../../../../client-api-platform/src/shapes';
3
- type CommandBarProps = {
4
- selectedResult?: Site;
5
- openPages: AttachedPage[];
6
- };
7
- export declare const COMMAND_BAR_HEIGHT = 40;
8
- export declare const CommandBar: ({ selectedResult, openPages }: CommandBarProps) => JSX.Element;
9
- export {};
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { IconOptionsType } from './ResultIcon';
3
- export declare const SiteIcon: React.FC<{
4
- url: string;
5
- iconOptions?: IconOptionsType;
6
- isSelected?: boolean;
7
- }>;
8
- export declare const PageIcon: React.FC<{
9
- isSelected?: boolean;
10
- }>;
11
- export declare const WorkspaceIcon: React.FC<{
12
- isSelected?: boolean;
13
- }>;
14
- export declare const FavoriteIcon: React.FC<{
15
- url: string;
16
- isSelected: boolean;
17
- }>;
18
- export declare const VectorIcon: () => JSX.Element;
19
- export declare const ReturnIcon: () => JSX.Element;
20
- export declare const OptionIcon: () => JSX.Element;
21
- export declare const KeyIcon: ({ text }: {
22
- text: string;
23
- }) => JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { AppSite } from '../../../../../client-api-platform/src/shapes';
3
- export type IconOptionsType = NonNullable<AppSite['options']>['icon'];
4
- type ResultIconProps = {
5
- siteType: 'app' | 'website' | 'page' | 'workspace';
6
- icon: string;
7
- isSelected: boolean;
8
- iconOptions?: IconOptionsType;
9
- };
10
- export declare const ResultIcon: ({ siteType, icon, isSelected, iconOptions }: ResultIconProps) => JSX.Element;
11
- export {};
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { SecureIconState } from '../LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar';
3
- export declare const SecureIcon: React.FC<{
4
- isSecure: SecureIconState;
5
- }>;
@@ -1,3 +0,0 @@
1
- export declare const UrlInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
2
- expanded?: boolean;
3
- }, never>;
@@ -1,2 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- export declare const useBookmarkButtonHover: (inputContainerRef: MutableRefObject<HTMLElement | null>) => boolean;
@@ -1,2 +0,0 @@
1
- import OpenFin from '@openfin/core';
2
- export declare const useEnterpriseBookmarkDialogWindow: () => OpenFin.Window | null;
@@ -1 +0,0 @@
1
- export declare const useIsBookmarked: (url?: string, ...beacons: (any | undefined)[]) => boolean;
@@ -1,3 +0,0 @@
1
- import { Page, Site } from '../../../../../client-api-platform/src/shapes';
2
- declare const useIsPageOpen: (openPages: Page[], siteInfo: Site) => boolean;
3
- export default useIsPageOpen;
@@ -1,5 +0,0 @@
1
- import OpenFin from '@openfin/core';
2
- export declare const useIsSelectedViewNavigated: (url: string) => {
3
- isViewNavigatedToUrl: boolean;
4
- selectedView: OpenFin.View;
5
- };
@@ -1,8 +0,0 @@
1
- import { MutableRefObject } from 'react';
2
- import type OpenFin from '@openfin/core';
3
- import { SearchMenuChannelUpdateState } from '../../../../../common/src/utils/popup-window';
4
- export declare const useSelectedAndOpenViewsBroadcastChannel: (additionalCallBack?: (ev: MessageEvent<SearchMenuChannelUpdateState>) => void) => {
5
- selectedViews: OpenFin.Identity[];
6
- openViews: OpenFin.Identity[];
7
- searchMenuChannel: MutableRefObject<BroadcastChannel>;
8
- };
@@ -1,11 +0,0 @@
1
- import OpenFin from '@openfin/core';
2
- import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
- import { AttachedPage, Site } from '../../../../../client-api-platform/src/index';
4
- export declare const handleAlreadyOpenPage: (attachedPages: AttachedPage[], site?: Site) => boolean;
5
- export declare const convertSiteData: (result: any) => Site;
6
- export declare const getRecentlyVisitedSites: () => Promise<Site[]>;
7
- export declare const formatRecentUrl: (url: string) => string;
8
- export declare const getSiteSubTitle: (site: Site, urlFormatter: (value: string) => string) => string;
9
- export declare const trimWithEllipsis: (str: string, characters: number) => string;
10
- export declare const checkViewUrl: (view: OpenFin.View | null, url: string, setViewNavigatedToUrl: (value: boolean) => void) => Promise<void>;
11
- export declare const searchBookmark: (url: string, browserIdentity?: OpenFin.Identity) => Promise<BookmarkNode | undefined>;
@@ -1,8 +0,0 @@
1
- import { AttachedPage } from '../../../../../common/src/api/pages/shapes';
2
- /**
3
- * Gets the index of the page that should be active once current active page is removed.
4
- * @param detachedActivePageIndex Index of the active page prior to being removed
5
- * @param filteredPages Remaining pages
6
- * @returns page that should be active once current active page is removed
7
- */
8
- export declare const getNextActivePageOnRemoval: (detachedActivePageIndex: number, filteredPages: AttachedPage[]) => AttachedPage;
@@ -1 +0,0 @@
1
- export declare const CONTROL_BAR_HEIGHT = 40;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- type BrandLogoContainerProps = {
3
- size: 'small' | 'large';
4
- };
5
- declare const BrandIcon: FC<BrandLogoContainerProps>;
6
- export default BrandIcon;
@@ -1,10 +0,0 @@
1
- import type OpenFin from '@openfin/core';
2
- import { HTMLElementWithAria } from '../../../../common/src/utils/a11y';
3
- /**
4
- * For clicks within a tab hat, returns the name of the attached view.
5
- * Returns `null` if click is not within a tab hat.
6
- */
7
- export declare const getViewNameFromClickEvent: (event: React.MouseEvent) => string;
8
- export declare function addViewTabGroupEventListener(tabGroup: HTMLElement, isPageLocked: boolean, shouldRemoveListener?: boolean): void;
9
- export declare const getViewUrl: (viewIdentity: OpenFin.Identity) => Promise<string>;
10
- export declare function getViewTabHat(viewName: string, containerRef?: HTMLElement): HTMLElementWithAria;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
- import { BaseButtonProps } from '../../../../../common/src/components/BaseButton/BaseButton';
4
- interface BookmarkItemProps {
5
- bookmark: BookmarkNode;
6
- isRenaming: boolean;
7
- handleNavigateToFolder: (folderId: string) => void;
8
- setRenamingNode: (id?: string) => void;
9
- }
10
- declare const _default: import("react").NamedExoticComponent<BookmarkItemProps>;
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 & {
13
- isRenaming?: boolean;
14
- }, never>;
15
- export declare const BookmarkItemButtonContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
- export declare const BookmarkFolderIcon: React.FC;
17
- export declare const BookmarkFavoritesIcon: React.FC;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
- interface BookmarksPanelHeaderProps {
4
- folder: BookmarkNode;
5
- handleNavigateToFolder: (folderId: string) => void;
6
- }
7
- declare const BookmarksFolderHeader: React.FC<BookmarksPanelHeaderProps>;
8
- export default BookmarksFolderHeader;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- declare const BookmarksPanel: () => JSX.Element;
3
- export default BookmarksPanel;
4
- export declare const TextHelp: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("react").HTMLAttributes<HTMLElement> & {
5
- color?: "background6" | "textDefault";
6
- children: import("react").ReactNode;
7
- size?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge";
8
- weight?: "bold" | "normal";
9
- }, never>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const BookmarksPanelHeader: () => JSX.Element;
3
- export default BookmarksPanelHeader;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { CategorizedBookmarkSearchResults } from '../../../../../common/src/utils/bookmarks';
3
- import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
4
- interface BookmarksResultsProps {
5
- currentFolder: BookmarkNode;
6
- bookmarksList: BookmarkNode[];
7
- categorizedSearchResults: CategorizedBookmarkSearchResults;
8
- isSearchQueryResults: boolean;
9
- renamingNodeId: string | undefined;
10
- handleNavigateToFolder: (folderId: string) => void;
11
- setRenamingNode: (id?: string) => void;
12
- }
13
- declare const BookmarksResults: React.FC<BookmarksResultsProps>;
14
- export default BookmarksResults;
15
- export declare const TextHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,7 +0,0 @@
1
- import { ChangeEvent } from 'react';
2
- interface BookmarksSearchInputProps {
3
- handleSearchInputChange: (event: ChangeEvent<HTMLInputElement>) => void;
4
- clearSearchInput: () => void;
5
- }
6
- declare const BookmarksSearchInput: React.FC<BookmarksSearchInputProps>;
7
- export default BookmarksSearchInput;
@@ -1,16 +0,0 @@
1
- import { CategorizedBookmarkSearchResults } from '../../../../../common/src/utils/bookmarks';
2
- import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
- /**
4
- * Custom hook that manages and sorts bookmark search results and returns an object of categorized bookmarks
5
- * and actions to update the search query.
6
- *
7
- * @returns {Object} An object containing the following:
8
- * - `categorizedSearchResults` : An object containing two arrays, `bookmarksInFolder` and `bookmarksOutsideFolder`.
9
- * - `handleSearchInputChange` : A function to update the search query phrase to retrieve new search results.
10
- * - `clearSearchInput` : A function to clear the search query and reset the panel to its previous state.
11
- */
12
- export declare const useBookmarksSearch: (currentFolder: BookmarkNode, setSearchQuery: (query: string) => void, updateBookmarksResults: (folderId?: string, navigateToFolder?: boolean) => void) => {
13
- categorizedSearchResults: CategorizedBookmarkSearchResults;
14
- handleSearchInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
15
- clearSearchInput: () => void;
16
- };
@@ -1,15 +0,0 @@
1
- import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
2
- /**
3
- * Custom hook that retrieves the root node corresponding to All Bookmarks on initial render and
4
- * provides actions to update bookmark results.
5
- *
6
- * @returns {Object} An object containing the following:
7
- * - `bookmarksList` : `BookmarkNode[]` - A sorted list of the current folder's child bookmarks and folders.
8
- * - `currentFolder` : `BookmarkNode` - The currently active folder.
9
- * - `deleteBookmark` : A function to update currentFolder and bookmarksList given a specific folderId.
10
- */
11
- export declare const useUpdateBookmarkResultsActions: () => {
12
- bookmarksList: BookmarkNode[];
13
- currentFolder: BookmarkNode;
14
- updateBookmarksResults: (folderId?: string) => Promise<void>;
15
- };
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { PanelPosition } from '../../../../common/src/api/pages/shapes';
3
- export declare const getSizeWithoutCSSUnits: (cssValue?: string) => number;
4
- interface Props {
5
- position: PanelPosition;
6
- }
7
- declare const PanelContainer: React.FC<Props>;
8
- export default PanelContainer;
@@ -1,14 +0,0 @@
1
- /**
2
- * @description Get the width of the search menu based on the parent window width and the expanded state of the menu
3
- * @param parentWindowWidth - The width of the parent window
4
- * @returns {number} The calculated width of the search menu
5
- */
6
- export declare const getSearchMenuWidth: (parentWindowWidth: number) => number;
7
- /**
8
- * @description Get the height of the search menu based on the parent window height, the expanded state of the menu, and the UI state of the menu
9
- * @param parentWindowHeight - The height of the parent window
10
- * @param shouldShowEmptySearchInputContainer - Whether the empty search input UI should be shown
11
- * @param container - The container for the search menu
12
- * @returns {number} The calculated height of the search menu
13
- */
14
- export declare const getSearchMenuHeight: (parentWindowHeight: number, shouldShowEmptySearchInputContainer: boolean, container: HTMLElement) => number;