utopia-ui 3.0.0-alpha.50 → 3.0.0-alpha.51
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/Map/Layer.d.ts +1 -1
- package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +1 -4
- package/dist/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -3
- package/dist/Components/Map/hooks/useTags.d.ts +2 -0
- package/dist/index.js +166 -105
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +5 -2
- package/package.json +1 -1
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { LayerProps } from '../../types';
|
3
|
-
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, api,
|
3
|
+
export declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, api, itemNameField, itemTextField, itemAvatarField, itemColorField, itemOwnerField, itemLatitudeField, itemLongitudeField, setItemFormPopup, itemFormPopup, clusterRef }: LayerProps) => JSX.Element;
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { ItemFormPopupProps } from "../ItemFormPopup";
|
3
3
|
import { Item } from "../../../../types";
|
4
|
-
export declare function HeaderView({ item,
|
4
|
+
export declare function HeaderView({ item, setItemFormPopup }: {
|
5
5
|
item: Item;
|
6
|
-
title?: string;
|
7
|
-
avatar?: string;
|
8
|
-
owner?: string;
|
9
6
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
10
7
|
}): JSX.Element;
|
@@ -4,9 +4,6 @@ import { ItemFormPopupProps } from './ItemFormPopup';
|
|
4
4
|
export interface ItemViewPopupProps {
|
5
5
|
item: Item;
|
6
6
|
children?: React.ReactNode;
|
7
|
-
title?: string;
|
8
|
-
avatar?: string;
|
9
|
-
owner?: string;
|
10
7
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>;
|
11
8
|
}
|
12
9
|
export declare const ItemViewPopup: React.ForwardRefExoticComponent<ItemViewPopupProps & React.RefAttributes<unknown>>;
|
@@ -8,6 +8,7 @@ declare function useTagsManager(initialTags: Tag[]): {
|
|
8
8
|
setTagApi: (api: ItemsApi<Tag>) => void;
|
9
9
|
setTagData: (data: Tag[]) => void;
|
10
10
|
getItemTags: (item: Item) => Tag[];
|
11
|
+
allTagsLoaded: boolean;
|
11
12
|
};
|
12
13
|
export declare const TagsProvider: React.FunctionComponent<{
|
13
14
|
initialTags: Tag[];
|
@@ -19,4 +20,5 @@ export declare const useRemoveTag: () => UseTagManagerResult["removeTag"];
|
|
19
20
|
export declare const useSetTagApi: () => UseTagManagerResult["setTagApi"];
|
20
21
|
export declare const useSetTagData: () => UseTagManagerResult["setTagData"];
|
21
22
|
export declare const useGetItemTags: () => UseTagManagerResult["getItemTags"];
|
23
|
+
export declare const useAllTagsLoaded: () => UseTagManagerResult["allTagsLoaded"];
|
22
24
|
export {};
|