utopia-ui 3.0.0-alpha.99 → 3.0.0
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/LICENSE +674 -0
- package/README.md +29 -26
- package/dist/Components/AppShell/AppShell.d.ts +3 -2
- package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
- package/dist/Components/AppShell/NavBar.d.ts +2 -2
- package/dist/Components/AppShell/SideBar.d.ts +0 -1
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +0 -1
- package/dist/Components/AppShell/Sitemap.d.ts +3 -0
- package/dist/Components/AppShell/index.d.ts +1 -0
- package/dist/Components/Input/ComboBoxInput.d.ts +11 -0
- package/dist/Components/Map/Layer.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +2 -1
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -2
- package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -3
- package/dist/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +14 -5
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +8 -3
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +2 -1
- package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
- package/dist/Components/Map/UtopiaMap.d.ts +2 -10
- package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
- package/dist/Components/Map/hooks/useClusterRef.d.ts +12 -0
- package/dist/Components/Map/hooks/useFilter.d.ts +8 -0
- package/dist/Components/Map/hooks/usePermissions.d.ts +2 -2
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +23 -0
- package/dist/Components/Map/index.d.ts +1 -0
- package/dist/Components/Map/setItemLocation.d.ts +1 -0
- package/dist/Components/Profile/ProfileForm.d.ts +3 -0
- package/dist/Components/Profile/ProfileView.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -0
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
- package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +8 -0
- package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -0
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/ProfileSubHeader.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/Templates/OnepagerForm.d.ts +22 -0
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +5 -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 +14 -0
- package/dist/Components/Profile/UserSettings.d.ts +0 -2
- package/dist/Components/Profile/index.d.ts +3 -7
- package/dist/Components/Profile/itemFunctions.d.ts +5 -0
- package/dist/Components/Templates/AttestationForm.d.ts +4 -0
- package/dist/Components/Templates/DateUserInfo.d.ts +4 -0
- package/dist/Components/Templates/DialogModal.d.ts +3 -1
- package/dist/Components/Templates/EmojiPicker.d.ts +8 -0
- package/dist/Components/Templates/ItemCard.d.ts +8 -0
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
- package/dist/Components/Templates/SelectUser.d.ts +3 -0
- package/dist/Components/Templates/index.d.ts +3 -3
- package/dist/Utils/ReverseGeocoder.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3117 -2257
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +23 -1
- package/package.json +2 -2
- package/LICENSE.md +0 -5
- package/dist/Components/Auth/LoginPage copy.d.ts +0 -2
- package/dist/Components/Auth/ResetPasswordPage.d.ts +0 -2
- package/dist/Components/Auth/Signuppage.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/Control.d.ts +0 -5
- package/dist/Components/Map/Subcomponents/FilterControl.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/LayerControl.d.ts +0 -2
- package/dist/Components/Map/Subcomponents/QuestControl.d.ts +0 -2
- package/dist/Components/Profile/AvatarWidget.d.ts +0 -5
- package/dist/Components/Profile/Editor.d.ts +0 -4
- package/dist/Components/Profile/OverlayItemProfile.d.ts +0 -1
- package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +0 -1
- package/dist/Components/Profile/OverlayProfile.d.ts +0 -1
- package/dist/Components/Profile/OverlayProfileSettings.d.ts +0 -1
- package/dist/Components/Profile/OverlayUserSettings.d.ts +0 -1
- package/dist/Components/Profile/PlusButton.d.ts +0 -5
- package/dist/Components/Profile/ProfileSettings.d.ts +0 -3
- package/dist/Components/Profile/Settings.d.ts +0 -4
- package/dist/Components/Profile/Tags.d.ts +0 -2
- package/dist/Components/Templates/ItemViewPage.d.ts +0 -14
- package/dist/Components/Templates/ItemsIndexPage.d.ts +0 -18
- package/dist/Components/Templates/MapOverlayScreen.d.ts +0 -4
- package/dist/Utils/DynamicHeroIcon.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +0 -8
- package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +0 -12
- package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +0 -13
- package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Auth/useAuth.d.ts +0 -26
- package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +0 -13
- package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +0 -16
- package/dist/workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts +0 -12
- package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +0 -14
- package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +0 -18
- package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +0 -16
- package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -11
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -8
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -9
- package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +0 -11
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +0 -32
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +0 -26
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +0 -14
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +0 -22
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +0 -20
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +0 -22
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +0 -12
- package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +0 -4
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +0 -10
- package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Templates/DialogModal.d.ts +0 -10
- package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +0 -15
- package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +0 -11
- package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +0 -5
- package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +0 -6
- package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +0 -2
- package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Utils/HashTagRegex.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +0 -7
- package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +0 -3
- package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +0 -1
- package/dist/workspace/utopia-ui/src/index.d.ts +0 -13
- package/dist/workspace/utopia-ui/src/types.d.ts +0 -108
- /package/dist/Components/Profile/{ColorPicker.d.ts → Subcomponents/ColorPicker.d.ts} +0 -0
- /package/dist/Components/Profile/{TagsWidget.d.ts → Subcomponents/TagsWidget.d.ts} +0 -0
- /package/dist/Components/Profile/{useClickOutside.d.ts → hooks/useClickOutside.d.ts} +0 -0
@@ -1,32 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { LayerProps, Tag } from "../../../types";
|
3
|
-
declare type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
|
4
|
-
declare function useFilterManager(initialTags: Tag[]): {
|
5
|
-
filterTags: Tag[];
|
6
|
-
searchPhrase: string;
|
7
|
-
visibleLayers: LayerProps[];
|
8
|
-
addFilterTag: (tag: Tag) => void;
|
9
|
-
removeFilterTag: (name: string) => void;
|
10
|
-
resetFilterTags: () => void;
|
11
|
-
setSearchPhrase: (phrase: string) => void;
|
12
|
-
addVisibleLayer: (layer: LayerProps) => void;
|
13
|
-
toggleVisibleLayer: (layer: LayerProps) => void;
|
14
|
-
resetVisibleLayers: () => void;
|
15
|
-
isLayerVisible: (layer: LayerProps) => boolean;
|
16
|
-
};
|
17
|
-
export declare const FilterProvider: React.FunctionComponent<{
|
18
|
-
initialTags: Tag[];
|
19
|
-
children?: React.ReactNode;
|
20
|
-
}>;
|
21
|
-
export declare const useFilterTags: () => Tag[];
|
22
|
-
export declare const useAddFilterTag: () => UseFilterManagerResult["addFilterTag"];
|
23
|
-
export declare const useRemoveFilterTag: () => UseFilterManagerResult["removeFilterTag"];
|
24
|
-
export declare const useResetFilterTags: () => UseFilterManagerResult["resetFilterTags"];
|
25
|
-
export declare const useSearchPhrase: () => UseFilterManagerResult["searchPhrase"];
|
26
|
-
export declare const useSetSearchPhrase: () => UseFilterManagerResult["setSearchPhrase"];
|
27
|
-
export declare const useVisibleLayer: () => UseFilterManagerResult["visibleLayers"];
|
28
|
-
export declare const useAddVisibleLayer: () => UseFilterManagerResult["addVisibleLayer"];
|
29
|
-
export declare const useToggleVisibleLayer: () => UseFilterManagerResult["toggleVisibleLayer"];
|
30
|
-
export declare const useResetVisibleLayers: () => UseFilterManagerResult["resetVisibleLayers"];
|
31
|
-
export declare const useIsLayerVisible: () => UseFilterManagerResult["isLayerVisible"];
|
32
|
-
export {};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { Item, LayerProps } from "../../../types";
|
3
|
-
declare type UseItemManagerResult = ReturnType<typeof useItemsManager>;
|
4
|
-
declare function useItemsManager(initialItems: Item[]): {
|
5
|
-
items: Item[];
|
6
|
-
addItem: (item: Item) => void;
|
7
|
-
updateItem: (item: Item) => void;
|
8
|
-
removeItem: (item: Item) => void;
|
9
|
-
resetItems: (layer: LayerProps) => void;
|
10
|
-
setItemsApi: (layer: LayerProps) => void;
|
11
|
-
setItemsData: (layer: LayerProps) => void;
|
12
|
-
allItemsLoaded: boolean;
|
13
|
-
};
|
14
|
-
export declare const ItemsProvider: React.FunctionComponent<{
|
15
|
-
initialItems: Item[];
|
16
|
-
children?: React.ReactNode;
|
17
|
-
}>;
|
18
|
-
export declare const useItems: () => Item[];
|
19
|
-
export declare const useAddItem: () => UseItemManagerResult["addItem"];
|
20
|
-
export declare const useUpdateItem: () => UseItemManagerResult["updateItem"];
|
21
|
-
export declare const useRemoveItem: () => UseItemManagerResult["removeItem"];
|
22
|
-
export declare const useResetItems: () => UseItemManagerResult["resetItems"];
|
23
|
-
export declare const useSetItemsApi: () => UseItemManagerResult["setItemsApi"];
|
24
|
-
export declare const useSetItemsData: () => UseItemManagerResult["setItemsData"];
|
25
|
-
export declare const useAllItemsLoaded: () => UseItemManagerResult["allItemsLoaded"];
|
26
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { LayerProps } from "../../../types";
|
3
|
-
declare type UseItemManagerResult = ReturnType<typeof useLayerManager>;
|
4
|
-
declare function useLayerManager(initialLayers: LayerProps[]): {
|
5
|
-
layers: LayerProps[];
|
6
|
-
addLayer: (layer: LayerProps) => void;
|
7
|
-
};
|
8
|
-
export declare const LayersProvider: React.FunctionComponent<{
|
9
|
-
initialLayers: LayerProps[];
|
10
|
-
children?: React.ReactNode;
|
11
|
-
}>;
|
12
|
-
export declare const useLayers: () => LayerProps[];
|
13
|
-
export declare const useAddLayer: () => UseItemManagerResult["addLayer"];
|
14
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { Item } from "../../../types";
|
3
|
-
import { Marker, Popup } from "leaflet";
|
4
|
-
declare type LeafletRef = {
|
5
|
-
item: Item;
|
6
|
-
marker: Marker;
|
7
|
-
popup: Popup;
|
8
|
-
};
|
9
|
-
declare type UseLeafletRefsManagerResult = ReturnType<typeof useLeafletRefsManager>;
|
10
|
-
declare function useLeafletRefsManager(initialLeafletRefs: {}): {
|
11
|
-
leafletRefs: Record<string, LeafletRef>;
|
12
|
-
addMarker: (item: Item, marker: Marker) => void;
|
13
|
-
addPopup: (item: Item, popup: Popup) => void;
|
14
|
-
};
|
15
|
-
export declare const LeafletRefsProvider: React.FunctionComponent<{
|
16
|
-
initialLeafletRefs: {};
|
17
|
-
children?: React.ReactNode;
|
18
|
-
}>;
|
19
|
-
export declare const useLeafletRefs: () => Record<string, LeafletRef>;
|
20
|
-
export declare const useAddMarker: () => UseLeafletRefsManagerResult["addMarker"];
|
21
|
-
export declare const useAddPopup: () => UseLeafletRefsManagerResult["addPopup"];
|
22
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { ItemsApi, Permission, PermissionAction } from "../../../types";
|
3
|
-
declare type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
|
4
|
-
declare function usePermissionsManager(initialPermissions: Permission[]): {
|
5
|
-
permissions: Permission[];
|
6
|
-
setPermissionApi: (api: ItemsApi<any>) => void;
|
7
|
-
setPermissionData: (data: Permission[]) => void;
|
8
|
-
setAdminRole: (adminRole: string) => void;
|
9
|
-
hasUserPermission: (collectionName: string, action: PermissionAction) => boolean;
|
10
|
-
};
|
11
|
-
export declare const PermissionsProvider: React.FunctionComponent<{
|
12
|
-
initialPermissions: Permission[];
|
13
|
-
children?: React.ReactNode;
|
14
|
-
}>;
|
15
|
-
export declare const usePermissions: () => Permission[];
|
16
|
-
export declare const useSetPermissionApi: () => UsePermissionManagerResult["setPermissionApi"];
|
17
|
-
export declare const useSetPermissionData: () => UsePermissionManagerResult["setPermissionData"];
|
18
|
-
export declare const useHasUserPermission: () => UsePermissionManagerResult["hasUserPermission"];
|
19
|
-
export declare const useSetAdminRole: () => UsePermissionManagerResult["setAdminRole"];
|
20
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
import { Item, ItemsApi, Tag } from "../../../types";
|
3
|
-
declare type UseTagManagerResult = ReturnType<typeof useTagsManager>;
|
4
|
-
declare function useTagsManager(initialTags: Tag[]): {
|
5
|
-
tags: Tag[];
|
6
|
-
addTag: (tag: Tag) => void;
|
7
|
-
setTagApi: (api: ItemsApi<Tag>) => void;
|
8
|
-
setTagData: (data: Tag[]) => void;
|
9
|
-
getItemTags: (item: Item) => Tag[];
|
10
|
-
allTagsLoaded: boolean;
|
11
|
-
};
|
12
|
-
export declare const TagsProvider: React.FunctionComponent<{
|
13
|
-
initialTags: Tag[];
|
14
|
-
children?: React.ReactNode;
|
15
|
-
}>;
|
16
|
-
export declare const useTags: () => Tag[];
|
17
|
-
export declare const useAddTag: () => UseTagManagerResult["addTag"];
|
18
|
-
export declare const useSetTagApi: () => UseTagManagerResult["setTagApi"];
|
19
|
-
export declare const useSetTagData: () => UseTagManagerResult["setTagData"];
|
20
|
-
export declare const useGetItemTags: () => UseTagManagerResult["getItemTags"];
|
21
|
-
export declare const useAllTagsLoaded: () => UseTagManagerResult["allTagsLoaded"];
|
22
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export { UtopiaMap } from './UtopiaMap';
|
2
|
-
export { Layer } from './Layer';
|
3
|
-
export { Tags } from "./Tags";
|
4
|
-
export { Permissions } from "./Permissions";
|
5
|
-
export { ItemForm } from './ItemForm';
|
6
|
-
export { ItemView } from './ItemView';
|
7
|
-
export { PopupTextAreaInput } from './Subcomponents/ItemPopupComponents/PopupTextAreaInput';
|
8
|
-
export { PopupStartEndInput } from './Subcomponents/ItemPopupComponents/PopupStartEndInput';
|
9
|
-
export { PopupTextInput } from './Subcomponents/ItemPopupComponents/PopupTextInput';
|
10
|
-
export { TextView } from './Subcomponents/ItemPopupComponents/TextView';
|
11
|
-
export { StartEndView } from './Subcomponents/ItemPopupComponents/StartEndView';
|
12
|
-
export { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function OverlayProfile(): JSX.Element;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function OverlayProfileSettings(): JSX.Element;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function OverlayUserSettings(): JSX.Element;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { UserSettings } from './UserSettings';
|
2
|
-
export { ProfileSettings } from './ProfileSettings';
|
3
|
-
export { OverlayProfile } from './OverlayProfile';
|
4
|
-
export { OverlayProfileSettings } from './OverlayProfileSettings';
|
5
|
-
export { OverlayUserSettings } from './OverlayUserSettings';
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
declare type Props = {
|
3
|
-
title: string;
|
4
|
-
isOpened: boolean;
|
5
|
-
onClose: () => void;
|
6
|
-
children: React.ReactNode;
|
7
|
-
showCloseButton?: boolean;
|
8
|
-
};
|
9
|
-
declare const DialogModal: ({ title, isOpened, onClose, children, showCloseButton }: Props) => JSX.Element;
|
10
|
-
export default DialogModal;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { itemsApi } from '../../../../../utopia-maps/utopia-development/src/api/itemsApi';
|
2
|
-
declare type breadcrumb = {
|
3
|
-
name: string;
|
4
|
-
path: string;
|
5
|
-
};
|
6
|
-
export declare function ItemsIndexPage({ api, url, parameterField, breadcrumbs, itemNameField, itemTextField, itemImageField }: {
|
7
|
-
api: itemsApi<any>;
|
8
|
-
url: string;
|
9
|
-
parameterField: string;
|
10
|
-
breadcrumbs: Array<breadcrumb>;
|
11
|
-
itemNameField: string;
|
12
|
-
itemTextField: string;
|
13
|
-
itemImageField: string;
|
14
|
-
}): JSX.Element;
|
15
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const MoonCalendar: () => JSX.Element;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
interface TitleCardProps {
|
3
|
-
title?: string;
|
4
|
-
hideTitle?: boolean;
|
5
|
-
children?: React.ReactNode;
|
6
|
-
topMargin?: string;
|
7
|
-
className?: string;
|
8
|
-
TopSideButtons?: any;
|
9
|
-
}
|
10
|
-
export declare function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className }: TitleCardProps): JSX.Element;
|
11
|
-
export {};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export { CardPage } from './CardPage';
|
2
|
-
export { TitleCard } from './TitleCard';
|
3
|
-
export { MapOverlayPage } from './MapOverlayPage';
|
4
|
-
export { CircleLayout } from './CircleLayout';
|
5
|
-
export { MoonCalendar } from './MoonCalendar';
|
6
|
-
export { ItemsIndexPage } from './ItemsIndexPage';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function getValue(obj: any, path: any): any;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const hashTagRegex: RegExp;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export declare const LUNAR_MONTH: number;
|
2
|
-
export declare const getJulianDate: (date?: Date) => number;
|
3
|
-
export declare const normalize: (value: number) => number;
|
4
|
-
export declare const getLunarAgePercent: (date?: Date) => number;
|
5
|
-
export declare const getLunarAge: (date?: Date) => number;
|
6
|
-
export declare const getNextNewMoon: () => Date;
|
7
|
-
export declare const getLastNewMoon: (date?: Date) => Date;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const randomColor: () => string;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const timeAgo: (date: string | number | Date) => string;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, PopupButton, TextView, StartEndView } from './Components/Map';
|
2
|
-
export { AppShell, Content, SideBar } from "./Components/AppShell";
|
3
|
-
export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
|
4
|
-
export { UserSettings, ProfileSettings, OverlayProfile, OverlayProfileSettings, OverlayUserSettings } from './Components/Profile';
|
5
|
-
export { Quests, Modal } from './Components/Gaming';
|
6
|
-
export { TitleCard, CardPage, MapOverlayPage, CircleLayout, MoonCalendar, ItemsIndexPage } from './Components/Templates';
|
7
|
-
export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
|
8
|
-
import "./index.css";
|
9
|
-
declare global {
|
10
|
-
interface Window {
|
11
|
-
my_modal_3: any;
|
12
|
-
}
|
13
|
-
}
|
@@ -1,108 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ItemFormPopupProps } from "./Components/Map/Subcomponents/ItemFormPopup";
|
3
|
-
export interface UtopiaMapProps {
|
4
|
-
height?: string;
|
5
|
-
width?: string;
|
6
|
-
center?: [number, number];
|
7
|
-
zoom?: number;
|
8
|
-
tags?: Tag[];
|
9
|
-
children?: React.ReactNode;
|
10
|
-
}
|
11
|
-
export interface LayerProps {
|
12
|
-
data?: Item[];
|
13
|
-
children?: React.ReactNode;
|
14
|
-
name: string;
|
15
|
-
menuIcon: any;
|
16
|
-
menuColor: string;
|
17
|
-
menuText: string;
|
18
|
-
markerIcon: string;
|
19
|
-
markerShape: string;
|
20
|
-
markerDefaultColor: string;
|
21
|
-
api?: ItemsApi<any>;
|
22
|
-
itemNameField?: string;
|
23
|
-
itemTextField?: string;
|
24
|
-
itemAvatarField?: string;
|
25
|
-
itemColorField?: string;
|
26
|
-
itemOwnerField?: string;
|
27
|
-
itemTagsField?: string;
|
28
|
-
itemLatitudeField?: any;
|
29
|
-
itemLongitudeField?: any;
|
30
|
-
itemOffersField?: string;
|
31
|
-
itemNeedsField?: string;
|
32
|
-
onlyOnePerOwner?: boolean;
|
33
|
-
customEditLink?: string;
|
34
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
35
|
-
itemFormPopup?: ItemFormPopupProps | null;
|
36
|
-
clusterRef?: React.MutableRefObject<any>;
|
37
|
-
}
|
38
|
-
export declare class Item {
|
39
|
-
id: string;
|
40
|
-
name: string;
|
41
|
-
text: string;
|
42
|
-
position: Geometry;
|
43
|
-
date_created?: string;
|
44
|
-
date_updated?: string | null;
|
45
|
-
start?: string;
|
46
|
-
end?: string;
|
47
|
-
api?: ItemsApi<any>;
|
48
|
-
tags?: string[];
|
49
|
-
layer?: LayerProps;
|
50
|
-
[key: string]: any;
|
51
|
-
constructor(id: string, name: string, text: string, position: Geometry, layer?: LayerProps, api?: ItemsApi<any>);
|
52
|
-
}
|
53
|
-
export declare class Geometry {
|
54
|
-
type: string;
|
55
|
-
coordinates: number[];
|
56
|
-
constructor(lng: number, lat: number);
|
57
|
-
}
|
58
|
-
export interface Tag {
|
59
|
-
color: string;
|
60
|
-
id: string;
|
61
|
-
name: string;
|
62
|
-
offer_or_need?: boolean;
|
63
|
-
}
|
64
|
-
export interface ItemsApi<T> {
|
65
|
-
getItems(): Promise<any>;
|
66
|
-
createItem?(item: T): Promise<any>;
|
67
|
-
updateItem?(item: T): Promise<any>;
|
68
|
-
deleteItem?(id: string): Promise<any>;
|
69
|
-
collectionName?: string;
|
70
|
-
}
|
71
|
-
export interface AssetsApi {
|
72
|
-
upload(file: Blob, title: string): any;
|
73
|
-
url: string;
|
74
|
-
}
|
75
|
-
export interface UserApi {
|
76
|
-
register(email: string, password: string, userName: string): Promise<void>;
|
77
|
-
login(email: string, password: string): Promise<any>;
|
78
|
-
logout(): Promise<void>;
|
79
|
-
getUser(): Promise<UserItem>;
|
80
|
-
getToken(): Promise<any>;
|
81
|
-
updateUser(user: UserItem): Promise<void>;
|
82
|
-
requestPasswordReset(email: string, reset_url?: string): any;
|
83
|
-
passwordReset(token: string, new_password: string): any;
|
84
|
-
}
|
85
|
-
export declare type UserItem = {
|
86
|
-
id?: string;
|
87
|
-
role?: string;
|
88
|
-
email?: string;
|
89
|
-
password?: string;
|
90
|
-
profile?: Profile;
|
91
|
-
[key: string]: any;
|
92
|
-
};
|
93
|
-
export declare type Profile = {
|
94
|
-
id?: string;
|
95
|
-
avatar?: string;
|
96
|
-
color?: string;
|
97
|
-
name: string;
|
98
|
-
text: string;
|
99
|
-
geoposition?: Geometry;
|
100
|
-
};
|
101
|
-
export declare type Permission = {
|
102
|
-
id?: string;
|
103
|
-
role: string;
|
104
|
-
S: any;
|
105
|
-
collection: string;
|
106
|
-
action: PermissionAction;
|
107
|
-
};
|
108
|
-
export declare type PermissionAction = "create" | "read" | "update" | "delete";
|
File without changes
|
File without changes
|
File without changes
|