@angular/platform-browser 19.1.0-next.1 → 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.
- package/animations/async/index.d.ts +2 -2
- package/animations/index.d.ts +3 -3
- package/fesm2022/animations/async.mjs +8 -8
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +14 -14
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +87 -78
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +17 -15
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.1.0-next.
|
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.
|
32
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.
|
33
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.
|
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.
|
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
|
+
* @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';
|
@@ -54,7 +55,7 @@ export declare type ApplicationConfig = ApplicationConfig_2;
|
|
54
55
|
* The root component passed into this function *must* be a standalone one (should have the
|
55
56
|
* `standalone: true` flag in the `@Component` decorator config).
|
56
57
|
*
|
57
|
-
* ```
|
58
|
+
* ```angular-ts
|
58
59
|
* @Component({
|
59
60
|
* standalone: true,
|
60
61
|
* template: 'Hello world!'
|
@@ -67,7 +68,7 @@ export declare type ApplicationConfig = ApplicationConfig_2;
|
|
67
68
|
* You can add the list of providers that should be available in the application injector by
|
68
69
|
* specifying the `providers` field in an object passed as the second argument:
|
69
70
|
*
|
70
|
-
* ```
|
71
|
+
* ```ts
|
71
72
|
* await bootstrapApplication(RootComponent, {
|
72
73
|
* providers: [
|
73
74
|
* {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}
|
@@ -78,7 +79,7 @@ export declare type ApplicationConfig = ApplicationConfig_2;
|
|
78
79
|
* The `importProvidersFrom` helper method can be used to collect all providers from any
|
79
80
|
* existing NgModule (and transitively from all NgModules that it imports):
|
80
81
|
*
|
81
|
-
* ```
|
82
|
+
* ```ts
|
82
83
|
* await bootstrapApplication(RootComponent, {
|
83
84
|
* providers: [
|
84
85
|
* importProvidersFrom(SomeNgModule)
|
@@ -91,7 +92,7 @@ export declare type ApplicationConfig = ApplicationConfig_2;
|
|
91
92
|
* providers using `provideProtractorTestingSupport()` function and adding them into the `providers`
|
92
93
|
* array, for example:
|
93
94
|
*
|
94
|
-
* ```
|
95
|
+
* ```ts
|
95
96
|
* import {provideProtractorTestingSupport} from '@angular/platform-browser';
|
96
97
|
*
|
97
98
|
* await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});
|
@@ -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
|
/**
|
@@ -623,7 +625,7 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
|
|
623
625
|
*
|
624
626
|
* Basic example of how you can enable hydration in your application when
|
625
627
|
* `bootstrapApplication` function is used:
|
626
|
-
* ```
|
628
|
+
* ```ts
|
627
629
|
* bootstrapApplication(AppComponent, {
|
628
630
|
* providers: [provideClientHydration()]
|
629
631
|
* });
|
@@ -631,7 +633,7 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
|
|
631
633
|
*
|
632
634
|
* Alternatively if you are using NgModules, you would add `provideClientHydration`
|
633
635
|
* to your root app module's provider list.
|
634
|
-
* ```
|
636
|
+
* ```ts
|
635
637
|
* @NgModule({
|
636
638
|
* declarations: [RootCmp],
|
637
639
|
* bootstrap: [RootCmp],
|
@@ -771,7 +773,7 @@ export declare const VERSION: Version;
|
|
771
773
|
*
|
772
774
|
* Basic example of how you can enable event replay in your application when
|
773
775
|
* `bootstrapApplication` function is used:
|
774
|
-
* ```
|
776
|
+
* ```ts
|
775
777
|
* bootstrapApplication(AppComponent, {
|
776
778
|
* providers: [provideClientHydration(withEventReplay())]
|
777
779
|
* });
|
@@ -806,7 +808,7 @@ export declare function withI18nSupport(): HydrationFeature<HydrationFeatureKind
|
|
806
808
|
*
|
807
809
|
* Basic example of how you can enable incremental hydration in your application when
|
808
810
|
* the `bootstrapApplication` function is used:
|
809
|
-
* ```
|
811
|
+
* ```ts
|
810
812
|
* bootstrapApplication(AppComponent, {
|
811
813
|
* providers: [provideClientHydration(withIncrementalHydration())]
|
812
814
|
* });
|
@@ -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.
|
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.
|
15
|
-
"@angular/core": "19.1.0-next.
|
16
|
-
"@angular/common": "19.1.0-next.
|
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": {
|
package/testing/index.d.ts
CHANGED