@angular/platform-browser 19.1.0-next.2 → 19.1.0-next.3

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,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -28,16 +28,16 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
28
28
  * @publicApi
29
29
  */
30
30
  class BrowserTestingModule {
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
33
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserTestingModule, providers: [
31
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
33
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserTestingModule, providers: [
34
34
  { provide: APP_ID, useValue: 'a' },
35
35
  ɵinternalProvideZoneChangeDetection({}),
36
36
  { provide: ɵChangeDetectionScheduler, useExisting: ɵChangeDetectionSchedulerImpl },
37
37
  { provide: PlatformLocation, useClass: MockPlatformLocation },
38
38
  ], imports: [BrowserModule] });
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: BrowserTestingModule, decorators: [{
41
41
  type: NgModule,
42
42
  args: [{
43
43
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -16,6 +16,7 @@ import { HttpTransferCacheOptions } from '@angular/common/http';
16
16
  import * as i0 from '@angular/core';
17
17
  import * as i1 from '@angular/common';
18
18
  import { InjectionToken } from '@angular/core';
19
+ import { ListenerOptions } from '@angular/core';
19
20
  import { NgZone } from '@angular/core';
20
21
  import { OnDestroy } from '@angular/core';
21
22
  import { PlatformRef } from '@angular/core';
@@ -306,9 +307,10 @@ export declare class EventManager {
306
307
  * @param eventName The name of the event to listen for.
307
308
  * @param handler A function to call when the notification occurs. Receives the
308
309
  * event object as an argument.
310
+ * @param options Options that configure how the event listener is bound.
309
311
  * @returns A callback function that can be used to remove the handler.
310
312
  */
311
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
313
+ addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
312
314
  /**
313
315
  * Retrieves the compilation zone in which event listeners are registered.
314
316
  */
@@ -336,7 +338,7 @@ export declare abstract class EventManagerPlugin {
336
338
  /**
337
339
  * Implement the behaviour for the supported events
338
340
  */
339
- abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
341
+ abstract addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
340
342
  }
341
343
 
342
344
  /**
@@ -833,7 +835,7 @@ export declare function withNoHttpTransferCache(): HydrationFeature<HydrationFea
833
835
  */
834
836
  export declare class ɵBrowserDomAdapter extends GenericBrowserDomAdapter {
835
837
  static makeCurrent(): void;
836
- onAndCancel(el: Node, evt: any, listener: any): Function;
838
+ onAndCancel(el: Node, evt: any, listener: any, options: any): Function;
837
839
  dispatchEvent(el: Node, evt: any): void;
838
840
  remove(node: Node): void;
839
841
  createElement(tagName: string, doc?: Document): HTMLElement;
@@ -857,8 +859,8 @@ export declare class ɵBrowserGetTestability implements GetTestability {
857
859
  export declare class ɵDomEventsPlugin extends EventManagerPlugin {
858
860
  constructor(doc: any);
859
861
  supports(eventName: string): boolean;
860
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
861
- removeEventListener(target: any, eventName: string, callback: Function): void;
862
+ addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
863
+ removeEventListener(target: any, eventName: string, callback: Function, options?: ListenerOptions): void;
862
864
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomEventsPlugin, never>;
863
865
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomEventsPlugin>;
864
866
  }
@@ -943,7 +945,7 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
943
945
  * event object as an argument.
944
946
  * @returns The key event that was registered.
945
947
  */
946
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
948
+ addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
947
949
  /**
948
950
  * Parses the user provided full keyboard event definition and normalizes it for
949
951
  * later internal use. It ensures the string is all lowercase, converts special
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "19.1.0-next.2",
3
+ "version": "19.1.0-next.3",
4
4
  "description": "Angular - library for using Angular in a web browser",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/animations": "19.1.0-next.2",
15
- "@angular/core": "19.1.0-next.2",
16
- "@angular/common": "19.1.0-next.2"
14
+ "@angular/animations": "19.1.0-next.3",
15
+ "@angular/core": "19.1.0-next.3",
16
+ "@angular/common": "19.1.0-next.3"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.2
2
+ * @license Angular v19.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */