idmission-web-sdk 2.1.78 → 2.1.80
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 +1 -1
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlay.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureWizard.d.ts +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +1 -1
- package/dist/sdk2.cjs.development.js +37 -33
- 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 +37 -33
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +37 -33
- 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/themes/index.d.ts +4 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
var webSdkVersion = '2.1.
|
|
218
|
+
var webSdkVersion = '2.1.80';
|
|
219
219
|
|
|
220
220
|
function getPlatform() {
|
|
221
221
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -16752,7 +16752,7 @@
|
|
|
16752
16752
|
}, onUserCancel && ( /*#__PURE__*/React.createElement(ExitCaptureButton, {
|
|
16753
16753
|
onClick: onUserCancel,
|
|
16754
16754
|
className: classNames.cancelBtn
|
|
16755
|
-
})), customOverlayContent
|
|
16755
|
+
})), customOverlayContent || ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OverlayHeader$1, null, /*#__PURE__*/React.createElement(StyledGuidanceMessage$2, {
|
|
16756
16756
|
className: classNames.heading
|
|
16757
16757
|
}, verbiage.headingText)), /*#__PURE__*/React.createElement(StyledOverlayImageContainer$2, {
|
|
16758
16758
|
className: classNames.imageContainer,
|
|
@@ -21119,7 +21119,7 @@
|
|
|
21119
21119
|
}, onUserCancel && ( /*#__PURE__*/React.createElement(ExitCaptureButton, {
|
|
21120
21120
|
onClick: onUserCancel,
|
|
21121
21121
|
className: classNames.cancelBtn
|
|
21122
|
-
})), customOverlayContent
|
|
21122
|
+
})), customOverlayContent || ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OverlayHeader, {
|
|
21123
21123
|
className: classNames.headingContainer
|
|
21124
21124
|
}, /*#__PURE__*/React.createElement(StyledGuidanceMessage, {
|
|
21125
21125
|
className: classNames.heading
|
|
@@ -23303,26 +23303,26 @@
|
|
|
23303
23303
|
};
|
|
23304
23304
|
|
|
23305
23305
|
var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
23306
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
23307
|
-
var
|
|
23308
|
-
requestedAction =
|
|
23309
|
-
|
|
23310
|
-
satisfied =
|
|
23311
|
-
|
|
23312
|
-
faceGuideStatus =
|
|
23306
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
23307
|
+
var _0 = _a.requestedAction,
|
|
23308
|
+
requestedAction = _0 === void 0 ? 'SHOW_ID_FRONT' : _0,
|
|
23309
|
+
_1 = _a.satisfied,
|
|
23310
|
+
satisfied = _1 === void 0 ? false : _1,
|
|
23311
|
+
_2 = _a.faceGuideStatus,
|
|
23312
|
+
faceGuideStatus = _2 === void 0 ? 'success' : _2,
|
|
23313
23313
|
faceGuideBorderWidth = _a.faceGuideBorderWidth,
|
|
23314
23314
|
faceGuideBorderColor = _a.faceGuideBorderColor,
|
|
23315
|
-
|
|
23316
|
-
idCardGuideStatus =
|
|
23315
|
+
_3 = _a.idCardGuideStatus,
|
|
23316
|
+
idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
|
|
23317
23317
|
idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
|
|
23318
23318
|
idCardGuideBorderColor = _a.idCardGuideBorderColor,
|
|
23319
23319
|
idCardCaptureProgress = _a.idCardCaptureProgress,
|
|
23320
|
-
|
|
23321
|
-
userSuppliedImages =
|
|
23322
|
-
|
|
23323
|
-
classNames =
|
|
23324
|
-
|
|
23325
|
-
rawVerbiage =
|
|
23320
|
+
_4 = _a.idCardCaptureGuideImages,
|
|
23321
|
+
userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
|
|
23322
|
+
_5 = _a.classNames,
|
|
23323
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
23324
|
+
_6 = _a.verbiage,
|
|
23325
|
+
rawVerbiage = _6 === void 0 ? {} : _6;
|
|
23326
23326
|
var cameraRef = React.useContext(CameraStateContext).cameraRef;
|
|
23327
23327
|
var verbiage = useTranslations(rawVerbiage, {
|
|
23328
23328
|
idFrontInstructionText: 'Display the front of your ID card...',
|
|
@@ -23336,17 +23336,17 @@
|
|
|
23336
23336
|
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';
|
|
23337
23337
|
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;
|
|
23338
23338
|
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';
|
|
23339
|
-
var
|
|
23340
|
-
idCardGuideRef =
|
|
23341
|
-
|
|
23342
|
-
idCardGuideWidth =
|
|
23343
|
-
|
|
23344
|
-
idCardGuideHeight =
|
|
23339
|
+
var _7 = useResizeObserver(),
|
|
23340
|
+
idCardGuideRef = _7.ref,
|
|
23341
|
+
_8 = _7.width,
|
|
23342
|
+
idCardGuideWidth = _8 === void 0 ? 0 : _8,
|
|
23343
|
+
_9 = _7.height,
|
|
23344
|
+
idCardGuideHeight = _9 === void 0 ? 0 : _9;
|
|
23345
23345
|
var idCaptureGuideImages = useGuideImages(userSuppliedImages);
|
|
23346
23346
|
var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
|
|
23347
|
-
var
|
|
23348
|
-
aspectRatio =
|
|
23349
|
-
setAspectRatio =
|
|
23347
|
+
var _10 = React.useState(undefined),
|
|
23348
|
+
aspectRatio = _10[0],
|
|
23349
|
+
setAspectRatio = _10[1];
|
|
23350
23350
|
var onImageLoaded = React.useCallback(function (e) {
|
|
23351
23351
|
var _a, _b, _c, _d;
|
|
23352
23352
|
var img = e.currentTarget;
|
|
@@ -23363,6 +23363,7 @@
|
|
|
23363
23363
|
aspectRatio: aspectRatio
|
|
23364
23364
|
};
|
|
23365
23365
|
}, [idCardGuideWidth, idCardGuideHeight, aspectRatio]);
|
|
23366
|
+
var disableIdGuides = ((_u = (_t = theme.idVideoCapture) === null || _t === void 0 ? void 0 : _t.idCardGuides) === null || _u === void 0 ? void 0 : _u.disableDuringLivenessCheck) && requestedAction === 'VERIFY_LIVENESS';
|
|
23366
23367
|
return /*#__PURE__*/React.createElement(Container, {
|
|
23367
23368
|
className: classNames.container
|
|
23368
23369
|
}, /*#__PURE__*/React.createElement(Inner, null, /*#__PURE__*/React.createElement(FaceGuideContainer, {
|
|
@@ -23373,7 +23374,7 @@
|
|
|
23373
23374
|
borderWidth: faceGuideBorderWidth,
|
|
23374
23375
|
borderColor: faceGuideBorderColor,
|
|
23375
23376
|
verticalAlign: "bottom"
|
|
23376
|
-
})), /*#__PURE__*/React.createElement(IdCardGuideContainer, {
|
|
23377
|
+
})), !disableIdGuides && ( /*#__PURE__*/React.createElement(IdCardGuideContainer, {
|
|
23377
23378
|
className: classNames.idCardGuideContainer,
|
|
23378
23379
|
ref: idCardGuideRef
|
|
23379
23380
|
}, /*#__PURE__*/React.createElement(IdCardGuideInner, {
|
|
@@ -23392,7 +23393,7 @@
|
|
|
23392
23393
|
}, /*#__PURE__*/React.createElement(IdCardGuideImage, {
|
|
23393
23394
|
alt: "",
|
|
23394
23395
|
className: classNames.idCardGuideImage,
|
|
23395
|
-
"$isMirrored": !((
|
|
23396
|
+
"$isMirrored": !((_v = cameraRef.current) === null || _v === void 0 ? void 0 : _v.isRearFacing),
|
|
23396
23397
|
style: idCardImageStyle,
|
|
23397
23398
|
src: requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
|
|
23398
23399
|
onLoad: onImageLoaded
|
|
@@ -23406,15 +23407,15 @@
|
|
|
23406
23407
|
className: classNames.idCardGuideInstructionsContainer
|
|
23407
23408
|
}, /*#__PURE__*/React.createElement(IdCardGuideInstructions, {
|
|
23408
23409
|
className: classNames.idCardGuideInstructions,
|
|
23409
|
-
"$textColor": (
|
|
23410
|
-
"$background": (
|
|
23411
|
-
}, instructionText)))));
|
|
23410
|
+
"$textColor": (_x = (_w = theme.idVideoCapture) === null || _w === void 0 ? void 0 : _w.idCardGuides) === null || _x === void 0 ? void 0 : _x.instructionsTextColor,
|
|
23411
|
+
"$background": (_z = (_y = theme.idVideoCapture) === null || _y === void 0 ? void 0 : _y.idCardGuides) === null || _z === void 0 ? void 0 : _z.instructionsBackgroundColor
|
|
23412
|
+
}, instructionText))))));
|
|
23412
23413
|
};
|
|
23413
23414
|
var Container = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n display: flex;\n max-height: 100%;\n position: absolute;\n z-index: 1000;\n width: 100dvw;\n height: 100dvh;\n font-family: ", ";\n box-sizing: border-box;\n overflow: hidden;\n padding: 40px;\n"], ["\n display: flex;\n max-height: 100%;\n position: absolute;\n z-index: 1000;\n width: 100dvw;\n height: 100dvh;\n font-family: ", ";\n box-sizing: border-box;\n overflow: hidden;\n padding: 40px;\n"])), function (props) {
|
|
23414
23415
|
var _a;
|
|
23415
23416
|
return (_a = props.theme) === null || _a === void 0 ? void 0 : _a.fontFamily;
|
|
23416
23417
|
});
|
|
23417
|
-
var Inner = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n"], ["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n"])));
|
|
23418
|
+
var Inner = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"], ["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
23418
23419
|
var FaceGuideContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: relative;\n height: 65%;\n"], ["\n position: relative;\n height: 65%;\n"])));
|
|
23419
23420
|
var IdCardGuideContainer = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"])));
|
|
23420
23421
|
var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n"], ["\n position: relative;\n height: 100%;\n"])));
|
|
@@ -24738,6 +24739,9 @@
|
|
|
24738
24739
|
backgroundPosition: '0 0, 10px 10px'
|
|
24739
24740
|
},
|
|
24740
24741
|
idVideoCapture: {
|
|
24742
|
+
idCardGuides: {
|
|
24743
|
+
disableDuringLivenessCheck: false
|
|
24744
|
+
},
|
|
24741
24745
|
readTextPrompt: {
|
|
24742
24746
|
heading: {
|
|
24743
24747
|
backgroundColor: 'rgba(255, 255, 255, 0.5)',
|