utopia-ui 3.0.0-alpha.40 → 3.0.0-alpha.42

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.
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function LoginPage(): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare function RequestPasswordPage({ reset_url }: {
3
+ reset_url: any;
4
+ }): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function ResetPasswordPage(reset_url: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function SetNewPasswordPage(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function SignupPage(): JSX.Element;
@@ -1,3 +1,5 @@
1
1
  export { AuthProvider, useAuth } from "./useAuth";
2
2
  export { LoginPage } from "./LoginPage";
3
- export { SignupPage } from "./SignupPage";
3
+ export { SignupPage } from './SignupPage';
4
+ export { RequestPasswordPage } from './RequestPasswordPage';
5
+ export { SetNewPasswordPage } from './SetNewPasswordPage';
@@ -18,6 +18,8 @@ declare type AuthContextProps = {
18
18
  logout: () => Promise<any>;
19
19
  updateUser: (user: UserItem) => any;
20
20
  token: String | null;
21
+ requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
22
+ passwordReset: (token: string, new_password: string) => Promise<any>;
21
23
  };
22
24
  export declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => JSX.Element;
23
25
  export declare const useAuth: () => AuthContextProps;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { LayerProps } from '../../types';
3
- export declare const Layer: (props: LayerProps) => JSX.Element;
3
+ export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, api, itemTitleField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, setItemFormPopup, itemFormPopup, clusterRef }: LayerProps) => JSX.Element;
@@ -6,6 +6,6 @@ export interface ItemFormPopupProps {
6
6
  layer: LayerProps;
7
7
  item?: Item;
8
8
  children?: React.ReactNode;
9
- setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
9
+ setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
10
10
  }
11
11
  export declare function ItemFormPopup(props: ItemFormPopupProps): JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { ItemFormPopupProps } from "../ItemFormPopup";
3
3
  import { Item } from "../../../../types";
4
- export declare function HeaderView({ item, title, avatar, setItemFormPopup }: {
4
+ export declare function HeaderView({ item, title, avatar, owner, setItemFormPopup }: {
5
5
  item: Item;
6
6
  title?: string;
7
7
  avatar?: string;
8
+ owner?: string;
8
9
  setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
9
10
  }): JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Item } from '../../../../types';
3
+ export declare const PopupButton: ({ url, parameterField, text, colorField, item }: {
4
+ url: string;
5
+ parameterField?: string | undefined;
6
+ text: string;
7
+ colorField?: string | undefined;
8
+ item?: Item | undefined;
9
+ }) => JSX.Element;
@@ -6,6 +6,7 @@ export interface ItemViewPopupProps {
6
6
  children?: React.ReactNode;
7
7
  title?: string;
8
8
  avatar?: string;
9
+ owner?: string;
9
10
  setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
10
11
  }
11
12
  export declare const ItemViewPopup: React.ForwardRefExoticComponent<ItemViewPopupProps & React.RefAttributes<unknown>>;
@@ -9,3 +9,4 @@ export { PopupStartEndInput } from './Subcomponents/ItemPopupComponents/PopupSta
9
9
  export { PopupTextInput } from './Subcomponents/ItemPopupComponents/PopupTextInput';
10
10
  export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
11
11
  export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
12
+ export { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import 'react-image-crop/dist/ReactCrop.css';
3
+ import 'react-toastify/dist/ReactToastify.css';
4
+ export declare function ProfileSettings(): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import 'react-image-crop/dist/ReactCrop.css';
3
+ import 'react-toastify/dist/ReactToastify.css';
4
+ export declare function UserSettings(): JSX.Element;
@@ -1 +1,2 @@
1
- export { Settings } from './Settings';
1
+ export { UserSettings } from './UserSettings';
2
+ export { ProfileSettings } from './ProfileSettings';
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
- export declare function CardPage({ title, children, parent }: {
2
+ export declare function CardPage({ title, hideTitle, children, parent }: {
3
3
  title: string;
4
+ hideTitle?: boolean;
4
5
  children?: React.ReactNode;
5
6
  parent?: {
6
7
  name: string;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare function MapOverlayPage({ children }: {
3
+ children: React.ReactNode;
4
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare function MapOverlayScreen({ children }: {
3
+ children: React.ReactNode;
4
+ }): JSX.Element;
@@ -1,10 +1,11 @@
1
1
  import * as React from "react";
2
2
  interface TitleCardProps {
3
- title: string;
4
- children: React.ReactNode;
5
- topMargin: string;
3
+ title?: string;
4
+ hideTitle?: boolean;
5
+ children?: React.ReactNode;
6
+ topMargin?: string;
6
7
  className?: string;
7
8
  TopSideButtons?: any;
8
9
  }
9
- export declare function TitleCard({ title, children, topMargin, TopSideButtons, className }: TitleCardProps): JSX.Element;
10
+ export declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className }: TitleCardProps): JSX.Element;
10
11
  export {};
@@ -1,2 +1,3 @@
1
1
  export { CardPage } from './CardPage';
2
2
  export { TitleCard } from './TitleCard';
3
+ export { MapOverlayPage } from './MapOverlayPage';
@@ -0,0 +1 @@
1
+ export declare function getValue(obj: any, path: any): any;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, TextView, StartEndView } from './Components/Map';
1
+ export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, PopupButton, TextView, StartEndView } from './Components/Map';
2
2
  export { AppShell, Content, SideBar } from "./Components/AppShell";
3
- export { AuthProvider, useAuth, LoginPage, SignupPage } from "./Components/Auth";
4
- export { Settings } from './Components/Profile';
3
+ export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
4
+ export { UserSettings, ProfileSettings } from './Components/Profile';
5
5
  export { Quests, Modal } from './Components/Gaming';
6
6
  export { TitleCard, CardPage } from './Components/Templates';
7
7
  export { TextInput, TextAreaInput, SelectBox } from './Components/Input';