utopia-ui 3.0.64 → 3.0.65
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.cjs +808 -387
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -18
- package/dist/index.esm.js +478 -75
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/AppShell/AppShell.d.ts +1 -0
- package/dist/types/src/Components/AppShell/Content.d.ts +2 -2
- package/dist/types/src/Components/AppShell/ContextWrapper.d.ts +2 -2
- package/dist/types/src/Components/AppShell/SideBar.d.ts +5 -6
- package/dist/types/src/Components/AppShell/SidebarSubmenu.d.ts +2 -1
- package/dist/types/src/Components/Auth/RequestPasswordPage.d.ts +1 -1
- package/dist/types/src/Components/Auth/useAuth.d.ts +5 -5
- package/dist/types/src/Components/Gaming/hooks/useQuests.d.ts +3 -2
- package/dist/types/src/Components/Input/SelectBox.d.ts +2 -2
- package/dist/types/src/Components/Input/TextAreaInput.d.ts +2 -2
- package/dist/types/src/Components/Input/TextInput.d.ts +2 -2
- package/dist/types/src/Components/Map/hooks/useDebounce.d.ts +1 -1
- package/dist/types/src/Components/Map/hooks/usePermissions.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
@@ -73,6 +73,7 @@ interface UserItem {
|
|
73
73
|
password?: string
|
74
74
|
profile?: Profile
|
75
75
|
first_name?: string
|
76
|
+
access_token?: string
|
76
77
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
77
78
|
[key: string]: any
|
78
79
|
}
|
@@ -184,8 +185,7 @@ interface LayerProps {
|
|
184
185
|
markerShape: string
|
185
186
|
markerDefaultColor: string
|
186
187
|
markerDefaultColor2?: string
|
187
|
-
|
188
|
-
api?: ItemsApi<any>
|
188
|
+
api?: ItemsApi<Item>
|
189
189
|
itemType: ItemType
|
190
190
|
userProfileLayer?: boolean
|
191
191
|
customEditLink?: string
|
@@ -359,26 +359,27 @@ declare function AppShell({ appName, children, assetsApi, }: {
|
|
359
359
|
appName: string;
|
360
360
|
children: React.ReactNode;
|
361
361
|
assetsApi: AssetsApi;
|
362
|
+
userType: string;
|
362
363
|
}): react_jsx_runtime.JSX.Element;
|
363
364
|
|
364
|
-
|
365
|
+
interface Route {
|
365
366
|
path: string;
|
366
367
|
icon: JSX.Element;
|
367
368
|
name: string;
|
368
|
-
submenu?:
|
369
|
+
submenu?: Route[];
|
369
370
|
blank?: boolean;
|
370
|
-
}
|
371
|
+
}
|
371
372
|
/**
|
372
373
|
* @category AppShell
|
373
374
|
*/
|
374
375
|
declare function SideBar({ routes, bottomRoutes }: {
|
375
|
-
routes:
|
376
|
-
bottomRoutes?:
|
376
|
+
routes: Route[];
|
377
|
+
bottomRoutes?: Route[];
|
377
378
|
}): react_jsx_runtime.JSX.Element;
|
378
379
|
|
379
|
-
|
380
|
+
interface ContentProps {
|
380
381
|
children?: React.ReactNode;
|
381
|
-
}
|
382
|
+
}
|
382
383
|
/**
|
383
384
|
* @category AppShell
|
384
385
|
*/
|
@@ -399,8 +400,8 @@ interface UserApi {
|
|
399
400
|
login(email: string, password: string): Promise<UserItem | undefined>
|
400
401
|
logout(): Promise<void>
|
401
402
|
getUser(): Promise<UserItem>
|
402
|
-
getToken(): Promise<string |
|
403
|
-
updateUser(user: UserItem): Promise<
|
403
|
+
getToken(): Promise<string | undefined>
|
404
|
+
updateUser(user: UserItem): Promise<UserItem>
|
404
405
|
requestPasswordReset(email: string, reset_url?: string)
|
405
406
|
passwordReset(token: string, new_password: string)
|
406
407
|
}
|
@@ -428,7 +429,7 @@ declare function SignupPage(): react_jsx_runtime.JSX.Element;
|
|
428
429
|
* @category Auth
|
429
430
|
*/
|
430
431
|
declare function RequestPasswordPage({ resetUrl }: {
|
431
|
-
resetUrl:
|
432
|
+
resetUrl: string;
|
432
433
|
}): react_jsx_runtime.JSX.Element;
|
433
434
|
|
434
435
|
/**
|
@@ -534,7 +535,7 @@ declare const AttestationForm: ({ api }: {
|
|
534
535
|
*/
|
535
536
|
declare const MarketView: () => react_jsx_runtime.JSX.Element;
|
536
537
|
|
537
|
-
|
538
|
+
interface TextAreaProps {
|
538
539
|
labelTitle?: string;
|
539
540
|
labelStyle?: string;
|
540
541
|
containerStyle?: string;
|
@@ -544,13 +545,13 @@ type TextAreaProps = {
|
|
544
545
|
placeholder?: string;
|
545
546
|
required?: boolean;
|
546
547
|
updateFormValue?: (value: string) => void;
|
547
|
-
}
|
548
|
+
}
|
548
549
|
/**
|
549
550
|
* @category Input
|
550
551
|
*/
|
551
552
|
declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, required, updateFormValue, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
552
553
|
|
553
|
-
|
554
|
+
interface InputTextProps {
|
554
555
|
labelTitle?: string;
|
555
556
|
labelStyle?: string;
|
556
557
|
type?: string;
|
@@ -563,13 +564,13 @@ type InputTextProps = {
|
|
563
564
|
pattern?: string;
|
564
565
|
required?: boolean;
|
565
566
|
updateFormValue?: (value: string) => void;
|
566
|
-
}
|
567
|
+
}
|
567
568
|
/**
|
568
569
|
* @category Input
|
569
570
|
*/
|
570
571
|
declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, pattern, required, updateFormValue, }: InputTextProps): react_jsx_runtime.JSX.Element;
|
571
572
|
|
572
|
-
|
573
|
+
interface SelectBoxProps {
|
573
574
|
labelTitle?: string;
|
574
575
|
labelStyle?: string;
|
575
576
|
type?: string;
|
@@ -582,7 +583,7 @@ type SelectBoxProps = {
|
|
582
583
|
value: string;
|
583
584
|
}[];
|
584
585
|
labelDescription?: string;
|
585
|
-
}
|
586
|
+
}
|
586
587
|
/**
|
587
588
|
* @category Input
|
588
589
|
*/
|