utopia-ui 3.0.57 → 3.0.59

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.
Files changed (147) hide show
  1. package/dist/Components/AppShell/AppShell.d.ts +8 -0
  2. package/dist/Components/AppShell/Content.d.ts +6 -0
  3. package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
  4. package/dist/Components/AppShell/NavBar.d.ts +4 -0
  5. package/dist/Components/AppShell/SetAppState.d.ts +5 -0
  6. package/dist/Components/AppShell/SideBar.d.ts +13 -0
  7. package/dist/Components/AppShell/SidebarSubmenu.d.ts +8 -0
  8. package/dist/Components/AppShell/Sitemap.d.ts +3 -0
  9. package/dist/Components/AppShell/hooks/useAppState.d.ts +17 -0
  10. package/dist/Components/AppShell/hooks/useAssets.d.ts +13 -0
  11. package/dist/Components/AppShell/index.d.ts +4 -0
  12. package/dist/Components/Auth/LoginPage.d.ts +1 -0
  13. package/dist/Components/Auth/RequestPasswordPage.d.ts +3 -0
  14. package/dist/Components/Auth/SetNewPasswordPage.d.ts +1 -0
  15. package/dist/Components/Auth/SignupPage.d.ts +1 -0
  16. package/dist/Components/Auth/index.d.ts +5 -0
  17. package/dist/Components/Auth/useAuth.d.ts +27 -0
  18. package/dist/Components/Gaming/Modal.d.ts +5 -0
  19. package/dist/Components/Gaming/Quests.d.ts +1 -0
  20. package/dist/Components/Gaming/hooks/useQuests.d.ts +13 -0
  21. package/dist/Components/Gaming/index.d.ts +2 -0
  22. package/dist/Components/Input/Autocomplete.d.ts +7 -0
  23. package/dist/Components/Input/ComboBoxInput.d.ts +8 -0
  24. package/dist/Components/Input/SelectBox.d.ts +16 -0
  25. package/dist/Components/Input/TextAreaInput.d.ts +13 -0
  26. package/dist/Components/Input/TextInput.d.ts +16 -0
  27. package/dist/Components/Input/index.d.ts +3 -0
  28. package/dist/Components/Map/ItemForm.d.ts +17 -0
  29. package/dist/Components/Map/ItemView.d.ts +14 -0
  30. package/dist/Components/Map/Layer.d.ts +2 -0
  31. package/dist/Components/Map/Permissions.d.ts +7 -0
  32. package/dist/Components/Map/Subcomponents/AddButton.d.ts +4 -0
  33. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
  34. package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
  35. package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
  36. package/dist/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
  37. package/dist/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
  38. package/dist/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
  39. package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
  40. package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
  41. package/dist/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
  42. package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -0
  43. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +18 -0
  44. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +7 -0
  45. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
  46. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -0
  47. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
  48. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
  49. package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
  50. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +6 -0
  51. package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +9 -0
  52. package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
  53. package/dist/Components/Map/Tags.d.ts +6 -0
  54. package/dist/Components/Map/UtopiaMap.d.ts +4 -0
  55. package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
  56. package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
  57. package/dist/Components/Map/hooks/useDebounce.d.ts +1 -0
  58. package/dist/Components/Map/hooks/useFilter.d.ts +41 -0
  59. package/dist/Components/Map/hooks/useItems.d.ts +27 -0
  60. package/dist/Components/Map/hooks/useLayers.d.ts +14 -0
  61. package/dist/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
  62. package/dist/Components/Map/hooks/usePermissions.d.ts +24 -0
  63. package/dist/Components/Map/hooks/useSelectPosition.d.ts +24 -0
  64. package/dist/Components/Map/hooks/useTags.d.ts +24 -0
  65. package/dist/Components/Map/hooks/useTimeout.d.ts +4 -0
  66. package/dist/Components/Map/hooks/useWindowDimension.d.ts +4 -0
  67. package/dist/Components/Map/index.d.ts +13 -0
  68. package/dist/Components/Map/setItemLocation.d.ts +1 -0
  69. package/dist/Components/Profile/ProfileForm.d.ts +1 -0
  70. package/dist/Components/Profile/ProfileView.d.ts +4 -0
  71. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +10 -0
  72. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
  73. package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
  74. package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -0
  75. package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
  76. package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  77. package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -0
  78. package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +18 -0
  79. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +7 -0
  80. package/dist/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
  81. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  82. package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -0
  83. package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
  84. package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
  85. package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
  86. package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  87. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  88. package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  89. package/dist/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -0
  90. package/dist/Components/Profile/Templates/FlexForm.d.ts +7 -0
  91. package/dist/Components/Profile/Templates/FlexView.d.ts +4 -0
  92. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +7 -0
  93. package/dist/Components/Profile/Templates/OnepagerView.d.ts +4 -0
  94. package/dist/Components/Profile/Templates/SimpleForm.d.ts +4 -0
  95. package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
  96. package/dist/Components/Profile/Templates/TabsForm.d.ts +10 -0
  97. package/dist/Components/Profile/Templates/TabsView.d.ts +13 -0
  98. package/dist/Components/Profile/UserSettings.d.ts +1 -0
  99. package/dist/Components/Profile/hooks/useClickOutside.d.ts +2 -0
  100. package/dist/Components/Profile/index.d.ts +4 -0
  101. package/dist/Components/Profile/itemFunctions.d.ts +5 -0
  102. package/dist/Components/Templates/AttestationForm.d.ts +4 -0
  103. package/dist/Components/Templates/CardPage.d.ts +10 -0
  104. package/dist/Components/Templates/CircleLayout.d.ts +5 -0
  105. package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
  106. package/dist/Components/Templates/DialogModal.d.ts +12 -0
  107. package/dist/Components/Templates/EmojiPicker.d.ts +10 -0
  108. package/dist/Components/Templates/ItemCard.d.ts +7 -0
  109. package/dist/Components/Templates/MapOverlayPage.d.ts +7 -0
  110. package/dist/Components/Templates/MarketView.d.ts +1 -0
  111. package/dist/Components/Templates/MoonCalendar.d.ts +1 -0
  112. package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +5 -0
  113. package/dist/Components/Templates/SelectUser.d.ts +1 -0
  114. package/dist/Components/Templates/TagView.d.ts +7 -0
  115. package/dist/Components/Templates/TitleCard.d.ts +11 -0
  116. package/dist/Components/Templates/index.d.ts +8 -0
  117. package/dist/Components/Typography/ErrorText.d.ts +5 -0
  118. package/dist/Components/Typography/Subtitle.d.ts +6 -0
  119. package/dist/Utils/ContainsUUID.d.ts +1 -0
  120. package/dist/Utils/FormatTags.d.ts +2 -0
  121. package/dist/Utils/HashTagRegex.d.ts +1 -0
  122. package/dist/Utils/MarkerIconFactory.d.ts +2 -0
  123. package/dist/Utils/Moon.d.ts +7 -0
  124. package/dist/Utils/RandomColor.d.ts +1 -0
  125. package/dist/Utils/ReplaceURLs.d.ts +3 -0
  126. package/dist/Utils/ReverseGeocoder.d.ts +1 -0
  127. package/dist/Utils/TimeAgo.d.ts +1 -0
  128. package/dist/index.cjs +975 -20
  129. package/dist/index.cjs.map +1 -0
  130. package/dist/index.d.ts +21 -192
  131. package/dist/index.esm.js +975 -20
  132. package/dist/index.esm.js.map +1 -0
  133. package/dist/index.js +5268 -0
  134. package/dist/index.js.map +1 -0
  135. package/dist/src/Components/Map/Layer.d.ts +1 -1
  136. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -4
  137. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -2
  138. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +3 -4
  139. package/dist/src/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -2
  140. package/dist/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -4
  141. package/dist/src/Components/Templates/ItemCard.d.ts +1 -2
  142. package/dist/src/Components/Templates/OverlayItemsIndexPage.d.ts +1 -2
  143. package/dist/types/src/Components/Map/UtopiaMap.d.ts +1 -1
  144. package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +1 -1
  145. package/dist/types/src/index.d.ts +1 -0
  146. package/dist/types/src/types/index.d.ts +9 -0
  147. package/package.json +2 -1
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { AssetsApi } from '#types/AssetsApi';
3
+ export declare function AppShell({ appName, children, assetsApi, userType, }: {
4
+ appName: string;
5
+ children: React.ReactNode;
6
+ assetsApi: AssetsApi;
7
+ userType: string;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare type ContentProps = {
3
+ children?: React.ReactNode;
4
+ };
5
+ export declare function Content({ children }: ContentProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const ContextWrapper: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export declare const Wrappers: ({ children }: {
5
+ children: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function NavBar({ appName, userType }: {
2
+ appName: string;
3
+ userType: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { AssetsApi } from '#types/AssetsApi';
2
+ export declare const SetAppState: ({ assetsApi, userType, }: {
3
+ assetsApi: AssetsApi;
4
+ userType: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type route = {
3
+ path: string;
4
+ icon: JSX.Element;
5
+ name: string;
6
+ submenu?: route;
7
+ blank?: boolean;
8
+ };
9
+ export declare function SideBar({ routes, bottomRoutes }: {
10
+ routes: route[];
11
+ bottomRoutes?: route[];
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare function SidebarSubmenu({ submenu, name, icon, }: {
3
+ path: string;
4
+ icon: JSX.Element;
5
+ name: string;
6
+ submenu?: any | undefined;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export default SidebarSubmenu;
@@ -0,0 +1,3 @@
1
+ export declare const Sitemap: ({ url }: {
2
+ url: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { AssetsApi } from '#types/AssetsApi';
3
+ interface AppState {
4
+ assetsApi: AssetsApi;
5
+ userType: string;
6
+ }
7
+ declare type UseAppManagerResult = ReturnType<typeof useAppManager>;
8
+ declare function useAppManager(): {
9
+ state: AppState;
10
+ setAppState: (newState: Partial<AppState>) => void;
11
+ };
12
+ export declare const AppStateProvider: React.FunctionComponent<{
13
+ children?: React.ReactNode;
14
+ }>;
15
+ export declare const useAppState: () => AppState;
16
+ export declare const useSetAppState: () => UseAppManagerResult['setAppState'];
17
+ export {};
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { AssetsApi } from '#types/AssetsApi';
3
+ declare type UseAssetManagerResult = ReturnType<typeof useAssetsManager>;
4
+ declare function useAssetsManager(): {
5
+ api: AssetsApi;
6
+ setAssetsApi: (api: AssetsApi) => void;
7
+ };
8
+ export declare const AssetsProvider: React.FunctionComponent<{
9
+ children?: React.ReactNode;
10
+ }>;
11
+ export declare const useAssetApi: () => AssetsApi;
12
+ export declare const useSetAssetApi: () => UseAssetManagerResult['setAssetsApi'];
13
+ export {};
@@ -0,0 +1,4 @@
1
+ export { AppShell } from './AppShell';
2
+ export { SideBar } from './SideBar';
3
+ export { Content } from './Content';
4
+ export { Sitemap } from './Sitemap';
@@ -0,0 +1 @@
1
+ export declare function LoginPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function RequestPasswordPage({ resetUrl }: {
2
+ resetUrl: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SetNewPasswordPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SignupPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { AuthProvider, useAuth } from './useAuth';
2
+ export { LoginPage } from './LoginPage';
3
+ export { SignupPage } from './SignupPage';
4
+ export { RequestPasswordPage } from './RequestPasswordPage';
5
+ export { SetNewPasswordPage } from './SetNewPasswordPage';
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import type { UserApi } from '#types/UserApi';
3
+ import type { UserItem } from '#types/UserItem';
4
+ interface AuthProviderProps {
5
+ userApi: UserApi;
6
+ children?: React.ReactNode;
7
+ }
8
+ interface AuthCredentials {
9
+ email: string;
10
+ password: string;
11
+ otp?: string | undefined;
12
+ }
13
+ interface AuthContextProps {
14
+ isAuthenticated: boolean;
15
+ user: UserItem | null;
16
+ login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
17
+ register: (credentials: AuthCredentials, userName: string) => Promise<UserItem | undefined>;
18
+ loading: boolean;
19
+ logout: () => Promise<any>;
20
+ updateUser: (user: UserItem) => any;
21
+ token: string | null;
22
+ requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
23
+ passwordReset: (token: string, new_password: string) => Promise<any>;
24
+ }
25
+ export declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const useAuth: () => AuthContextProps;
27
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare function Modal({ children, showOnStartup, }: {
3
+ children: React.ReactNode;
4
+ showOnStartup?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Quests(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type UseQuestManagerResult = ReturnType<typeof useQuestsManager>;
3
+ declare function useQuestsManager(initialOpen: boolean): {
4
+ open: boolean;
5
+ setQuestsOpen: (open: boolean) => void;
6
+ };
7
+ export declare const QuestsProvider: React.FunctionComponent<{
8
+ initialOpen: boolean;
9
+ children?: React.ReactNode;
10
+ }>;
11
+ export declare const useQuestsOpen: () => boolean;
12
+ export declare const useSetQuestOpen: () => UseQuestManagerResult['setQuestsOpen'];
13
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Modal } from './Modal';
2
+ export { Quests } from './Quests';
@@ -0,0 +1,7 @@
1
+ export declare const Autocomplete: ({ inputProps, suggestions, onSelected, pushFilteredSuggestions, setFocus, }: {
2
+ inputProps: any;
3
+ suggestions: any[];
4
+ onSelected: (suggestion: any) => void;
5
+ pushFilteredSuggestions?: any[] | undefined;
6
+ setFocus?: boolean | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ interface ComboBoxProps {
2
+ id?: string;
3
+ options: string[];
4
+ value: string;
5
+ onValueChange: (newValue: string) => void;
6
+ }
7
+ declare const ComboBoxInput: ({ id, options, value, onValueChange }: ComboBoxProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default ComboBoxInput;
@@ -0,0 +1,16 @@
1
+ declare type SelectBoxProps = {
2
+ labelTitle?: string;
3
+ labelStyle?: string;
4
+ type?: string;
5
+ containerStyle?: string;
6
+ defaultValue: string;
7
+ placeholder?: string;
8
+ updateFormValue: (value: string) => void;
9
+ options: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ labelDescription?: string;
14
+ };
15
+ export declare function SelectBox(props: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,13 @@
1
+ declare type TextAreaProps = {
2
+ labelTitle?: string;
3
+ labelStyle?: string;
4
+ containerStyle?: string;
5
+ dataField?: string;
6
+ inputStyle?: string;
7
+ defaultValue: string;
8
+ placeholder?: string;
9
+ required?: boolean;
10
+ updateFormValue?: (value: string) => void;
11
+ };
12
+ export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, required, updateFormValue, }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,16 @@
1
+ declare type InputTextProps = {
2
+ labelTitle?: string;
3
+ labelStyle?: string;
4
+ type?: string;
5
+ dataField?: string;
6
+ containerStyle?: string;
7
+ inputStyle?: string;
8
+ defaultValue?: string;
9
+ placeholder?: string;
10
+ autocomplete?: string;
11
+ pattern?: string;
12
+ required?: boolean;
13
+ updateFormValue?: (value: string) => void;
14
+ };
15
+ export declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, pattern, required, updateFormValue, }: InputTextProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ export { TextAreaInput } from './TextAreaInput';
2
+ export { TextInput } from './TextInput';
3
+ export { SelectBox } from './SelectBox';
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ export declare const ItemForm: {
4
+ ({ children, item, title, setPopupTitle, }: {
5
+ children?: React.ReactNode;
6
+ item?: Item | undefined;
7
+ title?: string | undefined;
8
+ setPopupTitle?: import("react").Dispatch<import("react").SetStateAction<string>> | undefined;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ propTypes: {
11
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
12
+ __TYPE: import("prop-types").Requireable<string>;
13
+ };
14
+ defaultProps: {
15
+ __TYPE: string;
16
+ };
17
+ };
@@ -0,0 +1,14 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare const ItemView: {
3
+ ({ children, item }: {
4
+ children?: React.ReactNode;
5
+ item?: Item | undefined;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ propTypes: {
8
+ children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
9
+ __TYPE: import("prop-types").Requireable<string>;
10
+ };
11
+ defaultProps: {
12
+ __TYPE: string;
13
+ };
14
+ };
@@ -0,0 +1,2 @@
1
+ import type { LayerProps } from '#types/LayerProps';
2
+ export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, onlyOnePerOwner, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef, }: LayerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ItemsApi } from '#types/ItemsApi';
2
+ import type { Permission } from '#types/Permission';
3
+ export declare function Permissions({ data, api, adminRole, }: {
4
+ data?: Permission[];
5
+ api?: ItemsApi<Permission>;
6
+ adminRole?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export default function AddButton({ triggerAction, }: {
3
+ triggerAction: React.Dispatch<React.SetStateAction<any>>;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const Control: ({ position, children, zIndex, absolute, }: {
2
+ position: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3
+ children: React.ReactNode;
4
+ zIndex: string;
5
+ absolute: boolean;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function FilterControl(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const GratitudeControl: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LayerControl(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import 'leaflet.locatecontrol';
2
+ import 'leaflet.locatecontrol/dist/L.Control.Locate.css';
3
+ export declare const LocateControl: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function QuestControl(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SearchControl: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SidebarControl: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TagsControl: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
2
+ export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import type { Item } from '#types/Item';
2
+ import type { ItemsApi } from '#types/ItemsApi';
3
+ export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, loading, hideMenu, big, truncateSubname, hideSubname, showAddress, }: {
4
+ item: Item;
5
+ api?: ItemsApi<any>;
6
+ editCallback?: any;
7
+ deleteCallback?: any;
8
+ setPositionCallback?: any;
9
+ itemNameField?: string;
10
+ itemAvatarField?: string;
11
+ itemSubnameField?: string;
12
+ loading?: boolean;
13
+ hideMenu?: boolean;
14
+ big?: boolean;
15
+ hideSubname?: boolean;
16
+ truncateSubname?: boolean;
17
+ showAddress?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare const PopupButton: ({ url, parameterField, text, item, }: {
3
+ url: string;
4
+ parameterField?: string | undefined;
5
+ text: string;
6
+ item?: Item | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare const PopupCheckboxInput: ({ dataField, label, item, }: {
3
+ dataField: string;
4
+ label: string;
5
+ item?: Item | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { Item } from '#types/Item';
2
+ interface StartEndInputProps {
3
+ item?: Item;
4
+ showLabels?: boolean;
5
+ updateStartValue?: (value: string) => void;
6
+ updateEndValue?: (value: string) => void;
7
+ }
8
+ export declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
3
+ dataField: string;
4
+ placeholder: string;
5
+ style?: string | undefined;
6
+ item?: Item | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
3
+ dataField: string;
4
+ placeholder: string;
5
+ style?: string | undefined;
6
+ item?: Item | undefined;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { Item } from '#types/Item';
2
+ export declare const StartEndView: ({ item }: {
3
+ item?: Item | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const TextView: ({ itemId, text, truncate, rawText, }: {
2
+ itemId: string;
3
+ text?: string | undefined;
4
+ truncate?: boolean | undefined;
5
+ rawText?: string | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
4
+ export interface ItemViewPopupProps {
5
+ item: Item;
6
+ children?: React.ReactNode;
7
+ setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
8
+ }
9
+ export declare const ItemViewPopup: import("react").ForwardRefExoticComponent<ItemViewPopupProps & import("react").RefAttributes<unknown>>;
@@ -0,0 +1,3 @@
1
+ export declare const SelectPosition: ({ setSelectNewItemPosition }: {
2
+ setSelectNewItemPosition: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ItemsApi } from '#types/ItemsApi';
2
+ import type { Tag } from '#types/Tag';
3
+ export declare function Tags({ data, api }: {
4
+ data?: Tag[];
5
+ api?: ItemsApi<Tag>;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { UtopiaMapProps } from '#types/UtopiaMapProps';
2
+ import 'react-toastify/dist/ReactToastify.css';
3
+ declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
4
+ export { UtopiaMap };
@@ -0,0 +1,4 @@
1
+ import 'leaflet/dist/leaflet.css';
2
+ import './UtopiaMap.css';
3
+ import type { UtopiaMapProps } from '#types/UtopiaMapProps';
4
+ export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ declare type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
3
+ declare function useClusterRefManager(): {
4
+ clusterRef: any;
5
+ setClusterRef: React.Dispatch<React.SetStateAction<React.MutableRefObject<undefined>>>;
6
+ };
7
+ export declare const ClusterRefProvider: React.FunctionComponent<{
8
+ children?: React.ReactNode;
9
+ }>;
10
+ export declare const useClusterRef: () => any;
11
+ export declare const useSetClusterRef: () => UseClusterRefManagerResult['setClusterRef'];
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useDebounce: (callback: any, delay: any, deps: any) => void;
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ import type { LayerProps } from '#types/LayerProps';
3
+ import type { Tag } from '#types/Tag';
4
+ declare type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
5
+ declare function useFilterManager(initialTags: Tag[]): {
6
+ filterTags: Tag[];
7
+ searchPhrase: string;
8
+ visibleLayers: LayerProps[];
9
+ visibleGroupTypes: string[];
10
+ addFilterTag: (tag: Tag) => void;
11
+ removeFilterTag: (name: string) => void;
12
+ resetFilterTags: () => void;
13
+ setSearchPhrase: (phrase: string) => void;
14
+ addVisibleLayer: (layer: LayerProps) => void;
15
+ toggleVisibleLayer: (layer: LayerProps) => void;
16
+ resetVisibleLayers: () => void;
17
+ isLayerVisible: (layer: LayerProps) => boolean;
18
+ addVisibleGroupType: (groupType: string) => void;
19
+ toggleVisibleGroupType: (groupType: string) => void;
20
+ isGroupTypeVisible: (groupType: string) => boolean;
21
+ };
22
+ export declare const FilterProvider: React.FunctionComponent<{
23
+ initialTags: Tag[];
24
+ children?: React.ReactNode;
25
+ }>;
26
+ export declare const useFilterTags: () => Tag[];
27
+ export declare const useAddFilterTag: () => UseFilterManagerResult['addFilterTag'];
28
+ export declare const useRemoveFilterTag: () => UseFilterManagerResult['removeFilterTag'];
29
+ export declare const useResetFilterTags: () => UseFilterManagerResult['resetFilterTags'];
30
+ export declare const useSearchPhrase: () => UseFilterManagerResult['searchPhrase'];
31
+ export declare const useSetSearchPhrase: () => UseFilterManagerResult['setSearchPhrase'];
32
+ export declare const useVisibleLayer: () => UseFilterManagerResult['visibleLayers'];
33
+ export declare const useAddVisibleLayer: () => UseFilterManagerResult['addVisibleLayer'];
34
+ export declare const useToggleVisibleLayer: () => UseFilterManagerResult['toggleVisibleLayer'];
35
+ export declare const useResetVisibleLayers: () => UseFilterManagerResult['resetVisibleLayers'];
36
+ export declare const useIsLayerVisible: () => UseFilterManagerResult['isLayerVisible'];
37
+ export declare const useAddVisibleGroupType: () => UseFilterManagerResult['addVisibleGroupType'];
38
+ export declare const useToggleVisibleGroupType: () => UseFilterManagerResult['toggleVisibleGroupType'];
39
+ export declare const useIsGroupTypeVisible: () => UseFilterManagerResult['isGroupTypeVisible'];
40
+ export declare const useVisibleGroupType: () => UseFilterManagerResult['visibleGroupTypes'];
41
+ export {};
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { LayerProps } from '#types/LayerProps';
4
+ declare type UseItemManagerResult = ReturnType<typeof useItemsManager>;
5
+ declare function useItemsManager(initialItems: Item[]): {
6
+ items: Item[];
7
+ addItem: (item: Item) => void;
8
+ updateItem: (item: Item) => void;
9
+ removeItem: (item: Item) => void;
10
+ resetItems: (layer: LayerProps) => void;
11
+ setItemsApi: (layer: LayerProps) => void;
12
+ setItemsData: (layer: LayerProps) => void;
13
+ allItemsLoaded: boolean;
14
+ };
15
+ export declare const ItemsProvider: React.FunctionComponent<{
16
+ initialItems: Item[];
17
+ children?: React.ReactNode;
18
+ }>;
19
+ export declare const useItems: () => Item[];
20
+ export declare const useAddItem: () => UseItemManagerResult['addItem'];
21
+ export declare const useUpdateItem: () => UseItemManagerResult['updateItem'];
22
+ export declare const useRemoveItem: () => UseItemManagerResult['removeItem'];
23
+ export declare const useResetItems: () => UseItemManagerResult['resetItems'];
24
+ export declare const useSetItemsApi: () => UseItemManagerResult['setItemsApi'];
25
+ export declare const useSetItemsData: () => UseItemManagerResult['setItemsData'];
26
+ export declare const useAllItemsLoaded: () => UseItemManagerResult['allItemsLoaded'];
27
+ export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { LayerProps } from '#types/LayerProps';
3
+ declare type UseItemManagerResult = ReturnType<typeof useLayerManager>;
4
+ declare function useLayerManager(initialLayers: LayerProps[]): {
5
+ layers: LayerProps[];
6
+ addLayer: (layer: LayerProps) => void;
7
+ };
8
+ export declare const LayersProvider: React.FunctionComponent<{
9
+ initialLayers: LayerProps[];
10
+ children?: React.ReactNode;
11
+ }>;
12
+ export declare const useLayers: () => LayerProps[];
13
+ export declare const useAddLayer: () => UseItemManagerResult['addLayer'];
14
+ export {};
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { Marker, Popup } from 'leaflet';
4
+ interface LeafletRef {
5
+ item: Item;
6
+ marker: Marker;
7
+ popup: Popup;
8
+ }
9
+ declare type UseLeafletRefsManagerResult = ReturnType<typeof useLeafletRefsManager>;
10
+ declare function useLeafletRefsManager(initialLeafletRefs: {}): {
11
+ leafletRefs: Record<string, LeafletRef>;
12
+ addMarker: (item: Item, marker: Marker) => void;
13
+ addPopup: (item: Item, popup: Popup) => void;
14
+ };
15
+ export declare const LeafletRefsProvider: React.FunctionComponent<{
16
+ initialLeafletRefs: {};
17
+ children?: React.ReactNode;
18
+ }>;
19
+ export declare const useLeafletRefs: () => Record<string, LeafletRef>;
20
+ export declare const useAddMarker: () => UseLeafletRefsManagerResult['addMarker'];
21
+ export declare const useAddPopup: () => UseLeafletRefsManagerResult['addPopup'];
22
+ export {};
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { ItemsApi } from '#types/ItemsApi';
4
+ import type { LayerProps } from '#types/LayerProps';
5
+ import type { Permission } from '#types/Permission';
6
+ import type { PermissionAction } from '#types/PermissionAction';
7
+ declare type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
8
+ declare function usePermissionsManager(initialPermissions: Permission[]): {
9
+ permissions: Permission[];
10
+ setPermissionApi: (api: ItemsApi<any>) => void;
11
+ setPermissionData: (data: Permission[]) => void;
12
+ setAdminRole: (adminRole: string) => void;
13
+ hasUserPermission: (collectionName: string, action: PermissionAction, item?: Item, layer?: LayerProps) => boolean;
14
+ };
15
+ export declare const PermissionsProvider: React.FunctionComponent<{
16
+ initialPermissions: Permission[];
17
+ children?: React.ReactNode;
18
+ }>;
19
+ export declare const usePermissions: () => Permission[];
20
+ export declare const useSetPermissionApi: () => UsePermissionManagerResult['setPermissionApi'];
21
+ export declare const useSetPermissionData: () => UsePermissionManagerResult['setPermissionData'];
22
+ export declare const useHasUserPermission: () => UsePermissionManagerResult['hasUserPermission'];
23
+ export declare const useSetAdminRole: () => UsePermissionManagerResult['setAdminRole'];
24
+ export {};