utopia-ui 3.0.2 → 3.0.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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type route = {
2
3
  path: string;
3
4
  icon: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare function SidebarSubmenu({ submenu, name, icon }: {
2
3
  path: string;
3
4
  icon: JSX.Element;
@@ -14,10 +14,10 @@ declare type AuthContextProps = {
14
14
  user: UserItem | null;
15
15
  login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
16
16
  register: (credentials: AuthCredentials, userName: string) => Promise<UserItem | undefined>;
17
- loading: Boolean;
17
+ loading: boolean;
18
18
  logout: () => Promise<any>;
19
19
  updateUser: (user: UserItem) => any;
20
- token: String | null;
20
+ token: string | null;
21
21
  requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
22
22
  passwordReset: (token: string, new_password: string) => Promise<any>;
23
23
  };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  declare type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
3
3
  declare function useClusterRefManager(): {
4
4
  clusterRef: any;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { Item, LayerProps } from '../../../types';
3
3
  import { LatLng } from "leaflet";
4
4
  import { ItemFormPopupProps } from "../Subcomponents/ItemFormPopup";
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { Item, Tag } from "../../../types";
2
3
  export declare const OnepagerForm: ({ item, state, setState }: {
3
4
  state: {
@@ -1,4 +1,4 @@
1
- import { Item } from "utopia-ui/dist/types";
1
+ import { Item } from "../../../types";
2
2
  export declare const OnepagerView: ({ item, userType }: {
3
3
  item: Item;
4
4
  userType: string;
@@ -1,4 +1,4 @@
1
- import { Item, Tag } from 'utopia-ui/dist/types';
1
+ import { Item, Tag } from '../../../types';
2
2
  export declare const TabsView: ({ attestations, userType, item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem, setUrlParams }: {
3
3
  attestations: Array<any>;
4
4
  userType: string;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  export declare const submitNewItem: (evt: any, type: string, item: any, user: any, setLoading: any, tags: any, addTag: any, addItem: any, linkItem: any, resetFilterTags: any, layers: any, addItemPopupType: any, setAddItemPopupType: any) => Promise<void>;
2
3
  export declare const linkItem: (id: string, item: any, updateItem: any) => Promise<void>;
3
4
  export declare const unlinkItem: (id: string, item: any, updateItem: any) => Promise<void>;
@@ -2,6 +2,6 @@ import { Tag } from '../../types';
2
2
  export declare const TagView: ({ tag, heighlight, onClick, count }: {
3
3
  tag: Tag;
4
4
  heighlight?: boolean | undefined;
5
- onClick?: ((e: any) => void) | undefined;
5
+ onClick?: (() => void) | undefined;
6
6
  count?: number | undefined;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const LUNAR_MONTH: number;
1
+ export declare const LUNAR_MONTH = 29.530588853;
2
2
  export declare const getJulianDate: (date?: Date) => number;
3
3
  export declare const normalize: (value: number) => number;
4
4
  export declare const getLunarAgePercent: (date?: Date) => number;