@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.
Files changed (189) hide show
  1. package/README.md +81 -57
  2. package/dist/index.css +2 -2
  3. package/dist/index.d.ts +419 -25
  4. package/dist/index.js +17 -21
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +12342 -10122
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +25 -18
  9. package/LICENSE +0 -21
  10. package/dist/common/sequelizer.d.ts +0 -7
  11. package/dist/common/types.d.ts +0 -25
  12. package/dist/common/utils.d.ts +0 -2
  13. package/dist/constants/alerts.d.ts +0 -8
  14. package/dist/constants/auth0LoginTypes.d.ts +0 -4
  15. package/dist/constants/defaults.d.ts +0 -1
  16. package/dist/constants/dialogs.d.ts +0 -5
  17. package/dist/constants/itemTypes.d.ts +0 -6
  18. package/dist/constants/modifierKeys.d.ts +0 -4
  19. package/dist/constants/platformPrefs.d.ts +0 -13
  20. package/dist/constants/regex.d.ts +0 -1
  21. package/dist/constants/sections.d.ts +0 -5
  22. package/dist/constants/sortOrder.d.ts +0 -5
  23. package/dist/constants/storageKeys.d.ts +0 -5
  24. package/dist/decoders/base.d.ts +0 -5
  25. package/dist/decoders/config.d.ts +0 -3
  26. package/dist/decoders/layouts.d.ts +0 -3
  27. package/dist/decoders/platform.d.ts +0 -5
  28. package/dist/decoders/user.d.ts +0 -3
  29. package/dist/decoders/validation.d.ts +0 -3
  30. package/dist/executors/applicationActions.d.ts +0 -4
  31. package/dist/executors/layoutActions.d.ts +0 -4
  32. package/dist/executors/setupStepsActions.d.ts +0 -3
  33. package/dist/executors/types.d.ts +0 -33
  34. package/dist/executors/workspaceActions.d.ts +0 -4
  35. package/dist/helpers/a11y.d.ts +0 -22
  36. package/dist/helpers/alerts.d.ts +0 -9
  37. package/dist/helpers/sort.d.ts +0 -11
  38. package/dist/hooks/index.d.ts +0 -29
  39. package/dist/hooks/useApplications.d.ts +0 -2
  40. package/dist/hooks/useApplicationsInstances.d.ts +0 -3
  41. package/dist/hooks/useBeforeunload.d.ts +0 -1
  42. package/dist/hooks/useExecuteApplicationAction.d.ts +0 -2
  43. package/dist/hooks/useExecuteLayoutAction.d.ts +0 -5
  44. package/dist/hooks/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -1
  45. package/dist/hooks/useExecuteWorkspaceAction.d.ts +0 -2
  46. package/dist/hooks/useFavorites.d.ts +0 -8
  47. package/dist/hooks/useFrameId.d.ts +0 -1
  48. package/dist/hooks/useInvokeInteropMethod.d.ts +0 -2
  49. package/dist/hooks/useIsHomeLoaded.d.ts +0 -1
  50. package/dist/hooks/useIsLaunchpadCollapsed.d.ts +0 -9
  51. package/dist/hooks/useIsLaunchpadPinned.d.ts +0 -8
  52. package/dist/hooks/useIsRunningInDesktopContainer.d.ts +0 -1
  53. package/dist/hooks/useLayouts.d.ts +0 -5
  54. package/dist/hooks/useNotifications.d.ts +0 -2
  55. package/dist/hooks/useNotificationsConfiguration.d.ts +0 -3
  56. package/dist/hooks/useOnIframeFocus.d.ts +0 -6
  57. package/dist/hooks/useOnOutsideClick.d.ts +0 -9
  58. package/dist/hooks/usePlatformWindow.d.ts +0 -5
  59. package/dist/hooks/usePressedKeys.d.ts +0 -1
  60. package/dist/hooks/useRestoreLayout.d.ts +0 -2
  61. package/dist/hooks/useRestoreWorkspace.d.ts +0 -5
  62. package/dist/hooks/useSearch.d.ts +0 -5
  63. package/dist/hooks/useStartApplication.d.ts +0 -7
  64. package/dist/hooks/useStorage.d.ts +0 -4
  65. package/dist/hooks/useUA.d.ts +0 -2
  66. package/dist/hooks/useWorkspaces.d.ts +0 -2
  67. package/dist/hooks/useWorkspacesInstances.d.ts +0 -3
  68. package/dist/lib/applications-section/applications-section.d.ts +0 -3
  69. package/dist/lib/applications-section/helpers.d.ts +0 -5
  70. package/dist/lib/applications-section/types.d.ts +0 -9
  71. package/dist/lib/base-section/base-section-header.d.ts +0 -8
  72. package/dist/lib/base-section/base-section-item.d.ts +0 -14
  73. package/dist/lib/base-section/base-section.d.ts +0 -14
  74. package/dist/lib/base-section/helpers.d.ts +0 -2
  75. package/dist/lib/base-section/types.d.ts +0 -20
  76. package/dist/lib/base-section/useCollapsedSections.d.ts +0 -4
  77. package/dist/lib/context-menu/constants.d.ts +0 -11
  78. package/dist/lib/context-menu/context-menu.d.ts +0 -11
  79. package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -24
  80. package/dist/lib/context-menu/types.d.ts +0 -13
  81. package/dist/lib/default-header-system-buttons/constants.d.ts +0 -2
  82. package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +0 -2
  83. package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +0 -2
  84. package/dist/lib/favorites-section/favorites-section.d.ts +0 -3
  85. package/dist/lib/favorites-section/helpers.d.ts +0 -3
  86. package/dist/lib/home-app-workspace/after-tabs.d.ts +0 -3
  87. package/dist/lib/home-app-workspace/constants.d.ts +0 -2
  88. package/dist/lib/home-app-workspace/group-header-buttons.d.ts +0 -3
  89. package/dist/lib/home-app-workspace/home-app-workspace.d.ts +0 -12
  90. package/dist/lib/home-app-workspace/index.d.ts +0 -1
  91. package/dist/lib/home-app-workspace/launchpad-access.d.ts +0 -6
  92. package/dist/lib/home-app-workspace/no-logo.d.ts +0 -2
  93. package/dist/lib/home-app-workspace/types.d.ts +0 -3
  94. package/dist/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -1
  95. package/dist/lib/home-app-workspace/workspace-components-context.d.ts +0 -11
  96. package/dist/lib/icon-components/index.d.ts +0 -4
  97. package/dist/lib/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -2
  98. package/dist/lib/icon-components/platform-setup/index.d.ts +0 -4
  99. package/dist/lib/icon-components/platform-setup/popups-icon.d.ts +0 -2
  100. package/dist/lib/icon-components/platform-setup/pwa-install-icon.d.ts +0 -2
  101. package/dist/lib/icon-components/platform-setup/window-management-icon.d.ts +0 -2
  102. package/dist/lib/icon-components/reopen-prompt-icon.d.ts +0 -2
  103. package/dist/lib/icon-components/start-failed-icon.d.ts +0 -2
  104. package/dist/lib/icon-components/warning-icon.d.ts +0 -2
  105. package/dist/lib/info-card/info-card.d.ts +0 -10
  106. package/dist/lib/info-page-container/info-page-container.d.ts +0 -9
  107. package/dist/lib/io-connect-home/auth0-login-home.d.ts +0 -8
  108. package/dist/lib/io-connect-home/home-app.d.ts +0 -2
  109. package/dist/lib/io-connect-home/io-connect-home.d.ts +0 -2
  110. package/dist/lib/io-connect-home/no-login-home.d.ts +0 -8
  111. package/dist/lib/io-connect-home/simple-login-home.d.ts +0 -8
  112. package/dist/lib/io-connect-home/types.d.ts +0 -131
  113. package/dist/lib/io-connect-home/useUser.d.ts +0 -8
  114. package/dist/lib/io-connect-home-provider/constants.d.ts +0 -5
  115. package/dist/lib/io-connect-home-provider/helpers.d.ts +0 -2
  116. package/dist/lib/io-connect-home-provider/io-connect-home-provider.d.ts +0 -16
  117. package/dist/lib/io-connect-home-provider/types.d.ts +0 -8
  118. package/dist/lib/io-init-error-screen/io-init-error-screen.d.ts +0 -3
  119. package/dist/lib/launchpad/constants.d.ts +0 -2
  120. package/dist/lib/launchpad/helpers.d.ts +0 -4
  121. package/dist/lib/launchpad/launchpad-body.d.ts +0 -5
  122. package/dist/lib/launchpad/launchpad-config.context.d.ts +0 -10
  123. package/dist/lib/launchpad/launchpad-contents-container.d.ts +0 -10
  124. package/dist/lib/launchpad/launchpad-header.d.ts +0 -5
  125. package/dist/lib/launchpad/launchpad-pin-button.d.ts +0 -5
  126. package/dist/lib/launchpad/launchpad-search.context.d.ts +0 -11
  127. package/dist/lib/launchpad/launchpad.context.d.ts +0 -21
  128. package/dist/lib/launchpad/launchpad.d.ts +0 -10
  129. package/dist/lib/layouts-panel/active-layout.d.ts +0 -2
  130. package/dist/lib/layouts-panel/all-layouts.d.ts +0 -2
  131. package/dist/lib/layouts-panel/constants.d.ts +0 -8
  132. package/dist/lib/layouts-panel/create-layout-button.d.ts +0 -2
  133. package/dist/lib/layouts-panel/helpers.d.ts +0 -3
  134. package/dist/lib/layouts-panel/layouts-dropdown.d.ts +0 -6
  135. package/dist/lib/layouts-panel/layouts-list.d.ts +0 -7
  136. package/dist/lib/layouts-panel/layouts-panel.d.ts +0 -2
  137. package/dist/lib/layouts-panel/save-layout-button.d.ts +0 -5
  138. package/dist/lib/layouts-panel/types.d.ts +0 -8
  139. package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +0 -9
  140. package/dist/lib/login/auth0/auth0-login-page.d.ts +0 -13
  141. package/dist/lib/login/constants.d.ts +0 -1
  142. package/dist/lib/login/index.d.ts +0 -3
  143. package/dist/lib/login/login-heading.d.ts +0 -1
  144. package/dist/lib/login/login-logo.d.ts +0 -6
  145. package/dist/lib/login/login-page-container.d.ts +0 -7
  146. package/dist/lib/login/simple/reducers.d.ts +0 -2
  147. package/dist/lib/login/simple/simple-login-form.d.ts +0 -10
  148. package/dist/lib/login/simple/simple-login-page.d.ts +0 -11
  149. package/dist/lib/login/types.d.ts +0 -9
  150. package/dist/lib/notifications-panel-button/notifications-badge.d.ts +0 -2
  151. package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +0 -5
  152. package/dist/lib/notifications-panels/notification-settings-panel.d.ts +0 -9
  153. package/dist/lib/notifications-panels/notifications-panel-with-toggle-button.d.ts +0 -3
  154. package/dist/lib/notifications-panels/notifications-panel.d.ts +0 -10
  155. package/dist/lib/panels/launchpad/launchpad-button.d.ts +0 -6
  156. package/dist/lib/panels/launchpad/launchpad-panel.d.ts +0 -2
  157. package/dist/lib/panels/panel-with-toggle-button.d.ts +0 -11
  158. package/dist/lib/panels/panel-wrapper.d.ts +0 -10
  159. package/dist/lib/panels/types.d.ts +0 -9
  160. package/dist/lib/platform-setup/constants.d.ts +0 -12
  161. package/dist/lib/platform-setup/platform-setup.d.ts +0 -15
  162. package/dist/lib/platform-setup/reducers.d.ts +0 -7
  163. package/dist/lib/platform-setup/setup-steps-list.d.ts +0 -8
  164. package/dist/lib/platform-setup/setup-steps.d.ts +0 -7
  165. package/dist/lib/platform-setup/types.d.ts +0 -32
  166. package/dist/lib/platform-setup/use-edge-notifications-permission.d.ts +0 -6
  167. package/dist/lib/preferences-panel/preferences-panel.d.ts +0 -2
  168. package/dist/lib/profile-panel/profile-panel.d.ts +0 -9
  169. package/dist/lib/search/search-bar/search-bar.d.ts +0 -8
  170. package/dist/lib/search/search-results-section/search-results-section.d.ts +0 -5
  171. package/dist/lib/search/search-results-section/types.d.ts +0 -8
  172. package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +0 -2
  173. package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +0 -2
  174. package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +0 -1
  175. package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +0 -3
  176. package/dist/lib/section/helpers.d.ts +0 -3
  177. package/dist/lib/section/section.context.d.ts +0 -11
  178. package/dist/lib/section/section.d.ts +0 -11
  179. package/dist/lib/section/types.d.ts +0 -8
  180. package/dist/lib/spinner/index.d.ts +0 -1
  181. package/dist/lib/spinner/spinner.d.ts +0 -2
  182. package/dist/lib/system-loader/system-loader.d.ts +0 -6
  183. package/dist/lib/system-menu/helpers.d.ts +0 -3
  184. package/dist/lib/system-menu/system-menu.d.ts +0 -6
  185. package/dist/lib/system-menu/types.d.ts +0 -8
  186. package/dist/lib/workspaces-section/constants.d.ts +0 -3
  187. package/dist/lib/workspaces-section/helpers.d.ts +0 -6
  188. package/dist/lib/workspaces-section/types.d.ts +0 -4
  189. 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,4 +0,0 @@
1
- export declare const useCollapsedSections: () => {
2
- collapsedSections: string[] | undefined;
3
- toggleSection: (path: string) => Promise<void>;
4
- };
@@ -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,2 +0,0 @@
1
- import { SystemMenuAction } from "../system-menu/types";
2
- export declare const defaultSystemMenuActions: SystemMenuAction[];
@@ -1,2 +0,0 @@
1
- export declare const DefaultHeaderSystemButtons: () => import("react/jsx-runtime").JSX.Element;
2
- export default DefaultHeaderSystemButtons;
@@ -1,2 +0,0 @@
1
- export declare const DefaultHeaderSystemMenu: () => import("react/jsx-runtime").JSX.Element;
2
- export default DefaultHeaderSystemMenu;
@@ -1,3 +0,0 @@
1
- import { DefaultSectionProps } from "../../common/types";
2
- export declare const FavoritesSection: (props: DefaultSectionProps) => import("react/jsx-runtime").JSX.Element | null;
3
- export default FavoritesSection;
@@ -1,3 +0,0 @@
1
- import type { DefaultSectionProps, Favorite } from "../../common/types";
2
- import type { SectionType } from "../section/types";
3
- export declare const getFavoritesSectionConfig: (favorites: Favorite[], settings: DefaultSectionProps) => SectionType;
@@ -1,3 +0,0 @@
1
- import { AfterTabsComponentProps } from "@interopio/workspaces-ui-react";
2
- export declare const AfterTabs: ({ groupId, workspaceId }: AfterTabsComponentProps) => false | import("react/jsx-runtime").JSX.Element;
3
- export default AfterTabs;
@@ -1,2 +0,0 @@
1
- import { LaunchpadSettings } from "../io-connect-home/types";
2
- export declare const DEFAULT_LAUNCHPAD_SETTINGS: Readonly<LaunchpadSettings>;
@@ -1,3 +0,0 @@
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;
@@ -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,2 +0,0 @@
1
- export declare const NoLogo: () => null;
2
- export default NoLogo;
@@ -1,3 +0,0 @@
1
- export interface PlatformWindow {
2
- name: string;
3
- }
@@ -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,4 +0,0 @@
1
- export * from "./platform-setup";
2
- export * from "./reopen-prompt-icon";
3
- export * from "./start-failed-icon";
4
- export * from "./warning-icon";
@@ -1,2 +0,0 @@
1
- export declare const BrowserNotificationsIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default BrowserNotificationsIcon;
@@ -1,4 +0,0 @@
1
- export * from "./browser-notifications-icon";
2
- export * from "./popups-icon";
3
- export * from "./pwa-install-icon";
4
- export * from "./window-management-icon";
@@ -1,2 +0,0 @@
1
- export declare const PopupsIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default PopupsIcon;
@@ -1,2 +0,0 @@
1
- export declare const PWAInstallIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default PWAInstallIcon;
@@ -1,2 +0,0 @@
1
- export declare const WindowManagementIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default WindowManagementIcon;
@@ -1,2 +0,0 @@
1
- export declare const ReopenPromptIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default ReopenPromptIcon;
@@ -1,2 +0,0 @@
1
- export declare const StartFailedIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default StartFailedIcon;
@@ -1,2 +0,0 @@
1
- export declare const WarningIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
- export default WarningIcon;
@@ -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,2 +0,0 @@
1
- import { IOConnectHomeProps } from "./types";
2
- export declare const HomeApp: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { IOConnectHomeProps } from "./types";
2
- export declare const IOConnectHome: ({ config }: IOConnectHomeProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,5 +0,0 @@
1
- export declare const PERMISSION_NAMES: {
2
- readonly WINDOW_MANAGEMENT: "window-management";
3
- readonly NOTIFICATIONS: "notifications";
4
- };
5
- export declare const IS_GLOBAL_LAYOUT_SUPPORTED: boolean;
@@ -1,2 +0,0 @@
1
- import type { HomePermissionStatus } from "./types";
2
- export declare const getPermissionStatuses: () => Promise<HomePermissionStatus[]>;
@@ -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,3 +0,0 @@
1
- export declare const IOInitErrorScreen: ({ errorMessage }: {
2
- errorMessage: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { LaunchpadSection } from "../io-connect-home/types";
2
- export declare const DEFAULT_SECTIONS: LaunchpadSection[];
@@ -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,5 +0,0 @@
1
- interface LaunchpadBodyProps {
2
- className?: string;
3
- }
4
- export declare const LaunchpadBody: ({ className }: LaunchpadBodyProps) => import("react/jsx-runtime").JSX.Element;
5
- export default LaunchpadBody;
@@ -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,5 +0,0 @@
1
- interface LaunchpadHeaderProps {
2
- className?: string;
3
- }
4
- export declare const LaunchpadHeader: ({ className }: LaunchpadHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
5
- export default LaunchpadHeader;
@@ -1,5 +0,0 @@
1
- interface LaunchpadPinButtonProps {
2
- className?: string;
3
- }
4
- export declare const LaunchpadPinButton: ({ className }: LaunchpadPinButtonProps) => import("react/jsx-runtime").JSX.Element;
5
- export default LaunchpadPinButton;
@@ -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,2 +0,0 @@
1
- export declare const ActiveLayout: () => import("react/jsx-runtime").JSX.Element;
2
- export default ActiveLayout;
@@ -1,2 +0,0 @@
1
- export declare const AllLayouts: () => import("react/jsx-runtime").JSX.Element;
2
- export default AllLayouts;
@@ -1,8 +0,0 @@
1
- export declare const LAYOUT_ACTIONS_NAMES: {
2
- readonly RENAME: "rename";
3
- readonly SAVE: "save";
4
- readonly SAVE_AS: "saveAs";
5
- readonly DELETE: "delete";
6
- readonly SET_AS_DEFAULT: "setAsDefault";
7
- readonly LOAD: "load";
8
- };
@@ -1,2 +0,0 @@
1
- export declare const CreateLayoutButton: () => import("react/jsx-runtime").JSX.Element;
2
- export default CreateLayoutButton;
@@ -1,3 +0,0 @@
1
- import { Layout } from "./types";
2
- import { ContextMenuAction } from "../context-menu/types";
3
- export declare const createLayoutContextMenuActions: (layout: Layout) => ContextMenuAction[];
@@ -1,6 +0,0 @@
1
- import { Layout } from "./types";
2
- interface LayoutsDropdownProps {
3
- layout: Layout;
4
- }
5
- export declare const LayoutsDropdown: ({ layout }: LayoutsDropdownProps) => import("react/jsx-runtime").JSX.Element;
6
- export default LayoutsDropdown;
@@ -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;
@@ -1,2 +0,0 @@
1
- export declare const LayoutsPanel: () => import("react/jsx-runtime").JSX.Element;
2
- export default LayoutsPanel;
@@ -1,5 +0,0 @@
1
- interface SaveLayoutButtonProps {
2
- layoutName: string;
3
- }
4
- export declare const SaveLayoutButton: ({ layoutName }: SaveLayoutButtonProps) => import("react/jsx-runtime").JSX.Element;
5
- export default SaveLayoutButton;