idmission-web-sdk 1.0.198 → 1.0.199

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.
@@ -48,7 +48,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
48
48
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
49
49
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
50
50
 
51
- var webSdkVersion = '1.0.198';
51
+ var webSdkVersion = '1.0.199';
52
52
 
53
53
  function getPlatform() {
54
54
  if (typeof window === 'undefined') return;
@@ -13809,25 +13809,24 @@ var IdVideoCaptureFlipIdPrompt = function IdVideoCaptureFlipIdPrompt(_a) {
13809
13809
  };
13810
13810
 
13811
13811
  var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13812
- var _b;
13813
- var _c = _a.requestedAction,
13814
- requestedAction = _c === void 0 ? 'SHOW_ID_FRONT' : _c,
13815
- _d = _a.borderWidth,
13816
- borderWidth = _d === void 0 ? 3 : _d,
13817
- _e = _a.borderColor,
13818
- borderColor = _e === void 0 ? 'white' : _e,
13819
- _f = _a.assets,
13820
- assets = _f === void 0 ? {} : _f,
13821
- _g = _a.verbiage,
13822
- rawVerbiage = _g === void 0 ? {} : _g;
13812
+ var _b, _c, _d, _e;
13813
+ var _f = _a.requestedAction,
13814
+ requestedAction = _f === void 0 ? 'SHOW_ID_FRONT' : _f,
13815
+ borderWidth = _a.borderWidth,
13816
+ _g = _a.borderColor,
13817
+ borderColor = _g === void 0 ? 'white' : _g,
13818
+ _h = _a.assets,
13819
+ assets = _h === void 0 ? {} : _h,
13820
+ _j = _a.verbiage,
13821
+ rawVerbiage = _j === void 0 ? {} : _j;
13823
13822
  var cameraRef = React.useContext(CameraStateContext).cameraRef;
13824
13823
  var imageRef = React.useRef(null);
13825
- var _h = React.useState(0),
13826
- imageWidth = _h[0],
13827
- setImageWidth = _h[1];
13828
- var _j = React.useState(0),
13829
- imageHeight = _j[0],
13830
- setImageHeight = _j[1];
13824
+ var _k = React.useState(0),
13825
+ imageWidth = _k[0],
13826
+ setImageWidth = _k[1];
13827
+ var _l = React.useState(0),
13828
+ imageHeight = _l[0],
13829
+ setImageHeight = _l[1];
13831
13830
  assets.frontImageUrl || (assets.frontImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-2.svg"));
13832
13831
  assets.backImageUrl || (assets.backImageUrl = "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Back-SVG-Landscape-2.svg"));
13833
13832
  var verbiage = useTranslations(rawVerbiage, {
@@ -13836,6 +13835,8 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13836
13835
  });
13837
13836
  var instructionText = requestedAction === 'SHOW_ID_FRONT' ? verbiage.idFrontInstructionText : verbiage.idBackInstructionText;
13838
13837
  var idGuideWidth = typeof window !== 'undefined' && window.innerWidth > window.innerHeight ? '30%' : '75%';
13838
+ var theme = styled.useTheme();
13839
+ if (borderWidth === undefined) borderWidth = (_d = (_c = (_b = theme.idVideoCapture) === null || _b === void 0 ? void 0 : _b.idCardGuides) === null || _c === void 0 ? void 0 : _c.borderWidth) !== null && _d !== void 0 ? _d : 4;
13839
13840
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
13840
13841
  style: {
13841
13842
  position: 'absolute',
@@ -13898,7 +13899,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
13898
13899
  ref: imageRef,
13899
13900
  src: requestedAction === 'SHOW_ID_BACK' ? assets.backImageUrl : assets.frontImageUrl,
13900
13901
  alt: "",
13901
- "$isMirrored": !((_b = cameraRef.current) === null || _b === void 0 ? void 0 : _b.isRearFacing),
13902
+ "$isMirrored": !((_e = cameraRef.current) === null || _e === void 0 ? void 0 : _e.isRearFacing),
13902
13903
  onLoad: function onLoad() {
13903
13904
  var _a, _b, _c, _d;
13904
13905
  if (!imageWidth) setImageWidth((_b = (_a = imageRef.current) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : 0);