utopia-ui 3.0.0-alpha.106 → 3.0.0-alpha.108

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/README.md CHANGED
@@ -29,6 +29,15 @@ install via npm
29
29
  npm install utopia-ui
30
30
  ```
31
31
 
32
+ ## Examples
33
+
34
+ [Moos Map](https://github.com/utopia-os/moos-map)
35
+
36
+ ## Demo
37
+
38
+ [Moos Map](https://moos-map.de)
39
+
40
+
32
41
  ## Map Component
33
42
  The map shows various Layers (places, events, profiles ...) of Irems at their respective position whith nice and informative Popups.
34
43
 
@@ -77,7 +86,7 @@ You can find some Sample Data (places, events, tags) for test in the `SamleData/
77
86
 
78
87
  ## Join the community
79
88
 
80
- *This Library is in early alpha stage. You are very welcome to participate in the development*
89
+ *This Library is in alpha stage. You are very welcome to participate in the development*
81
90
 
82
91
  *We are looking for Web Developer, UX Designer, Community Manager, Visionaries, Artists, etc. who like to support this Vision.*
83
92
 
@@ -1,9 +1,9 @@
1
1
  import "leaflet/dist/leaflet.css";
2
2
  import * as React from "react";
3
- import { LayerProps, UtopiaMapProps } from "../../types";
3
+ import { Item, LayerProps, UtopiaMapProps } from "../../types";
4
4
  import "./UtopiaMap.css";
5
5
  export interface MapEventListenerProps {
6
- selectNewItemPosition: LayerProps | null;
6
+ selectNewItemPosition: LayerProps | Item | null;
7
7
  setSelectNewItemPosition: React.Dispatch<any>;
8
8
  setItemFormPopup: React.Dispatch<React.SetStateAction<any>>;
9
9
  }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Item, LayerProps } from '../../../types';
3
+ declare type UseSelectPositionManagerResult = ReturnType<typeof useSelectPositionManager>;
4
+ declare function useSelectPositionManager(): {
5
+ selectPosition: Item | LayerProps | null;
6
+ setSelectPosition: React.Dispatch<React.SetStateAction<Item | LayerProps | null>>;
7
+ };
8
+ export declare const SelectPositionProvider: React.FunctionComponent<{
9
+ children?: React.ReactNode;
10
+ }>;
11
+ export declare const useSelectPosition: () => Item | LayerProps | null;
12
+ export declare const useSetSelectPosition: () => UseSelectPositionManagerResult["setSelectPosition"];
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare const setItemLocation: () => import("react/jsx-runtime").JSX.Element;