@conboai/storybook.components 0.5.87 → 0.5.89
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/PointFinder/EditablePoint.d.ts +4 -0
- package/dist/components/PointFinder/MapPoint.d.ts +11 -0
- package/dist/components/PointFinder/PointFinder.d.ts +21 -3
- package/dist/{index-BvnPs7m4.mjs → index-0KBQnfuW.mjs} +15888 -15571
- package/dist/{mapbox-gl-Cvs3RtbM.mjs → mapbox-gl-PPjhnxDl.mjs} +1 -1
- package/dist/storybook.components.mjs +1 -1
- 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, onDragEnd, showDirection, showNumbers, allowDelete, allowAdd, disableControls, fitZoom, mapCentering, center: centerFromProps, showOnlyPoints, initialCenter, zoom: zoomFromProps, onLoad, onError, googleMapsApiKey, googleMapsOptions, startMarkerLabel, endMarkerLabel, scaleNumber, fullscreenControl, showEndDirection, mapOverlay
|
|
4
|
+
declare const Geo: ({ mode: modeFromProps, resetKey: resetKeyFromProps, onChange: onChangeFromProps, onComplete, data, selectedGeoId: selectedGeoIdFromProps, onSelect, onMouseMove, onDragEnd, showDirection, showNumbers, allowDelete, allowAdd, disableControls, fitZoom, mapCentering, center: centerFromProps, showOnlyPoints, initialCenter, zoom: zoomFromProps, onLoad, onError, googleMapsApiKey, googleMapsOptions, startMarkerLabel, endMarkerLabel, scaleNumber, fullscreenControl, showEndDirection, mapOverlay }: GeoComponentProps) => React.JSX.Element;
|
|
5
5
|
export default Geo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Point, PointDirection } from './PointFinder';
|
|
3
|
+
|
|
4
|
+
interface IMapPoint {
|
|
5
|
+
point: Point;
|
|
6
|
+
onPointClick: (id: string) => void;
|
|
7
|
+
handleDirectionChange: (id: string, direction: PointDirection) => void;
|
|
8
|
+
handleTimeChange: (id: string, property: "startTime" | "endTime", value: number) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const MapPoint: ({ point, onPointClick, handleDirectionChange, handleTimeChange }: IMapPoint) => React.JSX.Element;
|
|
11
|
+
export default MapPoint;
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export declare enum PointVariant {
|
|
4
|
+
current = "current",
|
|
5
|
+
disabled = "disabled",
|
|
6
|
+
default = "default"
|
|
7
|
+
}
|
|
8
|
+
export declare enum PointDirection {
|
|
9
|
+
plus = "plus",
|
|
10
|
+
minus = "minus"
|
|
11
|
+
}
|
|
12
|
+
export type Point = {
|
|
4
13
|
id: string;
|
|
5
|
-
|
|
14
|
+
circleText?: string;
|
|
15
|
+
popupText: string;
|
|
16
|
+
startTime: number;
|
|
17
|
+
endTime: number;
|
|
18
|
+
variant: PointVariant;
|
|
19
|
+
direction: PointDirection;
|
|
6
20
|
coords: {
|
|
7
21
|
lon: number;
|
|
8
22
|
lat: number;
|
|
@@ -15,6 +29,10 @@ type Connection = {
|
|
|
15
29
|
interface IPointFinder {
|
|
16
30
|
points: Point[];
|
|
17
31
|
connections?: Connection[];
|
|
32
|
+
editable?: boolean;
|
|
33
|
+
onPointClick: (id: string) => void;
|
|
34
|
+
handleDirectionChange: (id: string, value: PointDirection) => void;
|
|
35
|
+
handleTimeChange: (id: string, property: "startTime" | "endTime", value: number) => void;
|
|
18
36
|
}
|
|
19
|
-
export default function App({ points, connections }: IPointFinder): React.JSX.Element | null;
|
|
37
|
+
export default function App({ points, connections, editable, onPointClick, handleDirectionChange, handleTimeChange }: IPointFinder): React.JSX.Element | null;
|
|
20
38
|
export {};
|