@tactics/lokaal-loket 0.0.154 → 0.0.156

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -1144,8 +1144,11 @@ interface ILine {
1144
1144
  type IOrigin = Feature$1<Point, ITerminal>;
1145
1145
  type IDestination = Feature$1<Point, ITerminal>;
1146
1146
  type IPoints = FeatureCollection<Point, IPoint>;
1147
- type IRoute = FeatureCollection<LineString, ILine>;
1147
+ type IRoute = Feature$1<LineString, ILine>;
1148
1148
  type IRoutes = IRoute[];
1149
+ interface IFailureMap {
1150
+ message: string;
1151
+ }
1149
1152
  interface ILocationBasedMap {
1150
1153
  points?: IPoints;
1151
1154
  showLoader: boolean;
@@ -1164,7 +1167,7 @@ interface IDirectionBasedMapBase {
1164
1167
  destination: IDestination;
1165
1168
  travelModeLabels: TravelModeLabels;
1166
1169
  onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
1167
- onRouteChange?: (index: number, route: IRoute) => void;
1170
+ onRouteChange?: (route: IRoute) => void;
1168
1171
  onZoomChange?: () => void;
1169
1172
  }
1170
1173
  interface IMap extends PropsWithChildren {
@@ -1183,6 +1186,7 @@ declare const Map: {
1183
1186
  (props: IMap): react_jsx_runtime.JSX.Element;
1184
1187
  Location: ({ points, showLoader, loader, origin, onRadiusChange, onZoomChange, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1185
1188
  Direction: ({ routes, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1189
+ Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1186
1190
  };
1187
1191
 
1188
1192
  interface IWizard {
package/build/index.d.ts CHANGED
@@ -1144,8 +1144,11 @@ interface ILine {
1144
1144
  type IOrigin = Feature$1<Point, ITerminal>;
1145
1145
  type IDestination = Feature$1<Point, ITerminal>;
1146
1146
  type IPoints = FeatureCollection<Point, IPoint>;
1147
- type IRoute = FeatureCollection<LineString, ILine>;
1147
+ type IRoute = Feature$1<LineString, ILine>;
1148
1148
  type IRoutes = IRoute[];
1149
+ interface IFailureMap {
1150
+ message: string;
1151
+ }
1149
1152
  interface ILocationBasedMap {
1150
1153
  points?: IPoints;
1151
1154
  showLoader: boolean;
@@ -1164,7 +1167,7 @@ interface IDirectionBasedMapBase {
1164
1167
  destination: IDestination;
1165
1168
  travelModeLabels: TravelModeLabels;
1166
1169
  onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
1167
- onRouteChange?: (index: number, route: IRoute) => void;
1170
+ onRouteChange?: (route: IRoute) => void;
1168
1171
  onZoomChange?: () => void;
1169
1172
  }
1170
1173
  interface IMap extends PropsWithChildren {
@@ -1183,6 +1186,7 @@ declare const Map: {
1183
1186
  (props: IMap): react_jsx_runtime.JSX.Element;
1184
1187
  Location: ({ points, showLoader, loader, origin, onRadiusChange, onZoomChange, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
1185
1188
  Direction: ({ routes, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
1189
+ Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
1186
1190
  };
1187
1191
 
1188
1192
  interface IWizard {