idmission-web-sdk 2.2.62 → 2.2.64
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/VideoIdValidation.d.ts +2 -2
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/lib/models/FaceDetection.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +15 -15
- 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 +15 -15
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +15 -15
- 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
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.64';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -8651,7 +8651,7 @@
|
|
|
8651
8651
|
_b = _a.requireVerticalFaceCentering,
|
|
8652
8652
|
requireVerticalFaceCentering = _b === void 0 ? true : _b,
|
|
8653
8653
|
_c = _a.stabilityThreshold,
|
|
8654
|
-
stabilityThreshold = _c === void 0 ? 0.
|
|
8654
|
+
stabilityThreshold = _c === void 0 ? 0.7 : _c;
|
|
8655
8655
|
var face = faces[0];
|
|
8656
8656
|
var faceNotDetected = faces.length === 0;
|
|
8657
8657
|
var faceNotCentered = requireVerticalFaceCentering,
|
|
@@ -21093,22 +21093,20 @@
|
|
|
21093
21093
|
var animationFrame = React.useRef(0);
|
|
21094
21094
|
React.useEffect(function () {
|
|
21095
21095
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current || !camera || !isRecording || !isRecordingVideo) return;
|
|
21096
|
-
var _a = [camera.width, camera.height],
|
|
21097
|
-
w = _a[0],
|
|
21098
|
-
h = _a[1];
|
|
21099
|
-
var isPortrait = w < h;
|
|
21100
|
-
outputCanvas.current.width = w;
|
|
21101
|
-
outputCanvas.current.height = h;
|
|
21102
21096
|
var ctx = outputCanvas.current.getContext('2d');
|
|
21103
21097
|
if (!ctx) return;
|
|
21104
21098
|
animationFrame.current = requestAnimationFrame(function runFrame() {
|
|
21105
21099
|
return __awaiter(this, void 0, void 0, function () {
|
|
21106
|
-
var rect;
|
|
21107
|
-
return __generator(this, function (
|
|
21100
|
+
var _a, w, h, isPortrait, rect;
|
|
21101
|
+
return __generator(this, function (_b) {
|
|
21108
21102
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current) {
|
|
21109
21103
|
cancelAnimationFrame(animationFrame.current);
|
|
21110
21104
|
return [2 /*return*/];
|
|
21111
21105
|
}
|
|
21106
|
+
_a = [videoRef.current.videoWidth, videoRef.current.videoHeight], w = _a[0], h = _a[1];
|
|
21107
|
+
isPortrait = w < h;
|
|
21108
|
+
outputCanvas.current.width = w;
|
|
21109
|
+
outputCanvas.current.height = h;
|
|
21112
21110
|
rect = [w * (isPortrait ? 0.02 : 0.15), h * (isPortrait ? 0.15 : 0.25), w * (isPortrait ? 0.96 : 0.7), h * (isPortrait ? 0.7 : 0.5)];
|
|
21113
21111
|
ctx.drawImage(videoRef.current, 0, 0, w, h);
|
|
21114
21112
|
ctx.beginPath();
|
|
@@ -22427,7 +22425,7 @@
|
|
|
22427
22425
|
customOverlayContent = _a.customOverlayContent,
|
|
22428
22426
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
22429
22427
|
_u = _a.idDocumentType,
|
|
22430
|
-
idDocumentType = _u === void 0 ? '
|
|
22428
|
+
idDocumentType = _u === void 0 ? 'idCardOrPassport' : _u,
|
|
22431
22429
|
_v = _a.idCaptureGuideType,
|
|
22432
22430
|
idCaptureGuideType = _v === void 0 ? 'fit' : _v,
|
|
22433
22431
|
_w = _a.idCaptureGuideImages,
|
|
@@ -22459,6 +22457,7 @@
|
|
|
22459
22457
|
_9 = _a.debugMode,
|
|
22460
22458
|
debugMode = _9 === void 0 ? false : _9;
|
|
22461
22459
|
var _10 = React.useContext(SubmissionContext),
|
|
22460
|
+
passportImage = _10.passportImage,
|
|
22462
22461
|
submissionStatus = _10.submissionStatus,
|
|
22463
22462
|
idCaptureVideoUrl = _10.idCaptureVideoUrl,
|
|
22464
22463
|
idCaptureVideoAudioUrl = _10.idCaptureVideoAudioUrl,
|
|
@@ -22534,6 +22533,7 @@
|
|
|
22534
22533
|
});
|
|
22535
22534
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
22536
22535
|
}, [onExitCapture]);
|
|
22536
|
+
var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
|
|
22537
22537
|
var faceLivenessGuides = React.useCallback(function (_a) {
|
|
22538
22538
|
var _b, _c, _d, _e;
|
|
22539
22539
|
var status = _a.status;
|
|
@@ -22542,12 +22542,12 @@
|
|
|
22542
22542
|
verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
|
|
22543
22543
|
requestedAction: "VERIFY_LIVENESS",
|
|
22544
22544
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
22545
|
-
idDocumentType:
|
|
22545
|
+
idDocumentType: capturedIdDocumentType,
|
|
22546
22546
|
faceGuideStatus: status,
|
|
22547
22547
|
faceGuideBorderColor: status === 'success' ? (_d = colors.idVideoCapture) === null || _d === void 0 ? void 0 : _d.guidesSatisfiedColor : (_e = colors.idVideoCapture) === null || _e === void 0 ? void 0 : _e.guidesUnsatisfiedColor,
|
|
22548
22548
|
idCardGuideStatus: "disabled"
|
|
22549
22549
|
});
|
|
22550
|
-
}, [(_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides, (_c = colors.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guidesSatisfiedColor, (_d = colors.idVideoCapture) === null || _d === void 0 ? void 0 : _d.guidesUnsatisfiedColor, idCaptureGuideImages, (_e = verbiage.idVideoCapture) === null || _e === void 0 ? void 0 : _e.guides]);
|
|
22550
|
+
}, [capturedIdDocumentType, (_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides, (_c = colors.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guidesSatisfiedColor, (_d = colors.idVideoCapture) === null || _d === void 0 ? void 0 : _d.guidesUnsatisfiedColor, idCaptureGuideImages, (_e = verbiage.idVideoCapture) === null || _e === void 0 ? void 0 : _e.guides]);
|
|
22551
22551
|
if (submissionStatus === SubmissionStatus.SUBMITTING) {
|
|
22552
22552
|
return /*#__PURE__*/React.createElement(PageContainer, {
|
|
22553
22553
|
className: "flex"
|
|
@@ -22637,7 +22637,7 @@
|
|
|
22637
22637
|
onExitCapture: handleExitCapture,
|
|
22638
22638
|
idCaptureModelsEnabled: idCaptureModelsEnabled,
|
|
22639
22639
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
22640
|
-
idDocumentType:
|
|
22640
|
+
idDocumentType: capturedIdDocumentType,
|
|
22641
22641
|
videoIdCaptureThresholds: videoIdCaptureThresholds,
|
|
22642
22642
|
skipShowIdCardBack: skipShowIdCardBack,
|
|
22643
22643
|
disableFaceDetectionWhileAudioCapture: disableFaceDetectionWhileAudioCapture,
|
|
@@ -25188,7 +25188,7 @@
|
|
|
25188
25188
|
idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
|
|
25189
25189
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
25190
25190
|
_q = _a.idDocumentType,
|
|
25191
|
-
idDocumentType = _q === void 0 ? '
|
|
25191
|
+
idDocumentType = _q === void 0 ? 'idCardOrPassport' : _q,
|
|
25192
25192
|
_r = _a.faceLivenessLoadingOverlayMode,
|
|
25193
25193
|
faceLivenessLoadingOverlayMode = _r === void 0 ? 'default' : _r,
|
|
25194
25194
|
_s = _a.disableFaceDetectionWhileAudioCapture,
|