@mapfirst.ai/core 0.0.30 → 0.0.32
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.
- package/dist/index.d.mts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.global.js +2621 -33
- package/dist/index.js +2628 -33
- package/dist/index.mjs +2596 -33
- package/package.json +6 -5
- package/dist/index.global.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -51,6 +51,8 @@ type HotelPricingAPIResponse = {
|
|
|
51
51
|
isComplete: boolean;
|
|
52
52
|
pollingLink?: string;
|
|
53
53
|
results?: Property[];
|
|
54
|
+
invalidHotelIds?: string[];
|
|
55
|
+
unsupportedHotelIds?: string[];
|
|
54
56
|
};
|
|
55
57
|
};
|
|
56
58
|
type PropertyAwardImage = {
|
|
@@ -154,12 +156,14 @@ type ViewStateSnapshot = {
|
|
|
154
156
|
pitch: number;
|
|
155
157
|
};
|
|
156
158
|
|
|
157
|
-
type
|
|
158
|
-
setLngLat(lngLat: [number, number]):
|
|
159
|
-
addTo(map: any):
|
|
159
|
+
type MapGLMarkerHandle = {
|
|
160
|
+
setLngLat(lngLat: [number, number]): MapGLMarkerHandle;
|
|
161
|
+
addTo(map: any): MapGLMarkerHandle;
|
|
160
162
|
remove(): void;
|
|
161
163
|
getElement(): HTMLElement;
|
|
162
164
|
};
|
|
165
|
+
|
|
166
|
+
type MapLibreMarkerHandle = MapGLMarkerHandle;
|
|
163
167
|
type MapLibreNamespace = {
|
|
164
168
|
Marker: new (options?: {
|
|
165
169
|
element?: HTMLElement;
|
|
@@ -169,12 +173,7 @@ type MapLibreNamespace = {
|
|
|
169
173
|
|
|
170
174
|
type GoogleMapsNamespace = any;
|
|
171
175
|
|
|
172
|
-
type MapboxMarkerHandle =
|
|
173
|
-
setLngLat(lngLat: [number, number]): MapboxMarkerHandle;
|
|
174
|
-
addTo(map: any): MapboxMarkerHandle;
|
|
175
|
-
remove(): void;
|
|
176
|
-
getElement(): HTMLElement;
|
|
177
|
-
};
|
|
176
|
+
type MapboxMarkerHandle = MapGLMarkerHandle;
|
|
178
177
|
type MapboxNamespace = {
|
|
179
178
|
Marker: new (options?: {
|
|
180
179
|
element?: HTMLElement;
|
|
@@ -455,6 +454,8 @@ declare class MapFirstCore {
|
|
|
455
454
|
private readonly fitBoundsPadding;
|
|
456
455
|
constructor(options: MapFirstOptions);
|
|
457
456
|
private hasMapInstance;
|
|
457
|
+
private assertPlatformSupportForNoApi;
|
|
458
|
+
private ensureApiEnabled;
|
|
458
459
|
private initializeFromLocationData;
|
|
459
460
|
private autoLoadProperties;
|
|
460
461
|
attachMap(mapInstance: any, config: {
|
|
@@ -485,6 +486,7 @@ declare class MapFirstCore {
|
|
|
485
486
|
setFlyToAnimating(animating: boolean): void;
|
|
486
487
|
handleMapMoveEnd(bounds: MapBounds): void;
|
|
487
488
|
flyMapTo(longitude: number, latitude: number, zoom?: number | null, animation?: boolean): void;
|
|
489
|
+
private extractPoiPoints;
|
|
488
490
|
flyToPOIs(pois?: {
|
|
489
491
|
lat: number;
|
|
490
492
|
lng: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ type HotelPricingAPIResponse = {
|
|
|
51
51
|
isComplete: boolean;
|
|
52
52
|
pollingLink?: string;
|
|
53
53
|
results?: Property[];
|
|
54
|
+
invalidHotelIds?: string[];
|
|
55
|
+
unsupportedHotelIds?: string[];
|
|
54
56
|
};
|
|
55
57
|
};
|
|
56
58
|
type PropertyAwardImage = {
|
|
@@ -154,12 +156,14 @@ type ViewStateSnapshot = {
|
|
|
154
156
|
pitch: number;
|
|
155
157
|
};
|
|
156
158
|
|
|
157
|
-
type
|
|
158
|
-
setLngLat(lngLat: [number, number]):
|
|
159
|
-
addTo(map: any):
|
|
159
|
+
type MapGLMarkerHandle = {
|
|
160
|
+
setLngLat(lngLat: [number, number]): MapGLMarkerHandle;
|
|
161
|
+
addTo(map: any): MapGLMarkerHandle;
|
|
160
162
|
remove(): void;
|
|
161
163
|
getElement(): HTMLElement;
|
|
162
164
|
};
|
|
165
|
+
|
|
166
|
+
type MapLibreMarkerHandle = MapGLMarkerHandle;
|
|
163
167
|
type MapLibreNamespace = {
|
|
164
168
|
Marker: new (options?: {
|
|
165
169
|
element?: HTMLElement;
|
|
@@ -169,12 +173,7 @@ type MapLibreNamespace = {
|
|
|
169
173
|
|
|
170
174
|
type GoogleMapsNamespace = any;
|
|
171
175
|
|
|
172
|
-
type MapboxMarkerHandle =
|
|
173
|
-
setLngLat(lngLat: [number, number]): MapboxMarkerHandle;
|
|
174
|
-
addTo(map: any): MapboxMarkerHandle;
|
|
175
|
-
remove(): void;
|
|
176
|
-
getElement(): HTMLElement;
|
|
177
|
-
};
|
|
176
|
+
type MapboxMarkerHandle = MapGLMarkerHandle;
|
|
178
177
|
type MapboxNamespace = {
|
|
179
178
|
Marker: new (options?: {
|
|
180
179
|
element?: HTMLElement;
|
|
@@ -455,6 +454,8 @@ declare class MapFirstCore {
|
|
|
455
454
|
private readonly fitBoundsPadding;
|
|
456
455
|
constructor(options: MapFirstOptions);
|
|
457
456
|
private hasMapInstance;
|
|
457
|
+
private assertPlatformSupportForNoApi;
|
|
458
|
+
private ensureApiEnabled;
|
|
458
459
|
private initializeFromLocationData;
|
|
459
460
|
private autoLoadProperties;
|
|
460
461
|
attachMap(mapInstance: any, config: {
|
|
@@ -485,6 +486,7 @@ declare class MapFirstCore {
|
|
|
485
486
|
setFlyToAnimating(animating: boolean): void;
|
|
486
487
|
handleMapMoveEnd(bounds: MapBounds): void;
|
|
487
488
|
flyMapTo(longitude: number, latitude: number, zoom?: number | null, animation?: boolean): void;
|
|
489
|
+
private extractPoiPoints;
|
|
488
490
|
flyToPOIs(pois?: {
|
|
489
491
|
lat: number;
|
|
490
492
|
lng: number;
|