@interopio/home-ui-react 4.2.8-next.0 → 4.4.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/dist/index.css +9 -9
- package/dist/index.d.ts +38 -155
- package/dist/index.js +33 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12251 -13606
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
import { Auth0ProviderOptions } from '@auth0/auth0-react';
|
|
2
|
-
import {
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { HomeContextMenuAction } from '@interopio/components-react';
|
|
3
4
|
import { IOActivePanelRenderer } from '@interopio/components-react';
|
|
4
5
|
import { IOConnectInitSettings } from '@interopio/react-hooks';
|
|
5
6
|
import { IODownloadManager } from '@interopio/components-react';
|
|
7
|
+
import { IOLaunchpad } from '@interopio/components-react';
|
|
6
8
|
import { IONotifications } from '@interopio/components-react';
|
|
9
|
+
import { IOPreferencesBrowser } from '@interopio/components-react';
|
|
7
10
|
import { IOPreferencesDesktop } from '@interopio/components-react';
|
|
8
11
|
import { IOProfile } from '@interopio/components-react';
|
|
9
|
-
import
|
|
12
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
10
13
|
import { PlatformPrefsProvider } from '@interopio/components-react';
|
|
11
|
-
import { default as React_2 } from 'react';
|
|
12
|
-
import { SetStateAction } from 'react';
|
|
13
14
|
import { usePlatformPref } from '@interopio/components-react';
|
|
14
15
|
import { usePlatformPrefs } from '@interopio/components-react';
|
|
15
16
|
import { User as User_2 } from '@auth0/auth0-react';
|
|
16
17
|
import { WorkspacesProps } from '@interopio/workspaces-ui-react';
|
|
17
18
|
|
|
18
|
-
export declare
|
|
19
|
-
|
|
20
|
-
declare type ApplicationsSectionProps = {
|
|
21
|
-
isFolderCollapsible?: boolean;
|
|
22
|
-
folderIconGetters?: {
|
|
23
|
-
[key: string]: (isOpen: boolean) => string;
|
|
24
|
-
};
|
|
25
|
-
} & DefaultSectionProps;
|
|
19
|
+
export declare const ApplicationsSection: typeof IOLaunchpad.ApplicationsSection;
|
|
26
20
|
|
|
27
21
|
declare const AUTH0_LOGIN_TYPES: {
|
|
28
22
|
readonly POPUP: "popup";
|
|
@@ -48,36 +42,6 @@ export declare type Auth0ValidationError = {
|
|
|
48
42
|
message: string;
|
|
49
43
|
};
|
|
50
44
|
|
|
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
45
|
export declare interface CustomLoginConfig {
|
|
82
46
|
type: "custom";
|
|
83
47
|
onLogout: () => void;
|
|
@@ -89,24 +53,17 @@ export declare interface CustomUser {
|
|
|
89
53
|
username: string;
|
|
90
54
|
}
|
|
91
55
|
|
|
92
|
-
declare
|
|
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;
|
|
56
|
+
export declare const FavoritesSection: typeof IOLaunchpad.FavoritesSection;
|
|
100
57
|
|
|
101
58
|
export { IOActivePanelRenderer }
|
|
102
59
|
|
|
103
60
|
export declare const IOConnectHome: ({ config }: IOConnectHomeProps) => JSX_2.Element;
|
|
104
61
|
|
|
105
62
|
export declare type IOConnectHomeComponents = {
|
|
106
|
-
SystemLoader?:
|
|
63
|
+
SystemLoader?: default_2.ComponentType<{
|
|
107
64
|
text?: string;
|
|
108
65
|
}>;
|
|
109
|
-
IOInitErrorScreen?:
|
|
66
|
+
IOInitErrorScreen?: default_2.ComponentType<{
|
|
110
67
|
errorMessage?: string;
|
|
111
68
|
}>;
|
|
112
69
|
};
|
|
@@ -137,7 +94,7 @@ export { IOPreferencesDesktop }
|
|
|
137
94
|
|
|
138
95
|
export { IOProfile }
|
|
139
96
|
|
|
140
|
-
export declare const Launchpad:
|
|
97
|
+
export declare const Launchpad: typeof IOLaunchpad.Panel;
|
|
141
98
|
|
|
142
99
|
export declare const LaunchpadAccess: ({ Button }: LaunchpadAccessProps) => JSX_2.Element;
|
|
143
100
|
|
|
@@ -145,79 +102,34 @@ export declare interface LaunchpadAccessProps {
|
|
|
145
102
|
Button?: React.ComponentType<PanelButtonProps>;
|
|
146
103
|
}
|
|
147
104
|
|
|
148
|
-
export declare const LaunchpadBody:
|
|
149
|
-
|
|
150
|
-
declare interface LaunchpadBodyProps {
|
|
151
|
-
className?: string;
|
|
152
|
-
}
|
|
105
|
+
export declare const LaunchpadBody: typeof IOLaunchpad.Body;
|
|
153
106
|
|
|
154
|
-
export declare
|
|
155
|
-
header?: LaunchpadHeaderComponents;
|
|
156
|
-
sections?: LaunchpadSection[];
|
|
157
|
-
}
|
|
107
|
+
export declare type LaunchpadComponents = IOLaunchpad.LaunchpadComponents;
|
|
158
108
|
|
|
159
109
|
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;
|
|
110
|
+
components?: IOLaunchpad.LaunchpadComponents;
|
|
111
|
+
settings?: IOLaunchpad.LaunchpadSettings;
|
|
172
112
|
}
|
|
173
113
|
|
|
174
|
-
export declare const
|
|
114
|
+
export declare const LaunchpadContentsContainer: typeof IOLaunchpad.ContentsContainer;
|
|
175
115
|
|
|
176
|
-
export declare
|
|
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
|
-
}
|
|
116
|
+
export declare const LaunchpadHeader: typeof IOLaunchpad.Header;
|
|
189
117
|
|
|
190
|
-
export declare type
|
|
118
|
+
export declare type LaunchpadHeaderComponents = IOLaunchpad.LaunchpadHeaderComponents;
|
|
191
119
|
|
|
192
|
-
export declare
|
|
120
|
+
export declare type LaunchpadHeaderSettings = IOLaunchpad.LaunchpadHeaderSettings;
|
|
193
121
|
|
|
194
|
-
declare
|
|
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
|
-
}
|
|
122
|
+
export declare const LaunchpadPinButton: typeof IOLaunchpad.PinButton;
|
|
205
123
|
|
|
206
|
-
export declare
|
|
207
|
-
Component: React_2.ComponentType;
|
|
208
|
-
placementId: string;
|
|
209
|
-
}
|
|
124
|
+
export declare type LaunchpadSection = IOLaunchpad.LaunchpadSection;
|
|
210
125
|
|
|
211
|
-
export declare
|
|
212
|
-
header?: LaunchpadHeaderSettings;
|
|
213
|
-
mode?: LaunchpadMode;
|
|
214
|
-
}
|
|
126
|
+
export declare type LaunchpadSettings = IOLaunchpad.LaunchpadSettings;
|
|
215
127
|
|
|
216
128
|
export declare type LoginConfig = Auth0LoginConfig | SimpleLoginConfig | CustomLoginConfig;
|
|
217
129
|
|
|
218
130
|
export declare interface LoginPageComponents {
|
|
219
|
-
Logo?:
|
|
220
|
-
Heading?:
|
|
131
|
+
Logo?: default_2.ComponentType;
|
|
132
|
+
Heading?: default_2.ComponentType;
|
|
221
133
|
}
|
|
222
134
|
|
|
223
135
|
export declare type LoginType = (typeof AUTH0_LOGIN_TYPES)[keyof typeof AUTH0_LOGIN_TYPES];
|
|
@@ -256,7 +168,9 @@ declare interface PanelButtonProps {
|
|
|
256
168
|
|
|
257
169
|
declare type PanelPosition = "left" | "right";
|
|
258
170
|
|
|
259
|
-
declare
|
|
171
|
+
export declare type PanelProps = IOLaunchpad.PanelProps;
|
|
172
|
+
|
|
173
|
+
declare interface PanelProps_2 {
|
|
260
174
|
isOpen: boolean;
|
|
261
175
|
onClose: () => void;
|
|
262
176
|
}
|
|
@@ -265,7 +179,7 @@ export declare const PanelWithToggleButton: (props: PanelWithToggleButtonProps)
|
|
|
265
179
|
|
|
266
180
|
export declare interface PanelWithToggleButtonProps {
|
|
267
181
|
Button: React.ComponentType<PanelButtonProps>;
|
|
268
|
-
Panel: React.ComponentType<
|
|
182
|
+
Panel: React.ComponentType<PanelProps_2>;
|
|
269
183
|
panelWrapperClassName?: string;
|
|
270
184
|
pinned?: boolean;
|
|
271
185
|
position?: PanelPosition;
|
|
@@ -275,7 +189,7 @@ export declare interface PanelWithToggleButtonProps {
|
|
|
275
189
|
|
|
276
190
|
export { PlatformPrefsProvider }
|
|
277
191
|
|
|
278
|
-
export declare const PreferencesPanel:
|
|
192
|
+
export declare const PreferencesPanel: ({ components, ...rest }: IOPreferencesBrowser.PanelProps) => JSX_2.Element;
|
|
279
193
|
|
|
280
194
|
export declare const ProfilePanel: ({ className, components, onClose, title }: ProfilePanelProps) => JSX_2.Element;
|
|
281
195
|
|
|
@@ -286,29 +200,18 @@ declare interface ProfilePanelProps {
|
|
|
286
200
|
title?: string;
|
|
287
201
|
}
|
|
288
202
|
|
|
289
|
-
export declare const Section:
|
|
203
|
+
export declare const Section: typeof IOLaunchpad.Section;
|
|
290
204
|
|
|
291
|
-
export declare type SectionItemClickedType =
|
|
292
|
-
item: SectionItemType;
|
|
293
|
-
modifier: string | null;
|
|
294
|
-
selectedContextMenuActionName?: string;
|
|
295
|
-
};
|
|
205
|
+
export declare type SectionItemClickedType = IOLaunchpad.SectionItemClickedType;
|
|
296
206
|
|
|
297
|
-
export declare type SectionItemType =
|
|
207
|
+
export declare type SectionItemType = IOLaunchpad.SectionItemType;
|
|
298
208
|
|
|
299
|
-
export declare
|
|
300
|
-
config: SectionType;
|
|
301
|
-
onItemClick?: (params: {
|
|
302
|
-
item: SectionItemType;
|
|
303
|
-
modifier: string | null;
|
|
304
|
-
selectedContextMenuActionName?: string;
|
|
305
|
-
}) => void;
|
|
306
|
-
}
|
|
209
|
+
export declare type SectionProps = IOLaunchpad.SectionProps;
|
|
307
210
|
|
|
308
|
-
export declare type SectionType =
|
|
211
|
+
export declare type SectionType = IOLaunchpad.SectionType;
|
|
309
212
|
|
|
310
213
|
export declare interface SetupFlowComponents {
|
|
311
|
-
Logo?:
|
|
214
|
+
Logo?: default_2.ComponentType;
|
|
312
215
|
}
|
|
313
216
|
|
|
314
217
|
export declare interface SetupFlowConfig {
|
|
@@ -329,14 +232,6 @@ export declare interface SimpleLoginConfig {
|
|
|
329
232
|
components?: LoginPageComponents;
|
|
330
233
|
}
|
|
331
234
|
|
|
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
235
|
export declare const SystemLoader: ({ Logo, text }: SystemLoaderProps) => JSX_2.Element;
|
|
341
236
|
|
|
342
237
|
export declare interface SystemLoaderProps {
|
|
@@ -346,7 +241,7 @@ export declare interface SystemLoaderProps {
|
|
|
346
241
|
|
|
347
242
|
export declare const SystemMenu: ({ actions, panelWrapperClassName }: SystemMenuProps) => JSX_2.Element;
|
|
348
243
|
|
|
349
|
-
declare type SystemMenuAction =
|
|
244
|
+
declare type SystemMenuAction = HomeContextMenuAction & {
|
|
350
245
|
onClick: (openPanel: (Panel: SystemMenuPanel) => void) => void;
|
|
351
246
|
};
|
|
352
247
|
|
|
@@ -360,21 +255,9 @@ export declare interface SystemMenuProps {
|
|
|
360
255
|
panelWrapperClassName?: string;
|
|
361
256
|
}
|
|
362
257
|
|
|
363
|
-
export declare const useFavorites:
|
|
364
|
-
favorites: Favorite[];
|
|
365
|
-
toggleFavorite: (item: SectionItemType) => Promise<void>;
|
|
366
|
-
removeFavorite: (item: SectionItemType) => Promise<void>;
|
|
367
|
-
isLoading: boolean;
|
|
368
|
-
};
|
|
258
|
+
export declare const useFavorites: typeof IOLaunchpad.useFavorites;
|
|
369
259
|
|
|
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
|
-
};
|
|
260
|
+
export declare const useIsLaunchpadCollapsed: typeof IOLaunchpad.useIsLaunchpadCollapsed;
|
|
378
261
|
|
|
379
262
|
export { usePlatformPref }
|
|
380
263
|
|
|
@@ -414,6 +297,6 @@ export declare interface WorkspacesConfig {
|
|
|
414
297
|
components?: WorkspacesProps["components"];
|
|
415
298
|
}
|
|
416
299
|
|
|
417
|
-
export declare const WorkspacesSection:
|
|
300
|
+
export declare const WorkspacesSection: typeof IOLaunchpad.WorkspacesSection;
|
|
418
301
|
|
|
419
302
|
export { }
|