@openfin/workspace 20.0.2 → 20.0.4
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 +106 -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/BookmarksPanel/BookmarkItem.d.ts +17 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksFolderHeader.d.ts +8 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanel.d.ts +9 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksPanelHeader.d.ts +3 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksResults.d.ts +15 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/BookmarksSearchInput.d.ts +7 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarkNavigation.d.ts +8 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/useBookmarksSearch.d.ts +16 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/useUpdateBookmarkResultsActions.d.ts +15 -0
- package/browser/src/components/PanelContainer/BookmarksPanel/utils.d.ts +7 -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 +18 -0
- package/browser/src/hooks/EnterpriseSearchMenu/usePostMessageToSearchMenuView.d.ts +18 -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 +32 -0
- package/browser/src/hooks/useEnterpriseHotkeys.d.ts +4 -0
- package/browser/src/hooks/usePanelBounds.d.ts +4 -0
- package/browser/src/hooks/useSingleViewPage.d.ts +2 -0
- package/browser/src/hooks/useWindowFocusState.d.ts +17 -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/browser/bookmarks.d.ts +6 -0
- package/client-api-platform/src/api/context-menu/index.d.ts +3 -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 +55 -2
- package/common/src/api/pages/internal.d.ts +8 -0
- package/common/src/api/pages/shapes.d.ts +91 -0
- package/common/src/api/protocol/browser.d.ts +13 -1
- package/common/src/api/protocol/workspace-platform.d.ts +1 -0
- package/common/src/api/theming.d.ts +2 -1
- package/common/src/api/workspace-events.d.ts +49 -0
- package/common/src/components/BaseButton/BaseButton.d.ts +55 -0
- package/common/src/components/Icon/CustomIcon.d.ts +15 -0
- package/common/src/hooks/context.d.ts +58 -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/bookmark-item-context-menu.d.ts +3 -0
- package/common/src/utils/bookmarks.d.ts +12 -0
- package/common/src/utils/custom-logo.d.ts +16 -0
- package/common/src/utils/enterprise-channels.d.ts +13 -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/menu-config.d.ts +1 -0
- package/common/src/utils/modal-bounds.d.ts +0 -8
- package/common/src/utils/navigate.d.ts +8 -0
- package/common/src/utils/popup-window.d.ts +31 -10
- package/common/src/utils/route.d.ts +4 -2
- package/common/src/utils/test-ids.d.ts +70 -0
- package/common/src/utils/url.d.ts +1 -0
- package/common/src/utils/window.d.ts +12 -1
- package/home.js +3 -3
- package/home.js.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/notifications.js +4 -4
- package/notifications.js.map +1 -1
- package/package.json +2 -2
- package/store.js +3 -3
- package/store.js.map +1 -1
- package/common/src/utils/enterprise-context-menu-cahnnels.d.ts +0 -4
|
@@ -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;
|
|
@@ -11,7 +11,9 @@ export declare enum WindowName {
|
|
|
11
11
|
BrowserWindow = "internal-generated-window",
|
|
12
12
|
ClassicWindow = "internal-generated-classic-window",
|
|
13
13
|
EnterpriseContextMenu = "openfin-enterprise-context-menu",
|
|
14
|
-
BrowserAddressSearchPrefix = "openfin-browser-menu-address-search-"
|
|
14
|
+
BrowserAddressSearchPrefix = "openfin-browser-menu-address-search-",
|
|
15
|
+
EnterpriseBookmarkDialogWindow = "openfin-enterprise-bookmark-dialog",
|
|
16
|
+
DropdownMenu = "openfin-enterprise-dropdown-menu"
|
|
15
17
|
}
|
|
16
18
|
export interface WindowIdentity {
|
|
17
19
|
uuid: ApplicationUUID | string;
|
|
@@ -163,4 +165,13 @@ export declare const getComponentWindowStatus: () => Promise<{
|
|
|
163
165
|
}>;
|
|
164
166
|
export declare const deserializeWindowBounds: (serialized: string) => OpenFin.WindowBounds | null;
|
|
165
167
|
export declare const serializeWindowBounds: (bounds: OpenFin.WindowBounds) => string;
|
|
168
|
+
export declare const getWindowBounds: (window: OpenFin.Window) => Promise<OpenFin.RectangleByEdgePositions>;
|
|
169
|
+
/**
|
|
170
|
+
* calculates the percenage of the window that is present within the monitor (float in range 0-1)
|
|
171
|
+
*
|
|
172
|
+
* @param bounds the bounds of the window
|
|
173
|
+
* @param monitor the monitor to check against
|
|
174
|
+
*/
|
|
175
|
+
export declare function getPercentageOfBoundsInMonitor(bounds: OpenFin.Bounds, monitor: OpenFin.MonitorDetails): number;
|
|
176
|
+
export declare function getMonitorWindowMaximizedOn(parentWindowBounds: OpenFin.WindowBounds): Promise<OpenFin.MonitorDetails>;
|
|
166
177
|
export {};
|