@interopio/home-ui-react 2.2.8 → 4.2.8-next.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.
- package/README.md +81 -57
- package/dist/index.css +2 -2
- package/dist/index.d.ts +419 -25
- package/dist/index.js +17 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12342 -10122
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -18
- package/LICENSE +0 -21
- package/dist/common/sequelizer.d.ts +0 -7
- package/dist/common/types.d.ts +0 -25
- package/dist/common/utils.d.ts +0 -2
- package/dist/constants/alerts.d.ts +0 -8
- package/dist/constants/auth0LoginTypes.d.ts +0 -4
- package/dist/constants/defaults.d.ts +0 -1
- package/dist/constants/dialogs.d.ts +0 -5
- package/dist/constants/itemTypes.d.ts +0 -6
- package/dist/constants/modifierKeys.d.ts +0 -4
- package/dist/constants/platformPrefs.d.ts +0 -13
- package/dist/constants/regex.d.ts +0 -1
- package/dist/constants/sections.d.ts +0 -5
- package/dist/constants/sortOrder.d.ts +0 -5
- package/dist/constants/storageKeys.d.ts +0 -5
- package/dist/decoders/base.d.ts +0 -5
- package/dist/decoders/config.d.ts +0 -3
- package/dist/decoders/layouts.d.ts +0 -3
- package/dist/decoders/platform.d.ts +0 -5
- package/dist/decoders/user.d.ts +0 -3
- package/dist/decoders/validation.d.ts +0 -3
- package/dist/executors/applicationActions.d.ts +0 -4
- package/dist/executors/layoutActions.d.ts +0 -4
- package/dist/executors/setupStepsActions.d.ts +0 -3
- package/dist/executors/types.d.ts +0 -33
- package/dist/executors/workspaceActions.d.ts +0 -4
- package/dist/helpers/a11y.d.ts +0 -22
- package/dist/helpers/alerts.d.ts +0 -9
- package/dist/helpers/sort.d.ts +0 -11
- package/dist/hooks/index.d.ts +0 -29
- package/dist/hooks/useApplications.d.ts +0 -2
- package/dist/hooks/useApplicationsInstances.d.ts +0 -3
- package/dist/hooks/useBeforeunload.d.ts +0 -1
- package/dist/hooks/useExecuteApplicationAction.d.ts +0 -2
- package/dist/hooks/useExecuteLayoutAction.d.ts +0 -5
- package/dist/hooks/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -1
- package/dist/hooks/useExecuteWorkspaceAction.d.ts +0 -2
- package/dist/hooks/useFavorites.d.ts +0 -8
- package/dist/hooks/useFrameId.d.ts +0 -1
- package/dist/hooks/useInvokeInteropMethod.d.ts +0 -2
- package/dist/hooks/useIsHomeLoaded.d.ts +0 -1
- package/dist/hooks/useIsLaunchpadCollapsed.d.ts +0 -9
- package/dist/hooks/useIsLaunchpadPinned.d.ts +0 -8
- package/dist/hooks/useIsRunningInDesktopContainer.d.ts +0 -1
- package/dist/hooks/useLayouts.d.ts +0 -5
- package/dist/hooks/useNotifications.d.ts +0 -2
- package/dist/hooks/useNotificationsConfiguration.d.ts +0 -3
- package/dist/hooks/useOnIframeFocus.d.ts +0 -6
- package/dist/hooks/useOnOutsideClick.d.ts +0 -9
- package/dist/hooks/usePlatformWindow.d.ts +0 -5
- package/dist/hooks/usePressedKeys.d.ts +0 -1
- package/dist/hooks/useRestoreLayout.d.ts +0 -2
- package/dist/hooks/useRestoreWorkspace.d.ts +0 -5
- package/dist/hooks/useSearch.d.ts +0 -5
- package/dist/hooks/useStartApplication.d.ts +0 -7
- package/dist/hooks/useStorage.d.ts +0 -4
- package/dist/hooks/useUA.d.ts +0 -2
- package/dist/hooks/useWorkspaces.d.ts +0 -2
- package/dist/hooks/useWorkspacesInstances.d.ts +0 -3
- package/dist/lib/applications-section/applications-section.d.ts +0 -3
- package/dist/lib/applications-section/helpers.d.ts +0 -5
- package/dist/lib/applications-section/types.d.ts +0 -9
- package/dist/lib/base-section/base-section-header.d.ts +0 -8
- package/dist/lib/base-section/base-section-item.d.ts +0 -14
- package/dist/lib/base-section/base-section.d.ts +0 -14
- package/dist/lib/base-section/helpers.d.ts +0 -2
- package/dist/lib/base-section/types.d.ts +0 -20
- package/dist/lib/base-section/useCollapsedSections.d.ts +0 -4
- package/dist/lib/context-menu/constants.d.ts +0 -11
- package/dist/lib/context-menu/context-menu.d.ts +0 -11
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -24
- package/dist/lib/context-menu/types.d.ts +0 -13
- package/dist/lib/default-header-system-buttons/constants.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +0 -2
- package/dist/lib/favorites-section/favorites-section.d.ts +0 -3
- package/dist/lib/favorites-section/helpers.d.ts +0 -3
- package/dist/lib/home-app-workspace/after-tabs.d.ts +0 -3
- package/dist/lib/home-app-workspace/constants.d.ts +0 -2
- package/dist/lib/home-app-workspace/group-header-buttons.d.ts +0 -3
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +0 -12
- package/dist/lib/home-app-workspace/index.d.ts +0 -1
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +0 -6
- package/dist/lib/home-app-workspace/no-logo.d.ts +0 -2
- package/dist/lib/home-app-workspace/types.d.ts +0 -3
- package/dist/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -1
- package/dist/lib/home-app-workspace/workspace-components-context.d.ts +0 -11
- package/dist/lib/icon-components/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/popups-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/pwa-install-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/window-management-icon.d.ts +0 -2
- package/dist/lib/icon-components/reopen-prompt-icon.d.ts +0 -2
- package/dist/lib/icon-components/start-failed-icon.d.ts +0 -2
- package/dist/lib/icon-components/warning-icon.d.ts +0 -2
- package/dist/lib/info-card/info-card.d.ts +0 -10
- package/dist/lib/info-page-container/info-page-container.d.ts +0 -9
- package/dist/lib/io-connect-home/auth0-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/home-app.d.ts +0 -2
- package/dist/lib/io-connect-home/io-connect-home.d.ts +0 -2
- package/dist/lib/io-connect-home/no-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/simple-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/types.d.ts +0 -131
- package/dist/lib/io-connect-home/useUser.d.ts +0 -8
- package/dist/lib/io-connect-home-provider/constants.d.ts +0 -5
- package/dist/lib/io-connect-home-provider/helpers.d.ts +0 -2
- package/dist/lib/io-connect-home-provider/io-connect-home-provider.d.ts +0 -16
- package/dist/lib/io-connect-home-provider/types.d.ts +0 -8
- package/dist/lib/io-init-error-screen/io-init-error-screen.d.ts +0 -3
- package/dist/lib/launchpad/constants.d.ts +0 -2
- package/dist/lib/launchpad/helpers.d.ts +0 -4
- package/dist/lib/launchpad/launchpad-body.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-config.context.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-contents-container.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-header.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-pin-button.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-search.context.d.ts +0 -11
- package/dist/lib/launchpad/launchpad.context.d.ts +0 -21
- package/dist/lib/launchpad/launchpad.d.ts +0 -10
- package/dist/lib/layouts-panel/active-layout.d.ts +0 -2
- package/dist/lib/layouts-panel/all-layouts.d.ts +0 -2
- package/dist/lib/layouts-panel/constants.d.ts +0 -8
- package/dist/lib/layouts-panel/create-layout-button.d.ts +0 -2
- package/dist/lib/layouts-panel/helpers.d.ts +0 -3
- package/dist/lib/layouts-panel/layouts-dropdown.d.ts +0 -6
- package/dist/lib/layouts-panel/layouts-list.d.ts +0 -7
- package/dist/lib/layouts-panel/layouts-panel.d.ts +0 -2
- package/dist/lib/layouts-panel/save-layout-button.d.ts +0 -5
- package/dist/lib/layouts-panel/types.d.ts +0 -8
- package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +0 -9
- package/dist/lib/login/auth0/auth0-login-page.d.ts +0 -13
- package/dist/lib/login/constants.d.ts +0 -1
- package/dist/lib/login/index.d.ts +0 -3
- package/dist/lib/login/login-heading.d.ts +0 -1
- package/dist/lib/login/login-logo.d.ts +0 -6
- package/dist/lib/login/login-page-container.d.ts +0 -7
- package/dist/lib/login/simple/reducers.d.ts +0 -2
- package/dist/lib/login/simple/simple-login-form.d.ts +0 -10
- package/dist/lib/login/simple/simple-login-page.d.ts +0 -11
- package/dist/lib/login/types.d.ts +0 -9
- package/dist/lib/notifications-panel-button/notifications-badge.d.ts +0 -2
- package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +0 -5
- package/dist/lib/notifications-panels/notification-settings-panel.d.ts +0 -9
- package/dist/lib/notifications-panels/notifications-panel-with-toggle-button.d.ts +0 -3
- package/dist/lib/notifications-panels/notifications-panel.d.ts +0 -10
- package/dist/lib/panels/launchpad/launchpad-button.d.ts +0 -6
- package/dist/lib/panels/launchpad/launchpad-panel.d.ts +0 -2
- package/dist/lib/panels/panel-with-toggle-button.d.ts +0 -11
- package/dist/lib/panels/panel-wrapper.d.ts +0 -10
- package/dist/lib/panels/types.d.ts +0 -9
- package/dist/lib/platform-setup/constants.d.ts +0 -12
- package/dist/lib/platform-setup/platform-setup.d.ts +0 -15
- package/dist/lib/platform-setup/reducers.d.ts +0 -7
- package/dist/lib/platform-setup/setup-steps-list.d.ts +0 -8
- package/dist/lib/platform-setup/setup-steps.d.ts +0 -7
- package/dist/lib/platform-setup/types.d.ts +0 -32
- package/dist/lib/platform-setup/use-edge-notifications-permission.d.ts +0 -6
- package/dist/lib/preferences-panel/preferences-panel.d.ts +0 -2
- package/dist/lib/profile-panel/profile-panel.d.ts +0 -9
- package/dist/lib/search/search-bar/search-bar.d.ts +0 -8
- package/dist/lib/search/search-results-section/search-results-section.d.ts +0 -5
- package/dist/lib/search/search-results-section/types.d.ts +0 -8
- package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +0 -1
- package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +0 -3
- package/dist/lib/section/helpers.d.ts +0 -3
- package/dist/lib/section/section.context.d.ts +0 -11
- package/dist/lib/section/section.d.ts +0 -11
- package/dist/lib/section/types.d.ts +0 -8
- package/dist/lib/spinner/index.d.ts +0 -1
- package/dist/lib/spinner/spinner.d.ts +0 -2
- package/dist/lib/system-loader/system-loader.d.ts +0 -6
- package/dist/lib/system-menu/helpers.d.ts +0 -3
- package/dist/lib/system-menu/system-menu.d.ts +0 -6
- package/dist/lib/system-menu/types.d.ts +0 -8
- package/dist/lib/workspaces-section/constants.d.ts +0 -3
- package/dist/lib/workspaces-section/helpers.d.ts +0 -6
- package/dist/lib/workspaces-section/types.d.ts +0 -4
- package/dist/lib/workspaces-section/workspaces-section.d.ts +0 -3
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContextMenuAction } from "./types";
|
|
2
|
-
import { ActivationEvent } from "../../helpers/a11y";
|
|
3
|
-
interface ContextMenuProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
4
|
-
title?: string;
|
|
5
|
-
actions: ContextMenuAction[];
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
|
|
8
|
-
"data-testid"?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const ContextMenu: import("react").ForwardRefExoticComponent<ContextMenuProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
11
|
-
export default ContextMenu;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
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?: Placement;
|
|
15
|
-
strategy?: PositioningStrategy;
|
|
16
|
-
offset?: [number, number];
|
|
17
|
-
shouldCloseOnOutsideScroll?: boolean;
|
|
18
|
-
shouldCloseOnWindowBlur?: boolean;
|
|
19
|
-
shouldCloseOnWindowResize?: boolean;
|
|
20
|
-
"data-testid"?: string;
|
|
21
|
-
contextMenuDataTestId?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare function DropdownButton(props: Readonly<DropdownButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export default DropdownButton;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IconProps } from "@interopio/components-react";
|
|
2
|
-
import { IOConnectSearch } from "@interopio/search-api";
|
|
3
|
-
export interface ContextMenuAction {
|
|
4
|
-
name: string;
|
|
5
|
-
displayName?: string;
|
|
6
|
-
icon?: IconProps["variant"];
|
|
7
|
-
iconSrc?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
separatorAfter?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface SearchResultsContextMenuAction extends ContextMenuAction {
|
|
12
|
-
interopParams?: IOConnectSearch.MainAction;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WorkspacesConfig, LaunchpadConfig } from "../io-connect-home/types";
|
|
2
|
-
interface HomeAppWorkspaceProps {
|
|
3
|
-
onLogout?: () => void;
|
|
4
|
-
workspaces?: WorkspacesConfig;
|
|
5
|
-
launchpad?: LaunchpadConfig;
|
|
6
|
-
isBeforeunloadDialogEnabled?: boolean;
|
|
7
|
-
Loader?: React.ComponentType<{
|
|
8
|
-
text?: string;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
export declare const HomeAppWorkspace: ({ onLogout, workspaces, launchpad, Loader, isBeforeunloadDialogEnabled, }: HomeAppWorkspaceProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./home-app-workspace";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PanelButtonProps } from "../panels/types";
|
|
2
|
-
export interface LaunchpadAccessProps {
|
|
3
|
-
Button?: React.ComponentType<PanelButtonProps>;
|
|
4
|
-
}
|
|
5
|
-
export declare const LaunchpadAccess: ({ Button }: LaunchpadAccessProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default LaunchpadAccess;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useAddWindowButtonVisible(workspaceId: string, groupId: string): boolean;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
2
|
-
export declare const WorkspaceComponentsContext: import("react").Context<{
|
|
3
|
-
launchpadSettings?: LaunchpadSettings | undefined;
|
|
4
|
-
launchpadComponents?: LaunchpadComponents | undefined;
|
|
5
|
-
onLogout?: (() => void) | undefined;
|
|
6
|
-
} | undefined>;
|
|
7
|
-
export declare const useWorkspaceComponentsContext: () => {
|
|
8
|
-
launchpadSettings?: LaunchpadSettings | undefined;
|
|
9
|
-
launchpadComponents?: LaunchpadComponents | undefined;
|
|
10
|
-
onLogout?: (() => void) | undefined;
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface InfoCardProps {
|
|
2
|
-
children?: React.ReactNode;
|
|
3
|
-
heading?: string;
|
|
4
|
-
description: string | React.ReactElement;
|
|
5
|
-
Image?: React.ComponentType;
|
|
6
|
-
title?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const InfoCard: ({ children, description, heading, Image, title, className }: InfoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default InfoCard;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface InfoPageContainerProps {
|
|
2
|
-
Logo: React.ComponentType<{
|
|
3
|
-
className?: string;
|
|
4
|
-
}>;
|
|
5
|
-
className?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const InfoPageContainer: ({ className, children, Logo }: InfoPageContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default InfoPageContainer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Auth0LoginConfig, IOConnectHomeConfig } from "./types";
|
|
2
|
-
interface Auth0LoginHomeProps {
|
|
3
|
-
config: IOConnectHomeConfig & {
|
|
4
|
-
login: Auth0LoginConfig;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const Auth0LoginHome: ({ config }: Auth0LoginHomeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CustomLoginConfig, IOConnectHomeConfig } from "./types";
|
|
2
|
-
interface NoLoginHomeProps {
|
|
3
|
-
config: IOConnectHomeConfig & {
|
|
4
|
-
login?: CustomLoginConfig;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const NoLoginHome: ({ config }: NoLoginHomeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IOConnectHomeConfig, SimpleLoginConfig } from "./types";
|
|
2
|
-
interface SimpleLoginHomeProps {
|
|
3
|
-
config: IOConnectHomeConfig & {
|
|
4
|
-
login: SimpleLoginConfig;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const SimpleLoginHome: ({ config }: SimpleLoginHomeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,131 +0,0 @@
|
|
|
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";
|
|
6
|
-
export interface User {
|
|
7
|
-
id: string;
|
|
8
|
-
username?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
firstName?: string;
|
|
11
|
-
lastName?: string;
|
|
12
|
-
token?: string;
|
|
13
|
-
password?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CustomUser {
|
|
16
|
-
id: string;
|
|
17
|
-
username: string;
|
|
18
|
-
}
|
|
19
|
-
export interface Auth0User extends Auth0BaseUser {
|
|
20
|
-
id: string;
|
|
21
|
-
token: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SetupFlowSettings {
|
|
24
|
-
edgeNotificationsPermissionTimeout?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface SetupFlowComponents {
|
|
27
|
-
Logo?: React.ComponentType;
|
|
28
|
-
}
|
|
29
|
-
export interface SetupFlowConfig {
|
|
30
|
-
enabled?: boolean;
|
|
31
|
-
components?: SetupFlowComponents;
|
|
32
|
-
settings?: SetupFlowSettings;
|
|
33
|
-
}
|
|
34
|
-
export interface WorkspacesConfig {
|
|
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;
|
|
57
|
-
}
|
|
58
|
-
export interface LaunchpadConfig {
|
|
59
|
-
components?: LaunchpadComponents;
|
|
60
|
-
settings?: LaunchpadSettings;
|
|
61
|
-
}
|
|
62
|
-
export type Auth0LoginProviderOptions = Auth0ProviderOptions;
|
|
63
|
-
export type LoginType = (typeof AUTH0_LOGIN_TYPES)[keyof typeof AUTH0_LOGIN_TYPES];
|
|
64
|
-
type ValidationResult = {
|
|
65
|
-
ok: true;
|
|
66
|
-
} | {
|
|
67
|
-
ok: false;
|
|
68
|
-
message: string;
|
|
69
|
-
};
|
|
70
|
-
export type ValidateUser = (auth0User: Auth0BaseUser) => ValidationResult;
|
|
71
|
-
export interface LoginPageComponents {
|
|
72
|
-
Logo?: React.ComponentType;
|
|
73
|
-
Heading?: React.ComponentType;
|
|
74
|
-
}
|
|
75
|
-
export interface Auth0LoginConfig {
|
|
76
|
-
type: "auth0";
|
|
77
|
-
validateUser?: ValidateUser;
|
|
78
|
-
loginType?: LoginType;
|
|
79
|
-
providerOptions: Auth0LoginProviderOptions;
|
|
80
|
-
components?: LoginPageComponents;
|
|
81
|
-
}
|
|
82
|
-
export interface SimpleLoginConfig {
|
|
83
|
-
type: "simple";
|
|
84
|
-
onLogin: (user: string, password: string) => Promise<User>;
|
|
85
|
-
onLogout?: () => void;
|
|
86
|
-
userInputName?: string;
|
|
87
|
-
components?: LoginPageComponents;
|
|
88
|
-
}
|
|
89
|
-
export interface CustomLoginConfig {
|
|
90
|
-
type: "custom";
|
|
91
|
-
onLogout: () => void;
|
|
92
|
-
user: CustomUser;
|
|
93
|
-
}
|
|
94
|
-
export type LoginConfig = Auth0LoginConfig | SimpleLoginConfig | CustomLoginConfig;
|
|
95
|
-
export type IOConnectHomeComponents = {
|
|
96
|
-
SystemLoader?: React.ComponentType<{
|
|
97
|
-
text?: string;
|
|
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;
|
|
115
|
-
};
|
|
116
|
-
export interface IOConnectHomeConfig {
|
|
117
|
-
getIOConnectConfig: (userData: UserData) => IOConnectInitSettings;
|
|
118
|
-
login?: LoginConfig;
|
|
119
|
-
setupFlow?: SetupFlowConfig;
|
|
120
|
-
workspaces?: WorkspacesConfig;
|
|
121
|
-
launchpad?: LaunchpadConfig;
|
|
122
|
-
components?: IOConnectHomeComponents;
|
|
123
|
-
settings?: IOConnectHomeSettings;
|
|
124
|
-
}
|
|
125
|
-
export interface IOConnectHomeProps {
|
|
126
|
-
config: IOConnectHomeConfig;
|
|
127
|
-
}
|
|
128
|
-
export type Auth0ValidationError = {
|
|
129
|
-
message: string;
|
|
130
|
-
};
|
|
131
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ValidateUser, Auth0ValidationError, User } from "./types";
|
|
2
|
-
export declare const useUser: (validateUser: ValidateUser | undefined) => {
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
validationError: Auth0ValidationError | null;
|
|
5
|
-
user: (User & {
|
|
6
|
-
token: string;
|
|
7
|
-
}) | null;
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { HomePermissionStatuses } from "./types";
|
|
2
|
-
interface IOConnectHomeProviderProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const useIOConnectHome: () => {
|
|
6
|
-
permission: {
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
statuses: HomePermissionStatuses;
|
|
9
|
-
};
|
|
10
|
-
login: {
|
|
11
|
-
isLoggingOut: boolean;
|
|
12
|
-
setIsLoggingOut: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const IOConnectHomeProvider: ({ children }: IOConnectHomeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PERMISSION_NAMES } from "./constants";
|
|
2
|
-
export type PermissionName = (typeof PERMISSION_NAMES)[keyof typeof PERMISSION_NAMES];
|
|
3
|
-
export type HomePermissionStatus = PermissionStatus & {
|
|
4
|
-
stableName: PermissionName;
|
|
5
|
-
};
|
|
6
|
-
export type HomePermissionStatuses = Record<PermissionName, {
|
|
7
|
-
state: PermissionState;
|
|
8
|
-
}>;
|
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
2
|
-
interface LaunchpadConfigProviderProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
settings: LaunchpadSettings;
|
|
5
|
-
components: LaunchpadComponents;
|
|
6
|
-
}
|
|
7
|
-
export declare const LaunchpadConfigContext: import("react").Context<Required<Omit<LaunchpadConfigProviderProps, "children">> | undefined>;
|
|
8
|
-
export declare const useLaunchpadConfig: () => Required<Omit<LaunchpadConfigProviderProps, "children">>;
|
|
9
|
-
export declare const LaunchpadConfigProvider: ({ children, settings, components }: LaunchpadConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
2
|
-
interface LaunchpadContentsContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
settings?: LaunchpadSettings;
|
|
4
|
-
components?: LaunchpadComponents;
|
|
5
|
-
isOpen?: boolean;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
windowManagementPermissionState?: PermissionState;
|
|
8
|
-
}
|
|
9
|
-
export declare const LaunchpadContentsContainer: ({ settings, components, isOpen, onClose, windowManagementPermissionState, children, className, ...rest }: LaunchpadContentsContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default LaunchpadContentsContainer;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface LaunchpadSearchContext {
|
|
2
|
-
searchTerm: string;
|
|
3
|
-
setSearchTerm: React.Dispatch<React.SetStateAction<string>>;
|
|
4
|
-
}
|
|
5
|
-
export declare const LaunchpadSearchContext: import("react").Context<LaunchpadSearchContext | undefined>;
|
|
6
|
-
export declare const useLaunchpadSearch: () => LaunchpadSearchContext;
|
|
7
|
-
interface SearchProviderProps {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const LaunchpadSearchProvider: ({ children }: SearchProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { LayoutSummary } from "../layouts-panel/types";
|
|
2
|
-
import { SetDefaultLayout, SetActiveLayout, CloseLaunchpad } from "../../common/types";
|
|
3
|
-
export declare const useLaunchpadAPI: () => {
|
|
4
|
-
close?: CloseLaunchpad | undefined;
|
|
5
|
-
isOpen: boolean;
|
|
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
|
-
isGlobalLayoutsAvailable: boolean;
|
|
13
|
-
};
|
|
14
|
-
interface LaunchpadAPIProviderProps {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
close?: CloseLaunchpad;
|
|
17
|
-
isOpen: boolean;
|
|
18
|
-
isGlobalLayoutsAvailable: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const LaunchpadAPIProvider: ({ children, close, isOpen, isGlobalLayoutsAvailable }: LaunchpadAPIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LaunchpadComponents, LaunchpadSettings } from "../io-connect-home/types";
|
|
2
|
-
export interface LaunchpadProps extends React.HTMLProps<HTMLDivElement> {
|
|
3
|
-
isOpen?: boolean;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
settings?: LaunchpadSettings;
|
|
6
|
-
components?: LaunchpadComponents;
|
|
7
|
-
windowManagementPermissionState?: PermissionState;
|
|
8
|
-
}
|
|
9
|
-
export declare const Launchpad: (props: LaunchpadProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Launchpad;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { Layout } from "./types";
|
|
3
|
-
interface LayoutsListProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
|
-
layouts: Layout[];
|
|
5
|
-
}
|
|
6
|
-
export declare const LayoutsList: ({ layouts, className, ...rest }: LayoutsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default LayoutsList;
|