utopia-ui 3.0.83 → 3.0.84
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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +210 -146
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/Item/PopupForm.d.ts +1 -1
- package/dist/types/src/Components/Map/LayerContext.d.ts +1 -3
- package/dist/types/src/Components/Map/UtopiaMap.d.ts +2 -2
- package/dist/types/src/Components/Map/hooks/usePopupForm.d.ts +12 -0
- package/dist/types/src/types/PopupFormState.d.ts +8 -0
- package/package.json +1 -1
@@ -1,12 +1,10 @@
|
|
1
|
-
import type { ItemFormPopupProps } from '#types/ItemFormPopupProps';
|
2
1
|
interface LayerContextType {
|
3
2
|
name: string;
|
4
3
|
markerDefaultColor: string;
|
5
4
|
markerDefaultColor2: string;
|
6
5
|
markerShape: string;
|
7
6
|
markerIcon: string;
|
8
|
-
|
9
|
-
setItemFormPopup: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>> | undefined;
|
7
|
+
menuText: string;
|
10
8
|
}
|
11
9
|
declare const LayerContext: import("react").Context<LayerContextType>;
|
12
10
|
export default LayerContext;
|
@@ -53,9 +53,9 @@ declare function UtopiaMap({ height, width, center, zoom, children, geo, showFil
|
|
53
53
|
/** show the layer control widget (default true) */
|
54
54
|
showGratitudeControl?: boolean;
|
55
55
|
/** show a widget to switch the theme */
|
56
|
-
showThemeControl
|
56
|
+
showThemeControl?: boolean;
|
57
57
|
/** the defaut theme */
|
58
|
-
defaultTheme
|
58
|
+
defaultTheme?: string;
|
59
59
|
/** ask to donate to the Utopia Project OpenCollective campaign (default false) */
|
60
60
|
donationWidget?: boolean;
|
61
61
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { PopupFormState } from '#types/PopupFormState';
|
2
|
+
type UsePopupFormManagerResult = ReturnType<typeof usePopupFormManager>;
|
3
|
+
declare function usePopupFormManager(): {
|
4
|
+
popupForm: PopupFormState | null;
|
5
|
+
setPopupForm: React.Dispatch<React.SetStateAction<PopupFormState | null>>;
|
6
|
+
};
|
7
|
+
interface Props {
|
8
|
+
children?: React.ReactNode;
|
9
|
+
}
|
10
|
+
export declare const PopupFormProvider: React.FunctionComponent<Props>;
|
11
|
+
export declare const usePopupForm: () => UsePopupFormManagerResult;
|
12
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.84",
|
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/",
|