@dsivd/prestations-ng 16.4.9-beta.1 → 16.4.9-beta.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.
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "ng-update": {
41
41
  "migrations": "./schematics/migration-collection.json"
42
42
  },
43
- "version": "16.4.9-beta.1",
43
+ "version": "16.4.9-beta.2",
44
44
  "module": "fesm2015/dsivd-prestations-ng.mjs",
45
45
  "es2020": "fesm2020/dsivd-prestations-ng.mjs",
46
46
  "esm2020": "esm2020/dsivd-prestations-ng.mjs",
@@ -17,6 +17,7 @@ export declare class SdkEpaymentComponent implements OnInit {
17
17
  platformFailureMessageDicoKey: string;
18
18
  failureModalDisplayed: boolean;
19
19
  redirectModalDisplayed: boolean;
20
+ private window;
20
21
  private failureMessageDicoKeyByCode;
21
22
  constructor(ePaymentService: EPaymentService, route: ActivatedRoute, gesDemService: GesdemHandlerService, gesdemEventService: GesdemEventService);
22
23
  ngOnInit(): void;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { RecaptchaService } from '../recaptcha.service';
2
3
  import * as i0 from "@angular/core";
3
- export declare const RECAPTCHA_URL = "https://www.recaptcha.net/recaptcha/api.js?onload=reCaptchaLoad&render=explicit";
4
4
  export declare const SCRIPT_ID = "prestations-ng-captcha-script";
5
5
  declare global {
6
6
  interface Window {
@@ -16,6 +16,7 @@ declare global {
16
16
  *
17
17
  */
18
18
  export declare class GrecaptchaComponent implements OnInit, OnDestroy {
19
+ private recaptchaService;
19
20
  siteKey: string;
20
21
  loaded: EventEmitter<boolean>;
21
22
  scriptError: EventEmitter<boolean>;
@@ -24,6 +25,7 @@ export declare class GrecaptchaComponent implements OnInit, OnDestroy {
24
25
  recaptchaContainer: ElementRef;
25
26
  recaptchaScriptContainer: ElementRef;
26
27
  private widgetId;
28
+ constructor(recaptchaService: RecaptchaService);
27
29
  ngOnInit(): void;
28
30
  ngOnDestroy(): void;
29
31
  reset(): void;
@@ -1,4 +1,5 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import { ActivatedRoute } from '@angular/router';
3
4
  import { Observable } from 'rxjs';
4
5
  import { FormError } from '../form-error';
@@ -11,6 +12,7 @@ import { ValidationHandlerService } from '../validation/validation-handler.servi
11
12
  import * as i0 from "@angular/core";
12
13
  export declare const RECAPTCHA_API_URL = "api/recaptcha";
13
14
  export declare const CAPTCHA_ERROR_NAME = "recaptcha";
15
+ export declare const CAPTCHA_URL_TOKEN: InjectionToken<string>;
14
16
  export declare class RecaptchaService {
15
17
  private http;
16
18
  private sessionInfo;
@@ -20,12 +22,13 @@ export declare class RecaptchaService {
20
22
  private gesdemEventService;
21
23
  private applicationInfoService;
22
24
  private iamExpiredInterceptorService;
25
+ private captchaScriptUrl;
23
26
  private readonly errors;
24
27
  private readonly errorsSubject;
25
28
  private readonly shouldDisplay;
26
29
  private readonly publicKey;
27
30
  private token;
28
- constructor(http: HttpClient, sessionInfo: SessionInfo, route: ActivatedRoute, validationHandlerService: ValidationHandlerService, gesdemService: GesdemHandlerService, gesdemEventService: GesdemEventService, applicationInfoService: ApplicationInfoService, iamExpiredInterceptorService: IamExpiredInterceptorService);
31
+ constructor(http: HttpClient, sessionInfo: SessionInfo, route: ActivatedRoute, validationHandlerService: ValidationHandlerService, gesdemService: GesdemHandlerService, gesdemEventService: GesdemEventService, applicationInfoService: ApplicationInfoService, iamExpiredInterceptorService: IamExpiredInterceptorService, captchaScriptUrl: string);
29
32
  onSuccess(token: string): void;
30
33
  addError(message: string): void;
31
34
  clearErrors(): void;
@@ -33,6 +36,7 @@ export declare class RecaptchaService {
33
36
  getShouldDisplay(): Observable<boolean>;
34
37
  getPublicKey(): Observable<string>;
35
38
  getToken(): string;
39
+ getCaptchaScriptUrl(): string;
36
40
  private initErrorObservable;
37
41
  private initShouldDisplayObservable;
38
42
  private checkBypassProperty;