@mapfirst.ai/react 0.0.54 → 0.0.56

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
@@ -287,12 +287,24 @@ 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
+ };
290
294
  }) => void;
291
295
  attachGoogle: (map: any, google: GoogleMapsNamespace, options?: {
292
296
  onMarkerClick?: (marker: Property) => void;
297
+ markerOptions?: {
298
+ showLabel?: boolean;
299
+ hideBadge?: boolean;
300
+ };
293
301
  }) => void;
294
302
  attachMapbox: (map: any, mapboxgl: MapboxNamespace, options?: {
295
303
  onMarkerClick?: (marker: Property) => void;
304
+ markerOptions?: {
305
+ showLabel?: boolean;
306
+ hideBadge?: boolean;
307
+ };
296
308
  }) => void;
297
309
  };
298
310
 
package/dist/index.d.ts CHANGED
@@ -287,12 +287,24 @@ 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
+ };
290
294
  }) => void;
291
295
  attachGoogle: (map: any, google: GoogleMapsNamespace, options?: {
292
296
  onMarkerClick?: (marker: Property) => void;
297
+ markerOptions?: {
298
+ showLabel?: boolean;
299
+ hideBadge?: boolean;
300
+ };
293
301
  }) => void;
294
302
  attachMapbox: (map: any, mapboxgl: MapboxNamespace, options?: {
295
303
  onMarkerClick?: (marker: Property) => void;
304
+ markerOptions?: {
305
+ showLabel?: boolean;
306
+ hideBadge?: boolean;
307
+ };
296
308
  }) => void;
297
309
  };
298
310
 
package/dist/index.js CHANGED
@@ -1529,7 +1529,8 @@ function useMapFirst(options) {
1529
1529
  attachMapOnce(instanceRef, mapLibreAttachedRef, map, {
1530
1530
  platform: "maplibre",
1531
1531
  maplibregl,
1532
- onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick
1532
+ onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick,
1533
+ markerOptions: options2 == null ? void 0 : options2.markerOptions
1533
1534
  });
1534
1535
  },
1535
1536
  []
@@ -1540,7 +1541,8 @@ function useMapFirst(options) {
1540
1541
  attachMapOnce(instanceRef, googleMapsAttachedRef, map, {
1541
1542
  platform: "google",
1542
1543
  google,
1543
- onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick
1544
+ onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick,
1545
+ markerOptions: options2 == null ? void 0 : options2.markerOptions
1544
1546
  });
1545
1547
  },
1546
1548
  []
@@ -1551,7 +1553,8 @@ function useMapFirst(options) {
1551
1553
  attachMapOnce(instanceRef, mapboxAttachedRef, map, {
1552
1554
  platform: "mapbox",
1553
1555
  mapboxgl,
1554
- onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick
1556
+ onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick,
1557
+ markerOptions: options2 == null ? void 0 : options2.markerOptions
1555
1558
  });
1556
1559
  },
1557
1560
  []
package/dist/index.mjs CHANGED
@@ -1489,7 +1489,8 @@ function useMapFirst(options) {
1489
1489
  attachMapOnce(instanceRef, mapLibreAttachedRef, map, {
1490
1490
  platform: "maplibre",
1491
1491
  maplibregl,
1492
- onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick
1492
+ onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick,
1493
+ markerOptions: options2 == null ? void 0 : options2.markerOptions
1493
1494
  });
1494
1495
  },
1495
1496
  []
@@ -1500,7 +1501,8 @@ function useMapFirst(options) {
1500
1501
  attachMapOnce(instanceRef, googleMapsAttachedRef, map, {
1501
1502
  platform: "google",
1502
1503
  google,
1503
- onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick
1504
+ onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick,
1505
+ markerOptions: options2 == null ? void 0 : options2.markerOptions
1504
1506
  });
1505
1507
  },
1506
1508
  []
@@ -1511,7 +1513,8 @@ function useMapFirst(options) {
1511
1513
  attachMapOnce(instanceRef, mapboxAttachedRef, map, {
1512
1514
  platform: "mapbox",
1513
1515
  mapboxgl,
1514
- onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick
1516
+ onMarkerClick: options2 == null ? void 0 : options2.onMarkerClick,
1517
+ markerOptions: options2 == null ? void 0 : options2.markerOptions
1515
1518
  });
1516
1519
  },
1517
1520
  []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapfirst.ai/react",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
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.46"
43
+ "@mapfirst.ai/core": "0.0.48"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup src/index.tsx --format esm,cjs --dts --clean"