utopia-ui 3.0.58 → 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 (195) 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 +41 -220
  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/AppShell/AppShell.d.ts +1 -1
  144. package/dist/types/src/Components/AppShell/SetAppState.d.ts +1 -1
  145. package/dist/types/src/Components/AppShell/hooks/useAppState.d.ts +1 -1
  146. package/dist/types/src/Components/AppShell/hooks/useAssets.d.ts +1 -1
  147. package/dist/types/src/Components/Auth/useAuth.d.ts +2 -2
  148. package/dist/types/src/Components/Map/ItemForm.d.ts +1 -1
  149. package/dist/types/src/Components/Map/ItemView.d.ts +1 -1
  150. package/dist/types/src/Components/Map/Layer.d.ts +1 -1
  151. package/dist/types/src/Components/Map/Permissions.d.ts +2 -2
  152. package/dist/types/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -1
  153. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +2 -2
  154. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
  155. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
  156. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -1
  157. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
  158. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
  159. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -1
  160. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
  161. package/dist/types/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +2 -2
  162. package/dist/types/src/Components/Map/Tags.d.ts +2 -2
  163. package/dist/types/src/Components/Map/UtopiaMap.d.ts +2 -2
  164. package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +2 -2
  165. package/dist/types/src/Components/Map/hooks/useFilter.d.ts +2 -2
  166. package/dist/types/src/Components/Map/hooks/useItems.d.ts +2 -2
  167. package/dist/types/src/Components/Map/hooks/useLayers.d.ts +1 -1
  168. package/dist/types/src/Components/Map/hooks/useLeafletRefs.d.ts +1 -1
  169. package/dist/types/src/Components/Map/hooks/usePermissions.d.ts +5 -5
  170. package/dist/types/src/Components/Map/hooks/useSelectPosition.d.ts +3 -3
  171. package/dist/types/src/Components/Map/hooks/useTags.d.ts +3 -3
  172. package/dist/types/src/Components/Profile/ProfileView.d.ts +1 -1
  173. package/dist/types/src/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -1
  174. package/dist/types/src/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -1
  175. package/dist/types/src/Components/Profile/Subcomponents/ContactInfoView.d.ts +1 -1
  176. package/dist/types/src/Components/Profile/Subcomponents/GalleryView.d.ts +1 -1
  177. package/dist/types/src/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +1 -1
  178. package/dist/types/src/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +2 -2
  179. package/dist/types/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -1
  180. package/dist/types/src/Components/Profile/Subcomponents/PlusButton.d.ts +1 -1
  181. package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +1 -1
  182. package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +1 -1
  183. package/dist/types/src/Components/Profile/Subcomponents/ProfileTextForm.d.ts +1 -1
  184. package/dist/types/src/Components/Profile/Subcomponents/ProfileTextView.d.ts +1 -1
  185. package/dist/types/src/Components/Profile/Templates/FlexForm.d.ts +2 -2
  186. package/dist/types/src/Components/Profile/Templates/FlexView.d.ts +1 -1
  187. package/dist/types/src/Components/Profile/Templates/OnepagerForm.d.ts +2 -2
  188. package/dist/types/src/Components/Profile/Templates/OnepagerView.d.ts +1 -1
  189. package/dist/types/src/Components/Profile/Templates/SimpleView.d.ts +1 -1
  190. package/dist/types/src/Components/Profile/Templates/TabsView.d.ts +2 -2
  191. package/dist/types/src/Components/Templates/AttestationForm.d.ts +1 -1
  192. package/dist/types/src/Components/Templates/DateUserInfo.d.ts +1 -1
  193. package/dist/types/src/Components/Templates/ItemCard.d.ts +1 -1
  194. package/dist/types/src/Components/Templates/TagView.d.ts +1 -1
  195. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,35 +1,42 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { UtopiaMapProps as UtopiaMapProps$1 } from '#src/types/UtopiaMapProps';
3
- import { LayerProps as LayerProps$1 } from '#src/types/LayerProps';
4
- import { ItemsApi as ItemsApi$1 } from '#src/types/ItemsApi';
5
- import { Tag as Tag$1 } from '#src/types/Tag';
6
- import { Permission as Permission$1 } from '#src/types/Permission';
7
- import * as prop_types from 'prop-types';
8
- import { Item as Item$1 } from '#src/types/Item';
9
- import { AssetsApi as AssetsApi$1 } from '#src/types/AssetsApi';
10
- import { UserApi as UserApi$1 } from '#src/types/UserApi';
11
- import { LatLng } from 'leaflet';
12
- import { Geometry, Point, GeoJsonObject } from 'geojson';
13
-
14
- declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps$1): react_jsx_runtime.JSX.Element;
15
-
16
- declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, itemNameField, itemSubnameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, itemTagsField, itemOffersField, itemNeedsField, onlyOnePerOwner, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef, }: LayerProps$1) => react_jsx_runtime.JSX.Element;
1
+ import * as react_jsx_runtime from '/home/fritz/workspace/utopia-os/utopia-ui/node_modules/@types/react/jsx-runtime.d.ts';
2
+ import { UtopiaMapProps } from './types/UtopiaMapProps.js';
3
+ export { UtopiaMapProps } from './types/UtopiaMapProps.js';
4
+ import { LayerProps } from './types/LayerProps.js';
5
+ export { LayerProps } from './types/LayerProps.js';
6
+ import { ItemsApi } from './types/ItemsApi.js';
7
+ export { ItemsApi } from './types/ItemsApi.js';
8
+ import { Tag } from './types/Tag.js';
9
+ export { Tag } from './types/Tag.js';
10
+ import { Permission } from './types/Permission.js';
11
+ export { Permission } from './types/Permission.js';
12
+ import * as prop_types from '/home/fritz/workspace/utopia-os/utopia-ui/node_modules/@types/prop-types/index.d.ts';
13
+ import { Item } from './types/Item.js';
14
+ export { Item } from './types/Item.js';
15
+ import { AssetsApi } from './types/AssetsApi.js';
16
+ export { AssetsApi } from './types/AssetsApi.js';
17
+ import { UserApi } from './types/UserApi.js';
18
+ export { UserApi } from './types/UserApi.js';
19
+ export { UserItem } from './types/UserItem.js';
20
+
21
+ declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, donationWidget, }: UtopiaMapProps): react_jsx_runtime.JSX.Element;
22
+
23
+ declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, itemNameField, itemSubnameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, itemTagsField, itemOffersField, itemNeedsField, onlyOnePerOwner, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef, }: LayerProps) => react_jsx_runtime.JSX.Element;
17
24
 
18
25
  declare function Tags({ data, api }: {
19
- data?: Tag$1[];
20
- api?: ItemsApi$1<Tag$1>;
26
+ data?: Tag[];
27
+ api?: ItemsApi<Tag>;
21
28
  }): react_jsx_runtime.JSX.Element;
22
29
 
23
30
  declare function Permissions({ data, api, adminRole, }: {
24
- data?: Permission$1[];
25
- api?: ItemsApi$1<Permission$1>;
31
+ data?: Permission[];
32
+ api?: ItemsApi<Permission>;
26
33
  adminRole?: string;
27
34
  }): react_jsx_runtime.JSX.Element;
28
35
 
29
36
  declare const ItemForm: {
30
37
  ({ children, item, title, setPopupTitle, }: {
31
38
  children?: React.ReactNode;
32
- item?: Item$1;
39
+ item?: Item;
33
40
  title?: string;
34
41
  setPopupTitle?: React.Dispatch<React.SetStateAction<string>>;
35
42
  }): react_jsx_runtime.JSX.Element;
@@ -45,7 +52,7 @@ declare const ItemForm: {
45
52
  declare const ItemView: {
46
53
  ({ children, item }: {
47
54
  children?: React.ReactNode;
48
- item?: Item$1;
55
+ item?: Item;
49
56
  }): react_jsx_runtime.JSX.Element;
50
57
  propTypes: {
51
58
  children: prop_types.Requireable<prop_types.ReactNodeLike>;
@@ -60,11 +67,11 @@ declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
60
67
  dataField: string;
61
68
  placeholder: string;
62
69
  style?: string;
63
- item?: Item$1;
70
+ item?: Item;
64
71
  }) => react_jsx_runtime.JSX.Element;
65
72
 
66
73
  interface StartEndInputProps {
67
- item?: Item$1;
74
+ item?: Item;
68
75
  showLabels?: boolean;
69
76
  updateStartValue?: (value: string) => void;
70
77
  updateEndValue?: (value: string) => void;
@@ -75,24 +82,24 @@ declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
75
82
  dataField: string;
76
83
  placeholder: string;
77
84
  style?: string;
78
- item?: Item$1;
85
+ item?: Item;
79
86
  }) => react_jsx_runtime.JSX.Element;
80
87
 
81
88
  declare const PopupCheckboxInput: ({ dataField, label, item, }: {
82
89
  dataField: string;
83
90
  label: string;
84
- item?: Item$1;
91
+ item?: Item;
85
92
  }) => react_jsx_runtime.JSX.Element;
86
93
 
87
94
  declare const TextView: ({ item, truncate, itemTextField, rawText, }: {
88
- item?: Item$1;
95
+ item?: Item;
89
96
  truncate?: boolean;
90
97
  itemTextField?: string;
91
98
  rawText?: string;
92
99
  }) => react_jsx_runtime.JSX.Element;
93
100
 
94
101
  declare const StartEndView: ({ item }: {
95
- item?: Item$1;
102
+ item?: Item;
96
103
  }) => react_jsx_runtime.JSX.Element;
97
104
 
98
105
  declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
@@ -100,13 +107,13 @@ declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
100
107
  parameterField?: string;
101
108
  text: string;
102
109
  colorField?: string;
103
- item?: Item$1;
110
+ item?: Item;
104
111
  }) => react_jsx_runtime.JSX.Element;
105
112
 
106
113
  declare function AppShell({ appName, children, assetsApi, userType, }: {
107
114
  appName: string;
108
115
  children: React.ReactNode;
109
- assetsApi: AssetsApi$1;
116
+ assetsApi: AssetsApi;
110
117
  userType: string;
111
118
  }): react_jsx_runtime.JSX.Element;
112
119
 
@@ -132,7 +139,7 @@ declare const Sitemap: ({ url }: {
132
139
  }) => react_jsx_runtime.JSX.Element;
133
140
 
134
141
  interface AuthProviderProps {
135
- userApi: UserApi$1;
142
+ userApi: UserApi;
136
143
  children?: React.ReactNode;
137
144
  }
138
145
  declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => react_jsx_runtime.JSX.Element;
@@ -150,7 +157,7 @@ declare function SetNewPasswordPage(): react_jsx_runtime.JSX.Element;
150
157
  declare function UserSettings(): react_jsx_runtime.JSX.Element;
151
158
 
152
159
  declare function ProfileView({ attestationApi }: {
153
- attestationApi?: ItemsApi$1<any>;
160
+ attestationApi?: ItemsApi<any>;
154
161
  }): react_jsx_runtime.JSX.Element;
155
162
 
156
163
  declare function ProfileForm(): react_jsx_runtime.JSX.Element;
@@ -201,7 +208,7 @@ declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButt
201
208
  }) => react_jsx_runtime.JSX.Element;
202
209
 
203
210
  declare const AttestationForm: ({ api }: {
204
- api?: ItemsApi$1<unknown>;
211
+ api?: ItemsApi<unknown>;
205
212
  }) => react_jsx_runtime.JSX.Element;
206
213
 
207
214
  declare const MarketView: () => react_jsx_runtime.JSX.Element;
@@ -251,192 +258,6 @@ type SelectBoxProps = {
251
258
  };
252
259
  declare function SelectBox(props: SelectBoxProps): react_jsx_runtime.JSX.Element;
253
260
 
254
- interface ItemsApi<T> {
255
- getItems(): Promise<T[]>
256
- getItem?(id: string): Promise<T>
257
- createItem?(item: T): Promise<T>
258
- updateItem?(item: T): Promise<T>
259
- deleteItem?(id: string): Promise<boolean>
260
- collectionName?: string
261
- }
262
-
263
- interface Tag {
264
- color: string
265
- id: string
266
- name: string
267
- offer_or_need?: boolean
268
- }
269
-
270
- interface ItemFormPopupProps {
271
- position: LatLng
272
- layer: LayerProps
273
- item?: Item
274
- children?: React.ReactNode
275
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
276
- }
277
-
278
- interface ItemType {
279
- name: string
280
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
281
- [key: string]: any
282
- }
283
-
284
- interface LayerProps {
285
- id?: string
286
- data?: Item[]
287
- children?: React.ReactNode
288
- name: string
289
- menuIcon: string
290
- menuColor: string
291
- menuText: string
292
- markerIcon: string
293
- markerShape: string
294
- markerDefaultColor: string
295
- markerDefaultColor2?: string
296
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
297
- api?: ItemsApi<any>
298
- itemType: ItemType
299
- itemNameField?: string
300
- itemSubnameField?: string
301
- itemTextField?: string
302
- itemAvatarField?: string
303
- itemColorField?: string
304
- itemOwnerField?: string
305
- itemTagsField?: string
306
- itemLatitudeField?: string
307
- itemLongitudeField?: string
308
- itemOffersField?: string
309
- itemNeedsField?: string
310
- onlyOnePerOwner?: boolean
311
- customEditLink?: string
312
- customEditParameter?: string
313
- public_edit_items?: boolean
314
- listed?: boolean
315
- item_presets?: Record<string, unknown>
316
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
317
- itemFormPopup?: ItemFormPopupProps | null
318
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
319
- clusterRef?: any
320
- }
321
-
322
- interface Relation {
323
- related_items_id: string
324
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
325
- [key: string]: any
326
- }
327
-
328
- interface Profile {
329
- id?: string
330
- avatar?: string
331
- color?: string
332
- name: string
333
- text: string
334
- geoposition?: Geometry
335
- }
336
-
337
- interface UserItem {
338
- id?: string
339
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
340
- role?: any
341
- email?: string
342
- password?: string
343
- profile?: Profile
344
- first_name?: string
345
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
346
- [key: string]: any
347
- }
348
-
349
- interface Item {
350
- id: string
351
- name: string
352
- text: string
353
- position?: Point
354
- date_created?: string
355
- date_updated?: string | null
356
- start?: string
357
- end?: string
358
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
359
- api?: ItemsApi<any>
360
- tags?: string[]
361
- layer?: LayerProps
362
- relations?: Relation[]
363
- parent?: string
364
- subname?: string
365
- public_edit?: boolean
366
- slug?: string
367
- user_created?: UserItem
368
- image?: string
369
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
370
- [key: string]: any
371
- /* constructor(
372
- id: string,
373
- name: string,
374
- text: string,
375
- position: Geometry,
376
- layer?: LayerProps,
377
- api?: ItemsApi<any>,
378
- ) {
379
- this.id = id
380
- this.name = name
381
- this.text = text
382
- this.position = position
383
- this.layer = layer
384
- this.api = api
385
- } */
386
- }
387
-
388
- type PermissionAction = 'create' | 'read' | 'update' | 'delete'
389
-
390
- interface PermissionCondition {
391
- user_created?: {
392
- _eq: string // Erwartet den speziellen Wert "$CURRENT_USER" oder eine spezifische UUID
393
- }
394
- public_edit?: {
395
- _eq: boolean // Erwartet den speziellen Wert "$CURRENT_USER" oder eine spezifische UUID
396
- }
397
- }
398
-
399
- interface Permission {
400
- id?: string
401
- policy?: { name: string }
402
- collection: string
403
- action: PermissionAction
404
- permissions?: {
405
- // Optional, für spezifische Bedingungen wie `user_created`
406
- _and: PermissionCondition[]
407
- }
408
- }
409
-
410
- interface UserApi {
411
- register(email: string, password: string, userName: string): Promise<void>
412
- login(email: string, password: string): Promise<UserItem | undefined>
413
- logout(): Promise<void>
414
- getUser(): Promise<UserItem>
415
- getToken(): Promise<string | null>
416
- updateUser(user: UserItem): Promise<void>
417
- requestPasswordReset(email: string, reset_url?: string)
418
- passwordReset(token: string, new_password: string)
419
- }
420
-
421
- interface UtopiaMapProps {
422
- height?: string
423
- width?: string
424
- center?: [number, number]
425
- zoom?: number
426
- tags?: Tag[]
427
- children?: React.ReactNode
428
- geo?: GeoJsonObject
429
- showFilterControl?: boolean
430
- showLayerControl?: boolean
431
- showGratitudeControl?: boolean
432
- infoText?: string
433
- }
434
-
435
- interface AssetsApi {
436
- upload(file: Blob, title: string): Promise<{ id: string }>
437
- url: string
438
- }
439
-
440
261
  declare global {
441
262
  interface Window {
442
263
  my_modal_3: {
@@ -445,4 +266,4 @@ declare global {
445
266
  }
446
267
  }
447
268
 
448
- export { AppShell, type AssetsApi, AttestationForm, AuthProvider, CardPage, Content, type Item, ItemForm, ItemView, type ItemsApi, Layer, type LayerProps, LoginPage, MapOverlayPage, MarketView, Modal, MoonCalendar, OverlayItemsIndexPage, type Permission, Permissions, PopupButton, PopupCheckboxInput, PopupStartEndInput, PopupTextAreaInput, PopupTextInput, ProfileForm, ProfileView, Quests, RequestPasswordPage, SelectBox, SelectUser, SetNewPasswordPage, SideBar, SignupPage, Sitemap, StartEndView, type Tag, Tags, TextAreaInput, TextInput, TextView, TitleCard, type UserApi, type UserItem, UserSettings, UtopiaMap, type UtopiaMapProps };
269
+ export { AppShell, AttestationForm, AuthProvider, CardPage, Content, ItemForm, ItemView, Layer, LoginPage, MapOverlayPage, MarketView, Modal, MoonCalendar, OverlayItemsIndexPage, Permissions, PopupButton, PopupCheckboxInput, PopupStartEndInput, PopupTextAreaInput, PopupTextInput, ProfileForm, ProfileView, Quests, RequestPasswordPage, SelectBox, SelectUser, SetNewPasswordPage, SideBar, SignupPage, Sitemap, StartEndView, Tags, TextAreaInput, TextInput, TextView, TitleCard, UserSettings, UtopiaMap };