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

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.4
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.4", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.4", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
33
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.4", 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.4", 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.4
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';
@@ -34,6 +35,8 @@ import { Version } from '@angular/core';
34
35
  import { ɵConsole } from '@angular/core';
35
36
  import { ɵDomAdapter } from '@angular/common';
36
37
  import { ɵgetDOM } from '@angular/common';
38
+ import { ɵTracingService } from '@angular/core';
39
+ import { ɵTracingSnapshot } from '@angular/core';
37
40
 
38
41
  /**
39
42
  * Set of config options available during the application bootstrap operation.
@@ -306,9 +309,10 @@ export declare class EventManager {
306
309
  * @param eventName The name of the event to listen for.
307
310
  * @param handler A function to call when the notification occurs. Receives the
308
311
  * event object as an argument.
312
+ * @param options Options that configure how the event listener is bound.
309
313
  * @returns A callback function that can be used to remove the handler.
310
314
  */
311
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
315
+ addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
312
316
  /**
313
317
  * Retrieves the compilation zone in which event listeners are registered.
314
318
  */
@@ -336,7 +340,7 @@ export declare abstract class EventManagerPlugin {
336
340
  /**
337
341
  * Implement the behaviour for the supported events
338
342
  */
339
- abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
343
+ abstract addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
340
344
  }
341
345
 
342
346
  /**
@@ -833,7 +837,7 @@ export declare function withNoHttpTransferCache(): HydrationFeature<HydrationFea
833
837
  */
834
838
  export declare class ɵBrowserDomAdapter extends GenericBrowserDomAdapter {
835
839
  static makeCurrent(): void;
836
- onAndCancel(el: Node, evt: any, listener: any): Function;
840
+ onAndCancel(el: Node, evt: any, listener: any, options: any): Function;
837
841
  dispatchEvent(el: Node, evt: any): void;
838
842
  remove(node: Node): void;
839
843
  createElement(tagName: string, doc?: Document): HTMLElement;
@@ -857,8 +861,8 @@ export declare class ɵBrowserGetTestability implements GetTestability {
857
861
  export declare class ɵDomEventsPlugin extends EventManagerPlugin {
858
862
  constructor(doc: any);
859
863
  supports(eventName: string): boolean;
860
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
861
- removeEventListener(target: any, eventName: string, callback: Function): void;
864
+ addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
865
+ removeEventListener(target: any, eventName: string, callback: Function, options?: ListenerOptions): void;
862
866
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomEventsPlugin, never>;
863
867
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomEventsPlugin>;
864
868
  }
@@ -872,14 +876,15 @@ export declare class ɵDomRendererFactory2 implements RendererFactory2, OnDestro
872
876
  readonly platformId: Object;
873
877
  readonly ngZone: NgZone;
874
878
  private readonly nonce;
879
+ private readonly tracingService;
875
880
  private readonly rendererByCompId;
876
881
  private readonly defaultRenderer;
877
882
  private readonly platformIsServer;
878
- constructor(eventManager: EventManager, sharedStylesHost: ɵSharedStylesHost, appId: string, removeStylesOnCompDestroy: boolean, doc: Document, platformId: Object, ngZone: NgZone, nonce?: string | null);
883
+ constructor(eventManager: EventManager, sharedStylesHost: ɵSharedStylesHost, appId: string, removeStylesOnCompDestroy: boolean, doc: Document, platformId: Object, ngZone: NgZone, nonce?: string | null, tracingService?: ɵTracingService<ɵTracingSnapshot> | null);
879
884
  createRenderer(element: any, type: RendererType2 | null): Renderer2;
880
885
  private getOrCreateRenderer;
881
886
  ngOnDestroy(): void;
882
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, never>;
887
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, [null, null, null, null, null, null, null, null, { optional: true; }]>;
883
888
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomRendererFactory2>;
884
889
  }
885
890
 
@@ -943,7 +948,7 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
943
948
  * event object as an argument.
944
949
  * @returns The key event that was registered.
945
950
  */
946
- addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
951
+ addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
947
952
  /**
948
953
  * Parses the user provided full keyboard event definition and normalizes it for
949
954
  * 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.4",
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.4",
15
+ "@angular/core": "19.1.0-next.4",
16
+ "@angular/common": "19.1.0-next.4"
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.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */