@angular/platform-browser 21.1.1 → 21.1.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/fesm2022/_browser-chunk.mjs +11 -11
- package/fesm2022/_browser-chunk.mjs.map +1 -1
- package/fesm2022/_dom_renderer-chunk.mjs +13 -13
- package/fesm2022/_dom_renderer-chunk.mjs.map +1 -1
- package/fesm2022/animations-async.mjs +4 -4
- package/fesm2022/animations-async.mjs.map +1 -1
- package/fesm2022/animations.mjs +12 -12
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +24 -24
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +8 -8
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +4 -4
- package/types/_browser-chunk.d.ts +7 -9
- package/types/animations-async.d.ts +1 -1
- package/types/animations.d.ts +1 -1
- package/types/platform-browser.d.ts +1 -1
- package/types/testing.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.3
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -37,7 +37,7 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
|
37
37
|
}
|
|
38
38
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
39
39
|
minVersion: "12.0.0",
|
|
40
|
-
version: "21.1.
|
|
40
|
+
version: "21.1.3",
|
|
41
41
|
ngImport: i0,
|
|
42
42
|
type: DOMTestComponentRenderer,
|
|
43
43
|
deps: [{
|
|
@@ -47,14 +47,14 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
|
|
|
47
47
|
});
|
|
48
48
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
49
49
|
minVersion: "12.0.0",
|
|
50
|
-
version: "21.1.
|
|
50
|
+
version: "21.1.3",
|
|
51
51
|
ngImport: i0,
|
|
52
52
|
type: DOMTestComponentRenderer
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({
|
|
56
56
|
minVersion: "12.0.0",
|
|
57
|
-
version: "21.1.
|
|
57
|
+
version: "21.1.3",
|
|
58
58
|
ngImport: i0,
|
|
59
59
|
type: DOMTestComponentRenderer,
|
|
60
60
|
decorators: [{
|
|
@@ -73,7 +73,7 @@ const platformBrowserTesting = createPlatformFactory(platformBrowser, 'browserTe
|
|
|
73
73
|
class BrowserTestingModule {
|
|
74
74
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
75
75
|
minVersion: "12.0.0",
|
|
76
|
-
version: "21.1.
|
|
76
|
+
version: "21.1.3",
|
|
77
77
|
ngImport: i0,
|
|
78
78
|
type: BrowserTestingModule,
|
|
79
79
|
deps: [],
|
|
@@ -81,14 +81,14 @@ class BrowserTestingModule {
|
|
|
81
81
|
});
|
|
82
82
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
83
83
|
minVersion: "14.0.0",
|
|
84
|
-
version: "21.1.
|
|
84
|
+
version: "21.1.3",
|
|
85
85
|
ngImport: i0,
|
|
86
86
|
type: BrowserTestingModule,
|
|
87
87
|
exports: [BrowserModule]
|
|
88
88
|
});
|
|
89
89
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
90
90
|
minVersion: "12.0.0",
|
|
91
|
-
version: "21.1.
|
|
91
|
+
version: "21.1.3",
|
|
92
92
|
ngImport: i0,
|
|
93
93
|
type: BrowserTestingModule,
|
|
94
94
|
providers: [{
|
|
@@ -103,7 +103,7 @@ class BrowserTestingModule {
|
|
|
103
103
|
}
|
|
104
104
|
i0.ɵɵngDeclareClassMetadata({
|
|
105
105
|
minVersion: "12.0.0",
|
|
106
|
-
version: "21.1.
|
|
106
|
+
version: "21.1.3",
|
|
107
107
|
ngImport: i0,
|
|
108
108
|
type: BrowserTestingModule,
|
|
109
109
|
decorators: [{
|
package/fesm2022/testing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/testing/src/dom_test_component_renderer.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/platform-browser/testing/src/browser.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string, tagName = 'div') {\n this.removeAllRootElementsImpl();\n const rootElement = getDOM().getDefaultDocument().createElement(tagName);\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // Check whether the `DOCUMENT` instance retrieved from DI contains\n // the necessary function to complete the cleanup. In tests that don't\n // interact with DOM, the `DOCUMENT` might be mocked and some functions\n // might be missing. For such tests, DOM cleanup is not required and\n // we skip the logic if there are missing functions.\n if (typeof this._doc.querySelectorAll === 'function') {\n this.removeAllRootElementsImpl();\n }\n }\n\n private removeAllRootElementsImpl() {\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {ɵprovideFakePlatformNavigation} from '@angular/common/testing';\nimport {APP_ID, createPlatformFactory, NgModule, StaticProvider, PlatformRef} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {BrowserModule, platformBrowser} from '../../index';\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\n\n/**\n * Platform for testing\n *\n * @publicApi\n */\nexport const platformBrowserTesting: (extraProviders?: StaticProvider[]) => PlatformRef =\n createPlatformFactory(platformBrowser, 'browserTesting');\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserModule],\n providers: [\n {provide: APP_ID, useValue: 'a'},\n ɵprovideFakePlatformNavigation(),\n {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},\n ],\n})\nexport class BrowserTestingModule {}\n"],"names":["DOMTestComponentRenderer","TestComponentRenderer","_doc","constructor","insertRootElement","rootElId","tagName","removeAllRootElementsImpl","rootElement","getDOM","getDefaultDocument","createElement","setAttribute","body","appendChild","removeAllRootElements","querySelectorAll","oldRoots","i","length","remove","ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","DOCUMENT","target","ɵɵFactoryTarget","Injectable","decorators","Inject","platformBrowserTesting","createPlatformFactory","platformBrowser","BrowserTestingModule","deps","NgModule","ɵmod","ɵɵngDeclareNgModule","BrowserModule","ɵinj","ɵɵngDeclareInjector","providers","provide","APP_ID","useValue","ɵprovideFakePlatformNavigation","useClass","imports","args","exports"],"mappings":";;;;;;;;;;;;;;AAgBM,MAAOA,wBAAyB,SAAQC,qBAAqB,CAAA;EAC3BC,IAAA;EAAtCC,WAAAA,CAAsCD,IAAS,EAAA;AAC7C,IAAA,KAAK,EAAE;IAD6B,IAAI,CAAAA,IAAA,GAAJA,IAAI;AAE1C;AAESE,EAAAA,iBAAiBA,CAACC,QAAgB,EAAEC,OAAO,GAAG,KAAK,EAAA;IAC1D,IAAI,CAACC,yBAAyB,EAAE;AAChC,IAAA,MAAMC,WAAW,GAAGC,OAAM,EAAE,CAAC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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": "21.1.
|
|
15
|
-
"@angular/core": "21.1.
|
|
16
|
-
"@angular/common": "21.1.
|
|
14
|
+
"@angular/animations": "21.1.3",
|
|
15
|
+
"@angular/core": "21.1.3",
|
|
16
|
+
"@angular/common": "21.1.3"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"@angular/animations": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.3
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -26,24 +26,22 @@ interface BootstrapContext {
|
|
|
26
26
|
* guide](guide/components/importing).
|
|
27
27
|
*
|
|
28
28
|
* @usageNotes
|
|
29
|
-
* The root component passed into this function
|
|
30
|
-
* `standalone: true` flag in the `@Component` decorator config).
|
|
29
|
+
* The root component passed into this function **must** be a standalone one
|
|
31
30
|
*
|
|
32
31
|
* ```angular-ts
|
|
33
32
|
* @Component({
|
|
34
|
-
* standalone: true,
|
|
35
33
|
* template: 'Hello world!'
|
|
36
34
|
* })
|
|
37
|
-
* class
|
|
35
|
+
* class Root {}
|
|
38
36
|
*
|
|
39
|
-
* const appRef: ApplicationRef = await bootstrapApplication(
|
|
37
|
+
* const appRef: ApplicationRef = await bootstrapApplication(Root);
|
|
40
38
|
* ```
|
|
41
39
|
*
|
|
42
40
|
* You can add the list of providers that should be available in the application injector by
|
|
43
41
|
* specifying the `providers` field in an object passed as the second argument:
|
|
44
42
|
*
|
|
45
43
|
* ```ts
|
|
46
|
-
* await bootstrapApplication(
|
|
44
|
+
* await bootstrapApplication(Root, {
|
|
47
45
|
* providers: [
|
|
48
46
|
* {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}
|
|
49
47
|
* ]
|
|
@@ -54,7 +52,7 @@ interface BootstrapContext {
|
|
|
54
52
|
* existing NgModule (and transitively from all NgModules that it imports):
|
|
55
53
|
*
|
|
56
54
|
* ```ts
|
|
57
|
-
* await bootstrapApplication(
|
|
55
|
+
* await bootstrapApplication(Root, {
|
|
58
56
|
* providers: [
|
|
59
57
|
* importProvidersFrom(SomeNgModule)
|
|
60
58
|
* ]
|
|
@@ -69,7 +67,7 @@ interface BootstrapContext {
|
|
|
69
67
|
* ```ts
|
|
70
68
|
* import {provideProtractorTestingSupport} from '@angular/platform-browser';
|
|
71
69
|
*
|
|
72
|
-
* await bootstrapApplication(
|
|
70
|
+
* await bootstrapApplication(Root, {providers: [provideProtractorTestingSupport()]});
|
|
73
71
|
* ```
|
|
74
72
|
*
|
|
75
73
|
* @param rootComponent A reference to a standalone component that should be rendered.
|
package/types/animations.d.ts
CHANGED
package/types/testing.d.ts
CHANGED