idmission-web-sdk 2.2.75 → 2.2.76

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.75';
214
+ var webSdkVersion = '2.2.76';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -23525,35 +23525,37 @@
23525
23525
  idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
23526
23526
  _d = _a.idCaptureRequirement,
23527
23527
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
23528
- _e = _a.idCaptureThresholds,
23529
- idCaptureThresholds = _e === void 0 ? defaultIdCaptureThresholds : _e,
23530
- _f = _a.faceLivenessLoadingOverlayMode,
23531
- faceLivenessLoadingOverlayMode = _f === void 0 ? 'default' : _f,
23532
- _g = _a.faceLivenessTimeoutDurationMs,
23533
- faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
23534
- _h = _a.skipSuccessScreen,
23535
- skipSuccessScreen = _h === void 0 ? false : _h,
23528
+ _e = _a.allowSinglePageIdCapture,
23529
+ allowSinglePageIdCapture = _e === void 0 ? false : _e,
23530
+ _f = _a.idCaptureThresholds,
23531
+ idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
23532
+ _g = _a.faceLivenessLoadingOverlayMode,
23533
+ faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
23534
+ _h = _a.faceLivenessTimeoutDurationMs,
23535
+ faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
23536
+ _j = _a.skipSuccessScreen,
23537
+ skipSuccessScreen = _j === void 0 ? false : _j,
23536
23538
  idCaptureInstructions = _a.idCaptureInstructions,
23537
- _j = _a.idCaptureGuideType,
23538
- idCaptureGuideType = _j === void 0 ? 'fit' : _j,
23539
- _k = _a.idCaptureGuideImages,
23540
- idCaptureGuideImages = _k === void 0 ? defaultIdCaptureGuideImages : _k,
23541
- _l = _a.idCapturePortraitGuidesOnMobile,
23542
- idCapturePortraitGuidesOnMobile = _l === void 0 ? true : _l,
23543
- _m = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
23544
- idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
23545
- _o = _a.idCaptureModelLoadTimeoutMs,
23546
- idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
23547
- _p = _a.idCaptureForceFallbackMode,
23548
- idCaptureForceFallbackMode = _p === void 0 ? false : _p,
23549
- _q = _a.selfieCaptureModelLoadTimeoutMs,
23550
- selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
23551
- _r = _a.allowIdCardBackToFrontCapture,
23552
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
23553
- _s = _a.enableOverrideWrongDocumentTypeDialog,
23554
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
23555
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
23556
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
23539
+ _k = _a.idCaptureGuideType,
23540
+ idCaptureGuideType = _k === void 0 ? 'fit' : _k,
23541
+ _l = _a.idCaptureGuideImages,
23542
+ idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
23543
+ _m = _a.idCapturePortraitGuidesOnMobile,
23544
+ idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
23545
+ _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
23546
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
23547
+ _p = _a.idCaptureModelLoadTimeoutMs,
23548
+ idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
23549
+ _q = _a.idCaptureForceFallbackMode,
23550
+ idCaptureForceFallbackMode = _q === void 0 ? false : _q,
23551
+ _r = _a.selfieCaptureModelLoadTimeoutMs,
23552
+ selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
23553
+ _s = _a.allowIdCardBackToFrontCapture,
23554
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
23555
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
23556
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
23557
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
23558
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
23557
23559
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
23558
23560
  onDocumentUploaded = _a.onDocumentUploaded,
23559
23561
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -23570,28 +23572,28 @@
23570
23572
  onIdCaptureModelError = _a.onIdCaptureModelError,
23571
23573
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
23572
23574
  onCameraAccessDenied = _a.onCameraAccessDenied,
23573
- _u = _a.captureSignature,
23574
- captureSignature = _u === void 0 ? false : _u,
23575
- _v = _a.captureSignatureVideo,
23576
- captureSignatureVideo = _v === void 0 ? false : _v,
23577
- _w = _a.captureAdditionalDocuments,
23578
- captureAdditionalDocuments = _w === void 0 ? [] : _w,
23579
- _x = _a.theme,
23580
- theme = _x === void 0 ? 'default' : _x,
23581
- _y = _a.assets,
23582
- assets = _y === void 0 ? {} : _y,
23583
- _z = _a.classNames,
23584
- classNames = _z === void 0 ? {} : _z,
23585
- _0 = _a.colors,
23586
- colors = _0 === void 0 ? {} : _0,
23587
- _1 = _a.verbiage,
23588
- verbiage = _1 === void 0 ? {} : _1,
23589
- _2 = _a.geolocationEnabled,
23590
- geolocationEnabled = _2 === void 0 ? true : _2,
23591
- _3 = _a.geolocationRequired,
23592
- geolocationRequired = _3 === void 0 ? false : _3,
23593
- _4 = _a.debugMode,
23594
- debugMode = _4 === void 0 ? false : _4;
23575
+ _v = _a.captureSignature,
23576
+ captureSignature = _v === void 0 ? false : _v,
23577
+ _w = _a.captureSignatureVideo,
23578
+ captureSignatureVideo = _w === void 0 ? false : _w,
23579
+ _x = _a.captureAdditionalDocuments,
23580
+ captureAdditionalDocuments = _x === void 0 ? [] : _x,
23581
+ _y = _a.theme,
23582
+ theme = _y === void 0 ? 'default' : _y,
23583
+ _z = _a.assets,
23584
+ assets = _z === void 0 ? {} : _z,
23585
+ _0 = _a.classNames,
23586
+ classNames = _0 === void 0 ? {} : _0,
23587
+ _1 = _a.colors,
23588
+ colors = _1 === void 0 ? {} : _1,
23589
+ _2 = _a.verbiage,
23590
+ verbiage = _2 === void 0 ? {} : _2,
23591
+ _3 = _a.geolocationEnabled,
23592
+ geolocationEnabled = _3 === void 0 ? true : _3,
23593
+ _4 = _a.geolocationRequired,
23594
+ geolocationRequired = _4 === void 0 ? false : _4,
23595
+ _5 = _a.debugMode,
23596
+ debugMode = _5 === void 0 ? false : _5;
23595
23597
  useLanguage(lang);
23596
23598
  useDebugLogging(debugMode);
23597
23599
  var idCaptureProps = React.useMemo(function () {
@@ -23605,6 +23607,7 @@
23605
23607
  verbiage: verbiage.idCapture,
23606
23608
  precapturedDocuments: precapturedDocuments,
23607
23609
  captureRequirement: idCaptureRequirement,
23610
+ allowSinglePageIdCapture: allowSinglePageIdCapture,
23608
23611
  thresholds: idCaptureThresholds,
23609
23612
  loadingOverlayMode: idCaptureLoadingOverlayMode,
23610
23613
  instructions: idCaptureInstructions,
@@ -23620,7 +23623,7 @@
23620
23623
  skipSuccessScreen: skipSuccessScreen,
23621
23624
  debugMode: debugMode
23622
23625
  };
23623
- }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
23626
+ }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
23624
23627
  var faceLivenessProps = React.useMemo(function () {
23625
23628
  return {
23626
23629
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
@@ -23762,35 +23765,37 @@
23762
23765
  idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
23763
23766
  _d = _a.idCaptureRequirement,
23764
23767
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
23765
- _e = _a.idCaptureThresholds,
23766
- idCaptureThresholds = _e === void 0 ? defaultIdCaptureThresholds : _e,
23767
- _f = _a.faceLivenessTimeoutDurationMs,
23768
- faceLivenessTimeoutDurationMs = _f === void 0 ? 15000 : _f,
23769
- _g = _a.faceLivenessLoadingOverlayMode,
23770
- faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
23771
- _h = _a.skipSuccessScreen,
23772
- skipSuccessScreen = _h === void 0 ? false : _h,
23768
+ _e = _a.allowSinglePageIdCapture,
23769
+ allowSinglePageIdCapture = _e === void 0 ? false : _e,
23770
+ _f = _a.idCaptureThresholds,
23771
+ idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
23772
+ _g = _a.faceLivenessTimeoutDurationMs,
23773
+ faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
23774
+ _h = _a.faceLivenessLoadingOverlayMode,
23775
+ faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
23776
+ _j = _a.skipSuccessScreen,
23777
+ skipSuccessScreen = _j === void 0 ? false : _j,
23773
23778
  idCaptureInstructions = _a.idCaptureInstructions,
23774
- _j = _a.idCaptureGuideType,
23775
- idCaptureGuideType = _j === void 0 ? 'fit' : _j,
23776
- _k = _a.idCaptureGuideImages,
23777
- idCaptureGuideImages = _k === void 0 ? defaultIdCaptureGuideImages : _k,
23778
- _l = _a.idCapturePortraitGuidesOnMobile,
23779
- idCapturePortraitGuidesOnMobile = _l === void 0 ? true : _l,
23780
- _m = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
23781
- idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
23782
- _o = _a.idCaptureModelLoadTimeoutMs,
23783
- idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
23784
- _p = _a.idCaptureForceFallbackMode,
23785
- idCaptureForceFallbackMode = _p === void 0 ? false : _p,
23786
- _q = _a.selfieCaptureModelLoadTimeoutMs,
23787
- selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
23788
- _r = _a.allowIdCardBackToFrontCapture,
23789
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
23790
- _s = _a.enableOverrideWrongDocumentTypeDialog,
23791
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
23792
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
23793
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
23779
+ _k = _a.idCaptureGuideType,
23780
+ idCaptureGuideType = _k === void 0 ? 'fit' : _k,
23781
+ _l = _a.idCaptureGuideImages,
23782
+ idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
23783
+ _m = _a.idCapturePortraitGuidesOnMobile,
23784
+ idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
23785
+ _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
23786
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
23787
+ _p = _a.idCaptureModelLoadTimeoutMs,
23788
+ idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
23789
+ _q = _a.idCaptureForceFallbackMode,
23790
+ idCaptureForceFallbackMode = _q === void 0 ? false : _q,
23791
+ _r = _a.selfieCaptureModelLoadTimeoutMs,
23792
+ selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
23793
+ _s = _a.allowIdCardBackToFrontCapture,
23794
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
23795
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
23796
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
23797
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
23798
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
23794
23799
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
23795
23800
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
23796
23801
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -23806,31 +23811,31 @@
23806
23811
  onIdCaptureModelError = _a.onIdCaptureModelError,
23807
23812
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
23808
23813
  onCameraAccessDenied = _a.onCameraAccessDenied,
23809
- _u = _a.captureSignature,
23810
- captureSignature = _u === void 0 ? false : _u,
23811
- _v = _a.captureSignatureVideo,
23812
- captureSignatureVideo = _v === void 0 ? false : _v,
23813
- _w = _a.captureAdditionalDocuments,
23814
- captureAdditionalDocuments = _w === void 0 ? [] : _w,
23815
- _x = _a.captureVideoId,
23816
- captureVideoId = _x === void 0 ? false : _x,
23814
+ _v = _a.captureSignature,
23815
+ captureSignature = _v === void 0 ? false : _v,
23816
+ _w = _a.captureSignatureVideo,
23817
+ captureSignatureVideo = _w === void 0 ? false : _w,
23818
+ _x = _a.captureAdditionalDocuments,
23819
+ captureAdditionalDocuments = _x === void 0 ? [] : _x,
23820
+ _y = _a.captureVideoId,
23821
+ captureVideoId = _y === void 0 ? false : _y,
23817
23822
  captureVideoIdProps = _a.captureVideoIdProps,
23818
- _y = _a.theme,
23819
- theme = _y === void 0 ? 'default' : _y,
23820
- _z = _a.assets,
23821
- assets = _z === void 0 ? {} : _z,
23822
- _0 = _a.classNames,
23823
- classNames = _0 === void 0 ? {} : _0,
23824
- _1 = _a.colors,
23825
- colors = _1 === void 0 ? {} : _1,
23826
- _2 = _a.verbiage,
23827
- verbiage = _2 === void 0 ? {} : _2,
23828
- _3 = _a.geolocationEnabled,
23829
- geolocationEnabled = _3 === void 0 ? true : _3,
23830
- _4 = _a.geolocationRequired,
23831
- geolocationRequired = _4 === void 0 ? false : _4,
23832
- _5 = _a.debugMode,
23833
- debugMode = _5 === void 0 ? false : _5;
23823
+ _z = _a.theme,
23824
+ theme = _z === void 0 ? 'default' : _z,
23825
+ _0 = _a.assets,
23826
+ assets = _0 === void 0 ? {} : _0,
23827
+ _1 = _a.classNames,
23828
+ classNames = _1 === void 0 ? {} : _1,
23829
+ _2 = _a.colors,
23830
+ colors = _2 === void 0 ? {} : _2,
23831
+ _3 = _a.verbiage,
23832
+ verbiage = _3 === void 0 ? {} : _3,
23833
+ _4 = _a.geolocationEnabled,
23834
+ geolocationEnabled = _4 === void 0 ? true : _4,
23835
+ _5 = _a.geolocationRequired,
23836
+ geolocationRequired = _5 === void 0 ? false : _5,
23837
+ _6 = _a.debugMode,
23838
+ debugMode = _6 === void 0 ? false : _6;
23834
23839
  useLanguage(lang);
23835
23840
  useDebugLogging(debugMode);
23836
23841
  var idCaptureProps = React.useMemo(function () {
@@ -23840,6 +23845,7 @@
23840
23845
  colors: colors.idCapture,
23841
23846
  verbiage: verbiage.idCapture,
23842
23847
  captureRequirement: idCaptureRequirement,
23848
+ allowSinglePageIdCapture: allowSinglePageIdCapture,
23843
23849
  thresholds: idCaptureThresholds,
23844
23850
  loadingOverlayMode: idCaptureLoadingOverlayMode,
23845
23851
  instructions: idCaptureInstructions,
@@ -23858,7 +23864,7 @@
23858
23864
  skipSuccessScreen: skipSuccessScreen,
23859
23865
  debugMode: debugMode
23860
23866
  };
23861
- }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
23867
+ }, [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]);
23862
23868
  var faceLivenessProps = React.useMemo(function () {
23863
23869
  return {
23864
23870
  onExitCapture: onExitCapture,