idmission-web-sdk 2.3.1 → 2.3.2

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.3.1';
214
+ var webSdkVersion = '2.3.2';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -25475,42 +25475,44 @@
25475
25475
  sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
25476
25476
  customerDataMatchConfig = _a.customerDataMatchConfig,
25477
25477
  useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
25478
+ _c = _a.captureOnly,
25479
+ captureOnly = _c === void 0 ? false : _c,
25478
25480
  precapturedDocuments = _a.precapturedDocuments,
25479
- _c = _a.loadingOverlayMode,
25480
- loadingOverlayMode = _c === void 0 ? 'default' : _c,
25481
+ _d = _a.loadingOverlayMode,
25482
+ loadingOverlayMode = _d === void 0 ? 'default' : _d,
25481
25483
  customOverlayContent = _a.customOverlayContent,
25482
25484
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
25483
- _d = _a.idCaptureRequirement,
25484
- idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
25485
- _e = _a.allowSinglePageIdCapture,
25486
- allowSinglePageIdCapture = _e === void 0 ? false : _e,
25487
- _f = _a.separateIdCardCaptureSequence,
25488
- separateIdCardCaptureSequence = _f === void 0 ? false : _f,
25489
- _g = _a.idCaptureThresholds,
25490
- idCaptureThresholds = _g === void 0 ? defaultIdCaptureThresholds : _g,
25491
- _h = _a.skipSuccessScreen,
25492
- skipSuccessScreen = _h === void 0 ? false : _h,
25485
+ _e = _a.idCaptureRequirement,
25486
+ idCaptureRequirement = _e === void 0 ? 'idCardOrPassport' : _e,
25487
+ _f = _a.allowSinglePageIdCapture,
25488
+ allowSinglePageIdCapture = _f === void 0 ? false : _f,
25489
+ _g = _a.separateIdCardCaptureSequence,
25490
+ separateIdCardCaptureSequence = _g === void 0 ? false : _g,
25491
+ _h = _a.idCaptureThresholds,
25492
+ idCaptureThresholds = _h === void 0 ? defaultIdCaptureThresholds : _h,
25493
+ _j = _a.skipSuccessScreen,
25494
+ skipSuccessScreen = _j === void 0 ? false : _j,
25493
25495
  instructions = _a.instructions,
25494
- _j = _a.guideType,
25495
- guideType = _j === void 0 ? 'fit' : _j,
25496
- _k = _a.guideImages,
25497
- guideImages = _k === void 0 ? defaultIdCaptureGuideImages : _k,
25498
- _l = _a.portraitGuidesOnMobile,
25499
- portraitGuidesOnMobile = _l === void 0 ? true : _l,
25500
- _m = _a.rotateLoadingOverlayImageWhenPortrait,
25501
- rotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
25502
- _o = _a.modelLoadTimeoutMs,
25503
- modelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
25504
- _p = _a.forceFallbackMode,
25505
- forceFallbackMode = _p === void 0 ? false : _p,
25506
- _q = _a.allowIdCardBackToFrontCapture,
25507
- allowIdCardBackToFrontCapture = _q === void 0 ? false : _q,
25508
- _r = _a.enableOverrideWrongDocumentTypeDialog,
25509
- enableOverrideWrongDocumentTypeDialog = _r === void 0 ? false : _r,
25510
- _s = _a.allowOverrideWrongDocumentTypeAfterMs,
25511
- allowOverrideWrongDocumentTypeAfterMs = _s === void 0 ? 8000 : _s,
25512
- _t = _a.allowUploadingDocumentsFromStorage,
25513
- allowUploadingDocumentsFromStorage = _t === void 0 ? false : _t,
25496
+ _k = _a.guideType,
25497
+ guideType = _k === void 0 ? 'fit' : _k,
25498
+ _l = _a.guideImages,
25499
+ guideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
25500
+ _m = _a.portraitGuidesOnMobile,
25501
+ portraitGuidesOnMobile = _m === void 0 ? true : _m,
25502
+ _o = _a.rotateLoadingOverlayImageWhenPortrait,
25503
+ rotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
25504
+ _p = _a.modelLoadTimeoutMs,
25505
+ modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
25506
+ _q = _a.forceFallbackMode,
25507
+ forceFallbackMode = _q === void 0 ? false : _q,
25508
+ _r = _a.allowIdCardBackToFrontCapture,
25509
+ allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
25510
+ _s = _a.enableOverrideWrongDocumentTypeDialog,
25511
+ enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
25512
+ _t = _a.allowOverrideWrongDocumentTypeAfterMs,
25513
+ allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
25514
+ _u = _a.allowUploadingDocumentsFromStorage,
25515
+ allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
25514
25516
  onBeforeSubmit = _a.onBeforeSubmit,
25515
25517
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
25516
25518
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -25526,28 +25528,28 @@
25526
25528
  onModelError = _a.onModelError,
25527
25529
  onCameraAccessDenied = _a.onCameraAccessDenied,
25528
25530
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
25529
- _u = _a.theme,
25530
- theme = _u === void 0 ? 'default' : _u,
25531
- _v = _a.assets,
25532
- assets = _v === void 0 ? {} : _v,
25533
- _w = _a.classNames,
25534
- classNames = _w === void 0 ? {} : _w,
25535
- _x = _a.colors,
25536
- colors = _x === void 0 ? {} : _x,
25537
- _y = _a.verbiage,
25538
- verbiage = _y === void 0 ? {} : _y,
25539
- _z = _a.captureSignature,
25540
- captureSignature = _z === void 0 ? false : _z,
25541
- _0 = _a.captureSignatureVideo,
25542
- captureSignatureVideo = _0 === void 0 ? false : _0,
25543
- _1 = _a.captureAdditionalDocuments,
25544
- captureAdditionalDocuments = _1 === void 0 ? [] : _1,
25545
- _2 = _a.geolocationEnabled,
25546
- geolocationEnabled = _2 === void 0 ? true : _2,
25547
- _3 = _a.geolocationRequired,
25548
- geolocationRequired = _3 === void 0 ? false : _3,
25549
- _4 = _a.debugMode,
25550
- debugMode = _4 === void 0 ? false : _4;
25531
+ _v = _a.theme,
25532
+ theme = _v === void 0 ? 'default' : _v,
25533
+ _w = _a.assets,
25534
+ assets = _w === void 0 ? {} : _w,
25535
+ _x = _a.classNames,
25536
+ classNames = _x === void 0 ? {} : _x,
25537
+ _y = _a.colors,
25538
+ colors = _y === void 0 ? {} : _y,
25539
+ _z = _a.verbiage,
25540
+ verbiage = _z === void 0 ? {} : _z,
25541
+ _0 = _a.captureSignature,
25542
+ captureSignature = _0 === void 0 ? false : _0,
25543
+ _1 = _a.captureSignatureVideo,
25544
+ captureSignatureVideo = _1 === void 0 ? false : _1,
25545
+ _2 = _a.captureAdditionalDocuments,
25546
+ captureAdditionalDocuments = _2 === void 0 ? [] : _2,
25547
+ _3 = _a.geolocationEnabled,
25548
+ geolocationEnabled = _3 === void 0 ? true : _3,
25549
+ _4 = _a.geolocationRequired,
25550
+ geolocationRequired = _4 === void 0 ? false : _4,
25551
+ _5 = _a.debugMode,
25552
+ debugMode = _5 === void 0 ? false : _5;
25551
25553
  useLanguage(lang);
25552
25554
  useDebugLogging(debugMode);
25553
25555
  var idCaptureProps = React.useMemo(function () {
@@ -25620,7 +25622,7 @@
25620
25622
  }, /*#__PURE__*/React.createElement(ThemeProvider, {
25621
25623
  theme: theme
25622
25624
  }, /*#__PURE__*/React.createElement(SubmissionProvider, {
25623
- action: SubmissionAction.VALIDATE,
25625
+ action: captureOnly ? SubmissionAction.NONE : SubmissionAction.VALIDATE,
25624
25626
  submissionUrl: submissionUrl,
25625
25627
  clientRequestID: clientRequestID,
25626
25628
  documentServiceUrl: documentServiceUrl,