@interopio/home-ui-react 1.0.0 → 1.1.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 +30 -32
- package/common/types.d.ts +1 -1
- package/constants/defaults.d.ts +1 -1
- package/constants/storageKeys.d.ts +0 -1
- package/decoders/context-menu.d.ts +1 -1
- package/decoders/layouts.d.ts +2 -2
- package/executors/applicationActions.d.ts +2 -4
- package/executors/layoutActions.d.ts +4 -0
- package/executors/notificationsSort.d.ts +7 -0
- package/executors/types.d.ts +20 -0
- package/executors/workspaceActions.d.ts +2 -3
- package/helpers/a11y.d.ts +3 -3
- package/hooks/index.d.ts +5 -0
- package/hooks/useApplications.d.ts +2 -2
- package/hooks/useExecuteApplicationAction.d.ts +2 -2
- package/hooks/useExecuteLayoutAction.d.ts +2 -0
- package/hooks/useExecuteWorkspaceAction.d.ts +2 -2
- package/hooks/useFavoriteEntities.d.ts +2 -1
- package/hooks/useFrame.d.ts +2 -2
- package/hooks/useInvokeInteropMethod.d.ts +2 -2
- package/hooks/useLayouts.d.ts +2 -0
- package/hooks/useNotifications.d.ts +2 -0
- package/hooks/useNotificationsSort.d.ts +5 -0
- package/hooks/useRestoreLayout.d.ts +2 -0
- package/hooks/useRestoreWorkspace.d.ts +2 -2
- package/hooks/useSearch.d.ts +2 -2
- package/hooks/useStartApplication.d.ts +1 -1
- package/hooks/useStorage.d.ts +1 -1
- package/hooks/useWorkspaces.d.ts +1 -1
- package/index.css +1 -1
- package/index.d.ts +6 -9
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/index.mjs +2742 -3312
- package/index.mjs.map +1 -1
- package/lib/applications-section/applications-section.d.ts +1 -2
- package/lib/applications-section/helpers.d.ts +5 -0
- package/lib/base-section/base-section-header.d.ts +1 -1
- package/lib/base-section/base-section-item.d.ts +4 -4
- package/lib/base-section/base-section.d.ts +2 -3
- package/lib/base-section/{base-section.helpers.d.ts → helpers.d.ts} +1 -1
- package/lib/base-section/{base-section.types.d.ts → types.d.ts} +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button-group/button-group.d.ts +2 -2
- package/lib/context-menu/constants.d.ts +3 -0
- package/lib/context-menu/context-menu.d.ts +2 -2
- package/lib/context-menu/dropdown-button/dropdown-button.d.ts +2 -3
- package/lib/context-menu/{context-menu-types.d.ts → types.d.ts} +2 -2
- package/lib/dialog/dialog.d.ts +8 -0
- package/lib/favorites-section/favorites-section.d.ts +1 -2
- package/lib/favorites-section/{favorites-section.helpers.d.ts → helpers.d.ts} +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/icon-components/browser-notifications-icon.d.ts +1 -2
- package/lib/icon-components/reopen-prompt-icon.d.ts +1 -2
- package/lib/icon-components/warning-icon.d.ts +1 -2
- package/lib/icon-components/window-placement-icon.d.ts +1 -2
- package/lib/img-icon/img-icon.d.ts +1 -1
- package/lib/{glue42-home-provider/glue42-home-provider.d.ts → io-connect-home-provider/io-connect-home-provider.d.ts} +3 -3
- package/lib/launchpad/features/profile-settings/profile-icon.d.ts +6 -0
- package/lib/launchpad/launchpad.context.d.ts +6 -1
- package/lib/launchpad/launchpad.d.ts +1 -1
- package/lib/layouts-panel/available-layouts.d.ts +6 -0
- package/lib/layouts-panel/constants.d.ts +6 -0
- package/lib/layouts-panel/helpers.d.ts +4 -0
- package/lib/layouts-panel/layout-actions.d.ts +9 -0
- package/lib/layouts-panel/layouts-notification.d.ts +6 -0
- package/lib/layouts-panel/layouts-panel.d.ts +2 -0
- package/lib/layouts-panel/types.d.ts +19 -0
- package/lib/login/index.d.ts +3 -3
- package/lib/login/login-logo.d.ts +1 -1
- package/lib/login/reducers.d.ts +1 -1
- package/lib/login/types.d.ts +1 -1
- package/lib/logo/logo.d.ts +2 -0
- package/lib/notifications-panel/constants.d.ts +9 -0
- package/lib/notifications-panel/index.d.ts +3 -0
- package/lib/notifications-panel/notification.d.ts +6 -0
- package/lib/notifications-panel/notifications-badge.d.ts +5 -0
- package/lib/notifications-panel/notifications-icon.d.ts +6 -0
- package/lib/notifications-panel/notifications-panel.d.ts +1 -2
- package/lib/notifications-panel/types.d.ts +7 -0
- package/lib/panels/launchpad-slide-panel.d.ts +1 -1
- package/lib/panels/slide-panel.d.ts +1 -1
- package/lib/permissions-setup/permissions-card.d.ts +1 -1
- package/lib/permissions-setup/permissions-list.d.ts +2 -3
- package/lib/permissions-setup/permissions-setup-flow.d.ts +1 -2
- package/lib/permissions-setup/permissions-setup.d.ts +1 -1
- package/lib/permissions-setup/permissions-steps.d.ts +1 -2
- package/lib/permissions-setup/something-went-wrong.d.ts +1 -2
- package/lib/permissions-setup/types.d.ts +1 -1
- package/lib/permissions-setup/unsuccessful-setup.d.ts +1 -2
- package/lib/search/search-bar/search-bar.d.ts +1 -1
- package/lib/search/search-results-section/helpers.d.ts +3 -0
- package/lib/search/search-results-section/search-results-section.d.ts +1 -2
- package/lib/search/search-results-section/{search-results-section.types.d.ts → types.d.ts} +4 -4
- package/lib/section/{section.helpers.d.ts → helpers.d.ts} +1 -1
- package/lib/section/section.context.d.ts +1 -1
- package/lib/section/section.d.ts +2 -3
- package/lib/section/{section.types.d.ts → types.d.ts} +1 -1
- package/lib/settings-card/settings-card.d.ts +1 -2
- package/lib/workspaces-section/{workspaces-section.helpers.d.ts → helpers.d.ts} +2 -2
- package/lib/workspaces-section/workspaces-section.d.ts +1 -2
- package/package.json +6 -6
- package/constants/contextMenuActions.d.ts +0 -15
- package/lib/applications-section/applications-section.helpers.d.ts +0 -5
- package/lib/launchpad/features/profile-settings/user-profile-modal.d.ts +0 -10
- package/lib/layout-settings/constants.d.ts +0 -2
- package/lib/layout-settings/index.d.ts +0 -2
- package/lib/layout-settings/layout-actions.d.ts +0 -8
- package/lib/layout-settings/layout-item.d.ts +0 -9
- package/lib/layout-settings/layout-notification.d.ts +0 -7
- package/lib/layout-settings/layout-settings-container.d.ts +0 -3
- package/lib/layout-settings/layout-settings.d.ts +0 -12
- package/lib/layout-settings/layout-startup.d.ts +0 -2
- package/lib/layout-settings/layout-types.d.ts +0 -30
- package/lib/modal/modal.d.ts +0 -9
- package/lib/notifications-panel/notification-toast.d.ts +0 -17
- package/lib/notifications-panel/notifications-modal.d.ts +0 -4
- package/lib/notifications-panel/useNotificationsSort.d.ts +0 -13
- package/lib/search/search-results-section/search-results-section.helpers.d.ts +0 -3
- /package/assets/{glue-logo.json → io-connect-browser-logo.json} +0 -0
- /package/lib/{glue42-home-provider → io-connect-home-provider}/constants.d.ts +0 -0
- /package/lib/{glue42-home-provider → io-connect-home-provider}/helpers.d.ts +0 -0
- /package/lib/{glue42-home-provider → io-connect-home-provider}/types.d.ts +0 -0
- /package/lib/workspaces-section/{workspaces-section.types.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IOConnectBrowser } from '@interopio/browser';
|
|
2
|
+
import { SectionType } from '../section/types';
|
|
3
|
+
export declare const getApplicationsSectionConfig: (applications: IOConnectBrowser.AppManager.Application[], runningInstances: {
|
|
4
|
+
[appName: string]: string[];
|
|
5
|
+
}) => SectionType;
|
|
@@ -4,5 +4,5 @@ interface BaseSectionHeaderProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
4
4
|
iconName?: string;
|
|
5
5
|
title: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const BaseSectionHeader: (props: BaseSectionHeaderProps) => JSX.Element;
|
|
7
|
+
export declare const BaseSectionHeader: (props: BaseSectionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default BaseSectionHeader;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSectionItemType } from './
|
|
3
|
-
import { ContextMenuAction } from '../context-menu/
|
|
2
|
+
import { BaseSectionItemType } from './types';
|
|
3
|
+
import { ContextMenuAction } from '../context-menu/types';
|
|
4
4
|
import { ActivationEvent } from '../../helpers/a11y';
|
|
5
5
|
interface BaseSectionItemProps<Item extends BaseSectionItemType> extends React.HTMLProps<HTMLDivElement> {
|
|
6
6
|
isFavoritismEnabled?: boolean;
|
|
7
7
|
item: Item;
|
|
8
8
|
onClick: (event: ActivationEvent, action?: ContextMenuAction) => void;
|
|
9
|
-
onKeyDown: (
|
|
9
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
10
10
|
focused: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const BaseSectionItem: <Item extends BaseSectionItemType>(props: BaseSectionItemProps<Item>) => JSX.Element;
|
|
12
|
+
export declare const BaseSectionItem: <Item extends BaseSectionItemType>(props: BaseSectionItemProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default BaseSectionItem;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { BaseSectionItemType, BaseSectionType } from './base-section.types';
|
|
1
|
+
import type { BaseSectionItemType, BaseSectionType } from './types';
|
|
3
2
|
import { ActivationEvent } from '../../helpers/a11y';
|
|
4
3
|
interface BaseSectionProps<Item extends BaseSectionItemType> {
|
|
5
4
|
config: BaseSectionType<Item>;
|
|
@@ -11,5 +10,5 @@ interface BaseSectionProps<Item extends BaseSectionItemType> {
|
|
|
11
10
|
selectedContextMenuActionName?: string;
|
|
12
11
|
}) => void;
|
|
13
12
|
}
|
|
14
|
-
export declare const BaseSection: <Item extends BaseSectionItemType>(props: BaseSectionProps<Item>) => JSX.Element;
|
|
13
|
+
export declare const BaseSection: <Item extends BaseSectionItemType>(props: BaseSectionProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default BaseSection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BaseSectionItemType, BaseSectionType } from './
|
|
1
|
+
import type { BaseSectionItemType, BaseSectionType } from './types';
|
|
2
2
|
export declare const isSection: <Item extends BaseSectionItemType>(item: Item | BaseSectionType<Item>) => item is BaseSectionType<Item>;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export interface ButtonProps extends HTMLProps<HTMLButtonElement> {
|
|
|
3
3
|
type?: 'button' | 'submit' | 'reset';
|
|
4
4
|
color?: 'primary' | 'secondary';
|
|
5
5
|
}
|
|
6
|
-
export declare function Button({ children, className, color, ...rest }: ButtonProps): JSX.Element;
|
|
6
|
+
export declare function Button({ children, className, color, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Button;
|
|
@@ -2,7 +2,7 @@ import { HTMLProps } from 'react';
|
|
|
2
2
|
import { ButtonProps } from '../button/button';
|
|
3
3
|
export interface ButtonGroupProps extends HTMLProps<HTMLDivElement> {
|
|
4
4
|
items: ButtonProps[];
|
|
5
|
-
onItemClick?: (
|
|
5
|
+
onItemClick?: (event: React.MouseEvent, props: ButtonProps) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function ButtonGroup(
|
|
7
|
+
export declare function ButtonGroup(props: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default ButtonGroup;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ContextMenuAction } from './
|
|
2
|
+
import { ContextMenuAction } from './types';
|
|
3
3
|
import { ActivationEvent } from '../../helpers/a11y';
|
|
4
4
|
interface ContextMenuProps extends React.HTMLProps<HTMLUListElement> {
|
|
5
5
|
actions: ContextMenuAction[];
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const ContextMenu: import("react").ForwardRefExoticComponent<
|
|
9
|
+
export declare const ContextMenu: import("react").ForwardRefExoticComponent<Omit<ContextMenuProps, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
10
10
|
export default ContextMenu;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { ContextMenuAction } from '../context-menu-types';
|
|
1
|
+
import { ContextMenuAction } from '../types';
|
|
3
2
|
import { ActivationEvent } from 'packages/home-ui-react/src/helpers/a11y';
|
|
4
3
|
export interface DropdownButtonProps {
|
|
5
4
|
iconName: string;
|
|
@@ -8,5 +7,5 @@ export interface DropdownButtonProps {
|
|
|
8
7
|
isTabStop?: boolean;
|
|
9
8
|
onActionItemClick: (event: ActivationEvent, action: ContextMenuAction) => void;
|
|
10
9
|
}
|
|
11
|
-
export declare function DropdownButton(props: DropdownButtonProps): JSX.Element;
|
|
10
|
+
export declare function DropdownButton(props: DropdownButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export default DropdownButton;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IOConnectSearch } from '@interopio/search-api';
|
|
2
2
|
export interface ContextMenuAction {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export interface SearchResultsContextMenuAction extends ContextMenuAction {
|
|
8
|
-
interopParams?:
|
|
8
|
+
interopParams?: IOConnectSearch.MainAction;
|
|
9
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLProps, PropsWithChildren } from 'react';
|
|
2
|
+
interface DialogProps extends HTMLProps<HTMLDialogElement> {
|
|
3
|
+
open: boolean;
|
|
4
|
+
showCloseButton?: boolean;
|
|
5
|
+
closeFn: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Dialog: ({ children, closeFn, open, showCloseButton }: PropsWithChildren<DialogProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Dialog;
|
package/lib/icon/icon.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export interface IconProps extends React.HTMLProps<HTMLSpanElement> {
|
|
|
5
5
|
handleClick?: (e: ActivationEvent<HTMLSpanElement>) => void;
|
|
6
6
|
size?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const Icon: import("react").ForwardRefExoticComponent<
|
|
8
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<Omit<IconProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
9
|
export default Icon;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const BrowserNotificationsIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
export declare const BrowserNotificationsIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default BrowserNotificationsIcon;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ReopenPromptIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
export declare const ReopenPromptIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default ReopenPromptIcon;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const WindowPlacementIcon: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
1
|
+
export declare const WindowPlacementIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
3
2
|
export default WindowPlacementIcon;
|
|
@@ -4,5 +4,5 @@ export interface ImgIconProps extends React.HTMLProps<HTMLImageElement> {
|
|
|
4
4
|
size?: number;
|
|
5
5
|
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
|
6
6
|
}
|
|
7
|
-
export declare function ImgIcon(props: ImgIconProps): JSX.Element;
|
|
7
|
+
export declare function ImgIcon(props: ImgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default ImgIcon;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { HomePermissionStatus } from './types';
|
|
3
|
-
interface
|
|
3
|
+
interface IOConnectHomeProviderProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const useIOConnectHome: () => {
|
|
7
7
|
permission: {
|
|
8
8
|
isDenied: boolean;
|
|
9
9
|
isLoading: boolean;
|
|
@@ -11,5 +11,5 @@ export declare const useGlue42Home: () => {
|
|
|
11
11
|
statuses: HomePermissionStatus[];
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const IOConnectHomeProvider: ({ children }: IOConnectHomeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { LayoutSummary } from '../layouts-panel/types';
|
|
2
3
|
interface LaunchpadAPIProviderProps {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -7,6 +8,10 @@ interface LaunchpadAPIProviderProps {
|
|
|
7
8
|
export declare const useLaunchpadAPI: () => {
|
|
8
9
|
close: () => void;
|
|
9
10
|
isOpen: boolean;
|
|
11
|
+
defaultLayout: LayoutSummary | null;
|
|
12
|
+
selectedLayout: LayoutSummary | null;
|
|
13
|
+
setDefaultLayout: (layout: LayoutSummary) => Promise<void>;
|
|
14
|
+
setSelectedLayout: (layout: LayoutSummary) => void;
|
|
10
15
|
};
|
|
11
|
-
export declare const LaunchpadAPIProvider: ({ children, setOpen, isOpen
|
|
16
|
+
export declare const LaunchpadAPIProvider: ({ children, setOpen, isOpen }: LaunchpadAPIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
17
|
export {};
|
|
@@ -10,5 +10,5 @@ export interface LaunchpadProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
10
10
|
name?: string;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export declare function Launchpad(props: LaunchpadProps): JSX.Element;
|
|
13
|
+
export declare function Launchpad(props: LaunchpadProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default Launchpad;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Layout } from './types';
|
|
2
|
+
import { ContextMenuAction } from '../context-menu/types';
|
|
3
|
+
export declare const createLayoutContextMenuActions: (layout: Layout) => ContextMenuAction[];
|
|
4
|
+
export declare const createActionClickHandler: (callback: () => Promise<unknown> | void) => (event: React.MouseEvent) => Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Notification } from './types';
|
|
3
|
+
interface LayoutActionsProps {
|
|
4
|
+
inputValue: string;
|
|
5
|
+
setNotification: React.Dispatch<React.SetStateAction<Notification | null>>;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const LayoutActions: (props: LayoutActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default LayoutActions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Notification } from './types';
|
|
2
|
+
interface LayoutsNotificationProps extends Notification {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const LayoutsNotification: ({ className, message, type }: LayoutsNotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default LayoutsNotification;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Layout {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
isDefault?: boolean;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type LayoutSummary = Pick<Layout, 'name'>;
|
|
9
|
+
export type ActionType = 'save' | 'restore';
|
|
10
|
+
export interface Action {
|
|
11
|
+
type: ActionType;
|
|
12
|
+
label: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface Notification {
|
|
17
|
+
message: string;
|
|
18
|
+
type: 'success';
|
|
19
|
+
}
|
package/lib/login/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './login';
|
|
2
|
+
export * from './login-loader';
|
|
3
|
+
export * from './login-auth0';
|
package/lib/login/reducers.d.ts
CHANGED
package/lib/login/types.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActiveSort, NotificationSeverity, SortKey } from './types';
|
|
2
|
+
export declare const SEVERITY_ORDER: readonly NotificationSeverity[];
|
|
3
|
+
export declare const SEVERITY_COLORS: {
|
|
4
|
+
[Severity in NotificationSeverity]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const SORT_KEY: {
|
|
7
|
+
[Key in SortKey as Uppercase<Key>]: Key;
|
|
8
|
+
};
|
|
9
|
+
export declare const DEFAULT_SORT: ActiveSort;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IOConnectBrowser } from '@interopio/browser';
|
|
2
|
+
interface NotificationProps {
|
|
3
|
+
notificationData: IOConnectBrowser.Notifications.NotificationData;
|
|
4
|
+
}
|
|
5
|
+
export declare const Notification: (props: NotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Notification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface NotificationsIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
iconSize?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const NotificationsIcon: (props: NotificationsIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default NotificationsIcon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOConnectBrowser } from '@interopio/browser';
|
|
2
|
+
export type SortKey = 'timestamp' | 'severity';
|
|
3
|
+
export type ActiveSort = {
|
|
4
|
+
key: SortKey;
|
|
5
|
+
descending: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type NotificationSeverity = NonNullable<IOConnectBrowser.Notifications.NotificationData['severity']>;
|
|
@@ -9,4 +9,4 @@ export interface LaunchpadSlidePanelProps {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
export declare const LaunchpadSlidePanel: (props: LaunchpadSlidePanelProps) => JSX.Element;
|
|
12
|
+
export declare const LaunchpadSlidePanel: (props: LaunchpadSlidePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface SlidePanelRenderPropsProps {
|
|
|
6
6
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
7
|
}) => React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const SlidePanel: (props: SlidePanelRenderPropsProps) => JSX.Element;
|
|
9
|
+
export declare const SlidePanel: (props: SlidePanelRenderPropsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,5 +6,5 @@ interface PermissionsCardProps {
|
|
|
6
6
|
Image?: React.ComponentType;
|
|
7
7
|
title?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const PermissionsCard: ({ children, description, heading, Image, title }: PermissionsCardProps) => JSX.Element;
|
|
9
|
+
export declare const PermissionsCard: ({ children, description, heading, Image, title }: PermissionsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default PermissionsCard;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import type { HomePermissionStatus } from '../glue42-home-provider/types';
|
|
1
|
+
import type { HomePermissionStatus } from '../io-connect-home-provider/types';
|
|
3
2
|
interface PermissionsListProps {
|
|
4
3
|
isActiveItem?: (name: string) => boolean;
|
|
5
4
|
permissionStatuses: HomePermissionStatus[];
|
|
6
5
|
}
|
|
7
|
-
export declare const PermissionsList: ({ isActiveItem, permissionStatuses }: PermissionsListProps) => JSX.Element;
|
|
6
|
+
export declare const PermissionsList: ({ isActiveItem, permissionStatuses }: PermissionsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default PermissionsList;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface PermissionsSetupFlowProps {
|
|
3
2
|
settings: {
|
|
4
3
|
edgeNotificationsPermissionTimeout: number;
|
|
5
4
|
};
|
|
6
5
|
}
|
|
7
|
-
export declare const PermissionsSetupFlow: ({ settings }: PermissionsSetupFlowProps) => JSX.Element;
|
|
6
|
+
export declare const PermissionsSetupFlow: ({ settings }: PermissionsSetupFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -9,5 +9,5 @@ interface PermissionsSetupProps {
|
|
|
9
9
|
edgeNotificationsPermissionTimeout?: number;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
export declare const PermissionsSetup: ({ components: { Logo }, settings }: PermissionsSetupProps) => JSX.Element;
|
|
12
|
+
export declare const PermissionsSetup: ({ components: { Logo }, settings }: PermissionsSetupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default PermissionsSetup;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface PermissionStepsProps {
|
|
3
2
|
settings: {
|
|
4
3
|
edgeNotificationsPermissionTimeout: number;
|
|
5
4
|
};
|
|
6
5
|
}
|
|
7
|
-
export declare const PermissionSteps: ({ settings }: PermissionStepsProps) => JSX.Element;
|
|
6
|
+
export declare const PermissionSteps: ({ settings }: PermissionStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default PermissionSteps;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface SomethingWentWrongProps {
|
|
3
2
|
onReopenPromptClick: () => void;
|
|
4
3
|
}
|
|
5
|
-
export declare const SomethingWentWrong: ({ onReopenPromptClick }: SomethingWentWrongProps) => JSX.Element;
|
|
4
|
+
export declare const SomethingWentWrong: ({ onReopenPromptClick }: SomethingWentWrongProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { PermissionNames } from './types';
|
|
3
2
|
interface UnsuccessfulSetupProps {
|
|
4
3
|
deniedPermissionName?: PermissionNames;
|
|
5
4
|
}
|
|
6
|
-
export declare const UnsuccessfulSetup: ({ deniedPermissionName }: UnsuccessfulSetupProps) => JSX.Element;
|
|
5
|
+
export declare const UnsuccessfulSetup: ({ deniedPermissionName }: UnsuccessfulSetupProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default UnsuccessfulSetup;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface SearchResultsProps {
|
|
3
2
|
searchTerm: string;
|
|
4
3
|
}
|
|
5
|
-
export declare function SearchResults(props: SearchResultsProps): JSX.Element;
|
|
4
|
+
export declare function SearchResults(props: SearchResultsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default SearchResults;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { BaseSectionItemType, BaseSectionType } from '../../base-section/
|
|
3
|
-
import { SearchResultsContextMenuAction } from '../../context-menu/
|
|
1
|
+
import { IOConnectSearch } from '@interopio/search-api';
|
|
2
|
+
import type { BaseSectionItemType, BaseSectionType } from '../../base-section/types';
|
|
3
|
+
import { SearchResultsContextMenuAction } from '../../context-menu/types';
|
|
4
4
|
export interface SearchResultsSectionItemType extends BaseSectionItemType {
|
|
5
|
-
mainAction?:
|
|
5
|
+
mainAction?: IOConnectSearch.MainAction;
|
|
6
6
|
contextMenuActions?: SearchResultsContextMenuAction[];
|
|
7
7
|
}
|
|
8
8
|
export type SearchResultsSectionType = BaseSectionType<SearchResultsSectionItemType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SectionItemType, SectionType } from './
|
|
1
|
+
import type { SectionItemType, SectionType } from './types';
|
|
2
2
|
export declare const getItemName: (item: SectionItemType) => string;
|
|
3
3
|
export declare const getClickedItem: (items: SectionType['items'], clickedItemName: string) => SectionItemType | undefined;
|
|
@@ -7,5 +7,5 @@ interface ClickDataState {
|
|
|
7
7
|
selectedContextMenuActionName?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const useSection: () => [ClickDataState | null, import("react").Dispatch<import("react").SetStateAction<ClickDataState | null>>];
|
|
10
|
-
export declare const SectionProvider: ({ children }: SectionProviderProps) => JSX.Element;
|
|
10
|
+
export declare const SectionProvider: ({ children }: SectionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|