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.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
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
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
- type route = {
365
+ interface Route {
365
366
  path: string;
366
367
  icon: JSX.Element;
367
368
  name: string;
368
- submenu?: route;
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: route[];
376
- bottomRoutes?: route[];
376
+ routes: Route[];
377
+ bottomRoutes?: Route[];
377
378
  }): react_jsx_runtime.JSX.Element;
378
379
 
379
- type ContentProps = {
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 | null>
403
- updateUser(user: UserItem): Promise<void>
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: any;
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
- type TextAreaProps = {
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
- type InputTextProps = {
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
- type SelectBoxProps = {
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
  */