idmission-web-sdk 2.2.52 → 2.2.53
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/video_id/IdVideoCapture.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +2 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +28 -24
- 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 +28 -24
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +28 -24
- 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 +3 -3
|
@@ -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.53';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -21548,23 +21548,25 @@
|
|
|
21548
21548
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
21549
21549
|
var _z = _a.requestedAction,
|
|
21550
21550
|
requestedAction = _z === void 0 ? 'SHOW_ID_FRONT' : _z,
|
|
21551
|
-
_0 = _a.
|
|
21552
|
-
|
|
21553
|
-
_1 = _a.
|
|
21554
|
-
|
|
21551
|
+
_0 = _a.idDocumentType,
|
|
21552
|
+
idDocumentType = _0 === void 0 ? 'idCard' : _0,
|
|
21553
|
+
_1 = _a.satisfied,
|
|
21554
|
+
satisfied = _1 === void 0 ? false : _1,
|
|
21555
|
+
_2 = _a.faceGuideStatus,
|
|
21556
|
+
faceGuideStatus = _2 === void 0 ? 'success' : _2,
|
|
21555
21557
|
faceGuideBorderWidth = _a.faceGuideBorderWidth,
|
|
21556
21558
|
faceGuideBorderColor = _a.faceGuideBorderColor,
|
|
21557
|
-
|
|
21558
|
-
idCardGuideStatus =
|
|
21559
|
+
_3 = _a.idCardGuideStatus,
|
|
21560
|
+
idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
|
|
21559
21561
|
idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
|
|
21560
21562
|
idCardGuideBorderColor = _a.idCardGuideBorderColor,
|
|
21561
21563
|
idCardCaptureProgress = _a.idCardCaptureProgress,
|
|
21562
|
-
|
|
21563
|
-
userSuppliedImages =
|
|
21564
|
-
|
|
21565
|
-
classNames =
|
|
21566
|
-
|
|
21567
|
-
rawVerbiage =
|
|
21564
|
+
_4 = _a.idCaptureGuideImages,
|
|
21565
|
+
userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
|
|
21566
|
+
_5 = _a.classNames,
|
|
21567
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
21568
|
+
_6 = _a.verbiage,
|
|
21569
|
+
rawVerbiage = _6 === void 0 ? {} : _6;
|
|
21568
21570
|
var isRearFacing = useCameraStore(function (state) {
|
|
21569
21571
|
return state.isRearFacing;
|
|
21570
21572
|
});
|
|
@@ -21581,17 +21583,17 @@
|
|
|
21581
21583
|
if (faceGuideBorderColor === undefined) faceGuideBorderColor = (_j = satisfied ? (_f = (_e = theme.idVideoCapture) === null || _e === void 0 ? void 0 : _e.faceGuides) === null || _f === void 0 ? void 0 : _f.satisfiedColor : (_h = (_g = theme.idVideoCapture) === null || _g === void 0 ? void 0 : _g.faceGuides) === null || _h === void 0 ? void 0 : _h.unsatisfiedColor) !== null && _j !== void 0 ? _j : '#D6DCE7';
|
|
21582
21584
|
if (idCardGuideBorderWidth === undefined) idCardGuideBorderWidth = (_m = (_l = (_k = theme.idVideoCapture) === null || _k === void 0 ? void 0 : _k.idCardGuides) === null || _l === void 0 ? void 0 : _l.borderWidth) !== null && _m !== void 0 ? _m : 20;
|
|
21583
21585
|
if (idCardGuideBorderColor === undefined) idCardGuideBorderColor = (_s = satisfied ? (_p = (_o = theme.idVideoCapture) === null || _o === void 0 ? void 0 : _o.idCardGuides) === null || _p === void 0 ? void 0 : _p.satisfiedColor : (_r = (_q = theme.idVideoCapture) === null || _q === void 0 ? void 0 : _q.idCardGuides) === null || _r === void 0 ? void 0 : _r.unsatisfiedColor) !== null && _s !== void 0 ? _s : '#D6DCE7';
|
|
21584
|
-
var
|
|
21585
|
-
idCardGuideRef =
|
|
21586
|
-
|
|
21587
|
-
idCardGuideWidth =
|
|
21588
|
-
|
|
21589
|
-
idCardGuideHeight =
|
|
21586
|
+
var _7 = useResizeObserver(),
|
|
21587
|
+
idCardGuideRef = _7.ref,
|
|
21588
|
+
_8 = _7.width,
|
|
21589
|
+
idCardGuideWidth = _8 === void 0 ? 0 : _8,
|
|
21590
|
+
_9 = _7.height,
|
|
21591
|
+
idCardGuideHeight = _9 === void 0 ? 0 : _9;
|
|
21590
21592
|
var idCaptureGuideImages = useGuideImages(userSuppliedImages);
|
|
21591
21593
|
var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
|
|
21592
|
-
var
|
|
21593
|
-
aspectRatio =
|
|
21594
|
-
setAspectRatio =
|
|
21594
|
+
var _10 = React.useState(undefined),
|
|
21595
|
+
aspectRatio = _10[0],
|
|
21596
|
+
setAspectRatio = _10[1];
|
|
21595
21597
|
var onImageLoaded = React.useCallback(function (e) {
|
|
21596
21598
|
var _a, _b, _c, _d;
|
|
21597
21599
|
var img = e.currentTarget;
|
|
@@ -21640,7 +21642,7 @@
|
|
|
21640
21642
|
className: classNames.idCardGuideImage,
|
|
21641
21643
|
"$isMirrored": !isRearFacing,
|
|
21642
21644
|
style: idCardImageStyle,
|
|
21643
|
-
src:
|
|
21645
|
+
src: idDocumentType === 'passport' ? idCaptureGuideImages.landscape.SHOW_PASSPORT.url : requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
|
|
21644
21646
|
onLoad: onImageLoaded
|
|
21645
21647
|
})), requestedAction === 'FLIP_ID' && ( /*#__PURE__*/React.createElement(IdVideoCaptureFlipIdPrompt, {
|
|
21646
21648
|
idCaptureGuideImages: idCaptureGuideImages,
|
|
@@ -22189,6 +22191,7 @@
|
|
|
22189
22191
|
classNames: classNames.guides,
|
|
22190
22192
|
verbiage: rawVerbiage.guides,
|
|
22191
22193
|
requestedAction: requestedAction,
|
|
22194
|
+
idDocumentType: idDocumentType,
|
|
22192
22195
|
satisfied: satisfied,
|
|
22193
22196
|
idCardGuideStatus: countdownStartedAt ? 'capturing' : 'ready',
|
|
22194
22197
|
idCardCaptureProgress: countdownStartedAt ? 1 : 0,
|
|
@@ -22499,10 +22502,11 @@
|
|
|
22499
22502
|
var _b, _c, _d, _e;
|
|
22500
22503
|
var status = _a.status;
|
|
22501
22504
|
return /*#__PURE__*/React.createElement(IdVideoCaptureGuides, {
|
|
22502
|
-
idCaptureGuideImages: idCaptureGuideImages,
|
|
22503
22505
|
classNames: (_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides,
|
|
22504
22506
|
verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
|
|
22505
22507
|
requestedAction: "VERIFY_LIVENESS",
|
|
22508
|
+
idCaptureGuideImages: idCaptureGuideImages,
|
|
22509
|
+
idDocumentType: idDocumentType,
|
|
22506
22510
|
faceGuideStatus: status,
|
|
22507
22511
|
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,
|
|
22508
22512
|
idCardGuideStatus: "disabled"
|