@angular/google-maps 21.0.0-next.0 → 21.0.0-next.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/google-maps",
3
- "version": "21.0.0-next.0",
3
+ "version": "21.0.0-next.10",
4
4
  "description": "Angular Google Maps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,14 +34,14 @@
34
34
  ]
35
35
  },
36
36
  "module": "./fesm2022/google-maps.mjs",
37
- "typings": "./index.d.ts",
37
+ "typings": "./types/google-maps.d.ts",
38
38
  "type": "module",
39
39
  "exports": {
40
40
  "./package.json": {
41
41
  "default": "./package.json"
42
42
  },
43
43
  ".": {
44
- "types": "./index.d.ts",
44
+ "types": "./types/google-maps.d.ts",
45
45
  "default": "./fesm2022/google-maps.mjs"
46
46
  }
47
47
  }
@@ -1064,11 +1064,11 @@ declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy, MapAnch
1064
1064
  /**
1065
1065
  * This event is fired when the AdvancedMarkerElement is double-clicked.
1066
1066
  */
1067
- readonly mapDblclick: Observable<google.maps.MapMouseEvent>;
1067
+ readonly mapDblclick: Observable<MouseEvent>;
1068
1068
  /**
1069
1069
  * This event is fired when the mouse moves out of the AdvancedMarkerElement.
1070
1070
  */
1071
- readonly mapMouseout: Observable<google.maps.MapMouseEvent>;
1071
+ readonly mapMouseout: Observable<MouseEvent>;
1072
1072
  /**
1073
1073
  * This event is fired when the mouse moves over the AdvancedMarkerElement.
1074
1074
  */
@@ -1076,11 +1076,11 @@ declare class MapAdvancedMarker implements OnInit, OnChanges, OnDestroy, MapAnch
1076
1076
  /**
1077
1077
  * This event is fired when the mouse button is released over the AdvancedMarkerElement.
1078
1078
  */
1079
- readonly mapMouseup: Observable<google.maps.MapMouseEvent>;
1079
+ readonly mapMouseup: Observable<MouseEvent>;
1080
1080
  /**
1081
1081
  * This event is fired when the AdvancedMarkerElement is right-clicked.
1082
1082
  */
1083
- readonly mapRightclick: Observable<google.maps.MapMouseEvent>;
1083
+ readonly mapRightclick: Observable<MouseEvent>;
1084
1084
  /**
1085
1085
  * This event is repeatedly fired while the user drags the AdvancedMarkerElement.
1086
1086
  * https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElement.drag
@@ -1982,6 +1982,8 @@ declare class MapGeocoder {
1982
1982
 
1983
1983
  type MapEventManagerTarget = {
1984
1984
  addListener<T extends unknown[]>(name: string, callback: (...args: T) => void): google.maps.MapsEventListener | undefined;
1985
+ addEventListener?<T extends unknown[]>(name: string, callback: (...args: T) => void): void;
1986
+ removeEventListener?<T extends unknown[]>(name: string, callback: (...args: T) => void): void;
1985
1987
  } | undefined;
1986
1988
  /** Manages event on a Google Maps object, ensuring that events are added only when necessary. */
1987
1989
  declare class MapEventManager {
@@ -1993,8 +1995,12 @@ declare class MapEventManager {
1993
1995
  /** Clears all currently-registered event listeners. */
1994
1996
  private _clearListeners;
1995
1997
  constructor(_ngZone: NgZone);
1996
- /** Gets an observable that adds an event listener to the map when a consumer subscribes to it. */
1997
- getLazyEmitter<T>(name: string): Observable<T>;
1998
+ /**
1999
+ * Gets an observable that adds an event listener to the map when a consumer subscribes to it.
2000
+ * @param name Name of the event for which the observable is being set up.
2001
+ * @param type Type of the event (e.g. one going to a DOM node or a custom Maps one).
2002
+ */
2003
+ getLazyEmitter<T>(name: string, type?: 'custom' | 'native'): Observable<T>;
1998
2004
  /** Sets the current target that the manager should bind events to. */
1999
2005
  setTarget(target: MapEventManagerTarget): void;
2000
2006
  /** Destroys the manager and clears the event listeners. */