@interopio/home-ui-react 1.4.3 → 2.0.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.
- package/LICENSE +21 -0
- package/{README.md → dist/README.md} +56 -56
- package/dist/common/sequelizer.d.ts +7 -0
- package/dist/common/types.d.ts +26 -0
- package/dist/common/utils.d.ts +2 -0
- package/dist/constants/alerts.d.ts +8 -0
- package/{constants → dist/constants}/defaults.d.ts +0 -1
- package/dist/constants/dialogs.d.ts +5 -0
- package/{constants → dist/constants}/itemTypes.d.ts +1 -0
- package/dist/constants/platformPrefs.d.ts +14 -0
- package/dist/constants/regex.d.ts +1 -0
- package/dist/constants/sections.d.ts +5 -0
- package/{constants → dist/constants}/storageKeys.d.ts +1 -2
- package/{decoders → dist/decoders}/base.d.ts +2 -1
- package/dist/decoders/config.d.ts +3 -0
- package/dist/decoders/layouts.d.ts +3 -0
- package/{decoders → dist/decoders}/platform.d.ts +3 -3
- package/dist/decoders/user.d.ts +3 -0
- package/dist/decoders/validation.d.ts +3 -0
- package/{executors → dist/executors}/applicationActions.d.ts +1 -1
- package/{executors → dist/executors}/layoutActions.d.ts +1 -1
- package/dist/executors/setupStepsActions.d.ts +3 -0
- package/dist/executors/types.d.ts +33 -0
- package/{executors → dist/executors}/workspaceActions.d.ts +1 -1
- package/{helpers → dist/helpers}/a11y.d.ts +0 -16
- package/dist/helpers/alerts.d.ts +9 -0
- package/{helpers → dist/helpers}/sort.d.ts +4 -4
- package/dist/hooks/index.d.ts +28 -0
- package/dist/hooks/useApplications.d.ts +2 -0
- package/{hooks → dist/hooks}/useExecuteApplicationAction.d.ts +1 -1
- package/dist/hooks/useExecuteLayoutAction.d.ts +5 -0
- package/{hooks → dist/hooks}/useExecuteWorkspaceAction.d.ts +1 -1
- package/dist/hooks/useFavorites.d.ts +8 -0
- package/dist/hooks/useFrameId.d.ts +1 -0
- package/{hooks → dist/hooks}/useInvokeInteropMethod.d.ts +1 -1
- package/dist/hooks/useIsLaunchpadPinned.d.ts +8 -0
- package/dist/hooks/useLayouts.d.ts +5 -0
- package/{hooks → dist/hooks}/useNotifications.d.ts +1 -1
- package/dist/hooks/useNotificationsConfiguration.d.ts +3 -0
- package/dist/hooks/useOnIframeFocus.d.ts +6 -0
- package/dist/hooks/useOnOutsideClick.d.ts +9 -0
- package/{hooks → dist/hooks}/usePlatformWindow.d.ts +1 -1
- package/{hooks → dist/hooks}/useRestoreLayout.d.ts +1 -1
- package/{hooks → dist/hooks}/useRestoreWorkspace.d.ts +1 -2
- package/{hooks → dist/hooks}/useSearch.d.ts +1 -1
- package/dist/hooks/useStartApplication.d.ts +7 -0
- package/{hooks → dist/hooks}/useStorage.d.ts +2 -2
- package/dist/hooks/useWorkspaces.d.ts +2 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +14515 -0
- package/dist/index.mjs.map +1 -0
- package/{lib → dist/lib}/applications-section/applications-section.d.ts +1 -1
- package/dist/lib/applications-section/helpers.d.ts +5 -0
- package/dist/lib/applications-section/types.d.ts +9 -0
- package/{lib → dist/lib}/base-section/base-section-header.d.ts +2 -4
- package/dist/lib/base-section/base-section-item.d.ts +14 -0
- package/{lib → dist/lib}/base-section/base-section.d.ts +3 -3
- package/{lib → dist/lib}/base-section/helpers.d.ts +1 -1
- package/dist/lib/base-section/types.d.ts +20 -0
- package/dist/lib/base-section/useCollapsedSections.d.ts +4 -0
- package/dist/lib/context-menu/constants.d.ts +11 -0
- package/dist/lib/context-menu/context-menu.d.ts +11 -0
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +20 -0
- package/{lib → dist/lib}/context-menu/types.d.ts +5 -1
- package/dist/lib/default-header-system-buttons/constants.d.ts +2 -0
- package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +2 -0
- package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +2 -0
- package/{lib → dist/lib}/favorites-section/favorites-section.d.ts +1 -1
- package/dist/lib/favorites-section/helpers.d.ts +3 -0
- package/dist/lib/home-app-workspace/after-tabs.d.ts +3 -0
- package/dist/lib/home-app-workspace/constants.d.ts +2 -0
- package/{lib → dist/lib}/home-app-workspace/group-header-buttons.d.ts +1 -1
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +13 -0
- package/dist/lib/home-app-workspace/index.d.ts +1 -0
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +7 -0
- package/{lib → dist/lib}/home-app-workspace/workspace-components-context.d.ts +3 -4
- package/dist/lib/icon-components/index.d.ts +4 -0
- package/dist/lib/icon-components/platform-setup/index.d.ts +4 -0
- package/{lib → dist/lib}/io-connect-home/auth0-login-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/home-app.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/io-connect-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/no-login-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/simple-login-home.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home/types.d.ts +54 -18
- package/{lib → dist/lib}/io-connect-home/useUser.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home-provider/helpers.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home-provider/io-connect-home-provider.d.ts +1 -1
- package/{lib → dist/lib}/io-connect-home-provider/types.d.ts +2 -2
- package/{lib/io-connect-browser-start-failed/io-connect-browser-start-failed.d.ts → dist/lib/io-init-error-screen/io-init-error-screen.d.ts} +1 -1
- package/dist/lib/launchpad/constants.d.ts +2 -0
- package/dist/lib/launchpad/helpers.d.ts +4 -0
- package/dist/lib/launchpad/launchpad-header.d.ts +7 -0
- package/dist/lib/launchpad/launchpad-pin-button.d.ts +5 -0
- package/dist/lib/launchpad/launchpad.context.d.ts +19 -0
- package/dist/lib/launchpad/launchpad.d.ts +11 -0
- package/dist/lib/launchpad/useIsLaunchpadCollapsed.d.ts +9 -0
- package/dist/lib/layouts-panel/active-layout.d.ts +2 -0
- package/dist/lib/layouts-panel/all-layouts.d.ts +2 -0
- package/dist/lib/layouts-panel/constants.d.ts +8 -0
- package/dist/lib/layouts-panel/create-layout-button.d.ts +2 -0
- package/dist/lib/layouts-panel/helpers.d.ts +3 -0
- package/dist/lib/layouts-panel/layouts-dropdown.d.ts +6 -0
- package/dist/lib/layouts-panel/layouts-list.d.ts +6 -0
- package/dist/lib/layouts-panel/save-layout-button.d.ts +5 -0
- package/dist/lib/layouts-panel/types.d.ts +8 -0
- package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +9 -0
- package/{lib → dist/lib}/login/auth0/auth0-login-page.d.ts +1 -2
- package/dist/lib/login/index.d.ts +3 -0
- package/dist/lib/login/login-heading.d.ts +1 -0
- package/{lib → dist/lib}/login/simple/reducers.d.ts +1 -1
- package/{lib → dist/lib}/login/simple/simple-login-form.d.ts +2 -2
- package/{lib → dist/lib}/login/simple/simple-login-page.d.ts +1 -1
- package/{lib → dist/lib}/login/types.d.ts +1 -5
- package/dist/lib/notifications-panel-button/notifications-badge.d.ts +2 -0
- package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +6 -0
- package/dist/lib/notifications-panels/notification-settings-panel.d.ts +9 -0
- package/dist/lib/notifications-panels/notifications-panel-with-toggle-button.d.ts +3 -0
- package/dist/lib/notifications-panels/notifications-panel.d.ts +10 -0
- package/dist/lib/panels/launchpad/launchpad-button.d.ts +6 -0
- package/dist/lib/panels/launchpad/launchpad-panel.d.ts +2 -0
- package/dist/lib/panels/panel-with-toggle-button.d.ts +12 -0
- package/dist/lib/panels/panel-wrapper.d.ts +11 -0
- package/dist/lib/panels/types.d.ts +9 -0
- package/{lib → dist/lib}/platform-setup/constants.d.ts +1 -1
- package/{lib → dist/lib}/platform-setup/reducers.d.ts +2 -2
- package/{lib → dist/lib}/platform-setup/setup-steps-list.d.ts +1 -1
- package/{lib → dist/lib}/platform-setup/types.d.ts +4 -4
- package/dist/lib/preferences-panel/preferences-panel.d.ts +2 -0
- package/dist/lib/profile-panel/profile-panel.d.ts +9 -0
- package/{lib → dist/lib}/search/search-bar/search-bar.d.ts +1 -0
- package/dist/lib/search/search-results-section/search-results-section.d.ts +5 -0
- package/{lib → dist/lib}/search/search-results-section/types.d.ts +3 -3
- package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +2 -0
- package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +2 -0
- package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +1 -0
- package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +3 -0
- package/{lib → dist/lib}/section/helpers.d.ts +2 -2
- package/{lib → dist/lib}/section/section.d.ts +1 -1
- package/{lib → dist/lib}/section/types.d.ts +1 -1
- package/dist/lib/spinner/index.d.ts +1 -0
- package/dist/lib/system-menu/helpers.d.ts +3 -0
- package/dist/lib/system-menu/system-menu.d.ts +6 -0
- package/dist/lib/system-menu/types.d.ts +9 -0
- package/dist/lib/workspaces-section/constants.d.ts +3 -0
- package/{lib → dist/lib}/workspaces-section/helpers.d.ts +3 -3
- package/{lib → dist/lib}/workspaces-section/workspaces-section.d.ts +1 -1
- package/package.json +59 -41
- package/assets/fonts/nunito-regular-webfont.woff +0 -0
- package/assets/fonts/nunito-regular-webfont.woff2 +0 -0
- package/assets/fonts/nunito-semibold-webfont.woff +0 -0
- package/assets/fonts/nunito-semibold-webfont.woff2 +0 -0
- package/assets/io-connect-browser-logo.json +0 -5
- package/common/types.d.ts +0 -10
- package/decoders/config.d.ts +0 -3
- package/decoders/context-menu.d.ts +0 -3
- package/decoders/favorites.d.ts +0 -3
- package/decoders/layouts.d.ts +0 -3
- package/decoders/user.d.ts +0 -3
- package/decoders/validation.d.ts +0 -3
- package/executors/notificationsSort.d.ts +0 -7
- package/executors/setupStepsActions.d.ts +0 -3
- package/executors/types.d.ts +0 -26
- package/helpers/date.d.ts +0 -1
- package/helpers/string.d.ts +0 -1
- package/hooks/index.d.ts +0 -25
- package/hooks/useApplications.d.ts +0 -2
- package/hooks/useExecuteLayoutAction.d.ts +0 -2
- package/hooks/useFavoriteEntities.d.ts +0 -7
- package/hooks/useFrame.d.ts +0 -2
- package/hooks/useIsBrowserSupported.d.ts +0 -1
- package/hooks/useLayouts.d.ts +0 -2
- package/hooks/useNotificationsSort.d.ts +0 -5
- package/hooks/useStartApplication.d.ts +0 -4
- package/hooks/useWorkspaces.d.ts +0 -2
- package/index.css +0 -1
- package/index.d.ts +0 -37
- package/index.js +0 -54
- package/index.js.map +0 -1
- package/index.mjs +0 -8651
- package/index.mjs.map +0 -1
- package/lib/applications-section/helpers.d.ts +0 -6
- package/lib/applications-section/types.d.ts +0 -4
- package/lib/base-section/base-section-item.d.ts +0 -13
- package/lib/base-section/types.d.ts +0 -29
- package/lib/browser-not-supported/additional-information.d.ts +0 -5
- package/lib/browser-not-supported/browser-not-supported.d.ts +0 -11
- package/lib/browser-not-supported/constants.d.ts +0 -6
- package/lib/button/button.d.ts +0 -7
- package/lib/button-group/button-group.d.ts +0 -8
- package/lib/context-menu/constants.d.ts +0 -3
- package/lib/context-menu/context-menu.d.ts +0 -10
- package/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -11
- package/lib/dialog/dialog.d.ts +0 -8
- package/lib/favorites-section/helpers.d.ts +0 -3
- package/lib/home-app-workspace/after-tabs.d.ts +0 -3
- package/lib/home-app-workspace/home-app-workspace.d.ts +0 -14
- package/lib/home-app-workspace/index.d.ts +0 -2
- package/lib/home-app-workspace/launchpad-access.d.ts +0 -6
- package/lib/home-app-workspace/workspace-logo.d.ts +0 -10
- package/lib/icon/icon.d.ts +0 -9
- package/lib/icon-components/google-chrome-icon.d.ts +0 -2
- package/lib/icon-components/index.d.ts +0 -7
- package/lib/icon-components/microsoft-edge-icon.d.ts +0 -2
- package/lib/icon-components/opera-icon.d.ts +0 -2
- package/lib/icon-components/platform-setup/index.d.ts +0 -4
- package/lib/img-icon/img-icon.d.ts +0 -8
- package/lib/launchpad/default-sections.d.ts +0 -2
- package/lib/launchpad/helpers.d.ts +0 -3
- package/lib/launchpad/launchpad.context.d.ts +0 -19
- package/lib/launchpad/launchpad.d.ts +0 -12
- package/lib/launchpad/types.d.ts +0 -16
- package/lib/layouts-panel/available-layouts.d.ts +0 -6
- package/lib/layouts-panel/constants.d.ts +0 -6
- package/lib/layouts-panel/helpers.d.ts +0 -4
- package/lib/layouts-panel/layout-actions.d.ts +0 -9
- package/lib/layouts-panel/layouts-notification.d.ts +0 -6
- package/lib/layouts-panel/types.d.ts +0 -20
- package/lib/login/index.d.ts +0 -4
- package/lib/login/login-heading.d.ts +0 -5
- package/lib/login/login-loader.d.ts +0 -5
- package/lib/logo/logo.d.ts +0 -2
- package/lib/notifications-panel/constants.d.ts +0 -9
- package/lib/notifications-panel/index.d.ts +0 -4
- package/lib/notifications-panel/notification.d.ts +0 -6
- package/lib/notifications-panel/notifications-badge.d.ts +0 -5
- package/lib/notifications-panel/notifications-icon.d.ts +0 -6
- package/lib/notifications-panel/notifications-panel.d.ts +0 -2
- package/lib/notifications-panel/types.d.ts +0 -7
- package/lib/panels/launchpad-slide-panel.d.ts +0 -10
- package/lib/panels/slide-panel.d.ts +0 -9
- package/lib/search/search-results-section/helpers.d.ts +0 -3
- package/lib/search/search-results-section/search-results-section.d.ts +0 -5
- package/lib/spinner/index.d.ts +0 -1
- package/lib/user-panel/settings-card.d.ts +0 -2
- package/lib/user-panel/support-card.d.ts +0 -11
- package/lib/user-panel/user-details-card.d.ts +0 -6
- package/lib/user-panel/user-panel-icon.d.ts +0 -6
- package/lib/user-panel/user-panel.d.ts +0 -7
- /package/{constants → dist/constants}/auth0LoginTypes.d.ts +0 -0
- /package/{constants → dist/constants}/modifierKeys.d.ts +0 -0
- /package/{constants → dist/constants}/sortOrder.d.ts +0 -0
- /package/{hooks → dist/hooks}/useApplicationsInstances.d.ts +0 -0
- /package/{hooks → dist/hooks}/useBeforeunload.d.ts +0 -0
- /package/{hooks → dist/hooks}/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -0
- /package/{hooks → dist/hooks}/useIsHomeLoaded.d.ts +0 -0
- /package/{hooks → dist/hooks}/useIsRunningInDesktopContainer.d.ts +0 -0
- /package/{hooks → dist/hooks}/usePressedKeys.d.ts +0 -0
- /package/{hooks → dist/hooks}/useUA.d.ts +0 -0
- /package/{hooks → dist/hooks}/useWorkspacesInstances.d.ts +0 -0
- /package/{lib → dist/lib}/home-app-workspace/no-logo.d.ts +0 -0
- /package/{lib → dist/lib}/home-app-workspace/types.d.ts +0 -0
- /package/{lib → dist/lib}/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/popups-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/pwa-install-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/platform-setup/window-management-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/reopen-prompt-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/start-failed-icon.d.ts +0 -0
- /package/{lib → dist/lib}/icon-components/warning-icon.d.ts +0 -0
- /package/{lib → dist/lib}/info-card/info-card.d.ts +0 -0
- /package/{lib → dist/lib}/info-page-container/info-page-container.d.ts +0 -0
- /package/{lib → dist/lib}/io-connect-home-provider/constants.d.ts +0 -0
- /package/{lib → dist/lib}/layouts-panel/layouts-panel.d.ts +0 -0
- /package/{lib → dist/lib}/login/constants.d.ts +0 -0
- /package/{lib → dist/lib}/login/login-logo.d.ts +0 -0
- /package/{lib → dist/lib}/login/login-page-container.d.ts +0 -0
- /package/{lib → dist/lib}/platform-setup/platform-setup.d.ts +0 -0
- /package/{lib → dist/lib}/platform-setup/setup-steps.d.ts +0 -0
- /package/{lib → dist/lib}/platform-setup/use-edge-notifications-permission.d.ts +0 -0
- /package/{lib → dist/lib}/section/section.context.d.ts +0 -0
- /package/{lib → dist/lib}/spinner/spinner.d.ts +0 -0
- /package/{lib → dist/lib}/system-loader/system-loader.d.ts +0 -0
- /package/{lib → dist/lib}/workspaces-section/types.d.ts +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SectionType } from "../section/types";
|
|
2
|
+
import { Application, ApplicationsSectionProps } from "./types";
|
|
3
|
+
export declare const getApplicationsSectionConfig: (applications: Application[], runningInstances: {
|
|
4
|
+
[appName: string]: string[];
|
|
5
|
+
}, settings: ApplicationsSectionProps) => SectionType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IOConnectBrowser } from "@interopio/browser";
|
|
2
|
+
import { DefaultSectionProps } from "../../common/types";
|
|
3
|
+
export type ApplicationsSectionProps = {
|
|
4
|
+
isFolderCollapsible?: boolean;
|
|
5
|
+
} & DefaultSectionProps;
|
|
6
|
+
export type Application = Pick<IOConnectBrowser.AppManager.Application, "name" | "icon" | "caption" | "userProperties"> & {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface BaseSectionHeaderProps extends React.
|
|
3
|
-
iconSrc?: string;
|
|
4
|
-
iconName?: string;
|
|
2
|
+
interface BaseSectionHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
3
|
title: string;
|
|
6
4
|
isOpen?: boolean;
|
|
7
5
|
showCollapseIcon?: boolean;
|
|
8
|
-
|
|
6
|
+
showFolderIcon?: boolean;
|
|
9
7
|
}
|
|
10
8
|
export declare const BaseSectionHeader: (props: BaseSectionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
export default BaseSectionHeader;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import { BaseSectionItemType } from "./types";
|
|
3
|
+
import { ContextMenuAction } from "../context-menu/types";
|
|
4
|
+
import { ActivationEvent } from "../../helpers/a11y";
|
|
5
|
+
interface BaseSectionItemProps extends Omit<HTMLAttributes<HTMLLIElement>, "className"> {
|
|
6
|
+
isFavoritismEnabled?: boolean;
|
|
7
|
+
item: BaseSectionItemType;
|
|
8
|
+
onClick: (event: ActivationEvent, action?: ContextMenuAction) => void;
|
|
9
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLLIElement>) => void;
|
|
10
|
+
isFocused: boolean;
|
|
11
|
+
liRef?: React.Ref<HTMLLIElement>;
|
|
12
|
+
}
|
|
13
|
+
export declare const BaseSectionItem: (props: BaseSectionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default BaseSectionItem;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BaseSectionItemType, BaseSectionType } from
|
|
2
|
-
import { ActivationEvent } from
|
|
1
|
+
import type { BaseSectionItemType, BaseSectionType } from "./types";
|
|
2
|
+
import { ActivationEvent } from "../../helpers/a11y";
|
|
3
3
|
export interface BaseSectionProps<Item extends BaseSectionItemType> {
|
|
4
4
|
config: BaseSectionType<Item>;
|
|
5
|
-
isFavoritismEnabled?: boolean;
|
|
6
5
|
level?: number;
|
|
6
|
+
path?: string;
|
|
7
7
|
onItemClick: (event: ActivationEvent, params: {
|
|
8
8
|
item: Item;
|
|
9
9
|
modifier: string | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BaseSectionItemType, BaseSectionType } from
|
|
1
|
+
import type { BaseSectionItemType, BaseSectionType } from "./types";
|
|
2
2
|
export declare const isSection: <Item extends BaseSectionItemType>(item: Item | BaseSectionType<Item>) => item is BaseSectionType<Item>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconProps } from "@interopio/components-react";
|
|
2
|
+
import { ContextMenuAction } from "../context-menu/types";
|
|
3
|
+
export interface BaseSectionItemType {
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: IconProps["variant"];
|
|
6
|
+
iconSrc?: string;
|
|
7
|
+
id: string;
|
|
8
|
+
openInstances?: number;
|
|
9
|
+
contextMenuActions?: ContextMenuAction[];
|
|
10
|
+
title: string;
|
|
11
|
+
type: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export type BaseSectionType<Item extends BaseSectionItemType> = {
|
|
16
|
+
id: string;
|
|
17
|
+
items: (Item | BaseSectionType<Item>)[];
|
|
18
|
+
title: string;
|
|
19
|
+
isCollapsible?: boolean;
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ContextMenuAction } from "./types";
|
|
2
|
+
export declare const APPLICATION_ACTION_NAMES: {
|
|
3
|
+
readonly OPEN_IN_NEW_WINDOW: "openInNewWindow";
|
|
4
|
+
readonly OPEN_IN_NEW_WORKSPACE: "openInNewWorkspace";
|
|
5
|
+
};
|
|
6
|
+
export declare const APPLICATION_ACTIONS: ContextMenuAction[];
|
|
7
|
+
export declare const WORKSPACE_ACTION_NAMES: {
|
|
8
|
+
readonly OPEN_IN_NEW_WINDOW: "openInNewWindow";
|
|
9
|
+
readonly DELETE: "delete";
|
|
10
|
+
};
|
|
11
|
+
export declare const WORKSPACE_ACTIONS: ContextMenuAction[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContextMenuAction } from "./types";
|
|
3
|
+
import { ActivationEvent } from "../../helpers/a11y";
|
|
4
|
+
interface ContextMenuProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
5
|
+
title?: string;
|
|
6
|
+
actions: ContextMenuAction[];
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ContextMenu: import("react").ForwardRefExoticComponent<ContextMenuProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
11
|
+
export default ContextMenu;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PopperChildrenProps } from "react-popper";
|
|
2
|
+
import { ButtonIconProps, IconProps } from "@interopio/components-react";
|
|
3
|
+
import { ActivationEvent } from "../../../helpers/a11y";
|
|
4
|
+
import { ContextMenuAction } from "../types";
|
|
5
|
+
export interface DropdownButtonProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
buttonSize?: ButtonIconProps["size"];
|
|
8
|
+
icon?: IconProps["variant"];
|
|
9
|
+
iconSize?: IconProps["size"];
|
|
10
|
+
actions: ContextMenuAction[];
|
|
11
|
+
isTabStop?: boolean;
|
|
12
|
+
onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
|
|
13
|
+
buttonVariant?: ButtonIconProps["variant"];
|
|
14
|
+
placement?: PopperChildrenProps["placement"];
|
|
15
|
+
offset?: [number, number];
|
|
16
|
+
shouldCloseOnOutsideScroll?: boolean;
|
|
17
|
+
shouldCloseOnWindowBlur?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function DropdownButton(props: Readonly<DropdownButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default DropdownButton;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconProps } from "@interopio/components-react";
|
|
2
|
+
import { IOConnectSearch } from "@interopio/search-api";
|
|
2
3
|
export interface ContextMenuAction {
|
|
3
4
|
name: string;
|
|
4
5
|
displayName?: string;
|
|
6
|
+
icon?: IconProps["variant"];
|
|
7
|
+
iconSrc?: string;
|
|
5
8
|
disabled?: boolean;
|
|
9
|
+
separatorAfter?: boolean;
|
|
6
10
|
}
|
|
7
11
|
export interface SearchResultsContextMenuAction extends ContextMenuAction {
|
|
8
12
|
interopParams?: IOConnectSearch.MainAction;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GroupHeaderButtonsProps } from
|
|
1
|
+
import { GroupHeaderButtonsProps } from "@interopio/workspaces-ui-react";
|
|
2
2
|
export declare const HeaderButtons: (props: GroupHeaderButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default HeaderButtons;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WorkspacesConfig, LaunchpadConfig } from "../io-connect-home/types";
|
|
3
|
+
interface HomeAppWorkspaceProps {
|
|
4
|
+
onLogout?: () => void;
|
|
5
|
+
workspaces?: WorkspacesConfig;
|
|
6
|
+
launchpad?: LaunchpadConfig;
|
|
7
|
+
isBeforeunloadDialogEnabled?: boolean;
|
|
8
|
+
Loader?: React.ComponentType<{
|
|
9
|
+
text?: string;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export declare const HomeAppWorkspace: ({ onLogout, workspaces, launchpad, Loader, isBeforeunloadDialogEnabled, }: HomeAppWorkspaceProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./home-app-workspace";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PanelButtonProps } from "../panels/types";
|
|
3
|
+
export interface LaunchpadAccessProps {
|
|
4
|
+
Button?: React.ComponentType<PanelButtonProps>;
|
|
5
|
+
}
|
|
6
|
+
export declare const LaunchpadAccess: ({ Button }: LaunchpadAccessProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default LaunchpadAccess;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LaunchpadComponents } from
|
|
3
|
-
import { User } from '../io-connect-home/types';
|
|
2
|
+
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
4
3
|
export declare const WorkspaceComponentsContext: import("react").Context<{
|
|
4
|
+
launchpadSettings?: LaunchpadSettings | undefined;
|
|
5
5
|
launchpadComponents?: LaunchpadComponents | undefined;
|
|
6
6
|
onLogout?: (() => void) | undefined;
|
|
7
|
-
user?: User | null | undefined;
|
|
8
7
|
} | undefined>;
|
|
9
8
|
export declare const useWorkspaceComponentsContext: () => {
|
|
9
|
+
launchpadSettings?: LaunchpadSettings | undefined;
|
|
10
10
|
launchpadComponents?: LaunchpadComponents | undefined;
|
|
11
11
|
onLogout?: (() => void) | undefined;
|
|
12
|
-
user?: User | null | undefined;
|
|
13
12
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IOConnectHomeProps } from
|
|
1
|
+
import { IOConnectHomeProps } from "./types";
|
|
2
2
|
export declare const HomeApp: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IOConnectHomeProps } from
|
|
1
|
+
import { IOConnectHomeProps } from "./types";
|
|
2
2
|
export declare const IOConnectHome: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { IOConnectInitSettings } from
|
|
3
|
-
import { Auth0ProviderOptions, User as Auth0BaseUser } from
|
|
4
|
-
import { WorkspacesProps } from
|
|
5
|
-
import {
|
|
6
|
-
import { LaunchpadComponents } from '../launchpad/types';
|
|
7
|
-
import { AUTH0_LOGIN_TYPES } from '../../constants/auth0LoginTypes';
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IOConnectInitSettings } from "@interopio/react-hooks";
|
|
3
|
+
import { Auth0ProviderOptions, User as Auth0BaseUser } from "@auth0/auth0-react";
|
|
4
|
+
import { WorkspacesProps } from "@interopio/workspaces-ui-react";
|
|
5
|
+
import { AUTH0_LOGIN_TYPES } from "../../constants/auth0LoginTypes";
|
|
8
6
|
export interface User {
|
|
9
7
|
id: string;
|
|
10
8
|
username?: string;
|
|
11
9
|
email?: string;
|
|
12
10
|
firstName?: string;
|
|
13
11
|
lastName?: string;
|
|
14
|
-
avatarUrl?: string;
|
|
15
12
|
token?: string;
|
|
16
13
|
password?: string;
|
|
17
14
|
}
|
|
@@ -20,6 +17,7 @@ export interface CustomUser {
|
|
|
20
17
|
username: string;
|
|
21
18
|
}
|
|
22
19
|
export interface Auth0User extends Auth0BaseUser {
|
|
20
|
+
id: string;
|
|
23
21
|
token: string;
|
|
24
22
|
}
|
|
25
23
|
export interface SetupFlowSettings {
|
|
@@ -33,15 +31,33 @@ export interface SetupFlowConfig {
|
|
|
33
31
|
components?: SetupFlowComponents;
|
|
34
32
|
settings?: SetupFlowSettings;
|
|
35
33
|
}
|
|
36
|
-
export interface BeforeunloadDialogConfig {
|
|
37
|
-
enabled?: boolean;
|
|
38
|
-
}
|
|
39
34
|
export interface WorkspacesConfig {
|
|
40
|
-
components?: WorkspacesProps[
|
|
41
|
-
|
|
35
|
+
components?: WorkspacesProps["components"];
|
|
36
|
+
}
|
|
37
|
+
export interface LaunchpadHeaderComponents {
|
|
38
|
+
BeforeSearch?: React.ComponentType | null;
|
|
39
|
+
AfterSearch?: React.ComponentType | null;
|
|
40
|
+
}
|
|
41
|
+
export interface LaunchpadSection {
|
|
42
|
+
Component: React.ComponentType;
|
|
43
|
+
placementId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface LaunchpadComponents {
|
|
46
|
+
header?: LaunchpadHeaderComponents;
|
|
47
|
+
sections?: LaunchpadSection[];
|
|
48
|
+
}
|
|
49
|
+
export interface LaunchpadHeaderSettings {
|
|
50
|
+
showHeader?: boolean;
|
|
51
|
+
showSearch?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export type LaunchpadMode = "pinned" | "default";
|
|
54
|
+
export interface LaunchpadSettings {
|
|
55
|
+
header?: LaunchpadHeaderSettings;
|
|
56
|
+
mode?: LaunchpadMode;
|
|
42
57
|
}
|
|
43
58
|
export interface LaunchpadConfig {
|
|
44
59
|
components?: LaunchpadComponents;
|
|
60
|
+
settings?: LaunchpadSettings;
|
|
45
61
|
}
|
|
46
62
|
export type Auth0LoginProviderOptions = Auth0ProviderOptions;
|
|
47
63
|
export type LoginType = (typeof AUTH0_LOGIN_TYPES)[keyof typeof AUTH0_LOGIN_TYPES];
|
|
@@ -52,22 +68,26 @@ type ValidationResult = {
|
|
|
52
68
|
message: string;
|
|
53
69
|
};
|
|
54
70
|
export type ValidateUser = (auth0User: Auth0BaseUser) => ValidationResult;
|
|
71
|
+
export interface LoginPageComponents {
|
|
72
|
+
Logo?: React.ComponentType;
|
|
73
|
+
Heading?: React.ComponentType;
|
|
74
|
+
}
|
|
55
75
|
export interface Auth0LoginConfig {
|
|
56
|
-
type:
|
|
76
|
+
type: "auth0";
|
|
57
77
|
validateUser?: ValidateUser;
|
|
58
78
|
loginType?: LoginType;
|
|
59
79
|
providerOptions: Auth0LoginProviderOptions;
|
|
60
80
|
components?: LoginPageComponents;
|
|
61
81
|
}
|
|
62
82
|
export interface SimpleLoginConfig {
|
|
63
|
-
type:
|
|
83
|
+
type: "simple";
|
|
64
84
|
onLogin: (user: string, password: string) => Promise<User>;
|
|
65
85
|
onLogout?: () => void;
|
|
66
86
|
userInputName?: string;
|
|
67
87
|
components?: LoginPageComponents;
|
|
68
88
|
}
|
|
69
89
|
export interface CustomLoginConfig {
|
|
70
|
-
type:
|
|
90
|
+
type: "custom";
|
|
71
91
|
onLogout: () => void;
|
|
72
92
|
user: CustomUser;
|
|
73
93
|
}
|
|
@@ -76,15 +96,31 @@ export type IOConnectHomeComponents = {
|
|
|
76
96
|
SystemLoader?: React.ComponentType<{
|
|
77
97
|
text?: string;
|
|
78
98
|
}>;
|
|
99
|
+
IOInitErrorScreen?: React.ComponentType<{
|
|
100
|
+
errorMessage?: string;
|
|
101
|
+
}>;
|
|
102
|
+
};
|
|
103
|
+
export type IOConnectHomeSettings = {
|
|
104
|
+
isBeforeunloadDialogEnabled?: boolean;
|
|
105
|
+
};
|
|
106
|
+
export type UserData = {
|
|
107
|
+
type: "auth0";
|
|
108
|
+
user: Auth0User;
|
|
109
|
+
} | {
|
|
110
|
+
type: "custom";
|
|
111
|
+
user?: CustomUser;
|
|
112
|
+
} | {
|
|
113
|
+
type: "simple";
|
|
114
|
+
user: User;
|
|
79
115
|
};
|
|
80
116
|
export interface IOConnectHomeConfig {
|
|
81
|
-
getIOConnectConfig: (
|
|
117
|
+
getIOConnectConfig: (userData: UserData) => IOConnectInitSettings;
|
|
82
118
|
login?: LoginConfig;
|
|
83
119
|
setupFlow?: SetupFlowConfig;
|
|
84
|
-
beforeunloadDialog?: BeforeunloadDialogConfig;
|
|
85
120
|
workspaces?: WorkspacesConfig;
|
|
86
121
|
launchpad?: LaunchpadConfig;
|
|
87
122
|
components?: IOConnectHomeComponents;
|
|
123
|
+
settings?: IOConnectHomeSettings;
|
|
88
124
|
}
|
|
89
125
|
export interface IOConnectHomeProps {
|
|
90
126
|
config: IOConnectHomeConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidateUser, Auth0ValidationError, User } from
|
|
1
|
+
import { ValidateUser, Auth0ValidationError, User } from "./types";
|
|
2
2
|
export declare const useUser: (validateUser: ValidateUser | undefined) => {
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
validationError: Auth0ValidationError | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { HomePermissionStatus } from
|
|
1
|
+
import type { HomePermissionStatus } from "./types";
|
|
2
2
|
export declare const getPermissionStatuses: () => Promise<HomePermissionStatus[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PERMISSION_NAMES } from
|
|
2
|
-
export type PermissionName =
|
|
1
|
+
import { PERMISSION_NAMES } from "./constants";
|
|
2
|
+
export type PermissionName = typeof PERMISSION_NAMES[keyof typeof PERMISSION_NAMES];
|
|
3
3
|
export type HomePermissionStatus = PermissionStatus & {
|
|
4
4
|
stableName: PermissionName;
|
|
5
5
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IOConnectBrowser } from "@interopio/browser";
|
|
2
|
+
import { IOConnectDesktop } from "@interopio/desktop";
|
|
3
|
+
export declare const getGlobalLayoutWorkspaceNames: (layout: IOConnectDesktop.Layouts.Layout | IOConnectBrowser.Layouts.Layout) => string[];
|
|
4
|
+
export declare const checkShouldRenderSearchResults: (searchTerm: string) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface LaunchpadHeaderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const LaunchpadHeader: ({ className, children }: LaunchpadHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default LaunchpadHeader;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LayoutSummary } from "../layouts-panel/types";
|
|
3
|
+
import { SetDefaultLayout, SetActiveLayout, CloseLaunchpad } from "../../common/types";
|
|
4
|
+
export declare const useLaunchpadAPI: () => {
|
|
5
|
+
close?: CloseLaunchpad | undefined;
|
|
6
|
+
defaultLayout: LayoutSummary | undefined;
|
|
7
|
+
activeLayout: LayoutSummary | null;
|
|
8
|
+
setActiveLayout: SetActiveLayout;
|
|
9
|
+
setDefaultLayout: SetDefaultLayout;
|
|
10
|
+
isLayoutOperationBlocked: boolean;
|
|
11
|
+
setIsLayoutOperationBlocked: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
+
};
|
|
13
|
+
interface LaunchpadAPIProviderProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
close?: CloseLaunchpad;
|
|
16
|
+
isGlobalLayoutsAvailable: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const LaunchpadAPIProvider: ({ children, close, isGlobalLayoutsAvailable }: LaunchpadAPIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
3
|
+
export interface LaunchpadProps extends React.HTMLProps<HTMLDivElement> {
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
settings?: LaunchpadSettings;
|
|
7
|
+
components?: LaunchpadComponents;
|
|
8
|
+
windowManagementPermissionState?: PermissionState;
|
|
9
|
+
}
|
|
10
|
+
export declare const Launchpad: (props: LaunchpadProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Launchpad;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SetStateAction } from "react";
|
|
2
|
+
export declare const useIsLaunchpadCollapsed: () => {
|
|
3
|
+
error: {
|
|
4
|
+
message: string;
|
|
5
|
+
} | undefined;
|
|
6
|
+
isLaunchpadCollapsed: boolean | undefined;
|
|
7
|
+
setIsLaunchpadCollapsed: (value: SetStateAction<boolean | undefined>) => Promise<void>;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SetStateAction } from "react";
|
|
2
|
+
export declare const useIsLayoutsPanelOpen: () => {
|
|
3
|
+
error: {
|
|
4
|
+
message: string;
|
|
5
|
+
} | undefined;
|
|
6
|
+
isLayoutsPanelOpen: boolean | undefined;
|
|
7
|
+
setIsLayoutsPanelOpen: (value: SetStateAction<boolean | undefined>) => Promise<void>;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LoginPageComponents } from
|
|
3
|
-
import { Auth0ValidationError } from '../../io-connect-home/types';
|
|
2
|
+
import { Auth0ValidationError, LoginPageComponents } from "../../io-connect-home/types";
|
|
4
3
|
export interface Auth0LoginPageProps {
|
|
5
4
|
onLogin: () => void;
|
|
6
5
|
isLoading: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoginHeading: () => import("react/jsx-runtime").JSX.Element;
|