utopia-ui 3.0.18 → 3.0.20
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/README.md +9 -7
- package/dist/Components/AppShell/AppShell.d.ts +2 -2
- package/dist/Components/AppShell/Content.d.ts +1 -1
- package/dist/Components/AppShell/SetAppState.d.ts +1 -1
- package/dist/Components/AppShell/hooks/useAppState.d.ts +4 -4
- package/dist/Components/AppShell/hooks/useAssets.d.ts +2 -2
- package/dist/Components/Auth/useAuth.d.ts +8 -8
- package/dist/Components/Gaming/Modal.d.ts +1 -1
- package/dist/Components/Gaming/hooks/useQuests.d.ts +1 -1
- package/dist/Components/Input/Autocomplete.d.ts +1 -1
- package/dist/Components/Map/ItemForm.d.ts +5 -6
- package/dist/Components/Map/ItemView.d.ts +3 -5
- package/dist/Components/Map/Layer.d.ts +1 -1
- package/dist/Components/Map/Permissions.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +1 -10
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +3 -3
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +3 -4
- package/dist/Components/Map/Tags.d.ts +1 -1
- package/dist/Components/Map/UtopiaMap.d.ts +1 -1
- package/dist/Components/Map/UtopiaMapInner.d.ts +1 -1
- package/dist/Components/Map/hooks/useClusterRef.d.ts +1 -1
- package/dist/Components/Map/hooks/useFilter.d.ts +2 -2
- package/dist/Components/Map/hooks/useItems.d.ts +2 -2
- package/dist/Components/Map/hooks/useLayers.d.ts +2 -2
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +4 -4
- package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +4 -5
- package/dist/Components/Map/hooks/useTags.d.ts +2 -2
- package/dist/Components/Profile/ProfileView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +6 -3
- package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -2
- package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +3 -5
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +1 -2
- package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +1 -2
- package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +1 -1
- package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +2 -2
- package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +4 -4
- package/dist/Components/Profile/Templates/FlexForm.d.ts +1 -3
- package/dist/Components/Profile/Templates/FlexView.d.ts +1 -1
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +1 -19
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +1 -1
- package/dist/Components/Profile/Templates/SimpleView.d.ts +1 -1
- package/dist/Components/Profile/Templates/TabsView.d.ts +5 -5
- package/dist/Components/Profile/itemFunctions.d.ts +0 -1
- package/dist/Components/Templates/AttestationForm.d.ts +1 -1
- package/dist/Components/Templates/CardPage.d.ts +3 -3
- package/dist/Components/Templates/DateUserInfo.d.ts +1 -1
- package/dist/Components/Templates/DialogModal.d.ts +3 -3
- package/dist/Components/Templates/ItemCard.d.ts +1 -1
- package/dist/Components/Templates/MapOverlayPage.d.ts +1 -1
- package/dist/Components/Templates/TagView.d.ts +1 -1
- package/dist/Components/Templates/TitleCard.d.ts +1 -1
- package/dist/Components/Typography/Subtitle.d.ts +1 -1
- package/dist/Utils/MarkerIconFactory.d.ts +1 -2
- package/dist/index.js +3100 -3057
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +37 -12
- package/package.json +15 -4
package/dist/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { LatLng } from 'leaflet';
|
3
3
|
export interface Tag {
|
4
4
|
color: string;
|
5
5
|
id: string;
|
@@ -71,10 +71,10 @@ export declare class Geometry {
|
|
71
71
|
coordinates: number[];
|
72
72
|
constructor(lng: number, lat: number);
|
73
73
|
}
|
74
|
-
export
|
74
|
+
export interface Relation {
|
75
75
|
related_items_id: string;
|
76
76
|
[key: string]: any;
|
77
|
-
}
|
77
|
+
}
|
78
78
|
export declare class Item {
|
79
79
|
id: string;
|
80
80
|
name: string;
|
@@ -91,6 +91,7 @@ export declare class Item {
|
|
91
91
|
parent?: string;
|
92
92
|
subname?: string;
|
93
93
|
public_edit?: boolean;
|
94
|
+
slug?: string;
|
94
95
|
[key: string]: any;
|
95
96
|
constructor(id: string, name: string, text: string, position: Geometry, layer?: LayerProps, api?: ItemsApi<any>);
|
96
97
|
}
|
@@ -98,22 +99,22 @@ export interface AssetsApi {
|
|
98
99
|
upload(file: Blob, title: string): any;
|
99
100
|
url: string;
|
100
101
|
}
|
101
|
-
export
|
102
|
+
export interface Profile {
|
102
103
|
id?: string;
|
103
104
|
avatar?: string;
|
104
105
|
color?: string;
|
105
106
|
name: string;
|
106
107
|
text: string;
|
107
108
|
geoposition?: Geometry;
|
108
|
-
}
|
109
|
-
export
|
109
|
+
}
|
110
|
+
export interface UserItem {
|
110
111
|
id?: string;
|
111
112
|
role?: any;
|
112
113
|
email?: string;
|
113
114
|
password?: string;
|
114
115
|
profile?: Profile;
|
115
116
|
[key: string]: any;
|
116
|
-
}
|
117
|
+
}
|
117
118
|
export interface UserApi {
|
118
119
|
register(email: string, password: string, userName: string): Promise<void>;
|
119
120
|
login(email: string, password: string): Promise<any>;
|
@@ -124,16 +125,16 @@ export interface UserApi {
|
|
124
125
|
requestPasswordReset(email: string, reset_url?: string): any;
|
125
126
|
passwordReset(token: string, new_password: string): any;
|
126
127
|
}
|
127
|
-
export
|
128
|
+
export interface PermissionCondition {
|
128
129
|
user_created?: {
|
129
130
|
_eq: string;
|
130
131
|
};
|
131
132
|
public_edit?: {
|
132
133
|
_eq: boolean;
|
133
134
|
};
|
134
|
-
}
|
135
|
+
}
|
135
136
|
export declare type PermissionAction = 'create' | 'read' | 'update' | 'delete';
|
136
|
-
export
|
137
|
+
export interface Permission {
|
137
138
|
id?: string;
|
138
139
|
policy: any;
|
139
140
|
collection: string;
|
@@ -141,4 +142,28 @@ export declare type Permission = {
|
|
141
142
|
permissions?: {
|
142
143
|
_and: PermissionCondition[];
|
143
144
|
};
|
144
|
-
}
|
145
|
+
}
|
146
|
+
export interface ItemFormPopupProps {
|
147
|
+
position: LatLng;
|
148
|
+
layer: LayerProps;
|
149
|
+
item?: Item;
|
150
|
+
children?: React.ReactNode;
|
151
|
+
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
152
|
+
}
|
153
|
+
export interface FormState {
|
154
|
+
color: string;
|
155
|
+
id: string;
|
156
|
+
group_type: string;
|
157
|
+
status: string;
|
158
|
+
name: string;
|
159
|
+
subname: string;
|
160
|
+
text: string;
|
161
|
+
contact: string;
|
162
|
+
telephone: string;
|
163
|
+
next_appointment: string;
|
164
|
+
image: string;
|
165
|
+
marker_icon: string;
|
166
|
+
offers: Tag[];
|
167
|
+
needs: Tag[];
|
168
|
+
relations: Item[];
|
169
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.20",
|
4
4
|
"description": "Reuseable React Components to build mapping apps for real life communities and networks",
|
5
5
|
"repository": "https://github.com/utopia-os/utopia-ui",
|
6
6
|
"homepage:": "https://utopia-os.org/",
|
@@ -19,21 +19,26 @@
|
|
19
19
|
"license": "GPL-3.0-only",
|
20
20
|
"devDependencies": {
|
21
21
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
22
|
+
"@types/geojson": "^7946.0.14",
|
22
23
|
"@types/leaflet": "^1.7.11",
|
23
24
|
"@types/react": "^18.2.0",
|
24
25
|
"@types/react-dom": "^18.0.5",
|
25
|
-
"@
|
26
|
-
"@typescript-eslint/
|
27
|
-
"@typescript-eslint/parser": "^5.38.1",
|
26
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
27
|
+
"@typescript-eslint/parser": "^5.62.0",
|
28
28
|
"autoprefixer": "^10.4.14",
|
29
29
|
"daisyui": "^4.6.1",
|
30
30
|
"eslint": "^8.24.0",
|
31
31
|
"eslint-config-prettier": "^9.1.0",
|
32
32
|
"eslint-config-standard": "^17.1.0",
|
33
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
34
|
+
"eslint-plugin-import": "^2.31.0",
|
33
35
|
"eslint-plugin-json": "^3.1.0",
|
36
|
+
"eslint-plugin-no-catch-all": "^1.1.0",
|
34
37
|
"eslint-plugin-prettier": "^5.2.1",
|
38
|
+
"eslint-plugin-promise": "^6.1.1",
|
35
39
|
"eslint-plugin-react": "^7.31.8",
|
36
40
|
"eslint-plugin-react-hooks": "^4.6.0",
|
41
|
+
"eslint-plugin-security": "^3.0.1",
|
37
42
|
"eslint-plugin-yml": "^1.14.0",
|
38
43
|
"postcss": "^8.4.21",
|
39
44
|
"prettier": "^3.3.3",
|
@@ -69,5 +74,11 @@
|
|
69
74
|
"remark-breaks": "^4.0.0",
|
70
75
|
"tributejs": "^5.1.3",
|
71
76
|
"tw-elements": "^1.0.0"
|
77
|
+
},
|
78
|
+
"imports": {
|
79
|
+
"#components/*": "./src/Components/*",
|
80
|
+
"#utils/*": "./src/Utils/*",
|
81
|
+
"#src/*": "./src/*",
|
82
|
+
"#root/*": "./*"
|
72
83
|
}
|
73
84
|
}
|