@dsivd/prestations-ng 17.8.2-beta.2 → 17.9.0-beta.1

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": "17.8.2-beta.2",
43
+ "version": "17.9.0-beta.1",
44
44
  "module": "fesm2022/dsivd-prestations-ng.mjs",
45
45
  "typings": "index.d.ts",
46
46
  "exports": {
@@ -47,6 +47,7 @@ export declare class Document {
47
47
  }
48
48
  export declare class Captcha {
49
49
  publickey?: string;
50
+ captchaUrlToken?: string;
50
51
  }
51
52
  export declare class Portail {
52
53
  baseVdChUrl?: string;
@@ -1,5 +1,4 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { InjectionToken } from '@angular/core';
3
2
  import { ActivatedRoute } from '@angular/router';
4
3
  import { Observable } from 'rxjs';
5
4
  import { FormError } from '../form-error';
@@ -11,7 +10,6 @@ import { ValidationHandlerService } from '../validation/validation-handler.servi
11
10
  import * as i0 from "@angular/core";
12
11
  export declare const RECAPTCHA_API_URL = "api/recaptcha";
13
12
  export declare const CAPTCHA_ERROR_NAME = "recaptcha";
14
- export declare const CAPTCHA_URL_TOKEN: InjectionToken<string>;
15
13
  export declare class RecaptchaService {
16
14
  private http;
17
15
  private sessionInfo;
@@ -20,13 +18,13 @@ export declare class RecaptchaService {
20
18
  private gesdemService;
21
19
  private gesdemEventService;
22
20
  private applicationInfoService;
23
- private captchaScriptUrl;
24
21
  private readonly errors;
25
22
  private readonly errorsSubject;
26
23
  private readonly shouldDisplay;
27
24
  private readonly publicKey;
25
+ private readonly captchaScriptUrl;
28
26
  private token;
29
- constructor(http: HttpClient, sessionInfo: SessionInfo, route: ActivatedRoute, validationHandlerService: ValidationHandlerService, gesdemService: GesdemHandlerService, gesdemEventService: GesdemEventService, applicationInfoService: ApplicationInfoService, captchaScriptUrl: string);
27
+ constructor(http: HttpClient, sessionInfo: SessionInfo, route: ActivatedRoute, validationHandlerService: ValidationHandlerService, gesdemService: GesdemHandlerService, gesdemEventService: GesdemEventService, applicationInfoService: ApplicationInfoService);
30
28
  onSuccess(token: string): void;
31
29
  addError(message: string): void;
32
30
  clearErrors(): void;
@@ -34,11 +32,12 @@ export declare class RecaptchaService {
34
32
  getShouldDisplay(): Observable<boolean>;
35
33
  getPublicKey(): Observable<string>;
36
34
  getToken(): string;
37
- getCaptchaScriptUrl(): string;
35
+ getCaptchaScriptUrl(): Observable<string>;
38
36
  private initErrorObservable;
39
37
  private initShouldDisplayObservable;
40
38
  private checkBypassProperty;
41
39
  private initPublicKeyObservable;
40
+ private initCaptchaScriptUrlObservable;
42
41
  private getPublicKeyOrNull;
43
42
  static ɵfac: i0.ɵɵFactoryDeclaration<RecaptchaService, never>;
44
43
  static ɵprov: i0.ɵɵInjectableDeclaration<RecaptchaService>;
@@ -13,7 +13,7 @@ export declare class SdkRecaptchaComponent implements OnInit, OnDestroy {
13
13
  hasLoadingError: boolean;
14
14
  errors: Observable<FormError[]>;
15
15
  publicKey: Observable<string>;
16
- readonly recaptchaUrlForUserError: string;
16
+ recaptchaUrlForUserError: Observable<string>;
17
17
  private errorsSubscription;
18
18
  private forceDetectChange;
19
19
  constructor(recaptchaService: RecaptchaService, cdr: ChangeDetectorRef);