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.
@@ -3,4 +3,4 @@
3
3
  */
4
4
  export declare const PopupForm: ({ children }: {
5
5
  children?: React.ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element | null | undefined;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -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
- itemFormPopup: ItemFormPopupProps | null | undefined;
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: boolean;
56
+ showThemeControl?: boolean;
57
57
  /** the defaut theme */
58
- defaultTheme: string;
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 {};
@@ -0,0 +1,8 @@
1
+ import type { Item } from './Item';
2
+ import type { LayerProps } from './LayerProps';
3
+ import type { LatLng } from 'leaflet';
4
+ export interface PopupFormState {
5
+ position: LatLng;
6
+ layer: LayerProps;
7
+ item?: Item;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utopia-ui",
3
- "version": "3.0.83",
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/",