@interopio/home-ui-react 1.1.1 → 1.2.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.
Files changed (84) hide show
  1. package/common/types.d.ts +8 -0
  2. package/constants/sortOrder.d.ts +5 -0
  3. package/constants/storageKeys.d.ts +3 -2
  4. package/decoders/base.d.ts +2 -0
  5. package/decoders/config.d.ts +3 -0
  6. package/decoders/user.d.ts +3 -0
  7. package/helpers/sort.d.ts +11 -0
  8. package/hooks/useIsBrowserSupported.d.ts +1 -0
  9. package/index.css +1 -1
  10. package/index.d.ts +12 -8
  11. package/index.js +17 -12
  12. package/index.js.map +1 -1
  13. package/index.mjs +6401 -4615
  14. package/index.mjs.map +1 -1
  15. package/lib/applications-section/applications-section.d.ts +2 -1
  16. package/lib/applications-section/helpers.d.ts +2 -1
  17. package/lib/applications-section/types.d.ts +4 -0
  18. package/lib/base-section/base-section-header.d.ts +3 -0
  19. package/lib/base-section/base-section.d.ts +1 -1
  20. package/lib/base-section/types.d.ts +13 -3
  21. package/lib/browser-not-supported/additional-information.d.ts +5 -0
  22. package/lib/browser-not-supported/browser-not-supported.d.ts +11 -0
  23. package/lib/browser-not-supported/constants.d.ts +6 -0
  24. package/lib/favorites-section/favorites-section.d.ts +2 -1
  25. package/lib/favorites-section/helpers.d.ts +2 -2
  26. package/lib/home-app-workspace/after-tabs.d.ts +3 -0
  27. package/lib/home-app-workspace/group-header-buttons.d.ts +3 -0
  28. package/lib/home-app-workspace/home-app-workspace-logo-area.d.ts +1 -0
  29. package/lib/home-app-workspace/home-app-workspace.d.ts +9 -0
  30. package/lib/home-app-workspace/index.d.ts +2 -0
  31. package/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +1 -0
  32. package/lib/home-app-workspace/workspace-components-context.d.ts +10 -0
  33. package/lib/home-app-workspace/workspace-logo.d.ts +10 -0
  34. package/lib/icon-components/google-chrome-icon.d.ts +2 -0
  35. package/lib/icon-components/index.d.ts +3 -0
  36. package/lib/icon-components/microsoft-edge-icon.d.ts +2 -0
  37. package/lib/icon-components/opera-icon.d.ts +2 -0
  38. package/lib/info-card/info-card.d.ts +10 -0
  39. package/lib/info-page-container/info-page-container.d.ts +10 -0
  40. package/lib/io-connect-home/auth0-login-home.d.ts +8 -0
  41. package/lib/io-connect-home/helpers.d.ts +2 -0
  42. package/lib/io-connect-home/home-app.d.ts +2 -0
  43. package/lib/io-connect-home/io-connect-home.d.ts +2 -0
  44. package/lib/io-connect-home/no-login-home.d.ts +2 -0
  45. package/lib/io-connect-home/simple-login-home.d.ts +8 -0
  46. package/lib/io-connect-home/types.d.ts +56 -0
  47. package/lib/launchpad/default-sections.d.ts +2 -0
  48. package/lib/launchpad/launchpad.d.ts +4 -6
  49. package/lib/launchpad/types.d.ts +16 -0
  50. package/lib/layouts-panel/types.d.ts +1 -0
  51. package/lib/loader/index.d.ts +1 -0
  52. package/lib/loader/loader.d.ts +2 -0
  53. package/lib/login/auth0/auth0-login-form.d.ts +4 -0
  54. package/lib/login/auth0/auth0-login-page.d.ts +9 -0
  55. package/lib/login/index.d.ts +5 -3
  56. package/lib/login/login-heading.d.ts +1 -2
  57. package/lib/login/login-logo.d.ts +1 -2
  58. package/lib/login/logout-page.d.ts +7 -0
  59. package/lib/login/simple/reducers.d.ts +2 -0
  60. package/lib/login/simple/simple-login-form.d.ts +10 -0
  61. package/lib/login/simple/simple-login-page.d.ts +8 -0
  62. package/lib/login/types.d.ts +5 -8
  63. package/lib/login/verifying-credentials.d.ts +1 -0
  64. package/lib/panels/launchpad-slide-panel.d.ts +5 -7
  65. package/lib/panels/slide-panel.d.ts +1 -1
  66. package/lib/section/section.d.ts +1 -1
  67. package/lib/user-panel/support-card.d.ts +11 -0
  68. package/lib/user-panel/user-details-card.d.ts +6 -0
  69. package/lib/user-panel/user-panel-icon.d.ts +6 -0
  70. package/lib/user-panel/user-panel.d.ts +7 -0
  71. package/lib/workspaces-section/helpers.d.ts +2 -1
  72. package/lib/workspaces-section/workspaces-section.d.ts +2 -1
  73. package/package.json +4 -6
  74. package/lib/launchpad/features/profile-settings/profile-icon.d.ts +0 -6
  75. package/lib/launchpad/features/profile-settings/profile-settings.d.ts +0 -9
  76. package/lib/login/login-auth0.d.ts +0 -6
  77. package/lib/login/login-form.d.ts +0 -11
  78. package/lib/login/login-loader.d.ts +0 -3
  79. package/lib/login/login.d.ts +0 -8
  80. package/lib/login/reducers.d.ts +0 -3
  81. package/lib/permissions-setup/permissions-card.d.ts +0 -10
  82. package/lib/profile-details-card/profile-details-card.d.ts +0 -8
  83. package/lib/support-card/support-card.d.ts +0 -9
  84. /package/lib/{settings-card → user-panel}/settings-card.d.ts +0 -0
@@ -1,2 +1,3 @@
1
- export declare function ApplicationsSection(): import("react/jsx-runtime").JSX.Element;
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;
@@ -0,0 +1,4 @@
1
+ import { DefaultSectionProps } from '../../common/types';
2
+ export type ApplicationsSectionProps = {
3
+ isFolderCollapsible?: boolean;
4
+ } & DefaultSectionProps;
@@ -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 interface BaseSectionType<Item extends BaseSectionItemType> {
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
- displayCount?: number;
19
- }
28
+ isCollapsible?: boolean;
29
+ } & PaginationSettings;
@@ -0,0 +1,5 @@
1
+ interface AdditionalInformationProps {
2
+ supportEmail?: string;
3
+ }
4
+ export declare const AdditionalInformation: ({ supportEmail }: AdditionalInformationProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default AdditionalInformation;
@@ -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;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const RECOMMENDED_BROWSERS: {
3
+ name: string;
4
+ Image: React.ComponentType;
5
+ url: string;
6
+ }[];
@@ -1,2 +1,3 @@
1
- export declare const FavoritesSection: () => import("react/jsx-runtime").JSX.Element | null;
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,3 @@
1
+ import { GroupHeaderComponentProps } from '@interopio/workspaces-ui-react/dist/cjs/types/api';
2
+ export declare const AfterTabs: ({ groupId, workspaceId }: GroupHeaderComponentProps) => false | import("react/jsx-runtime").JSX.Element;
3
+ export default AfterTabs;
@@ -0,0 +1,3 @@
1
+ import { GroupHeaderButtonsProps } from '@interopio/workspaces-ui-react';
2
+ export declare const HeaderButtons: (props: GroupHeaderButtonsProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default HeaderButtons;
@@ -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,2 @@
1
+ export * from './workspace-logo';
2
+ export * from './home-app-workspace';
@@ -0,0 +1 @@
1
+ export declare function useAddWindowButtonVisible(workspaceId: string, groupId: string): boolean;
@@ -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;
@@ -0,0 +1,2 @@
1
+ export declare const GoogleChromeIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export default GoogleChromeIcon;
@@ -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,2 @@
1
+ export declare const MicrosoftEdgeIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export default MicrosoftEdgeIcon;
@@ -0,0 +1,2 @@
1
+ export declare const OperaIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export default OperaIcon;
@@ -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,2 @@
1
+ import { IOConnectInitSettings } from '@interopio/react-hooks';
2
+ export declare const getIOConnectProviderSettings: (ioConnectConfig: IOConnectInitSettings, username: string) => IOConnectInitSettings;
@@ -0,0 +1,2 @@
1
+ import { IOConnectHomeProps } from './types';
2
+ export declare const HomeApp: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IOConnectHomeProps } from './types';
2
+ export declare const IOConnectHome: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IOConnectHomeProps } from './types';
2
+ export declare const NoLoginHome: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export declare const DefaultSections: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DefaultSections;
@@ -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
- sections?: JSX.Element;
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 {};
@@ -12,6 +12,7 @@ export interface Action {
12
12
  label: string;
13
13
  disabled?: boolean;
14
14
  onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
15
+ testId?: string;
15
16
  }
16
17
  export interface Notification {
17
18
  message: string;
@@ -0,0 +1 @@
1
+ export * from './loader';
@@ -0,0 +1,2 @@
1
+ export declare const Loader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Loader;
@@ -0,0 +1,4 @@
1
+ export interface Auth0LoginFormProps {
2
+ onLogin: () => void;
3
+ }
4
+ export declare const Auth0LoginForm: ({ onLogin }: Auth0LoginFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -1,3 +1,5 @@
1
- export * from './login';
2
- export * from './login-loader';
3
- export * from './login-auth0';
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: FC<LoginHeadingProps>;
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: FC<LogoProps>;
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,2 @@
1
+ import { LoginFormElementReducer } from '../types';
2
+ export declare const inputReducer: LoginFormElementReducer;
@@ -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;
@@ -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?: string;
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: JSX.Element;
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;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export interface SlidePanelRenderPropsProps {
3
- icon: JSX.Element;
3
+ icon: React.ReactElement;
4
4
  children: (props: {
5
5
  open: boolean;
6
6
  setOpen: React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,5 +1,5 @@
1
1
  import type { SectionItemType, SectionType } from './types';
2
- interface SectionProps {
2
+ export interface SectionProps {
3
3
  config: SectionType;
4
4
  onItemClick?: (params: {
5
5
  item: SectionItemType;
@@ -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
+ import { User } from '../io-connect-home/types';
2
+ export interface UserDetailsCardProps {
3
+ user?: User | null;
4
+ }
5
+ export declare const UserDetailsCard: ({ user }: UserDetailsCardProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default UserDetailsCard;
@@ -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
- export declare const WorkspacesSection: () => import("react/jsx-runtime").JSX.Element;
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.1.1",
4
+ "version": "1.2.1",
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/desktop": "6",
22
- "@interopio/browser": "3",
23
- "@interopio/react-hooks": "3",
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,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface ProfileIconProps extends React.HTMLAttributes<HTMLDivElement> {
3
- initials: string;
4
- }
5
- export declare const ProfileIcon: (props: ProfileIconProps) => import("react/jsx-runtime").JSX.Element;
6
- export default ProfileIcon;
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- export interface ProfileSettingsProps {
3
- onLogout?: () => void;
4
- user?: {
5
- name?: string;
6
- };
7
- }
8
- export declare const ProfileSettings: FC<ProfileSettingsProps>;
9
- export default ProfileSettings;
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { LoginDesignProps } from './types';
3
- export interface LoginAuth0Props extends LoginDesignProps {
4
- onLogin: () => void;
5
- }
6
- export declare const LoginAuth0: FC<LoginAuth0Props>;
@@ -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;