utopia-ui 3.0.0-alpha.2 → 3.0.0-alpha.200
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 -6
- package/dist/Components/AppShell/AppShell.d.ts +8 -6
- package/dist/Components/AppShell/Content.d.ts +1 -1
- package/dist/Components/AppShell/NavBar.d.ts +4 -5
- package/dist/Components/AppShell/SetAssetsApi.d.ts +4 -0
- package/dist/Components/AppShell/SideBar.d.ts +4 -2
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +1 -1
- package/dist/Components/AppShell/hooks/useAssets.d.ts +13 -0
- package/dist/Components/Auth/LoginPage copy.d.ts +2 -0
- package/dist/Components/Auth/LoginPage.d.ts +1 -0
- package/dist/Components/Auth/RequestPasswordPage.d.ts +3 -0
- package/dist/Components/Auth/ResetPasswordPage.d.ts +2 -0
- package/dist/Components/Auth/SetNewPasswordPage.d.ts +1 -0
- package/dist/Components/Auth/SignupPage.d.ts +1 -0
- package/dist/Components/Auth/Signuppage.d.ts +2 -0
- package/dist/Components/Auth/index.d.ts +5 -1
- package/dist/Components/Auth/useAuth.d.ts +26 -0
- package/dist/Components/Gaming/Modal.d.ts +5 -9
- package/dist/Components/Gaming/Quests.d.ts +1 -2
- package/dist/Components/Gaming/hooks/useQuests.d.ts +13 -0
- package/dist/Components/Input/Autocomplete.d.ts +7 -0
- package/dist/Components/Input/ComboBoxInput.d.ts +11 -0
- package/dist/Components/Input/SelectBox.d.ts +16 -0
- package/dist/Components/Input/TextAreaInput.d.ts +6 -5
- package/dist/Components/Input/TextInput.d.ts +14 -0
- package/dist/Components/Input/index.d.ts +3 -0
- package/dist/Components/Map/ItemForm.d.ts +18 -0
- package/dist/Components/Map/ItemView.d.ts +16 -0
- package/dist/Components/Map/Layer.d.ts +1 -2
- package/dist/Components/Map/Permissions.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +3 -3
- package/dist/Components/Map/Subcomponents/Control.d.ts +5 -0
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.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/FilterControl.d.ts +2 -0
- package/dist/Components/Map/Subcomponents/ItemFormPopup.d.ts +4 -4
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +17 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +4 -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 +7 -0
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +3 -4
- package/dist/Components/Map/Subcomponents/LayerControl.d.ts +2 -0
- package/dist/Components/Map/Subcomponents/QuestControl.d.ts +2 -0
- package/dist/Components/Map/Tags.d.ts +5 -5
- package/dist/Components/Map/UtopiaMap.d.ts +3 -10
- 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 +38 -0
- package/dist/Components/Map/hooks/useItems.d.ts +6 -0
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
- package/dist/Components/Map/hooks/usePermissions.d.ts +20 -0
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +23 -0
- package/dist/Components/Map/hooks/useSetItemPosition.d.ts +13 -0
- package/dist/Components/Map/hooks/useTags.d.ts +9 -3
- 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 +11 -1
- package/dist/Components/Map/setItemLocation.d.ts +1 -0
- package/dist/Components/Profile/ActionButton.d.ts +5 -0
- package/dist/Components/Profile/ActionsButton.d.ts +11 -0
- package/dist/Components/Profile/AvatarWidget.d.ts +5 -0
- package/dist/Components/Profile/ColorPicker.d.ts +6 -0
- package/dist/Components/Profile/ContactInfo.d.ts +8 -0
- package/dist/Components/Profile/Editor.d.ts +4 -0
- package/dist/Components/Profile/ItemForm.d.ts +1 -0
- package/dist/Components/Profile/LinkedItemsHeaderView.d.ts +10 -0
- package/dist/Components/Profile/OverlayItemProfile.d.ts +3 -0
- package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +3 -0
- package/dist/Components/Profile/OverlayProfile.d.ts +1 -0
- package/dist/Components/Profile/OverlayProfileSettings.d.ts +1 -0
- package/dist/Components/Profile/OverlayUserSettings.d.ts +1 -0
- package/dist/Components/Profile/PlusButton.d.ts +7 -0
- package/dist/Components/Profile/ProfileSettings.d.ts +3 -0
- package/dist/Components/Profile/ProfileSubHeader.d.ts +7 -0
- package/dist/Components/Profile/RelationCard.d.ts +6 -0
- package/dist/Components/Profile/Settings.d.ts +2 -3
- package/dist/Components/Profile/SocialShareBar.d.ts +6 -0
- package/dist/Components/Profile/SocialShareButton.d.ts +6 -0
- package/dist/Components/Profile/Tags.d.ts +2 -0
- package/dist/Components/Profile/TagsWidget.d.ts +6 -0
- package/dist/Components/Profile/UserSettings.d.ts +3 -0
- package/dist/Components/Profile/index.d.ts +8 -1
- package/dist/Components/Profile/useClickOutside.d.ts +2 -0
- package/dist/Components/Templates/CardItem.d.ts +6 -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/ItemCard.d.ts +8 -0
- package/dist/Components/Templates/ItemViewPage.d.ts +14 -0
- package/dist/Components/Templates/ItemsIndexPage.d.ts +19 -0
- package/dist/Components/Templates/MapOverlayPage.d.ts +7 -0
- package/dist/Components/Templates/MapOverlayScreen.d.ts +4 -0
- package/dist/Components/Templates/MoonCalendar.d.ts +1 -0
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +6 -0
- package/dist/Components/Templates/TagView.d.ts +6 -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 +4 -4
- package/dist/Utils/DynamicHeroIcon.d.ts +2 -0
- package/dist/Utils/FormatTags.d.ts +2 -0
- package/dist/Utils/GetValue.d.ts +1 -0
- package/dist/Utils/HashTagRegex.d.ts +1 -0
- package/dist/Utils/Moon.d.ts +7 -0
- package/dist/Utils/RandomColor.d.ts +1 -0
- package/dist/Utils/ReplaceURLs.d.ts +3 -1
- package/dist/Utils/ReverseGeocoder.d.ts +1 -0
- package/dist/Utils/TimeAgo.d.ts +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5213 -841
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +99 -12
- package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +8 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +12 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +13 -0
- package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +5 -0
- package/dist/workspace/utopia-ui/src/Components/Auth/useAuth.d.ts +26 -0
- package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +5 -0
- package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +13 -0
- package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +2 -0
- package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +16 -0
- package/dist/workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts +12 -0
- package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +14 -0
- package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +18 -0
- package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +16 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +2 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +11 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +9 -0
- package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +5 -0
- package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +11 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +32 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +26 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +14 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +20 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +22 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +12 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +4 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +5 -0
- package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +2 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +10 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +5 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/DialogModal.d.ts +10 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +15 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +11 -0
- package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +5 -0
- package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +6 -0
- package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +2 -0
- package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Utils/HashTagRegex.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +7 -0
- package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +3 -0
- package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +1 -0
- package/dist/workspace/utopia-ui/src/index.d.ts +13 -0
- package/dist/workspace/utopia-ui/src/types.d.ts +108 -0
- package/package.json +18 -6
- package/LICENSE.md +0 -5
- package/dist/Components/Auth/authDirectus.d.ts +0 -30
- package/dist/Components/Input/InputText.d.ts +0 -12
- package/dist/Components/TitleCard.d.ts +0 -9
- package/dist/Utils/HeighlightTags.d.ts +0 -2
package/README.md
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
# Utopia UI [](https://www.npmjs.com/package/utopia-ui)
|
2
|
-
|
2
|
+
**UI Framework for Real-Life-Networking-Apps**
|
3
3
|
|
4
|
-
|
4
|
+
*Real change happens in real life when we meet in person and connect as local communities manifesting their ideas with the earth. When we help each other to step out of capitalism and individualism and start building common infrastructure to meet human needs in harmony with Mother Earth.*
|
5
5
|
|
6
|
-
*
|
6
|
+
*That is why Utopia UI exists. It is a UI kit for minimalist, fast, intuitive and mobile-first map apps, as a tool for local connection and decentralised networking. It can work with any backend or p2p database and any kind of data structure.*
|
7
7
|
|
8
|
-
|
8
|
+
## Mission
|
9
|
+
Utopia UIs mission is to provide open source building blocks to create beautiful applications with a focus on real life impact, local communities and gamification.
|
10
|
+
|
11
|
+
The building blocks are designed to allow different networks and communities to assemble their map and app for their specific needs and purpose.
|
12
|
+
|
13
|
+
Utopia Game is the first app made with Utopia UI. It is an attempt to use gamification to get users to take action and make the map even more alive. Check it out at [utopia-game.org](https://utopia-game.org/) or see the code in the [repository](https://github.com/utopia-os/utopia-game)
|
14
|
+
|
15
|
+
## Features
|
16
|
+
|
17
|
+
* Interactive Component Map with customizable Layers (like Projects, Event, People)
|
18
|
+
* Flexible API-Interface to make it work with every backend or p2p database
|
19
|
+
* Create, Update, Delete Items
|
20
|
+
* User Authentification API-Interface
|
21
|
+
* User Profiles
|
22
|
+
* App Shell
|
9
23
|
|
10
24
|
## Getting Started
|
11
25
|
|
@@ -15,6 +29,15 @@ install via npm
|
|
15
29
|
npm install utopia-ui
|
16
30
|
```
|
17
31
|
|
32
|
+
## Examples
|
33
|
+
|
34
|
+
[Moos Map](https://github.com/utopia-os/moos-map)
|
35
|
+
|
36
|
+
## Demo
|
37
|
+
|
38
|
+
[Moos Map](https://moos-map.de)
|
39
|
+
|
40
|
+
|
18
41
|
## Map Component
|
19
42
|
The map shows various Layers (places, events, profiles ...) of Irems at their respective position whith nice and informative Popups.
|
20
43
|
|
@@ -63,8 +86,8 @@ You can find some Sample Data (places, events, tags) for test in the `SamleData/
|
|
63
86
|
|
64
87
|
## Join the community
|
65
88
|
|
66
|
-
*This Library is in
|
89
|
+
*This Library is in alpha stage. You are very welcome to participate in the development*
|
67
90
|
|
68
91
|
*We are looking for Web Developer, UX Designer, Community Manager, Visionaries, Artists, etc. who like to support this Vision.*
|
69
92
|
|
70
|
-
[https://t.me/utopiaOS](https://t.me/utopiaOS)
|
93
|
+
[https://t.me/utopiaOS](https://t.me/utopiaOS)
|
@@ -1,6 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
children:
|
6
|
-
|
1
|
+
import * as React from 'react';
|
2
|
+
import { AssetsApi } from '../../types';
|
3
|
+
export declare function AppShell({ appName, children, assetsApi, userType }: {
|
4
|
+
appName: string;
|
5
|
+
children: React.ReactNode;
|
6
|
+
assetsApi: AssetsApi;
|
7
|
+
userType: string;
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -2,5 +2,5 @@ import * as React from 'react';
|
|
2
2
|
declare type ContentProps = {
|
3
3
|
children?: React.ReactNode;
|
4
4
|
};
|
5
|
-
export declare function Content({ children }: ContentProps): JSX.Element;
|
5
|
+
export declare function Content({ children }: ContentProps): import("react/jsx-runtime").JSX.Element;
|
6
6
|
export {};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
}): JSX.Element;
|
1
|
+
export default function NavBar({ appName, userType }: {
|
2
|
+
appName: string;
|
3
|
+
userType: string;
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -4,8 +4,10 @@ declare type route = {
|
|
4
4
|
icon: JSX.Element;
|
5
5
|
name: string;
|
6
6
|
submenu?: route;
|
7
|
+
blank?: boolean;
|
7
8
|
};
|
8
|
-
export declare function SideBar({ routes }: {
|
9
|
+
export declare function SideBar({ routes, bottomRoutes }: {
|
9
10
|
routes: route[];
|
10
|
-
|
11
|
+
bottomRoutes?: route[];
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
11
13
|
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { AssetsApi } from '../../../types';
|
3
|
+
declare type UseAssetManagerResult = ReturnType<typeof useAssetsManager>;
|
4
|
+
declare function useAssetsManager(): {
|
5
|
+
api: AssetsApi;
|
6
|
+
setAssetsApi: (api: AssetsApi) => void;
|
7
|
+
};
|
8
|
+
export declare const AssetsProvider: React.FunctionComponent<{
|
9
|
+
children?: React.ReactNode;
|
10
|
+
}>;
|
11
|
+
export declare const useAssetApi: () => AssetsApi;
|
12
|
+
export declare const useSetAssetApi: () => UseAssetManagerResult["setAssetsApi"];
|
13
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function LoginPage(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SetNewPasswordPage(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SignupPage(): import("react/jsx-runtime").JSX.Element;
|
@@ -1 +1,5 @@
|
|
1
|
-
export {
|
1
|
+
export { AuthProvider, useAuth } from "./useAuth";
|
2
|
+
export { LoginPage } from "./LoginPage";
|
3
|
+
export { SignupPage } from './SignupPage';
|
4
|
+
export { RequestPasswordPage } from './RequestPasswordPage';
|
5
|
+
export { SetNewPasswordPage } from './SetNewPasswordPage';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import { UserApi, UserItem } from "../../types";
|
3
|
+
declare type AuthProviderProps = {
|
4
|
+
userApi: UserApi;
|
5
|
+
children?: React.ReactNode;
|
6
|
+
};
|
7
|
+
declare type AuthCredentials = {
|
8
|
+
email: string;
|
9
|
+
password: string;
|
10
|
+
otp?: string | undefined;
|
11
|
+
};
|
12
|
+
declare type AuthContextProps = {
|
13
|
+
isAuthenticated: boolean;
|
14
|
+
user: UserItem | null;
|
15
|
+
login: (credentials: AuthCredentials) => Promise<UserItem | undefined>;
|
16
|
+
register: (credentials: AuthCredentials, userName: string) => Promise<UserItem | undefined>;
|
17
|
+
loading: Boolean;
|
18
|
+
logout: () => Promise<any>;
|
19
|
+
updateUser: (user: UserItem) => any;
|
20
|
+
token: String | null;
|
21
|
+
requestPasswordReset: (email: string, reset_url: string) => Promise<any>;
|
22
|
+
passwordReset: (token: string, new_password: string) => Promise<any>;
|
23
|
+
};
|
24
|
+
export declare const AuthProvider: ({ userApi, children }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
25
|
+
export declare const useAuth: () => AuthContextProps;
|
26
|
+
export {};
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
declare
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
export declare function Welcome2({ clickAction }: ChapterProps): JSX.Element;
|
7
|
-
export declare function Welcome3({ clickAction }: ChapterProps): JSX.Element;
|
8
|
-
export declare function Modal(): JSX.Element;
|
9
|
-
export {};
|
1
|
+
import * as React from "react";
|
2
|
+
export declare function Modal({ children, showOnStartup }: {
|
3
|
+
children: React.ReactNode;
|
4
|
+
showOnStartup?: boolean;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export declare function Quests(): JSX.Element;
|
1
|
+
export declare function Quests(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
declare type UseQuestManagerResult = ReturnType<typeof useQuestsManager>;
|
3
|
+
declare function useQuestsManager(initialOpen: boolean): {
|
4
|
+
open: boolean;
|
5
|
+
setQuestsOpen: (open: boolean) => void;
|
6
|
+
};
|
7
|
+
export declare const QuestsProvider: React.FunctionComponent<{
|
8
|
+
initialOpen: boolean;
|
9
|
+
children?: React.ReactNode;
|
10
|
+
}>;
|
11
|
+
export declare const useQuestsOpen: () => boolean;
|
12
|
+
export declare const useSetQuestOpen: () => UseQuestManagerResult["setQuestsOpen"];
|
13
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export declare const Autocomplete: ({ inputProps, suggestions, onSelected, pushFilteredSuggestions, setFocus }: {
|
2
|
+
inputProps: any;
|
3
|
+
suggestions: Array<any>;
|
4
|
+
onSelected: (suggestion: any) => void;
|
5
|
+
pushFilteredSuggestions?: any[] | undefined;
|
6
|
+
setFocus?: boolean | undefined;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
interface ComboBoxProps {
|
2
|
+
id?: string;
|
3
|
+
options: {
|
4
|
+
value: string;
|
5
|
+
label: string;
|
6
|
+
}[];
|
7
|
+
value: string;
|
8
|
+
onValueChange: (newValue: string) => void;
|
9
|
+
}
|
10
|
+
declare const ComboBoxInput: ({ id, options, value, onValueChange }: ComboBoxProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export default ComboBoxInput;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare type SelectBoxProps = {
|
2
|
+
labelTitle?: string;
|
3
|
+
labelStyle?: string;
|
4
|
+
type?: string;
|
5
|
+
containerStyle?: string;
|
6
|
+
defaultValue: string;
|
7
|
+
placeholder?: string;
|
8
|
+
updateFormValue: (value: string) => void;
|
9
|
+
options: {
|
10
|
+
name: string;
|
11
|
+
value: string;
|
12
|
+
}[];
|
13
|
+
labelDescription?: string;
|
14
|
+
};
|
15
|
+
export declare function SelectBox(props: SelectBoxProps): import("react/jsx-runtime").JSX.Element;
|
16
|
+
export {};
|
@@ -1,11 +1,12 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
declare type TextAreaProps = {
|
3
|
-
labelTitle
|
2
|
+
labelTitle?: string;
|
4
3
|
labelStyle?: string;
|
5
4
|
containerStyle?: string;
|
5
|
+
dataField?: string;
|
6
|
+
inputStyle?: string;
|
6
7
|
defaultValue: string;
|
7
8
|
placeholder?: string;
|
8
|
-
updateFormValue
|
9
|
+
updateFormValue?: (value: string) => void;
|
9
10
|
};
|
10
|
-
declare function TextAreaInput({ labelTitle, labelStyle, containerStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): JSX.Element;
|
11
|
-
export
|
11
|
+
export declare function TextAreaInput({ labelTitle, dataField, labelStyle, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare type InputTextProps = {
|
2
|
+
labelTitle?: string;
|
3
|
+
labelStyle?: string;
|
4
|
+
type?: string;
|
5
|
+
dataField?: string;
|
6
|
+
containerStyle?: string;
|
7
|
+
inputStyle?: string;
|
8
|
+
defaultValue?: string;
|
9
|
+
placeholder?: string;
|
10
|
+
autocomplete?: string;
|
11
|
+
updateFormValue?: (value: string) => void;
|
12
|
+
};
|
13
|
+
export declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, updateFormValue }: InputTextProps): import("react/jsx-runtime").JSX.Element;
|
14
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Item } from '../../types';
|
3
|
+
import * as PropTypes from 'prop-types';
|
4
|
+
export declare const ItemForm: {
|
5
|
+
({ children, item, title, setPopupTitle }: {
|
6
|
+
children?: React.ReactNode;
|
7
|
+
item?: Item | undefined;
|
8
|
+
title?: string | undefined;
|
9
|
+
setPopupTitle?: React.Dispatch<React.SetStateAction<string>> | undefined;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
11
|
+
propTypes: {
|
12
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
13
|
+
__TYPE: PropTypes.Requireable<string>;
|
14
|
+
};
|
15
|
+
defaultProps: {
|
16
|
+
__TYPE: string;
|
17
|
+
};
|
18
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Item } from '../../types';
|
3
|
+
import * as PropTypes from 'prop-types';
|
4
|
+
export declare const ItemView: {
|
5
|
+
({ children, item }: {
|
6
|
+
children?: React.ReactNode;
|
7
|
+
item?: Item | undefined;
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
9
|
+
propTypes: {
|
10
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
11
|
+
__TYPE: PropTypes.Requireable<string>;
|
12
|
+
};
|
13
|
+
defaultProps: {
|
14
|
+
__TYPE: string;
|
15
|
+
};
|
16
|
+
};
|
@@ -1,3 +1,2 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { LayerProps } from '../../types';
|
3
|
-
export declare const Layer: (
|
2
|
+
export 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) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
export default function AddButton({
|
3
|
-
|
4
|
-
}): JSX.Element;
|
2
|
+
export default function AddButton({ triggerAction }: {
|
3
|
+
triggerAction: React.Dispatch<React.SetStateAction<any>>;
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
export declare const Control: ({ position, children, zIndex, absolute }: {
|
3
|
+
position: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
4
|
+
children: React.ReactNode;
|
5
|
+
zIndex: string;
|
6
|
+
absolute: boolean;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function FilterControl(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function LayerControl(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function QuestControl(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const SearchControl: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const SidebarControl: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const TagsControl: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { LatLng } from 'leaflet';
|
3
|
-
import { LayerProps, Item
|
3
|
+
import { LayerProps, Item } from '../../../types';
|
4
4
|
export interface ItemFormPopupProps {
|
5
5
|
position: LatLng;
|
6
6
|
layer: LayerProps;
|
7
7
|
item?: Item;
|
8
|
-
|
9
|
-
setItemFormPopup
|
8
|
+
children?: React.ReactNode;
|
9
|
+
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
10
10
|
}
|
11
|
-
export
|
11
|
+
export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Item, ItemsApi } from "../../../../types";
|
2
|
+
export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, itemNameField, itemSubnameField, itemAvatarField, loading, hideMenu, big, truncateSubname, hideSubname, showAddress }: {
|
3
|
+
item: Item;
|
4
|
+
api?: ItemsApi<any>;
|
5
|
+
editCallback?: any;
|
6
|
+
deleteCallback?: any;
|
7
|
+
setPositionCallback?: any;
|
8
|
+
itemNameField?: string;
|
9
|
+
itemAvatarField?: string;
|
10
|
+
itemSubnameField?: string;
|
11
|
+
loading?: boolean;
|
12
|
+
hideMenu?: boolean;
|
13
|
+
big?: boolean;
|
14
|
+
hideSubname?: boolean;
|
15
|
+
truncateSubname?: boolean;
|
16
|
+
showAddress?: boolean;
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Item } from '../../../../types';
|
2
|
+
export declare const PopupButton: ({ url, parameterField, text, colorField, item }: {
|
3
|
+
url: string;
|
4
|
+
parameterField?: string | undefined;
|
5
|
+
text: string;
|
6
|
+
colorField?: string | undefined;
|
7
|
+
item?: Item | undefined;
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Item } from '../../../../types';
|
2
|
+
export declare const PopupTextAreaInput: ({ dataField, placeholder, style, item }: {
|
3
|
+
dataField: string;
|
4
|
+
placeholder: string;
|
5
|
+
style?: string | undefined;
|
6
|
+
item?: Item | undefined;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Item } from '../../../../types';
|
2
|
+
export declare const PopupTextInput: ({ dataField, placeholder, style, item }: {
|
3
|
+
dataField: string;
|
4
|
+
placeholder: string;
|
5
|
+
style?: string | undefined;
|
6
|
+
item?: Item | undefined;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Item } from '../../../../types';
|
2
|
+
export declare const TextView: ({ item, truncate, itemTextField, rawText }: {
|
3
|
+
item?: Item | undefined;
|
4
|
+
truncate?: boolean | undefined;
|
5
|
+
itemTextField?: string | undefined;
|
6
|
+
rawText?: string | undefined;
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import { Item
|
2
|
+
import { Item } from '../../../types';
|
3
3
|
import { ItemFormPopupProps } from './ItemFormPopup';
|
4
4
|
export interface ItemViewPopupProps {
|
5
5
|
item: Item;
|
6
|
-
|
6
|
+
children?: React.ReactNode;
|
7
7
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
8
8
|
}
|
9
|
-
declare const ItemViewPopup:
|
10
|
-
export { ItemViewPopup };
|
9
|
+
export declare const ItemViewPopup: React.ForwardRefExoticComponent<ItemViewPopupProps & React.RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
}): JSX.Element;
|
1
|
+
import { ItemsApi, Tag } from '../../types';
|
2
|
+
export declare function Tags({ data, api }: {
|
3
|
+
data?: Tag[];
|
4
|
+
api?: ItemsApi<Tag>;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,12 +1,5 @@
|
|
1
1
|
import "leaflet/dist/leaflet.css";
|
2
|
-
import
|
3
|
-
import { Item, Tag, ItemsApi, LayerProps, UtopiaMapProps } from "../../types";
|
2
|
+
import { UtopiaMapProps } from "../../types";
|
4
3
|
import "./UtopiaMap.css";
|
5
|
-
|
6
|
-
|
7
|
-
setSelectMode: React.Dispatch<any>;
|
8
|
-
setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
|
9
|
-
}
|
10
|
-
/** This is a description of the foo function. */
|
11
|
-
declare function UtopiaMap({ height, width, center, zoom, children }: UtopiaMapProps): JSX.Element;
|
12
|
-
export { UtopiaMap, Item, Tag, ItemsApi };
|
4
|
+
declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showLayerControl }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
5
|
+
export { UtopiaMap };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
|
3
|
+
declare function useClusterRefManager(): {
|
4
|
+
clusterRef: any;
|
5
|
+
setClusterRef: React.Dispatch<React.SetStateAction<React.MutableRefObject<undefined>>>;
|
6
|
+
};
|
7
|
+
export declare const ClusterRefProvider: React.FunctionComponent<{
|
8
|
+
children?: React.ReactNode;
|
9
|
+
}>;
|
10
|
+
export declare const useClusterRef: () => any;
|
11
|
+
export declare const useSetClusterRef: () => UseClusterRefManagerResult["setClusterRef"];
|
12
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useDebounce: (callback: any, delay: any, deps: any) => void;
|