@conboai/storybook.components 0.3.1 → 0.3.2

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.
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { GeoComponentProps } from './types';
3
3
 
4
- declare const Geo: ({ mode: modeFromProps, resetKey: resetKeyFromProps, onChange: onChangeFromProps, onComplete, data, selectedGeoId: selectedGeoIdFromProps, onSelect, onMouseMove, showNumbers, showDeleteIcon, disableControls, fitZoom, zoom: zoomFromProps }: GeoComponentProps) => React.JSX.Element;
4
+ declare const Geo: ({ mode: modeFromProps, resetKey: resetKeyFromProps, onChange: onChangeFromProps, onComplete, data, showDirection, selectedGeoId: selectedGeoIdFromProps, onSelect, onMouseMove, showNumbers, showDeleteIcon, disableControls, fitZoom, mapCentering, zoom: zoomFromProps }: GeoComponentProps) => React.JSX.Element;
5
5
  export default Geo;
@@ -1,9 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { CoordinatePoint, GeoType } from '../../types';
3
3
 
4
- declare const Polyline: ({ onChange: onChangeFromProps, data, showNumbers }: {
4
+ declare const Polyline: ({ onChange: onChangeFromProps, data, showNumbers, zoom: zoomFromProps, showDirection }: {
5
5
  onChange?: (polygonPath: CoordinatePoint[]) => void;
6
6
  data?: GeoType | null;
7
7
  showNumbers?: boolean;
8
+ zoom?: number;
9
+ showDirection?: boolean;
8
10
  }) => React.JSX.Element;
9
11
  export default Polyline;
@@ -8,6 +8,7 @@ interface ShapeDrawerProps {
8
8
  resetKey: number;
9
9
  mode: GeoMode;
10
10
  setMode: Dispatch<SetStateAction<GeoMode>>;
11
+ showNumbers?: boolean;
11
12
  }
12
- export declare const ShapeDrawer: ({ mapInstance, onComplete, onChange, resetKey, mode, setMode }: ShapeDrawerProps) => React.JSX.Element;
13
+ export declare const ShapeDrawer: ({ mapInstance, onComplete, onChange, resetKey, mode, setMode, showNumbers }: ShapeDrawerProps) => React.JSX.Element;
13
14
  export {};
@@ -6,6 +6,7 @@ export declare enum EntityTypes {
6
6
  }
7
7
  export interface GeoType {
8
8
  id?: string;
9
+ name?: string;
9
10
  type: EntityTypes;
10
11
  coordinates: Array<CoordinatePoint>;
11
12
  zoom?: number;
@@ -30,6 +31,7 @@ export interface GeoComponentProps {
30
31
  onComplete?: (polygonPath: CoordinatePoint[]) => void;
31
32
  onSelect?: (geo: GeoType) => void;
32
33
  mode?: GeoMode;
34
+ showDirection?: boolean;
33
35
  resetKey?: number;
34
36
  data?: GeoType[] | null;
35
37
  onMouseMove?: (coordinatePoint: CoordinatePoint) => void;
@@ -38,6 +40,7 @@ export interface GeoComponentProps {
38
40
  selectedGeoId?: string | null;
39
41
  zoom?: number;
40
42
  fitZoom?: boolean;
43
+ mapCentering?: boolean;
41
44
  disableControls?: boolean;
42
45
  }
43
46
  export declare enum LibraryTypes {
@@ -0,0 +1,4 @@
1
+ declare const useGetMapZoom: ({ mapInstance }: {
2
+ mapInstance: google.maps.Map | null;
3
+ }) => number;
4
+ export default useGetMapZoom;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { IShapesProps } from './types';
3
3
 
4
- declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showPoints, showId }: IShapesProps) => React.JSX.Element;
4
+ declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected, onShapeChange, onShapeSelect, showDirection, onMouseMove, menu, showNumbers, showPoints, showId }: IShapesProps) => React.JSX.Element;
5
5
  export default Shapes;
@@ -31,6 +31,7 @@ export interface IShapesProps {
31
31
  shapes: Shape[];
32
32
  selected?: Shape | null;
33
33
  showId?: boolean;
34
+ showDirection?: boolean;
34
35
  menu?: {
35
36
  show: boolean;
36
37
  options?: {