utopia-ui 3.0.44 → 3.0.46

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 (136) hide show
  1. package/dist/index.js +4795 -4795
  2. package/dist/index.js.map +1 -1
  3. package/dist/setupTest.d.ts +1 -1
  4. package/dist/src/Components/AppShell/AppShell.d.ts +8 -7
  5. package/dist/src/Components/AppShell/Content.d.ts +6 -5
  6. package/dist/src/Components/AppShell/ContextWrapper.d.ts +6 -6
  7. package/dist/src/Components/AppShell/NavBar.d.ts +4 -4
  8. package/dist/src/Components/AppShell/SetAppState.d.ts +5 -5
  9. package/dist/src/Components/AppShell/SideBar.d.ts +13 -12
  10. package/dist/src/Components/AppShell/SidebarSubmenu.d.ts +8 -7
  11. package/dist/src/Components/AppShell/Sitemap.d.ts +3 -3
  12. package/dist/src/Components/AppShell/hooks/useAppState.d.ts +17 -16
  13. package/dist/src/Components/AppShell/hooks/useAssets.d.ts +13 -12
  14. package/dist/src/Components/AppShell/index.d.ts +4 -4
  15. package/dist/src/Components/Auth/LoginPage.d.ts +1 -1
  16. package/dist/src/Components/Auth/RequestPasswordPage.d.ts +3 -3
  17. package/dist/src/Components/Auth/SetNewPasswordPage.d.ts +1 -1
  18. package/dist/src/Components/Auth/SignupPage.d.ts +1 -1
  19. package/dist/src/Components/Auth/index.d.ts +5 -5
  20. package/dist/src/Components/Auth/useAuth.d.ts +27 -26
  21. package/dist/src/Components/Gaming/Modal.d.ts +5 -4
  22. package/dist/src/Components/Gaming/Quests.d.ts +1 -1
  23. package/dist/src/Components/Gaming/hooks/useQuests.d.ts +13 -12
  24. package/dist/src/Components/Gaming/index.d.ts +2 -2
  25. package/dist/src/Components/Input/Autocomplete.d.ts +7 -7
  26. package/dist/src/Components/Input/ComboBoxInput.d.ts +8 -8
  27. package/dist/src/Components/Input/SelectBox.d.ts +16 -16
  28. package/dist/src/Components/Input/TextAreaInput.d.ts +13 -13
  29. package/dist/src/Components/Input/TextInput.d.ts +16 -16
  30. package/dist/src/Components/Input/TextInput.spec.d.ts +1 -1
  31. package/dist/src/Components/Input/index.d.ts +3 -3
  32. package/dist/src/Components/Map/ItemForm.d.ts +17 -16
  33. package/dist/src/Components/Map/ItemView.d.ts +14 -14
  34. package/dist/src/Components/Map/Layer.d.ts +2 -2
  35. package/dist/src/Components/Map/Permissions.d.ts +7 -7
  36. package/dist/src/Components/Map/Subcomponents/AddButton.d.ts +4 -3
  37. package/dist/src/Components/Map/Subcomponents/Controls/Control.d.ts +6 -6
  38. package/dist/src/Components/Map/Subcomponents/Controls/FilterControl.d.ts +1 -1
  39. package/dist/src/Components/Map/Subcomponents/Controls/GratitudeControl.d.ts +1 -1
  40. package/dist/src/Components/Map/Subcomponents/Controls/LayerControl.d.ts +1 -1
  41. package/dist/src/Components/Map/Subcomponents/Controls/LocateControl.d.ts +3 -3
  42. package/dist/src/Components/Map/Subcomponents/Controls/QuestControl.d.ts +1 -1
  43. package/dist/src/Components/Map/Subcomponents/Controls/SearchControl.d.ts +1 -1
  44. package/dist/src/Components/Map/Subcomponents/Controls/SidebarControl.d.ts +1 -1
  45. package/dist/src/Components/Map/Subcomponents/Controls/TagsControl.d.ts +1 -1
  46. package/dist/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +2 -2
  47. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +18 -18
  48. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +8 -8
  49. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +6 -6
  50. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +9 -9
  51. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +7 -7
  52. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +7 -7
  53. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.d.ts +4 -4
  54. package/dist/src/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +7 -7
  55. package/dist/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +9 -8
  56. package/dist/src/Components/Map/Subcomponents/SelectPosition.d.ts +3 -3
  57. package/dist/src/Components/Map/Tags.d.ts +6 -6
  58. package/dist/src/Components/Map/UtopiaMap.d.ts +4 -4
  59. package/dist/src/Components/Map/UtopiaMapInner.d.ts +4 -4
  60. package/dist/src/Components/Map/hooks/useClusterRef.d.ts +12 -11
  61. package/dist/src/Components/Map/hooks/useDebounce.d.ts +1 -1
  62. package/dist/src/Components/Map/hooks/useFilter.d.ts +41 -40
  63. package/dist/src/Components/Map/hooks/useItems.d.ts +27 -26
  64. package/dist/src/Components/Map/hooks/useLayers.d.ts +14 -13
  65. package/dist/src/Components/Map/hooks/useLeafletRefs.d.ts +22 -21
  66. package/dist/src/Components/Map/hooks/usePermissions.d.ts +24 -23
  67. package/dist/src/Components/Map/hooks/useSelectPosition.d.ts +24 -23
  68. package/dist/src/Components/Map/hooks/useTags.d.ts +24 -23
  69. package/dist/src/Components/Map/hooks/useTimeout.d.ts +4 -4
  70. package/dist/src/Components/Map/hooks/useWindowDimension.d.ts +4 -4
  71. package/dist/src/Components/Map/index.d.ts +13 -13
  72. package/dist/src/Components/Map/setItemLocation.d.ts +1 -1
  73. package/dist/src/Components/Profile/ProfileForm.d.ts +1 -1
  74. package/dist/src/Components/Profile/ProfileView.d.ts +4 -4
  75. package/dist/src/Components/Profile/Subcomponents/ActionsButton.d.ts +11 -11
  76. package/dist/src/Components/Profile/Subcomponents/AvatarWidget.d.ts +8 -7
  77. package/dist/src/Components/Profile/Subcomponents/ColorPicker.d.ts +6 -6
  78. package/dist/src/Components/Profile/Subcomponents/ContactInfoForm.d.ts +5 -5
  79. package/dist/src/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -5
  80. package/dist/src/Components/Profile/Subcomponents/FormHeader.d.ts +5 -5
  81. package/dist/src/Components/Profile/Subcomponents/GalleryView.d.ts +6 -6
  82. package/dist/src/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +6 -6
  83. package/dist/src/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +18 -18
  84. package/dist/src/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +10 -10
  85. package/dist/src/Components/Profile/Subcomponents/MarkdownHint.d.ts +1 -1
  86. package/dist/src/Components/Profile/Subcomponents/PlusButton.d.ts +7 -7
  87. package/dist/src/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +5 -5
  88. package/dist/src/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -4
  89. package/dist/src/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -10
  90. package/dist/src/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -7
  91. package/dist/src/Components/Profile/Subcomponents/RelationCard.d.ts +6 -6
  92. package/dist/src/Components/Profile/Subcomponents/SocialShareBar.d.ts +6 -6
  93. package/dist/src/Components/Profile/Subcomponents/SocialShareButton.d.ts +6 -6
  94. package/dist/src/Components/Profile/Subcomponents/TagsWidget.d.ts +6 -6
  95. package/dist/src/Components/Profile/Templates/FlexForm.d.ts +7 -7
  96. package/dist/src/Components/Profile/Templates/FlexView.d.ts +4 -4
  97. package/dist/src/Components/Profile/Templates/OnepagerForm.d.ts +7 -7
  98. package/dist/src/Components/Profile/Templates/OnepagerView.d.ts +4 -4
  99. package/dist/src/Components/Profile/Templates/SimpleForm.d.ts +4 -4
  100. package/dist/src/Components/Profile/Templates/SimpleView.d.ts +4 -4
  101. package/dist/src/Components/Profile/Templates/TabsForm.d.ts +10 -10
  102. package/dist/src/Components/Profile/Templates/TabsView.d.ts +13 -13
  103. package/dist/src/Components/Profile/UserSettings.d.ts +1 -1
  104. package/dist/src/Components/Profile/hooks/useClickOutside.d.ts +2 -2
  105. package/dist/src/Components/Profile/index.d.ts +4 -4
  106. package/dist/src/Components/Profile/itemFunctions.d.ts +5 -5
  107. package/dist/src/Components/Templates/AttestationForm.d.ts +4 -4
  108. package/dist/src/Components/Templates/CardPage.d.ts +10 -9
  109. package/dist/src/Components/Templates/CircleLayout.d.ts +5 -5
  110. package/dist/src/Components/Templates/DateUserInfo.d.ts +4 -4
  111. package/dist/src/Components/Templates/DialogModal.d.ts +12 -11
  112. package/dist/src/Components/Templates/EmojiPicker.d.ts +10 -10
  113. package/dist/src/Components/Templates/ItemCard.d.ts +8 -8
  114. package/dist/src/Components/Templates/MapOverlayPage.d.ts +7 -6
  115. package/dist/src/Components/Templates/MarketView.d.ts +1 -1
  116. package/dist/src/Components/Templates/MoonCalendar.d.ts +1 -1
  117. package/dist/src/Components/Templates/OverlayItemsIndexPage.d.ts +6 -6
  118. package/dist/src/Components/Templates/SelectUser.d.ts +1 -1
  119. package/dist/src/Components/Templates/TagView.d.ts +7 -7
  120. package/dist/src/Components/Templates/TitleCard.d.ts +11 -10
  121. package/dist/src/Components/Templates/index.d.ts +8 -8
  122. package/dist/src/Components/Typography/ErrorText.d.ts +5 -5
  123. package/dist/src/Components/Typography/Subtitle.d.ts +6 -5
  124. package/dist/src/Utils/ContainsUUID.d.ts +1 -1
  125. package/dist/src/Utils/FormatTags.d.ts +2 -2
  126. package/dist/src/Utils/GetValue.d.ts +1 -1
  127. package/dist/src/Utils/HashTagRegex.d.ts +1 -1
  128. package/dist/src/Utils/MarkerIconFactory.d.ts +2 -2
  129. package/dist/src/Utils/Moon.d.ts +7 -7
  130. package/dist/src/Utils/RandomColor.d.ts +1 -1
  131. package/dist/src/Utils/ReplaceURLs.d.ts +3 -3
  132. package/dist/src/Utils/ReverseGeocoder.d.ts +1 -1
  133. package/dist/src/Utils/TimeAgo.d.ts +1 -1
  134. package/dist/src/index.d.ts +15 -15
  135. package/dist/vite.config.d.ts +2 -2
  136. package/package.json +2 -2
@@ -1 +1 @@
1
- export declare const SidebarControl: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SidebarControl: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const TagsControl: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const TagsControl: () => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
2
- export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
1
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
2
+ export declare function ItemFormPopup(props: ItemFormPopupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,18 @@
1
- import type { Item } from '#types/Item';
2
- import type { ItemsApi } from '#types/ItemsApi';
3
- export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, itemNameField, itemSubnameField, itemAvatarField, loading, hideMenu, big, truncateSubname, hideSubname, showAddress, }: {
4
- item: Item;
5
- api?: ItemsApi<any>;
6
- editCallback?: any;
7
- deleteCallback?: any;
8
- setPositionCallback?: any;
9
- itemNameField?: string;
10
- itemAvatarField?: string;
11
- itemSubnameField?: string;
12
- loading?: boolean;
13
- hideMenu?: boolean;
14
- big?: boolean;
15
- hideSubname?: boolean;
16
- truncateSubname?: boolean;
17
- showAddress?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
2
+ import type { ItemsApi } from '#types/ItemsApi';
3
+ export declare function HeaderView({ item, api, editCallback, deleteCallback, setPositionCallback, itemNameField, itemSubnameField, itemAvatarField, loading, hideMenu, big, truncateSubname, hideSubname, showAddress, }: {
4
+ item: Item;
5
+ api?: ItemsApi<any>;
6
+ editCallback?: any;
7
+ deleteCallback?: any;
8
+ setPositionCallback?: any;
9
+ itemNameField?: string;
10
+ itemAvatarField?: string;
11
+ itemSubnameField?: string;
12
+ loading?: boolean;
13
+ hideMenu?: boolean;
14
+ big?: boolean;
15
+ hideSubname?: boolean;
16
+ truncateSubname?: boolean;
17
+ showAddress?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import type { Item } from '#types/Item';
2
- export declare const PopupButton: ({ url, parameterField, text, colorField, item, }: {
3
- url: string;
4
- parameterField?: string;
5
- text: string;
6
- colorField?: string;
7
- item?: Item;
8
- }) => import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
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;
@@ -1,6 +1,6 @@
1
- import type { Item } from '#types/Item';
2
- export declare const PopupCheckboxInput: ({ dataField, label, item, }: {
3
- dataField: string;
4
- label: string;
5
- item?: Item;
6
- }) => import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
2
+ export declare const PopupCheckboxInput: ({ dataField, label, item, }: {
3
+ dataField: string;
4
+ label: string;
5
+ item?: Item | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import type { Item } from '#types/Item';
2
- interface StartEndInputProps {
3
- item?: Item;
4
- showLabels?: boolean;
5
- updateStartValue?: (value: string) => void;
6
- updateEndValue?: (value: string) => void;
7
- }
8
- export declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
1
+ import type { Item } from '#types/Item';
2
+ interface StartEndInputProps {
3
+ item?: Item;
4
+ showLabels?: boolean;
5
+ updateStartValue?: (value: string) => void;
6
+ updateEndValue?: (value: string) => void;
7
+ }
8
+ export declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,7 +1,7 @@
1
- import type { Item } from '#types/Item';
2
- export declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
3
- dataField: string;
4
- placeholder: string;
5
- style?: string;
6
- item?: Item;
7
- }) => import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
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;
@@ -1,7 +1,7 @@
1
- import type { Item } from '#types/Item';
2
- export declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
3
- dataField: string;
4
- placeholder: string;
5
- style?: string;
6
- item?: Item;
7
- }) => import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
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;
@@ -1,4 +1,4 @@
1
- import type { Item } from '#types/Item';
2
- export declare const StartEndView: ({ item }: {
3
- item?: Item;
4
- }) => import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
2
+ export declare const StartEndView: ({ item }: {
3
+ item?: Item | undefined;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import type { Item } from '#types/Item';
2
- export declare const TextView: ({ item, truncate, itemTextField, rawText, }: {
3
- item?: Item;
4
- truncate?: boolean;
5
- itemTextField?: string;
6
- rawText?: string;
7
- }) => import("react/jsx-runtime").JSX.Element;
1
+ import type { Item } from '#types/Item';
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,8 +1,9 @@
1
- import type { Item } from '#types/Item';
2
- import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
3
- export interface ItemViewPopupProps {
4
- item: Item;
5
- children?: React.ReactNode;
6
- setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
7
- }
8
- export declare const ItemViewPopup: import("react").ForwardRefExoticComponent<ItemViewPopupProps & import("react").RefAttributes<unknown>>;
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
4
+ export interface ItemViewPopupProps {
5
+ item: Item;
6
+ children?: React.ReactNode;
7
+ setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
8
+ }
9
+ export declare const ItemViewPopup: import("react").ForwardRefExoticComponent<ItemViewPopupProps & import("react").RefAttributes<unknown>>;
@@ -1,3 +1,3 @@
1
- export declare const SelectPosition: ({ setSelectNewItemPosition }: {
2
- setSelectNewItemPosition: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SelectPosition: ({ setSelectNewItemPosition }: {
2
+ setSelectNewItemPosition: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import type { ItemsApi } from '#types/ItemsApi';
2
- import type { Tag } from '#types/Tag';
3
- export declare function Tags({ data, api }: {
4
- data?: Tag[];
5
- api?: ItemsApi<Tag>;
6
- }): import("react/jsx-runtime").JSX.Element;
1
+ import type { ItemsApi } from '#types/ItemsApi';
2
+ import type { Tag } from '#types/Tag';
3
+ export declare function Tags({ data, api }: {
4
+ data?: Tag[];
5
+ api?: ItemsApi<Tag>;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { UtopiaMapProps } from '#types/UtopiaMapProps';
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;
4
- export { UtopiaMap };
1
+ import type { UtopiaMapProps } from '#types/UtopiaMapProps';
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;
4
+ export { UtopiaMap };
@@ -1,4 +1,4 @@
1
- import 'leaflet/dist/leaflet.css';
2
- import './UtopiaMap.css';
3
- import type { UtopiaMapProps } from '#types/UtopiaMapProps';
4
- export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
1
+ import 'leaflet/dist/leaflet.css';
2
+ import './UtopiaMap.css';
3
+ import type { UtopiaMapProps } from '#types/UtopiaMapProps';
4
+ export declare function UtopiaMapInner({ children, geo, showFilterControl, showGratitudeControl, showLayerControl, infoText, }: UtopiaMapProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,12 @@
1
- type UseClusterRefManagerResult = ReturnType<typeof useClusterRefManager>;
2
- declare function useClusterRefManager(): {
3
- clusterRef: any;
4
- setClusterRef: React.Dispatch<React.SetStateAction<React.MutableRefObject<undefined>>>;
5
- };
6
- export declare const ClusterRefProvider: React.FunctionComponent<{
7
- children?: React.ReactNode;
8
- }>;
9
- export declare const useClusterRef: () => any;
10
- export declare const useSetClusterRef: () => UseClusterRefManagerResult["setClusterRef"];
11
- export {};
1
+ /// <reference types="react" />
2
+ 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 {};
@@ -1 +1 @@
1
- export declare const useDebounce: (callback: any, delay: any, deps: any) => void;
1
+ export declare const useDebounce: (callback: any, delay: any, deps: any) => void;
@@ -1,40 +1,41 @@
1
- import type { LayerProps } from '#types/LayerProps';
2
- import type { Tag } from '#types/Tag';
3
- type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
4
- declare function useFilterManager(initialTags: Tag[]): {
5
- filterTags: Tag[];
6
- searchPhrase: string;
7
- visibleLayers: LayerProps[];
8
- visibleGroupTypes: string[];
9
- addFilterTag: (tag: Tag) => void;
10
- removeFilterTag: (name: string) => void;
11
- resetFilterTags: () => void;
12
- setSearchPhrase: (phrase: string) => void;
13
- addVisibleLayer: (layer: LayerProps) => void;
14
- toggleVisibleLayer: (layer: LayerProps) => void;
15
- resetVisibleLayers: () => void;
16
- isLayerVisible: (layer: LayerProps) => boolean;
17
- addVisibleGroupType: (groupType: string) => void;
18
- toggleVisibleGroupType: (groupType: string) => void;
19
- isGroupTypeVisible: (groupType: string) => boolean;
20
- };
21
- export declare const FilterProvider: React.FunctionComponent<{
22
- initialTags: Tag[];
23
- children?: React.ReactNode;
24
- }>;
25
- export declare const useFilterTags: () => Tag[];
26
- export declare const useAddFilterTag: () => UseFilterManagerResult["addFilterTag"];
27
- export declare const useRemoveFilterTag: () => UseFilterManagerResult["removeFilterTag"];
28
- export declare const useResetFilterTags: () => UseFilterManagerResult["resetFilterTags"];
29
- export declare const useSearchPhrase: () => UseFilterManagerResult["searchPhrase"];
30
- export declare const useSetSearchPhrase: () => UseFilterManagerResult["setSearchPhrase"];
31
- export declare const useVisibleLayer: () => UseFilterManagerResult["visibleLayers"];
32
- export declare const useAddVisibleLayer: () => UseFilterManagerResult["addVisibleLayer"];
33
- export declare const useToggleVisibleLayer: () => UseFilterManagerResult["toggleVisibleLayer"];
34
- export declare const useResetVisibleLayers: () => UseFilterManagerResult["resetVisibleLayers"];
35
- export declare const useIsLayerVisible: () => UseFilterManagerResult["isLayerVisible"];
36
- export declare const useAddVisibleGroupType: () => UseFilterManagerResult["addVisibleGroupType"];
37
- export declare const useToggleVisibleGroupType: () => UseFilterManagerResult["toggleVisibleGroupType"];
38
- export declare const useIsGroupTypeVisible: () => UseFilterManagerResult["isGroupTypeVisible"];
39
- export declare const useVisibleGroupType: () => UseFilterManagerResult["visibleGroupTypes"];
40
- export {};
1
+ /// <reference types="react" />
2
+ import type { LayerProps } from '#types/LayerProps';
3
+ import type { Tag } from '#types/Tag';
4
+ type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
5
+ declare function useFilterManager(initialTags: Tag[]): {
6
+ filterTags: Tag[];
7
+ searchPhrase: string;
8
+ visibleLayers: LayerProps[];
9
+ visibleGroupTypes: string[];
10
+ addFilterTag: (tag: Tag) => void;
11
+ removeFilterTag: (name: string) => void;
12
+ resetFilterTags: () => void;
13
+ setSearchPhrase: (phrase: string) => void;
14
+ addVisibleLayer: (layer: LayerProps) => void;
15
+ toggleVisibleLayer: (layer: LayerProps) => void;
16
+ resetVisibleLayers: () => void;
17
+ isLayerVisible: (layer: LayerProps) => boolean;
18
+ addVisibleGroupType: (groupType: string) => void;
19
+ toggleVisibleGroupType: (groupType: string) => void;
20
+ isGroupTypeVisible: (groupType: string) => boolean;
21
+ };
22
+ export declare const FilterProvider: React.FunctionComponent<{
23
+ initialTags: Tag[];
24
+ children?: React.ReactNode;
25
+ }>;
26
+ export declare const useFilterTags: () => Tag[];
27
+ export declare const useAddFilterTag: () => UseFilterManagerResult['addFilterTag'];
28
+ export declare const useRemoveFilterTag: () => UseFilterManagerResult['removeFilterTag'];
29
+ export declare const useResetFilterTags: () => UseFilterManagerResult['resetFilterTags'];
30
+ export declare const useSearchPhrase: () => UseFilterManagerResult['searchPhrase'];
31
+ export declare const useSetSearchPhrase: () => UseFilterManagerResult['setSearchPhrase'];
32
+ export declare const useVisibleLayer: () => UseFilterManagerResult['visibleLayers'];
33
+ export declare const useAddVisibleLayer: () => UseFilterManagerResult['addVisibleLayer'];
34
+ export declare const useToggleVisibleLayer: () => UseFilterManagerResult['toggleVisibleLayer'];
35
+ export declare const useResetVisibleLayers: () => UseFilterManagerResult['resetVisibleLayers'];
36
+ export declare const useIsLayerVisible: () => UseFilterManagerResult['isLayerVisible'];
37
+ export declare const useAddVisibleGroupType: () => UseFilterManagerResult['addVisibleGroupType'];
38
+ export declare const useToggleVisibleGroupType: () => UseFilterManagerResult['toggleVisibleGroupType'];
39
+ export declare const useIsGroupTypeVisible: () => UseFilterManagerResult['isGroupTypeVisible'];
40
+ export declare const useVisibleGroupType: () => UseFilterManagerResult['visibleGroupTypes'];
41
+ export {};
@@ -1,26 +1,27 @@
1
- import type { Item } from '#types/Item';
2
- import type { LayerProps } from '#types/LayerProps';
3
- 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
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { LayerProps } from '#types/LayerProps';
4
+ type UseItemManagerResult = ReturnType<typeof useItemsManager>;
5
+ declare function useItemsManager(initialItems: Item[]): {
6
+ items: Item[];
7
+ addItem: (item: Item) => void;
8
+ updateItem: (item: Item) => void;
9
+ removeItem: (item: Item) => void;
10
+ resetItems: (layer: LayerProps) => void;
11
+ setItemsApi: (layer: LayerProps) => void;
12
+ setItemsData: (layer: LayerProps) => void;
13
+ allItemsLoaded: boolean;
14
+ };
15
+ export declare const ItemsProvider: React.FunctionComponent<{
16
+ initialItems: Item[];
17
+ children?: React.ReactNode;
18
+ }>;
19
+ export declare const useItems: () => Item[];
20
+ export declare const useAddItem: () => UseItemManagerResult['addItem'];
21
+ export declare const useUpdateItem: () => UseItemManagerResult['updateItem'];
22
+ export declare const useRemoveItem: () => UseItemManagerResult['removeItem'];
23
+ export declare const useResetItems: () => UseItemManagerResult['resetItems'];
24
+ export declare const useSetItemsApi: () => UseItemManagerResult['setItemsApi'];
25
+ export declare const useSetItemsData: () => UseItemManagerResult['setItemsData'];
26
+ export declare const useAllItemsLoaded: () => UseItemManagerResult['allItemsLoaded'];
27
+ export {};
@@ -1,13 +1,14 @@
1
- import type { LayerProps } from '#types/LayerProps';
2
- type UseItemManagerResult = ReturnType<typeof useLayerManager>;
3
- declare function useLayerManager(initialLayers: LayerProps[]): {
4
- layers: LayerProps[];
5
- addLayer: (layer: LayerProps) => void;
6
- };
7
- export declare const LayersProvider: React.FunctionComponent<{
8
- initialLayers: LayerProps[];
9
- children?: React.ReactNode;
10
- }>;
11
- export declare const useLayers: () => LayerProps[];
12
- export declare const useAddLayer: () => UseItemManagerResult["addLayer"];
13
- export {};
1
+ /// <reference types="react" />
2
+ import type { LayerProps } from '#types/LayerProps';
3
+ 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,21 +1,22 @@
1
- import type { Item } from '#types/Item';
2
- import type { Marker, Popup } from 'leaflet';
3
- interface LeafletRef {
4
- item: Item;
5
- marker: Marker;
6
- popup: Popup;
7
- }
8
- type UseLeafletRefsManagerResult = ReturnType<typeof useLeafletRefsManager>;
9
- declare function useLeafletRefsManager(initialLeafletRefs: {}): {
10
- leafletRefs: Record<string, LeafletRef>;
11
- addMarker: (item: Item, marker: Marker) => void;
12
- addPopup: (item: Item, popup: Popup) => void;
13
- };
14
- export declare const LeafletRefsProvider: React.FunctionComponent<{
15
- initialLeafletRefs: {};
16
- children?: React.ReactNode;
17
- }>;
18
- export declare const useLeafletRefs: () => Record<string, LeafletRef>;
19
- export declare const useAddMarker: () => UseLeafletRefsManagerResult["addMarker"];
20
- export declare const useAddPopup: () => UseLeafletRefsManagerResult["addPopup"];
21
- export {};
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { Marker, Popup } from 'leaflet';
4
+ interface LeafletRef {
5
+ item: Item;
6
+ marker: Marker;
7
+ popup: Popup;
8
+ }
9
+ 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,23 +1,24 @@
1
- import type { Item } from '#types/Item';
2
- import type { ItemsApi } from '#types/ItemsApi';
3
- import type { LayerProps } from '#types/LayerProps';
4
- import type { Permission } from '#types/Permission';
5
- import type { PermissionAction } from '#types/PermissionAction';
6
- type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
7
- declare function usePermissionsManager(initialPermissions: Permission[]): {
8
- permissions: Permission[];
9
- setPermissionApi: (api: ItemsApi<any>) => void;
10
- setPermissionData: (data: Permission[]) => void;
11
- setAdminRole: (adminRole: string) => void;
12
- hasUserPermission: (collectionName: string, action: PermissionAction, item?: Item, layer?: LayerProps) => boolean;
13
- };
14
- export declare const PermissionsProvider: React.FunctionComponent<{
15
- initialPermissions: Permission[];
16
- children?: React.ReactNode;
17
- }>;
18
- export declare const usePermissions: () => Permission[];
19
- export declare const useSetPermissionApi: () => UsePermissionManagerResult["setPermissionApi"];
20
- export declare const useSetPermissionData: () => UsePermissionManagerResult["setPermissionData"];
21
- export declare const useHasUserPermission: () => UsePermissionManagerResult["hasUserPermission"];
22
- export declare const useSetAdminRole: () => UsePermissionManagerResult["setAdminRole"];
23
- export {};
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { ItemsApi } from '#types/ItemsApi';
4
+ import type { LayerProps } from '#types/LayerProps';
5
+ import type { Permission } from '#types/Permission';
6
+ import type { PermissionAction } from '#types/PermissionAction';
7
+ type UsePermissionManagerResult = ReturnType<typeof usePermissionsManager>;
8
+ declare function usePermissionsManager(initialPermissions: Permission[]): {
9
+ permissions: Permission[];
10
+ setPermissionApi: (api: ItemsApi<any>) => void;
11
+ setPermissionData: (data: Permission[]) => void;
12
+ setAdminRole: (adminRole: string) => void;
13
+ hasUserPermission: (collectionName: string, action: PermissionAction, item?: Item, layer?: LayerProps) => boolean;
14
+ };
15
+ export declare const PermissionsProvider: React.FunctionComponent<{
16
+ initialPermissions: Permission[];
17
+ children?: React.ReactNode;
18
+ }>;
19
+ export declare const usePermissions: () => Permission[];
20
+ export declare const useSetPermissionApi: () => UsePermissionManagerResult['setPermissionApi'];
21
+ export declare const useSetPermissionData: () => UsePermissionManagerResult['setPermissionData'];
22
+ export declare const useHasUserPermission: () => UsePermissionManagerResult['hasUserPermission'];
23
+ export declare const useSetAdminRole: () => UsePermissionManagerResult['setAdminRole'];
24
+ export {};
@@ -1,23 +1,24 @@
1
- import type { Item } from '#types/Item';
2
- import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
3
- import type { LayerProps } from '#types/LayerProps';
4
- import type { LatLng } from 'leaflet';
5
- interface PolygonClickedProps {
6
- position: LatLng;
7
- setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
8
- }
9
- type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
10
- declare function useSelectPositionManager(): {
11
- selectPosition: Item | LayerProps | null;
12
- setSelectPosition: React.Dispatch<React.SetStateAction<Item | LayerProps | null>>;
13
- setMarkerClicked: React.Dispatch<React.SetStateAction<Item>>;
14
- setMapClicked: React.Dispatch<React.SetStateAction<PolygonClickedProps | undefined>>;
15
- };
16
- export declare const SelectPositionProvider: React.FunctionComponent<{
17
- children?: React.ReactNode;
18
- }>;
19
- export declare const useSelectPosition: () => Item | LayerProps | null;
20
- export declare const useSetSelectPosition: () => UseSelectPositionManagerResult["setSelectPosition"];
21
- export declare const useSetMarkerClicked: () => UseSelectPositionManagerResult["setMarkerClicked"];
22
- export declare const useSetMapClicked: () => UseSelectPositionManagerResult["setMapClicked"];
23
- export {};
1
+ /// <reference types="react" />
2
+ import type { Item } from '#types/Item';
3
+ import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
4
+ import type { LayerProps } from '#types/LayerProps';
5
+ import type { LatLng } from 'leaflet';
6
+ interface PolygonClickedProps {
7
+ position: LatLng;
8
+ setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
9
+ }
10
+ type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
11
+ declare function useSelectPositionManager(): {
12
+ selectPosition: Item | LayerProps | null;
13
+ setSelectPosition: React.Dispatch<React.SetStateAction<Item | LayerProps | null>>;
14
+ setMarkerClicked: React.Dispatch<React.SetStateAction<Item>>;
15
+ setMapClicked: React.Dispatch<React.SetStateAction<PolygonClickedProps | undefined>>;
16
+ };
17
+ export declare const SelectPositionProvider: React.FunctionComponent<{
18
+ children?: React.ReactNode;
19
+ }>;
20
+ export declare const useSelectPosition: () => Item | LayerProps | null;
21
+ export declare const useSetSelectPosition: () => UseSelectPositionManagerResult['setSelectPosition'];
22
+ export declare const useSetMarkerClicked: () => UseSelectPositionManagerResult['setMarkerClicked'];
23
+ export declare const useSetMapClicked: () => UseSelectPositionManagerResult['setMapClicked'];
24
+ export {};