utopia-ui 3.0.56 → 3.0.58

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 (138) hide show
  1. package/dist/index.cjs +1 -948
  2. package/dist/index.d.ts +269 -29
  3. package/dist/index.esm.js +1 -948
  4. package/dist/types/setupTest.d.ts +1 -0
  5. package/dist/types/src/Components/AppShell/AppShell.d.ts +7 -0
  6. package/dist/types/src/Components/AppShell/Content.d.ts +5 -0
  7. package/dist/types/src/Components/AppShell/ContextWrapper.d.ts +6 -0
  8. package/dist/types/src/Components/AppShell/NavBar.d.ts +4 -0
  9. package/dist/types/src/Components/AppShell/SetAppState.d.ts +5 -0
  10. package/dist/types/src/Components/AppShell/SideBar.d.ts +12 -0
  11. package/dist/types/src/Components/AppShell/SidebarSubmenu.d.ts +7 -0
  12. package/dist/types/src/Components/AppShell/Sitemap.d.ts +3 -0
  13. package/dist/types/src/Components/AppShell/hooks/useAppState.d.ts +16 -0
  14. package/dist/types/src/Components/AppShell/hooks/useAssets.d.ts +12 -0
  15. package/dist/types/src/Components/AppShell/index.d.ts +4 -0
  16. package/dist/types/src/Components/Auth/LoginPage.d.ts +1 -0
  17. package/dist/types/src/Components/Auth/RequestPasswordPage.d.ts +3 -0
  18. package/dist/types/src/Components/Auth/SetNewPasswordPage.d.ts +1 -0
  19. package/dist/types/src/Components/Auth/SignupPage.d.ts +1 -0
  20. package/dist/types/src/Components/Auth/index.d.ts +5 -0
  21. package/dist/types/src/Components/Auth/useAuth.d.ts +26 -0
  22. package/dist/types/src/Components/Gaming/Modal.d.ts +4 -0
  23. package/dist/types/src/Components/Gaming/Quests.d.ts +1 -0
  24. package/dist/types/src/Components/Gaming/hooks/useQuests.d.ts +12 -0
  25. package/dist/types/src/Components/Gaming/index.d.ts +2 -0
  26. package/dist/types/src/Components/Input/Autocomplete.d.ts +7 -0
  27. package/dist/types/src/Components/Input/ComboBoxInput.d.ts +8 -0
  28. package/dist/types/src/Components/Input/SelectBox.d.ts +16 -0
  29. package/dist/types/src/Components/Input/TextAreaInput.d.ts +13 -0
  30. package/dist/types/src/Components/Input/TextInput.d.ts +16 -0
  31. package/dist/types/src/Components/Input/TextInput.spec.d.ts +1 -0
  32. package/dist/types/src/Components/Input/index.d.ts +3 -0
  33. package/dist/types/src/Components/Map/ItemForm.d.ts +16 -0
  34. package/dist/types/src/Components/Map/ItemView.d.ts +14 -0
  35. package/dist/types/src/Components/Map/Layer.d.ts +2 -0
  36. package/dist/types/src/Components/Map/Permissions.d.ts +7 -0
  37. package/dist/types/src/Components/Map/Subcomponents/AddButton.d.ts +3 -0
  38. package/dist/types/src/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
  39. package/dist/types/src/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
  40. package/dist/types/src/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
  41. package/dist/types/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
  42. package/dist/types/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
  43. package/dist/types/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
  44. package/dist/types/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
  45. package/dist/types/src/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
  46. package/dist/types/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
  47. package/dist/types/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -0
  48. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +18 -0
  49. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
  50. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
  51. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -0
  52. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
  53. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
  54. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
  55. package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +7 -0
  56. package/dist/types/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +8 -0
  57. package/dist/types/src/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
  58. package/dist/types/src/Components/Map/Tags.d.ts +6 -0
  59. package/dist/types/src/Components/Map/UtopiaMap.d.ts +4 -0
  60. package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +4 -0
  61. package/dist/types/src/Components/Map/hooks/useClusterRef.d.ts +11 -0
  62. package/dist/types/src/Components/Map/hooks/useDebounce.d.ts +1 -0
  63. package/dist/types/src/Components/Map/hooks/useFilter.d.ts +40 -0
  64. package/dist/types/src/Components/Map/hooks/useItems.d.ts +26 -0
  65. package/dist/types/src/Components/Map/hooks/useLayers.d.ts +13 -0
  66. package/dist/types/src/Components/Map/hooks/useLeafletRefs.d.ts +21 -0
  67. package/dist/types/src/Components/Map/hooks/usePermissions.d.ts +23 -0
  68. package/dist/types/src/Components/Map/hooks/useSelectPosition.d.ts +23 -0
  69. package/dist/types/src/Components/Map/hooks/useTags.d.ts +23 -0
  70. package/dist/types/src/Components/Map/hooks/useTimeout.d.ts +4 -0
  71. package/dist/types/src/Components/Map/hooks/useWindowDimension.d.ts +4 -0
  72. package/dist/types/src/Components/Map/index.d.ts +13 -0
  73. package/dist/types/src/Components/Map/setItemLocation.d.ts +1 -0
  74. package/dist/types/src/Components/Profile/ProfileForm.d.ts +1 -0
  75. package/dist/types/src/Components/Profile/ProfileView.d.ts +4 -0
  76. package/dist/types/src/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
  77. package/dist/types/src/Components/Profile/Subcomponents/AvatarWidget.d.ts +7 -0
  78. package/dist/types/src/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
  79. package/dist/types/src/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -0
  80. package/dist/types/src/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
  81. package/dist/types/src/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  82. package/dist/types/src/Components/Profile/Subcomponents/GalleryView.d.ts +6 -0
  83. package/dist/types/src/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -0
  84. package/dist/types/src/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +18 -0
  85. package/dist/types/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
  86. package/dist/types/src/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
  87. package/dist/types/src/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
  88. package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -0
  89. package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
  90. package/dist/types/src/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
  91. package/dist/types/src/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
  92. package/dist/types/src/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
  93. package/dist/types/src/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
  94. package/dist/types/src/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
  95. package/dist/types/src/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -0
  96. package/dist/types/src/Components/Profile/Templates/FlexForm.d.ts +7 -0
  97. package/dist/types/src/Components/Profile/Templates/FlexView.d.ts +4 -0
  98. package/dist/types/src/Components/Profile/Templates/OnepagerForm.d.ts +7 -0
  99. package/dist/types/src/Components/Profile/Templates/OnepagerView.d.ts +4 -0
  100. package/dist/types/src/Components/Profile/Templates/SimpleForm.d.ts +4 -0
  101. package/dist/types/src/Components/Profile/Templates/SimpleView.d.ts +4 -0
  102. package/dist/types/src/Components/Profile/Templates/TabsForm.d.ts +10 -0
  103. package/dist/types/src/Components/Profile/Templates/TabsView.d.ts +13 -0
  104. package/dist/types/src/Components/Profile/UserSettings.d.ts +1 -0
  105. package/dist/types/src/Components/Profile/hooks/useClickOutside.d.ts +2 -0
  106. package/dist/types/src/Components/Profile/index.d.ts +4 -0
  107. package/dist/types/src/Components/Profile/itemFunctions.d.ts +5 -0
  108. package/dist/types/src/Components/Templates/AttestationForm.d.ts +4 -0
  109. package/dist/types/src/Components/Templates/CardPage.d.ts +9 -0
  110. package/dist/types/src/Components/Templates/CircleLayout.d.ts +5 -0
  111. package/dist/types/src/Components/Templates/DateUserInfo.d.ts +4 -0
  112. package/dist/types/src/Components/Templates/DialogModal.d.ts +11 -0
  113. package/dist/types/src/Components/Templates/EmojiPicker.d.ts +10 -0
  114. package/dist/types/src/Components/Templates/ItemCard.d.ts +8 -0
  115. package/dist/types/src/Components/Templates/MapOverlayPage.d.ts +6 -0
  116. package/dist/types/src/Components/Templates/MarketView.d.ts +1 -0
  117. package/dist/types/src/Components/Templates/MoonCalendar.d.ts +1 -0
  118. package/dist/types/src/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
  119. package/dist/types/src/Components/Templates/SelectUser.d.ts +1 -0
  120. package/dist/types/src/Components/Templates/TagView.d.ts +7 -0
  121. package/dist/types/src/Components/Templates/TitleCard.d.ts +10 -0
  122. package/dist/types/src/Components/Templates/index.d.ts +8 -0
  123. package/dist/types/src/Components/Typography/ErrorText.d.ts +5 -0
  124. package/dist/types/src/Components/Typography/Subtitle.d.ts +5 -0
  125. package/dist/types/src/Utils/ContainsUUID.d.ts +1 -0
  126. package/dist/types/src/Utils/FormatTags.d.ts +2 -0
  127. package/dist/types/src/Utils/GetValue.d.ts +1 -0
  128. package/dist/types/src/Utils/HashTagRegex.d.ts +1 -0
  129. package/dist/types/src/Utils/MarkerIconFactory.d.ts +2 -0
  130. package/dist/types/src/Utils/Moon.d.ts +7 -0
  131. package/dist/types/src/Utils/RandomColor.d.ts +1 -0
  132. package/dist/types/src/Utils/ReplaceURLs.d.ts +3 -0
  133. package/dist/types/src/Utils/ReverseGeocoder.d.ts +1 -0
  134. package/dist/types/src/Utils/TimeAgo.d.ts +1 -0
  135. package/dist/types/src/index.d.ts +16 -0
  136. package/dist/types/src/types/index.d.ts +9 -0
  137. package/dist/types/vite.config.d.ts +2 -0
  138. package/package.json +6 -5
package/dist/index.d.ts CHANGED
@@ -1,10 +1,255 @@
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';
1
11
  import { LatLng } from 'leaflet';
2
12
  import { Geometry, Point, GeoJsonObject } from 'geojson';
3
13
 
4
- interface AssetsApi {
5
- upload(file: Blob, title: string): Promise<{ id: string }>
6
- url: string
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;
17
+
18
+ declare function Tags({ data, api }: {
19
+ data?: Tag$1[];
20
+ api?: ItemsApi$1<Tag$1>;
21
+ }): react_jsx_runtime.JSX.Element;
22
+
23
+ declare function Permissions({ data, api, adminRole, }: {
24
+ data?: Permission$1[];
25
+ api?: ItemsApi$1<Permission$1>;
26
+ adminRole?: string;
27
+ }): react_jsx_runtime.JSX.Element;
28
+
29
+ declare const ItemForm: {
30
+ ({ children, item, title, setPopupTitle, }: {
31
+ children?: React.ReactNode;
32
+ item?: Item$1;
33
+ title?: string;
34
+ setPopupTitle?: React.Dispatch<React.SetStateAction<string>>;
35
+ }): react_jsx_runtime.JSX.Element;
36
+ propTypes: {
37
+ children: prop_types.Requireable<prop_types.ReactNodeLike>;
38
+ __TYPE: prop_types.Requireable<string>;
39
+ };
40
+ defaultProps: {
41
+ __TYPE: string;
42
+ };
43
+ };
44
+
45
+ declare const ItemView: {
46
+ ({ children, item }: {
47
+ children?: React.ReactNode;
48
+ item?: Item$1;
49
+ }): react_jsx_runtime.JSX.Element;
50
+ propTypes: {
51
+ children: prop_types.Requireable<prop_types.ReactNodeLike>;
52
+ __TYPE: prop_types.Requireable<string>;
53
+ };
54
+ defaultProps: {
55
+ __TYPE: string;
56
+ };
57
+ };
58
+
59
+ declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
60
+ dataField: string;
61
+ placeholder: string;
62
+ style?: string;
63
+ item?: Item$1;
64
+ }) => react_jsx_runtime.JSX.Element;
65
+
66
+ interface StartEndInputProps {
67
+ item?: Item$1;
68
+ showLabels?: boolean;
69
+ updateStartValue?: (value: string) => void;
70
+ updateEndValue?: (value: string) => void;
7
71
  }
72
+ declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => react_jsx_runtime.JSX.Element;
73
+
74
+ declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
75
+ dataField: string;
76
+ placeholder: string;
77
+ style?: string;
78
+ item?: Item$1;
79
+ }) => react_jsx_runtime.JSX.Element;
80
+
81
+ declare const PopupCheckboxInput: ({ dataField, label, item, }: {
82
+ dataField: string;
83
+ label: string;
84
+ item?: Item$1;
85
+ }) => react_jsx_runtime.JSX.Element;
86
+
87
+ declare const TextView: ({ item, truncate, itemTextField, rawText, }: {
88
+ item?: Item$1;
89
+ truncate?: boolean;
90
+ itemTextField?: string;
91
+ rawText?: string;
92
+ }) => react_jsx_runtime.JSX.Element;
93
+
94
+ declare const StartEndView: ({ item }: {
95
+ item?: Item$1;
96
+ }) => react_jsx_runtime.JSX.Element;
97
+
98
+ declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
99
+ url: string;
100
+ parameterField?: string;
101
+ text: string;
102
+ colorField?: string;
103
+ item?: Item$1;
104
+ }) => react_jsx_runtime.JSX.Element;
105
+
106
+ declare function AppShell({ appName, children, assetsApi, userType, }: {
107
+ appName: string;
108
+ children: React.ReactNode;
109
+ assetsApi: AssetsApi$1;
110
+ userType: string;
111
+ }): react_jsx_runtime.JSX.Element;
112
+
113
+ type route = {
114
+ path: string;
115
+ icon: JSX.Element;
116
+ name: string;
117
+ submenu?: route;
118
+ blank?: boolean;
119
+ };
120
+ declare function SideBar({ routes, bottomRoutes }: {
121
+ routes: route[];
122
+ bottomRoutes?: route[];
123
+ }): react_jsx_runtime.JSX.Element;
124
+
125
+ type ContentProps = {
126
+ children?: React.ReactNode;
127
+ };
128
+ declare function Content({ children }: ContentProps): react_jsx_runtime.JSX.Element;
129
+
130
+ declare const Sitemap: ({ url }: {
131
+ url: string;
132
+ }) => react_jsx_runtime.JSX.Element;
133
+
134
+ interface AuthProviderProps {
135
+ userApi: UserApi$1;
136
+ children?: React.ReactNode;
137
+ }
138
+ declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => react_jsx_runtime.JSX.Element;
139
+
140
+ declare function LoginPage(): react_jsx_runtime.JSX.Element;
141
+
142
+ declare function SignupPage(): react_jsx_runtime.JSX.Element;
143
+
144
+ declare function RequestPasswordPage({ resetUrl }: {
145
+ resetUrl: any;
146
+ }): react_jsx_runtime.JSX.Element;
147
+
148
+ declare function SetNewPasswordPage(): react_jsx_runtime.JSX.Element;
149
+
150
+ declare function UserSettings(): react_jsx_runtime.JSX.Element;
151
+
152
+ declare function ProfileView({ attestationApi }: {
153
+ attestationApi?: ItemsApi$1<any>;
154
+ }): react_jsx_runtime.JSX.Element;
155
+
156
+ declare function ProfileForm(): react_jsx_runtime.JSX.Element;
157
+
158
+ declare function Modal({ children, showOnStartup, }: {
159
+ children: React.ReactNode;
160
+ showOnStartup?: boolean;
161
+ }): react_jsx_runtime.JSX.Element;
162
+
163
+ declare function Quests(): react_jsx_runtime.JSX.Element;
164
+
165
+ declare function CardPage({ title, hideTitle, children, parents, }: {
166
+ title: string;
167
+ hideTitle?: boolean;
168
+ children?: React.ReactNode;
169
+ parents?: {
170
+ name: string;
171
+ path: string;
172
+ }[];
173
+ }): react_jsx_runtime.JSX.Element;
174
+
175
+ interface TitleCardProps {
176
+ title?: string;
177
+ hideTitle?: boolean;
178
+ children?: React.ReactNode;
179
+ topMargin?: string;
180
+ className?: string;
181
+ TopSideButtons?: any;
182
+ }
183
+ declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className, }: TitleCardProps): react_jsx_runtime.JSX.Element;
184
+
185
+ declare function MapOverlayPage({ children, className, backdrop, card, }: {
186
+ children: React.ReactNode;
187
+ className?: string;
188
+ backdrop?: boolean;
189
+ card?: boolean;
190
+ }): react_jsx_runtime.JSX.Element;
191
+
192
+ declare const MoonCalendar: () => react_jsx_runtime.JSX.Element;
193
+
194
+ declare const SelectUser: () => react_jsx_runtime.JSX.Element;
195
+
196
+ declare const OverlayItemsIndexPage: ({ url, layerName, parameterField, plusButton, }: {
197
+ layerName: string;
198
+ url: string;
199
+ parameterField: string;
200
+ plusButton?: boolean;
201
+ }) => react_jsx_runtime.JSX.Element;
202
+
203
+ declare const AttestationForm: ({ api }: {
204
+ api?: ItemsApi$1<unknown>;
205
+ }) => react_jsx_runtime.JSX.Element;
206
+
207
+ declare const MarketView: () => react_jsx_runtime.JSX.Element;
208
+
209
+ type TextAreaProps = {
210
+ labelTitle?: string;
211
+ labelStyle?: string;
212
+ containerStyle?: string;
213
+ dataField?: string;
214
+ inputStyle?: string;
215
+ defaultValue: string;
216
+ placeholder?: string;
217
+ required?: boolean;
218
+ updateFormValue?: (value: string) => void;
219
+ };
220
+ declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, required, updateFormValue, }: TextAreaProps): react_jsx_runtime.JSX.Element;
221
+
222
+ type InputTextProps = {
223
+ labelTitle?: string;
224
+ labelStyle?: string;
225
+ type?: string;
226
+ dataField?: string;
227
+ containerStyle?: string;
228
+ inputStyle?: string;
229
+ defaultValue?: string;
230
+ placeholder?: string;
231
+ autocomplete?: string;
232
+ pattern?: string;
233
+ required?: boolean;
234
+ updateFormValue?: (value: string) => void;
235
+ };
236
+ declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, pattern, required, updateFormValue, }: InputTextProps): react_jsx_runtime.JSX.Element;
237
+
238
+ type SelectBoxProps = {
239
+ labelTitle?: string;
240
+ labelStyle?: string;
241
+ type?: string;
242
+ containerStyle?: string;
243
+ defaultValue: string;
244
+ placeholder?: string;
245
+ updateFormValue: (value: string) => void;
246
+ options: {
247
+ name: string;
248
+ value: string;
249
+ }[];
250
+ labelDescription?: string;
251
+ };
252
+ declare function SelectBox(props: SelectBoxProps): react_jsx_runtime.JSX.Element;
8
253
 
9
254
  interface ItemsApi<T> {
10
255
  getItems(): Promise<T[]>
@@ -15,6 +260,13 @@ interface ItemsApi<T> {
15
260
  collectionName?: string
16
261
  }
17
262
 
263
+ interface Tag {
264
+ color: string
265
+ id: string
266
+ name: string
267
+ offer_or_need?: boolean
268
+ }
269
+
18
270
  interface ItemFormPopupProps {
19
271
  position: LatLng
20
272
  layer: LayerProps
@@ -133,31 +385,6 @@ interface Item {
133
385
  } */
134
386
  }
135
387
 
136
- interface Tag {
137
- color: string
138
- id: string
139
- name: string
140
- offer_or_need?: boolean
141
- }
142
-
143
- interface FormState {
144
- color: string
145
- id: string
146
- group_type: string
147
- status: string
148
- name: string
149
- subname: string
150
- text: string
151
- contact: string
152
- telephone: string
153
- next_appointment: string
154
- image: string
155
- marker_icon: string
156
- offers: Tag[]
157
- needs: Tag[]
158
- relations: Item[]
159
- }
160
-
161
388
  type PermissionAction = 'create' | 'read' | 'update' | 'delete'
162
389
 
163
390
  interface PermissionCondition {
@@ -205,4 +432,17 @@ interface UtopiaMapProps {
205
432
  infoText?: string
206
433
  }
207
434
 
208
- export type { AssetsApi, FormState, Item, ItemFormPopupProps, ItemType, ItemsApi, LayerProps, Permission, PermissionAction, PermissionCondition, Profile, Relation, Tag, UserApi, UserItem, UtopiaMapProps };
435
+ interface AssetsApi {
436
+ upload(file: Blob, title: string): Promise<{ id: string }>
437
+ url: string
438
+ }
439
+
440
+ declare global {
441
+ interface Window {
442
+ my_modal_3: {
443
+ showModal(): void;
444
+ };
445
+ }
446
+ }
447
+
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 };