@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/CHANGELOG.md +2 -0
- package/UPGRADING_V17.md +12 -8
- package/UPGRADING_V18.md +21 -0
- package/dsivd-prestations-ng-17.9.0-beta.1.tgz +0 -0
- package/esm2022/sdk-appinfo/application-info.mjs +1 -1
- package/esm2022/sdk-recaptcha/grecaptcha/grecaptcha.component.mjs +11 -8
- package/esm2022/sdk-recaptcha/recaptcha.service.mjs +9 -13
- package/esm2022/sdk-recaptcha/sdk-recaptcha.component.mjs +10 -6
- package/fesm2022/dsivd-prestations-ng.mjs +27 -24
- package/fesm2022/dsivd-prestations-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/sdk-appinfo/application-info.d.ts +1 -0
- package/sdk-recaptcha/recaptcha.service.d.ts +4 -5
- package/sdk-recaptcha/sdk-recaptcha.component.d.ts +1 -1
- package/dsivd-prestations-ng-17.8.2-beta.2.tgz +0 -0
package/package.json
CHANGED
|
@@ -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
|
|
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
|
-
|
|
16
|
+
recaptchaUrlForUserError: Observable<string>;
|
|
17
17
|
private errorsSubscription;
|
|
18
18
|
private forceDetectChange;
|
|
19
19
|
constructor(recaptchaService: RecaptchaService, cdr: ChangeDetectorRef);
|
|
Binary file
|