idmission-web-sdk 1.0.331 → 1.0.333

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.333';
54
54
 
55
55
  function getPlatform() {
56
56
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -15359,21 +15359,27 @@ 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
  };
15371
15374
  mediaRecorder.current.start();
15372
15375
  }, [camera, stream]);
15373
15376
  var stopRecording = React.useCallback(function () {
15374
- var _a;
15377
+ var _a, _b;
15378
+ console.log('button_fail 1');
15375
15379
  console.log('button_fail', 'useVideoRecorder:stopRecording');
15376
- (_a = mediaRecorder.current) === null || _a === void 0 ? void 0 : _a.stop();
15380
+ console.log('button_fail', 'mediaRecorder:', mediaRecorder.current);
15381
+ console.log('button_fail', 'mediaRecorder:onstop:', (_a = mediaRecorder.current) === null || _a === void 0 ? void 0 : _a.onstop);
15382
+ (_b = mediaRecorder.current) === null || _b === void 0 ? void 0 : _b.stop();
15377
15383
  }, []);
15378
15384
  return {
15379
15385
  isRecording: isRecording,
@@ -16149,6 +16155,8 @@ var IdVideoCapture = function IdVideoCapture(_a) {
16149
16155
  }
16150
16156
  if (videoUrl) {
16151
16157
  setVideoLoaded(false);
16158
+ console.log('button_fail 3');
16159
+ console.log('button_fail', 'IdVideoCapture:useEffect watching isRecording - done');
16152
16160
  onComplete === null || onComplete === void 0 ? void 0 : onComplete(videoUrl);
16153
16161
  }
16154
16162
  }, [isRecording, onComplete, setVideoLoaded, startRecording, videoUrl]);
@@ -16616,7 +16624,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
16616
16624
  setIdCaptureVideoIdBackImage = _1.setIdCaptureVideoIdBackImage;
16617
16625
  var _2 = React.useState('CAPTURING_ID'),
16618
16626
  captureState = _2[0],
16619
- setCaptureState = _2[1];
16627
+ setCaptureState = _2[1]; //CAPTURING_VIDEO
16620
16628
  React.useEffect(function () {
16621
16629
  if (skipIdCapture && captureState === 'CAPTURING_ID') setCaptureState('CHECKING_LIVENESS');
16622
16630
  }, [captureState, skipIdCapture]);
@@ -16636,6 +16644,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
16636
16644
  var onVideoCaptureComplete = React.useCallback(function (videoUrl) {
16637
16645
  return tslib.__awaiter(void 0, void 0, void 0, function () {
16638
16646
  return tslib.__generator(this, function (_a) {
16647
+ console.log('button_fail', 'IdVideoCaptureWizard:onVideoCaptureComplete - videoUrl:', videoUrl);
16639
16648
  setIdCaptureVideoUrl(videoUrl);
16640
16649
  setCaptureState('SUCCESS');
16641
16650
  if (skipSuccessScreen) onComplete === null || onComplete === void 0 ? void 0 : onComplete();
@@ -16854,6 +16863,8 @@ var CompositeWizardComponent = function CompositeWizardComponent(_a) {
16854
16863
  }, [onIdCaptureSuccessProp]);
16855
16864
  var onVideoIdCaptureCompleteProp = videoIdCaptureProps.onComplete;
16856
16865
  var onVideoIdCaptureComplete = React.useCallback(function () {
16866
+ console.log('button_fail 4');
16867
+ console.log('button_fail', 'CompositeWizard:onVideoIdCaptureComplete - onVideoIdCaptureComplete', onVideoIdCaptureCompleteProp);
16857
16868
  onVideoIdCaptureCompleteProp === null || onVideoIdCaptureCompleteProp === void 0 ? void 0 : onVideoIdCaptureCompleteProp();
16858
16869
  setCheckIndex(function (i) {
16859
16870
  return i + 1;