@mapfirst.ai/react 0.0.65 → 0.0.66
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 +4 -19
- package/dist/index.d.ts +4 -19
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _mapfirst_ai_core from '@mapfirst.ai/core';
|
|
2
|
-
import { PropertyType, PriceLevel, BaseMapFirstOptions, MapFirstCore, MapState, Property, MapLibreNamespace, GoogleMapsNamespace, MapboxNamespace } from '@mapfirst.ai/core';
|
|
2
|
+
import { PropertyType, PriceLevel, BaseMapFirstOptions, MapFirstCore, MapState, Property, MapLibreNamespace, MarkerOptions, GoogleMapsNamespace, MapboxNamespace } from '@mapfirst.ai/core';
|
|
3
3
|
export { ActiveLocation, ApiFiltersResponse, BaseMapFirstOptions, Environment, FilterSchema, FilterState, GoogleMapsNamespace, MapBounds, MapFirstCore, MapFirstOptions, MapLibreNamespace, MapState, MapStateCallbacks, MapStateUpdate, MapboxNamespace, Price, PriceLevel, PropertiesFetchError, Property, PropertyType, TripAdvisorImage, TripAdvisorImageResponse, ViewState, convertToApiFilters, fetchImages, fetchProperties, processApiFilters } from '@mapfirst.ai/core';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { FunctionComponent, CSSProperties, ReactNode } from 'react';
|
|
@@ -287,30 +287,15 @@ declare function useMapFirst(options: BaseMapFirstOptions): {
|
|
|
287
287
|
} | null>;
|
|
288
288
|
attachMapLibre: (map: any, maplibregl: MapLibreNamespace, options?: {
|
|
289
289
|
onMarkerClick?: (marker: Property) => void;
|
|
290
|
-
markerOptions?:
|
|
291
|
-
showLabel?: boolean;
|
|
292
|
-
hideBadge?: boolean;
|
|
293
|
-
showTail?: boolean;
|
|
294
|
-
hideNonPrimary?: boolean;
|
|
295
|
-
};
|
|
290
|
+
markerOptions?: MarkerOptions;
|
|
296
291
|
}) => void;
|
|
297
292
|
attachGoogle: (map: any, google: GoogleMapsNamespace, options?: {
|
|
298
293
|
onMarkerClick?: (marker: Property) => void;
|
|
299
|
-
markerOptions?:
|
|
300
|
-
showLabel?: boolean;
|
|
301
|
-
hideBadge?: boolean;
|
|
302
|
-
showTail?: boolean;
|
|
303
|
-
hideNonPrimary?: boolean;
|
|
304
|
-
};
|
|
294
|
+
markerOptions?: MarkerOptions;
|
|
305
295
|
}) => void;
|
|
306
296
|
attachMapbox: (map: any, mapboxgl: MapboxNamespace, options?: {
|
|
307
297
|
onMarkerClick?: (marker: Property) => void;
|
|
308
|
-
markerOptions?:
|
|
309
|
-
showLabel?: boolean;
|
|
310
|
-
hideBadge?: boolean;
|
|
311
|
-
showTail?: boolean;
|
|
312
|
-
hideNonPrimary?: boolean;
|
|
313
|
-
};
|
|
298
|
+
markerOptions?: MarkerOptions;
|
|
314
299
|
}) => void;
|
|
315
300
|
};
|
|
316
301
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _mapfirst_ai_core from '@mapfirst.ai/core';
|
|
2
|
-
import { PropertyType, PriceLevel, BaseMapFirstOptions, MapFirstCore, MapState, Property, MapLibreNamespace, GoogleMapsNamespace, MapboxNamespace } from '@mapfirst.ai/core';
|
|
2
|
+
import { PropertyType, PriceLevel, BaseMapFirstOptions, MapFirstCore, MapState, Property, MapLibreNamespace, MarkerOptions, GoogleMapsNamespace, MapboxNamespace } from '@mapfirst.ai/core';
|
|
3
3
|
export { ActiveLocation, ApiFiltersResponse, BaseMapFirstOptions, Environment, FilterSchema, FilterState, GoogleMapsNamespace, MapBounds, MapFirstCore, MapFirstOptions, MapLibreNamespace, MapState, MapStateCallbacks, MapStateUpdate, MapboxNamespace, Price, PriceLevel, PropertiesFetchError, Property, PropertyType, TripAdvisorImage, TripAdvisorImageResponse, ViewState, convertToApiFilters, fetchImages, fetchProperties, processApiFilters } from '@mapfirst.ai/core';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { FunctionComponent, CSSProperties, ReactNode } from 'react';
|
|
@@ -287,30 +287,15 @@ declare function useMapFirst(options: BaseMapFirstOptions): {
|
|
|
287
287
|
} | null>;
|
|
288
288
|
attachMapLibre: (map: any, maplibregl: MapLibreNamespace, options?: {
|
|
289
289
|
onMarkerClick?: (marker: Property) => void;
|
|
290
|
-
markerOptions?:
|
|
291
|
-
showLabel?: boolean;
|
|
292
|
-
hideBadge?: boolean;
|
|
293
|
-
showTail?: boolean;
|
|
294
|
-
hideNonPrimary?: boolean;
|
|
295
|
-
};
|
|
290
|
+
markerOptions?: MarkerOptions;
|
|
296
291
|
}) => void;
|
|
297
292
|
attachGoogle: (map: any, google: GoogleMapsNamespace, options?: {
|
|
298
293
|
onMarkerClick?: (marker: Property) => void;
|
|
299
|
-
markerOptions?:
|
|
300
|
-
showLabel?: boolean;
|
|
301
|
-
hideBadge?: boolean;
|
|
302
|
-
showTail?: boolean;
|
|
303
|
-
hideNonPrimary?: boolean;
|
|
304
|
-
};
|
|
294
|
+
markerOptions?: MarkerOptions;
|
|
305
295
|
}) => void;
|
|
306
296
|
attachMapbox: (map: any, mapboxgl: MapboxNamespace, options?: {
|
|
307
297
|
onMarkerClick?: (marker: Property) => void;
|
|
308
|
-
markerOptions?:
|
|
309
|
-
showLabel?: boolean;
|
|
310
|
-
hideBadge?: boolean;
|
|
311
|
-
showTail?: boolean;
|
|
312
|
-
hideNonPrimary?: boolean;
|
|
313
|
-
};
|
|
298
|
+
markerOptions?: MarkerOptions;
|
|
314
299
|
}) => void;
|
|
315
300
|
};
|
|
316
301
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapfirst.ai/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"description": "React hooks for MapFirst SDK - Reactive state management for map properties",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": ">=17"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mapfirst.ai/core": "0.0.
|
|
43
|
+
"@mapfirst.ai/core": "0.0.58"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.tsx --format esm,cjs --dts --clean"
|