utopia-ui 3.0.62 → 3.0.64
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/index.cjs +214 -221
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +24 -50
- package/dist/index.esm.js +215 -220
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/AppShell/AppShell.d.ts +1 -2
- package/dist/types/src/Components/AppShell/NavBar.d.ts +1 -2
- package/dist/types/src/Components/AppShell/SetAppState.d.ts +1 -2
- package/dist/types/src/Components/Auth/index.d.ts +1 -1
- package/dist/types/src/Components/Map/Layer.d.ts +2 -1
- package/dist/types/src/Components/Profile/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/src/Utils/GetValue.d.ts +0 -1
- package/dist/types/src/types/index.d.ts +0 -9
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { GeoJsonObject, Geometry, Point } from 'geojson';
|
3
|
-
|
3
|
+
export { Point } from 'geojson';
|
4
4
|
import { LatLng } from 'leaflet';
|
5
5
|
export { Popup } from 'leaflet';
|
6
|
+
import { Key } from 'react';
|
6
7
|
|
7
8
|
/**
|
8
9
|
* @category Types
|
@@ -46,24 +47,6 @@ interface ItemsApi<T> {
|
|
46
47
|
collectionName?: string
|
47
48
|
}
|
48
49
|
|
49
|
-
interface ItemType {
|
50
|
-
name: string
|
51
|
-
show_name_input: boolean
|
52
|
-
show_profile_button: boolean
|
53
|
-
show_start_end: boolean
|
54
|
-
show_start_end_input: boolean
|
55
|
-
show_text: boolean
|
56
|
-
show_text_input: boolean
|
57
|
-
custom_text: string
|
58
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
59
|
-
profileTemplate: { collection: string | number; id: Key | null | undefined; item: any }[]
|
60
|
-
offers_and_needs: boolean
|
61
|
-
icon_as_labels: unknown
|
62
|
-
relations: boolean
|
63
|
-
template: string
|
64
|
-
questlog: boolean
|
65
|
-
}
|
66
|
-
|
67
50
|
interface Relation {
|
68
51
|
related_items_id: string
|
69
52
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -139,7 +122,6 @@ interface Item {
|
|
139
122
|
contact?: string
|
140
123
|
telephone?: string
|
141
124
|
next_appointment?: string
|
142
|
-
type?: ItemType
|
143
125
|
gallery?: GalleryItem[]
|
144
126
|
|
145
127
|
// {
|
@@ -169,6 +151,24 @@ interface ItemFormPopupProps {
|
|
169
151
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
|
170
152
|
}
|
171
153
|
|
154
|
+
interface ItemType {
|
155
|
+
name: string
|
156
|
+
show_name_input: boolean
|
157
|
+
show_profile_button: boolean
|
158
|
+
show_start_end: boolean
|
159
|
+
show_start_end_input: boolean
|
160
|
+
show_text: boolean
|
161
|
+
show_text_input: boolean
|
162
|
+
custom_text: string
|
163
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
164
|
+
profileTemplate: { collection: string | number; id: Key | null | undefined; item: any }[]
|
165
|
+
offers_and_needs: boolean
|
166
|
+
icon_as_labels: unknown
|
167
|
+
relations: boolean
|
168
|
+
template: string
|
169
|
+
questlog: boolean
|
170
|
+
}
|
171
|
+
|
172
172
|
/**
|
173
173
|
* @category Types
|
174
174
|
*/
|
@@ -187,7 +187,7 @@ interface LayerProps {
|
|
187
187
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
188
188
|
api?: ItemsApi<any>
|
189
189
|
itemType: ItemType
|
190
|
-
|
190
|
+
userProfileLayer?: boolean
|
191
191
|
customEditLink?: string
|
192
192
|
customEditParameter?: string
|
193
193
|
public_edit_items?: boolean
|
@@ -202,7 +202,7 @@ interface LayerProps {
|
|
202
202
|
/**
|
203
203
|
* @category Map
|
204
204
|
*/
|
205
|
-
declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType,
|
205
|
+
declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, userProfileLayer, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef, }: LayerProps) => react_jsx_runtime.JSX.Element;
|
206
206
|
|
207
207
|
/**
|
208
208
|
* @category Map
|
@@ -355,11 +355,10 @@ interface AssetsApi {
|
|
355
355
|
/**
|
356
356
|
* @category AppShell
|
357
357
|
*/
|
358
|
-
declare function AppShell({ appName, children, assetsApi,
|
358
|
+
declare function AppShell({ appName, children, assetsApi, }: {
|
359
359
|
appName: string;
|
360
360
|
children: React.ReactNode;
|
361
361
|
assetsApi: AssetsApi;
|
362
|
-
userType: string;
|
363
362
|
}): react_jsx_runtime.JSX.Element;
|
364
363
|
|
365
364
|
type route = {
|
@@ -410,28 +409,10 @@ interface AuthProviderProps {
|
|
410
409
|
userApi: UserApi;
|
411
410
|
children?: React.ReactNode;
|
412
411
|
}
|
413
|
-
interface AuthCredentials {
|
414
|
-
email: string;
|
415
|
-
password: string;
|
416
|
-
otp?: string | undefined;
|
417
|
-
}
|
418
|
-
interface AuthContextProps {
|
419
|
-
isAuthenticated: boolean;
|
420
|
-
user: UserItem | null;
|
421
|
-
login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
|
422
|
-
register: (credentials: AuthCredentials, userName: string) => Promise<UserItem | undefined>;
|
423
|
-
loading: boolean;
|
424
|
-
logout: () => Promise<any>;
|
425
|
-
updateUser: (user: UserItem) => any;
|
426
|
-
token: string | null;
|
427
|
-
requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
|
428
|
-
passwordReset: (token: string, new_password: string) => Promise<any>;
|
429
|
-
}
|
430
412
|
/**
|
431
413
|
* @category Auth
|
432
414
|
*/
|
433
415
|
declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => react_jsx_runtime.JSX.Element;
|
434
|
-
declare const useAuth: () => AuthContextProps;
|
435
416
|
|
436
417
|
/**
|
437
418
|
* @category Auth
|
@@ -460,13 +441,6 @@ declare function SetNewPasswordPage(): react_jsx_runtime.JSX.Element;
|
|
460
441
|
*/
|
461
442
|
declare function UserSettings(): react_jsx_runtime.JSX.Element;
|
462
443
|
|
463
|
-
declare function PlusButton({ layer, triggerAction, color, collection, }: {
|
464
|
-
layer?: LayerProps;
|
465
|
-
triggerAction: any;
|
466
|
-
color: string;
|
467
|
-
collection?: string;
|
468
|
-
}): react_jsx_runtime.JSX.Element;
|
469
|
-
|
470
444
|
/**
|
471
445
|
* @category Profile
|
472
446
|
*/
|
@@ -622,4 +596,4 @@ declare global {
|
|
622
596
|
}
|
623
597
|
}
|
624
598
|
|
625
|
-
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, type PermissionsProps,
|
599
|
+
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, type PermissionsProps, 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 };
|