@neofaceid/web-sdk 1.35.0 → 1.36.0
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/dist/index.d.ts +19 -3
- package/dist/neoface-id-sdk.es.js +368 -204
- package/dist/neoface-id-sdk.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export declare class BiometricCaptureModal {
|
|
|
109
109
|
private options;
|
|
110
110
|
private countdownInterval;
|
|
111
111
|
private isCapturing;
|
|
112
|
+
private flashController;
|
|
112
113
|
constructor(options: BiometricCaptureOptions);
|
|
113
114
|
/**
|
|
114
115
|
* Abre o modal de captura biométrica
|
|
@@ -170,6 +171,8 @@ declare interface BiometricCaptureOptions {
|
|
|
170
171
|
countdown?: number;
|
|
171
172
|
title?: string;
|
|
172
173
|
subtitle?: string;
|
|
174
|
+
/** NEO-425 · US14.11.a — screen flash assistivo em ambiente escuro. Default true. */
|
|
175
|
+
autoLighting?: boolean;
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
/**
|
|
@@ -234,7 +237,7 @@ declare interface BiometricRegistrationCallbacks {
|
|
|
234
237
|
onError(code: string, message: string): void;
|
|
235
238
|
}
|
|
236
239
|
|
|
237
|
-
export declare function BiometricRegistrationModal({ personData, applicationToken, onClose, onSuccess, onPhotosCaptured, onError, onCannotGesture, }: BiometricRegistrationModalProps): JSX_2.Element;
|
|
240
|
+
export declare function BiometricRegistrationModal({ personData, applicationToken, onClose, onSuccess, onPhotosCaptured, onError, onCannotGesture, autoLighting, }: BiometricRegistrationModalProps): JSX_2.Element;
|
|
238
241
|
|
|
239
242
|
declare interface BiometricRegistrationModalProps {
|
|
240
243
|
personData?: {
|
|
@@ -257,6 +260,11 @@ declare interface BiometricRegistrationModalProps {
|
|
|
257
260
|
* o clique fecha o modal via `onClose`.
|
|
258
261
|
*/
|
|
259
262
|
onCannotGesture?: () => void;
|
|
263
|
+
/**
|
|
264
|
+
* NEO-425 · US14.11.a — "screen flash" assistivo: se o ambiente está escuro,
|
|
265
|
+
* o SDK inverte o fundo do modal para branco alto brilho. Default `true`.
|
|
266
|
+
*/
|
|
267
|
+
autoLighting?: boolean;
|
|
260
268
|
}
|
|
261
269
|
|
|
262
270
|
declare interface BiometricRegistrationResult {
|
|
@@ -460,6 +468,7 @@ export declare class DocumentCaptureModal {
|
|
|
460
468
|
private options;
|
|
461
469
|
private selectedDocument;
|
|
462
470
|
private currentStep;
|
|
471
|
+
private flashController;
|
|
463
472
|
private frontBlob;
|
|
464
473
|
private backBlob;
|
|
465
474
|
constructor(options?: DocumentCaptureOptions);
|
|
@@ -478,6 +487,7 @@ export declare class DocumentCaptureModal {
|
|
|
478
487
|
private bindCloseEvent;
|
|
479
488
|
private startCamera;
|
|
480
489
|
private stopCamera;
|
|
490
|
+
private startScreenFlash;
|
|
481
491
|
private handleCapture;
|
|
482
492
|
private handleBack;
|
|
483
493
|
private handleRetake;
|
|
@@ -496,6 +506,8 @@ export declare interface DocumentCaptureOptions {
|
|
|
496
506
|
/** Nome do integrador exibido no topo do modal de consentimento (US14.2). */
|
|
497
507
|
appName?: string;
|
|
498
508
|
/* Excluded from this release type: skipConsent */
|
|
509
|
+
/** NEO-425 · US14.11.a — screen flash assistivo em ambiente escuro. Default true. */
|
|
510
|
+
autoLighting?: boolean;
|
|
499
511
|
}
|
|
500
512
|
|
|
501
513
|
export declare interface DocumentCaptureResult {
|
|
@@ -572,7 +584,7 @@ export declare enum ErrorType {
|
|
|
572
584
|
CONSENT_DENIED = "ConsentDeniedError"
|
|
573
585
|
}
|
|
574
586
|
|
|
575
|
-
export declare function FaceCaptureModal({ accessToken, onClose, onSuccess, onCannotGesture, }: FaceCaptureModalProps): JSX_2.Element;
|
|
587
|
+
export declare function FaceCaptureModal({ accessToken, onClose, onSuccess, onCannotGesture, autoLighting, }: FaceCaptureModalProps): JSX_2.Element;
|
|
576
588
|
|
|
577
589
|
declare interface FaceCaptureModalProps {
|
|
578
590
|
accessToken: string;
|
|
@@ -583,6 +595,10 @@ declare interface FaceCaptureModalProps {
|
|
|
583
595
|
* visível desde o PRIMEIRO desafio. Ausente = clique fecha o modal.
|
|
584
596
|
*/
|
|
585
597
|
onCannotGesture?: () => void;
|
|
598
|
+
/**
|
|
599
|
+
* NEO-425 · US14.11.a — "screen flash" assistivo em ambiente escuro. Default true.
|
|
600
|
+
*/
|
|
601
|
+
autoLighting?: boolean;
|
|
586
602
|
}
|
|
587
603
|
|
|
588
604
|
/**
|
|
@@ -1634,7 +1650,7 @@ export declare const validateToken: (applicationToken: string) => Promise<boolea
|
|
|
1634
1650
|
* MINOR: Incrementado quando adicionamos funcionalidades mantendo compatibilidade
|
|
1635
1651
|
* PATCH: Incrementado quando corrigimos bugs mantendo compatibilidade
|
|
1636
1652
|
*/
|
|
1637
|
-
export declare const VERSION = "1.
|
|
1653
|
+
export declare const VERSION = "1.36.0";
|
|
1638
1654
|
|
|
1639
1655
|
/**
|
|
1640
1656
|
* Executa `fn(sessionId)`. Se o servidor devolver 410 (sessão consumida/expirada),
|