@angular/platform-browser 17.0.0-next.6 → 17.0.0-next.8
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 +40 -0
- package/animations/index.d.ts +1 -16
- package/esm2022/animations/async/async.mjs +5 -0
- package/esm2022/animations/async/index.mjs +13 -0
- package/esm2022/animations/async/public_api.mjs +14 -0
- package/esm2022/animations/async/src/async-animations.mjs +14 -0
- package/esm2022/animations/async/src/async_animation_renderer.mjs +192 -0
- package/esm2022/animations/async/src/providers.mjs +55 -0
- package/esm2022/animations/src/animation_builder.mjs +5 -5
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/private_export.mjs +2 -3
- 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 +4 -4
- package/esm2022/src/dom/dom_renderer.mjs +13 -6
- 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 +20 -18
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration.mjs +31 -49
- package/esm2022/src/platform-browser.mjs +2 -2
- package/esm2022/src/private_export.mjs +1 -1
- package/esm2022/src/security/dom_sanitization_service.mjs +7 -7
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +4 -4
- package/fesm2022/animations/async.mjs +258 -0
- package/fesm2022/animations/async.mjs.map +1 -0
- package/fesm2022/animations.mjs +16 -17
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +100 -109
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +32 -37
- package/package.json +10 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v17.0.0-next.
|
2
|
+
* @license Angular v17.0.0-next.8
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -26,9 +26,9 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
26
26
|
* @publicApi
|
27
27
|
*/
|
28
28
|
class BrowserTestingModule {
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
30
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
31
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, providers: [
|
32
32
|
{ provide: APP_ID, useValue: 'a' },
|
33
33
|
provideZoneChangeDetection(),
|
34
34
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
@@ -36,7 +36,7 @@ class BrowserTestingModule {
|
|
36
36
|
{ provide: ɵEffectScheduler, useExisting: ɵZoneAwareQueueingScheduler },
|
37
37
|
], imports: [BrowserModule] }); }
|
38
38
|
}
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
40
40
|
type: NgModule,
|
41
41
|
args: [{
|
42
42
|
exports: [BrowserModule],
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v17.0.0-next.
|
2
|
+
* @license Angular v17.0.0-next.8
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -12,6 +12,7 @@ import { DebugElement } from '@angular/core';
|
|
12
12
|
import { DebugNode } from '@angular/core';
|
13
13
|
import { EnvironmentProviders } from '@angular/core';
|
14
14
|
import { GetTestability } from '@angular/core';
|
15
|
+
import { HttpTransferCacheOptions } from '@angular/common/http';
|
15
16
|
import * as i0 from '@angular/core';
|
16
17
|
import * as i1 from '@angular/common';
|
17
18
|
import { InjectionToken } from '@angular/core';
|
@@ -489,8 +490,8 @@ export declare interface HydrationFeature<FeatureKind extends HydrationFeatureKi
|
|
489
490
|
* @developerPreview
|
490
491
|
*/
|
491
492
|
export declare const enum HydrationFeatureKind {
|
492
|
-
|
493
|
-
|
493
|
+
NoHttpTransferCache = 0,
|
494
|
+
HttpTransferCacheOptions = 1
|
494
495
|
}
|
495
496
|
|
496
497
|
/**
|
@@ -635,19 +636,16 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
|
|
635
636
|
* Sets up providers necessary to enable hydration functionality for the application.
|
636
637
|
*
|
637
638
|
* By default, the function enables the recommended set of features for the optimal
|
638
|
-
* performance for most of the applications.
|
639
|
-
* passing special functions (from the `HydrationFeatures` set) as arguments to the
|
640
|
-
* `provideClientHydration` function. It includes the following features:
|
639
|
+
* performance for most of the applications. It includes the following features:
|
641
640
|
*
|
642
641
|
* * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
|
643
642
|
* * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
|
644
643
|
* transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
|
645
644
|
* [here](/guide/universal#caching-data-when-using-httpclient).
|
646
645
|
*
|
647
|
-
* These functions
|
648
|
-
* * {@link withNoDomReuse} to disable DOM nodes reuse during hydration
|
646
|
+
* These functions allow you to disable some of the default features or configure features
|
649
647
|
* * {@link withNoHttpTransferCache} to disable HTTP transfer cache
|
650
|
-
*
|
648
|
+
* * {@link withHttpTransferCacheOptions} to configure some HTTP transfer cache options
|
651
649
|
*
|
652
650
|
* @usageNotes
|
653
651
|
*
|
@@ -670,8 +668,8 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
|
|
670
668
|
* export class AppModule {}
|
671
669
|
* ```
|
672
670
|
*
|
673
|
-
* @see {@link withNoDomReuse}
|
674
671
|
* @see {@link withNoHttpTransferCache}
|
672
|
+
* @see {@link withHttpTransferCacheOptions}
|
675
673
|
*
|
676
674
|
* @param features Optional features to configure additional router behaviors.
|
677
675
|
* @returns A set of providers to enable hydration.
|
@@ -825,37 +823,15 @@ export declare const TransferState: {
|
|
825
823
|
export declare const VERSION: Version;
|
826
824
|
|
827
825
|
/**
|
828
|
-
*
|
829
|
-
*
|
830
|
-
*
|
831
|
-
*
|
832
|
-
* option is configured for the Router as `enabledBlocking` by using the
|
833
|
-
* `withEnabledBlockingInitialNavigation` in the `provideRouter` call:
|
834
|
-
*
|
835
|
-
* ```
|
836
|
-
* bootstrapApplication(RootComponent, {
|
837
|
-
* providers: [
|
838
|
-
* provideRouter(
|
839
|
-
* // ... other features ...
|
840
|
-
* withEnabledBlockingInitialNavigation()
|
841
|
-
* ),
|
842
|
-
* provideClientHydration(withNoDomReuse())
|
843
|
-
* ]
|
844
|
-
* });
|
845
|
-
* ```
|
846
|
-
*
|
847
|
-
* This would ensure that the application is rerendered after all async
|
848
|
-
* operations in the Router (such as lazy-loading of components,
|
849
|
-
* waiting for async guards and resolvers) are completed to avoid
|
850
|
-
* clearing the DOM on the client too soon, thus causing content flicker.
|
851
|
-
*
|
852
|
-
* @see {@link provideRouter}
|
853
|
-
* @see {@link withEnabledBlockingInitialNavigation}
|
826
|
+
* The function accepts a an object, which allows to configure cache parameters,
|
827
|
+
* such as which headers should be included (no headers are included by default),
|
828
|
+
* wether POST requests should be cached or a callback function to determine if a
|
829
|
+
* particular request should be cached.
|
854
830
|
*
|
855
831
|
* @publicApi
|
856
832
|
* @developerPreview
|
857
833
|
*/
|
858
|
-
export declare function
|
834
|
+
export declare function withHttpTransferCacheOptions(options: HttpTransferCacheOptions): HydrationFeature<HydrationFeatureKind.HttpTransferCacheOptions>;
|
859
835
|
|
860
836
|
/**
|
861
837
|
* Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the
|
@@ -1021,6 +997,25 @@ export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
|
|
1021
997
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵKeyEventsPlugin>;
|
1022
998
|
}
|
1023
999
|
|
1000
|
+
|
1001
|
+
/**
|
1002
|
+
* The list of error codes used in runtime code of the `platform-browser` package.
|
1003
|
+
* Reserved error code range: 5000-5500.
|
1004
|
+
*/
|
1005
|
+
export declare const enum ɵRuntimeErrorCode {
|
1006
|
+
UNSUPPORTED_ZONEJS_INSTANCE = -5000,
|
1007
|
+
BROWER_MODULE_ALREADY_LOADED = 5100,
|
1008
|
+
NO_PLUGIN_FOR_EVENT = 5101,
|
1009
|
+
UNSUPPORTED_EVENT_TARGET = 5102,
|
1010
|
+
TESTABILITY_NOT_FOUND = 5103,
|
1011
|
+
ROOT_NODE_NOT_FOUND = -5104,
|
1012
|
+
UNEXPECTED_SYNTHETIC_PROPERTY = 5105,
|
1013
|
+
SANITIZATION_UNSAFE_SCRIPT = 5200,
|
1014
|
+
SANITIZATION_UNSAFE_RESOURCE_URL = 5201,
|
1015
|
+
SANITIZATION_UNEXPECTED_CTX = 5202,
|
1016
|
+
ANIMATION_RENDERER_ASYNC_LOADING_FAILURE = 5300
|
1017
|
+
}
|
1018
|
+
|
1024
1019
|
export declare class ɵSharedStylesHost implements OnDestroy {
|
1025
1020
|
private readonly doc;
|
1026
1021
|
private readonly appId;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "17.0.0-next.
|
3
|
+
"version": "17.0.0-next.8",
|
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": "17.0.0-next.
|
15
|
-
"@angular/core": "17.0.0-next.
|
16
|
-
"@angular/common": "17.0.0-next.
|
14
|
+
"@angular/animations": "17.0.0-next.8",
|
15
|
+
"@angular/core": "17.0.0-next.8",
|
16
|
+
"@angular/common": "17.0.0-next.8"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
@@ -65,6 +65,12 @@
|
|
65
65
|
"esm": "./esm2022/animations/animations.mjs",
|
66
66
|
"default": "./fesm2022/animations.mjs"
|
67
67
|
},
|
68
|
+
"./animations/async": {
|
69
|
+
"types": "./animations/async/index.d.ts",
|
70
|
+
"esm2022": "./esm2022/animations/async/async.mjs",
|
71
|
+
"esm": "./esm2022/animations/async/async.mjs",
|
72
|
+
"default": "./fesm2022/animations/async.mjs"
|
73
|
+
},
|
68
74
|
"./testing": {
|
69
75
|
"types": "./testing/index.d.ts",
|
70
76
|
"esm2022": "./esm2022/testing/testing.mjs",
|
package/testing/index.d.ts
CHANGED