idmission-web-sdk 2.2.102 → 2.2.104

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.102';
214
+ var webSdkVersion = '2.2.104';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -18342,6 +18342,8 @@
18342
18342
  }
18343
18343
  if (!isMobile() && documentToCapture || useFallback) {
18344
18344
  return /*#__PURE__*/React.createElement(DocumentCaptureWizard, {
18345
+ classNames: classNames === null || classNames === void 0 ? void 0 : classNames.documentCaptureClassNames,
18346
+ verbiage: rawVerbiage === null || rawVerbiage === void 0 ? void 0 : rawVerbiage.documentCaptureVerbiage,
18345
18347
  documents: [{
18346
18348
  title: documentToCapture
18347
18349
  }],
@@ -20283,6 +20285,8 @@
20283
20285
  if (usingDocumentCapture || silentFallback && !!invalidSelfie && !image && !isMobile() // desktop silent fallback - not a very realistic situation
20284
20286
  ) {
20285
20287
  return /*#__PURE__*/React.createElement(DocumentCaptureWizard, {
20288
+ classNames: classNames === null || classNames === void 0 ? void 0 : classNames.documentCaptureClassNames,
20289
+ verbiage: rawVerbiage === null || rawVerbiage === void 0 ? void 0 : rawVerbiage.documentCaptureVerbiage,
20286
20290
  documents: [{
20287
20291
  title: invalidSelfie ? verbiage.livenessFailedText : verbiage.descriptionText
20288
20292
  }],
@@ -25615,6 +25619,8 @@
25615
25619
  enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
25616
25620
  _u = _a.allowOverrideWrongDocumentTypeAfterMs,
25617
25621
  allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
25622
+ _v = _a.allowUploadingDocumentsFromStorage,
25623
+ allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
25618
25624
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
25619
25625
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
25620
25626
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -25630,31 +25636,31 @@
25630
25636
  onIdCaptureModelError = _a.onIdCaptureModelError,
25631
25637
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
25632
25638
  onCameraAccessDenied = _a.onCameraAccessDenied,
25633
- _v = _a.captureSignature,
25634
- captureSignature = _v === void 0 ? false : _v,
25635
- _w = _a.captureSignatureVideo,
25636
- captureSignatureVideo = _w === void 0 ? false : _w,
25637
- _x = _a.captureAdditionalDocuments,
25638
- captureAdditionalDocuments = _x === void 0 ? [] : _x,
25639
- _y = _a.captureVideoId,
25640
- captureVideoId = _y === void 0 ? false : _y,
25639
+ _w = _a.captureSignature,
25640
+ captureSignature = _w === void 0 ? false : _w,
25641
+ _x = _a.captureSignatureVideo,
25642
+ captureSignatureVideo = _x === void 0 ? false : _x,
25643
+ _y = _a.captureAdditionalDocuments,
25644
+ captureAdditionalDocuments = _y === void 0 ? [] : _y,
25645
+ _z = _a.captureVideoId,
25646
+ captureVideoId = _z === void 0 ? false : _z,
25641
25647
  captureVideoIdProps = _a.captureVideoIdProps,
25642
- _z = _a.theme,
25643
- theme = _z === void 0 ? 'default' : _z,
25644
- _0 = _a.assets,
25645
- assets = _0 === void 0 ? {} : _0,
25646
- _1 = _a.classNames,
25647
- classNames = _1 === void 0 ? {} : _1,
25648
- _2 = _a.colors,
25649
- colors = _2 === void 0 ? {} : _2,
25650
- _3 = _a.verbiage,
25651
- verbiage = _3 === void 0 ? {} : _3,
25652
- _4 = _a.geolocationEnabled,
25653
- geolocationEnabled = _4 === void 0 ? true : _4,
25654
- _5 = _a.geolocationRequired,
25655
- geolocationRequired = _5 === void 0 ? false : _5,
25656
- _6 = _a.debugMode,
25657
- debugMode = _6 === void 0 ? false : _6;
25648
+ _0 = _a.theme,
25649
+ theme = _0 === void 0 ? 'default' : _0,
25650
+ _1 = _a.assets,
25651
+ assets = _1 === void 0 ? {} : _1,
25652
+ _2 = _a.classNames,
25653
+ classNames = _2 === void 0 ? {} : _2,
25654
+ _3 = _a.colors,
25655
+ colors = _3 === void 0 ? {} : _3,
25656
+ _4 = _a.verbiage,
25657
+ verbiage = _4 === void 0 ? {} : _4,
25658
+ _5 = _a.geolocationEnabled,
25659
+ geolocationEnabled = _5 === void 0 ? true : _5,
25660
+ _6 = _a.geolocationRequired,
25661
+ geolocationRequired = _6 === void 0 ? false : _6,
25662
+ _7 = _a.debugMode,
25663
+ debugMode = _7 === void 0 ? false : _7;
25658
25664
  useLanguage(lang);
25659
25665
  useDebugLogging(debugMode);
25660
25666
  var idCaptureProps = React.useMemo(function () {
@@ -25677,13 +25683,14 @@
25677
25683
  forceFallbackMode: idCaptureForceFallbackMode,
25678
25684
  enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
25679
25685
  allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
25686
+ allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
25680
25687
  onExitCapture: onExitCapture,
25681
25688
  onUserCancel: onUserCancel,
25682
25689
  onModelError: onIdCaptureModelError,
25683
25690
  skipSuccessScreen: skipSuccessScreen,
25684
25691
  debugMode: debugMode
25685
25692
  };
25686
- }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
25693
+ }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, allowUploadingDocumentsFromStorage, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
25687
25694
  var faceLivenessProps = React.useMemo(function () {
25688
25695
  return {
25689
25696
  onExitCapture: onExitCapture,