idmission-web-sdk 2.1.47 → 2.1.49
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 +4 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts +5 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +5 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +4 -2
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +2 -0
- package/dist/components/id_capture/IdCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +3 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +3 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +4 -2
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +4 -2
- package/dist/sdk2.cjs.development.js +51 -25
- 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 +51 -25
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +51 -25
- 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/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.1.
|
|
207
|
+
var webSdkVersion = '2.1.49';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -7679,6 +7679,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7679
7679
|
var _b, _c, _d, _e;
|
|
7680
7680
|
var onDismissed = _a.onDismissed,
|
|
7681
7681
|
onUserCancel = _a.onUserCancel,
|
|
7682
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
7682
7683
|
instructions = _a.instructions,
|
|
7683
7684
|
_f = _a.rotateImage,
|
|
7684
7685
|
rotateImage = _f === void 0 ? false : _f,
|
|
@@ -7689,7 +7690,8 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7689
7690
|
_j = _a.colors,
|
|
7690
7691
|
colors = _j === void 0 ? {} : _j,
|
|
7691
7692
|
_k = _a.verbiage,
|
|
7692
|
-
rawVerbiage = _k === void 0 ? {} : _k
|
|
7693
|
+
rawVerbiage = _k === void 0 ? {} : _k,
|
|
7694
|
+
customOverlayContent = _a.customOverlayContent;
|
|
7693
7695
|
var _l = useContext(IdCaptureModelsContext),
|
|
7694
7696
|
modelsReady = _l.ready,
|
|
7695
7697
|
modelDownloadProgress = _l.modelDownloadProgress;
|
|
@@ -7746,12 +7748,12 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7746
7748
|
className: classNames.container
|
|
7747
7749
|
}, /*#__PURE__*/React__default.createElement(OverlayInner$1, {
|
|
7748
7750
|
className: classNames.inner
|
|
7749
|
-
},
|
|
7750
|
-
className: classNames.heading
|
|
7751
|
-
}, verbiage.headingText)), onUserCancel && ( /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
|
|
7751
|
+
}, onUserCancel && ( /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
|
|
7752
7752
|
onClick: onUserCancel,
|
|
7753
7753
|
className: classNames.cancelBtn
|
|
7754
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
7754
|
+
})), customOverlayContent ? customOverlayContent() : ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(OverlayHeader$1, null, /*#__PURE__*/React__default.createElement(StyledGuidanceMessage$2, {
|
|
7755
|
+
className: classNames.heading
|
|
7756
|
+
}, verbiage.headingText)), /*#__PURE__*/React__default.createElement(StyledOverlayImageContainer$2, {
|
|
7755
7757
|
className: classNames.imageContainer,
|
|
7756
7758
|
style: {
|
|
7757
7759
|
pointerEvents: 'none'
|
|
@@ -7764,7 +7766,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7764
7766
|
style: imageStyle
|
|
7765
7767
|
})) : ( /*#__PURE__*/React__default.createElement(IdCaptureLoadingGraphic, {
|
|
7766
7768
|
className: classNames.image
|
|
7767
|
-
}))), instructions, /*#__PURE__*/React__default.createElement(ContinuityCameraCheckboxContainer$1, {
|
|
7769
|
+
}))))), instructions, /*#__PURE__*/React__default.createElement(ContinuityCameraCheckboxContainer$1, {
|
|
7768
7770
|
className: classNames.continuityCameraCheckboxContainer
|
|
7769
7771
|
}, iphoneContinuityCameraAvailable && ( /*#__PURE__*/React__default.createElement(ContinuityCameraCheckboxInner, {
|
|
7770
7772
|
className: classNames.continuityCameraCheckboxInner
|
|
@@ -7808,6 +7810,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7808
7810
|
onClick: function onClick() {
|
|
7809
7811
|
setDismissed(true);
|
|
7810
7812
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
7813
|
+
onCustomOverlyDismissed === null || onCustomOverlyDismissed === void 0 ? void 0 : onCustomOverlyDismissed();
|
|
7811
7814
|
}
|
|
7812
7815
|
}, verbiage.continueText))))));
|
|
7813
7816
|
};
|
|
@@ -7831,7 +7834,7 @@ var ContinuityCameraCheckboxInner = styled(GuidanceMessage)(templateObject_6$9 |
|
|
|
7831
7834
|
var ContinuityCameraCheckbox$1 = styled.input(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n margin-right: 8px;\n"], ["\n margin-right: 8px;\n"])));
|
|
7832
7835
|
var StyledButtonsRow$a = styled(ButtonsRow$1)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: 15px 25px;\n height: 100px;\n color: ", ";\n ", "\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100dvw;\n box-sizing: border-box;\n"], ["\n display: flex;\n flex-direction: row;\n padding: 15px 25px;\n height: 100px;\n color: ", ";\n ", "\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100dvw;\n box-sizing: border-box;\n"])), function (props) {
|
|
7833
7836
|
var _a, _b, _c, _d;
|
|
7834
|
-
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.
|
|
7837
|
+
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarTextColor) !== null && _d !== void 0 ? _d : 'white';
|
|
7835
7838
|
}, function (props) {
|
|
7836
7839
|
var _a, _b, _c, _d, _e, _f;
|
|
7837
7840
|
return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
@@ -9903,6 +9906,8 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
9903
9906
|
onUserCancel = _a.onUserCancel,
|
|
9904
9907
|
_0 = _a.loadingOverlayMode,
|
|
9905
9908
|
loadingOverlayMode = _0 === void 0 ? 'default' : _0,
|
|
9909
|
+
customOverlayContent = _a.customOverlayContent,
|
|
9910
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
9906
9911
|
precapturedDocuments = _a.precapturedDocuments,
|
|
9907
9912
|
_1 = _a.captureRequirement,
|
|
9908
9913
|
captureRequirement = _1 === void 0 ? 'idCardOrPassport' : _1,
|
|
@@ -10232,6 +10237,8 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
|
|
|
10232
10237
|
}), !overlayDismissed && ( /*#__PURE__*/React__default.createElement(IdCaptureLoadingOverlay, {
|
|
10233
10238
|
key: "loading".concat(attempt),
|
|
10234
10239
|
mode: loadingOverlayMode,
|
|
10240
|
+
customOverlayContent: customOverlayContent,
|
|
10241
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
10235
10242
|
instructions: instructions,
|
|
10236
10243
|
assets: assets.loadingOverlay,
|
|
10237
10244
|
classNames: classNames.loadingOverlay,
|
|
@@ -11979,6 +11986,7 @@ var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png"
|
|
|
11979
11986
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
11980
11987
|
var onDismissed = _a.onDismissed,
|
|
11981
11988
|
onUserCancel = _a.onUserCancel,
|
|
11989
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
11982
11990
|
_b = _a.assets,
|
|
11983
11991
|
assets = _b === void 0 ? {} : _b,
|
|
11984
11992
|
_c = _a.classNames,
|
|
@@ -11986,7 +11994,8 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
11986
11994
|
_d = _a.colors,
|
|
11987
11995
|
colors = _d === void 0 ? {} : _d,
|
|
11988
11996
|
_e = _a.verbiage,
|
|
11989
|
-
rawVerbiage = _e === void 0 ? {} : _e
|
|
11997
|
+
rawVerbiage = _e === void 0 ? {} : _e,
|
|
11998
|
+
customOverlayContent = _a.customOverlayContent;
|
|
11990
11999
|
var _f = useContext(CameraStateContext),
|
|
11991
12000
|
cameraReady = _f.cameraReady,
|
|
11992
12001
|
cameraAccessDenied = _f.cameraAccessDenied,
|
|
@@ -12043,7 +12052,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12043
12052
|
}, onUserCancel && ( /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
|
|
12044
12053
|
onClick: onUserCancel,
|
|
12045
12054
|
className: classNames.cancelBtn
|
|
12046
|
-
})), /*#__PURE__*/React__default.createElement(OverlayHeader, {
|
|
12055
|
+
})), customOverlayContent ? customOverlayContent() : ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(OverlayHeader, {
|
|
12047
12056
|
className: classNames.headingContainer
|
|
12048
12057
|
}, /*#__PURE__*/React__default.createElement(StyledGuidanceMessage, {
|
|
12049
12058
|
className: classNames.heading
|
|
@@ -12055,7 +12064,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12055
12064
|
src: assets.instructionImageUrl
|
|
12056
12065
|
})) : ( /*#__PURE__*/React__default.createElement(SelfieCaptureLoadingGraphic, {
|
|
12057
12066
|
className: classNames.image
|
|
12058
|
-
}))), /*#__PURE__*/React__default.createElement(StyledButtonsRow$5, {
|
|
12067
|
+
}))))), /*#__PURE__*/React__default.createElement(StyledButtonsRow$5, {
|
|
12059
12068
|
className: classNames.buttonsRow
|
|
12060
12069
|
}, /*#__PURE__*/React__default.createElement(ProgressContainer, {
|
|
12061
12070
|
className: classNames.progressContainer
|
|
@@ -12084,6 +12093,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12084
12093
|
onClick: function onClick() {
|
|
12085
12094
|
setDismissed(true);
|
|
12086
12095
|
onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
|
|
12096
|
+
onCustomOverlyDismissed === null || onCustomOverlyDismissed === void 0 ? void 0 : onCustomOverlyDismissed();
|
|
12087
12097
|
}
|
|
12088
12098
|
}, verbiage.continueText))))));
|
|
12089
12099
|
};
|
|
@@ -12161,6 +12171,8 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12161
12171
|
onUserCancel = _a.onUserCancel,
|
|
12162
12172
|
_e = _a.loadingOverlayMode,
|
|
12163
12173
|
loadingOverlayMode = _e === void 0 ? 'default' : _e,
|
|
12174
|
+
customOverlayContent = _a.customOverlayContent,
|
|
12175
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
12164
12176
|
_f = _a.timeoutDurationMs,
|
|
12165
12177
|
timeoutDurationMs = _f === void 0 ? 15000 : _f,
|
|
12166
12178
|
_g = _a.maxRetries,
|
|
@@ -12358,6 +12370,8 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
12358
12370
|
}()), /*#__PURE__*/React__default.createElement(SelfieCaptureLoadingOverlay, {
|
|
12359
12371
|
key: attempt,
|
|
12360
12372
|
mode: loadingOverlayMode,
|
|
12373
|
+
customOverlayContent: customOverlayContent,
|
|
12374
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
12361
12375
|
assets: assets.loadingOverlay,
|
|
12362
12376
|
classNames: classNames.loadingOverlay,
|
|
12363
12377
|
colors: colors.loadingOverlay,
|
|
@@ -13305,8 +13319,10 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13305
13319
|
onRetryClicked = _a.onRetryClicked,
|
|
13306
13320
|
onExitCapture = _a.onExitCapture,
|
|
13307
13321
|
onUserCancel = _a.onUserCancel,
|
|
13322
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
13308
13323
|
_c = _a.loadingOverlayMode,
|
|
13309
13324
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
13325
|
+
customOverlayContent = _a.customOverlayContent,
|
|
13310
13326
|
_d = _a.skipSuccessScreen,
|
|
13311
13327
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
13312
13328
|
_e = _a.assets,
|
|
@@ -13478,7 +13494,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13478
13494
|
colors: colors.loadingOverlay,
|
|
13479
13495
|
verbiage: verbiage.loadingOverlay,
|
|
13480
13496
|
onDismissed: onLoadingOverlayDismissed,
|
|
13481
|
-
onUserCancel: onUserCancel
|
|
13497
|
+
onUserCancel: onUserCancel,
|
|
13498
|
+
customOverlayContent: customOverlayContent,
|
|
13499
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed
|
|
13482
13500
|
}));
|
|
13483
13501
|
};
|
|
13484
13502
|
|
|
@@ -13505,7 +13523,6 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13505
13523
|
_5 = _a.verbiage,
|
|
13506
13524
|
rawVerbiage = _5 === void 0 ? {} : _5;
|
|
13507
13525
|
var cameraRef = useContext(CameraStateContext).cameraRef;
|
|
13508
|
-
// const imageRef = useRef<HTMLImageElement | null>(null)
|
|
13509
13526
|
assets.frontImageUrl || (assets.frontImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-Borderless.svg"));
|
|
13510
13527
|
assets.backImageUrl || (assets.backImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Landscape-Borderless.svg"));
|
|
13511
13528
|
var verbiage = useTranslations(rawVerbiage, {
|
|
@@ -13529,15 +13546,6 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13529
13546
|
var _9 = useState(undefined),
|
|
13530
13547
|
aspectRatio = _9[0],
|
|
13531
13548
|
setAspectRatio = _9[1];
|
|
13532
|
-
// const imageRef = (img: HTMLImageElement) => {
|
|
13533
|
-
// if (!img) return
|
|
13534
|
-
// if (typeof aspectRatio === 'number' && aspectRatio > 0) return
|
|
13535
|
-
// setAspectRatio(
|
|
13536
|
-
// (img.naturalHeight ?? 0) > 0
|
|
13537
|
-
// ? img.naturalWidth / img.naturalHeight
|
|
13538
|
-
// : undefined,
|
|
13539
|
-
// )
|
|
13540
|
-
// }
|
|
13541
13549
|
function onImageLoaded(e) {
|
|
13542
13550
|
var _a;
|
|
13543
13551
|
var img = e.currentTarget;
|
|
@@ -14290,6 +14298,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14290
14298
|
skipSuccessScreen = _t === void 0 ? false : _t,
|
|
14291
14299
|
_u = _a.idCaptureLoadingOverlayMode,
|
|
14292
14300
|
idCaptureLoadingOverlayMode = _u === void 0 ? 'default' : _u,
|
|
14301
|
+
customOverlayContent = _a.customOverlayContent,
|
|
14302
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
14293
14303
|
_v = _a.idCaptureGuideType,
|
|
14294
14304
|
idCaptureGuideType = _v === void 0 ? 'fit' : _v,
|
|
14295
14305
|
_w = _a.idCapturePortraitGuidesOnMobile,
|
|
@@ -14442,6 +14452,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14442
14452
|
return /*#__PURE__*/React__default.createElement(IdCaptureStateProvider, null, /*#__PURE__*/React__default.createElement(GuideOrientationProvider, null, /*#__PURE__*/React__default.createElement(IdCaptureWizard, _assign({
|
|
14443
14453
|
key: "id-capture-".concat(attempt),
|
|
14444
14454
|
loadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
14455
|
+
customOverlayContent: customOverlayContent,
|
|
14456
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
14445
14457
|
silentFallback: silentFallback
|
|
14446
14458
|
}, idCaptureProps, {
|
|
14447
14459
|
assets: assets.idCapture,
|
|
@@ -14462,6 +14474,8 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
14462
14474
|
return /*#__PURE__*/React__default.createElement(FaceLivenessWizard, _assign({
|
|
14463
14475
|
key: "face-liveness-".concat(attempt),
|
|
14464
14476
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
14477
|
+
customOverlayContent: customOverlayContent,
|
|
14478
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
14465
14479
|
silentFallback: silentFallback
|
|
14466
14480
|
}, faceLivenessProps, {
|
|
14467
14481
|
onComplete: onFaceCaptureSuccess,
|
|
@@ -14987,6 +15001,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14987
15001
|
precapturedDocuments = _a.precapturedDocuments,
|
|
14988
15002
|
_c = _a.loadingOverlayMode,
|
|
14989
15003
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
15004
|
+
customOverlayContent = _a.customOverlayContent,
|
|
15005
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
14990
15006
|
_d = _a.idCaptureRequirement,
|
|
14991
15007
|
idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
|
|
14992
15008
|
_e = _a.separateIdCardCaptureSequence,
|
|
@@ -15060,6 +15076,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15060
15076
|
thresholds: idCaptureThresholds,
|
|
15061
15077
|
skipSuccessScreen: skipSuccessScreen,
|
|
15062
15078
|
loadingOverlayMode: loadingOverlayMode,
|
|
15079
|
+
customOverlayContent: customOverlayContent,
|
|
15080
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
15063
15081
|
forceFallbackMode: forceFallbackMode,
|
|
15064
15082
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
15065
15083
|
instructions: instructions,
|
|
@@ -15075,7 +15093,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
15075
15093
|
verbiage: verbiage,
|
|
15076
15094
|
debugMode: debugMode
|
|
15077
15095
|
};
|
|
15078
|
-
}, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
|
|
15096
|
+
}, [onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, instructions, guideType, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
|
|
15079
15097
|
var additionalDocumentCaptureProps = useMemo(function () {
|
|
15080
15098
|
return {
|
|
15081
15099
|
documents: captureAdditionalDocuments,
|
|
@@ -16861,8 +16879,10 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16861
16879
|
onUserCancel = _a.onUserCancel,
|
|
16862
16880
|
onModelError = _a.onModelError,
|
|
16863
16881
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
16882
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
16864
16883
|
_c = _a.loadingOverlayMode,
|
|
16865
16884
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
16885
|
+
customOverlayContent = _a.customOverlayContent,
|
|
16866
16886
|
_d = _a.skipSuccessScreen,
|
|
16867
16887
|
skipSuccessScreen = _d === void 0 ? false : _d,
|
|
16868
16888
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
@@ -16907,6 +16927,8 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16907
16927
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
16908
16928
|
videoSignatureCaptureProps: useMemo(function () {
|
|
16909
16929
|
return {
|
|
16930
|
+
customOverlayContent: customOverlayContent,
|
|
16931
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
16910
16932
|
loadingOverlayMode: loadingOverlayMode,
|
|
16911
16933
|
skipSuccessScreen: skipSuccessScreen,
|
|
16912
16934
|
modelLoadTimeoutMs: modelLoadTimeoutMs,
|
|
@@ -16917,7 +16939,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
16917
16939
|
onModelError: onModelError,
|
|
16918
16940
|
onUserCancel: onUserCancel
|
|
16919
16941
|
};
|
|
16920
|
-
}, [classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
|
|
16942
|
+
}, [customOverlayContent, onCustomOverlyDismissed, classNames, colors, debugMode, loadingOverlayMode, modelLoadTimeoutMs, onModelError, onUserCancel, skipSuccessScreen, verbiage])
|
|
16921
16943
|
}))));
|
|
16922
16944
|
};
|
|
16923
16945
|
|
|
@@ -16981,6 +17003,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16981
17003
|
skipShowIdCardBack = _j === void 0 ? false : _j,
|
|
16982
17004
|
_k = _a.idCaptureLoadingOverlayMode,
|
|
16983
17005
|
idCaptureLoadingOverlayMode = _k === void 0 ? 'default' : _k,
|
|
17006
|
+
customOverlayContent = _a.customOverlayContent,
|
|
17007
|
+
onCustomOverlyDismissed = _a.onCustomOverlyDismissed,
|
|
16984
17008
|
_l = _a.idCaptureGuideType,
|
|
16985
17009
|
idCaptureGuideType = _l === void 0 ? 'fit' : _l,
|
|
16986
17010
|
_m = _a.idCapturePortraitGuidesOnMobile,
|
|
@@ -17038,6 +17062,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
17038
17062
|
skipIdCapture: skipIdCapture,
|
|
17039
17063
|
skipShowIdCardBack: skipShowIdCardBack,
|
|
17040
17064
|
idCaptureLoadingOverlayMode: idCaptureLoadingOverlayMode,
|
|
17065
|
+
customOverlayContent: customOverlayContent,
|
|
17066
|
+
onCustomOverlyDismissed: onCustomOverlyDismissed,
|
|
17041
17067
|
idCaptureGuideType: idCaptureGuideType,
|
|
17042
17068
|
idCapturePortraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
17043
17069
|
idCaptureRotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
@@ -17052,7 +17078,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
17052
17078
|
verbiage: verbiage,
|
|
17053
17079
|
debugMode: debugMode
|
|
17054
17080
|
};
|
|
17055
|
-
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
17081
|
+
}, [idCaptureProps, faceLivenessProps, idCaptureModelsEnabled, videoIdCaptureThresholds, readTextPrompt, readTextTimeoutDurationMs, readTextMinReadingMs, onExitCapture, onExitAfterFailure, onUserCancel, skipSuccessScreen, skipIdCapture, skipShowIdCardBack, idCaptureLoadingOverlayMode, customOverlayContent, onCustomOverlyDismissed, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, faceLivenessLoadingOverlayMode, disableFaceDetectionWhileAudioCapture, disableFaceDetectionWhileAudioCaptureMsDelay, silentFallback, mergeAVStreams, assets, classNames, colors, verbiage, debugMode]);
|
|
17056
17082
|
var additionalDocumentCaptureProps = useMemo(function () {
|
|
17057
17083
|
return {
|
|
17058
17084
|
documents: captureAdditionalDocuments,
|