@hmcts/ccpay-web-component 6.5.27 → 6.5.28-v1

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, ChangeDetectorRef, EventEmitter, PipeTransform } from '@angular/core';
2
+ import { OnInit, AfterViewInit, OnDestroy, ChangeDetectorRef, ElementRef, EventEmitter, PipeTransform } from '@angular/core';
3
3
  import { Observable, BehaviorSubject } from 'rxjs';
4
4
  import { HttpErrorResponse, HttpClient } from '@angular/common/http';
5
5
  import { Observable as Observable$1 } from 'rxjs/internal/Observable';
@@ -292,10 +292,11 @@ declare class AddRetroRemissionRequest {
292
292
  constructor(hwf_amount: number, hwf_reference: string);
293
293
  }
294
294
 
295
- declare class PaymentLibComponent implements OnInit {
295
+ declare class PaymentLibComponent implements OnInit, AfterViewInit, OnDestroy {
296
296
  private paymentLibService;
297
297
  private cd;
298
298
  private OrderslistService;
299
+ private hostElement;
299
300
  API_ROOT: string;
300
301
  BULKSCAN_API_ROOT: string;
301
302
  REFUNDS_API_ROOT: string;
@@ -343,6 +344,8 @@ declare class PaymentLibComponent implements OnInit {
343
344
  isFromPaymentDetailPage: boolean;
344
345
  pbaPayOrderRef: IPayment;
345
346
  isTakePayment: boolean;
347
+ private govukObserver?;
348
+ private govukInitialisationQueued;
346
349
  orderDetail: any[];
347
350
  orderRef: string;
348
351
  orderStatus: string;
@@ -358,9 +361,12 @@ declare class PaymentLibComponent implements OnInit {
358
361
  paymentGroup: IPaymentGroup;
359
362
  overPaymentAmount: number;
360
363
  refunds: IRefundList[];
361
- constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
364
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService, hostElement: ElementRef<HTMLElement>);
362
365
  ngAfterContentChecked(): void;
363
366
  ngOnInit(): void;
367
+ ngAfterViewInit(): void;
368
+ ngOnDestroy(): void;
369
+ private queueGovukInitialisation;
364
370
  /**
365
371
  * Adds a remission to the payment group using data from the provided form group.
366
372
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "6.5.27",
3
+ "version": "6.5.28-v1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@angular/common": "^20.3.1",
14
- "@angular/core": "~20.3.1"
14
+ "@angular/core": "~20.3.1",
15
+ "govuk-frontend": "^6.4.0"
15
16
  },
16
17
  "license": "MIT",
17
18
  "repository": {