idmission-web-sdk 1.0.319 → 1.0.320

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 LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
50
50
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
51
51
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
52
52
 
53
- var webSdkVersion = '1.0.319';
53
+ var webSdkVersion = '1.0.320';
54
54
 
55
55
  function getPlatform() {
56
56
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -16305,17 +16305,18 @@ var IdVideoCapture = function IdVideoCapture(_a) {
16305
16305
  if (goodFramesCount === 1) setFirstGoodFrameTime(new Date().getTime());
16306
16306
  }, [goodFramesCount]);
16307
16307
  var delaySatisfied = requestedAction !== 'SHOW_ID_FRONT' || idFrontCaptureStartedAt !== null && new Date().getTime() > idFrontCaptureStartedAt + idCardFrontDelay;
16308
+ var translatedText = useVerbiage(readTextPrompt, '');
16308
16309
  var onIdBackCaptureComplete = React.useCallback(function () {
16309
16310
  var _a;
16310
- if (readTextPrompt) {
16311
+ if (translatedText) {
16311
16312
  setRequestedAction('READ_TEXT');
16312
16313
  startRecordingAudio();
16313
16314
  setIdCaptureVideoAudioStartsAt(new Date().getTime() - ((_a = videoStartsAt === null || videoStartsAt === void 0 ? void 0 : videoStartsAt.getTime()) !== null && _a !== void 0 ? _a : 0));
16314
- setExpectedAudioText(readTextPrompt);
16315
+ setExpectedAudioText(translatedText);
16315
16316
  } else {
16316
16317
  stopRecordingVideo();
16317
16318
  }
16318
- }, [readTextPrompt, setIdCaptureVideoAudioStartsAt, startRecordingAudio, stopRecordingVideo, videoStartsAt]);
16319
+ }, [translatedText, setIdCaptureVideoAudioStartsAt, startRecordingAudio, stopRecordingVideo, videoStartsAt]);
16319
16320
  var frameWidth = (_c = (_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) !== null && _c !== void 0 ? _c : 0;
16320
16321
  var frameHeight = (_e = (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) !== null && _e !== void 0 ? _e : 0;
16321
16322
  var faceBox = (_f = faces === null || faces === void 0 ? void 0 : faces[0]) === null || _f === void 0 ? void 0 : _f.box;