@angular/platform-browser 18.0.0-next.4 → 18.0.0-next.6
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 +7 -7
- package/esm2022/animations/async/src/providers.mjs +2 -2
- package/esm2022/animations/src/animations.mjs +2 -2
- package/esm2022/animations/src/module.mjs +13 -12
- package/esm2022/animations/src/providers.mjs +14 -11
- package/esm2022/src/browser/browser_adapter.mjs +2 -2
- package/esm2022/src/browser/generic_browser_adapter.mjs +1 -1
- package/esm2022/src/browser/meta.mjs +6 -6
- package/esm2022/src/browser/testability.mjs +2 -2
- package/esm2022/src/browser/title.mjs +3 -3
- package/esm2022/src/browser/tools/common_tools.mjs +2 -2
- package/esm2022/src/browser/tools/tools.mjs +1 -1
- package/esm2022/src/browser/xhr.mjs +3 -3
- package/esm2022/src/browser.mjs +23 -25
- package/esm2022/src/dom/debug/by.mjs +7 -7
- package/esm2022/src/dom/dom_renderer.mjs +15 -15
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +5 -5
- package/esm2022/src/dom/events/hammer_gestures.mjs +18 -20
- package/esm2022/src/dom/events/key_events.mjs +9 -9
- package/esm2022/src/dom/shared_styles_host.mjs +5 -5
- package/esm2022/src/dom/util.mjs +2 -2
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration.mjs +24 -10
- package/esm2022/src/platform-browser.mjs +5 -26
- package/esm2022/src/private_export.mjs +2 -2
- package/esm2022/src/security/dom_sanitization_service.mjs +8 -8
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +10 -8
- package/esm2022/testing/src/browser_util.mjs +7 -2
- package/esm2022/testing/src/matchers.mjs +19 -17
- package/fesm2022/animations/async.mjs +6 -6
- package/fesm2022/animations/async.mjs.map +1 -1
- package/fesm2022/animations.mjs +23 -19
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +118 -129
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +9 -7
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +8 -61
- 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.0.0-next.
|
2
|
+
* @license Angular v18.0.0-next.6
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -13,7 +13,9 @@ import { ɵBrowserDomAdapter, BrowserModule } from '@angular/platform-browser';
|
|
13
13
|
function initBrowserTests() {
|
14
14
|
ɵBrowserDomAdapter.makeCurrent();
|
15
15
|
}
|
16
|
-
const _TEST_BROWSER_PLATFORM_PROVIDERS = [
|
16
|
+
const _TEST_BROWSER_PLATFORM_PROVIDERS = [
|
17
|
+
{ provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true },
|
18
|
+
];
|
17
19
|
/**
|
18
20
|
* Platform for testing
|
19
21
|
*
|
@@ -26,15 +28,15 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
26
28
|
* @publicApi
|
27
29
|
*/
|
28
30
|
class BrowserTestingModule {
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
30
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.
|
31
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
32
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
33
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserTestingModule, providers: [
|
32
34
|
{ provide: APP_ID, useValue: 'a' },
|
33
35
|
provideZoneChangeDetection(),
|
34
36
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
35
37
|
], imports: [BrowserModule] }); }
|
36
38
|
}
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.6", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
38
40
|
type: NgModule,
|
39
41
|
args: [{
|
40
42
|
exports: [BrowserModule],
|
@@ -42,7 +44,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4",
|
|
42
44
|
{ provide: APP_ID, useValue: 'a' },
|
43
45
|
provideZoneChangeDetection(),
|
44
46
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
45
|
-
]
|
47
|
+
],
|
46
48
|
}]
|
47
49
|
}] });
|
48
50
|
|
package/fesm2022/testing.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser/testing/src/browser.ts","../../../../../../packages/platform-browser/testing/src/testing.ts","../../../../../../packages/platform-browser/testing/public_api.ts","../../../../../../packages/platform-browser/testing/index.ts","../../../../../../packages/platform-browser/testing/testing.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.io/license\n */\nimport {PlatformLocation} from '@angular/common';\nimport {MockPlatformLocation} from '@angular/common/testing';\nimport {APP_ID
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser/testing/src/browser.ts","../../../../../../packages/platform-browser/testing/src/testing.ts","../../../../../../packages/platform-browser/testing/public_api.ts","../../../../../../packages/platform-browser/testing/index.ts","../../../../../../packages/platform-browser/testing/testing.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.io/license\n */\nimport {PlatformLocation} from '@angular/common';\nimport {MockPlatformLocation} from '@angular/common/testing';\nimport {\n APP_ID,\n createPlatformFactory,\n NgModule,\n PLATFORM_INITIALIZER,\n platformCore,\n provideZoneChangeDetection,\n StaticProvider,\n} from '@angular/core';\nimport {BrowserModule, ɵBrowserDomAdapter as BrowserDomAdapter} from '@angular/platform-browser';\n\nfunction initBrowserTests() {\n BrowserDomAdapter.makeCurrent();\n}\n\nconst _TEST_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] = [\n {provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true},\n];\n\n/**\n * Platform for testing\n *\n * @publicApi\n */\nexport const platformBrowserTesting = createPlatformFactory(\n platformCore,\n 'browserTesting',\n _TEST_BROWSER_PLATFORM_PROVIDERS,\n);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserModule],\n providers: [\n {provide: APP_ID, useValue: 'a'},\n provideZoneChangeDetection(),\n {provide: PlatformLocation, useClass: MockPlatformLocation},\n ],\n})\nexport class BrowserTestingModule {}\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.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser/testing package.\n */\nexport * from './browser';\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.io/license\n */\n\n/// <reference types=\"jasmine\" />\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/testing';\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.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["BrowserDomAdapter"],"mappings":";;;;;;;;;;;;AAoBA,SAAS,gBAAgB,GAAA;IACvBA,kBAAiB,CAAC,WAAW,EAAE,CAAC;AAClC,CAAC;AAED,MAAM,gCAAgC,GAAqB;IACzD,EAAC,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAC;CACzE,CAAC;AAEF;;;;AAIG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACzD,YAAY,EACZ,gBAAgB,EAChB,gCAAgC,EAChC;AAEF;;;;AAIG;MASU,oBAAoB,CAAA;yHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAPrB,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;AAOZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EANpB,SAAA,EAAA;AACT,YAAA,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAC;AAChC,YAAA,0BAA0B,EAAE;AAC5B,YAAA,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAC;AAC5D,SAAA,EAAA,OAAA,EAAA,CALS,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;sGAOZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;AACxB,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAC;AAChC,wBAAA,0BAA0B,EAAE;AAC5B,wBAAA,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAC;AAC5D,qBAAA;AACF,iBAAA,CAAA;;;AC3CD;;;;AAIG;;ACJH;;ACAA;;ACRA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v18.0.0-next.
|
2
|
+
* @license Angular v18.0.0-next.6
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -16,7 +16,6 @@ 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 { makeStateKey as makeStateKey_2 } from '@angular/core';
|
20
19
|
import { ModuleWithProviders } from '@angular/core';
|
21
20
|
import { NgZone } from '@angular/core';
|
22
21
|
import { OnDestroy } from '@angular/core';
|
@@ -28,11 +27,9 @@ import { RendererFactory2 } from '@angular/core';
|
|
28
27
|
import { RendererType2 } from '@angular/core';
|
29
28
|
import { Sanitizer } from '@angular/core';
|
30
29
|
import { SecurityContext } from '@angular/core';
|
31
|
-
import { StateKey as StateKey_2 } from '@angular/core';
|
32
30
|
import { StaticProvider } from '@angular/core';
|
33
31
|
import { Testability } from '@angular/core';
|
34
32
|
import { TestabilityRegistry } from '@angular/core';
|
35
|
-
import { TransferState as TransferState_2 } from '@angular/core';
|
36
33
|
import { Type } from '@angular/core';
|
37
34
|
import { Version } from '@angular/core';
|
38
35
|
import { ɵConsole } from '@angular/core';
|
@@ -490,26 +487,10 @@ export declare interface HydrationFeature<FeatureKind extends HydrationFeatureKi
|
|
490
487
|
export declare enum HydrationFeatureKind {
|
491
488
|
NoHttpTransferCache = 0,
|
492
489
|
HttpTransferCacheOptions = 1,
|
493
|
-
I18nSupport = 2
|
490
|
+
I18nSupport = 2,
|
491
|
+
EventReplay = 3
|
494
492
|
}
|
495
493
|
|
496
|
-
/**
|
497
|
-
* Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
|
498
|
-
*
|
499
|
-
* Example:
|
500
|
-
*
|
501
|
-
* ```
|
502
|
-
* const COUNTER_KEY = makeStateKey<number>('counter');
|
503
|
-
* let value = 10;
|
504
|
-
*
|
505
|
-
* transferState.set(COUNTER_KEY, value);
|
506
|
-
* ```
|
507
|
-
*
|
508
|
-
* @publicApi
|
509
|
-
* @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead.
|
510
|
-
*/
|
511
|
-
export declare const makeStateKey: typeof makeStateKey_2;
|
512
|
-
|
513
494
|
/**
|
514
495
|
* A service for managing HTML `<meta>` tags.
|
515
496
|
*
|
@@ -747,23 +728,6 @@ export declare interface SafeUrl extends SafeValue {
|
|
747
728
|
export declare interface SafeValue {
|
748
729
|
}
|
749
730
|
|
750
|
-
/**
|
751
|
-
* A type-safe key to use with `TransferState`.
|
752
|
-
*
|
753
|
-
* Example:
|
754
|
-
*
|
755
|
-
* ```
|
756
|
-
* const COUNTER_KEY = makeStateKey<number>('counter');
|
757
|
-
* let value = 10;
|
758
|
-
*
|
759
|
-
* transferState.set(COUNTER_KEY, value);
|
760
|
-
* ```
|
761
|
-
* @publicApi
|
762
|
-
*
|
763
|
-
* @deprecated `StateKey` has moved, please import `StateKey` from `@angular/core` instead.
|
764
|
-
*/
|
765
|
-
export declare type StateKey<T> = StateKey_2<T>;
|
766
|
-
|
767
731
|
/**
|
768
732
|
* A service that can be used to get and set the title of a current HTML document.
|
769
733
|
*
|
@@ -791,34 +755,17 @@ export declare class Title {
|
|
791
755
|
}
|
792
756
|
|
793
757
|
/**
|
794
|
-
*
|
795
|
-
* A key value store that is transferred from the application on the server side to the application
|
796
|
-
* on the client side.
|
797
|
-
*
|
798
|
-
* The `TransferState` is available as an injectable token.
|
799
|
-
* On the client, just inject this token using DI and use it, it will be lazily initialized.
|
800
|
-
* On the server it's already included if `renderApplication` function is used. Otherwise, import
|
801
|
-
* the `ServerTransferStateModule` module to make the `TransferState` available.
|
802
|
-
*
|
803
|
-
* The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
|
804
|
-
* boolean, number, string, null and non-class objects will be serialized and deserialized in a
|
805
|
-
* non-lossy manner.
|
806
|
-
*
|
807
758
|
* @publicApi
|
808
|
-
*
|
809
|
-
* @deprecated `TransferState` has moved, please import `TransferState` from `@angular/core`
|
810
|
-
* instead.
|
811
759
|
*/
|
812
|
-
export declare
|
813
|
-
|
814
|
-
export declare const TransferState: {
|
815
|
-
new (): TransferState_2;
|
816
|
-
};
|
760
|
+
export declare const VERSION: Version;
|
817
761
|
|
818
762
|
/**
|
763
|
+
* Enables support for event replay
|
764
|
+
*
|
765
|
+
* @developerPreview
|
819
766
|
* @publicApi
|
820
767
|
*/
|
821
|
-
export declare
|
768
|
+
export declare function withEventReplay(): HydrationFeature<HydrationFeatureKind.EventReplay>;
|
822
769
|
|
823
770
|
/**
|
824
771
|
* The function accepts a an object, which allows to configure cache parameters,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "18.0.0-next.
|
3
|
+
"version": "18.0.0-next.6",
|
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.0.0-next.
|
15
|
-
"@angular/core": "18.0.0-next.
|
16
|
-
"@angular/common": "18.0.0-next.
|
14
|
+
"@angular/animations": "18.0.0-next.6",
|
15
|
+
"@angular/core": "18.0.0-next.6",
|
16
|
+
"@angular/common": "18.0.0-next.6"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED