@angular/platform-browser 17.0.0-next.0 → 17.0.0-next.2

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
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.0", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.0", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
31
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.0", ngImport: i0, type: BrowserTestingModule, providers: [
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
30
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
31
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.2", 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.0", ngImport: i0, type: BrowserTestingModule, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", 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.0
2
+ * @license Angular v17.0.0-next.2
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 event-manager plug-in service.
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
- declare abstract class EventManagerPlugin {
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
  */
@@ -469,7 +483,7 @@ export declare interface HydrationFeature<FeatureKind extends HydrationFeatureKi
469
483
 
470
484
  /**
471
485
  * The list of features as an enum to uniquely type each `HydrationFeature`.
472
- * @see HydrationFeature
486
+ * @see {@link HydrationFeature}
473
487
  *
474
488
  * @publicApi
475
489
  * @developerPreview
@@ -673,7 +687,7 @@ export declare function provideProtractorTestingSupport(): Provider[];
673
687
  * A [DI token](guide/glossary#di-token "DI token definition") that indicates whether styles
674
688
  * of destroyed components should be removed from DOM.
675
689
  *
676
- * By default, the value is set to `false`. This will be changed in the next major version.
690
+ * By default, the value is set to `true`.
677
691
  * @publicApi
678
692
  */
679
693
  export declare const REMOVE_STYLES_ON_COMPONENT_DESTROY: InjectionToken<boolean>;
@@ -937,7 +951,6 @@ export declare function ɵinitDomAdapter(): void;
937
951
  export declare const ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[];
938
952
 
939
953
  /**
940
- * @publicApi
941
954
  * A browser plug-in that provides support for handling of key events in Angular.
942
955
  */
943
956
  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.0",
3
+ "version": "17.0.0-next.2",
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.0",
15
- "@angular/core": "17.0.0-next.0",
16
- "@angular/common": "17.0.0-next.0"
14
+ "@angular/animations": "17.0.0-next.2",
15
+ "@angular/core": "17.0.0-next.2",
16
+ "@angular/common": "17.0.0-next.2"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.0
2
+ * @license Angular v17.0.0-next.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */