@conboai/storybook.components 0.2.99 → 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.
- package/dist/components/Geo/Geo.d.ts +1 -1
- package/dist/components/Geo/components/Polyline/index.d.ts +3 -1
- package/dist/components/Geo/components/Polyline/utils.d.ts +0 -0
- package/dist/components/Geo/components/ShapeDrawer/index.d.ts +2 -1
- package/dist/components/Geo/types.d.ts +3 -0
- package/dist/components/Geo/useGetMapZoom.d.ts +4 -0
- package/dist/components/Shapes/Shapes.d.ts +1 -1
- package/dist/components/Shapes/types.d.ts +1 -0
- package/dist/storybook.components.mjs +13310 -13200
- package/package.json +1 -1
|
@@ -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;
|
|
File without changes
|
|
@@ -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 {
|
|
@@ -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;
|