idmission-web-sdk 1.0.185 → 1.0.186

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.185';
51
+ var webSdkVersion = '1.0.186';
52
52
 
53
53
  function getPlatform() {
54
54
  if (typeof window === 'undefined') return;
@@ -14171,6 +14171,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14171
14171
  stopRecording();
14172
14172
  }
14173
14173
  }, [readTextPrompt, stopRecording]);
14174
+ var satisfied = goodFramesCount > 0 && faceCentered;
14174
14175
  React.useEffect(function () {
14175
14176
  (function () {
14176
14177
  return tslib.__awaiter(void 0, void 0, void 0, function () {
@@ -14178,7 +14179,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14178
14179
  return tslib.__generator(this, function (_a) {
14179
14180
  switch (_a.label) {
14180
14181
  case 0:
14181
- if (!goodFramesThresholdMet) return [3 /*break*/, 5];
14182
+ if (!satisfied) return [3 /*break*/, 5];
14182
14183
  setCurrentDetectionScore(0);
14183
14184
  setCurrentFocusScore(0);
14184
14185
  setGoodFramesCount(0);
@@ -14219,7 +14220,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14219
14220
  });
14220
14221
  });
14221
14222
  })();
14222
- }, [captureFrame, goodFramesThresholdMet, onIdBackCaptureComplete, onIdBackImageCaptured, onIdFrontImageCaptured, requestedAction, resetBestFrame, skipShowIdCardBack]);
14223
+ }, [captureFrame, satisfied, onIdBackCaptureComplete, onIdBackImageCaptured, onIdFrontImageCaptured, requestedAction, resetBestFrame, skipShowIdCardBack]);
14223
14224
  var onReadTextTimeout = React.useCallback(function () {
14224
14225
  stopRecording();
14225
14226
  }, [stopRecording]);
@@ -14261,7 +14262,6 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14261
14262
  videoWidth: (_g = (_f = videoRef.current) === null || _f === void 0 ? void 0 : _f.videoWidth) !== null && _g !== void 0 ? _g : 0,
14262
14263
  videoHeight: (_j = (_h = videoRef.current) === null || _h === void 0 ? void 0 : _h.videoHeight) !== null && _j !== void 0 ? _j : 0
14263
14264
  });
14264
- var satisfied = goodFramesCount > 0 && faceCentered;
14265
14265
  return /*#__PURE__*/React__default['default'].createElement(PageContainer, {
14266
14266
  ref: ref,
14267
14267
  className: "flex ".concat((_k = classNames.container) !== null && _k !== void 0 ? _k : '')