@angular/platform-browser 17.0.0-next.1 → 17.0.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/index.d.ts +3 -3
- package/esm2022/animations/src/animation_builder.mjs +5 -5
- package/esm2022/animations/src/animation_renderer.mjs +3 -3
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/providers.mjs +6 -6
- 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 +6 -6
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +14 -5
- package/esm2022/src/dom/events/hammer_gestures.mjs +12 -12
- package/esm2022/src/dom/events/key_events.mjs +5 -12
- package/esm2022/src/dom/shared_styles_host.mjs +3 -3
- package/esm2022/src/hydration.mjs +13 -2
- package/esm2022/src/platform-browser.mjs +2 -2
- 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.mjs +21 -21
- package/fesm2022/animations.mjs.map +1 -1
- package/fesm2022/platform-browser.mjs +73 -60
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +31 -7
- 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 v17.0.0-next.
|
2
|
+
* @license Angular v17.0.0-next.3
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -26,15 +26,15 @@ 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.3", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.3", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: BrowserTestingModule, providers: [
|
32
32
|
{ provide: APP_ID, useValue: 'a' },
|
33
33
|
provideZoneChangeDetection(),
|
34
34
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
35
35
|
], imports: [BrowserModule] }); }
|
36
36
|
}
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.3", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
38
38
|
type: NgModule,
|
39
39
|
args: [{
|
40
40
|
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.3
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -295,7 +295,7 @@ export declare abstract class DomSanitizer implements Sanitizer {
|
|
295
295
|
export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
|
296
296
|
|
297
297
|
/**
|
298
|
-
* The injection token for the
|
298
|
+
* The injection token for plugins of the `EventManager` service.
|
299
299
|
*
|
300
300
|
* @publicApi
|
301
301
|
*/
|
@@ -333,11 +333,25 @@ export declare class EventManager {
|
|
333
333
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventManager>;
|
334
334
|
}
|
335
335
|
|
336
|
-
|
336
|
+
/**
|
337
|
+
* The plugin definition for the `EventManager` class
|
338
|
+
*
|
339
|
+
* It can be used as a base class to create custom manager plugins, i.e. you can create your own
|
340
|
+
* class that extends the `EventManagerPlugin` one.
|
341
|
+
*
|
342
|
+
* @publicApi
|
343
|
+
*/
|
344
|
+
export declare abstract class EventManagerPlugin {
|
337
345
|
private _doc;
|
338
346
|
constructor(_doc: any);
|
339
347
|
manager: EventManager;
|
348
|
+
/**
|
349
|
+
* Should return `true` for every event name that should be supported by this plugin
|
350
|
+
*/
|
340
351
|
abstract supports(eventName: string): boolean;
|
352
|
+
/**
|
353
|
+
* Implement the behaviour for the supported events
|
354
|
+
*/
|
341
355
|
abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
342
356
|
}
|
343
357
|
|
@@ -446,7 +460,7 @@ export declare type HammerLoader = () => Promise<void>;
|
|
446
460
|
* HammerJS to detect gesture events.
|
447
461
|
*
|
448
462
|
* Note that applications still need to include the HammerJS script itself. This module
|
449
|
-
* simply sets up the coordination layer between HammerJS and Angular's EventManager
|
463
|
+
* simply sets up the coordination layer between HammerJS and Angular's `EventManager`.
|
450
464
|
*
|
451
465
|
* @publicApi
|
452
466
|
*/
|
@@ -619,10 +633,21 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
|
|
619
633
|
|
620
634
|
/**
|
621
635
|
* Sets up providers necessary to enable hydration functionality for the application.
|
636
|
+
*
|
622
637
|
* By default, the function enables the recommended set of features for the optimal
|
623
638
|
* performance for most of the applications. You can enable/disable features by
|
624
639
|
* passing special functions (from the `HydrationFeatures` set) as arguments to the
|
625
|
-
* `provideClientHydration` function.
|
640
|
+
* `provideClientHydration` function. It includes the following features:
|
641
|
+
*
|
642
|
+
* * Reconciling DOM hydration. Learn more about it [here](guide/hydration).
|
643
|
+
* * [`HttpClient`](api/common/http/HttpClient) response caching while running on the server and
|
644
|
+
* transferring this cache to the client to avoid extra HTTP requests. Learn more about data caching
|
645
|
+
* [here](/guide/universal#caching-data-when-using-httpclient).
|
646
|
+
*
|
647
|
+
* These functions functions will allow you to disable some of the default features:
|
648
|
+
* * {@link withNoDomReuse} to disable DOM nodes reuse during hydration
|
649
|
+
* * {@link withNoHttpTransferCache} to disable HTTP transfer cache
|
650
|
+
*
|
626
651
|
*
|
627
652
|
* @usageNotes
|
628
653
|
*
|
@@ -673,7 +698,7 @@ export declare function provideProtractorTestingSupport(): Provider[];
|
|
673
698
|
* A [DI token](guide/glossary#di-token "DI token definition") that indicates whether styles
|
674
699
|
* of destroyed components should be removed from DOM.
|
675
700
|
*
|
676
|
-
* By default, the value is set to `
|
701
|
+
* By default, the value is set to `true`.
|
677
702
|
* @publicApi
|
678
703
|
*/
|
679
704
|
export declare const REMOVE_STYLES_ON_COMPONENT_DESTROY: InjectionToken<boolean>;
|
@@ -937,7 +962,6 @@ export declare function ɵinitDomAdapter(): void;
|
|
937
962
|
export declare const ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
|
938
963
|
|
939
964
|
/**
|
940
|
-
* @publicApi
|
941
965
|
* A browser plug-in that provides support for handling of key events in Angular.
|
942
966
|
*/
|
943
967
|
export declare class ɵKeyEventsPlugin extends EventManagerPlugin {
|
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.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": "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.3",
|
15
|
+
"@angular/core": "17.0.0-next.3",
|
16
|
+
"@angular/common": "17.0.0-next.3"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED