@micromag/element-map 0.4.55 → 0.4.60

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 (2) hide show
  1. package/es/index.js +8 -4
  2. package/package.json +3 -3
package/es/index.js CHANGED
@@ -411,16 +411,20 @@ var eventMapping = {
411
411
  onClick: 'click',
412
412
  onDoubleClick: 'dblclick'
413
413
  };
414
- function useGoogleMapMarker(map) {
415
- var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
414
+ function useGoogleMapMarker() {
415
+ var map = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
416
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
417
+ var _ref = options || {},
416
418
  _ref$position = _ref.position,
417
419
  position = _ref$position === void 0 ? null : _ref$position,
418
420
  _ref$icon = _ref.icon,
419
421
  icon = _ref$icon === void 0 ? null : _ref$icon,
420
422
  _ref$iconSize = _ref.iconSize,
421
423
  iconSize = _ref$iconSize === void 0 ? null : _ref$iconSize,
422
- events = _ref.events,
423
- title = _ref.title;
424
+ _ref$events = _ref.events,
425
+ events = _ref$events === void 0 ? null : _ref$events,
426
+ _ref$title = _ref.title,
427
+ title = _ref$title === void 0 ? null : _ref$title;
424
428
  var client = useGoogleMapsClient();
425
429
  var markerRef = useRef(null);
426
430
  useEffect(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-map",
3
- "version": "0.4.55",
3
+ "version": "0.4.60",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
- "@micromag/core": "^0.4.55",
63
+ "@micromag/core": "^0.4.60",
64
64
  "classnames": "^2.2.6",
65
65
  "lodash": "^4.17.23",
66
66
  "react-intl": "^8.1.3 || ^10.0.0",
@@ -70,6 +70,6 @@
70
70
  "access": "public",
71
71
  "registry": "https://registry.npmjs.org/"
72
72
  },
73
- "gitHead": "9708f0016de0cf18dcd6a6aa5bc70d7f00b86d9f",
73
+ "gitHead": "515ac855ce6094c26f37b1dbf413ee80064713e6",
74
74
  "types": "es/index.d.ts"
75
75
  }