@angular/platform-browser 18.2.13 → 18.2.14
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 +1 -1
- package/animations/index.d.ts +1 -1
- package/esm2022/animations/async/src/async_animation_renderer.mjs +3 -3
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/providers.mjs +3 -3
- package/esm2022/src/browser/meta.mjs +3 -3
- package/esm2022/src/browser/title.mjs +3 -3
- package/esm2022/src/browser/xhr.mjs +3 -3
- package/esm2022/src/browser.mjs +14 -7
- package/esm2022/src/dom/dom_renderer.mjs +3 -3
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +3 -3
- package/esm2022/src/dom/events/hammer_gestures.mjs +10 -10
- package/esm2022/src/dom/events/key_events.mjs +3 -3
- package/esm2022/src/dom/shared_styles_host.mjs +3 -3
- package/esm2022/src/platform-browser.mjs +1 -1
- package/esm2022/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +4 -4
- package/fesm2022/animations/async.mjs +4 -4
- package/fesm2022/animations.mjs +12 -12
- package/fesm2022/platform-browser.mjs +55 -48
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +18 -2
- 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 v18.2.
|
2
|
+
* @license Angular v18.2.14
|
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 { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
32
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.
|
33
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
32
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
33
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", 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: "18.2.
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", 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 v18.2.
|
2
|
+
* @license Angular v18.2.14
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -101,11 +101,27 @@ export declare type ApplicationConfig = ApplicationConfig_2;
|
|
101
101
|
* @param rootComponent A reference to a standalone component that should be rendered.
|
102
102
|
* @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for
|
103
103
|
* additional info.
|
104
|
+
* @param context Optional context object that can be used to provide a pre-existing
|
105
|
+
* platform injector. This is useful for advanced use-cases, for example, server-side
|
106
|
+
* rendering, where the platform is created for each request.
|
104
107
|
* @returns A promise that returns an `ApplicationRef` instance once resolved.
|
105
108
|
*
|
106
109
|
* @publicApi
|
107
110
|
*/
|
108
|
-
export declare function bootstrapApplication(rootComponent: Type<unknown>, options?: ApplicationConfig): Promise<ApplicationRef>;
|
111
|
+
export declare function bootstrapApplication(rootComponent: Type<unknown>, options?: ApplicationConfig, context?: BootstrapContext): Promise<ApplicationRef>;
|
112
|
+
|
113
|
+
/**
|
114
|
+
* A context object that can be passed to `bootstrapApplication` to provide a pre-existing platform
|
115
|
+
* injector.
|
116
|
+
*
|
117
|
+
* @publicApi
|
118
|
+
*/
|
119
|
+
export declare interface BootstrapContext {
|
120
|
+
/**
|
121
|
+
* A reference to a platform.
|
122
|
+
*/
|
123
|
+
platformRef: PlatformRef;
|
124
|
+
}
|
109
125
|
|
110
126
|
/**
|
111
127
|
* Exports required infrastructure for all Angular apps.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.14",
|
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": "18.2.
|
15
|
-
"@angular/core": "18.2.
|
16
|
-
"@angular/common": "18.2.
|
14
|
+
"@angular/animations": "18.2.14",
|
15
|
+
"@angular/core": "18.2.14",
|
16
|
+
"@angular/common": "18.2.14"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED