idmission-web-sdk 1.0.331 → 1.0.332

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.331';
53
+ var webSdkVersion = '1.0.332';
54
54
 
55
55
  function getPlatform() {
56
56
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -15359,12 +15359,15 @@ var useVideoRecorder = function useVideoRecorder(camera) {
15359
15359
  videoChunks.current.push(e.data);
15360
15360
  };
15361
15361
  mediaRecorder.current.onstop = function () {
15362
+ console.log('button_fail 2');
15362
15363
  console.log('button_fail', 'useVideoRecorder:mediaRecorder.current.onstop');
15363
15364
  var blobFile = new Blob(videoChunks.current, {
15364
15365
  type: 'video/mp4'
15365
15366
  });
15367
+ console.log('button_fail', 'useVideoRecorder:mediaRecorder.current.onstop - blob made:', blobFile);
15366
15368
  videoChunks.current = [];
15367
15369
  setVideoUrl(URL.createObjectURL(blobFile));
15370
+ console.log('button_fail', 'useVideoRecorder:mediaRecorder.current.onstop - setVideoUrl:', URL.createObjectURL(blobFile));
15368
15371
  setIsRecording(false);
15369
15372
  camera === null || camera === void 0 ? void 0 : camera.release();
15370
15373
  };
@@ -15372,6 +15375,7 @@ var useVideoRecorder = function useVideoRecorder(camera) {
15372
15375
  }, [camera, stream]);
15373
15376
  var stopRecording = React.useCallback(function () {
15374
15377
  var _a;
15378
+ console.log('button_fail 1');
15375
15379
  console.log('button_fail', 'useVideoRecorder:stopRecording');
15376
15380
  (_a = mediaRecorder.current) === null || _a === void 0 ? void 0 : _a.stop();
15377
15381
  }, []);
@@ -16149,6 +16153,8 @@ var IdVideoCapture = function IdVideoCapture(_a) {
16149
16153
  }
16150
16154
  if (videoUrl) {
16151
16155
  setVideoLoaded(false);
16156
+ console.log('button_fail 3');
16157
+ console.log('button_fail', 'IdVideoCapture:useEffect watching isRecording - done');
16152
16158
  onComplete === null || onComplete === void 0 ? void 0 : onComplete(videoUrl);
16153
16159
  }
16154
16160
  }, [isRecording, onComplete, setVideoLoaded, startRecording, videoUrl]);
@@ -16616,7 +16622,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
16616
16622
  setIdCaptureVideoIdBackImage = _1.setIdCaptureVideoIdBackImage;
16617
16623
  var _2 = React.useState('CAPTURING_ID'),
16618
16624
  captureState = _2[0],
16619
- setCaptureState = _2[1];
16625
+ setCaptureState = _2[1]; //CAPTURING_VIDEO
16620
16626
  React.useEffect(function () {
16621
16627
  if (skipIdCapture && captureState === 'CAPTURING_ID') setCaptureState('CHECKING_LIVENESS');
16622
16628
  }, [captureState, skipIdCapture]);
@@ -16636,6 +16642,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
16636
16642
  var onVideoCaptureComplete = React.useCallback(function (videoUrl) {
16637
16643
  return tslib.__awaiter(void 0, void 0, void 0, function () {
16638
16644
  return tslib.__generator(this, function (_a) {
16645
+ console.log('button_fail', 'IdVideoCaptureWizard:onVideoCaptureComplete - videoUrl:', videoUrl);
16639
16646
  setIdCaptureVideoUrl(videoUrl);
16640
16647
  setCaptureState('SUCCESS');
16641
16648
  if (skipSuccessScreen) onComplete === null || onComplete === void 0 ? void 0 : onComplete();
@@ -16854,6 +16861,8 @@ var CompositeWizardComponent = function CompositeWizardComponent(_a) {
16854
16861
  }, [onIdCaptureSuccessProp]);
16855
16862
  var onVideoIdCaptureCompleteProp = videoIdCaptureProps.onComplete;
16856
16863
  var onVideoIdCaptureComplete = React.useCallback(function () {
16864
+ console.log('button_fail 4');
16865
+ console.log('button_fail', 'CompositeWizard:onVideoIdCaptureComplete - onVideoIdCaptureComplete', onVideoIdCaptureCompleteProp);
16857
16866
  onVideoIdCaptureCompleteProp === null || onVideoIdCaptureCompleteProp === void 0 ? void 0 : onVideoIdCaptureCompleteProp();
16858
16867
  setCheckIndex(function (i) {
16859
16868
  return i + 1;