utopia-ui 3.0.0-alpha.98 → 3.0.0

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 (176) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +29 -26
  3. package/dist/Components/AppShell/AppShell.d.ts +3 -2
  4. package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
  5. package/dist/Components/AppShell/NavBar.d.ts +2 -2
  6. package/dist/Components/AppShell/SideBar.d.ts +0 -1
  7. package/dist/Components/AppShell/SidebarSubmenu.d.ts +0 -1
  8. package/dist/Components/AppShell/Sitemap.d.ts +3 -0
  9. package/dist/Components/AppShell/index.d.ts +1 -0
  10. package/dist/Components/Input/ComboBoxInput.d.ts +11 -0
  11. package/dist/Components/Map/Layer.d.ts +1 -1
  12. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +2 -1
  13. package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -2
  14. package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
  15. package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -3
  16. package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
  17. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +14 -5
  18. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
  19. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +8 -3
  20. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +2 -1
  21. package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
  22. package/dist/Components/Map/UtopiaMap.d.ts +2 -10
  23. package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
  24. package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
  25. package/dist/Components/Map/hooks/useFilter.d.ts +8 -0
  26. package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
  27. package/dist/Components/Map/hooks/useSelectPosition.d.ts +23 -0
  28. package/dist/Components/Map/index.d.ts +1 -0
  29. package/dist/Components/Map/setItemLocation.d.ts +1 -0
  30. package/dist/Components/Profile/ProfileForm.d.ts +3 -0
  31. package/dist/Components/Profile/ProfileView.d.ts +5 -0
  32. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
  33. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
  34. package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +8 -0
  35. package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  36. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
  37. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  38. package/dist/Components/Profile/Subcomponents/ProfileSubHeader.d.ts +7 -0
  39. package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  40. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  41. package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  42. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +22 -0
  43. package/dist/Components/Profile/Templates/OnepagerView.d.ts +5 -0
  44. package/dist/Components/Profile/Templates/SimpleForm.d.ts +4 -0
  45. package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
  46. package/dist/Components/Profile/Templates/TabsForm.d.ts +10 -0
  47. package/dist/Components/Profile/Templates/TabsView.d.ts +14 -0
  48. package/dist/Components/Profile/UserSettings.d.ts +0 -2
  49. package/dist/Components/Profile/index.d.ts +3 -7
  50. package/dist/Components/Profile/itemFunctions.d.ts +5 -0
  51. package/dist/Components/Templates/AttestationForm.d.ts +4 -0
  52. package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
  53. package/dist/Components/Templates/DialogModal.d.ts +3 -1
  54. package/dist/Components/Templates/EmojiPicker.d.ts +8 -0
  55. package/dist/Components/Templates/ItemCard.d.ts +8 -0
  56. package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
  57. package/dist/Components/Templates/SelectUser.d.ts +3 -0
  58. package/dist/Components/Templates/index.d.ts +3 -3
  59. package/dist/Utils/ReverseGeocoder.d.ts +1 -0
  60. package/dist/index.d.ts +4 -4
  61. package/dist/index.js +3119 -2257
  62. package/dist/index.js.map +1 -1
  63. package/dist/types.d.ts +23 -1
  64. package/package.json +2 -2
  65. package/LICENSE.md +0 -5
  66. package/dist/Components/Auth/LoginPage copy.d.ts +0 -2
  67. package/dist/Components/Auth/ResetPasswordPage.d.ts +0 -2
  68. package/dist/Components/Auth/Signuppage.d.ts +0 -2
  69. package/dist/Components/Map/Subcomponents/Control.d.ts +0 -5
  70. package/dist/Components/Map/Subcomponents/FilterControl.d.ts +0 -2
  71. package/dist/Components/Map/Subcomponents/LayerControl.d.ts +0 -2
  72. package/dist/Components/Map/Subcomponents/QuestControl.d.ts +0 -2
  73. package/dist/Components/Profile/AvatarWidget.d.ts +0 -5
  74. package/dist/Components/Profile/Editor.d.ts +0 -4
  75. package/dist/Components/Profile/OverlayItemProfile.d.ts +0 -1
  76. package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +0 -1
  77. package/dist/Components/Profile/OverlayProfile.d.ts +0 -1
  78. package/dist/Components/Profile/OverlayProfileSettings.d.ts +0 -1
  79. package/dist/Components/Profile/OverlayUserSettings.d.ts +0 -1
  80. package/dist/Components/Profile/PlusButton.d.ts +0 -5
  81. package/dist/Components/Profile/ProfileSettings.d.ts +0 -3
  82. package/dist/Components/Profile/Settings.d.ts +0 -4
  83. package/dist/Components/Profile/Tags.d.ts +0 -2
  84. package/dist/Components/Templates/ItemViewPage.d.ts +0 -14
  85. package/dist/Components/Templates/ItemsIndexPage.d.ts +0 -18
  86. package/dist/Components/Templates/MapOverlayScreen.d.ts +0 -4
  87. package/dist/Utils/DynamicHeroIcon.d.ts +0 -7
  88. package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +0 -8
  89. package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +0 -6
  90. package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +0 -4
  91. package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +0 -4
  92. package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +0 -12
  93. package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +0 -7
  94. package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +0 -13
  95. package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +0 -3
  96. package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +0 -1
  97. package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +0 -3
  98. package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +0 -1
  99. package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +0 -1
  100. package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +0 -5
  101. package/dist/workspace/utopia-ui/src/Components/Auth/useAuth.d.ts +0 -26
  102. package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +0 -5
  103. package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +0 -1
  104. package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +0 -13
  105. package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +0 -2
  106. package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +0 -7
  107. package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +0 -16
  108. package/dist/workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts +0 -12
  109. package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +0 -14
  110. package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +0 -3
  111. package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +0 -18
  112. package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +0 -16
  113. package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +0 -2
  114. package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +0 -6
  115. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +0 -4
  116. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
  117. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
  118. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
  119. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
  120. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -3
  121. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
  122. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -11
  123. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -7
  124. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -8
  125. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -4
  126. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
  127. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
  128. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
  129. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -6
  130. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -9
  131. package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +0 -5
  132. package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +0 -11
  133. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +0 -1
  134. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +0 -32
  135. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +0 -26
  136. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +0 -14
  137. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +0 -22
  138. package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +0 -20
  139. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +0 -22
  140. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +0 -4
  141. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +0 -4
  142. package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +0 -12
  143. package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +0 -6
  144. package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +0 -4
  145. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +0 -1
  146. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +0 -1
  147. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +0 -1
  148. package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +0 -3
  149. package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +0 -6
  150. package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +0 -3
  151. package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +0 -5
  152. package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +0 -2
  153. package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +0 -10
  154. package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +0 -5
  155. package/dist/workspace/utopia-ui/src/Components/Templates/DialogModal.d.ts +0 -10
  156. package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +0 -15
  157. package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +0 -7
  158. package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +0 -1
  159. package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +0 -6
  160. package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +0 -11
  161. package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +0 -6
  162. package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +0 -5
  163. package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +0 -6
  164. package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +0 -2
  165. package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +0 -1
  166. package/dist/workspace/utopia-ui/src/Utils/HashTagRegex.d.ts +0 -1
  167. package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +0 -3
  168. package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +0 -7
  169. package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +0 -1
  170. package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +0 -3
  171. package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +0 -1
  172. package/dist/workspace/utopia-ui/src/index.d.ts +0 -13
  173. package/dist/workspace/utopia-ui/src/types.d.ts +0 -108
  174. /package/dist/Components/Profile/{ColorPicker.d.ts → Subcomponents/ColorPicker.d.ts} +0 -0
  175. /package/dist/Components/Profile/{TagsWidget.d.ts → Subcomponents/TagsWidget.d.ts} +0 -0
  176. /package/dist/Components/Profile/{useClickOutside.d.ts → hooks/useClickOutside.d.ts} +0 -0
package/dist/types.d.ts CHANGED
@@ -7,8 +7,13 @@ export interface UtopiaMapProps {
7
7
  zoom?: number;
8
8
  tags?: Tag[];
9
9
  children?: React.ReactNode;
10
+ geo?: any;
11
+ showFilterControl?: boolean;
12
+ showLayerControl?: boolean;
13
+ showGratitudeControl?: boolean;
10
14
  }
11
15
  export interface LayerProps {
16
+ id?: string;
12
17
  data?: Item[];
13
18
  children?: React.ReactNode;
14
19
  name: string;
@@ -18,8 +23,11 @@ export interface LayerProps {
18
23
  markerIcon: string;
19
24
  markerShape: string;
20
25
  markerDefaultColor: string;
26
+ markerDefaultColor2?: string;
21
27
  api?: ItemsApi<any>;
28
+ itemType: ItemType;
22
29
  itemNameField?: string;
30
+ itemSubnameField?: string;
23
31
  itemTextField?: string;
24
32
  itemAvatarField?: string;
25
33
  itemColorField?: string;
@@ -31,9 +39,17 @@ export interface LayerProps {
31
39
  itemNeedsField?: string;
32
40
  onlyOnePerOwner?: boolean;
33
41
  customEditLink?: string;
42
+ customEditParameter?: string;
43
+ public_edit_items?: boolean;
44
+ listed?: boolean;
45
+ item_presets?: Record<string, unknown>;
34
46
  setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
35
47
  itemFormPopup?: ItemFormPopupProps | null;
36
- clusterRef?: React.MutableRefObject<any>;
48
+ clusterRef?: any;
49
+ }
50
+ export interface ItemType {
51
+ name: string;
52
+ [key: string]: any;
37
53
  }
38
54
  export declare class Item {
39
55
  id: string;
@@ -48,6 +64,9 @@ export declare class Item {
48
64
  tags?: string[];
49
65
  layer?: LayerProps;
50
66
  relations?: Relation[];
67
+ parent?: string;
68
+ subname?: string;
69
+ public_edit?: boolean;
51
70
  [key: string]: any;
52
71
  constructor(id: string, name: string, text: string, position: Geometry, layer?: LayerProps, api?: ItemsApi<any>);
53
72
  }
@@ -104,6 +123,9 @@ export declare type PermissionCondition = {
104
123
  user_created?: {
105
124
  _eq: string;
106
125
  };
126
+ public_edit?: {
127
+ _eq: boolean;
128
+ };
107
129
  };
108
130
  export declare type Permission = {
109
131
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utopia-ui",
3
- "version": "3.0.0-alpha.98",
3
+ "version": "3.0.0",
4
4
  "description": "Reuseable React Components to build mapping apps for real life communities and networks",
5
5
  "repository": "https://github.com/utopia-os/utopia-ui",
6
6
  "homepage:": "https://utopia-os.org/",
@@ -18,7 +18,7 @@
18
18
  "license": "MIT",
19
19
  "devDependencies": {
20
20
  "@types/leaflet": "^1.7.11",
21
- "@types/react": "^18.0.14",
21
+ "@types/react": "^18.2.0",
22
22
  "@types/react-dom": "^18.0.5",
23
23
  "@types/react-leaflet": "^2.8.2",
24
24
  "@typescript-eslint/eslint-plugin": "^5.38.1",
package/LICENSE.md DELETED
@@ -1,5 +0,0 @@
1
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2
-
3
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4
-
5
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function LoginPage(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function ResetPasswordPage(reset_url: any): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function SignupPage(): JSX.Element;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export declare const Control: ({ position, children }: {
3
- position: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
4
- children: React.ReactNode;
5
- }) => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const FilterControl: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function LayerControl(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function QuestControl(): JSX.Element;
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- export declare const AvatarWidget: ({ avatar, setAvatar }: {
3
- avatar: string;
4
- setAvatar: React.Dispatch<React.SetStateAction<string>>;
5
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare function TextEditor({ value, updateFormValue }: {
2
- value: string;
3
- updateFormValue: (string: any) => void;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function OverlayItemProfile(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function OverlayItemProfileSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function OverlayProfile(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function OverlayProfileSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function OverlayUserSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare function PlusButton({ triggerAction, color, collection }: {
2
- triggerAction: any;
3
- color: string;
4
- collection?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import 'react-image-crop/dist/ReactCrop.css';
2
- import 'react-toastify/dist/ReactToastify.css';
3
- export declare function ProfileSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import 'react-image-crop/dist/ReactCrop.css';
3
- import 'react-toastify/dist/ReactToastify.css';
4
- export declare function Settings(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Tags: () => JSX.Element;
@@ -1,14 +0,0 @@
1
- import { ItemsApi } from "../../types";
2
- declare type breadcrumb = {
3
- name: string;
4
- path: string;
5
- };
6
- export declare const ItemViewPage: ({ api, parents, itemNameField, itemTextField, itemImageField, itemSymbolField }: {
7
- api: ItemsApi<any>;
8
- parents: Array<breadcrumb>;
9
- itemNameField: string;
10
- itemTextField: string;
11
- itemImageField: string;
12
- itemSymbolField: string;
13
- }) => import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,18 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ItemsApi } from '../../types';
3
- declare type breadcrumb = {
4
- name: string;
5
- path: string;
6
- };
7
- export declare const ItemsIndexPage: ({ api, url, parameterField, breadcrumbs, itemNameField, itemTextField, itemImageField, itemSymbolField, children }: {
8
- api: ItemsApi<any>;
9
- url: string;
10
- parameterField: string;
11
- breadcrumbs: Array<breadcrumb>;
12
- itemNameField: string;
13
- itemTextField: string;
14
- itemImageField: string;
15
- itemSymbolField: string;
16
- children?: ReactNode;
17
- }) => import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- export declare function MapOverlayScreen({ children }: {
3
- children: React.ReactNode;
4
- }): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- declare const DynamicHeroIcon: FC<{
3
- icon: string;
4
- type?: "solid" | "outline";
5
- className?: string;
6
- }>;
7
- export default DynamicHeroIcon;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { AssetsApi } from '../../types';
3
- export declare function AppShell({ appName, nameWidth, children, assetsApi }: {
4
- appName: string;
5
- nameWidth?: number;
6
- children: React.ReactNode;
7
- assetsApi: AssetsApi;
8
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- declare type ContentProps = {
3
- children?: React.ReactNode;
4
- };
5
- export declare function Content({ children }: ContentProps): JSX.Element;
6
- export {};
@@ -1,4 +0,0 @@
1
- export default function NavBar({ appName, nameWidth }: {
2
- appName: string;
3
- nameWidth?: number;
4
- }): JSX.Element;
@@ -1,4 +0,0 @@
1
- import { AssetsApi } from '../../types';
2
- export declare const SetAssetsApi: ({ assetsApi }: {
3
- assetsApi: AssetsApi;
4
- }) => JSX.Element;
@@ -1,12 +0,0 @@
1
- declare type route = {
2
- path: string;
3
- icon: JSX.Element;
4
- name: string;
5
- submenu?: route;
6
- blank?: boolean;
7
- };
8
- export declare function SideBar({ routes, bottomRoutes }: {
9
- routes: route[];
10
- bottomRoutes?: route[];
11
- }): JSX.Element;
12
- export {};
@@ -1,7 +0,0 @@
1
- declare function SidebarSubmenu({ submenu, name, icon }: {
2
- path: string;
3
- icon: JSX.Element;
4
- name: string;
5
- submenu?: any | undefined;
6
- }): JSX.Element;
7
- export default SidebarSubmenu;
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { AssetsApi } from '../../../types';
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 {};
@@ -1,3 +0,0 @@
1
- export { AppShell } from "./AppShell";
2
- export { SideBar } from "./SideBar";
3
- export { Content } from "./Content";
@@ -1 +0,0 @@
1
- export declare function LoginPage(): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function RequestPasswordPage({ reset_url }: {
2
- reset_url: any;
3
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function SetNewPasswordPage(): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function SignupPage(): JSX.Element;
@@ -1,5 +0,0 @@
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';
@@ -1,26 +0,0 @@
1
- import * as React from "react";
2
- import { UserApi, UserItem } from "../../types";
3
- declare type AuthProviderProps = {
4
- userApi: UserApi;
5
- children?: React.ReactNode;
6
- };
7
- declare type AuthCredentials = {
8
- email: string;
9
- password: string;
10
- otp?: string | undefined;
11
- };
12
- declare type AuthContextProps = {
13
- isAuthenticated: boolean;
14
- user: UserItem | null;
15
- login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
16
- register: (credentials: AuthCredentials, userName: string) => Promise<UserItem | undefined>;
17
- loading: Boolean;
18
- logout: () => Promise<any>;
19
- updateUser: (user: UserItem) => any;
20
- token: String | null;
21
- requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
22
- passwordReset: (token: string, new_password: string) => Promise<any>;
23
- };
24
- export declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => JSX.Element;
25
- export declare const useAuth: () => AuthContextProps;
26
- export {};
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- export declare function Modal({ children, showOnStartup }: {
3
- children: React.ReactNode;
4
- showOnStartup?: boolean;
5
- }): JSX.Element;
@@ -1 +0,0 @@
1
- export declare function Quests(): JSX.Element;
@@ -1,13 +0,0 @@
1
- import * as React from "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 {};
@@ -1,2 +0,0 @@
1
- export { Modal } from './Modal';
2
- export { Quests } from './Quests';
@@ -1,7 +0,0 @@
1
- export declare const Autocomplete: ({ inputProps, suggestions, onSelected, pushFilteredSuggestions, setFocus }: {
2
- inputProps: any;
3
- suggestions: Array<any>;
4
- onSelected: (suggestion: any) => void;
5
- pushFilteredSuggestions?: any[] | undefined;
6
- setFocus?: boolean | undefined;
7
- }) => JSX.Element;
@@ -1,16 +0,0 @@
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): JSX.Element;
16
- export {};
@@ -1,12 +0,0 @@
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
- updateFormValue?: (value: string) => void;
10
- };
11
- export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): JSX.Element;
12
- export {};
@@ -1,14 +0,0 @@
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
- updateFormValue?: (value: string) => void;
12
- };
13
- export declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, updateFormValue }: InputTextProps): JSX.Element;
14
- export {};
@@ -1,3 +0,0 @@
1
- export { TextAreaInput } from "./TextAreaInput";
2
- export { TextInput } from "./TextInput";
3
- export { SelectBox } from "./SelectBox";
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { Item } from '../../types';
3
- import * as PropTypes from 'prop-types';
4
- export declare const ItemForm: {
5
- ({ children, item, title, setPopupTitle }: {
6
- children?: React.ReactNode;
7
- item?: Item | undefined;
8
- title?: string | undefined;
9
- setPopupTitle?: React.Dispatch<React.SetStateAction<string>> | undefined;
10
- }): JSX.Element;
11
- propTypes: {
12
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
- __TYPE: PropTypes.Requireable<string>;
14
- };
15
- defaultProps: {
16
- __TYPE: string;
17
- };
18
- };
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { Item } from '../../types';
3
- import * as PropTypes from 'prop-types';
4
- export declare const ItemView: {
5
- ({ children, item }: {
6
- children?: React.ReactNode;
7
- item?: Item | undefined;
8
- }): JSX.Element;
9
- propTypes: {
10
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
- __TYPE: PropTypes.Requireable<string>;
12
- };
13
- defaultProps: {
14
- __TYPE: string;
15
- };
16
- };
@@ -1,2 +0,0 @@
1
- import { LayerProps } from '../../types';
2
- export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, api, itemNameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, itemTagsField, itemOffersField, itemNeedsField, onlyOnePerOwner, customEditLink, setItemFormPopup, itemFormPopup, clusterRef }: LayerProps) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import { ItemsApi, Permission } from '../../types';
2
- export declare function Permissions({ data, api, adminRole }: {
3
- data?: Permission[];
4
- api?: ItemsApi<Permission>;
5
- adminRole?: string;
6
- }): JSX.Element;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- export default function AddButton({ setSelectNewItemPosition }: {
3
- setSelectNewItemPosition: React.Dispatch<React.SetStateAction<any>>;
4
- }): JSX.Element;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export declare const Control: ({ position, children, zIndex }: {
3
- position: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
4
- children: React.ReactNode;
5
- zIndex: string;
6
- }) => JSX.Element;
@@ -1 +0,0 @@
1
- export declare function LayerControl(): JSX.Element;
@@ -1,3 +0,0 @@
1
- import 'leaflet.locatecontrol';
2
- import 'leaflet.locatecontrol/dist/L.Control.Locate.css';
3
- export declare const LocateControl: () => JSX.Element;
@@ -1 +0,0 @@
1
- export declare function QuestControl(): JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const SearchControl: ({ clusterRef }: {
2
- clusterRef: any;
3
- }) => JSX.Element;
@@ -1 +0,0 @@
1
- export declare const TagsControl: () => JSX.Element;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { LatLng } from 'leaflet';
3
- import { LayerProps, Item } from '../../../types';
4
- export interface ItemFormPopupProps {
5
- position: LatLng;
6
- layer: LayerProps;
7
- item?: Item;
8
- children?: React.ReactNode;
9
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
10
- }
11
- export declare function ItemFormPopup(props: ItemFormPopupProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { ItemFormPopupProps } from "../ItemFormPopup";
3
- import { Item } from "../../../../types";
4
- export declare function HeaderView({ item, setItemFormPopup }: {
5
- item: Item;
6
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
7
- }): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { Item } from '../../../../types';
2
- export declare const PopupButton: ({ url, parameterField, text, colorField, item }: {
3
- url: string;
4
- parameterField?: string | undefined;
5
- text: string;
6
- colorField?: string | undefined;
7
- item?: Item | undefined;
8
- }) => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Item } from '../../../../types';
2
- export declare const PopupStartEndInput: ({ item }: {
3
- item?: Item | undefined;
4
- }) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Item } from '../../../../types';
2
- export declare const PopupTextAreaInput: ({ dataField, placeholder, style, item }: {
3
- dataField: string;
4
- placeholder: string;
5
- style?: string | undefined;
6
- item?: Item | undefined;
7
- }) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Item } from '../../../../types';
2
- export declare const PopupTextInput: ({ dataField, placeholder, style, item }: {
3
- dataField: string;
4
- placeholder: string;
5
- style?: string | undefined;
6
- item?: Item | undefined;
7
- }) => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Item } from '../../../../types';
2
- export declare const StartEndView: ({ item }: {
3
- item?: Item | undefined;
4
- }) => JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Item } from '../../../../types';
2
- export declare const TextView: ({ item, truncate, itemTextField }: {
3
- item?: Item | undefined;
4
- truncate?: boolean | undefined;
5
- itemTextField?: string | undefined;
6
- }) => JSX.Element;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { Item } from '../../../types';
3
- import { ItemFormPopupProps } from './ItemFormPopup';
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: React.ForwardRefExoticComponent<ItemViewPopupProps & React.RefAttributes<unknown>>;
@@ -1,5 +0,0 @@
1
- import { ItemsApi, Tag } from '../../types';
2
- export declare function Tags({ data, api }: {
3
- data?: Tag[];
4
- api?: ItemsApi<Tag>;
5
- }): JSX.Element;
@@ -1,11 +0,0 @@
1
- import "leaflet/dist/leaflet.css";
2
- import * as React from "react";
3
- import { LayerProps, UtopiaMapProps } from "../../types";
4
- import "./UtopiaMap.css";
5
- export interface MapEventListenerProps {
6
- selectNewItemPosition: LayerProps | null;
7
- setSelectNewItemPosition: React.Dispatch<any>;
8
- setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
9
- }
10
- declare function UtopiaMap({ height, width, center, zoom, children }: UtopiaMapProps): JSX.Element;
11
- export { UtopiaMap };
@@ -1 +0,0 @@
1
- export declare const useDebounce: (callback: any, delay: any, deps: any) => void;