idmission-web-sdk 2.1.79 → 2.1.81
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/lib/locales/es/translation.d.ts +1 -0
- package/dist/lib/locales/index.d.ts +1 -0
- package/dist/sdk2.cjs.development.js +36 -31
- 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 +36 -31
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +36 -31
- 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
|
@@ -76,6 +76,7 @@ declare const _default: {
|
|
|
76
76
|
Upload: string;
|
|
77
77
|
'Uploading...': string;
|
|
78
78
|
'Upload succeeded!': string;
|
|
79
|
+
'Performing facial recognition, please hold still...': string;
|
|
79
80
|
'Display the front of your ID card...': string;
|
|
80
81
|
'Display the back of your ID card...': string;
|
|
81
82
|
'Please move your face to the center...': string;
|
|
@@ -84,6 +84,7 @@ export declare const resources: {
|
|
|
84
84
|
Upload: string;
|
|
85
85
|
'Uploading...': string;
|
|
86
86
|
'Upload succeeded!': string;
|
|
87
|
+
'Performing facial recognition, please hold still...': string;
|
|
87
88
|
'Display the front of your ID card...': string;
|
|
88
89
|
'Display the back of your ID card...': string;
|
|
89
90
|
'Please move your face to the center...': string;
|
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.1.
|
|
237
|
+
var webSdkVersion = '2.1.81';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -6938,6 +6938,7 @@ var esTranslation = {
|
|
|
6938
6938
|
Upload: 'Enviar',
|
|
6939
6939
|
'Uploading...': 'Procesando...',
|
|
6940
6940
|
'Upload succeeded!': 'Proceso completo!',
|
|
6941
|
+
'Performing facial recognition, please hold still...': 'Realizando el reconocimiento facial, por favor no te muevas',
|
|
6941
6942
|
'Display the front of your ID card...': 'Hay que mostrar el frente de la identificación...',
|
|
6942
6943
|
'Display the back of your ID card...': 'Hay que mostrar el reverso de la identificación...',
|
|
6943
6944
|
'Please move your face to the center...': 'Por favor, hay que mover la cabeza hacia el centro...',
|
|
@@ -13701,26 +13702,26 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13701
13702
|
};
|
|
13702
13703
|
|
|
13703
13704
|
var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
13704
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
13705
|
-
var
|
|
13706
|
-
requestedAction =
|
|
13707
|
-
|
|
13708
|
-
satisfied =
|
|
13709
|
-
|
|
13710
|
-
faceGuideStatus =
|
|
13705
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
13706
|
+
var _0 = _a.requestedAction,
|
|
13707
|
+
requestedAction = _0 === void 0 ? 'SHOW_ID_FRONT' : _0,
|
|
13708
|
+
_1 = _a.satisfied,
|
|
13709
|
+
satisfied = _1 === void 0 ? false : _1,
|
|
13710
|
+
_2 = _a.faceGuideStatus,
|
|
13711
|
+
faceGuideStatus = _2 === void 0 ? 'success' : _2,
|
|
13711
13712
|
faceGuideBorderWidth = _a.faceGuideBorderWidth,
|
|
13712
13713
|
faceGuideBorderColor = _a.faceGuideBorderColor,
|
|
13713
|
-
|
|
13714
|
-
idCardGuideStatus =
|
|
13714
|
+
_3 = _a.idCardGuideStatus,
|
|
13715
|
+
idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
|
|
13715
13716
|
idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
|
|
13716
13717
|
idCardGuideBorderColor = _a.idCardGuideBorderColor,
|
|
13717
13718
|
idCardCaptureProgress = _a.idCardCaptureProgress,
|
|
13718
|
-
|
|
13719
|
-
userSuppliedImages =
|
|
13720
|
-
|
|
13721
|
-
classNames =
|
|
13722
|
-
|
|
13723
|
-
rawVerbiage =
|
|
13719
|
+
_4 = _a.idCardCaptureGuideImages,
|
|
13720
|
+
userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
|
|
13721
|
+
_5 = _a.classNames,
|
|
13722
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
13723
|
+
_6 = _a.verbiage,
|
|
13724
|
+
rawVerbiage = _6 === void 0 ? {} : _6;
|
|
13724
13725
|
var cameraRef = React.useContext(CameraStateContext).cameraRef;
|
|
13725
13726
|
var verbiage = useTranslations(rawVerbiage, {
|
|
13726
13727
|
idFrontInstructionText: 'Display the front of your ID card...',
|
|
@@ -13734,17 +13735,17 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13734
13735
|
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';
|
|
13735
13736
|
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;
|
|
13736
13737
|
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';
|
|
13737
|
-
var
|
|
13738
|
-
idCardGuideRef =
|
|
13739
|
-
|
|
13740
|
-
idCardGuideWidth =
|
|
13741
|
-
|
|
13742
|
-
idCardGuideHeight =
|
|
13738
|
+
var _7 = useResizeObserver__default.default(),
|
|
13739
|
+
idCardGuideRef = _7.ref,
|
|
13740
|
+
_8 = _7.width,
|
|
13741
|
+
idCardGuideWidth = _8 === void 0 ? 0 : _8,
|
|
13742
|
+
_9 = _7.height,
|
|
13743
|
+
idCardGuideHeight = _9 === void 0 ? 0 : _9;
|
|
13743
13744
|
var idCaptureGuideImages = useGuideImages(userSuppliedImages);
|
|
13744
13745
|
var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
|
|
13745
|
-
var
|
|
13746
|
-
aspectRatio =
|
|
13747
|
-
setAspectRatio =
|
|
13746
|
+
var _10 = React.useState(undefined),
|
|
13747
|
+
aspectRatio = _10[0],
|
|
13748
|
+
setAspectRatio = _10[1];
|
|
13748
13749
|
var onImageLoaded = React.useCallback(function (e) {
|
|
13749
13750
|
var _a, _b, _c, _d;
|
|
13750
13751
|
var img = e.currentTarget;
|
|
@@ -13761,6 +13762,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13761
13762
|
aspectRatio: aspectRatio
|
|
13762
13763
|
};
|
|
13763
13764
|
}, [idCardGuideWidth, idCardGuideHeight, aspectRatio]);
|
|
13765
|
+
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';
|
|
13764
13766
|
return /*#__PURE__*/React__namespace.default.createElement(Container, {
|
|
13765
13767
|
className: classNames.container
|
|
13766
13768
|
}, /*#__PURE__*/React__namespace.default.createElement(Inner, null, /*#__PURE__*/React__namespace.default.createElement(FaceGuideContainer, {
|
|
@@ -13771,7 +13773,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13771
13773
|
borderWidth: faceGuideBorderWidth,
|
|
13772
13774
|
borderColor: faceGuideBorderColor,
|
|
13773
13775
|
verticalAlign: "bottom"
|
|
13774
|
-
})), /*#__PURE__*/React__namespace.default.createElement(IdCardGuideContainer, {
|
|
13776
|
+
})), !disableIdGuides && ( /*#__PURE__*/React__namespace.default.createElement(IdCardGuideContainer, {
|
|
13775
13777
|
className: classNames.idCardGuideContainer,
|
|
13776
13778
|
ref: idCardGuideRef
|
|
13777
13779
|
}, /*#__PURE__*/React__namespace.default.createElement(IdCardGuideInner, {
|
|
@@ -13790,7 +13792,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13790
13792
|
}, /*#__PURE__*/React__namespace.default.createElement(IdCardGuideImage, {
|
|
13791
13793
|
alt: "",
|
|
13792
13794
|
className: classNames.idCardGuideImage,
|
|
13793
|
-
"$isMirrored": !((
|
|
13795
|
+
"$isMirrored": !((_v = cameraRef.current) === null || _v === void 0 ? void 0 : _v.isRearFacing),
|
|
13794
13796
|
style: idCardImageStyle,
|
|
13795
13797
|
src: requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
|
|
13796
13798
|
onLoad: onImageLoaded
|
|
@@ -13804,15 +13806,15 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13804
13806
|
className: classNames.idCardGuideInstructionsContainer
|
|
13805
13807
|
}, /*#__PURE__*/React__namespace.default.createElement(IdCardGuideInstructions, {
|
|
13806
13808
|
className: classNames.idCardGuideInstructions,
|
|
13807
|
-
"$textColor": (
|
|
13808
|
-
"$background": (
|
|
13809
|
-
}, instructionText)))));
|
|
13809
|
+
"$textColor": (_x = (_w = theme.idVideoCapture) === null || _w === void 0 ? void 0 : _w.idCardGuides) === null || _x === void 0 ? void 0 : _x.instructionsTextColor,
|
|
13810
|
+
"$background": (_z = (_y = theme.idVideoCapture) === null || _y === void 0 ? void 0 : _y.idCardGuides) === null || _z === void 0 ? void 0 : _z.instructionsBackgroundColor
|
|
13811
|
+
}, instructionText))))));
|
|
13810
13812
|
};
|
|
13811
13813
|
var Container = styled__default.default.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) {
|
|
13812
13814
|
var _a;
|
|
13813
13815
|
return (_a = props.theme) === null || _a === void 0 ? void 0 : _a.fontFamily;
|
|
13814
13816
|
});
|
|
13815
|
-
var Inner = styled__default.default.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"])));
|
|
13817
|
+
var Inner = styled__default.default.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"])));
|
|
13816
13818
|
var FaceGuideContainer = styled__default.default.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: relative;\n height: 65%;\n"], ["\n position: relative;\n height: 65%;\n"])));
|
|
13817
13819
|
var IdCardGuideContainer = styled__default.default.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"])));
|
|
13818
13820
|
var IdCardGuideInner = styled__default.default.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n"], ["\n position: relative;\n height: 100%;\n"])));
|
|
@@ -15136,6 +15138,9 @@ var defaultTheme = {
|
|
|
15136
15138
|
backgroundPosition: '0 0, 10px 10px'
|
|
15137
15139
|
},
|
|
15138
15140
|
idVideoCapture: {
|
|
15141
|
+
idCardGuides: {
|
|
15142
|
+
disableDuringLivenessCheck: false
|
|
15143
|
+
},
|
|
15139
15144
|
readTextPrompt: {
|
|
15140
15145
|
heading: {
|
|
15141
15146
|
backgroundColor: 'rgba(255, 255, 255, 0.5)',
|