idmission-web-sdk 2.2.146 → 2.2.148

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.146';
214
+ var webSdkVersion = '2.2.148';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -17871,18 +17871,7 @@
17871
17871
  }
17872
17872
  });
17873
17873
  }
17874
- if (typeof ImageCapture !== 'undefined') {
17875
- var tracks = videoStream.getTracks();
17876
- var videoCameraTrack = tracks.find(function (track) {
17877
- return track.kind === 'video';
17878
- });
17879
- if (videoCameraTrack) {
17880
- var imageCapture = new ImageCapture(videoCameraTrack);
17881
- imageCapture.takePhoto().then(onComplete)["catch"](function () {});
17882
- } else {
17883
- throw new Error('Failed to find a video feed for taking a photo');
17884
- }
17885
- } else if (videoTag) {
17874
+ if (videoTag) {
17886
17875
  var canvas = document.createElement('canvas');
17887
17876
  drawToCanvas(canvas, videoTag);
17888
17877
  canvas.toBlob(onComplete);
@@ -25725,6 +25714,7 @@
25725
25714
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
25726
25715
  customerDataMatchConfig = _a.customerDataMatchConfig,
25727
25716
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
25717
+ precapturedDocuments = _a.precapturedDocuments,
25728
25718
  _c = _a.idCaptureLoadingOverlayMode,
25729
25719
  idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
25730
25720
  _d = _a.idCaptureRequirement,
@@ -25815,6 +25805,7 @@
25815
25805
  classNames: classNames.idCapture,
25816
25806
  colors: colors.idCapture,
25817
25807
  verbiage: verbiage.idCapture,
25808
+ precapturedDocuments: precapturedDocuments,
25818
25809
  captureRequirement: idCaptureRequirement,
25819
25810
  allowSinglePageIdCapture: allowSinglePageIdCapture,
25820
25811
  thresholds: idCaptureThresholds,
@@ -25837,7 +25828,7 @@
25837
25828
  skipSuccessScreen: skipSuccessScreen,
25838
25829
  debugMode: debugMode
25839
25830
  };
25840
- }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, separateIdCardCaptureSequence, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
25831
+ }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, separateIdCardCaptureSequence, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
25841
25832
  var faceLivenessProps = React.useMemo(function () {
25842
25833
  return {
25843
25834
  onExitCapture: onExitCapture,
@@ -25916,6 +25907,7 @@
25916
25907
  action: SubmissionAction.ENROLL,
25917
25908
  submissionUrl: submissionUrl,
25918
25909
  documentServiceUrl: documentServiceUrl,
25910
+ precapturedDocuments: precapturedDocuments,
25919
25911
  companyId: companyId,
25920
25912
  jobId: jobId,
25921
25913
  taskId: taskId,