@mapfirst.ai/react 0.0.65 → 0.0.67

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 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.65",
3
+ "version": "0.0.67",
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.57"
43
+ "@mapfirst.ai/core": "0.0.59"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup src/index.tsx --format esm,cjs --dts --clean"