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.
- package/dist/Components/AppShell/AppShell.d.ts +8 -0
- package/dist/Components/AppShell/Content.d.ts +6 -0
- package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
- package/dist/Components/AppShell/NavBar.d.ts +4 -0
- package/dist/Components/AppShell/SetAppState.d.ts +5 -0
- package/dist/Components/AppShell/SideBar.d.ts +13 -0
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +8 -0
- package/dist/Components/AppShell/Sitemap.d.ts +3 -0
- package/dist/Components/AppShell/hooks/useAppState.d.ts +17 -0
- package/dist/Components/AppShell/hooks/useAssets.d.ts +13 -0
- package/dist/Components/AppShell/index.d.ts +4 -0
- package/dist/Components/Auth/LoginPage.d.ts +1 -0
- package/dist/Components/Auth/RequestPasswordPage.d.ts +3 -0
- package/dist/Components/Auth/SetNewPasswordPage.d.ts +1 -0
- package/dist/Components/Auth/SignupPage.d.ts +1 -0
- package/dist/Components/Auth/index.d.ts +5 -0
- package/dist/Components/Auth/useAuth.d.ts +27 -0
- package/dist/Components/Gaming/Modal.d.ts +5 -0
- package/dist/Components/Gaming/Quests.d.ts +1 -0
- package/dist/Components/Gaming/hooks/useQuests.d.ts +13 -0
- package/dist/Components/Gaming/index.d.ts +2 -0
- package/dist/Components/Input/Autocomplete.d.ts +7 -0
- package/dist/Components/Input/ComboBoxInput.d.ts +8 -0
- package/dist/Components/Input/SelectBox.d.ts +16 -0
- package/dist/Components/Input/TextAreaInput.d.ts +13 -0
- package/dist/Components/Input/TextInput.d.ts +16 -0
- package/dist/Components/Input/index.d.ts +3 -0
- package/dist/Components/Map/ItemForm.d.ts +17 -0
- package/dist/Components/Map/ItemView.d.ts +14 -0
- package/dist/Components/Map/Layer.d.ts +2 -0
- package/dist/Components/Map/Permissions.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +4 -0
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
- package/dist/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +18 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +9 -0
- package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
- package/dist/Components/Map/Tags.d.ts +6 -0
- package/dist/Components/Map/UtopiaMap.d.ts +4 -0
- package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
- package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
- package/dist/Components/Map/hooks/useDebounce.d.ts +1 -0
- package/dist/Components/Map/hooks/useFilter.d.ts +41 -0
- package/dist/Components/Map/hooks/useItems.d.ts +27 -0
- package/dist/Components/Map/hooks/useLayers.d.ts +14 -0
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
- package/dist/Components/Map/hooks/usePermissions.d.ts +24 -0
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +24 -0
- package/dist/Components/Map/hooks/useTags.d.ts +24 -0
- package/dist/Components/Map/hooks/useTimeout.d.ts +4 -0
- package/dist/Components/Map/hooks/useWindowDimension.d.ts +4 -0
- package/dist/Components/Map/index.d.ts +13 -0
- package/dist/Components/Map/setItemLocation.d.ts +1 -0
- package/dist/Components/Profile/ProfileForm.d.ts +1 -0
- package/dist/Components/Profile/ProfileView.d.ts +4 -0
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +10 -0
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
- package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +18 -0
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
- package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
- package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -0
- package/dist/Components/Profile/Templates/FlexForm.d.ts +7 -0
- package/dist/Components/Profile/Templates/FlexView.d.ts +4 -0
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +7 -0
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +4 -0
- package/dist/Components/Profile/Templates/SimpleForm.d.ts +4 -0
- package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
- package/dist/Components/Profile/Templates/TabsForm.d.ts +10 -0
- package/dist/Components/Profile/Templates/TabsView.d.ts +13 -0
- package/dist/Components/Profile/UserSettings.d.ts +1 -0
- package/dist/Components/Profile/hooks/useClickOutside.d.ts +2 -0
- package/dist/Components/Profile/index.d.ts +4 -0
- package/dist/Components/Profile/itemFunctions.d.ts +5 -0
- package/dist/Components/Templates/AttestationForm.d.ts +4 -0
- package/dist/Components/Templates/CardPage.d.ts +10 -0
- package/dist/Components/Templates/CircleLayout.d.ts +5 -0
- package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
- package/dist/Components/Templates/DialogModal.d.ts +12 -0
- package/dist/Components/Templates/EmojiPicker.d.ts +10 -0
- package/dist/Components/Templates/ItemCard.d.ts +7 -0
- package/dist/Components/Templates/MapOverlayPage.d.ts +7 -0
- package/dist/Components/Templates/MarketView.d.ts +1 -0
- package/dist/Components/Templates/MoonCalendar.d.ts +1 -0
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +5 -0
- package/dist/Components/Templates/SelectUser.d.ts +1 -0
- package/dist/Components/Templates/TagView.d.ts +7 -0
- package/dist/Components/Templates/TitleCard.d.ts +11 -0
- package/dist/Components/Templates/index.d.ts +8 -0
- package/dist/Components/Typography/ErrorText.d.ts +5 -0
- package/dist/Components/Typography/Subtitle.d.ts +6 -0
- package/dist/Utils/ContainsUUID.d.ts +1 -0
- package/dist/Utils/FormatTags.d.ts +2 -0
- package/dist/Utils/HashTagRegex.d.ts +1 -0
- package/dist/Utils/MarkerIconFactory.d.ts +2 -0
- package/dist/Utils/Moon.d.ts +7 -0
- package/dist/Utils/RandomColor.d.ts +1 -0
- package/dist/Utils/ReplaceURLs.d.ts +3 -0
- package/dist/Utils/ReverseGeocoder.d.ts +1 -0
- package/dist/Utils/TimeAgo.d.ts +1 -0
- package/dist/index.cjs +975 -20
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +41 -220
- package/dist/index.esm.js +975 -20
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +5268 -0
- package/dist/index.js.map +1 -0
- package/dist/src/Components/Map/Layer.d.ts +1 -1
- package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -4
- package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -2
- package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +3 -4
- package/dist/src/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -2
- package/dist/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -4
- package/dist/src/Components/Templates/ItemCard.d.ts +1 -2
- package/dist/src/Components/Templates/OverlayItemsIndexPage.d.ts +1 -2
- package/dist/types/src/Components/AppShell/AppShell.d.ts +1 -1
- package/dist/types/src/Components/AppShell/SetAppState.d.ts +1 -1
- package/dist/types/src/Components/AppShell/hooks/useAppState.d.ts +1 -1
- package/dist/types/src/Components/AppShell/hooks/useAssets.d.ts +1 -1
- package/dist/types/src/Components/Auth/useAuth.d.ts +2 -2
- package/dist/types/src/Components/Map/ItemForm.d.ts +1 -1
- package/dist/types/src/Components/Map/ItemView.d.ts +1 -1
- package/dist/types/src/Components/Map/Layer.d.ts +1 -1
- package/dist/types/src/Components/Map/Permissions.d.ts +2 -2
- package/dist/types/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +2 -2
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +2 -2
- package/dist/types/src/Components/Map/Tags.d.ts +2 -2
- package/dist/types/src/Components/Map/UtopiaMap.d.ts +2 -2
- package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +2 -2
- package/dist/types/src/Components/Map/hooks/useFilter.d.ts +2 -2
- package/dist/types/src/Components/Map/hooks/useItems.d.ts +2 -2
- package/dist/types/src/Components/Map/hooks/useLayers.d.ts +1 -1
- package/dist/types/src/Components/Map/hooks/useLeafletRefs.d.ts +1 -1
- package/dist/types/src/Components/Map/hooks/usePermissions.d.ts +5 -5
- package/dist/types/src/Components/Map/hooks/useSelectPosition.d.ts +3 -3
- package/dist/types/src/Components/Map/hooks/useTags.d.ts +3 -3
- package/dist/types/src/Components/Profile/ProfileView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ContactInfoView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/GalleryView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +2 -2
- package/dist/types/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/PlusButton.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ProfileTextForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ProfileTextView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Templates/FlexForm.d.ts +2 -2
- package/dist/types/src/Components/Profile/Templates/FlexView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Templates/OnepagerForm.d.ts +2 -2
- package/dist/types/src/Components/Profile/Templates/OnepagerView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Templates/SimpleView.d.ts +1 -1
- package/dist/types/src/Components/Profile/Templates/TabsView.d.ts +2 -2
- package/dist/types/src/Components/Templates/AttestationForm.d.ts +1 -1
- package/dist/types/src/Components/Templates/DateUserInfo.d.ts +1 -1
- package/dist/types/src/Components/Templates/ItemCard.d.ts +1 -1
- package/dist/types/src/Components/Templates/TagView.d.ts +1 -1
- 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
|
3
|
-
|
4
|
-
import {
|
5
|
-
|
6
|
-
import {
|
7
|
-
|
8
|
-
import {
|
9
|
-
|
10
|
-
import {
|
11
|
-
|
12
|
-
import
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
20
|
-
api?: ItemsApi
|
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
|
25
|
-
api?: ItemsApi
|
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
|
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
|
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
|
70
|
+
item?: Item;
|
64
71
|
}) => react_jsx_runtime.JSX.Element;
|
65
72
|
|
66
73
|
interface StartEndInputProps {
|
67
|
-
item?: Item
|
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
|
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
|
91
|
+
item?: Item;
|
85
92
|
}) => react_jsx_runtime.JSX.Element;
|
86
93
|
|
87
94
|
declare const TextView: ({ item, truncate, itemTextField, rawText, }: {
|
88
|
-
item?: Item
|
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
|
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
|
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
|
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
|
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
|
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
|
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,
|
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 };
|