utopia-ui 3.0.57 → 3.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Components/AppShell/AppShell.d.ts +8 -0
- package/dist/Components/AppShell/Content.d.ts +6 -0
- package/dist/Components/AppShell/ContextWrapper.d.ts +6 -0
- package/dist/Components/AppShell/NavBar.d.ts +4 -0
- package/dist/Components/AppShell/SetAppState.d.ts +5 -0
- package/dist/Components/AppShell/SideBar.d.ts +13 -0
- package/dist/Components/AppShell/SidebarSubmenu.d.ts +8 -0
- package/dist/Components/AppShell/Sitemap.d.ts +3 -0
- package/dist/Components/AppShell/hooks/useAppState.d.ts +17 -0
- package/dist/Components/AppShell/hooks/useAssets.d.ts +13 -0
- package/dist/Components/AppShell/index.d.ts +4 -0
- package/dist/Components/Auth/LoginPage.d.ts +1 -0
- package/dist/Components/Auth/RequestPasswordPage.d.ts +3 -0
- package/dist/Components/Auth/SetNewPasswordPage.d.ts +1 -0
- package/dist/Components/Auth/SignupPage.d.ts +1 -0
- package/dist/Components/Auth/index.d.ts +5 -0
- package/dist/Components/Auth/useAuth.d.ts +27 -0
- package/dist/Components/Gaming/Modal.d.ts +5 -0
- package/dist/Components/Gaming/Quests.d.ts +1 -0
- package/dist/Components/Gaming/hooks/useQuests.d.ts +13 -0
- package/dist/Components/Gaming/index.d.ts +2 -0
- package/dist/Components/Input/Autocomplete.d.ts +7 -0
- package/dist/Components/Input/ComboBoxInput.d.ts +8 -0
- package/dist/Components/Input/SelectBox.d.ts +16 -0
- package/dist/Components/Input/TextAreaInput.d.ts +13 -0
- package/dist/Components/Input/TextInput.d.ts +16 -0
- package/dist/Components/Input/index.d.ts +3 -0
- package/dist/Components/Map/ItemForm.d.ts +17 -0
- package/dist/Components/Map/ItemView.d.ts +14 -0
- package/dist/Components/Map/Layer.d.ts +2 -0
- package/dist/Components/Map/Permissions.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/AddButton.d.ts +4 -0
- package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -0
- package/dist/Components/Map/Subcomponents/Controls/GratitudeControl.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/ItemFormPopup.d.ts +2 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +18 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +7 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -0
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -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 +6 -0
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +9 -0
- package/dist/Components/Map/Subcomponents/SelectPosition.d.ts +3 -0
- package/dist/Components/Map/Tags.d.ts +6 -0
- package/dist/Components/Map/UtopiaMap.d.ts +4 -0
- package/dist/Components/Map/UtopiaMapInner.d.ts +4 -0
- 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 +41 -0
- package/dist/Components/Map/hooks/useItems.d.ts +27 -0
- package/dist/Components/Map/hooks/useLayers.d.ts +14 -0
- package/dist/Components/Map/hooks/useLeafletRefs.d.ts +22 -0
- package/dist/Components/Map/hooks/usePermissions.d.ts +24 -0
- package/dist/Components/Map/hooks/useSelectPosition.d.ts +24 -0
- package/dist/Components/Map/hooks/useTags.d.ts +24 -0
- 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 +13 -0
- package/dist/Components/Map/setItemLocation.d.ts +1 -0
- package/dist/Components/Profile/ProfileForm.d.ts +1 -0
- package/dist/Components/Profile/ProfileView.d.ts +4 -0
- package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +10 -0
- package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -0
- package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -0
- package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +18 -0
- package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -0
- package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +7 -0
- package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -0
- package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
- package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
- package/dist/Components/Profile/Subcomponents/ProfileTextView.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/Subcomponents/TagsWidget.d.ts +6 -0
- package/dist/Components/Profile/Templates/FlexForm.d.ts +7 -0
- package/dist/Components/Profile/Templates/FlexView.d.ts +4 -0
- package/dist/Components/Profile/Templates/OnepagerForm.d.ts +7 -0
- package/dist/Components/Profile/Templates/OnepagerView.d.ts +4 -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 +13 -0
- package/dist/Components/Profile/UserSettings.d.ts +1 -0
- package/dist/Components/Profile/hooks/useClickOutside.d.ts +2 -0
- package/dist/Components/Profile/index.d.ts +4 -0
- package/dist/Components/Profile/itemFunctions.d.ts +5 -0
- package/dist/Components/Templates/AttestationForm.d.ts +4 -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/EmojiPicker.d.ts +10 -0
- package/dist/Components/Templates/ItemCard.d.ts +7 -0
- package/dist/Components/Templates/MapOverlayPage.d.ts +7 -0
- package/dist/Components/Templates/MarketView.d.ts +1 -0
- package/dist/Components/Templates/MoonCalendar.d.ts +1 -0
- package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +5 -0
- package/dist/Components/Templates/SelectUser.d.ts +1 -0
- package/dist/Components/Templates/TagView.d.ts +7 -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 +6 -0
- package/dist/Utils/ContainsUUID.d.ts +1 -0
- package/dist/Utils/FormatTags.d.ts +2 -0
- package/dist/Utils/HashTagRegex.d.ts +1 -0
- package/dist/Utils/MarkerIconFactory.d.ts +2 -0
- package/dist/Utils/Moon.d.ts +7 -0
- package/dist/Utils/RandomColor.d.ts +1 -0
- package/dist/Utils/ReplaceURLs.d.ts +3 -0
- package/dist/Utils/ReverseGeocoder.d.ts +1 -0
- package/dist/Utils/TimeAgo.d.ts +1 -0
- package/dist/index.cjs +975 -20
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +21 -192
- package/dist/index.esm.js +975 -20
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +5268 -0
- package/dist/index.js.map +1 -0
- package/dist/src/Components/Map/Layer.d.ts +1 -1
- package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -4
- package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -2
- package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +3 -4
- package/dist/src/Components/Profile/Subcomponents/ActionsButton.d.ts +1 -2
- package/dist/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +1 -4
- package/dist/src/Components/Templates/ItemCard.d.ts +1 -2
- package/dist/src/Components/Templates/OverlayItemsIndexPage.d.ts +1 -2
- package/dist/types/src/Components/Map/UtopiaMap.d.ts +1 -1
- package/dist/types/src/Components/Map/UtopiaMapInner.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts +9 -0
- package/package.json +2 -1
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { LayerProps } from '#types/LayerProps';
|
2
|
-
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType,
|
2
|
+
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, onlyOnePerOwner, customEditLink, customEditParameter, public_edit_items, listed, setItemFormPopup, itemFormPopup, clusterRef, }: LayerProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,14 +1,11 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
2
|
import type { ItemsApi } from '#types/ItemsApi';
|
3
|
-
export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback,
|
3
|
+
export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, loading, hideMenu, big, truncateSubname, hideSubname, showAddress, }: {
|
4
4
|
item: Item;
|
5
5
|
api?: ItemsApi<any>;
|
6
6
|
editCallback?: any;
|
7
7
|
deleteCallback?: any;
|
8
8
|
setPositionCallback?: any;
|
9
|
-
itemNameField?: string;
|
10
|
-
itemAvatarField?: string;
|
11
|
-
itemSubnameField?: string;
|
12
9
|
loading?: boolean;
|
13
10
|
hideMenu?: boolean;
|
14
11
|
big?: boolean;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
export declare const PopupButton: ({ url, parameterField, text,
|
2
|
+
export declare const PopupButton: ({ url, parameterField, text, item, }: {
|
3
3
|
url: string;
|
4
4
|
parameterField?: string;
|
5
5
|
text: string;
|
6
|
-
colorField?: string;
|
7
6
|
item?: Item;
|
8
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
export declare const TextView: ({ itemId, text, truncate, rawText, }: {
|
2
|
+
itemId: string;
|
3
|
+
text?: string;
|
4
4
|
truncate?: boolean;
|
5
|
-
itemTextField?: string;
|
6
5
|
rawText?: string;
|
7
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType,
|
2
|
+
export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType, collection, customStyle, }: {
|
3
3
|
triggerAddButton?: any;
|
4
4
|
triggerItemSelected?: any;
|
5
5
|
existingRelations: Item[];
|
6
6
|
itemType?: string;
|
7
|
-
colorField?: string;
|
8
7
|
collection?: string;
|
9
8
|
customStyle?: string;
|
10
9
|
item: Item;
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
export declare function LinkedItemsHeaderView({ item, unlinkCallback,
|
2
|
+
export declare function LinkedItemsHeaderView({ item, unlinkCallback, loading, unlinkPermission, }: {
|
3
3
|
item: Item;
|
4
4
|
unlinkCallback?: any;
|
5
|
-
itemNameField?: string;
|
6
|
-
itemAvatarField?: string;
|
7
|
-
itemSubnameField?: string;
|
8
5
|
loading?: boolean;
|
9
6
|
unlinkPermission: boolean;
|
10
7
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import type { Item } from '#types/Item';
|
2
|
-
export declare const ItemCard: ({ i, loading, url,
|
2
|
+
export declare const ItemCard: ({ i, loading, url, deleteCallback, }: {
|
3
3
|
i: Item;
|
4
4
|
loading: boolean;
|
5
5
|
url: string;
|
6
|
-
parameterField: string;
|
7
6
|
deleteCallback: any;
|
8
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
export declare const OverlayItemsIndexPage: ({ url, layerName,
|
1
|
+
export declare const OverlayItemsIndexPage: ({ url, layerName, plusButton, }: {
|
2
2
|
layerName: string;
|
3
3
|
url: string;
|
4
|
-
parameterField: string;
|
5
4
|
plusButton?: boolean;
|
6
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { UtopiaMapProps } from '#types/UtopiaMapProps';
|
2
2
|
import 'react-toastify/dist/ReactToastify.css';
|
3
|
-
declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
3
|
+
declare function UtopiaMap({ height, width, center, zoom, children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, donationWidget, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
4
4
|
export { UtopiaMap };
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import 'leaflet/dist/leaflet.css';
|
2
2
|
import './UtopiaMap.css';
|
3
3
|
import type { UtopiaMapProps } from '#types/UtopiaMapProps';
|
4
|
-
export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl,
|
4
|
+
export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl, donationWidget, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
|
@@ -6,6 +6,7 @@ export { UserSettings, ProfileView, ProfileForm } from './Components/Profile';
|
|
6
6
|
export { Quests, Modal } from './Components/Gaming';
|
7
7
|
export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalendar, SelectUser, AttestationForm, MarketView, } from './Components/Templates';
|
8
8
|
export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
|
9
|
+
export * from './types';
|
9
10
|
declare global {
|
10
11
|
interface Window {
|
11
12
|
my_modal_3: {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export type { ItemsApi } from './ItemsApi';
|
2
|
+
export type { Tag } from './Tag';
|
3
|
+
export type { Item } from './Item';
|
4
|
+
export type { Permission } from './Permission';
|
5
|
+
export type { LayerProps } from './LayerProps';
|
6
|
+
export type { UserApi } from './UserApi';
|
7
|
+
export type { UserItem } from './UserItem';
|
8
|
+
export type { UtopiaMapProps } from './UtopiaMapProps';
|
9
|
+
export type { AssetsApi } from './AssetsApi';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.59",
|
4
4
|
"description": "Reuseable React Components to build mapping apps for real life communities and networks",
|
5
5
|
"repository": "https://github.com/utopia-os/utopia-ui",
|
6
6
|
"homepage": "https://utopia-os.org/",
|
@@ -33,6 +33,7 @@
|
|
33
33
|
"devDependencies": {
|
34
34
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
35
35
|
"@rollup/plugin-alias": "^5.1.1",
|
36
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
36
37
|
"@rollup/plugin-typescript": "^12.1.2",
|
37
38
|
"@testing-library/jest-dom": "^6.6.3",
|
38
39
|
"@testing-library/react": "^16.2.0",
|