@heycar/heycars-map 0.2.5 → 0.2.6

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.
Files changed (40) hide show
  1. package/README.md +1 -0
  2. package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +13 -0
  3. package/dist/business-components/BusinessQuotingMap/index.d.ts +1 -0
  4. package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +5 -3
  5. package/dist/business-components/PassengerCircle/PassengerCircle.d.ts +18309 -4
  6. package/dist/business-components/TaxiCar/TaxiCar.d.ts +18309 -4
  7. package/dist/components/Demo/DemoBusinessQuoting.d.ts +1 -0
  8. package/dist/hooks/useMap.d.ts +4 -0
  9. package/dist/hooks/useMapAutoComplete.d.ts +3 -0
  10. package/dist/hooks/useMapPlace.d.ts +3 -0
  11. package/dist/hooks/useMapRecomendPlace.d.ts +6 -0
  12. package/dist/hooks/useOverlay.d.ts +1 -0
  13. package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +1 -0
  14. package/dist/hooks-business/useBusinessMapRecomendPlace.d.ts +2 -0
  15. package/dist/hooks-business/useBusinessQuotingMap.d.ts +2049 -0
  16. package/dist/hooks-business/useBusinessTaxiServiceMap.d.ts +2049 -0
  17. package/dist/index.cjs +51 -51
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +1423 -1329
  20. package/dist/types/interface.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/src/App.tsx +3 -2
  23. package/src/business-components/BusinessQuotingMap/BusinessQuotingMap.tsx +49 -0
  24. package/src/business-components/BusinessQuotingMap/index.ts +1 -0
  25. package/src/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.tsx +213 -140
  26. package/src/business-components/PassengerCircle/PassengerCircle.tsx +26 -8
  27. package/src/business-components/TaxiCar/TaxiCar.tsx +18 -6
  28. package/src/components/Demo/DemoBusinessQuoting.tsx +39 -0
  29. package/src/components/Demo/DemoBusinessTaxiService.tsx +6 -1
  30. package/src/hooks/useGeoLocation.ts +3 -3
  31. package/src/hooks/useMap.ts +15 -1
  32. package/src/hooks/useOverlay.ts +1 -0
  33. package/src/hooks/useWalkingRoute.ts +0 -1
  34. package/src/hooks-business/useBusinessMapRecomendPlace.ts +1 -0
  35. package/src/hooks-business/useBusinessQuotingMap.ts +11 -0
  36. package/src/hooks-business/useBusinessTaxiServiceMap.ts +12 -0
  37. package/src/index.ts +1 -1
  38. package/src/types/interface.ts +1 -0
  39. package/dist/hooks-business/useBusinessMapFitView.d.ts +0 -2291
  40. package/src/hooks-business/useBusinessMapFitView.ts +0 -6
package/README.md CHANGED
@@ -114,6 +114,7 @@ export type Place = {
114
114
  lat: number;
115
115
  name: string;
116
116
  cityName?: string;
117
+ cityId?: string;
117
118
  };
118
119
 
119
120
  export interface AutoCompletePlace extends Place {
@@ -0,0 +1,13 @@
1
+ import { HeycarMapProps } from "../../components/MapProvider";
2
+ import type { MapMountedProps } from "../../hooks/useMap";
3
+ import type { MROP } from "../../hooks/useOverlay";
4
+ import type { Place } from "../../types/interface";
5
+ export type BusinessQuotingMapProps = Omit<HeycarMapProps, "center" | "zoom"> & MROP & MapMountedProps & {
6
+ from: Place;
7
+ to: Place;
8
+ renderDescription: (titleProps: {
9
+ distance: number;
10
+ duration: number;
11
+ }) => string;
12
+ };
13
+ export declare const BusinessQuotingMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessQuotingMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessQuotingMapProps, Required<BusinessQuotingMapProps>>, "dragEnd" | "mapMounted", BusinessQuotingMapProps, {} | {}>;
@@ -0,0 +1 @@
1
+ export * from "./BusinessQuotingMap";
@@ -1,6 +1,8 @@
1
1
  import { HeycarMapProps } from "../../components/MapProvider";
2
+ import { MapMountedProps } from "../../hooks/useMap";
3
+ import type { MROP } from "../../hooks/useOverlay";
2
4
  import type { DriverStatus, Place, Point } from "../../types/interface";
3
- export interface BusinessTaxiServiceMapProps extends Omit<HeycarMapProps, "center" | "zoom"> {
5
+ export type BusinessTaxiServiceMapProps = Omit<HeycarMapProps, "center" | "zoom"> & MROP & MapMountedProps & {
4
6
  from: Place;
5
7
  to: Place;
6
8
  dispatchingTitle: string;
@@ -18,5 +20,5 @@ export interface BusinessTaxiServiceMapProps extends Omit<HeycarMapProps, "cente
18
20
  duration: number;
19
21
  }) => string;
20
22
  getDriverPosition: () => Promise<Point>;
21
- }
22
- export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd", BusinessTaxiServiceMapProps, {}>;
23
+ };
24
+ export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd" | "mapMounted", BusinessTaxiServiceMapProps, {} | {}>;