@openfin/workspace 19.3.0 → 19.3.2
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.
- package/browser/src/api/color-linking.d.ts +23 -0
- package/browser/src/api/controls.d.ts +23 -0
- package/browser/src/api/pages/attached.d.ts +23 -0
- package/browser/src/api/pages/state.d.ts +10 -0
- package/browser/src/api/panels.d.ts +104 -0
- package/browser/src/api/view.d.ts +22 -0
- package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBar.d.ts +15 -0
- package/browser/src/components/ControlBar/LeftControlsContainer/EnterpriseNavigationContainer/AddressBar/AddressBarInput.d.ts +18 -0
- package/browser/src/components/ControlBar/RightControlsContainer/ToolbarContainer/menus/menuConfig.d.ts +17 -0
- package/browser/src/components/ControlBar/SearchMenu/CommandBar.d.ts +9 -0
- package/browser/src/components/ControlBar/SearchMenu/Icons.d.ts +23 -0
- package/browser/src/components/ControlBar/SearchMenu/ResultIcon.d.ts +11 -0
- package/browser/src/components/ControlBar/SearchMenu/SecureIcon.d.ts +5 -0
- package/browser/src/components/ControlBar/SearchMenu/UrlInput.d.ts +3 -0
- package/browser/src/components/ControlBar/SearchMenu/useIsPageOpen.d.ts +3 -0
- package/browser/src/components/ControlBar/Tablist/utils.d.ts +8 -0
- package/browser/src/components/ControlBar/utils.d.ts +1 -0
- package/browser/src/components/LandingPage/BrandIcon.d.ts +6 -0
- package/browser/src/components/LayoutContainer/utils.d.ts +10 -0
- package/browser/src/components/PanelContainer/PanelContainer.d.ts +8 -0
- package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/getDimensions.d.ts +14 -0
- package/browser/src/hooks/EnterpriseSearchMenu/AdjustSearchMenuDimensions/useAdjustSearchMenuViewDimensions.d.ts +29 -0
- package/browser/src/hooks/EnterpriseSearchMenu/useInitChannelToSearchMenuView.d.ts +17 -0
- package/browser/src/hooks/EnterpriseSearchMenu/usePostMessageToSearchMenuView.d.ts +16 -0
- package/browser/src/hooks/EnterpriseSearchMenu/useProcessChildContentBlockEvent.d.ts +3 -0
- package/browser/src/hooks/EnterpriseSearchMenu/useSearchMenuViewLifecycleManager.d.ts +16 -0
- package/browser/src/hooks/EnterpriseSearchMenu/useUpdateInputExpansionState.d.ts +15 -0
- package/browser/src/hooks/EnterpriseSearchMenu/useUpdateViewExpansionState.d.ts +14 -0
- package/browser/src/hooks/useEnterpriseHotkeys.d.ts +4 -0
- package/browser/src/hooks/usePanelBounds.d.ts +3 -0
- package/browser/src/slices/menu.d.ts +28 -0
- package/browser/src/slices/modal/close.d.ts +10 -0
- package/browser/src/slices/modal/index.d.ts +8 -0
- package/browser/src/slices/pages/attached.d.ts +83 -0
- package/browser/src/slices/tab-focus.d.ts +85 -0
- package/browser/src/store/index.d.ts +90 -0
- package/client-api-platform/src/api/app-directory.d.ts +1 -1
- package/client-api-platform/src/init/override-callback/enterprise-page-required-layout-settings.d.ts +5 -0
- package/client-api-platform/src/shapes.d.ts +8 -0
- package/common/src/api/pages/internal.d.ts +8 -0
- package/common/src/api/workspace-events.d.ts +49 -0
- package/common/src/components/Icon/CustomIcon.d.ts +15 -0
- package/common/src/hooks/context.d.ts +50 -0
- package/common/src/hooks/usePlatformTheme.d.ts +6 -0
- package/common/src/hooks/useSystemSchemeCheck.d.ts +13 -0
- package/common/src/slices/environment.d.ts +22 -0
- package/common/src/slices/target-theming.d.ts +56 -0
- package/common/src/styles/svg-icons.d.ts +7 -0
- package/common/src/utils/a11y/index.d.ts +3 -0
- package/common/src/utils/custom-logo.d.ts +16 -0
- package/common/src/utils/enterpriseBrowser.d.ts +1 -0
- package/common/src/utils/interop.d.ts +30 -0
- package/common/src/utils/layout.d.ts +6 -0
- package/common/src/utils/navigate.d.ts +8 -0
- package/common/src/utils/popup-window.d.ts +19 -9
- package/common/src/utils/route.d.ts +1 -1
- package/common/src/utils/test-ids.d.ts +70 -0
- package/common/src/utils/url.d.ts +1 -0
- package/home.js +1 -1
- package/home.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/notifications.js +4 -4
- package/notifications.js.map +1 -1
- package/package.json +3 -3
- package/store.js +1 -1
- package/store.js.map +1 -1
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
import { Site, SiteAction } from '../../../client-api-platform/src/shapes';
|
|
6
7
|
export declare enum SaveMenuType {
|
|
7
8
|
Save = "Save",
|
|
@@ -14,9 +15,6 @@ export declare enum SaveMenuType {
|
|
|
14
15
|
*/
|
|
15
16
|
export declare const getSaveContextMenuTemplate: (saveMenuType?: SaveMenuType) => OpenFin.MenuItemTemplate[];
|
|
16
17
|
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
|
-
};
|
|
20
18
|
export type SearchMenuChannelViewResized = {
|
|
21
19
|
type: 'view-resized';
|
|
22
20
|
height: number;
|
|
@@ -26,9 +24,21 @@ export type SearchMenuChannelUpdateState = {
|
|
|
26
24
|
selectedViews: OpenFin.Identity[];
|
|
27
25
|
openViews: OpenFin.Identity[];
|
|
28
26
|
windowId: OpenFin.Identity;
|
|
27
|
+
searchText?: string;
|
|
28
|
+
keyboardEvent?: BrowserSearchMenuKeyboardEvent;
|
|
29
|
+
shouldExpandMenu?: SearchViewExpansionState;
|
|
29
30
|
type: 'update-search-menu-state';
|
|
30
31
|
};
|
|
31
|
-
export type
|
|
32
|
+
export type BrowserSearchMenuKeyboardEvent = {
|
|
33
|
+
type: string;
|
|
34
|
+
options: {
|
|
35
|
+
key: string;
|
|
36
|
+
metaKey?: boolean;
|
|
37
|
+
ctrlKey?: boolean;
|
|
38
|
+
altKey?: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type SearchMenuChannelRequest = SearchMenuChannelViewResized | SearchMenuChannelUpdateState;
|
|
32
42
|
export declare enum ContextMenuType {
|
|
33
43
|
GlobalMenu = "global-menu",
|
|
34
44
|
ContextMenu = "context-menu",
|
|
@@ -51,14 +61,14 @@ export type SearchMenuChannelResponse = {
|
|
|
51
61
|
selectedView: OpenFin.Identity;
|
|
52
62
|
inputUpdate?: string;
|
|
53
63
|
trigger?: SiteAction;
|
|
54
|
-
|
|
55
|
-
type: 'update-input';
|
|
56
|
-
inputText: string;
|
|
57
|
-
isSecure: boolean;
|
|
58
|
-
landingPage: boolean;
|
|
64
|
+
handled?: boolean;
|
|
59
65
|
} | {
|
|
60
66
|
type: 'resize-view';
|
|
67
|
+
isExpanded: boolean;
|
|
61
68
|
height: number;
|
|
62
69
|
width: number;
|
|
70
|
+
} | {
|
|
71
|
+
type: 'keyboard-event';
|
|
72
|
+
keyboardEvent: BrowserSearchMenuKeyboardEvent;
|
|
63
73
|
};
|
|
64
74
|
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
|
-
|
|
18
|
+
BrowserPopupMenuAddressSearchResultsView = "/browser/popup-menu/address-search-results-view/",
|
|
19
19
|
ResponseModal = "/browser/popup-menu/response-modal/",
|
|
20
20
|
CloseConfirmationModal = "/browser/popup-menu/close-confirmation-modal/",
|
|
21
21
|
Docs = "/provider/docs/",
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function trimUrl(url: string): string;
|