google-maps-react-markers 1.3.0 → 1.4.2

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.
@@ -1,23 +1,29 @@
1
1
  export default OverlayView;
2
2
  /**
3
- * @param {HTMLElement} container
4
3
  * @param {google.maps.MapPanes} pane - The pane on which to display the overlay. This is the Pane name, not the Pane itself. Defaults to floatPane.
5
- * @param {google.maps.LatLng | google.maps.LatLngLiteral} position
4
+ * @param {google.maps.LatLng | google.maps.LatLngLiteral} position - The geographical location of the overlay.
5
+ * @param {google.maps.Map} map - The map on which to display the overlay.
6
+ * @param {google.maps} maps - The Google Maps API.
7
+ * @param {number} zIndex - The z-index of the overlay.
8
+ * @param {ReactNode} children - The children of the OverlayView - the Marker component.
9
+ * @param {object} drag - The drag configuration of the overlay.
10
+ * @param {boolean} drag.draggable - If true, the marker can be dragged. Default value is false.
11
+ * @param {function} drag.onDragStart - This event is fired when the user starts dragging the marker.
12
+ * @param {function} drag.onDrag - This event is repeatedly fired while the user drags the marker.
13
+ * @param {function} drag.onDragEnd - This event is fired when the user stops dragging the marker.
6
14
  * @returns {void}
7
15
  * @ref [MapPanes](https://developers.google.com/maps/documentation/javascript/reference/overlay-view#MapPanes)
8
16
  */
9
- declare function OverlayView({ position, pane, map, maps, zIndex, children }: HTMLElement): void;
17
+ declare function OverlayView({ pane, position, map, maps, zIndex, children, drag }: google.maps.MapPanes): void;
10
18
  declare namespace OverlayView {
11
- namespace defaultProps {
12
- const zIndex: number;
13
- }
14
19
  namespace propTypes {
15
20
  export { string as pane };
16
- export const position: google.maps.LatLng | google.maps.LatLngLiteral;
17
- export const map: google.maps.Map;
18
- export const maps: object;
21
+ export let position: google.maps.LatLng | google.maps.LatLngLiteral;
22
+ export let map: google.maps.Map;
23
+ export let maps: object;
19
24
  export { number as zIndex };
20
- export const children: ReactNode;
25
+ export let children: ReactNode;
26
+ export let drag: object;
21
27
  }
22
28
  }
23
29
  //# sourceMappingURL=overlay-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-view.d.ts","sourceRoot":"","sources":["../../src/map/overlay-view.js"],"names":[],"mappings":";AAMA;;;;;;GAMG;AACH,8EANW,WAAW,GAGT,IAAI,CAwChB;;;;;;;+BAgBU,8CAA8C;;2BAiB9C,MAAM"}
1
+ {"version":3,"file":"overlay-view.d.ts","sourceRoot":"","sources":["../../src/map/overlay-view.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;GAcG;AACH,2GAHa,IAAI,CAwChB;;;;6BAYU,8CAA8C;;yBAiB9C,MAAM;;;yBAoBN,MAAM"}
@@ -1,18 +1,24 @@
1
1
  export default createOverlay;
2
2
  /**
3
- * @param {HTMLElement} container
4
- * @param {google.maps.MapPanes} pane
5
- * @param {google.maps.LatLng | google.maps.LatLngLiteral} position
6
- * @param {google.maps} maps
3
+ * @param {HTMLElement} container - The HTML container element for the overlay.
4
+ * @param {google.maps.MapPanes} pane - The HTML container element for the overlay.
5
+ * @param {google.maps.LatLng | google.maps.LatLngLiteral} position - The geographical location of the overlay.
6
+ * @param {google.maps} maps - The Google Maps API.
7
+ * @param {object} drag - The drag configuration of the overlay.
8
+ * @param {boolean} drag.draggable - If true, the marker can be dragged. Default value is false.
9
+ * @param {function} drag.onDragStart - This event is fired when the user starts dragging the marker.
10
+ * @param {function} drag.onDrag - This event is repeatedly fired while the user drags the marker.
11
+ * @param {function} drag.onDragEnd - This event is fired when the user stops dragging the marker.
7
12
  * @returns {void}
8
13
  */
9
- declare function createOverlay({ container, pane, position, maps }: HTMLElement): void;
14
+ declare function createOverlay({ container, pane, position, maps, drag }: HTMLElement): void;
10
15
  declare namespace createOverlay {
11
16
  namespace propTypes {
12
- const container: any;
13
- const pane: google.maps.MapPanes;
14
- const position: google.maps.LatLng | google.maps.LatLngLiteral;
15
- const maps: any;
17
+ let container: any;
18
+ let pane: google.maps.MapPanes;
19
+ let position: google.maps.LatLng | google.maps.LatLngLiteral;
20
+ let maps: any;
21
+ let drag: object;
16
22
  }
17
23
  }
18
24
  //# sourceMappingURL=overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/map/overlay.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH,oEANW,WAAW,GAIT,IAAI,CA0ChB;;;;;wBAiBU,8CAA8C"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/map/overlay.js"],"names":[],"mappings":";AAYA;;;;;;;;;;;GAWG;AACH,0EAXW,WAAW,GAST,IAAI,CA+EhB;;;;;sBAiBU,8CAA8C;;kBAc9C,MAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-maps-react-markers",
3
- "version": "1.3.0",
3
+ "version": "1.4.2",
4
4
  "description": "Google Maps library with markers as react components",
5
5
  "author": "Giorgia Bosello",
6
6
  "license": "MIT",
@@ -42,6 +42,7 @@
42
42
  "devDependencies": {
43
43
  "@babel/core": "^7.21.4",
44
44
  "@babel/eslint-parser": "^7.21.3",
45
+ "@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
45
46
  "@babel/preset-env": "^7.21.5",
46
47
  "@babel/preset-react": "^7.18.6",
47
48
  "cross-env": "^7.0.3",
@@ -53,7 +54,7 @@
53
54
  "eslint-plugin-jsx": "^0.1.0",
54
55
  "eslint-plugin-n": "^16.0.1",
55
56
  "eslint-plugin-node": "^11.1.0",
56
- "eslint-plugin-prettier": "^4.2.1",
57
+ "eslint-plugin-prettier": "5.0.0",
57
58
  "eslint-plugin-promise": "^6.1.1",
58
59
  "eslint-plugin-react": "^7.32.2",
59
60
  "eslint-plugin-react-hooks": "^4.6.0",