utopia-ui 3.0.42 → 3.0.43
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/package.json +1 -1
- package/dist/Components/AppShell/AppShell.d.ts +0 -7
- package/dist/Components/AppShell/Content.d.ts +0 -5
- package/dist/Components/AppShell/ContextWrapper.d.ts +0 -6
- package/dist/Components/AppShell/NavBar.d.ts +0 -4
- package/dist/Components/AppShell/SetAppState.d.ts +0 -5
- package/dist/Components/AppShell/SetAssetsApi.d.ts +0 -4
- package/dist/Components/AppShell/SideBar.d.ts +0 -12
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +0 -7
- package/dist/Components/AppShell/Sitemap.d.ts +0 -3
- package/dist/Components/AppShell/hooks/useAppState.d.ts +0 -16
- package/dist/Components/AppShell/hooks/useAssets.d.ts +0 -12
- package/dist/Components/AppShell/index.d.ts +0 -4
- package/dist/Components/Auth/LoginPage.d.ts +0 -1
- package/dist/Components/Auth/RequestPasswordPage.d.ts +0 -3
- package/dist/Components/Auth/SetNewPasswordPage.d.ts +0 -1
- package/dist/Components/Auth/SignupPage.d.ts +0 -1
- package/dist/Components/Auth/index.d.ts +0 -5
- package/dist/Components/Auth/useAuth.d.ts +0 -26
- package/dist/Components/Gaming/Modal.d.ts +0 -4
- package/dist/Components/Gaming/Quests.d.ts +0 -1
- package/dist/Components/Gaming/hooks/useQuests.d.ts +0 -12
- package/dist/Components/Gaming/index.d.ts +0 -2
- package/dist/Components/Input/Autocomplete.d.ts +0 -7
- package/dist/Components/Input/ComboBoxInput.d.ts +0 -8
- package/dist/Components/Input/SelectBox.d.ts +0 -16
- package/dist/Components/Input/TextAreaInput.d.ts +0 -13
- package/dist/Components/Input/TextInput.d.ts +0 -16
- package/dist/Components/Input/index.d.ts +0 -3
- package/dist/Components/Map/ItemForm.d.ts +0 -16
- package/dist/Components/Map/ItemView.d.ts +0 -14
- package/dist/Components/Map/Layer.d.ts +0 -2
- package/dist/Components/Map/Permissions.d.ts +0 -7
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +0 -3
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
- package/dist/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -18
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -7
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +0 -6
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -9
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -6
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -8
- package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +0 -3
- package/dist/Components/Map/Tags.d.ts +0 -6
- package/dist/Components/Map/UtopiaMap.d.ts +0 -4
- package/dist/Components/Map/UtopiaMapInner.d.ts +0 -4
- package/dist/Components/Map/hooks/useClusterRef.d.ts +0 -11
- package/dist/Components/Map/hooks/useDebounce.d.ts +0 -1
- package/dist/Components/Map/hooks/useFilter.d.ts +0 -40
- package/dist/Components/Map/hooks/useItems.d.ts +0 -26
- package/dist/Components/Map/hooks/useLayers.d.ts +0 -13
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +0 -21
- package/dist/Components/Map/hooks/usePermissions.d.ts +0 -23
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +0 -23
- package/dist/Components/Map/hooks/useTags.d.ts +0 -23
- package/dist/Components/Map/hooks/useTimeout.d.ts +0 -4
- package/dist/Components/Map/hooks/useWindowDimension.d.ts +0 -4
- package/dist/Components/Map/index.d.ts +0 -13
- package/dist/Components/Map/setItemLocation.d.ts +0 -1
- package/dist/Components/Profile/ProfileForm.d.ts +0 -1
- package/dist/Components/Profile/ProfileView.d.ts +0 -4
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +0 -10
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +0 -7
- package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +0 -6
- package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +0 -8
- package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +0 -5
- package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +0 -5
- package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +0 -5
- package/dist/Components/Profile/Subcomponents/GalleryView.d.ts +0 -6
- package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +0 -6
- package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +0 -18
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +0 -7
- package/dist/Components/Profile/Subcomponents/MarkdownHint.d.ts +0 -1
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +0 -7
- package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +0 -5
- package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +0 -4
- package/dist/Components/Profile/Subcomponents/ProfileSubHeader.d.ts +0 -7
- package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +0 -10
- package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +0 -7
- package/dist/Components/Profile/Subcomponents/RelationCard.d.ts +0 -6
- package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +0 -6
- package/dist/Components/Profile/Subcomponents/SocialShareButton.d.ts +0 -6
- package/dist/Components/Profile/Subcomponents/TagsWidget.d.ts +0 -6
- package/dist/Components/Profile/Templates/FlexForm.d.ts +0 -7
- package/dist/Components/Profile/Templates/FlexView.d.ts +0 -4
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +0 -7
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +0 -4
- package/dist/Components/Profile/Templates/SimpleForm.d.ts +0 -4
- package/dist/Components/Profile/Templates/SimpleView.d.ts +0 -4
- package/dist/Components/Profile/Templates/TabsForm.d.ts +0 -10
- package/dist/Components/Profile/Templates/TabsView.d.ts +0 -13
- package/dist/Components/Profile/UserSettings.d.ts +0 -1
- package/dist/Components/Profile/hooks/useClickOutside.d.ts +0 -2
- package/dist/Components/Profile/index.d.ts +0 -4
- package/dist/Components/Profile/itemFunctions.d.ts +0 -5
- package/dist/Components/Templates/AttestationForm.d.ts +0 -4
- package/dist/Components/Templates/CardPage.d.ts +0 -9
- package/dist/Components/Templates/CircleLayout.d.ts +0 -5
- package/dist/Components/Templates/DateUserInfo.d.ts +0 -4
- package/dist/Components/Templates/DialogModal.d.ts +0 -11
- package/dist/Components/Templates/EmojiPicker.d.ts +0 -10
- package/dist/Components/Templates/ItemCard.d.ts +0 -7
- package/dist/Components/Templates/MapOverlayPage.d.ts +0 -6
- package/dist/Components/Templates/MarketView.d.ts +0 -1
- package/dist/Components/Templates/MoonCalendar.d.ts +0 -1
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +0 -5
- package/dist/Components/Templates/SelectUser.d.ts +0 -1
- package/dist/Components/Templates/TagView.d.ts +0 -7
- package/dist/Components/Templates/TitleCard.d.ts +0 -10
- package/dist/Components/Templates/index.d.ts +0 -8
- package/dist/Components/Typography/ErrorText.d.ts +0 -5
- package/dist/Components/Typography/Subtitle.d.ts +0 -5
- package/dist/Utils/ContainsUUID.d.ts +0 -1
- package/dist/Utils/FormatTags.d.ts +0 -2
- package/dist/Utils/GetValue.d.ts +0 -1
- package/dist/Utils/HashTagRegex.d.ts +0 -1
- package/dist/Utils/MarkerIconFactory.d.ts +0 -2
- package/dist/Utils/Moon.d.ts +0 -7
- package/dist/Utils/RandomColor.d.ts +0 -1
- package/dist/Utils/ReplaceURLs.d.ts +0 -3
- package/dist/Utils/ReverseGeocoder.d.ts +0 -1
- package/dist/Utils/TimeAgo.d.ts +0 -1
- package/dist/index.d.ts +0 -15
- package/dist/types/Components/AppShell/AppShell.d.ts +0 -8
- package/dist/types/Components/AppShell/Content.d.ts +0 -6
- package/dist/types/Components/AppShell/ContextWrapper.d.ts +0 -6
- package/dist/types/Components/AppShell/NavBar.d.ts +0 -4
- package/dist/types/Components/AppShell/SetAppState.d.ts +0 -5
- package/dist/types/Components/AppShell/SideBar.d.ts +0 -13
- package/dist/types/Components/AppShell/SidebarSubmenu.d.ts +0 -8
- package/dist/types/Components/AppShell/Sitemap.d.ts +0 -3
- package/dist/types/Components/AppShell/hooks/useAppState.d.ts +0 -17
- package/dist/types/Components/AppShell/hooks/useAssets.d.ts +0 -13
- package/dist/types/Components/AppShell/index.d.ts +0 -4
- package/dist/types/Components/Auth/LoginPage.d.ts +0 -1
- package/dist/types/Components/Auth/RequestPasswordPage.d.ts +0 -3
- package/dist/types/Components/Auth/SetNewPasswordPage.d.ts +0 -1
- package/dist/types/Components/Auth/SignupPage.d.ts +0 -1
- package/dist/types/Components/Auth/index.d.ts +0 -5
- package/dist/types/Components/Auth/useAuth.d.ts +0 -26
- package/dist/types/Components/Gaming/Modal.d.ts +0 -5
- package/dist/types/Components/Gaming/Quests.d.ts +0 -1
- package/dist/types/Components/Gaming/hooks/useQuests.d.ts +0 -13
- package/dist/types/Components/Gaming/index.d.ts +0 -2
- package/dist/types/Components/Input/Autocomplete.d.ts +0 -7
- package/dist/types/Components/Input/ComboBoxInput.d.ts +0 -8
- package/dist/types/Components/Input/SelectBox.d.ts +0 -16
- package/dist/types/Components/Input/TextAreaInput.d.ts +0 -12
- package/dist/types/Components/Input/TextInput.d.ts +0 -16
- package/dist/types/Components/Input/index.d.ts +0 -3
- package/dist/types/Components/Map/ItemForm.d.ts +0 -17
- package/dist/types/Components/Map/ItemView.d.ts +0 -14
- package/dist/types/Components/Map/Layer.d.ts +0 -2
- package/dist/types/Components/Map/Permissions.d.ts +0 -6
- package/dist/types/Components/Map/Subcomponents/AddButton.d.ts +0 -4
- package/dist/types/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
- package/dist/types/Components/Map/Subcomponents/Controls/FilterControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
- package/dist/types/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
- package/dist/types/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -2
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -17
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -8
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +0 -6
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -9
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
- package/dist/types/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -7
- package/dist/types/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -8
- package/dist/types/Components/Map/Subcomponents/SelectPosition.d.ts +0 -3
- package/dist/types/Components/Map/Tags.d.ts +0 -5
- package/dist/types/Components/Map/UtopiaMap.d.ts +0 -4
- package/dist/types/Components/Map/UtopiaMapInner.d.ts +0 -4
- package/dist/types/Components/Map/hooks/useClusterRef.d.ts +0 -12
- package/dist/types/Components/Map/hooks/useDebounce.d.ts +0 -1
- package/dist/types/Components/Map/hooks/useFilter.d.ts +0 -40
- package/dist/types/Components/Map/hooks/useItems.d.ts +0 -26
- package/dist/types/Components/Map/hooks/useLayers.d.ts +0 -14
- package/dist/types/Components/Map/hooks/useLeafletRefs.d.ts +0 -22
- package/dist/types/Components/Map/hooks/usePermissions.d.ts +0 -20
- package/dist/types/Components/Map/hooks/useSelectPosition.d.ts +0 -22
- package/dist/types/Components/Map/hooks/useTags.d.ts +0 -22
- package/dist/types/Components/Map/hooks/useTimeout.d.ts +0 -4
- package/dist/types/Components/Map/hooks/useWindowDimension.d.ts +0 -4
- package/dist/types/Components/Map/index.d.ts +0 -13
- package/dist/types/Components/Map/setItemLocation.d.ts +0 -1
- package/dist/types/Components/Profile/ProfileForm.d.ts +0 -1
- package/dist/types/Components/Profile/ProfileView.d.ts +0 -4
- package/dist/types/Components/Profile/Subcomponents/ActionsButton.d.ts +0 -11
- package/dist/types/Components/Profile/Subcomponents/AvatarWidget.d.ts +0 -8
- package/dist/types/Components/Profile/Subcomponents/ColorPicker.d.ts +0 -6
- package/dist/types/Components/Profile/Subcomponents/ContactInfoForm.d.ts +0 -5
- package/dist/types/Components/Profile/Subcomponents/ContactInfoView.d.ts +0 -5
- package/dist/types/Components/Profile/Subcomponents/FormHeader.d.ts +0 -5
- package/dist/types/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +0 -6
- package/dist/types/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +0 -17
- package/dist/types/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +0 -10
- package/dist/types/Components/Profile/Subcomponents/MarkdownHint.d.ts +0 -1
- package/dist/types/Components/Profile/Subcomponents/PlusButton.d.ts +0 -7
- package/dist/types/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +0 -5
- package/dist/types/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +0 -4
- package/dist/types/Components/Profile/Subcomponents/ProfileTextForm.d.ts +0 -9
- package/dist/types/Components/Profile/Subcomponents/ProfileTextView.d.ts +0 -7
- package/dist/types/Components/Profile/Subcomponents/RelationCard.d.ts +0 -6
- package/dist/types/Components/Profile/Subcomponents/SocialShareBar.d.ts +0 -6
- package/dist/types/Components/Profile/Subcomponents/SocialShareButton.d.ts +0 -6
- package/dist/types/Components/Profile/Subcomponents/TagsWidget.d.ts +0 -6
- package/dist/types/Components/Profile/Templates/FlexForm.d.ts +0 -6
- package/dist/types/Components/Profile/Templates/FlexView.d.ts +0 -4
- package/dist/types/Components/Profile/Templates/OnepagerForm.d.ts +0 -6
- package/dist/types/Components/Profile/Templates/OnepagerView.d.ts +0 -4
- package/dist/types/Components/Profile/Templates/SimpleForm.d.ts +0 -4
- package/dist/types/Components/Profile/Templates/SimpleView.d.ts +0 -4
- package/dist/types/Components/Profile/Templates/TabsForm.d.ts +0 -10
- package/dist/types/Components/Profile/Templates/TabsView.d.ts +0 -12
- package/dist/types/Components/Profile/UserSettings.d.ts +0 -1
- package/dist/types/Components/Profile/hooks/useClickOutside.d.ts +0 -2
- package/dist/types/Components/Profile/index.d.ts +0 -4
- package/dist/types/Components/Profile/itemFunctions.d.ts +0 -5
- package/dist/types/Components/Templates/AttestationForm.d.ts +0 -4
- package/dist/types/Components/Templates/CardPage.d.ts +0 -10
- package/dist/types/Components/Templates/CircleLayout.d.ts +0 -5
- package/dist/types/Components/Templates/DateUserInfo.d.ts +0 -4
- package/dist/types/Components/Templates/DialogModal.d.ts +0 -12
- package/dist/types/Components/Templates/EmojiPicker.d.ts +0 -8
- package/dist/types/Components/Templates/ItemCard.d.ts +0 -8
- package/dist/types/Components/Templates/MapOverlayPage.d.ts +0 -7
- package/dist/types/Components/Templates/MarketView.d.ts +0 -1
- package/dist/types/Components/Templates/MoonCalendar.d.ts +0 -1
- package/dist/types/Components/Templates/OverlayItemsIndexPage.d.ts +0 -6
- package/dist/types/Components/Templates/SelectUser.d.ts +0 -1
- package/dist/types/Components/Templates/TagView.d.ts +0 -7
- package/dist/types/Components/Templates/TitleCard.d.ts +0 -11
- package/dist/types/Components/Templates/index.d.ts +0 -8
- package/dist/types/Components/Typography/ErrorText.d.ts +0 -5
- package/dist/types/Components/Typography/Subtitle.d.ts +0 -6
- package/dist/types/Utils/FormatTags.d.ts +0 -2
- package/dist/types/Utils/GetValue.d.ts +0 -1
- package/dist/types/Utils/HashTagRegex.d.ts +0 -1
- package/dist/types/Utils/MarkerIconFactory.d.ts +0 -2
- package/dist/types/Utils/Moon.d.ts +0 -7
- package/dist/types/Utils/RandomColor.d.ts +0 -1
- package/dist/types/Utils/ReplaceURLs.d.ts +0 -3
- package/dist/types/Utils/ReverseGeocoder.d.ts +0 -1
- package/dist/types/Utils/TimeAgo.d.ts +0 -1
- package/dist/types/index.d.ts +0 -13
- package/dist/types/types.d.ts +0 -169
- package/dist/types.d.ts +0 -169
package/dist/types/types.d.ts
DELETED
@@ -1,169 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { LatLng } from 'leaflet';
|
3
|
-
export interface Tag {
|
4
|
-
color: string;
|
5
|
-
id: string;
|
6
|
-
name: string;
|
7
|
-
offer_or_need?: boolean;
|
8
|
-
}
|
9
|
-
export interface UtopiaMapProps {
|
10
|
-
height?: string;
|
11
|
-
width?: string;
|
12
|
-
center?: [number, number];
|
13
|
-
zoom?: number;
|
14
|
-
tags?: Tag[];
|
15
|
-
children?: React.ReactNode;
|
16
|
-
geo?: any;
|
17
|
-
showFilterControl?: boolean;
|
18
|
-
showLayerControl?: boolean;
|
19
|
-
showGratitudeControl?: boolean;
|
20
|
-
infoText?: string;
|
21
|
-
}
|
22
|
-
export interface ItemType {
|
23
|
-
name: string;
|
24
|
-
[key: string]: any;
|
25
|
-
}
|
26
|
-
export interface ItemsApi<T> {
|
27
|
-
getItems(): Promise<any>;
|
28
|
-
getItem?(id: string): Promise<any>;
|
29
|
-
createItem?(item: T): Promise<any>;
|
30
|
-
updateItem?(item: T): Promise<any>;
|
31
|
-
deleteItem?(id: string): Promise<any>;
|
32
|
-
collectionName?: string;
|
33
|
-
}
|
34
|
-
export interface LayerProps {
|
35
|
-
id?: string;
|
36
|
-
data?: Item[];
|
37
|
-
children?: React.ReactNode;
|
38
|
-
name: string;
|
39
|
-
menuIcon: any;
|
40
|
-
menuColor: string;
|
41
|
-
menuText: string;
|
42
|
-
markerIcon: string;
|
43
|
-
markerShape: string;
|
44
|
-
markerDefaultColor: string;
|
45
|
-
markerDefaultColor2?: string;
|
46
|
-
api?: ItemsApi<any>;
|
47
|
-
itemType: ItemType;
|
48
|
-
itemNameField?: string;
|
49
|
-
itemSubnameField?: string;
|
50
|
-
itemTextField?: string;
|
51
|
-
itemAvatarField?: string;
|
52
|
-
itemColorField?: string;
|
53
|
-
itemOwnerField?: string;
|
54
|
-
itemTagsField?: string;
|
55
|
-
itemLatitudeField?: any;
|
56
|
-
itemLongitudeField?: any;
|
57
|
-
itemOffersField?: string;
|
58
|
-
itemNeedsField?: string;
|
59
|
-
onlyOnePerOwner?: boolean;
|
60
|
-
customEditLink?: string;
|
61
|
-
customEditParameter?: string;
|
62
|
-
public_edit_items?: boolean;
|
63
|
-
listed?: boolean;
|
64
|
-
item_presets?: Record<string, unknown>;
|
65
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
66
|
-
itemFormPopup?: ItemFormPopupProps | null;
|
67
|
-
clusterRef?: any;
|
68
|
-
}
|
69
|
-
export declare class Geometry {
|
70
|
-
type: string;
|
71
|
-
coordinates: number[];
|
72
|
-
constructor(lng: number, lat: number);
|
73
|
-
}
|
74
|
-
export interface Relation {
|
75
|
-
related_items_id: string;
|
76
|
-
[key: string]: any;
|
77
|
-
}
|
78
|
-
export declare class Item {
|
79
|
-
id: string;
|
80
|
-
name: string;
|
81
|
-
text: string;
|
82
|
-
position?: Geometry;
|
83
|
-
date_created?: string;
|
84
|
-
date_updated?: string | null;
|
85
|
-
start?: string;
|
86
|
-
end?: string;
|
87
|
-
api?: ItemsApi<any>;
|
88
|
-
tags?: string[];
|
89
|
-
layer?: LayerProps;
|
90
|
-
relations?: Relation[];
|
91
|
-
parent?: string;
|
92
|
-
subname?: string;
|
93
|
-
public_edit?: boolean;
|
94
|
-
slug?: string;
|
95
|
-
[key: string]: any;
|
96
|
-
constructor(id: string, name: string, text: string, position: Geometry, layer?: LayerProps, api?: ItemsApi<any>);
|
97
|
-
}
|
98
|
-
export interface AssetsApi {
|
99
|
-
upload(file: Blob, title: string): any;
|
100
|
-
url: string;
|
101
|
-
}
|
102
|
-
export interface Profile {
|
103
|
-
id?: string;
|
104
|
-
avatar?: string;
|
105
|
-
color?: string;
|
106
|
-
name: string;
|
107
|
-
text: string;
|
108
|
-
geoposition?: Geometry;
|
109
|
-
}
|
110
|
-
export interface UserItem {
|
111
|
-
id?: string;
|
112
|
-
role?: any;
|
113
|
-
email?: string;
|
114
|
-
password?: string;
|
115
|
-
profile?: Profile;
|
116
|
-
[key: string]: any;
|
117
|
-
}
|
118
|
-
export interface UserApi {
|
119
|
-
register(email: string, password: string, userName: string): Promise<void>;
|
120
|
-
login(email: string, password: string): Promise<any>;
|
121
|
-
logout(): Promise<void>;
|
122
|
-
getUser(): Promise<UserItem>;
|
123
|
-
getToken(): Promise<any>;
|
124
|
-
updateUser(user: UserItem): Promise<void>;
|
125
|
-
requestPasswordReset(email: string, reset_url?: string): any;
|
126
|
-
passwordReset(token: string, new_password: string): any;
|
127
|
-
}
|
128
|
-
export interface PermissionCondition {
|
129
|
-
user_created?: {
|
130
|
-
_eq: string;
|
131
|
-
};
|
132
|
-
public_edit?: {
|
133
|
-
_eq: boolean;
|
134
|
-
};
|
135
|
-
}
|
136
|
-
export declare type PermissionAction = 'create' | 'read' | 'update' | 'delete';
|
137
|
-
export interface Permission {
|
138
|
-
id?: string;
|
139
|
-
policy: any;
|
140
|
-
collection: string;
|
141
|
-
action: PermissionAction;
|
142
|
-
permissions?: {
|
143
|
-
_and: PermissionCondition[];
|
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/dist/types.d.ts
DELETED
@@ -1,169 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { LatLng } from 'leaflet';
|
3
|
-
export interface Tag {
|
4
|
-
color: string;
|
5
|
-
id: string;
|
6
|
-
name: string;
|
7
|
-
offer_or_need?: boolean;
|
8
|
-
}
|
9
|
-
export interface UtopiaMapProps {
|
10
|
-
height?: string;
|
11
|
-
width?: string;
|
12
|
-
center?: [number, number];
|
13
|
-
zoom?: number;
|
14
|
-
tags?: Tag[];
|
15
|
-
children?: React.ReactNode;
|
16
|
-
geo?: any;
|
17
|
-
showFilterControl?: boolean;
|
18
|
-
showLayerControl?: boolean;
|
19
|
-
showGratitudeControl?: boolean;
|
20
|
-
infoText?: string;
|
21
|
-
}
|
22
|
-
export interface ItemType {
|
23
|
-
name: string;
|
24
|
-
[key: string]: any;
|
25
|
-
}
|
26
|
-
export interface ItemsApi<T> {
|
27
|
-
getItems(): Promise<any>;
|
28
|
-
getItem?(id: string): Promise<any>;
|
29
|
-
createItem?(item: T): Promise<any>;
|
30
|
-
updateItem?(item: T): Promise<any>;
|
31
|
-
deleteItem?(id: string): Promise<any>;
|
32
|
-
collectionName?: string;
|
33
|
-
}
|
34
|
-
export interface LayerProps {
|
35
|
-
id?: string;
|
36
|
-
data?: Item[];
|
37
|
-
children?: React.ReactNode;
|
38
|
-
name: string;
|
39
|
-
menuIcon: any;
|
40
|
-
menuColor: string;
|
41
|
-
menuText: string;
|
42
|
-
markerIcon: string;
|
43
|
-
markerShape: string;
|
44
|
-
markerDefaultColor: string;
|
45
|
-
markerDefaultColor2?: string;
|
46
|
-
api?: ItemsApi<any>;
|
47
|
-
itemType: ItemType;
|
48
|
-
itemNameField?: string;
|
49
|
-
itemSubnameField?: string;
|
50
|
-
itemTextField?: string;
|
51
|
-
itemAvatarField?: string;
|
52
|
-
itemColorField?: string;
|
53
|
-
itemOwnerField?: string;
|
54
|
-
itemTagsField?: string;
|
55
|
-
itemLatitudeField?: any;
|
56
|
-
itemLongitudeField?: any;
|
57
|
-
itemOffersField?: string;
|
58
|
-
itemNeedsField?: string;
|
59
|
-
onlyOnePerOwner?: boolean;
|
60
|
-
customEditLink?: string;
|
61
|
-
customEditParameter?: string;
|
62
|
-
public_edit_items?: boolean;
|
63
|
-
listed?: boolean;
|
64
|
-
item_presets?: Record<string, unknown>;
|
65
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
66
|
-
itemFormPopup?: ItemFormPopupProps | null;
|
67
|
-
clusterRef?: any;
|
68
|
-
}
|
69
|
-
export declare class Geometry {
|
70
|
-
type: string;
|
71
|
-
coordinates: number[];
|
72
|
-
constructor(lng: number, lat: number);
|
73
|
-
}
|
74
|
-
export interface Relation {
|
75
|
-
related_items_id: string;
|
76
|
-
[key: string]: any;
|
77
|
-
}
|
78
|
-
export declare class Item {
|
79
|
-
id: string;
|
80
|
-
name: string;
|
81
|
-
text: string;
|
82
|
-
position?: Geometry;
|
83
|
-
date_created?: string;
|
84
|
-
date_updated?: string | null;
|
85
|
-
start?: string;
|
86
|
-
end?: string;
|
87
|
-
api?: ItemsApi<any>;
|
88
|
-
tags?: string[];
|
89
|
-
layer?: LayerProps;
|
90
|
-
relations?: Relation[];
|
91
|
-
parent?: string;
|
92
|
-
subname?: string;
|
93
|
-
public_edit?: boolean;
|
94
|
-
slug?: string;
|
95
|
-
[key: string]: any;
|
96
|
-
constructor(id: string, name: string, text: string, position: Geometry, layer?: LayerProps, api?: ItemsApi<any>);
|
97
|
-
}
|
98
|
-
export interface AssetsApi {
|
99
|
-
upload(file: Blob, title: string): any;
|
100
|
-
url: string;
|
101
|
-
}
|
102
|
-
export interface Profile {
|
103
|
-
id?: string;
|
104
|
-
avatar?: string;
|
105
|
-
color?: string;
|
106
|
-
name: string;
|
107
|
-
text: string;
|
108
|
-
geoposition?: Geometry;
|
109
|
-
}
|
110
|
-
export interface UserItem {
|
111
|
-
id?: string;
|
112
|
-
role?: any;
|
113
|
-
email?: string;
|
114
|
-
password?: string;
|
115
|
-
profile?: Profile;
|
116
|
-
[key: string]: any;
|
117
|
-
}
|
118
|
-
export interface UserApi {
|
119
|
-
register(email: string, password: string, userName: string): Promise<void>;
|
120
|
-
login(email: string, password: string): Promise<any>;
|
121
|
-
logout(): Promise<void>;
|
122
|
-
getUser(): Promise<UserItem>;
|
123
|
-
getToken(): Promise<any>;
|
124
|
-
updateUser(user: UserItem): Promise<void>;
|
125
|
-
requestPasswordReset(email: string, reset_url?: string): any;
|
126
|
-
passwordReset(token: string, new_password: string): any;
|
127
|
-
}
|
128
|
-
export interface PermissionCondition {
|
129
|
-
user_created?: {
|
130
|
-
_eq: string;
|
131
|
-
};
|
132
|
-
public_edit?: {
|
133
|
-
_eq: boolean;
|
134
|
-
};
|
135
|
-
}
|
136
|
-
export declare type PermissionAction = 'create' | 'read' | 'update' | 'delete';
|
137
|
-
export interface Permission {
|
138
|
-
id?: string;
|
139
|
-
policy: any;
|
140
|
-
collection: string;
|
141
|
-
action: PermissionAction;
|
142
|
-
permissions?: {
|
143
|
-
_and: PermissionCondition[];
|
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
|
-
}
|