clxx 3.0.2 → 3.0.4

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 (45) hide show
  1. package/AGENTS.md +49 -3
  2. package/build/Alert/style.js +15 -14
  3. package/build/CarouselNotice/style.js +2 -1
  4. package/build/CitySelect/style.js +40 -39
  5. package/build/Container/index.js +21 -1
  6. package/build/DatePicker/style.d.ts +1 -1
  7. package/build/DatePicker/style.js +25 -24
  8. package/build/Indicator/index.js +2 -1
  9. package/build/Loading/Wrapper.js +3 -2
  10. package/build/Loading/style.js +7 -6
  11. package/build/MapLocationSelection/buildSelectedLocation.d.ts +16 -0
  12. package/build/MapLocationSelection/buildSelectedLocation.js +123 -0
  13. package/build/MapLocationSelection/createProvider.d.ts +8 -0
  14. package/build/MapLocationSelection/createProvider.js +33 -0
  15. package/build/MapLocationSelection/getLocation.d.ts +8 -0
  16. package/build/MapLocationSelection/getLocation.js +112 -0
  17. package/build/MapLocationSelection/index.d.ts +16 -0
  18. package/build/MapLocationSelection/index.js +985 -0
  19. package/build/MapLocationSelection/loader.amap.d.ts +48 -0
  20. package/build/MapLocationSelection/loader.amap.js +125 -0
  21. package/build/MapLocationSelection/loader.bmap.d.ts +8 -0
  22. package/build/MapLocationSelection/loader.bmap.js +60 -0
  23. package/build/MapLocationSelection/provider.amap.d.ts +38 -0
  24. package/build/MapLocationSelection/provider.amap.js +659 -0
  25. package/build/MapLocationSelection/provider.bmap.d.ts +36 -0
  26. package/build/MapLocationSelection/provider.bmap.js +837 -0
  27. package/build/MapLocationSelection/provider.d.ts +45 -0
  28. package/build/MapLocationSelection/provider.js +10 -0
  29. package/build/MapLocationSelection/style.d.ts +4 -0
  30. package/build/MapLocationSelection/style.js +442 -0
  31. package/build/MapLocationSelection/types.d.ts +29 -0
  32. package/build/MapLocationSelection/types.js +22 -0
  33. package/build/MapLocationSelection/userMarker.d.ts +2 -0
  34. package/build/MapLocationSelection/userMarker.js +95 -0
  35. package/build/RegionPicker/style.js +34 -33
  36. package/build/ScrollView/style.js +5 -4
  37. package/build/Toast/style.js +6 -5
  38. package/build/index.d.ts +3 -0
  39. package/build/index.js +8 -2
  40. package/build/utils/rem.d.ts +1 -0
  41. package/build/utils/rem.js +48 -0
  42. package/package.json +2 -2
  43. package/test/src/index/index.jsx +5 -0
  44. package/test/src/index.jsx +1 -0
  45. package/test/src/map-location-selection/index.jsx +192 -0
@@ -0,0 +1,36 @@
1
+ import { type Coord, type POIItem } from "./types";
2
+ import { type GeolocateOptions, type MapProvider, type MapProviderInitOptions, type SearchAroundResult, type SearchOptions, type ReverseGeocodeResult } from "./provider";
3
+ export interface BMapProviderOptions {
4
+ ak: string;
5
+ }
6
+ export declare class BMapProvider implements MapProvider {
7
+ private opts;
8
+ private BMap;
9
+ private map;
10
+ private userMarker;
11
+ private geocoder;
12
+ private geolocation;
13
+ private pendingGeolocate;
14
+ private aroundSeq;
15
+ private keywordSeq;
16
+ constructor(opts: BMapProviderOptions);
17
+ private initServices;
18
+ init(o: MapProviderInitOptions): Promise<void>;
19
+ initHeadless(_opts?: Pick<MapProviderInitOptions, "initialCity">): Promise<void>;
20
+ destroy(): void;
21
+ getCenter(): Coord;
22
+ setCenter(center: Coord, zoom?: number): void;
23
+ upsertUserMarker(center: Coord): void;
24
+ searchAround(center: Coord, options: SearchOptions): Promise<SearchAroundResult>;
25
+ searchByKeyword(center: Coord, keyword: string, options: SearchOptions): Promise<POIItem[]>;
26
+ private runLocalSearch;
27
+ private runLocalSearchKeyword;
28
+ private runLocalSearchNearby;
29
+ geolocate(options?: GeolocateOptions): Promise<Coord | null>;
30
+ reverseGeocode(center: Coord): Promise<ReverseGeocodeResult | null>;
31
+ private reverseGeocodeViaWebApi;
32
+ private reverseGeocodeViaJsapi;
33
+ on(event: "movestart", handler: () => void): void;
34
+ on(event: "moveend", handler: () => void): void;
35
+ on(event: "click", handler: (lng: number, lat: number) => void): void;
36
+ }