idmission-web-sdk 2.1.64 → 2.1.66
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/components/customer_flows/IdValidation.d.ts +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +2 -2
- package/dist/components/id_capture/IdCaptureFitGuide.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureGuides.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -2
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureFlipIdPrompt.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +2 -2
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +2 -2
- package/dist/sdk2.cjs.development.js +44 -35
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +44 -35
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +44 -35
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{video_id/IdVideoCaptureGuidesCommon.d.ts → id_capture/IdCaptureGuidesCommon.d.ts} +0 -0
|
@@ -138,7 +138,7 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
138
138
|
/** Callback function that fires when the camera access is denied. */
|
|
139
139
|
onCameraAccessDenied?: () => void;
|
|
140
140
|
/** Callback function that fires when the continue button is clicked on the loading overlay **/
|
|
141
|
-
|
|
141
|
+
onCustomOverlayDismissed?: () => void;
|
|
142
142
|
/** Boolean or async function indicating whether the user should be prompted to sign the screen before submission. Defaults to `false`. */
|
|
143
143
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
144
144
|
/** Boolean or async function indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to `false`. */
|
|
@@ -41,7 +41,7 @@ export interface SignatureKYCProps extends PropsWithChildren {
|
|
|
41
41
|
/** Callback function that fires when the camera access is denied. */
|
|
42
42
|
onCameraAccessDenied?: () => void;
|
|
43
43
|
/** Callback function that fires when the continue button is clicked on the loading overlay **/
|
|
44
|
-
|
|
44
|
+
onCustomOverlayDismissed?: () => void;
|
|
45
45
|
/** String indicating which loading overlay screen should be used. Supported values: 'default' and 'legacy'. Defaults to 'default'. */
|
|
46
46
|
loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
|
|
47
47
|
/** React component to render if the warmup overlay needs to be completely replaced. Note that 100px padding should be applied to the bottom as the loading progress will be displayed over this content. **/
|
|
@@ -103,7 +103,7 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
103
103
|
/** Callback function that fires when the microphone access is denied. */
|
|
104
104
|
onMicrophoneAccessDenied?: () => void;
|
|
105
105
|
/** Callback function that fires when the continue button is clicked on the loading overlay **/
|
|
106
|
-
|
|
106
|
+
onCustomOverlayDismissed?: () => void;
|
|
107
107
|
/** Object containing any overrides for IDValidation. */
|
|
108
108
|
idCaptureProps?: IdCaptureWizardProps;
|
|
109
109
|
/** Object containing any overrides for FaceLiveness. */
|
|
@@ -33,7 +33,7 @@ export type FaceLivenessWizardProps = {
|
|
|
33
33
|
onExitAfterFailure?: (resp: SubmissionResponse | null, req: LivenessCheckRequest | null) => void;
|
|
34
34
|
onUserCancel?: () => void;
|
|
35
35
|
onModelError?: (error: Error) => void;
|
|
36
|
-
|
|
36
|
+
onCustomOverlayDismissed?: () => void;
|
|
37
37
|
loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
|
|
38
38
|
customOverlayContent?: () => ReactNode;
|
|
39
39
|
timeoutDurationMs?: number;
|
|
@@ -52,4 +52,4 @@ export type FaceLivenessWizardProps = {
|
|
|
52
52
|
verbiage?: FaceLivenessVerbiage;
|
|
53
53
|
debugMode?: boolean;
|
|
54
54
|
};
|
|
55
|
-
export declare const FaceLivenessWizard: ({ onComplete, onSuccess, onTimeout, onExitCapture, onExitAfterFailure, onUserCancel, loadingOverlayMode, customOverlayContent,
|
|
55
|
+
export declare const FaceLivenessWizard: ({ onComplete, onSuccess, onTimeout, onExitCapture, onExitAfterFailure, onUserCancel, loadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, timeoutDurationMs, maxRetries, skipSuccessScreen, renderCameraFeed, releaseCameraAccessOnExit, silentFallback, guidesComponent, disableCapturePreview, requireVerticalFaceCentering, assets, classNames, colors, verbiage, debugMode, }: FaceLivenessWizardProps) => ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IdCaptureGuideAction, IdCaptureGuideOverlayClassNames } from './IdCaptureGuideOverlay';
|
|
3
|
-
import { IdCardGuideStatus } from '
|
|
3
|
+
import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
|
|
4
4
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
5
5
|
export type IdCaptureFitGuideClassNames = IdCaptureGuideOverlayClassNames & {
|
|
6
6
|
canvasWrapper?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import { IdCardGuideStatus } from '
|
|
2
|
+
import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
|
|
3
3
|
import { FlipIdPromptClassNames } from './FlipIdPrompt';
|
|
4
4
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
5
5
|
export type IdCaptureGuideOverlayClassNames = {
|
|
@@ -2,7 +2,7 @@ import { IdCaptureFitGuideClassNames } from './IdCaptureFitGuide';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IdCaptureGuideAction } from './IdCaptureGuideOverlay';
|
|
4
4
|
import { IdCaptureColors, IdCaptureVerbiage } from './IdCapture';
|
|
5
|
-
import { IdCardGuideStatus } from '
|
|
5
|
+
import { IdCardGuideStatus } from './IdCaptureGuidesCommon';
|
|
6
6
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
7
7
|
export type IdCaptureGuidesClassNames = IdCaptureFitGuideClassNames;
|
|
8
8
|
export type IdCaptureGuideType = 'fit' | 'overlay';
|
|
@@ -47,7 +47,7 @@ export type IdCaptureLoadingOverlayVerbiage = {
|
|
|
47
47
|
export type IdCaptureLoadingOverlayProps = {
|
|
48
48
|
onDismissed?: () => void;
|
|
49
49
|
onUserCancel?: () => void;
|
|
50
|
-
|
|
50
|
+
onCustomOverlayDismissed?: () => void;
|
|
51
51
|
instructions?: ReactNode;
|
|
52
52
|
rotateImage?: boolean;
|
|
53
53
|
assets?: IdCaptureLoadingOverlayAssets;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IdCaptureLoadingOverlayProps } from './IdCaptureLoadingOverlay';
|
|
3
|
-
export declare const IdCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel,
|
|
3
|
+
export declare const IdCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel, onCustomOverlayDismissed, instructions, rotateImage, assets, classNames, colors, verbiage: rawVerbiage, customOverlayContent, }: IdCaptureLoadingOverlayProps) => ReactElement;
|
|
@@ -47,7 +47,7 @@ export type IdCaptureWizardProps = {
|
|
|
47
47
|
onExitCapture?: () => void;
|
|
48
48
|
onUserCancel?: () => void;
|
|
49
49
|
onModelError?: (error: Error) => void;
|
|
50
|
-
|
|
50
|
+
onCustomOverlayDismissed?: () => void;
|
|
51
51
|
loadingOverlayMode?: IdCaptureLoadingOverlayMode;
|
|
52
52
|
customOverlayContent?: () => ReactNode;
|
|
53
53
|
modelLoadTimeoutMs?: number;
|
|
@@ -73,4 +73,4 @@ export type IdCaptureWizardProps = {
|
|
|
73
73
|
verbiage?: IdCaptureWizardVerbiage;
|
|
74
74
|
debugMode?: boolean;
|
|
75
75
|
};
|
|
76
|
-
export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, loadingOverlayMode, customOverlayContent,
|
|
76
|
+
export declare const IdCaptureWizard: ({ onSuccess, onExitCapture, onUserCancel, loadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, precapturedDocuments, captureRequirement, separateIdCardCaptureSequence, thresholds, skipSuccessScreen, instructions, releaseCameraAccessOnExit, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, silentFallback, forceFallbackMode, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, guideImages, assets, classNames, colors, verbiage, debugMode, }: IdCaptureWizardProps) => ReactElement;
|
|
@@ -50,7 +50,7 @@ export type SelfieCaptureLoadingOverlayVerbiage = {
|
|
|
50
50
|
export type SelfieCaptureLoadingOverlayProps = {
|
|
51
51
|
onDismissed?: () => void;
|
|
52
52
|
onUserCancel?: () => void;
|
|
53
|
-
|
|
53
|
+
onCustomOverlayDismissed?: () => void;
|
|
54
54
|
assets?: SelfieCaptureLoadingOverlayAssets;
|
|
55
55
|
classNames?: SelfieCaptureLoadingOverlayClassNames;
|
|
56
56
|
colors?: SelfieCaptureLoadingOverlayColors;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { SelfieCaptureLoadingOverlayProps } from './SelfieCaptureLoadingOverlay';
|
|
3
|
-
export declare const SelfieCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel,
|
|
3
|
+
export declare const SelfieCaptureLoadingOverlayDefault: ({ onDismissed, onUserCancel, onCustomOverlayDismissed, assets, classNames, colors, verbiage: rawVerbiage, customOverlayContent, }: SelfieCaptureLoadingOverlayProps) => ReactElement;
|
|
@@ -16,7 +16,7 @@ export type IdVideoCaptureFlipIdPromptProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const IdVideoCaptureFlipIdPrompt: ({ idCaptureGuideImages, classNames, borderWidth, borderColor, borderRadius, imageStyle, }: IdVideoCaptureFlipIdPromptProps) => ReactElement;
|
|
18
18
|
export declare const FlipImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<React.HTMLAttributes<HTMLDivElement> & {
|
|
19
|
-
status?: import("
|
|
19
|
+
status?: import("../id_capture/IdCaptureGuidesCommon").IdCardGuideStatus;
|
|
20
20
|
borderWidth?: number | string;
|
|
21
21
|
borderRadius?: number;
|
|
22
22
|
borderColor?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { IdVideoCaptureFlipIdPromptClassNames } from './IdVideoCaptureFlipIdPrompt';
|
|
3
3
|
import { CustomerSuppliedVerbiage } from '../../lib/locales';
|
|
4
|
-
import { IdCardGuideStatus } from '
|
|
4
|
+
import { IdCardGuideStatus } from '../id_capture/IdCaptureGuidesCommon';
|
|
5
5
|
import { FaceGuideStatus } from '../face_liveness/FaceCaptureGuideOverlay';
|
|
6
6
|
import { IdCaptureGuideImages } from '../guide_images';
|
|
7
7
|
export type Action = 'SHOW_ID_FRONT' | 'FLIP_ID' | 'SHOW_ID_BACK' | 'VERIFY_LIVENESS';
|
|
@@ -41,7 +41,7 @@ export type VideoIdWizardProps = {
|
|
|
41
41
|
onIdCaptureModelError?: (error: Error) => void;
|
|
42
42
|
onCameraAccessDenied?: () => void;
|
|
43
43
|
onMicrophoneAccessDenied?: () => void;
|
|
44
|
-
|
|
44
|
+
onCustomOverlayDismissed?: () => void;
|
|
45
45
|
idCaptureProps?: IdCaptureWizardProps;
|
|
46
46
|
faceLivenessProps?: FaceLivenessWizardProps;
|
|
47
47
|
idCaptureModelsEnabled?: boolean;
|
|
@@ -70,4 +70,4 @@ export type VideoIdWizardProps = {
|
|
|
70
70
|
verbiage?: VideoIdWizardVerbiage;
|
|
71
71
|
debugMode?: boolean;
|
|
72
72
|
};
|
|
73
|
-
export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, customOverlayContent,
|
|
73
|
+
export declare const VideoIdWizard: ({ onComplete, onExitCapture, onExitAfterFailure, onUserCancel, onIdCaptureModelError, onCameraAccessDenied, onMicrophoneAccessDenied, idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, skipIdCapture, skipShowIdCardBack, skipSuccessScreen, idCaptureLoadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode, }: VideoIdWizardProps) => ReactElement;
|
|
@@ -30,7 +30,7 @@ export type VideoSignatureWizardProps = {
|
|
|
30
30
|
onExitCapture?: () => void;
|
|
31
31
|
onUserCancel?: () => void;
|
|
32
32
|
onModelError?: (error: Error) => void;
|
|
33
|
-
|
|
33
|
+
onCustomOverlayDismissed?: () => void;
|
|
34
34
|
loadingOverlayMode?: SelfieCaptureLoadingOverlayMode;
|
|
35
35
|
customOverlayContent?: () => ReactNode;
|
|
36
36
|
modelLoadTimeoutMs?: number;
|
|
@@ -41,4 +41,4 @@ export type VideoSignatureWizardProps = {
|
|
|
41
41
|
verbiage?: VideoSignatureVerbiage;
|
|
42
42
|
debugMode?: boolean;
|
|
43
43
|
};
|
|
44
|
-
export declare const VideoSignatureWizard: ({ onComplete, onVideoCaptured, onRetryClicked, onExitCapture, onUserCancel,
|
|
44
|
+
export declare const VideoSignatureWizard: ({ onComplete, onVideoCaptured, onRetryClicked, onExitCapture, onUserCancel, onCustomOverlayDismissed, loadingOverlayMode, customOverlayContent, skipSuccessScreen, assets, classNames, colors, verbiage, debugMode, }: VideoSignatureWizardProps) => ReactElement;
|
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.1.
|
|
237
|
+
var webSdkVersion = '2.1.66';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -7795,7 +7795,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7795
7795
|
var _b, _c, _d, _e;
|
|
7796
7796
|
var onDismissed = _a.onDismissed,
|
|
7797
7797
|
onUserCancel = _a.onUserCancel,
|
|
7798
|
-
|
|
7798
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
7799
7799
|
instructions = _a.instructions,
|
|
7800
7800
|
_f = _a.rotateImage,
|
|
7801
7801
|
rotateImage = _f === void 0 ? false : _f,
|
|
@@ -7926,7 +7926,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7926
7926
|
onClick: function onClick() {
|
|
7927
7927
|
setDismissed(true);
|
|
7928
7928
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
7929
|
-
|
|
7929
|
+
onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
|
|
7930
7930
|
}
|
|
7931
7931
|
}, verbiage.continueText))))));
|
|
7932
7932
|
};
|
|
@@ -8236,7 +8236,7 @@ var ImagesContainer = styled__default.default(OverlayImageContainer)(templateObj
|
|
|
8236
8236
|
var ImageRow = styled__default.default(OverlayImageRow)(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n //grid-template-columns: 1fr 1fr;\n"], ["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n //grid-template-columns: 1fr 1fr;\n"])));
|
|
8237
8237
|
var ImageCol$1 = styled__default.default.div(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n width: 100%;\n max-height: none !important;\n"], ["\n width: 100%;\n max-height: none !important;\n"])));
|
|
8238
8238
|
var StyledImage = styled__default.default(CapturedDocumentImg)(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
8239
|
-
var DebugPre = styled__default.default.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n text-align: left;\n max-width: min(
|
|
8239
|
+
var DebugPre = styled__default.default.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"], ["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"])));
|
|
8240
8240
|
var templateObject_1$v, templateObject_2$q, templateObject_3$k, templateObject_4$e, templateObject_5$9, templateObject_6$7;
|
|
8241
8241
|
|
|
8242
8242
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
@@ -8397,19 +8397,28 @@ function IdCardBorderSvg(_a) {
|
|
|
8397
8397
|
var _f = React.useState(0),
|
|
8398
8398
|
totalLength = _f[0],
|
|
8399
8399
|
setTotalLength = _f[1];
|
|
8400
|
-
var
|
|
8401
|
-
resolvedProgress = _g[0],
|
|
8402
|
-
setResolvedProgress = _g[1];
|
|
8400
|
+
var resolvedProgress = progress * totalLength;
|
|
8403
8401
|
React.useLayoutEffect(function () {
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8402
|
+
if (totalLength > 0) return;
|
|
8403
|
+
var interval;
|
|
8404
|
+
var measuredLength = 0;
|
|
8405
|
+
function measureTotalLength() {
|
|
8406
|
+
var _a, _b;
|
|
8407
|
+
try {
|
|
8408
|
+
measuredLength = (_b = (_a = rectRef.current) === null || _a === void 0 ? void 0 : _a.getTotalLength()) !== null && _b !== void 0 ? _b : 0;
|
|
8409
|
+
if (measuredLength === 0) return;
|
|
8410
|
+
setTotalLength(measuredLength);
|
|
8411
|
+
if (interval) clearInterval(interval);
|
|
8412
|
+
} catch (e) {
|
|
8413
|
+
warn('failed to measure SVG length', e);
|
|
8414
|
+
}
|
|
8411
8415
|
}
|
|
8412
|
-
|
|
8416
|
+
measureTotalLength();
|
|
8417
|
+
if (measuredLength === 0) interval = setInterval(measureTotalLength, 250);
|
|
8418
|
+
return function () {
|
|
8419
|
+
if (interval) clearInterval(interval);
|
|
8420
|
+
};
|
|
8421
|
+
}, [totalLength]);
|
|
8413
8422
|
return /*#__PURE__*/React__namespace.default.createElement(SvgOverlay, _assign({
|
|
8414
8423
|
height: "100%",
|
|
8415
8424
|
fill: "none",
|
|
@@ -10110,7 +10119,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
10110
10119
|
_h = _a.loadingOverlayMode,
|
|
10111
10120
|
loadingOverlayMode = _h === void 0 ? 'default' : _h,
|
|
10112
10121
|
customOverlayContent = _a.customOverlayContent,
|
|
10113
|
-
|
|
10122
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
10114
10123
|
precapturedDocuments = _a.precapturedDocuments,
|
|
10115
10124
|
_j = _a.captureRequirement,
|
|
10116
10125
|
captureRequirement = _j === void 0 ? 'idCardOrPassport' : _j,
|
|
@@ -10420,7 +10429,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
10420
10429
|
key: "loading".concat(attempt),
|
|
10421
10430
|
mode: loadingOverlayMode,
|
|
10422
10431
|
customOverlayContent: customOverlayContent,
|
|
10423
|
-
|
|
10432
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
10424
10433
|
instructions: instructions,
|
|
10425
10434
|
assets: assets.loadingOverlay,
|
|
10426
10435
|
classNames: classNames.loadingOverlay,
|
|
@@ -12174,7 +12183,7 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
|
|
|
12174
12183
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
12175
12184
|
var onDismissed = _a.onDismissed,
|
|
12176
12185
|
onUserCancel = _a.onUserCancel,
|
|
12177
|
-
|
|
12186
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
12178
12187
|
_b = _a.assets,
|
|
12179
12188
|
assets = _b === void 0 ? {} : _b,
|
|
12180
12189
|
_c = _a.classNames,
|
|
@@ -12281,7 +12290,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12281
12290
|
onClick: function onClick() {
|
|
12282
12291
|
setDismissed(true);
|
|
12283
12292
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
12284
|
-
|
|
12293
|
+
onCustomOverlayDismissed === null || onCustomOverlayDismissed === void 0 ? void 0 : onCustomOverlayDismissed();
|
|
12285
12294
|
}
|
|
12286
12295
|
}, verbiage.continueText))))));
|
|
12287
12296
|
};
|
|
@@ -12360,7 +12369,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12360
12369
|
_e = _a.loadingOverlayMode,
|
|
12361
12370
|
loadingOverlayMode = _e === void 0 ? 'default' : _e,
|
|
12362
12371
|
customOverlayContent = _a.customOverlayContent,
|
|
12363
|
-
|
|
12372
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
12364
12373
|
_f = _a.timeoutDurationMs,
|
|
12365
12374
|
timeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
12366
12375
|
_g = _a.maxRetries,
|
|
@@ -12559,7 +12568,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12559
12568
|
key: attempt,
|
|
12560
12569
|
mode: loadingOverlayMode,
|
|
12561
12570
|
customOverlayContent: customOverlayContent,
|
|
12562
|
-
|
|
12571
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
12563
12572
|
assets: assets.loadingOverlay,
|
|
12564
12573
|
classNames: classNames.loadingOverlay,
|
|
12565
12574
|
colors: colors.loadingOverlay,
|
|
@@ -13472,7 +13481,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13472
13481
|
onRetryClicked = _a.onRetryClicked,
|
|
13473
13482
|
onExitCapture = _a.onExitCapture,
|
|
13474
13483
|
onUserCancel = _a.onUserCancel,
|
|
13475
|
-
|
|
13484
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
13476
13485
|
_c = _a.loadingOverlayMode,
|
|
13477
13486
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
13478
13487
|
customOverlayContent = _a.customOverlayContent,
|
|
@@ -13651,7 +13660,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13651
13660
|
onDismissed: onLoadingOverlayDismissed,
|
|
13652
13661
|
onUserCancel: onUserCancel,
|
|
13653
13662
|
customOverlayContent: customOverlayContent,
|
|
13654
|
-
|
|
13663
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed
|
|
13655
13664
|
}));
|
|
13656
13665
|
};
|
|
13657
13666
|
|
|
@@ -14466,7 +14475,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14466
14475
|
_t = _a.idCaptureLoadingOverlayMode,
|
|
14467
14476
|
idCaptureLoadingOverlayMode = _t === void 0 ? 'default' : _t,
|
|
14468
14477
|
customOverlayContent = _a.customOverlayContent,
|
|
14469
|
-
|
|
14478
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
14470
14479
|
_u = _a.idCaptureGuideType,
|
|
14471
14480
|
idCaptureGuideType = _u === void 0 ? 'fit' : _u,
|
|
14472
14481
|
_v = _a.idCaptureGuideImages,
|
|
@@ -14622,7 +14631,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14622
14631
|
key: "id-capture-".concat(attempt),
|
|
14623
14632
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
14624
14633
|
customOverlayContent: customOverlayContent,
|
|
14625
|
-
|
|
14634
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
14626
14635
|
silentFallback: silentFallback,
|
|
14627
14636
|
guideImages: idCaptureGuideImages
|
|
14628
14637
|
}, idCaptureProps, {
|
|
@@ -14645,7 +14654,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14645
14654
|
key: "face-liveness-".concat(attempt),
|
|
14646
14655
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
14647
14656
|
customOverlayContent: customOverlayContent,
|
|
14648
|
-
|
|
14657
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
14649
14658
|
silentFallback: silentFallback
|
|
14650
14659
|
}, faceLivenessProps, {
|
|
14651
14660
|
onComplete: onFaceCaptureSuccess,
|
|
@@ -15172,7 +15181,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15172
15181
|
_c = _a.loadingOverlayMode,
|
|
15173
15182
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
15174
15183
|
customOverlayContent = _a.customOverlayContent,
|
|
15175
|
-
|
|
15184
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
15176
15185
|
_d = _a.idCaptureRequirement,
|
|
15177
15186
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
15178
15187
|
_e = _a.separateIdCardCaptureSequence,
|
|
@@ -15249,7 +15258,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15249
15258
|
skipSuccessScreen: skipSuccessScreen,
|
|
15250
15259
|
loadingOverlayMode: loadingOverlayMode,
|
|
15251
15260
|
customOverlayContent: customOverlayContent,
|
|
15252
|
-
|
|
15261
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
15253
15262
|
forceFallbackMode: forceFallbackMode,
|
|
15254
15263
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
15255
15264
|
instructions: instructions,
|
|
@@ -15266,7 +15275,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15266
15275
|
verbiage: verbiage,
|
|
15267
15276
|
debugMode: debugMode
|
|
15268
15277
|
};
|
|
15269
|
-
}, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent,
|
|
15278
|
+
}, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
|
|
15270
15279
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
15271
15280
|
return {
|
|
15272
15281
|
documents: captureAdditionalDocuments,
|
|
@@ -17058,7 +17067,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
17058
17067
|
onUserCancel = _a.onUserCancel,
|
|
17059
17068
|
onModelError = _a.onModelError,
|
|
17060
17069
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
17061
|
-
|
|
17070
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
17062
17071
|
_c = _a.loadingOverlayMode,
|
|
17063
17072
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
17064
17073
|
customOverlayContent = _a.customOverlayContent,
|
|
@@ -17107,7 +17116,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
17107
17116
|
videoSignatureCaptureProps: React.useMemo(function () {
|
|
17108
17117
|
return {
|
|
17109
17118
|
customOverlayContent: customOverlayContent,
|
|
17110
|
-
|
|
17119
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
17111
17120
|
loadingOverlayMode: loadingOverlayMode,
|
|
17112
17121
|
skipSuccessScreen: skipSuccessScreen,
|
|
17113
17122
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
@@ -17118,7 +17127,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
17118
17127
|
onModelError: onModelError,
|
|
17119
17128
|
onUserCancel: onUserCancel
|
|
17120
17129
|
};
|
|
17121
|
-
}, [customOverlayContent,
|
|
17130
|
+
}, [customOverlayContent, onCustomOverlayDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
|
|
17122
17131
|
}))));
|
|
17123
17132
|
};
|
|
17124
17133
|
|
|
@@ -17183,7 +17192,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
17183
17192
|
_k = _a.idCaptureLoadingOverlayMode,
|
|
17184
17193
|
idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
|
|
17185
17194
|
customOverlayContent = _a.customOverlayContent,
|
|
17186
|
-
|
|
17195
|
+
onCustomOverlayDismissed = _a.onCustomOverlayDismissed,
|
|
17187
17196
|
_l = _a.idCaptureGuideType,
|
|
17188
17197
|
idCaptureGuideType = _l === void 0 ? 'fit' : _l,
|
|
17189
17198
|
_m = _a.idCaptureGuideImages,
|
|
@@ -17244,7 +17253,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
17244
17253
|
skipShowIdCardBack: skipShowIdCardBack,
|
|
17245
17254
|
idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
17246
17255
|
customOverlayContent: customOverlayContent,
|
|
17247
|
-
|
|
17256
|
+
onCustomOverlayDismissed: onCustomOverlayDismissed,
|
|
17248
17257
|
idCaptureGuideType: idCaptureGuideType,
|
|
17249
17258
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
17250
17259
|
idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
@@ -17260,7 +17269,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
17260
17269
|
verbiage: verbiage,
|
|
17261
17270
|
debugMode: debugMode
|
|
17262
17271
|
};
|
|
17263
|
-
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent,
|
|
17272
|
+
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onCustomOverlayDismissed, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
17264
17273
|
var additionalDocumentCaptureProps = React.useMemo(function () {
|
|
17265
17274
|
return {
|
|
17266
17275
|
documents: captureAdditionalDocuments,
|