idmission-web-sdk 1.0.20 → 1.0.22

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.
@@ -50,7 +50,7 @@ var tf__namespace = /*#__PURE__*/_interopNamespace(tf);
50
50
  var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
51
51
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
52
52
 
53
- var webSdkVersion = '1.0.20';
53
+ var webSdkVersion = '1.0.22';
54
54
 
55
55
  function getPlatform() {
56
56
  return window.platform;
@@ -14262,6 +14262,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
14262
14262
  guideImageUrl = _d === void 0 ? "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-Front-SVG-Landscape-2.svg") : _d,
14263
14263
  _e = _a.flipping,
14264
14264
  flipping = _e === void 0 ? false : _e;
14265
+ var idGuideWidth = window.innerWidth > window.innerHeight ? '30%' : '75%';
14265
14266
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
14266
14267
  style: {
14267
14268
  position: 'absolute',
@@ -14283,12 +14284,12 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
14283
14284
  }
14284
14285
  }), flipping ? /*#__PURE__*/React__default['default'].createElement(IdVideoCaptureFlipIdPrompt, {
14285
14286
  style: {
14286
- width: '30%',
14287
+ width: idGuideWidth,
14287
14288
  margin: '2% auto 2%'
14288
14289
  }
14289
14290
  }) : /*#__PURE__*/React__default['default'].createElement("div", {
14290
14291
  style: {
14291
- width: '30%',
14292
+ width: idGuideWidth,
14292
14293
  margin: '2% auto 2%',
14293
14294
  display: 'flex',
14294
14295
  flexFlow: 'column nowrap'
@@ -14312,7 +14313,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
14312
14313
  }
14313
14314
  }, instructionText)), /*#__PURE__*/React__default['default'].createElement("div", {
14314
14315
  style: {
14315
- border: '4px solid white'
14316
+ border: "4px solid ".concat(borderColor)
14316
14317
  }
14317
14318
  }, /*#__PURE__*/React__default['default'].createElement("img", {
14318
14319
  src: guideImageUrl,
@@ -14348,7 +14349,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14348
14349
  _h = _a.idDetectionThreshold,
14349
14350
  idDetectionThreshold = _h === void 0 ? 0.6 : _h,
14350
14351
  _j = _a.idFocusThreshold,
14351
- idFocusThreshold = _j === void 0 ? 0.25 : _j,
14352
+ idFocusThreshold = _j === void 0 ? 0.15 : _j,
14352
14353
  _k = _a.goodFramesThreshold,
14353
14354
  goodFramesThreshold = _k === void 0 ? 3 : _k,
14354
14355
  _l = _a.verbiage,
@@ -14485,6 +14486,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14485
14486
  }, /*#__PURE__*/React__default['default'].createElement(CameraVideoTag, null), /*#__PURE__*/React__default['default'].createElement(IdVideoCaptureGuides, {
14486
14487
  instructionText: requestedDocumentType === DocumentType.ID_CARD_FRONT ? verbiage.idFrontInstructionText : verbiage.idBackInstructionText,
14487
14488
  guideImageUrl: "".concat(DEFAULT_CDN_URL, "/Shieldout-IDCard-").concat(requestedDocumentType === DocumentType.ID_CARD_FRONT ? 'Front' : 'Back', "-SVG-Landscape-2.svg"),
14489
+ borderColor: goodFramesCount > 0 ? 'green' : 'white',
14488
14490
  flipping: flippingIdCard
14489
14491
  }), debugMode && detectedObjects.length > 0 && /*#__PURE__*/React__default['default'].createElement(ObjectDetectionDebugOverlay, {
14490
14492
  "$flipX": !((_f = cameraRef.current) === null || _f === void 0 ? void 0 : _f.isRearFacing)