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
package/dist/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.1.
|
|
207
|
+
var webSdkVersion = '2.1.80';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -7888,7 +7888,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7888
7888
|
}, onUserCancel && ( /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
|
|
7889
7889
|
onClick: onUserCancel,
|
|
7890
7890
|
className: classNames.cancelBtn
|
|
7891
|
-
})), customOverlayContent
|
|
7891
|
+
})), customOverlayContent || ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(OverlayHeader$1, null, /*#__PURE__*/React__default.createElement(StyledGuidanceMessage$2, {
|
|
7892
7892
|
className: classNames.heading
|
|
7893
7893
|
}, verbiage.headingText)), /*#__PURE__*/React__default.createElement(StyledOverlayImageContainer$2, {
|
|
7894
7894
|
className: classNames.imageContainer,
|
|
@@ -12255,7 +12255,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12255
12255
|
}, onUserCancel && ( /*#__PURE__*/React__default.createElement(ExitCaptureButton, {
|
|
12256
12256
|
onClick: onUserCancel,
|
|
12257
12257
|
className: classNames.cancelBtn
|
|
12258
|
-
})), customOverlayContent
|
|
12258
|
+
})), customOverlayContent || ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(OverlayHeader, {
|
|
12259
12259
|
className: classNames.headingContainer
|
|
12260
12260
|
}, /*#__PURE__*/React__default.createElement(StyledGuidanceMessage, {
|
|
12261
12261
|
className: classNames.heading
|
|
@@ -13671,26 +13671,26 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
|
|
|
13671
13671
|
};
|
|
13672
13672
|
|
|
13673
13673
|
var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
13674
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
13675
|
-
var
|
|
13676
|
-
requestedAction =
|
|
13677
|
-
|
|
13678
|
-
satisfied =
|
|
13679
|
-
|
|
13680
|
-
faceGuideStatus =
|
|
13674
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
13675
|
+
var _0 = _a.requestedAction,
|
|
13676
|
+
requestedAction = _0 === void 0 ? 'SHOW_ID_FRONT' : _0,
|
|
13677
|
+
_1 = _a.satisfied,
|
|
13678
|
+
satisfied = _1 === void 0 ? false : _1,
|
|
13679
|
+
_2 = _a.faceGuideStatus,
|
|
13680
|
+
faceGuideStatus = _2 === void 0 ? 'success' : _2,
|
|
13681
13681
|
faceGuideBorderWidth = _a.faceGuideBorderWidth,
|
|
13682
13682
|
faceGuideBorderColor = _a.faceGuideBorderColor,
|
|
13683
|
-
|
|
13684
|
-
idCardGuideStatus =
|
|
13683
|
+
_3 = _a.idCardGuideStatus,
|
|
13684
|
+
idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
|
|
13685
13685
|
idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
|
|
13686
13686
|
idCardGuideBorderColor = _a.idCardGuideBorderColor,
|
|
13687
13687
|
idCardCaptureProgress = _a.idCardCaptureProgress,
|
|
13688
|
-
|
|
13689
|
-
userSuppliedImages =
|
|
13690
|
-
|
|
13691
|
-
classNames =
|
|
13692
|
-
|
|
13693
|
-
rawVerbiage =
|
|
13688
|
+
_4 = _a.idCardCaptureGuideImages,
|
|
13689
|
+
userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
|
|
13690
|
+
_5 = _a.classNames,
|
|
13691
|
+
classNames = _5 === void 0 ? {} : _5,
|
|
13692
|
+
_6 = _a.verbiage,
|
|
13693
|
+
rawVerbiage = _6 === void 0 ? {} : _6;
|
|
13694
13694
|
var cameraRef = useContext(CameraStateContext).cameraRef;
|
|
13695
13695
|
var verbiage = useTranslations(rawVerbiage, {
|
|
13696
13696
|
idFrontInstructionText: 'Display the front of your ID card...',
|
|
@@ -13704,17 +13704,17 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13704
13704
|
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';
|
|
13705
13705
|
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;
|
|
13706
13706
|
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';
|
|
13707
|
-
var
|
|
13708
|
-
idCardGuideRef =
|
|
13709
|
-
|
|
13710
|
-
idCardGuideWidth =
|
|
13711
|
-
|
|
13712
|
-
idCardGuideHeight =
|
|
13707
|
+
var _7 = useResizeObserver(),
|
|
13708
|
+
idCardGuideRef = _7.ref,
|
|
13709
|
+
_8 = _7.width,
|
|
13710
|
+
idCardGuideWidth = _8 === void 0 ? 0 : _8,
|
|
13711
|
+
_9 = _7.height,
|
|
13712
|
+
idCardGuideHeight = _9 === void 0 ? 0 : _9;
|
|
13713
13713
|
var idCaptureGuideImages = useGuideImages(userSuppliedImages);
|
|
13714
13714
|
var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
|
|
13715
|
-
var
|
|
13716
|
-
aspectRatio =
|
|
13717
|
-
setAspectRatio =
|
|
13715
|
+
var _10 = useState(undefined),
|
|
13716
|
+
aspectRatio = _10[0],
|
|
13717
|
+
setAspectRatio = _10[1];
|
|
13718
13718
|
var onImageLoaded = useCallback(function (e) {
|
|
13719
13719
|
var _a, _b, _c, _d;
|
|
13720
13720
|
var img = e.currentTarget;
|
|
@@ -13731,6 +13731,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13731
13731
|
aspectRatio: aspectRatio
|
|
13732
13732
|
};
|
|
13733
13733
|
}, [idCardGuideWidth, idCardGuideHeight, aspectRatio]);
|
|
13734
|
+
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';
|
|
13734
13735
|
return /*#__PURE__*/React__default.createElement(Container, {
|
|
13735
13736
|
className: classNames.container
|
|
13736
13737
|
}, /*#__PURE__*/React__default.createElement(Inner, null, /*#__PURE__*/React__default.createElement(FaceGuideContainer, {
|
|
@@ -13741,7 +13742,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13741
13742
|
borderWidth: faceGuideBorderWidth,
|
|
13742
13743
|
borderColor: faceGuideBorderColor,
|
|
13743
13744
|
verticalAlign: "bottom"
|
|
13744
|
-
})), /*#__PURE__*/React__default.createElement(IdCardGuideContainer, {
|
|
13745
|
+
})), !disableIdGuides && ( /*#__PURE__*/React__default.createElement(IdCardGuideContainer, {
|
|
13745
13746
|
className: classNames.idCardGuideContainer,
|
|
13746
13747
|
ref: idCardGuideRef
|
|
13747
13748
|
}, /*#__PURE__*/React__default.createElement(IdCardGuideInner, {
|
|
@@ -13760,7 +13761,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13760
13761
|
}, /*#__PURE__*/React__default.createElement(IdCardGuideImage, {
|
|
13761
13762
|
alt: "",
|
|
13762
13763
|
className: classNames.idCardGuideImage,
|
|
13763
|
-
"$isMirrored": !((
|
|
13764
|
+
"$isMirrored": !((_v = cameraRef.current) === null || _v === void 0 ? void 0 : _v.isRearFacing),
|
|
13764
13765
|
style: idCardImageStyle,
|
|
13765
13766
|
src: requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
|
|
13766
13767
|
onLoad: onImageLoaded
|
|
@@ -13774,15 +13775,15 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
|
|
|
13774
13775
|
className: classNames.idCardGuideInstructionsContainer
|
|
13775
13776
|
}, /*#__PURE__*/React__default.createElement(IdCardGuideInstructions, {
|
|
13776
13777
|
className: classNames.idCardGuideInstructions,
|
|
13777
|
-
"$textColor": (
|
|
13778
|
-
"$background": (
|
|
13779
|
-
}, instructionText)))));
|
|
13778
|
+
"$textColor": (_x = (_w = theme.idVideoCapture) === null || _w === void 0 ? void 0 : _w.idCardGuides) === null || _x === void 0 ? void 0 : _x.instructionsTextColor,
|
|
13779
|
+
"$background": (_z = (_y = theme.idVideoCapture) === null || _y === void 0 ? void 0 : _y.idCardGuides) === null || _z === void 0 ? void 0 : _z.instructionsBackgroundColor
|
|
13780
|
+
}, instructionText))))));
|
|
13780
13781
|
};
|
|
13781
13782
|
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) {
|
|
13782
13783
|
var _a;
|
|
13783
13784
|
return (_a = props.theme) === null || _a === void 0 ? void 0 : _a.fontFamily;
|
|
13784
13785
|
});
|
|
13785
|
-
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"])));
|
|
13786
|
+
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"])));
|
|
13786
13787
|
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"])));
|
|
13787
13788
|
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"])));
|
|
13788
13789
|
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"])));
|
|
@@ -15106,6 +15107,9 @@ var defaultTheme = {
|
|
|
15106
15107
|
backgroundPosition: '0 0, 10px 10px'
|
|
15107
15108
|
},
|
|
15108
15109
|
idVideoCapture: {
|
|
15110
|
+
idCardGuides: {
|
|
15111
|
+
disableDuringLivenessCheck: false
|
|
15112
|
+
},
|
|
15109
15113
|
readTextPrompt: {
|
|
15110
15114
|
heading: {
|
|
15111
15115
|
backgroundColor: 'rgba(255, 255, 255, 0.5)',
|