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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.2.102';
207
+ var webSdkVersion = '2.2.104';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -9042,6 +9042,8 @@ var IdCaptureFallback = function IdCaptureFallback(_a) {
9042
9042
  }
9043
9043
  if (!isMobile() && documentToCapture || useFallback) {
9044
9044
  return /*#__PURE__*/React__default.createElement(DocumentCaptureWizard, {
9045
+ classNames: classNames === null || classNames === void 0 ? void 0 : classNames.documentCaptureClassNames,
9046
+ verbiage: rawVerbiage === null || rawVerbiage === void 0 ? void 0 : rawVerbiage.documentCaptureVerbiage,
9045
9047
  documents: [{
9046
9048
  title: documentToCapture
9047
9049
  }],
@@ -10983,6 +10985,8 @@ var SelfieCaptureFallback = function SelfieCaptureFallback(_a) {
10983
10985
  if (usingDocumentCapture || silentFallback && !!invalidSelfie && !image && !isMobile() // desktop silent fallback - not a very realistic situation
10984
10986
  ) {
10985
10987
  return /*#__PURE__*/React__default.createElement(DocumentCaptureWizard, {
10988
+ classNames: classNames === null || classNames === void 0 ? void 0 : classNames.documentCaptureClassNames,
10989
+ verbiage: rawVerbiage === null || rawVerbiage === void 0 ? void 0 : rawVerbiage.documentCaptureVerbiage,
10986
10990
  documents: [{
10987
10991
  title: invalidSelfie ? verbiage.livenessFailedText : verbiage.descriptionText
10988
10992
  }],
@@ -15547,6 +15551,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15547
15551
  enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
15548
15552
  _u = _a.allowOverrideWrongDocumentTypeAfterMs,
15549
15553
  allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
15554
+ _v = _a.allowUploadingDocumentsFromStorage,
15555
+ allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
15550
15556
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
15551
15557
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
15552
15558
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -15562,31 +15568,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15562
15568
  onIdCaptureModelError = _a.onIdCaptureModelError,
15563
15569
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
15564
15570
  onCameraAccessDenied = _a.onCameraAccessDenied,
15565
- _v = _a.captureSignature,
15566
- captureSignature = _v === void 0 ? false : _v,
15567
- _w = _a.captureSignatureVideo,
15568
- captureSignatureVideo = _w === void 0 ? false : _w,
15569
- _x = _a.captureAdditionalDocuments,
15570
- captureAdditionalDocuments = _x === void 0 ? [] : _x,
15571
- _y = _a.captureVideoId,
15572
- captureVideoId = _y === void 0 ? false : _y,
15571
+ _w = _a.captureSignature,
15572
+ captureSignature = _w === void 0 ? false : _w,
15573
+ _x = _a.captureSignatureVideo,
15574
+ captureSignatureVideo = _x === void 0 ? false : _x,
15575
+ _y = _a.captureAdditionalDocuments,
15576
+ captureAdditionalDocuments = _y === void 0 ? [] : _y,
15577
+ _z = _a.captureVideoId,
15578
+ captureVideoId = _z === void 0 ? false : _z,
15573
15579
  captureVideoIdProps = _a.captureVideoIdProps,
15574
- _z = _a.theme,
15575
- theme = _z === void 0 ? 'default' : _z,
15576
- _0 = _a.assets,
15577
- assets = _0 === void 0 ? {} : _0,
15578
- _1 = _a.classNames,
15579
- classNames = _1 === void 0 ? {} : _1,
15580
- _2 = _a.colors,
15581
- colors = _2 === void 0 ? {} : _2,
15582
- _3 = _a.verbiage,
15583
- verbiage = _3 === void 0 ? {} : _3,
15584
- _4 = _a.geolocationEnabled,
15585
- geolocationEnabled = _4 === void 0 ? true : _4,
15586
- _5 = _a.geolocationRequired,
15587
- geolocationRequired = _5 === void 0 ? false : _5,
15588
- _6 = _a.debugMode,
15589
- debugMode = _6 === void 0 ? false : _6;
15580
+ _0 = _a.theme,
15581
+ theme = _0 === void 0 ? 'default' : _0,
15582
+ _1 = _a.assets,
15583
+ assets = _1 === void 0 ? {} : _1,
15584
+ _2 = _a.classNames,
15585
+ classNames = _2 === void 0 ? {} : _2,
15586
+ _3 = _a.colors,
15587
+ colors = _3 === void 0 ? {} : _3,
15588
+ _4 = _a.verbiage,
15589
+ verbiage = _4 === void 0 ? {} : _4,
15590
+ _5 = _a.geolocationEnabled,
15591
+ geolocationEnabled = _5 === void 0 ? true : _5,
15592
+ _6 = _a.geolocationRequired,
15593
+ geolocationRequired = _6 === void 0 ? false : _6,
15594
+ _7 = _a.debugMode,
15595
+ debugMode = _7 === void 0 ? false : _7;
15590
15596
  useLanguage(lang);
15591
15597
  useDebugLogging(debugMode);
15592
15598
  var idCaptureProps = useMemo(function () {
@@ -15609,13 +15615,14 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
15609
15615
  forceFallbackMode: idCaptureForceFallbackMode,
15610
15616
  enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
15611
15617
  allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
15618
+ allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
15612
15619
  onExitCapture: onExitCapture,
15613
15620
  onUserCancel: onUserCancel,
15614
15621
  onModelError: onIdCaptureModelError,
15615
15622
  skipSuccessScreen: skipSuccessScreen,
15616
15623
  debugMode: debugMode
15617
15624
  };
15618
- }, [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]);
15625
+ }, [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]);
15619
15626
  var faceLivenessProps = useMemo(function () {
15620
15627
  return {
15621
15628
  onExitCapture: onExitCapture,