idmission-web-sdk 2.1.79 → 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.
@@ -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.79';
237
+ var webSdkVersion = '2.1.80';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -13701,26 +13701,26 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
13701
13701
  };
13702
13702
 
13703
13703
  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 _y = _a.requestedAction,
13706
- requestedAction = _y === void 0 ? 'SHOW_ID_FRONT' : _y,
13707
- _z = _a.satisfied,
13708
- satisfied = _z === void 0 ? false : _z,
13709
- _0 = _a.faceGuideStatus,
13710
- faceGuideStatus = _0 === void 0 ? 'success' : _0,
13704
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
13705
+ var _0 = _a.requestedAction,
13706
+ requestedAction = _0 === void 0 ? 'SHOW_ID_FRONT' : _0,
13707
+ _1 = _a.satisfied,
13708
+ satisfied = _1 === void 0 ? false : _1,
13709
+ _2 = _a.faceGuideStatus,
13710
+ faceGuideStatus = _2 === void 0 ? 'success' : _2,
13711
13711
  faceGuideBorderWidth = _a.faceGuideBorderWidth,
13712
13712
  faceGuideBorderColor = _a.faceGuideBorderColor,
13713
- _1 = _a.idCardGuideStatus,
13714
- idCardGuideStatus = _1 === void 0 ? 'ready' : _1,
13713
+ _3 = _a.idCardGuideStatus,
13714
+ idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
13715
13715
  idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
13716
13716
  idCardGuideBorderColor = _a.idCardGuideBorderColor,
13717
13717
  idCardCaptureProgress = _a.idCardCaptureProgress,
13718
- _2 = _a.idCardCaptureGuideImages,
13719
- userSuppliedImages = _2 === void 0 ? defaultIdCaptureGuideImages : _2,
13720
- _3 = _a.classNames,
13721
- classNames = _3 === void 0 ? {} : _3,
13722
- _4 = _a.verbiage,
13723
- rawVerbiage = _4 === void 0 ? {} : _4;
13718
+ _4 = _a.idCardCaptureGuideImages,
13719
+ userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
13720
+ _5 = _a.classNames,
13721
+ classNames = _5 === void 0 ? {} : _5,
13722
+ _6 = _a.verbiage,
13723
+ rawVerbiage = _6 === void 0 ? {} : _6;
13724
13724
  var cameraRef = React.useContext(CameraStateContext).cameraRef;
13725
13725
  var verbiage = useTranslations(rawVerbiage, {
13726
13726
  idFrontInstructionText: 'Display the front of your ID card...',
@@ -13734,17 +13734,17 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13734
13734
  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
13735
  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
13736
  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 _5 = useResizeObserver__default.default(),
13738
- idCardGuideRef = _5.ref,
13739
- _6 = _5.width,
13740
- idCardGuideWidth = _6 === void 0 ? 0 : _6,
13741
- _7 = _5.height,
13742
- idCardGuideHeight = _7 === void 0 ? 0 : _7;
13737
+ var _7 = useResizeObserver__default.default(),
13738
+ idCardGuideRef = _7.ref,
13739
+ _8 = _7.width,
13740
+ idCardGuideWidth = _8 === void 0 ? 0 : _8,
13741
+ _9 = _7.height,
13742
+ idCardGuideHeight = _9 === void 0 ? 0 : _9;
13743
13743
  var idCaptureGuideImages = useGuideImages(userSuppliedImages);
13744
13744
  var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
13745
- var _8 = React.useState(undefined),
13746
- aspectRatio = _8[0],
13747
- setAspectRatio = _8[1];
13745
+ var _10 = React.useState(undefined),
13746
+ aspectRatio = _10[0],
13747
+ setAspectRatio = _10[1];
13748
13748
  var onImageLoaded = React.useCallback(function (e) {
13749
13749
  var _a, _b, _c, _d;
13750
13750
  var img = e.currentTarget;
@@ -13761,6 +13761,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13761
13761
  aspectRatio: aspectRatio
13762
13762
  };
13763
13763
  }, [idCardGuideWidth, idCardGuideHeight, aspectRatio]);
13764
+ 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
13765
  return /*#__PURE__*/React__namespace.default.createElement(Container, {
13765
13766
  className: classNames.container
13766
13767
  }, /*#__PURE__*/React__namespace.default.createElement(Inner, null, /*#__PURE__*/React__namespace.default.createElement(FaceGuideContainer, {
@@ -13771,7 +13772,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13771
13772
  borderWidth: faceGuideBorderWidth,
13772
13773
  borderColor: faceGuideBorderColor,
13773
13774
  verticalAlign: "bottom"
13774
- })), /*#__PURE__*/React__namespace.default.createElement(IdCardGuideContainer, {
13775
+ })), !disableIdGuides && ( /*#__PURE__*/React__namespace.default.createElement(IdCardGuideContainer, {
13775
13776
  className: classNames.idCardGuideContainer,
13776
13777
  ref: idCardGuideRef
13777
13778
  }, /*#__PURE__*/React__namespace.default.createElement(IdCardGuideInner, {
@@ -13790,7 +13791,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13790
13791
  }, /*#__PURE__*/React__namespace.default.createElement(IdCardGuideImage, {
13791
13792
  alt: "",
13792
13793
  className: classNames.idCardGuideImage,
13793
- "$isMirrored": !((_t = cameraRef.current) === null || _t === void 0 ? void 0 : _t.isRearFacing),
13794
+ "$isMirrored": !((_v = cameraRef.current) === null || _v === void 0 ? void 0 : _v.isRearFacing),
13794
13795
  style: idCardImageStyle,
13795
13796
  src: requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
13796
13797
  onLoad: onImageLoaded
@@ -13804,15 +13805,15 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13804
13805
  className: classNames.idCardGuideInstructionsContainer
13805
13806
  }, /*#__PURE__*/React__namespace.default.createElement(IdCardGuideInstructions, {
13806
13807
  className: classNames.idCardGuideInstructions,
13807
- "$textColor": (_v = (_u = theme.idVideoCapture) === null || _u === void 0 ? void 0 : _u.idCardGuides) === null || _v === void 0 ? void 0 : _v.instructionsTextColor,
13808
- "$background": (_x = (_w = theme.idVideoCapture) === null || _w === void 0 ? void 0 : _w.idCardGuides) === null || _x === void 0 ? void 0 : _x.instructionsBackgroundColor
13809
- }, instructionText)))));
13808
+ "$textColor": (_x = (_w = theme.idVideoCapture) === null || _w === void 0 ? void 0 : _w.idCardGuides) === null || _x === void 0 ? void 0 : _x.instructionsTextColor,
13809
+ "$background": (_z = (_y = theme.idVideoCapture) === null || _y === void 0 ? void 0 : _y.idCardGuides) === null || _z === void 0 ? void 0 : _z.instructionsBackgroundColor
13810
+ }, instructionText))))));
13810
13811
  };
13811
13812
  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
13813
  var _a;
13813
13814
  return (_a = props.theme) === null || _a === void 0 ? void 0 : _a.fontFamily;
13814
13815
  });
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"])));
13816
+ 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
13817
  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
13818
  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
13819
  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 +15137,9 @@ var defaultTheme = {
15136
15137
  backgroundPosition: '0 0, 10px 10px'
15137
15138
  },
15138
15139
  idVideoCapture: {
15140
+ idCardGuides: {
15141
+ disableDuringLivenessCheck: false
15142
+ },
15139
15143
  readTextPrompt: {
15140
15144
  heading: {
15141
15145
  backgroundColor: 'rgba(255, 255, 255, 0.5)',