@tactics/lokaal-loket 0.0.269 → 0.0.270

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -1483,12 +1483,18 @@ interface IMap extends PropsWithChildren {
1483
1483
  zoom?: number;
1484
1484
  }
1485
1485
 
1486
+ interface LocationMapHandle {
1487
+ panTo: (lat: number, lng: number) => void;
1488
+ }
1489
+
1486
1490
  declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
1487
1491
  declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
1488
1492
 
1489
1493
  declare const Map: {
1490
1494
  (props: IMap): react_jsx_runtime.JSX.Element;
1491
- Location: ({ viewOnly, points, showLoader, loader, origin, onAreaChange, legend, legendToggle, updateOriginOnAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1495
+ Location: (props: ILocationBasedMap & {
1496
+ ref?: React$1.Ref<LocationMapHandle>;
1497
+ }) => JSX.Element;
1492
1498
  Direction: ({ routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1493
1499
  Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1494
1500
  Loading: ({ loader }: {
package/build/index.d.ts CHANGED
@@ -1483,12 +1483,18 @@ interface IMap extends PropsWithChildren {
1483
1483
  zoom?: number;
1484
1484
  }
1485
1485
 
1486
+ interface LocationMapHandle {
1487
+ panTo: (lat: number, lng: number) => void;
1488
+ }
1489
+
1486
1490
  declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
1487
1491
  declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
1488
1492
 
1489
1493
  declare const Map: {
1490
1494
  (props: IMap): react_jsx_runtime.JSX.Element;
1491
- Location: ({ viewOnly, points, showLoader, loader, origin, onAreaChange, legend, legendToggle, updateOriginOnAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1495
+ Location: (props: ILocationBasedMap & {
1496
+ ref?: React$1.Ref<LocationMapHandle>;
1497
+ }) => JSX.Element;
1492
1498
  Direction: ({ routes, activeRoute, origin, destination, deviation, activeTravelMode, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, legend, legendToggle, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1493
1499
  Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1494
1500
  Loading: ({ loader }: {