utopia-ui 3.0.0-alpha.211 → 3.0.0-alpha.213

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.
Files changed (145) hide show
  1. package/dist/Components/AppShell/AppShell.d.ts +1 -0
  2. package/dist/Components/AppShell/SideBar.d.ts +0 -1
  3. package/dist/Components/AppShell/SidebarSubmenu.d.ts +0 -1
  4. package/dist/Components/AppShell/Sitemap.d.ts +3 -0
  5. package/dist/Components/AppShell/index.d.ts +1 -0
  6. package/dist/Components/Profile/{OverlayItemProfile.d.ts → ProfileForm.d.ts} +1 -1
  7. package/dist/Components/Profile/ProfileView.d.ts +3 -0
  8. package/dist/Components/Profile/{ActionsButton.d.ts → Subcomponents/ActionsButton.d.ts} +1 -1
  9. package/dist/Components/Profile/{AvatarWidget.d.ts → Subcomponents/AvatarWidget.d.ts} +2 -1
  10. package/dist/Components/Profile/Subcomponents/FormHeader.d.ts +5 -0
  11. package/dist/Components/Profile/{LinkedItemsHeaderView.d.ts → Subcomponents/LinkedItemsHeaderView.d.ts} +1 -1
  12. package/dist/Components/Profile/{PlusButton.d.ts → Subcomponents/PlusButton.d.ts} +1 -1
  13. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +22 -0
  14. package/dist/Components/Profile/Templates/OnepagerView.d.ts +5 -0
  15. package/dist/Components/Profile/Templates/SimpleForm.d.ts +1 -0
  16. package/dist/Components/Profile/Templates/SimpleView.d.ts +4 -0
  17. package/dist/Components/Profile/Templates/TabsForm.d.ts +9 -0
  18. package/dist/Components/Profile/Templates/TabsView.d.ts +11 -0
  19. package/dist/Components/Profile/UserSettings.d.ts +0 -2
  20. package/dist/Components/Profile/index.d.ts +3 -7
  21. package/dist/Components/Profile/itemFunctions.d.ts +5 -0
  22. package/dist/Components/Templates/index.d.ts +0 -3
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +852 -1301
  25. package/dist/index.js.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/Components/Auth/LoginPage copy.d.ts +0 -2
  28. package/dist/Components/Auth/ResetPasswordPage.d.ts +0 -2
  29. package/dist/Components/Auth/Signuppage.d.ts +0 -2
  30. package/dist/Components/Map/Subcomponents/Control.d.ts +0 -5
  31. package/dist/Components/Map/Subcomponents/FilterControl.d.ts +0 -2
  32. package/dist/Components/Map/Subcomponents/LayerControl.d.ts +0 -2
  33. package/dist/Components/Map/Subcomponents/QuestControl.d.ts +0 -2
  34. package/dist/Components/Map/hooks/useSetItemPosition.d.ts +0 -13
  35. package/dist/Components/Profile/ActionButton.d.ts +0 -5
  36. package/dist/Components/Profile/Editor.d.ts +0 -4
  37. package/dist/Components/Profile/ItemForm.d.ts +0 -1
  38. package/dist/Components/Profile/OverlayItemProfileSettings.d.ts +0 -3
  39. package/dist/Components/Profile/OverlayProfile.d.ts +0 -1
  40. package/dist/Components/Profile/OverlayProfileSettings.d.ts +0 -1
  41. package/dist/Components/Profile/OverlayUserSettings.d.ts +0 -1
  42. package/dist/Components/Profile/ProfileSettings.d.ts +0 -3
  43. package/dist/Components/Profile/Settings.d.ts +0 -4
  44. package/dist/Components/Profile/Tags.d.ts +0 -2
  45. package/dist/Components/Templates/AttestationForm.d.ts +0 -3
  46. package/dist/Components/Templates/CardItem.d.ts +0 -6
  47. package/dist/Components/Templates/ItemViewPage.d.ts +0 -14
  48. package/dist/Components/Templates/ItemsIndexPage.d.ts +0 -19
  49. package/dist/Components/Templates/MapOverlayScreen.d.ts +0 -4
  50. package/dist/Components/Templates/SelectUser.d.ts +0 -3
  51. package/dist/Utils/DynamicHeroIcon.d.ts +0 -7
  52. package/dist/workspace/utopia-ui/src/Components/AppShell/AppShell.d.ts +0 -8
  53. package/dist/workspace/utopia-ui/src/Components/AppShell/Content.d.ts +0 -6
  54. package/dist/workspace/utopia-ui/src/Components/AppShell/NavBar.d.ts +0 -4
  55. package/dist/workspace/utopia-ui/src/Components/AppShell/SetAssetsApi.d.ts +0 -4
  56. package/dist/workspace/utopia-ui/src/Components/AppShell/SideBar.d.ts +0 -12
  57. package/dist/workspace/utopia-ui/src/Components/AppShell/SidebarSubmenu.d.ts +0 -7
  58. package/dist/workspace/utopia-ui/src/Components/AppShell/hooks/useAssets.d.ts +0 -13
  59. package/dist/workspace/utopia-ui/src/Components/AppShell/index.d.ts +0 -3
  60. package/dist/workspace/utopia-ui/src/Components/Auth/LoginPage.d.ts +0 -1
  61. package/dist/workspace/utopia-ui/src/Components/Auth/RequestPasswordPage.d.ts +0 -3
  62. package/dist/workspace/utopia-ui/src/Components/Auth/SetNewPasswordPage.d.ts +0 -1
  63. package/dist/workspace/utopia-ui/src/Components/Auth/SignupPage.d.ts +0 -1
  64. package/dist/workspace/utopia-ui/src/Components/Auth/index.d.ts +0 -5
  65. package/dist/workspace/utopia-ui/src/Components/Auth/useAuth.d.ts +0 -26
  66. package/dist/workspace/utopia-ui/src/Components/Gaming/Modal.d.ts +0 -5
  67. package/dist/workspace/utopia-ui/src/Components/Gaming/Quests.d.ts +0 -1
  68. package/dist/workspace/utopia-ui/src/Components/Gaming/hooks/useQuests.d.ts +0 -13
  69. package/dist/workspace/utopia-ui/src/Components/Gaming/index.d.ts +0 -2
  70. package/dist/workspace/utopia-ui/src/Components/Input/Autocomplete.d.ts +0 -7
  71. package/dist/workspace/utopia-ui/src/Components/Input/SelectBox.d.ts +0 -16
  72. package/dist/workspace/utopia-ui/src/Components/Input/TextAreaInput.d.ts +0 -12
  73. package/dist/workspace/utopia-ui/src/Components/Input/TextInput.d.ts +0 -14
  74. package/dist/workspace/utopia-ui/src/Components/Input/index.d.ts +0 -3
  75. package/dist/workspace/utopia-ui/src/Components/Map/ItemForm.d.ts +0 -18
  76. package/dist/workspace/utopia-ui/src/Components/Map/ItemView.d.ts +0 -16
  77. package/dist/workspace/utopia-ui/src/Components/Map/Layer.d.ts +0 -2
  78. package/dist/workspace/utopia-ui/src/Components/Map/Permissions.d.ts +0 -6
  79. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/AddButton.d.ts +0 -4
  80. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/Control.d.ts +0 -6
  81. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +0 -1
  82. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +0 -3
  83. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +0 -1
  84. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +0 -3
  85. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +0 -1
  86. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +0 -11
  87. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +0 -7
  88. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +0 -8
  89. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +0 -4
  90. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +0 -7
  91. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +0 -7
  92. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +0 -4
  93. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +0 -6
  94. package/dist/workspace/utopia-ui/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -9
  95. package/dist/workspace/utopia-ui/src/Components/Map/Tags.d.ts +0 -5
  96. package/dist/workspace/utopia-ui/src/Components/Map/UtopiaMap.d.ts +0 -11
  97. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useDebounce.d.ts +0 -1
  98. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useFilter.d.ts +0 -32
  99. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useItems.d.ts +0 -26
  100. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLayers.d.ts +0 -14
  101. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useLeafletRefs.d.ts +0 -22
  102. package/dist/workspace/utopia-ui/src/Components/Map/hooks/usePermissions.d.ts +0 -20
  103. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTags.d.ts +0 -22
  104. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useTimeout.d.ts +0 -4
  105. package/dist/workspace/utopia-ui/src/Components/Map/hooks/useWindowDimension.d.ts +0 -4
  106. package/dist/workspace/utopia-ui/src/Components/Map/index.d.ts +0 -12
  107. package/dist/workspace/utopia-ui/src/Components/Profile/ColorPicker.d.ts +0 -6
  108. package/dist/workspace/utopia-ui/src/Components/Profile/Editor.d.ts +0 -4
  109. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfile.d.ts +0 -1
  110. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayProfileSettings.d.ts +0 -1
  111. package/dist/workspace/utopia-ui/src/Components/Profile/OverlayUserSettings.d.ts +0 -1
  112. package/dist/workspace/utopia-ui/src/Components/Profile/ProfileSettings.d.ts +0 -3
  113. package/dist/workspace/utopia-ui/src/Components/Profile/TagsWidget.d.ts +0 -6
  114. package/dist/workspace/utopia-ui/src/Components/Profile/UserSettings.d.ts +0 -3
  115. package/dist/workspace/utopia-ui/src/Components/Profile/index.d.ts +0 -5
  116. package/dist/workspace/utopia-ui/src/Components/Profile/useClickOutside.d.ts +0 -2
  117. package/dist/workspace/utopia-ui/src/Components/Templates/CardPage.d.ts +0 -10
  118. package/dist/workspace/utopia-ui/src/Components/Templates/CircleLayout.d.ts +0 -5
  119. package/dist/workspace/utopia-ui/src/Components/Templates/DialogModal.d.ts +0 -10
  120. package/dist/workspace/utopia-ui/src/Components/Templates/ItemsIndexPage.d.ts +0 -15
  121. package/dist/workspace/utopia-ui/src/Components/Templates/MapOverlayPage.d.ts +0 -7
  122. package/dist/workspace/utopia-ui/src/Components/Templates/MoonCalendar.d.ts +0 -1
  123. package/dist/workspace/utopia-ui/src/Components/Templates/TagView.d.ts +0 -6
  124. package/dist/workspace/utopia-ui/src/Components/Templates/TitleCard.d.ts +0 -11
  125. package/dist/workspace/utopia-ui/src/Components/Templates/index.d.ts +0 -6
  126. package/dist/workspace/utopia-ui/src/Components/Typography/ErrorText.d.ts +0 -5
  127. package/dist/workspace/utopia-ui/src/Components/Typography/Subtitle.d.ts +0 -6
  128. package/dist/workspace/utopia-ui/src/Utils/FormatTags.d.ts +0 -2
  129. package/dist/workspace/utopia-ui/src/Utils/GetValue.d.ts +0 -1
  130. package/dist/workspace/utopia-ui/src/Utils/HashTagRegex.d.ts +0 -1
  131. package/dist/workspace/utopia-ui/src/Utils/MarkerIconFactory.d.ts +0 -3
  132. package/dist/workspace/utopia-ui/src/Utils/Moon.d.ts +0 -7
  133. package/dist/workspace/utopia-ui/src/Utils/RandomColor.d.ts +0 -1
  134. package/dist/workspace/utopia-ui/src/Utils/ReplaceURLs.d.ts +0 -3
  135. package/dist/workspace/utopia-ui/src/Utils/TimeAgo.d.ts +0 -1
  136. package/dist/workspace/utopia-ui/src/index.d.ts +0 -13
  137. package/dist/workspace/utopia-ui/src/types.d.ts +0 -108
  138. /package/dist/Components/Profile/{ColorPicker.d.ts → Subcomponents/ColorPicker.d.ts} +0 -0
  139. /package/dist/Components/Profile/{ContactInfo.d.ts → Subcomponents/ContactInfo.d.ts} +0 -0
  140. /package/dist/Components/Profile/{ProfileSubHeader.d.ts → Subcomponents/ProfileSubHeader.d.ts} +0 -0
  141. /package/dist/Components/Profile/{RelationCard.d.ts → Subcomponents/RelationCard.d.ts} +0 -0
  142. /package/dist/Components/Profile/{SocialShareBar.d.ts → Subcomponents/SocialShareBar.d.ts} +0 -0
  143. /package/dist/Components/Profile/{SocialShareButton.d.ts → Subcomponents/SocialShareButton.d.ts} +0 -0
  144. /package/dist/Components/Profile/{TagsWidget.d.ts → Subcomponents/TagsWidget.d.ts} +0 -0
  145. /package/dist/Components/Profile/{useClickOutside.d.ts → hooks/useClickOutside.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { AssetsApi } from '../../types';
3
+ import 'react-toastify/dist/ReactToastify.css';
3
4
  export declare function AppShell({ appName, children, assetsApi, userType }: {
4
5
  appName: string;
5
6
  children: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type route = {
3
2
  path: string;
4
3
  icon: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare function SidebarSubmenu({ submenu, name, icon }: {
3
2
  path: string;
4
3
  icon: JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const Sitemap: ({ url }: {
2
+ url: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export { AppShell } from "./AppShell";
2
2
  export { SideBar } from "./SideBar";
3
3
  export { Content } from "./Content";
4
+ export { Sitemap } from "./Sitemap";
@@ -1,3 +1,3 @@
1
- export declare function OverlayItemProfile({ userType }: {
1
+ export declare function ProfileForm({ userType }: {
2
2
  userType: string;
3
3
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function ProfileView({ userType }: {
2
+ userType: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Item } from "../../types";
1
+ import { Item } from "../../../types";
2
2
  export declare function ActionButton({ item, triggerAddButton, triggerItemSelected, existingRelations, itemType, colorField, collection, customStyle }: {
3
3
  triggerAddButton?: any;
4
4
  triggerItemSelected?: any;
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
+ import 'react-image-crop/dist/ReactCrop.css';
2
3
  export declare const AvatarWidget: ({ avatar, setAvatar }: {
3
4
  avatar: string;
4
- setAvatar: React.Dispatch<React.SetStateAction<string>>;
5
+ setAvatar: React.Dispatch<React.SetStateAction<any>>;
5
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const FormHeader: ({ item, state, setState }: {
2
+ item: any;
3
+ state: any;
4
+ setState: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Item } from "../../types";
1
+ import { Item } from "../../../types";
2
2
  export declare function LinkedItemsHeaderView({ item, unlinkCallback, itemNameField, itemAvatarField, loading, unlinkPermission, itemSubnameField }: {
3
3
  item: Item;
4
4
  unlinkCallback?: any;
@@ -1,4 +1,4 @@
1
- import { LayerProps } from "../../types";
1
+ import { LayerProps } from "../../../types";
2
2
  export declare function PlusButton({ layer, triggerAction, color, collection }: {
3
3
  layer?: LayerProps;
4
4
  triggerAction: any;
@@ -0,0 +1,22 @@
1
+ import { Item, Tag } from "../../../types";
2
+ export declare const OnepagerForm: ({ item, state, setState }: {
3
+ state: {
4
+ color: string;
5
+ id: string;
6
+ groupType: string;
7
+ status: string;
8
+ name: string;
9
+ subname: string;
10
+ text: string;
11
+ contact: string;
12
+ telephone: string;
13
+ nextAppointment: string;
14
+ image: string;
15
+ markerIcon: string;
16
+ offers: Tag[];
17
+ needs: Tag[];
18
+ relations: Item[];
19
+ };
20
+ setState: React.Dispatch<React.SetStateAction<any>>;
21
+ item: Item;
22
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Item } from "utopia-ui/dist/types";
2
+ export declare const OnepagerView: ({ item, userType }: {
3
+ item: Item;
4
+ userType: string;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SimpleForm: (item: any, setState: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Item } from '../../../types';
2
+ export declare const SimpleView: ({ item }: {
3
+ item: Item;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const TabsForm: ({ item, state, setState, updatePermission, linkItem, unlinkItem, loading }: {
2
+ item: any;
3
+ state: any;
4
+ setState: any;
5
+ updatePermission: any;
6
+ linkItem: any;
7
+ unlinkItem: any;
8
+ loading: any;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Item, Tag } from 'utopia-ui/dist/types';
2
+ export declare const TabsView: ({ item, offers, needs, relations, updatePermission, loading, linkItem, unlinkItem }: {
3
+ item: Item;
4
+ offers: Array<Tag>;
5
+ needs: Array<Tag>;
6
+ relations: Array<Item>;
7
+ updatePermission: boolean;
8
+ loading: boolean;
9
+ linkItem: (id: string) => Promise<void>;
10
+ unlinkItem: (id: string) => Promise<void>;
11
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1 @@
1
- import 'react-image-crop/dist/ReactCrop.css';
2
- import 'react-toastify/dist/ReactToastify.css';
3
1
  export declare function UserSettings(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,4 @@
1
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';
6
- export { OverlayItemProfile } from './OverlayItemProfile';
7
- export { OverlayItemProfileSettings } from './OverlayItemProfileSettings';
8
- export { PlusButton } from "./PlusButton";
2
+ export { PlusButton } from "./Subcomponents/PlusButton";
3
+ export { ProfileView } from "./ProfileView";
4
+ export { ProfileForm } from "./ProfileForm";
@@ -0,0 +1,5 @@
1
+ export declare const submitNewItem: (evt: any, type: string, item: any, user: any, setLoading: any, tags: any, addTag: any, addItem: any, linkItem: any, resetFilterTags: any, layers: any, addItemPopupType: any, setAddItemPopupType: any) => Promise<void>;
2
+ export declare const linkItem: (id: string, item: any, updateItem: any) => Promise<void>;
3
+ export declare const unlinkItem: (id: string, item: any, updateItem: any) => Promise<void>;
4
+ export declare const handleDelete: (event: React.MouseEvent<HTMLElement>, item: any, setLoading: any, removeItem: any, map: any, navigate: any) => Promise<void>;
5
+ export declare const onUpdateItem: (state: any, item: any, tags: any, addTag: any, setLoading: any, navigate: any, updateItem: any, addItem: any, user: any, params: any) => Promise<void>;
@@ -1,8 +1,5 @@
1
1
  export { CardPage } from './CardPage';
2
2
  export { TitleCard } from './TitleCard';
3
3
  export { MapOverlayPage } from './MapOverlayPage';
4
- export { CircleLayout } from './CircleLayout';
5
4
  export { MoonCalendar } from './MoonCalendar';
6
- export { ItemsIndexPage } from "./ItemsIndexPage";
7
- export { ItemViewPage } from "./ItemViewPage";
8
5
  export { OverlayItemsIndexPage } from "./OverlayItemsIndexPage";
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, PopupButton, TextView, StartEndView, PopupCheckboxInput } from './Components/Map';
2
- export { AppShell, Content, SideBar } from "./Components/AppShell";
2
+ export { AppShell, Content, SideBar, Sitemap } from "./Components/AppShell";
3
3
  export { AuthProvider, useAuth, LoginPage, SignupPage, RequestPasswordPage, SetNewPasswordPage } from "./Components/Auth";
4
- export { UserSettings, ProfileSettings, OverlayProfile, OverlayProfileSettings, OverlayUserSettings, OverlayItemProfile, OverlayItemProfileSettings } from './Components/Profile';
4
+ export { UserSettings, ProfileView, ProfileForm } from './Components/Profile';
5
5
  export { Quests, Modal } from './Components/Gaming';
6
- export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, CircleLayout, MoonCalendar, ItemsIndexPage, ItemViewPage } from './Components/Templates';
6
+ export { TitleCard, CardPage, MapOverlayPage, OverlayItemsIndexPage, MoonCalendar } from './Components/Templates';
7
7
  export { TextInput, TextAreaInput, SelectBox } from './Components/Input';
8
8
  import "./index.css";
9
9
  declare global {