@hmcts/rpx-xui-common-lib 2.1.4 → 2.1.5-google-manager-nonce

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.
@@ -4,14 +4,17 @@ import * as i0 from "@angular/core";
4
4
  export declare class GoogleTagManagerService {
5
5
  private readonly router;
6
6
  private readonly title;
7
+ private readonly cspNonce?;
7
8
  private readonly document;
8
9
  private readonly window;
10
+ private loaded;
9
11
  googleTagManagerKey: string;
10
- constructor(router: Router, title: Title, window: any, document: any);
12
+ constructor(router: Router, title: Title, win: any, doc: any, cspNonce?: string);
13
+ /** Call this only AFTER the user has opted-in to analytics cookies */
11
14
  init(googleTagManagerKey: string): void;
12
15
  private listenForRouteChanges;
13
16
  virtualPageView(eventName: string, path: string, title: string, metadata?: Record<string, any>): void;
14
17
  event(eventName: string, params: Record<string, any>): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTagManagerService, never>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTagManagerService, [null, null, null, null, { optional: true; }]>;
16
19
  static ɵprov: i0.ɵɵInjectableDeclaration<GoogleTagManagerService>;
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "2.1.4",
3
+ "version": "2.1.5-google-manager-nonce",
4
4
  "peerDependencies": {
5
5
  "launchdarkly-js-client-sdk": "^3.3.0",
6
6
  "ngx-pagination": "^3.2.1",