@apolitical/component-library 4.5.11-beta.1 → 4.5.11-beta.3

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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface IUserDetailsImage {
3
3
  thumbnail?: string;
4
4
  full?: string;
@@ -17,5 +17,6 @@ export interface IUserDetails {
17
17
  }
18
18
  export interface IUserContext extends IUserDetails {
19
19
  isLoading: boolean;
20
+ updateDetails?: React.Dispatch<React.SetStateAction<IUserContext>>;
20
21
  }
21
- export declare const UserContext: import("react").Context<IUserContext>;
22
+ export declare const UserContext: React.Context<IUserContext>;
@@ -3,6 +3,7 @@ import type { IUserContext } from './user.context';
3
3
  interface Props {
4
4
  children: React.ReactNode;
5
5
  user: IUserContext;
6
+ updateDetails?: React.Dispatch<React.SetStateAction<IUserContext>>;
6
7
  }
7
- export declare const UserProvider: ({ children, user }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const UserProvider: ({ children, user, updateDetails }: Props) => import("react/jsx-runtime").JSX.Element;
8
9
  export {};
@@ -3,7 +3,7 @@ export interface IProfileFormProps {
3
3
  /** The functions to call */
4
4
  functions: {
5
5
  /** The function to upload the user's profile image */
6
- uploadImage: () => void;
6
+ uploadImage: () => Promise<void>;
7
7
  /** The function to handle getting the location predictions */
8
8
  predictPlace: (arg: object) => {
9
9
  city: Promise<any[]>;