@angular/platform-browser 16.0.0-next.3 → 16.0.0-next.4

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 v16.0.0-next.3
2
+ * @license Angular v16.0.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -195,14 +195,14 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
195
195
  */
196
196
  class BrowserTestingModule {
197
197
  }
198
- BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
199
- BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
200
- BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTestingModule, providers: [
198
+ BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
199
+ BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
200
+ BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, providers: [
201
201
  { provide: APP_ID, useValue: 'a' },
202
202
  ɵprovideNgZoneChangeDetection(createNgZone()),
203
203
  { provide: PlatformLocation, useClass: MockPlatformLocation },
204
204
  ], imports: [BrowserModule] });
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.3", ngImport: i0, type: BrowserTestingModule, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.4", ngImport: i0, type: BrowserTestingModule, decorators: [{
206
206
  type: NgModule,
207
207
  args: [{
208
208
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.3
2
+ * @license Angular v16.0.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -752,15 +752,16 @@ export declare class ɵDomRendererFactory2 implements RendererFactory2, OnDestro
752
752
  private sharedStylesHost;
753
753
  private appId;
754
754
  private removeStylesOnCompDestory;
755
+ private nonce?;
755
756
  private rendererByCompId;
756
757
  private defaultRenderer;
757
- constructor(eventManager: EventManager, sharedStylesHost: ɵDomSharedStylesHost, appId: string, removeStylesOnCompDestory: boolean);
758
+ constructor(eventManager: EventManager, sharedStylesHost: ɵSharedStylesHost, appId: string, removeStylesOnCompDestory: boolean, nonce?: string | null | undefined);
758
759
  createRenderer(element: any, type: RendererType2 | null): Renderer2;
759
760
  private getOrCreateRenderer;
760
761
  ngOnDestroy(): void;
761
762
  begin(): void;
762
763
  end(): void;
763
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, never>;
764
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomRendererFactory2, [null, null, null, null, { optional: true; }]>;
764
765
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomRendererFactory2>;
765
766
  }
766
767
 
@@ -777,26 +778,6 @@ export declare class ɵDomSanitizerImpl extends DomSanitizer {
777
778
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomSanitizerImpl>;
778
779
  }
779
780
 
780
- export declare class ɵDomSharedStylesHost extends ɵSharedStylesHost implements OnDestroy {
781
- private readonly doc;
782
- private appId;
783
- private readonly styleRef;
784
- private hostNodes;
785
- private styleNodesInDOM;
786
- constructor(doc: Document, appId: string);
787
- onStyleAdded(style: string): void;
788
- onStyleRemoved(style: string): void;
789
- ngOnDestroy(): void;
790
- addHost(hostNode: Node): void;
791
- removeHost(hostNode: Node): void;
792
- private collectServerRenderedStyles;
793
- private getStyleElement;
794
- private addStyleToHost;
795
- private resetHostNodes;
796
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵDomSharedStylesHost, never>;
797
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵDomSharedStylesHost>;
798
- }
799
-
800
781
  export { ɵgetDOM }
801
782
 
802
783
  /**
@@ -887,15 +868,29 @@ export declare const ɵNAMESPACE_URIS: {
887
868
  };
888
869
 
889
870
  export declare class ɵSharedStylesHost implements OnDestroy {
890
- private readonly usageCount;
871
+ private readonly doc;
872
+ private readonly appId;
873
+ private nonce?;
874
+ readonly platformId: object;
875
+ private readonly styleRef;
876
+ private readonly hostNodes;
877
+ private readonly styleNodesInDOM;
878
+ private readonly platformIsServer;
879
+ constructor(doc: Document, appId: string, nonce?: string | null | undefined, platformId?: object);
891
880
  addStyles(styles: string[]): void;
892
881
  removeStyles(styles: string[]): void;
893
- onStyleRemoved(style: string): void;
894
- onStyleAdded(style: string): void;
895
- getAllStyles(): IterableIterator<string>;
896
- private changeUsageCount;
897
882
  ngOnDestroy(): void;
898
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵSharedStylesHost, never>;
883
+ addHost(hostNode: Node): void;
884
+ removeHost(hostNode: Node): void;
885
+ private getAllStyles;
886
+ private onStyleAdded;
887
+ private onStyleRemoved;
888
+ private collectServerRenderedStyles;
889
+ private changeUsageCount;
890
+ private getStyleElement;
891
+ private addStyleToHost;
892
+ private resetHostNodes;
893
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵSharedStylesHost, [null, null, { optional: true; }, null]>;
899
894
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵSharedStylesHost>;
900
895
  }
901
896
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "16.0.0-next.3",
3
+ "version": "16.0.0-next.4",
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": "16.0.0-next.3",
15
- "@angular/core": "16.0.0-next.3",
16
- "@angular/common": "16.0.0-next.3"
14
+ "@angular/animations": "16.0.0-next.4",
15
+ "@angular/core": "16.0.0-next.4",
16
+ "@angular/common": "16.0.0-next.4"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.3
2
+ * @license Angular v16.0.0-next.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */