utopia-ui 3.0.57 → 3.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +21 -192
- 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/Map/UtopiaMap.d.ts +1 -1
- package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts +9 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
@@ -1,157 +1,24 @@
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import {
|
3
|
-
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
showLayerControl?: boolean
|
23
|
-
showGratitudeControl?: boolean
|
24
|
-
infoText?: string
|
25
|
-
}
|
26
|
-
|
27
|
-
declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): react_jsx_runtime.JSX.Element;
|
28
|
-
|
29
|
-
interface ItemsApi<T> {
|
30
|
-
getItems(): Promise<T[]>
|
31
|
-
getItem?(id: string): Promise<T>
|
32
|
-
createItem?(item: T): Promise<T>
|
33
|
-
updateItem?(item: T): Promise<T>
|
34
|
-
deleteItem?(id: string): Promise<boolean>
|
35
|
-
collectionName?: string
|
36
|
-
}
|
37
|
-
|
38
|
-
interface Relation {
|
39
|
-
related_items_id: string
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
41
|
-
[key: string]: any
|
42
|
-
}
|
43
|
-
|
44
|
-
interface Profile {
|
45
|
-
id?: string
|
46
|
-
avatar?: string
|
47
|
-
color?: string
|
48
|
-
name: string
|
49
|
-
text: string
|
50
|
-
geoposition?: Geometry
|
51
|
-
}
|
52
|
-
|
53
|
-
interface UserItem {
|
54
|
-
id?: string
|
55
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
56
|
-
role?: any
|
57
|
-
email?: string
|
58
|
-
password?: string
|
59
|
-
profile?: Profile
|
60
|
-
first_name?: string
|
61
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
62
|
-
[key: string]: any
|
63
|
-
}
|
64
|
-
|
65
|
-
interface Item {
|
66
|
-
id: string
|
67
|
-
name: string
|
68
|
-
text: string
|
69
|
-
position?: Point
|
70
|
-
date_created?: string
|
71
|
-
date_updated?: string | null
|
72
|
-
start?: string
|
73
|
-
end?: string
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
75
|
-
api?: ItemsApi<any>
|
76
|
-
tags?: string[]
|
77
|
-
layer?: LayerProps
|
78
|
-
relations?: Relation[]
|
79
|
-
parent?: string
|
80
|
-
subname?: string
|
81
|
-
public_edit?: boolean
|
82
|
-
slug?: string
|
83
|
-
user_created?: UserItem
|
84
|
-
image?: string
|
85
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
86
|
-
[key: string]: any
|
87
|
-
/* constructor(
|
88
|
-
id: string,
|
89
|
-
name: string,
|
90
|
-
text: string,
|
91
|
-
position: Geometry,
|
92
|
-
layer?: LayerProps,
|
93
|
-
api?: ItemsApi<any>,
|
94
|
-
) {
|
95
|
-
this.id = id
|
96
|
-
this.name = name
|
97
|
-
this.text = text
|
98
|
-
this.position = position
|
99
|
-
this.layer = layer
|
100
|
-
this.api = api
|
101
|
-
} */
|
102
|
-
}
|
103
|
-
|
104
|
-
interface ItemFormPopupProps {
|
105
|
-
position: LatLng
|
106
|
-
layer: LayerProps
|
107
|
-
item?: Item
|
108
|
-
children?: React.ReactNode
|
109
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
|
110
|
-
}
|
111
|
-
|
112
|
-
interface ItemType {
|
113
|
-
name: string
|
114
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
115
|
-
[key: string]: any
|
116
|
-
}
|
117
|
-
|
118
|
-
interface LayerProps {
|
119
|
-
id?: string
|
120
|
-
data?: Item[]
|
121
|
-
children?: React.ReactNode
|
122
|
-
name: string
|
123
|
-
menuIcon: string
|
124
|
-
menuColor: string
|
125
|
-
menuText: string
|
126
|
-
markerIcon: string
|
127
|
-
markerShape: string
|
128
|
-
markerDefaultColor: string
|
129
|
-
markerDefaultColor2?: string
|
130
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
131
|
-
api?: ItemsApi<any>
|
132
|
-
itemType: ItemType
|
133
|
-
itemNameField?: string
|
134
|
-
itemSubnameField?: string
|
135
|
-
itemTextField?: string
|
136
|
-
itemAvatarField?: string
|
137
|
-
itemColorField?: string
|
138
|
-
itemOwnerField?: string
|
139
|
-
itemTagsField?: string
|
140
|
-
itemLatitudeField?: string
|
141
|
-
itemLongitudeField?: string
|
142
|
-
itemOffersField?: string
|
143
|
-
itemNeedsField?: string
|
144
|
-
onlyOnePerOwner?: boolean
|
145
|
-
customEditLink?: string
|
146
|
-
customEditParameter?: string
|
147
|
-
public_edit_items?: boolean
|
148
|
-
listed?: boolean
|
149
|
-
item_presets?: Record<string, unknown>
|
150
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
|
151
|
-
itemFormPopup?: ItemFormPopupProps | null
|
152
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
153
|
-
clusterRef?: any
|
154
|
-
}
|
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;
|
155
22
|
|
156
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;
|
157
24
|
|
@@ -160,28 +27,6 @@ declare function Tags({ data, api }: {
|
|
160
27
|
api?: ItemsApi<Tag>;
|
161
28
|
}): react_jsx_runtime.JSX.Element;
|
162
29
|
|
163
|
-
type PermissionAction = 'create' | 'read' | 'update' | 'delete'
|
164
|
-
|
165
|
-
interface PermissionCondition {
|
166
|
-
user_created?: {
|
167
|
-
_eq: string // Erwartet den speziellen Wert "$CURRENT_USER" oder eine spezifische UUID
|
168
|
-
}
|
169
|
-
public_edit?: {
|
170
|
-
_eq: boolean // Erwartet den speziellen Wert "$CURRENT_USER" oder eine spezifische UUID
|
171
|
-
}
|
172
|
-
}
|
173
|
-
|
174
|
-
interface Permission {
|
175
|
-
id?: string
|
176
|
-
policy?: { name: string }
|
177
|
-
collection: string
|
178
|
-
action: PermissionAction
|
179
|
-
permissions?: {
|
180
|
-
// Optional, für spezifische Bedingungen wie `user_created`
|
181
|
-
_and: PermissionCondition[]
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
30
|
declare function Permissions({ data, api, adminRole, }: {
|
186
31
|
data?: Permission[];
|
187
32
|
api?: ItemsApi<Permission>;
|
@@ -265,11 +110,6 @@ declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
|
|
265
110
|
item?: Item;
|
266
111
|
}) => react_jsx_runtime.JSX.Element;
|
267
112
|
|
268
|
-
interface AssetsApi {
|
269
|
-
upload(file: Blob, title: string): Promise<{ id: string }>
|
270
|
-
url: string
|
271
|
-
}
|
272
|
-
|
273
113
|
declare function AppShell({ appName, children, assetsApi, userType, }: {
|
274
114
|
appName: string;
|
275
115
|
children: React.ReactNode;
|
@@ -298,17 +138,6 @@ declare const Sitemap: ({ url }: {
|
|
298
138
|
url: string;
|
299
139
|
}) => react_jsx_runtime.JSX.Element;
|
300
140
|
|
301
|
-
interface UserApi {
|
302
|
-
register(email: string, password: string, userName: string): Promise<void>
|
303
|
-
login(email: string, password: string): Promise<UserItem | undefined>
|
304
|
-
logout(): Promise<void>
|
305
|
-
getUser(): Promise<UserItem>
|
306
|
-
getToken(): Promise<string | null>
|
307
|
-
updateUser(user: UserItem): Promise<void>
|
308
|
-
requestPasswordReset(email: string, reset_url?: string)
|
309
|
-
passwordReset(token: string, new_password: string)
|
310
|
-
}
|
311
|
-
|
312
141
|
interface AuthProviderProps {
|
313
142
|
userApi: UserApi;
|
314
143
|
children?: React.ReactNode;
|