@tactics/lokaal-loket 0.0.184 → 0.0.186

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -1184,17 +1184,18 @@ interface IDirectionBasedMapBase {
1184
1184
  loader?: React$1.ReactNode;
1185
1185
  origin: IOrigin;
1186
1186
  destination: IDestination;
1187
+ deviation: number;
1188
+ travelMode: google.maps.TravelMode | "BestFit";
1187
1189
  travelModeLabels: TravelModeLabels;
1188
- onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
1189
- onRouteChange?: (route: IRoute) => void;
1190
- onZoomChange?: () => void;
1190
+ onRouteChange?: (route: IRoute, modes: google.maps.TravelMode[], deviation: number) => void;
1191
+ onTravelModeChange?: (modes: google.maps.TravelMode[], deviation: number) => void;
1192
+ onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
1191
1193
  }
1192
1194
  interface IMap extends PropsWithChildren {
1193
1195
  mapId: string;
1194
1196
  defaultCenter: google.maps.LatLngLiteral;
1195
1197
  }
1196
1198
  interface TravelModeLabels {
1197
- BEST_FIT: string;
1198
1199
  DRIVING: string;
1199
1200
  TRANSIT: string;
1200
1201
  WALKING: string;
@@ -1204,7 +1205,7 @@ interface TravelModeLabels {
1204
1205
  declare const Map: {
1205
1206
  (props: IMap): react_jsx_runtime.JSX.Element;
1206
1207
  Location: ({ points, showLoader, loader, origin, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1207
- Direction: ({ routes, activeRoute, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1208
+ Direction: ({ routes, activeRoute, origin, destination, deviation, travelMode, travelModeLabels, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1208
1209
  Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1209
1210
  Loading: ({ loader }: {
1210
1211
  loader: React$1.ReactNode;
package/build/index.d.ts CHANGED
@@ -1184,17 +1184,18 @@ interface IDirectionBasedMapBase {
1184
1184
  loader?: React$1.ReactNode;
1185
1185
  origin: IOrigin;
1186
1186
  destination: IDestination;
1187
+ deviation: number;
1188
+ travelMode: google.maps.TravelMode | "BestFit";
1187
1189
  travelModeLabels: TravelModeLabels;
1188
- onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
1189
- onRouteChange?: (route: IRoute) => void;
1190
- onZoomChange?: () => void;
1190
+ onRouteChange?: (route: IRoute, modes: google.maps.TravelMode[], deviation: number) => void;
1191
+ onTravelModeChange?: (modes: google.maps.TravelMode[], deviation: number) => void;
1192
+ onAreaChange?: (center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
1191
1193
  }
1192
1194
  interface IMap extends PropsWithChildren {
1193
1195
  mapId: string;
1194
1196
  defaultCenter: google.maps.LatLngLiteral;
1195
1197
  }
1196
1198
  interface TravelModeLabels {
1197
- BEST_FIT: string;
1198
1199
  DRIVING: string;
1199
1200
  TRANSIT: string;
1200
1201
  WALKING: string;
@@ -1204,7 +1205,7 @@ interface TravelModeLabels {
1204
1205
  declare const Map: {
1205
1206
  (props: IMap): react_jsx_runtime.JSX.Element;
1206
1207
  Location: ({ points, showLoader, loader, origin, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1207
- Direction: ({ routes, activeRoute, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1208
+ Direction: ({ routes, activeRoute, origin, destination, deviation, travelMode, travelModeLabels, points, showLoader, loader, onRouteChange, onAreaChange, onTravelModeChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1208
1209
  Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1209
1210
  Loading: ({ loader }: {
1210
1211
  loader: React$1.ReactNode;