@interopio/home-ui-react 2.2.8 → 4.2.8-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -57
- package/dist/index.css +2 -2
- package/dist/index.d.ts +419 -25
- package/dist/index.js +17 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12342 -10122
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -18
- package/LICENSE +0 -21
- package/dist/common/sequelizer.d.ts +0 -7
- package/dist/common/types.d.ts +0 -25
- package/dist/common/utils.d.ts +0 -2
- package/dist/constants/alerts.d.ts +0 -8
- package/dist/constants/auth0LoginTypes.d.ts +0 -4
- package/dist/constants/defaults.d.ts +0 -1
- package/dist/constants/dialogs.d.ts +0 -5
- package/dist/constants/itemTypes.d.ts +0 -6
- package/dist/constants/modifierKeys.d.ts +0 -4
- package/dist/constants/platformPrefs.d.ts +0 -13
- package/dist/constants/regex.d.ts +0 -1
- package/dist/constants/sections.d.ts +0 -5
- package/dist/constants/sortOrder.d.ts +0 -5
- package/dist/constants/storageKeys.d.ts +0 -5
- package/dist/decoders/base.d.ts +0 -5
- package/dist/decoders/config.d.ts +0 -3
- package/dist/decoders/layouts.d.ts +0 -3
- package/dist/decoders/platform.d.ts +0 -5
- package/dist/decoders/user.d.ts +0 -3
- package/dist/decoders/validation.d.ts +0 -3
- package/dist/executors/applicationActions.d.ts +0 -4
- package/dist/executors/layoutActions.d.ts +0 -4
- package/dist/executors/setupStepsActions.d.ts +0 -3
- package/dist/executors/types.d.ts +0 -33
- package/dist/executors/workspaceActions.d.ts +0 -4
- package/dist/helpers/a11y.d.ts +0 -22
- package/dist/helpers/alerts.d.ts +0 -9
- package/dist/helpers/sort.d.ts +0 -11
- package/dist/hooks/index.d.ts +0 -29
- package/dist/hooks/useApplications.d.ts +0 -2
- package/dist/hooks/useApplicationsInstances.d.ts +0 -3
- package/dist/hooks/useBeforeunload.d.ts +0 -1
- package/dist/hooks/useExecuteApplicationAction.d.ts +0 -2
- package/dist/hooks/useExecuteLayoutAction.d.ts +0 -5
- package/dist/hooks/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -1
- package/dist/hooks/useExecuteWorkspaceAction.d.ts +0 -2
- package/dist/hooks/useFavorites.d.ts +0 -8
- package/dist/hooks/useFrameId.d.ts +0 -1
- package/dist/hooks/useInvokeInteropMethod.d.ts +0 -2
- package/dist/hooks/useIsHomeLoaded.d.ts +0 -1
- package/dist/hooks/useIsLaunchpadCollapsed.d.ts +0 -9
- package/dist/hooks/useIsLaunchpadPinned.d.ts +0 -8
- package/dist/hooks/useIsRunningInDesktopContainer.d.ts +0 -1
- package/dist/hooks/useLayouts.d.ts +0 -5
- package/dist/hooks/useNotifications.d.ts +0 -2
- package/dist/hooks/useNotificationsConfiguration.d.ts +0 -3
- package/dist/hooks/useOnIframeFocus.d.ts +0 -6
- package/dist/hooks/useOnOutsideClick.d.ts +0 -9
- package/dist/hooks/usePlatformWindow.d.ts +0 -5
- package/dist/hooks/usePressedKeys.d.ts +0 -1
- package/dist/hooks/useRestoreLayout.d.ts +0 -2
- package/dist/hooks/useRestoreWorkspace.d.ts +0 -5
- package/dist/hooks/useSearch.d.ts +0 -5
- package/dist/hooks/useStartApplication.d.ts +0 -7
- package/dist/hooks/useStorage.d.ts +0 -4
- package/dist/hooks/useUA.d.ts +0 -2
- package/dist/hooks/useWorkspaces.d.ts +0 -2
- package/dist/hooks/useWorkspacesInstances.d.ts +0 -3
- package/dist/lib/applications-section/applications-section.d.ts +0 -3
- package/dist/lib/applications-section/helpers.d.ts +0 -5
- package/dist/lib/applications-section/types.d.ts +0 -9
- package/dist/lib/base-section/base-section-header.d.ts +0 -8
- package/dist/lib/base-section/base-section-item.d.ts +0 -14
- package/dist/lib/base-section/base-section.d.ts +0 -14
- package/dist/lib/base-section/helpers.d.ts +0 -2
- package/dist/lib/base-section/types.d.ts +0 -20
- package/dist/lib/base-section/useCollapsedSections.d.ts +0 -4
- package/dist/lib/context-menu/constants.d.ts +0 -11
- package/dist/lib/context-menu/context-menu.d.ts +0 -11
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -24
- package/dist/lib/context-menu/types.d.ts +0 -13
- package/dist/lib/default-header-system-buttons/constants.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +0 -2
- package/dist/lib/favorites-section/favorites-section.d.ts +0 -3
- package/dist/lib/favorites-section/helpers.d.ts +0 -3
- package/dist/lib/home-app-workspace/after-tabs.d.ts +0 -3
- package/dist/lib/home-app-workspace/constants.d.ts +0 -2
- package/dist/lib/home-app-workspace/group-header-buttons.d.ts +0 -3
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +0 -12
- package/dist/lib/home-app-workspace/index.d.ts +0 -1
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +0 -6
- package/dist/lib/home-app-workspace/no-logo.d.ts +0 -2
- package/dist/lib/home-app-workspace/types.d.ts +0 -3
- package/dist/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -1
- package/dist/lib/home-app-workspace/workspace-components-context.d.ts +0 -11
- package/dist/lib/icon-components/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/popups-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/pwa-install-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/window-management-icon.d.ts +0 -2
- package/dist/lib/icon-components/reopen-prompt-icon.d.ts +0 -2
- package/dist/lib/icon-components/start-failed-icon.d.ts +0 -2
- package/dist/lib/icon-components/warning-icon.d.ts +0 -2
- package/dist/lib/info-card/info-card.d.ts +0 -10
- package/dist/lib/info-page-container/info-page-container.d.ts +0 -9
- package/dist/lib/io-connect-home/auth0-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/home-app.d.ts +0 -2
- package/dist/lib/io-connect-home/io-connect-home.d.ts +0 -2
- package/dist/lib/io-connect-home/no-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/simple-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/types.d.ts +0 -131
- package/dist/lib/io-connect-home/useUser.d.ts +0 -8
- package/dist/lib/io-connect-home-provider/constants.d.ts +0 -5
- package/dist/lib/io-connect-home-provider/helpers.d.ts +0 -2
- package/dist/lib/io-connect-home-provider/io-connect-home-provider.d.ts +0 -16
- package/dist/lib/io-connect-home-provider/types.d.ts +0 -8
- package/dist/lib/io-init-error-screen/io-init-error-screen.d.ts +0 -3
- package/dist/lib/launchpad/constants.d.ts +0 -2
- package/dist/lib/launchpad/helpers.d.ts +0 -4
- package/dist/lib/launchpad/launchpad-body.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-config.context.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-contents-container.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-header.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-pin-button.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-search.context.d.ts +0 -11
- package/dist/lib/launchpad/launchpad.context.d.ts +0 -21
- package/dist/lib/launchpad/launchpad.d.ts +0 -10
- package/dist/lib/layouts-panel/active-layout.d.ts +0 -2
- package/dist/lib/layouts-panel/all-layouts.d.ts +0 -2
- package/dist/lib/layouts-panel/constants.d.ts +0 -8
- package/dist/lib/layouts-panel/create-layout-button.d.ts +0 -2
- package/dist/lib/layouts-panel/helpers.d.ts +0 -3
- package/dist/lib/layouts-panel/layouts-dropdown.d.ts +0 -6
- package/dist/lib/layouts-panel/layouts-list.d.ts +0 -7
- package/dist/lib/layouts-panel/layouts-panel.d.ts +0 -2
- package/dist/lib/layouts-panel/save-layout-button.d.ts +0 -5
- package/dist/lib/layouts-panel/types.d.ts +0 -8
- package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +0 -9
- package/dist/lib/login/auth0/auth0-login-page.d.ts +0 -13
- package/dist/lib/login/constants.d.ts +0 -1
- package/dist/lib/login/index.d.ts +0 -3
- package/dist/lib/login/login-heading.d.ts +0 -1
- package/dist/lib/login/login-logo.d.ts +0 -6
- package/dist/lib/login/login-page-container.d.ts +0 -7
- package/dist/lib/login/simple/reducers.d.ts +0 -2
- package/dist/lib/login/simple/simple-login-form.d.ts +0 -10
- package/dist/lib/login/simple/simple-login-page.d.ts +0 -11
- package/dist/lib/login/types.d.ts +0 -9
- package/dist/lib/notifications-panel-button/notifications-badge.d.ts +0 -2
- package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +0 -5
- package/dist/lib/notifications-panels/notification-settings-panel.d.ts +0 -9
- package/dist/lib/notifications-panels/notifications-panel-with-toggle-button.d.ts +0 -3
- package/dist/lib/notifications-panels/notifications-panel.d.ts +0 -10
- package/dist/lib/panels/launchpad/launchpad-button.d.ts +0 -6
- package/dist/lib/panels/launchpad/launchpad-panel.d.ts +0 -2
- package/dist/lib/panels/panel-with-toggle-button.d.ts +0 -11
- package/dist/lib/panels/panel-wrapper.d.ts +0 -10
- package/dist/lib/panels/types.d.ts +0 -9
- package/dist/lib/platform-setup/constants.d.ts +0 -12
- package/dist/lib/platform-setup/platform-setup.d.ts +0 -15
- package/dist/lib/platform-setup/reducers.d.ts +0 -7
- package/dist/lib/platform-setup/setup-steps-list.d.ts +0 -8
- package/dist/lib/platform-setup/setup-steps.d.ts +0 -7
- package/dist/lib/platform-setup/types.d.ts +0 -32
- package/dist/lib/platform-setup/use-edge-notifications-permission.d.ts +0 -6
- package/dist/lib/preferences-panel/preferences-panel.d.ts +0 -2
- package/dist/lib/profile-panel/profile-panel.d.ts +0 -9
- package/dist/lib/search/search-bar/search-bar.d.ts +0 -8
- package/dist/lib/search/search-results-section/search-results-section.d.ts +0 -5
- package/dist/lib/search/search-results-section/types.d.ts +0 -8
- package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +0 -1
- package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +0 -3
- package/dist/lib/section/helpers.d.ts +0 -3
- package/dist/lib/section/section.context.d.ts +0 -11
- package/dist/lib/section/section.d.ts +0 -11
- package/dist/lib/section/types.d.ts +0 -8
- package/dist/lib/spinner/index.d.ts +0 -1
- package/dist/lib/spinner/spinner.d.ts +0 -2
- package/dist/lib/system-loader/system-loader.d.ts +0 -6
- package/dist/lib/system-menu/helpers.d.ts +0 -3
- package/dist/lib/system-menu/system-menu.d.ts +0 -6
- package/dist/lib/system-menu/types.d.ts +0 -8
- package/dist/lib/workspaces-section/constants.d.ts +0 -3
- package/dist/lib/workspaces-section/helpers.d.ts +0 -6
- package/dist/lib/workspaces-section/types.d.ts +0 -4
- package/dist/lib/workspaces-section/workspaces-section.d.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,419 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { Auth0ProviderOptions } from '@auth0/auth0-react';
|
|
2
|
+
import { IconProps } from '@interopio/components-react';
|
|
3
|
+
import { IOActivePanelRenderer } from '@interopio/components-react';
|
|
4
|
+
import { IOConnectInitSettings } from '@interopio/react-hooks';
|
|
5
|
+
import { IODownloadManager } from '@interopio/components-react';
|
|
6
|
+
import { IONotifications } from '@interopio/components-react';
|
|
7
|
+
import { IOPreferencesDesktop } from '@interopio/components-react';
|
|
8
|
+
import { IOProfile } from '@interopio/components-react';
|
|
9
|
+
import type { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
10
|
+
import { PlatformPrefsProvider } from '@interopio/components-react';
|
|
11
|
+
import { default as React_2 } from 'react';
|
|
12
|
+
import { SetStateAction } from 'react';
|
|
13
|
+
import { usePlatformPref } from '@interopio/components-react';
|
|
14
|
+
import { usePlatformPrefs } from '@interopio/components-react';
|
|
15
|
+
import { User as User_2 } from '@auth0/auth0-react';
|
|
16
|
+
import { WorkspacesProps } from '@interopio/workspaces-ui-react';
|
|
17
|
+
|
|
18
|
+
export declare function ApplicationsSection(props: ApplicationsSectionProps): JSX_2.Element;
|
|
19
|
+
|
|
20
|
+
declare type ApplicationsSectionProps = {
|
|
21
|
+
isFolderCollapsible?: boolean;
|
|
22
|
+
folderIconGetters?: {
|
|
23
|
+
[key: string]: (isOpen: boolean) => string;
|
|
24
|
+
};
|
|
25
|
+
} & DefaultSectionProps;
|
|
26
|
+
|
|
27
|
+
declare const AUTH0_LOGIN_TYPES: {
|
|
28
|
+
readonly POPUP: "popup";
|
|
29
|
+
readonly REDIRECT: "redirect";
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export declare interface Auth0LoginConfig {
|
|
33
|
+
type: "auth0";
|
|
34
|
+
validateUser?: ValidateUser;
|
|
35
|
+
loginType?: LoginType;
|
|
36
|
+
providerOptions: Auth0LoginProviderOptions;
|
|
37
|
+
components?: LoginPageComponents;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare type Auth0LoginProviderOptions = Auth0ProviderOptions;
|
|
41
|
+
|
|
42
|
+
export declare interface Auth0User extends User_2 {
|
|
43
|
+
id: string;
|
|
44
|
+
token: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare type Auth0ValidationError = {
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare interface BaseSectionItemType {
|
|
52
|
+
description?: string;
|
|
53
|
+
icon?: IconProps["variant"];
|
|
54
|
+
iconSrc?: string;
|
|
55
|
+
id: string;
|
|
56
|
+
openInstances?: number;
|
|
57
|
+
contextMenuActions?: ContextMenuAction[];
|
|
58
|
+
title: string;
|
|
59
|
+
type: string;
|
|
60
|
+
tooltip?: string;
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare type BaseSectionType<Item extends BaseSectionItemType> = {
|
|
65
|
+
id: string;
|
|
66
|
+
items: (Item | BaseSectionType<Item>)[];
|
|
67
|
+
title: string;
|
|
68
|
+
isCollapsible?: boolean;
|
|
69
|
+
getIcon?: (isOpen: boolean) => string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
declare interface ContextMenuAction {
|
|
73
|
+
name: string;
|
|
74
|
+
displayName?: string;
|
|
75
|
+
icon?: IconProps["variant"];
|
|
76
|
+
iconSrc?: string;
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
separatorAfter?: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare interface CustomLoginConfig {
|
|
82
|
+
type: "custom";
|
|
83
|
+
onLogout: () => void;
|
|
84
|
+
user: CustomUser;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare interface CustomUser {
|
|
88
|
+
id: string;
|
|
89
|
+
username: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare type DefaultSectionProps = {
|
|
93
|
+
isSectionCollapsible?: boolean;
|
|
94
|
+
sortOrder?: SortOrder;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
declare type Favorite = Omit<SectionItemType, "openInstances">;
|
|
98
|
+
|
|
99
|
+
export declare const FavoritesSection: (props: DefaultSectionProps) => JSX_2.Element | null;
|
|
100
|
+
|
|
101
|
+
export { IOActivePanelRenderer }
|
|
102
|
+
|
|
103
|
+
export declare const IOConnectHome: ({ config }: IOConnectHomeProps) => JSX_2.Element;
|
|
104
|
+
|
|
105
|
+
export declare type IOConnectHomeComponents = {
|
|
106
|
+
SystemLoader?: React_2.ComponentType<{
|
|
107
|
+
text?: string;
|
|
108
|
+
}>;
|
|
109
|
+
IOInitErrorScreen?: React_2.ComponentType<{
|
|
110
|
+
errorMessage?: string;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export declare interface IOConnectHomeConfig {
|
|
115
|
+
getIOConnectConfig: (userData: UserData) => IOConnectInitSettings;
|
|
116
|
+
login?: LoginConfig;
|
|
117
|
+
setupFlow?: SetupFlowConfig;
|
|
118
|
+
workspaces?: WorkspacesConfig;
|
|
119
|
+
launchpad?: LaunchpadConfig;
|
|
120
|
+
components?: IOConnectHomeComponents;
|
|
121
|
+
settings?: IOConnectHomeSettings;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare interface IOConnectHomeProps {
|
|
125
|
+
config: IOConnectHomeConfig;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export declare type IOConnectHomeSettings = {
|
|
129
|
+
isBeforeunloadDialogEnabled?: boolean;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export { IODownloadManager }
|
|
133
|
+
|
|
134
|
+
export { IONotifications }
|
|
135
|
+
|
|
136
|
+
export { IOPreferencesDesktop }
|
|
137
|
+
|
|
138
|
+
export { IOProfile }
|
|
139
|
+
|
|
140
|
+
export declare const Launchpad: (props: LaunchpadProps) => JSX_2.Element;
|
|
141
|
+
|
|
142
|
+
export declare const LaunchpadAccess: ({ Button }: LaunchpadAccessProps) => JSX_2.Element;
|
|
143
|
+
|
|
144
|
+
export declare interface LaunchpadAccessProps {
|
|
145
|
+
Button?: React.ComponentType<PanelButtonProps>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export declare const LaunchpadBody: ({ className }: LaunchpadBodyProps) => JSX_2.Element;
|
|
149
|
+
|
|
150
|
+
declare interface LaunchpadBodyProps {
|
|
151
|
+
className?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export declare interface LaunchpadComponents {
|
|
155
|
+
header?: LaunchpadHeaderComponents;
|
|
156
|
+
sections?: LaunchpadSection[];
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare interface LaunchpadConfig {
|
|
160
|
+
components?: LaunchpadComponents;
|
|
161
|
+
settings?: LaunchpadSettings;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export declare const LaunchpadContentsContainer: ({ settings, components, isOpen, onClose, windowManagementPermissionState, children, className, ...rest }: LaunchpadContentsContainerProps) => JSX_2.Element;
|
|
165
|
+
|
|
166
|
+
declare interface LaunchpadContentsContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
167
|
+
settings?: LaunchpadSettings;
|
|
168
|
+
components?: LaunchpadComponents;
|
|
169
|
+
isOpen?: boolean;
|
|
170
|
+
onClose?: () => void;
|
|
171
|
+
windowManagementPermissionState?: PermissionState;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export declare const LaunchpadHeader: ({ className }: LaunchpadHeaderProps) => JSX_2.Element | null;
|
|
175
|
+
|
|
176
|
+
export declare interface LaunchpadHeaderComponents {
|
|
177
|
+
BeforeSearch?: React_2.ComponentType | null;
|
|
178
|
+
AfterSearch?: React_2.ComponentType | null;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare interface LaunchpadHeaderProps {
|
|
182
|
+
className?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export declare interface LaunchpadHeaderSettings {
|
|
186
|
+
showHeader?: boolean;
|
|
187
|
+
showSearch?: boolean;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export declare type LaunchpadMode = "pinned" | "default";
|
|
191
|
+
|
|
192
|
+
export declare const LaunchpadPinButton: ({ className }: LaunchpadPinButtonProps) => JSX_2.Element;
|
|
193
|
+
|
|
194
|
+
declare interface LaunchpadPinButtonProps {
|
|
195
|
+
className?: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export declare interface LaunchpadProps extends React.HTMLProps<HTMLDivElement> {
|
|
199
|
+
isOpen?: boolean;
|
|
200
|
+
onClose?: () => void;
|
|
201
|
+
settings?: LaunchpadSettings;
|
|
202
|
+
components?: LaunchpadComponents;
|
|
203
|
+
windowManagementPermissionState?: PermissionState;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare interface LaunchpadSection {
|
|
207
|
+
Component: React_2.ComponentType;
|
|
208
|
+
placementId: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export declare interface LaunchpadSettings {
|
|
212
|
+
header?: LaunchpadHeaderSettings;
|
|
213
|
+
mode?: LaunchpadMode;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export declare type LoginConfig = Auth0LoginConfig | SimpleLoginConfig | CustomLoginConfig;
|
|
217
|
+
|
|
218
|
+
export declare interface LoginPageComponents {
|
|
219
|
+
Logo?: React_2.ComponentType;
|
|
220
|
+
Heading?: React_2.ComponentType;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export declare type LoginType = (typeof AUTH0_LOGIN_TYPES)[keyof typeof AUTH0_LOGIN_TYPES];
|
|
224
|
+
|
|
225
|
+
export declare const NotificationSettingsPanel: ({ className, components, onClose, title }: NotificationsSettingsPanelProps) => JSX_2.Element;
|
|
226
|
+
|
|
227
|
+
export declare const NotificationsPanel: ({ className, components, onClose, settings, title }: NotificationsPanelProps) => JSX_2.Element;
|
|
228
|
+
|
|
229
|
+
export declare const NotificationsPanelButton: (props: NotificationsPanelButtonProps) => JSX_2.Element;
|
|
230
|
+
|
|
231
|
+
declare interface NotificationsPanelButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
232
|
+
active: boolean;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare interface NotificationsPanelProps {
|
|
236
|
+
className?: string;
|
|
237
|
+
components?: IONotifications.PanelProps["components"];
|
|
238
|
+
settings?: IONotifications.PanelProps["settings"];
|
|
239
|
+
onClose: () => void;
|
|
240
|
+
title?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export declare const NotificationsPanelWithToggleButton: ({ Button, Panel, position, ...rest }: Partial<Omit<PanelWithToggleButtonProps, "onClose">>) => JSX_2.Element;
|
|
244
|
+
|
|
245
|
+
declare interface NotificationsSettingsPanelProps {
|
|
246
|
+
className?: string;
|
|
247
|
+
components?: IONotifications.SettingsPanelProps["components"];
|
|
248
|
+
onClose: () => void;
|
|
249
|
+
title?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare interface PanelButtonProps {
|
|
253
|
+
active: boolean;
|
|
254
|
+
onClick: () => void;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare type PanelPosition = "left" | "right";
|
|
258
|
+
|
|
259
|
+
declare interface PanelProps {
|
|
260
|
+
isOpen: boolean;
|
|
261
|
+
onClose: () => void;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export declare const PanelWithToggleButton: (props: PanelWithToggleButtonProps) => JSX_2.Element;
|
|
265
|
+
|
|
266
|
+
export declare interface PanelWithToggleButtonProps {
|
|
267
|
+
Button: React.ComponentType<PanelButtonProps>;
|
|
268
|
+
Panel: React.ComponentType<PanelProps>;
|
|
269
|
+
panelWrapperClassName?: string;
|
|
270
|
+
pinned?: boolean;
|
|
271
|
+
position?: PanelPosition;
|
|
272
|
+
tag?: React.ElementType;
|
|
273
|
+
onClose?: () => void | Promise<void>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export { PlatformPrefsProvider }
|
|
277
|
+
|
|
278
|
+
export declare const PreferencesPanel: any;
|
|
279
|
+
|
|
280
|
+
export declare const ProfilePanel: ({ className, components, onClose, title }: ProfilePanelProps) => JSX_2.Element;
|
|
281
|
+
|
|
282
|
+
declare interface ProfilePanelProps {
|
|
283
|
+
className?: string;
|
|
284
|
+
components?: IOProfile.PanelProps["components"];
|
|
285
|
+
onClose: () => void;
|
|
286
|
+
title?: string;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare const Section: ({ config, onItemClick }: SectionProps) => JSX_2.Element;
|
|
290
|
+
|
|
291
|
+
export declare type SectionItemClickedType = {
|
|
292
|
+
item: SectionItemType;
|
|
293
|
+
modifier: string | null;
|
|
294
|
+
selectedContextMenuActionName?: string;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export declare type SectionItemType = BaseSectionItemType;
|
|
298
|
+
|
|
299
|
+
export declare interface SectionProps {
|
|
300
|
+
config: SectionType;
|
|
301
|
+
onItemClick?: (params: {
|
|
302
|
+
item: SectionItemType;
|
|
303
|
+
modifier: string | null;
|
|
304
|
+
selectedContextMenuActionName?: string;
|
|
305
|
+
}) => void;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export declare type SectionType = BaseSectionType<SectionItemType>;
|
|
309
|
+
|
|
310
|
+
export declare interface SetupFlowComponents {
|
|
311
|
+
Logo?: React_2.ComponentType;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export declare interface SetupFlowConfig {
|
|
315
|
+
enabled?: boolean;
|
|
316
|
+
components?: SetupFlowComponents;
|
|
317
|
+
settings?: SetupFlowSettings;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export declare interface SetupFlowSettings {
|
|
321
|
+
edgeNotificationsPermissionTimeout?: number;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export declare interface SimpleLoginConfig {
|
|
325
|
+
type: "simple";
|
|
326
|
+
onLogin: (user: string, password: string) => Promise<User>;
|
|
327
|
+
onLogout?: () => void;
|
|
328
|
+
userInputName?: string;
|
|
329
|
+
components?: LoginPageComponents;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare const SORT_ORDER: {
|
|
333
|
+
readonly ASCENDING: "ascending";
|
|
334
|
+
readonly DESCENDING: "descending";
|
|
335
|
+
readonly DISABLED: "disabled";
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
declare type SortOrder = (typeof SORT_ORDER)[keyof typeof SORT_ORDER];
|
|
339
|
+
|
|
340
|
+
export declare const SystemLoader: ({ Logo, text }: SystemLoaderProps) => JSX_2.Element;
|
|
341
|
+
|
|
342
|
+
export declare interface SystemLoaderProps {
|
|
343
|
+
Logo?: React.ComponentType;
|
|
344
|
+
text?: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export declare const SystemMenu: ({ actions, panelWrapperClassName }: SystemMenuProps) => JSX_2.Element;
|
|
348
|
+
|
|
349
|
+
declare type SystemMenuAction = ContextMenuAction & {
|
|
350
|
+
onClick: (openPanel: (Panel: SystemMenuPanel) => void) => void;
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
declare type SystemMenuPanel = React.ComponentType<{
|
|
354
|
+
className: string;
|
|
355
|
+
onClose: () => void;
|
|
356
|
+
}>;
|
|
357
|
+
|
|
358
|
+
export declare interface SystemMenuProps {
|
|
359
|
+
actions: SystemMenuAction[];
|
|
360
|
+
panelWrapperClassName?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export declare const useFavorites: () => {
|
|
364
|
+
favorites: Favorite[];
|
|
365
|
+
toggleFavorite: (item: SectionItemType) => Promise<void>;
|
|
366
|
+
removeFavorite: (item: SectionItemType) => Promise<void>;
|
|
367
|
+
isLoading: boolean;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export declare const useIsLaunchpadCollapsed: () => {
|
|
371
|
+
error: {
|
|
372
|
+
message: string;
|
|
373
|
+
} | undefined;
|
|
374
|
+
isLaunchpadCollapsed: boolean | undefined;
|
|
375
|
+
setIsLaunchpadCollapsed: (value: SetStateAction<boolean | undefined>) => Promise<void>;
|
|
376
|
+
isLoading: boolean;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
export { usePlatformPref }
|
|
380
|
+
|
|
381
|
+
export { usePlatformPrefs }
|
|
382
|
+
|
|
383
|
+
export declare interface User {
|
|
384
|
+
id: string;
|
|
385
|
+
username?: string;
|
|
386
|
+
email?: string;
|
|
387
|
+
firstName?: string;
|
|
388
|
+
lastName?: string;
|
|
389
|
+
token?: string;
|
|
390
|
+
password?: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export declare type UserData = {
|
|
394
|
+
type: "auth0";
|
|
395
|
+
user: Auth0User;
|
|
396
|
+
} | {
|
|
397
|
+
type: "custom";
|
|
398
|
+
user?: CustomUser;
|
|
399
|
+
} | {
|
|
400
|
+
type: "simple";
|
|
401
|
+
user: User;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
export declare type ValidateUser = (auth0User: User_2) => ValidationResult;
|
|
405
|
+
|
|
406
|
+
declare type ValidationResult = {
|
|
407
|
+
ok: true;
|
|
408
|
+
} | {
|
|
409
|
+
ok: false;
|
|
410
|
+
message: string;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
export declare interface WorkspacesConfig {
|
|
414
|
+
components?: WorkspacesProps["components"];
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export declare const WorkspacesSection: (props: DefaultSectionProps) => JSX_2.Element;
|
|
418
|
+
|
|
419
|
+
export { }
|