@interopio/home-ui-react 1.1.1 → 1.2.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/common/types.d.ts +8 -0
- package/constants/sortOrder.d.ts +5 -0
- package/constants/storageKeys.d.ts +3 -2
- package/decoders/base.d.ts +2 -0
- package/decoders/config.d.ts +3 -0
- package/decoders/user.d.ts +3 -0
- package/helpers/sort.d.ts +11 -0
- package/hooks/useIsBrowserSupported.d.ts +1 -0
- package/index.css +1 -1
- package/index.d.ts +12 -8
- package/index.js +17 -12
- package/index.js.map +1 -1
- package/index.mjs +6353 -4606
- package/index.mjs.map +1 -1
- package/lib/applications-section/applications-section.d.ts +2 -1
- package/lib/applications-section/helpers.d.ts +2 -1
- package/lib/applications-section/types.d.ts +4 -0
- package/lib/base-section/base-section-header.d.ts +3 -0
- package/lib/base-section/base-section.d.ts +1 -1
- package/lib/base-section/types.d.ts +13 -3
- package/lib/browser-not-supported/additional-information.d.ts +5 -0
- package/lib/browser-not-supported/browser-not-supported.d.ts +11 -0
- package/lib/browser-not-supported/constants.d.ts +6 -0
- package/lib/favorites-section/favorites-section.d.ts +2 -1
- package/lib/favorites-section/helpers.d.ts +2 -2
- package/lib/home-app-workspace/home-app-workspace-logo-area.d.ts +1 -0
- package/lib/home-app-workspace/home-app-workspace.d.ts +9 -0
- package/lib/home-app-workspace/index.d.ts +2 -0
- package/lib/home-app-workspace/workspace-components-context.d.ts +10 -0
- package/lib/home-app-workspace/workspace-logo.d.ts +10 -0
- package/lib/icon-components/google-chrome-icon.d.ts +2 -0
- package/lib/icon-components/index.d.ts +3 -0
- package/lib/icon-components/microsoft-edge-icon.d.ts +2 -0
- package/lib/icon-components/opera-icon.d.ts +2 -0
- package/lib/info-card/info-card.d.ts +10 -0
- package/lib/info-page-container/info-page-container.d.ts +10 -0
- package/lib/io-connect-home/auth0-login-home.d.ts +8 -0
- package/lib/io-connect-home/helpers.d.ts +2 -0
- package/lib/io-connect-home/home-app.d.ts +2 -0
- package/lib/io-connect-home/io-connect-home.d.ts +2 -0
- package/lib/io-connect-home/no-login-home.d.ts +2 -0
- package/lib/io-connect-home/simple-login-home.d.ts +8 -0
- package/lib/io-connect-home/types.d.ts +56 -0
- package/lib/launchpad/default-sections.d.ts +2 -0
- package/lib/launchpad/launchpad.d.ts +4 -6
- package/lib/launchpad/types.d.ts +16 -0
- package/lib/layouts-panel/types.d.ts +1 -0
- package/lib/loader/index.d.ts +1 -0
- package/lib/loader/loader.d.ts +2 -0
- package/lib/login/auth0/auth0-login-form.d.ts +4 -0
- package/lib/login/auth0/auth0-login-page.d.ts +9 -0
- package/lib/login/index.d.ts +5 -3
- package/lib/login/login-heading.d.ts +1 -2
- package/lib/login/login-logo.d.ts +1 -2
- package/lib/login/logout-page.d.ts +7 -0
- package/lib/login/simple/reducers.d.ts +2 -0
- package/lib/login/simple/simple-login-form.d.ts +10 -0
- package/lib/login/simple/simple-login-page.d.ts +8 -0
- package/lib/login/types.d.ts +5 -8
- package/lib/login/verifying-credentials.d.ts +1 -0
- package/lib/panels/launchpad-slide-panel.d.ts +5 -7
- package/lib/panels/slide-panel.d.ts +1 -1
- package/lib/section/section.d.ts +1 -1
- package/lib/user-panel/support-card.d.ts +11 -0
- package/lib/user-panel/user-details-card.d.ts +6 -0
- package/lib/user-panel/user-panel-icon.d.ts +6 -0
- package/lib/user-panel/user-panel.d.ts +7 -0
- package/lib/workspaces-section/helpers.d.ts +2 -1
- package/lib/workspaces-section/workspaces-section.d.ts +2 -1
- package/package.json +4 -6
- package/lib/launchpad/features/profile-settings/profile-icon.d.ts +0 -6
- package/lib/launchpad/features/profile-settings/profile-settings.d.ts +0 -9
- package/lib/login/login-auth0.d.ts +0 -6
- package/lib/login/login-form.d.ts +0 -11
- package/lib/login/login-loader.d.ts +0 -3
- package/lib/login/login.d.ts +0 -8
- package/lib/login/reducers.d.ts +0 -3
- package/lib/permissions-setup/permissions-card.d.ts +0 -10
- package/lib/profile-details-card/profile-details-card.d.ts +0 -8
- package/lib/support-card/support-card.d.ts +0 -9
- /package/lib/{settings-card → user-panel}/settings-card.d.ts +0 -0
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { ApplicationsSectionProps } from './types';
|
|
2
|
+
export declare function ApplicationsSection(props: ApplicationsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
export default ApplicationsSection;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IOConnectBrowser } from '@interopio/browser';
|
|
2
2
|
import { SectionType } from '../section/types';
|
|
3
|
+
import { ApplicationsSectionProps } from './types';
|
|
3
4
|
export declare const getApplicationsSectionConfig: (applications: IOConnectBrowser.AppManager.Application[], runningInstances: {
|
|
4
5
|
[appName: string]: string[];
|
|
5
|
-
}) => SectionType;
|
|
6
|
+
}, settings: ApplicationsSectionProps) => SectionType;
|
|
@@ -3,6 +3,9 @@ interface BaseSectionHeaderProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
3
3
|
iconSrc?: string;
|
|
4
4
|
iconName?: string;
|
|
5
5
|
title: string;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
showCollapseIcon?: boolean;
|
|
8
|
+
showHoverIndicator?: boolean;
|
|
6
9
|
}
|
|
7
10
|
export declare const BaseSectionHeader: (props: BaseSectionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default BaseSectionHeader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseSectionItemType, BaseSectionType } from './types';
|
|
2
2
|
import { ActivationEvent } from '../../helpers/a11y';
|
|
3
|
-
interface BaseSectionProps<Item extends BaseSectionItemType> {
|
|
3
|
+
export interface BaseSectionProps<Item extends BaseSectionItemType> {
|
|
4
4
|
config: BaseSectionType<Item>;
|
|
5
5
|
isFavoritismEnabled?: boolean;
|
|
6
6
|
level?: number;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { ContextMenuAction } from '../context-menu/types';
|
|
2
|
+
export type PaginationSettings = {
|
|
3
|
+
showAllItems: boolean;
|
|
4
|
+
displayCount?: never;
|
|
5
|
+
} | {
|
|
6
|
+
showAllItems?: never;
|
|
7
|
+
displayCount: number;
|
|
8
|
+
} | {
|
|
9
|
+
showAllItems?: never;
|
|
10
|
+
displayCount?: never;
|
|
11
|
+
};
|
|
2
12
|
export interface BaseSectionItemType {
|
|
3
13
|
description?: string;
|
|
4
14
|
icon?: string;
|
|
@@ -9,11 +19,11 @@ export interface BaseSectionItemType {
|
|
|
9
19
|
title: string;
|
|
10
20
|
type: string;
|
|
11
21
|
}
|
|
12
|
-
export
|
|
22
|
+
export type BaseSectionType<Item extends BaseSectionItemType> = {
|
|
13
23
|
iconSrc?: string;
|
|
14
24
|
iconName?: string;
|
|
15
25
|
id: string;
|
|
16
26
|
items: (Item | BaseSectionType<Item>)[];
|
|
17
27
|
title: string;
|
|
18
|
-
|
|
19
|
-
}
|
|
28
|
+
isCollapsible?: boolean;
|
|
29
|
+
} & PaginationSettings;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface BrowserNotSupportedProps {
|
|
3
|
+
components?: {
|
|
4
|
+
Logo?: React.ComponentType<{
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
supportEmail?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const BrowserNotSupported: ({ components: { Logo }, supportEmail }: BrowserNotSupportedProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default BrowserNotSupported;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { DefaultSectionProps } from '../../common/types';
|
|
2
|
+
export declare const FavoritesSection: (props: DefaultSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
2
3
|
export default FavoritesSection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FavoriteEntity } from '../../common/types';
|
|
1
|
+
import type { DefaultSectionProps, FavoriteEntity } from '../../common/types';
|
|
2
2
|
import type { SectionType } from '../section/types';
|
|
3
|
-
export declare const getFavoritesSectionConfig: (favorites: FavoriteEntity[]) => SectionType;
|
|
3
|
+
export declare const getFavoritesSectionConfig: (favorites: FavoriteEntity[], settings: DefaultSectionProps) => SectionType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HomeAppWorkspaceLogoArea: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { User, WorkspacesConfig, LaunchpadConfig } from '../io-connect-home/types';
|
|
2
|
+
interface HomeAppWorkspaceProps {
|
|
3
|
+
onLogout?: () => void;
|
|
4
|
+
user?: User | null;
|
|
5
|
+
workspaces?: WorkspacesConfig;
|
|
6
|
+
launchpad?: LaunchpadConfig;
|
|
7
|
+
}
|
|
8
|
+
export declare const HomeAppWorkspace: ({ onLogout, user, workspaces, launchpad }: HomeAppWorkspaceProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WorkspaceLogoProps } from '.';
|
|
3
|
+
export declare const WorkspaceComponentsContext: import("react").Context<{
|
|
4
|
+
workspaceLogoProps: WorkspaceLogoProps;
|
|
5
|
+
HeaderLogoArea?: import("react").ComponentType<WorkspaceLogoProps> | undefined;
|
|
6
|
+
} | undefined>;
|
|
7
|
+
export declare const useWorkspaceComponentsContext: () => {
|
|
8
|
+
workspaceLogoProps: WorkspaceLogoProps;
|
|
9
|
+
HeaderLogoArea?: import("react").ComponentType<WorkspaceLogoProps> | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LaunchpadConfig, User } from '../io-connect-home/types';
|
|
3
|
+
export interface WorkspaceLogoProps {
|
|
4
|
+
onLogout?: () => void;
|
|
5
|
+
user?: User | null;
|
|
6
|
+
launchpad?: LaunchpadConfig;
|
|
7
|
+
icon?: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export declare const WorkspaceLogo: (props: WorkspaceLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default WorkspaceLogo;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from './browser-notifications-icon';
|
|
2
|
+
export * from './google-chrome-icon';
|
|
3
|
+
export * from './microsoft-edge-icon';
|
|
4
|
+
export * from './opera-icon';
|
|
2
5
|
export * from './reopen-prompt-icon';
|
|
3
6
|
export * from './warning-icon';
|
|
4
7
|
export * from './window-placement-icon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface InfoCardProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
heading?: string;
|
|
5
|
+
description: string | React.ReactElement;
|
|
6
|
+
Image?: React.ComponentType;
|
|
7
|
+
title?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const InfoCard: ({ children, description, heading, Image, title }: InfoCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default InfoCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface InfoPageContainerProps {
|
|
3
|
+
Logo: React.ComponentType<{
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const InfoPageContainer: ({ className, children, Logo }: InfoPageContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default InfoPageContainer;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IOConnectInitSettings } from '@interopio/react-hooks';
|
|
3
|
+
import { Auth0ProviderOptions } from '@auth0/auth0-react';
|
|
4
|
+
import { WorkspacesProps } from '@interopio/workspaces-ui-react';
|
|
5
|
+
import { LoginPageComponents } from '../login/types';
|
|
6
|
+
import { LaunchpadComponents } from '../launchpad/types';
|
|
7
|
+
import { WorkspaceLogoProps } from '../home-app-workspace';
|
|
8
|
+
export interface User {
|
|
9
|
+
id: string;
|
|
10
|
+
username?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
firstName?: string;
|
|
13
|
+
lastName?: string;
|
|
14
|
+
avatarUrl?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SetupFlowSettings {
|
|
17
|
+
edgeNotificationsPermissionTimeout?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface SetupFlowComponents {
|
|
20
|
+
Logo?: React.ComponentType;
|
|
21
|
+
}
|
|
22
|
+
export interface SetupFlowConfig {
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
components?: SetupFlowComponents;
|
|
25
|
+
settings?: SetupFlowSettings;
|
|
26
|
+
}
|
|
27
|
+
export interface WorkspacesConfig {
|
|
28
|
+
components?: WorkspacesProps['components'];
|
|
29
|
+
HeaderLogoArea?: React.ComponentType<WorkspaceLogoProps>;
|
|
30
|
+
}
|
|
31
|
+
export interface LaunchpadConfig {
|
|
32
|
+
components?: LaunchpadComponents;
|
|
33
|
+
}
|
|
34
|
+
export interface Auth0LoginConfig {
|
|
35
|
+
type: 'auth0';
|
|
36
|
+
providerOptions: Auth0ProviderOptions;
|
|
37
|
+
components?: LoginPageComponents;
|
|
38
|
+
}
|
|
39
|
+
export interface SimpleLoginConfig {
|
|
40
|
+
type: 'simple';
|
|
41
|
+
onLogin: (user: string, password: string) => Promise<User>;
|
|
42
|
+
onLogout?: () => void;
|
|
43
|
+
userInputName?: string;
|
|
44
|
+
components?: LoginPageComponents;
|
|
45
|
+
}
|
|
46
|
+
export type LoginConfig = Auth0LoginConfig | SimpleLoginConfig;
|
|
47
|
+
export interface IOConnectHomeConfig {
|
|
48
|
+
ioConnectConfig: IOConnectInitSettings;
|
|
49
|
+
login?: LoginConfig;
|
|
50
|
+
setupFlow?: SetupFlowConfig;
|
|
51
|
+
workspaces?: WorkspacesConfig;
|
|
52
|
+
launchpad?: LaunchpadConfig;
|
|
53
|
+
}
|
|
54
|
+
export interface IOConnectHomeProps {
|
|
55
|
+
config: IOConnectHomeConfig;
|
|
56
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { User } from '../io-connect-home/types';
|
|
3
|
+
import { LaunchpadComponents } from './types';
|
|
2
4
|
export interface LaunchpadProps extends React.HTMLProps<HTMLDivElement> {
|
|
3
5
|
open: boolean;
|
|
4
6
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
7
|
onLogout?: () => void;
|
|
6
|
-
components?:
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
user?: {
|
|
10
|
-
name?: string;
|
|
11
|
-
};
|
|
8
|
+
components?: LaunchpadComponents;
|
|
9
|
+
user?: User | null;
|
|
12
10
|
}
|
|
13
11
|
export declare function Launchpad(props: LaunchpadProps): import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
export default Launchpad;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface LaunchpadComponentsBasic {
|
|
3
|
+
NotificationsPanel?: React.ComponentType | null;
|
|
4
|
+
UserPanel?: React.ComponentType | null;
|
|
5
|
+
}
|
|
6
|
+
export type LaunchpadComponents = (LaunchpadComponentsBasic & {
|
|
7
|
+
sections?: never;
|
|
8
|
+
Sections?: never;
|
|
9
|
+
}) | (LaunchpadComponentsBasic & {
|
|
10
|
+
sections: React.ReactElement;
|
|
11
|
+
Sections?: never;
|
|
12
|
+
}) | (LaunchpadComponentsBasic & {
|
|
13
|
+
sections?: never;
|
|
14
|
+
Sections: React.ComponentType;
|
|
15
|
+
});
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './loader';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoginPageComponents } from '../types';
|
|
2
|
+
export interface Auth0LoginPageProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
onLogin: () => void;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
components?: LoginPageComponents;
|
|
7
|
+
}
|
|
8
|
+
export declare const Auth0LoginPage: ({ className, onLogin, isLoading, components }: Auth0LoginPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Auth0LoginPage;
|
package/lib/login/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './login-
|
|
3
|
-
export * from './login-
|
|
1
|
+
export * from './logout-page';
|
|
2
|
+
export * from './auth0/auth0-login-form';
|
|
3
|
+
export * from './auth0/auth0-login-page';
|
|
4
|
+
export * from './simple/simple-login-page';
|
|
5
|
+
export * from './simple/simple-login-form';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
export interface LoginHeadingProps {
|
|
3
2
|
className?: string;
|
|
4
3
|
text?: string;
|
|
5
4
|
}
|
|
6
|
-
export declare const LoginHeading:
|
|
5
|
+
export declare const LoginHeading: ({ className, text }: LoginHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
1
|
export interface LogoProps {
|
|
3
2
|
logoSrc?: string;
|
|
4
3
|
width?: string;
|
|
5
4
|
className?: string;
|
|
6
5
|
}
|
|
7
|
-
export declare const LoginLogo:
|
|
6
|
+
export declare const LoginLogo: ({ logoSrc, width, className }: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoginPageComponents } from './types';
|
|
2
|
+
interface LogoutPageProps {
|
|
3
|
+
components?: LoginPageComponents;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const LogoutPage: ({ components, className }: LogoutPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default LogoutPage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SimpleLoginFormProps {
|
|
3
|
+
onLogin: (user: string, password: string) => Promise<void>;
|
|
4
|
+
userInputName?: string;
|
|
5
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
loginError: Error | null;
|
|
7
|
+
setLoginError: React.Dispatch<React.SetStateAction<Error | null>>;
|
|
8
|
+
}
|
|
9
|
+
declare const SimpleLoginForm: ({ onLogin, setIsLoading, loginError, setLoginError, userInputName }: SimpleLoginFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SimpleLoginForm;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LoginPageComponents } from '../types';
|
|
2
|
+
export interface SimpleLoginPageProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
onLogin: (user: string, password: string) => Promise<void>;
|
|
5
|
+
userInputName?: string;
|
|
6
|
+
components?: LoginPageComponents;
|
|
7
|
+
}
|
|
8
|
+
export declare const SimpleLoginPage: ({ className, onLogin, components, userInputName }: SimpleLoginPageProps) => import("react/jsx-runtime").JSX.Element;
|
package/lib/login/types.d.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
export interface LoginDesignProps {
|
|
3
|
-
components?: {
|
|
4
|
-
Logo?: React.ComponentType;
|
|
5
|
-
Heading?: React.ComponentType;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
2
|
export type LoginFormElementReducer = Reducer<LoginFormElementState, LoginFormElementAction>;
|
|
9
3
|
export interface LoginFormElementState {
|
|
10
4
|
value: string;
|
|
11
5
|
isValid: boolean;
|
|
12
|
-
validationError?: string;
|
|
13
6
|
}
|
|
14
7
|
export interface LoginFormElementAction {
|
|
15
|
-
value
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface LoginPageComponents {
|
|
11
|
+
Logo?: React.ComponentType;
|
|
12
|
+
Heading?: React.ComponentType;
|
|
16
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VerifyingCredentials: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { User } from '../io-connect-home/types';
|
|
3
|
+
import { LaunchpadComponents } from '../launchpad/types';
|
|
2
4
|
export interface LaunchpadSlidePanelProps {
|
|
3
|
-
icon
|
|
4
|
-
components?:
|
|
5
|
-
sections?: JSX.Element;
|
|
6
|
-
};
|
|
5
|
+
icon?: React.ReactElement;
|
|
6
|
+
components?: LaunchpadComponents;
|
|
7
7
|
onLogout?: () => void;
|
|
8
|
-
user?:
|
|
9
|
-
name?: string;
|
|
10
|
-
};
|
|
8
|
+
user?: User | null;
|
|
11
9
|
}
|
|
12
10
|
export declare const LaunchpadSlidePanel: (props: LaunchpadSlidePanelProps) => import("react/jsx-runtime").JSX.Element;
|
package/lib/section/section.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLProps } from 'react';
|
|
2
|
+
import { User } from '../io-connect-home/types';
|
|
3
|
+
export interface SupportCardProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
links?: HTMLProps<HTMLAnchorElement>[];
|
|
7
|
+
onLogout?: () => void;
|
|
8
|
+
user?: User | null;
|
|
9
|
+
}
|
|
10
|
+
export declare const SupportCard: ({ title, description, links, onLogout, user }: SupportCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default SupportCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface UserPanelIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
initials: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const UserPanelIcon: (props: UserPanelIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default UserPanelIcon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { User } from '../io-connect-home/types';
|
|
2
|
+
export interface UserPanelProps {
|
|
3
|
+
onLogout?: () => void;
|
|
4
|
+
user?: User | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const UserPanel: ({ onLogout, user }: UserPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default UserPanel;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { DefaultSectionProps } from '../../common/types';
|
|
1
2
|
import type { SectionType } from '../section/types';
|
|
2
3
|
import type { Workspace } from './types';
|
|
3
4
|
export declare const getWorkspacesSectionConfig: (workspaces: Workspace[], runningInstances: {
|
|
4
5
|
[appName: string]: string[];
|
|
5
|
-
}) => SectionType;
|
|
6
|
+
}, settings: DefaultSectionProps) => SectionType;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { DefaultSectionProps } from '../../common/types';
|
|
2
|
+
export declare const WorkspacesSection: (props: DefaultSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
3
|
export default WorkspacesSection;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/home-ui-react",
|
|
3
3
|
"description": "React components for building a Home App for io.Connect Browser.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
7
7
|
"types": "./index.d.ts",
|
|
@@ -18,11 +18,9 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": "18",
|
|
20
20
|
"react-dom": "18",
|
|
21
|
-
"@interopio/
|
|
22
|
-
"@interopio/
|
|
23
|
-
"@interopio/react
|
|
24
|
-
"@interopio/search-api": "2",
|
|
25
|
-
"@interopio/workspaces-api": "3"
|
|
21
|
+
"@interopio/react-hooks": ">=3.0.0",
|
|
22
|
+
"@interopio/workspaces-api": ">=3.0.0",
|
|
23
|
+
"@interopio/workspaces-ui-react": ">=3.0.0"
|
|
26
24
|
},
|
|
27
25
|
"peerDependenciesMeta": {
|
|
28
26
|
"react-dom": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface LoginFormProps {
|
|
3
|
-
email: string;
|
|
4
|
-
password: string;
|
|
5
|
-
errorMessage?: string;
|
|
6
|
-
canSubmit: boolean;
|
|
7
|
-
onSubmit: () => void;
|
|
8
|
-
onChange: (element: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const LoginForm: FC<LoginFormProps>;
|
|
11
|
-
export default LoginForm;
|
package/lib/login/login.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { LoginDesignProps } from './types';
|
|
3
|
-
export interface LoginProps extends LoginDesignProps {
|
|
4
|
-
onLogin: (email: string, password: string) => void;
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
loginErrorMessage?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const Login: FC<LoginProps>;
|