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
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.64';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2578,7 +2578,7 @@ function processFaceDetectorPrediction(_a) {
|
|
|
2578
2578
|
_b = _a.requireVerticalFaceCentering,
|
|
2579
2579
|
requireVerticalFaceCentering = _b === void 0 ? true : _b,
|
|
2580
2580
|
_c = _a.stabilityThreshold,
|
|
2581
|
-
stabilityThreshold = _c === void 0 ? 0.
|
|
2581
|
+
stabilityThreshold = _c === void 0 ? 0.7 : _c;
|
|
2582
2582
|
var face = faces[0];
|
|
2583
2583
|
var faceNotDetected = faces.length === 0;
|
|
2584
2584
|
var faceNotCentered = requireVerticalFaceCentering,
|
|
@@ -11251,22 +11251,20 @@ function VideoSignatureContextProvider(_a) {
|
|
|
11251
11251
|
var animationFrame = useRef(0);
|
|
11252
11252
|
useEffect(function () {
|
|
11253
11253
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current || !camera || !isRecording || !isRecordingVideo) return;
|
|
11254
|
-
var _a = [camera.width, camera.height],
|
|
11255
|
-
w = _a[0],
|
|
11256
|
-
h = _a[1];
|
|
11257
|
-
var isPortrait = w < h;
|
|
11258
|
-
outputCanvas.current.width = w;
|
|
11259
|
-
outputCanvas.current.height = h;
|
|
11260
11254
|
var ctx = outputCanvas.current.getContext('2d');
|
|
11261
11255
|
if (!ctx) return;
|
|
11262
11256
|
animationFrame.current = requestAnimationFrame(function runFrame() {
|
|
11263
11257
|
return __awaiter(this, void 0, void 0, function () {
|
|
11264
|
-
var rect;
|
|
11265
|
-
return __generator(this, function (
|
|
11258
|
+
var _a, w, h, isPortrait, rect;
|
|
11259
|
+
return __generator(this, function (_b) {
|
|
11266
11260
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current) {
|
|
11267
11261
|
cancelAnimationFrame(animationFrame.current);
|
|
11268
11262
|
return [2 /*return*/];
|
|
11269
11263
|
}
|
|
11264
|
+
_a = [videoRef.current.videoWidth, videoRef.current.videoHeight], w = _a[0], h = _a[1];
|
|
11265
|
+
isPortrait = w < h;
|
|
11266
|
+
outputCanvas.current.width = w;
|
|
11267
|
+
outputCanvas.current.height = h;
|
|
11270
11268
|
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)];
|
|
11271
11269
|
ctx.drawImage(videoRef.current, 0, 0, w, h);
|
|
11272
11270
|
ctx.beginPath();
|
|
@@ -12585,7 +12583,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
12585
12583
|
customOverlayContent = _a.customOverlayContent,
|
|
12586
12584
|
onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
|
|
12587
12585
|
_u = _a.idDocumentType,
|
|
12588
|
-
idDocumentType = _u === void 0 ? '
|
|
12586
|
+
idDocumentType = _u === void 0 ? 'idCardOrPassport' : _u,
|
|
12589
12587
|
_v = _a.idCaptureGuideType,
|
|
12590
12588
|
idCaptureGuideType = _v === void 0 ? 'fit' : _v,
|
|
12591
12589
|
_w = _a.idCaptureGuideImages,
|
|
@@ -12617,6 +12615,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
12617
12615
|
_9 = _a.debugMode,
|
|
12618
12616
|
debugMode = _9 === void 0 ? false : _9;
|
|
12619
12617
|
var _10 = useContext(SubmissionContext),
|
|
12618
|
+
passportImage = _10.passportImage,
|
|
12620
12619
|
submissionStatus = _10.submissionStatus,
|
|
12621
12620
|
idCaptureVideoUrl = _10.idCaptureVideoUrl,
|
|
12622
12621
|
idCaptureVideoAudioUrl = _10.idCaptureVideoAudioUrl,
|
|
@@ -12692,6 +12691,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
12692
12691
|
});
|
|
12693
12692
|
onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
|
|
12694
12693
|
}, [onExitCapture]);
|
|
12694
|
+
var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
|
|
12695
12695
|
var faceLivenessGuides = useCallback(function (_a) {
|
|
12696
12696
|
var _b, _c, _d, _e;
|
|
12697
12697
|
var status = _a.status;
|
|
@@ -12700,12 +12700,12 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
12700
12700
|
verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
|
|
12701
12701
|
requestedAction: "VERIFY_LIVENESS",
|
|
12702
12702
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
12703
|
-
idDocumentType:
|
|
12703
|
+
idDocumentType: capturedIdDocumentType,
|
|
12704
12704
|
faceGuideStatus: status,
|
|
12705
12705
|
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,
|
|
12706
12706
|
idCardGuideStatus: "disabled"
|
|
12707
12707
|
});
|
|
12708
|
-
}, [(_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]);
|
|
12708
|
+
}, [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]);
|
|
12709
12709
|
if (submissionStatus === SubmissionStatus.SUBMITTING) {
|
|
12710
12710
|
return /*#__PURE__*/React__default.createElement(PageContainer, {
|
|
12711
12711
|
className: "flex"
|
|
@@ -12795,7 +12795,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
|
|
|
12795
12795
|
onExitCapture: handleExitCapture,
|
|
12796
12796
|
idCaptureModelsEnabled: idCaptureModelsEnabled,
|
|
12797
12797
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
12798
|
-
idDocumentType:
|
|
12798
|
+
idDocumentType: capturedIdDocumentType,
|
|
12799
12799
|
videoIdCaptureThresholds: videoIdCaptureThresholds,
|
|
12800
12800
|
skipShowIdCardBack: skipShowIdCardBack,
|
|
12801
12801
|
disableFaceDetectionWhileAudioCapture: disableFaceDetectionWhileAudioCapture,
|
|
@@ -15346,7 +15346,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15346
15346
|
idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
|
|
15347
15347
|
idCardForFaceMatch = _a.idCardForFaceMatch,
|
|
15348
15348
|
_q = _a.idDocumentType,
|
|
15349
|
-
idDocumentType = _q === void 0 ? '
|
|
15349
|
+
idDocumentType = _q === void 0 ? 'idCardOrPassport' : _q,
|
|
15350
15350
|
_r = _a.faceLivenessLoadingOverlayMode,
|
|
15351
15351
|
faceLivenessLoadingOverlayMode = _r === void 0 ? 'default' : _r,
|
|
15352
15352
|
_s = _a.disableFaceDetectionWhileAudioCapture,
|