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.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.75';
206
+ var webSdkVersion = '2.2.76';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -13683,35 +13683,37 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13683
13683
  idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
13684
13684
  _d = _a.idCaptureRequirement,
13685
13685
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13686
- _e = _a.idCaptureThresholds,
13687
- idCaptureThresholds = _e === void 0 ? defaultIdCaptureThresholds : _e,
13688
- _f = _a.faceLivenessLoadingOverlayMode,
13689
- faceLivenessLoadingOverlayMode = _f === void 0 ? 'default' : _f,
13690
- _g = _a.faceLivenessTimeoutDurationMs,
13691
- faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
13692
- _h = _a.skipSuccessScreen,
13693
- skipSuccessScreen = _h === void 0 ? false : _h,
13686
+ _e = _a.allowSinglePageIdCapture,
13687
+ allowSinglePageIdCapture = _e === void 0 ? false : _e,
13688
+ _f = _a.idCaptureThresholds,
13689
+ idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
13690
+ _g = _a.faceLivenessLoadingOverlayMode,
13691
+ faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
13692
+ _h = _a.faceLivenessTimeoutDurationMs,
13693
+ faceLivenessTimeoutDurationMs = _h === void 0 ? 15000 : _h,
13694
+ _j = _a.skipSuccessScreen,
13695
+ skipSuccessScreen = _j === void 0 ? false : _j,
13694
13696
  idCaptureInstructions = _a.idCaptureInstructions,
13695
- _j = _a.idCaptureGuideType,
13696
- idCaptureGuideType = _j === void 0 ? 'fit' : _j,
13697
- _k = _a.idCaptureGuideImages,
13698
- idCaptureGuideImages = _k === void 0 ? defaultIdCaptureGuideImages : _k,
13699
- _l = _a.idCapturePortraitGuidesOnMobile,
13700
- idCapturePortraitGuidesOnMobile = _l === void 0 ? true : _l,
13701
- _m = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
13702
- idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
13703
- _o = _a.idCaptureModelLoadTimeoutMs,
13704
- idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
13705
- _p = _a.idCaptureForceFallbackMode,
13706
- idCaptureForceFallbackMode = _p === void 0 ? false : _p,
13707
- _q = _a.selfieCaptureModelLoadTimeoutMs,
13708
- selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
13709
- _r = _a.allowIdCardBackToFrontCapture,
13710
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
13711
- _s = _a.enableOverrideWrongDocumentTypeDialog,
13712
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
13713
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
13714
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
13697
+ _k = _a.idCaptureGuideType,
13698
+ idCaptureGuideType = _k === void 0 ? 'fit' : _k,
13699
+ _l = _a.idCaptureGuideImages,
13700
+ idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
13701
+ _m = _a.idCapturePortraitGuidesOnMobile,
13702
+ idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
13703
+ _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
13704
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
13705
+ _p = _a.idCaptureModelLoadTimeoutMs,
13706
+ idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
13707
+ _q = _a.idCaptureForceFallbackMode,
13708
+ idCaptureForceFallbackMode = _q === void 0 ? false : _q,
13709
+ _r = _a.selfieCaptureModelLoadTimeoutMs,
13710
+ selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
13711
+ _s = _a.allowIdCardBackToFrontCapture,
13712
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
13713
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
13714
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
13715
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
13716
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
13715
13717
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
13716
13718
  onDocumentUploaded = _a.onDocumentUploaded,
13717
13719
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -13728,28 +13730,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13728
13730
  onIdCaptureModelError = _a.onIdCaptureModelError,
13729
13731
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
13730
13732
  onCameraAccessDenied = _a.onCameraAccessDenied,
13731
- _u = _a.captureSignature,
13732
- captureSignature = _u === void 0 ? false : _u,
13733
- _v = _a.captureSignatureVideo,
13734
- captureSignatureVideo = _v === void 0 ? false : _v,
13735
- _w = _a.captureAdditionalDocuments,
13736
- captureAdditionalDocuments = _w === void 0 ? [] : _w,
13737
- _x = _a.theme,
13738
- theme = _x === void 0 ? 'default' : _x,
13739
- _y = _a.assets,
13740
- assets = _y === void 0 ? {} : _y,
13741
- _z = _a.classNames,
13742
- classNames = _z === void 0 ? {} : _z,
13743
- _0 = _a.colors,
13744
- colors = _0 === void 0 ? {} : _0,
13745
- _1 = _a.verbiage,
13746
- verbiage = _1 === void 0 ? {} : _1,
13747
- _2 = _a.geolocationEnabled,
13748
- geolocationEnabled = _2 === void 0 ? true : _2,
13749
- _3 = _a.geolocationRequired,
13750
- geolocationRequired = _3 === void 0 ? false : _3,
13751
- _4 = _a.debugMode,
13752
- debugMode = _4 === void 0 ? false : _4;
13733
+ _v = _a.captureSignature,
13734
+ captureSignature = _v === void 0 ? false : _v,
13735
+ _w = _a.captureSignatureVideo,
13736
+ captureSignatureVideo = _w === void 0 ? false : _w,
13737
+ _x = _a.captureAdditionalDocuments,
13738
+ captureAdditionalDocuments = _x === void 0 ? [] : _x,
13739
+ _y = _a.theme,
13740
+ theme = _y === void 0 ? 'default' : _y,
13741
+ _z = _a.assets,
13742
+ assets = _z === void 0 ? {} : _z,
13743
+ _0 = _a.classNames,
13744
+ classNames = _0 === void 0 ? {} : _0,
13745
+ _1 = _a.colors,
13746
+ colors = _1 === void 0 ? {} : _1,
13747
+ _2 = _a.verbiage,
13748
+ verbiage = _2 === void 0 ? {} : _2,
13749
+ _3 = _a.geolocationEnabled,
13750
+ geolocationEnabled = _3 === void 0 ? true : _3,
13751
+ _4 = _a.geolocationRequired,
13752
+ geolocationRequired = _4 === void 0 ? false : _4,
13753
+ _5 = _a.debugMode,
13754
+ debugMode = _5 === void 0 ? false : _5;
13753
13755
  useLanguage(lang);
13754
13756
  useDebugLogging(debugMode);
13755
13757
  var idCaptureProps = useMemo(function () {
@@ -13763,6 +13765,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13763
13765
  verbiage: verbiage.idCapture,
13764
13766
  precapturedDocuments: precapturedDocuments,
13765
13767
  captureRequirement: idCaptureRequirement,
13768
+ allowSinglePageIdCapture: allowSinglePageIdCapture,
13766
13769
  thresholds: idCaptureThresholds,
13767
13770
  loadingOverlayMode: idCaptureLoadingOverlayMode,
13768
13771
  instructions: idCaptureInstructions,
@@ -13778,7 +13781,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13778
13781
  skipSuccessScreen: skipSuccessScreen,
13779
13782
  debugMode: debugMode
13780
13783
  };
13781
- }, [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]);
13784
+ }, [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]);
13782
13785
  var faceLivenessProps = useMemo(function () {
13783
13786
  return {
13784
13787
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
@@ -13920,35 +13923,37 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13920
13923
  idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
13921
13924
  _d = _a.idCaptureRequirement,
13922
13925
  idCaptureRequirement = _d === void 0 ? 'idCardOrPassport' : _d,
13923
- _e = _a.idCaptureThresholds,
13924
- idCaptureThresholds = _e === void 0 ? defaultIdCaptureThresholds : _e,
13925
- _f = _a.faceLivenessTimeoutDurationMs,
13926
- faceLivenessTimeoutDurationMs = _f === void 0 ? 15000 : _f,
13927
- _g = _a.faceLivenessLoadingOverlayMode,
13928
- faceLivenessLoadingOverlayMode = _g === void 0 ? 'default' : _g,
13929
- _h = _a.skipSuccessScreen,
13930
- skipSuccessScreen = _h === void 0 ? false : _h,
13926
+ _e = _a.allowSinglePageIdCapture,
13927
+ allowSinglePageIdCapture = _e === void 0 ? false : _e,
13928
+ _f = _a.idCaptureThresholds,
13929
+ idCaptureThresholds = _f === void 0 ? defaultIdCaptureThresholds : _f,
13930
+ _g = _a.faceLivenessTimeoutDurationMs,
13931
+ faceLivenessTimeoutDurationMs = _g === void 0 ? 15000 : _g,
13932
+ _h = _a.faceLivenessLoadingOverlayMode,
13933
+ faceLivenessLoadingOverlayMode = _h === void 0 ? 'default' : _h,
13934
+ _j = _a.skipSuccessScreen,
13935
+ skipSuccessScreen = _j === void 0 ? false : _j,
13931
13936
  idCaptureInstructions = _a.idCaptureInstructions,
13932
- _j = _a.idCaptureGuideType,
13933
- idCaptureGuideType = _j === void 0 ? 'fit' : _j,
13934
- _k = _a.idCaptureGuideImages,
13935
- idCaptureGuideImages = _k === void 0 ? defaultIdCaptureGuideImages : _k,
13936
- _l = _a.idCapturePortraitGuidesOnMobile,
13937
- idCapturePortraitGuidesOnMobile = _l === void 0 ? true : _l,
13938
- _m = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
13939
- idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
13940
- _o = _a.idCaptureModelLoadTimeoutMs,
13941
- idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
13942
- _p = _a.idCaptureForceFallbackMode,
13943
- idCaptureForceFallbackMode = _p === void 0 ? false : _p,
13944
- _q = _a.selfieCaptureModelLoadTimeoutMs,
13945
- selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
13946
- _r = _a.allowIdCardBackToFrontCapture,
13947
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
13948
- _s = _a.enableOverrideWrongDocumentTypeDialog,
13949
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
13950
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
13951
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
13937
+ _k = _a.idCaptureGuideType,
13938
+ idCaptureGuideType = _k === void 0 ? 'fit' : _k,
13939
+ _l = _a.idCaptureGuideImages,
13940
+ idCaptureGuideImages = _l === void 0 ? defaultIdCaptureGuideImages : _l,
13941
+ _m = _a.idCapturePortraitGuidesOnMobile,
13942
+ idCapturePortraitGuidesOnMobile = _m === void 0 ? true : _m,
13943
+ _o = _a.idCaptureRotateLoadingOverlayImageWhenPortrait,
13944
+ idCaptureRotateLoadingOverlayImageWhenPortrait = _o === void 0 ? true : _o,
13945
+ _p = _a.idCaptureModelLoadTimeoutMs,
13946
+ idCaptureModelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
13947
+ _q = _a.idCaptureForceFallbackMode,
13948
+ idCaptureForceFallbackMode = _q === void 0 ? false : _q,
13949
+ _r = _a.selfieCaptureModelLoadTimeoutMs,
13950
+ selfieCaptureModelLoadTimeoutMs = _r === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _r,
13951
+ _s = _a.allowIdCardBackToFrontCapture,
13952
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
13953
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
13954
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
13955
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
13956
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
13952
13957
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
13953
13958
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
13954
13959
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -13964,31 +13969,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13964
13969
  onIdCaptureModelError = _a.onIdCaptureModelError,
13965
13970
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
13966
13971
  onCameraAccessDenied = _a.onCameraAccessDenied,
13967
- _u = _a.captureSignature,
13968
- captureSignature = _u === void 0 ? false : _u,
13969
- _v = _a.captureSignatureVideo,
13970
- captureSignatureVideo = _v === void 0 ? false : _v,
13971
- _w = _a.captureAdditionalDocuments,
13972
- captureAdditionalDocuments = _w === void 0 ? [] : _w,
13973
- _x = _a.captureVideoId,
13974
- captureVideoId = _x === void 0 ? false : _x,
13972
+ _v = _a.captureSignature,
13973
+ captureSignature = _v === void 0 ? false : _v,
13974
+ _w = _a.captureSignatureVideo,
13975
+ captureSignatureVideo = _w === void 0 ? false : _w,
13976
+ _x = _a.captureAdditionalDocuments,
13977
+ captureAdditionalDocuments = _x === void 0 ? [] : _x,
13978
+ _y = _a.captureVideoId,
13979
+ captureVideoId = _y === void 0 ? false : _y,
13975
13980
  captureVideoIdProps = _a.captureVideoIdProps,
13976
- _y = _a.theme,
13977
- theme = _y === void 0 ? 'default' : _y,
13978
- _z = _a.assets,
13979
- assets = _z === void 0 ? {} : _z,
13980
- _0 = _a.classNames,
13981
- classNames = _0 === void 0 ? {} : _0,
13982
- _1 = _a.colors,
13983
- colors = _1 === void 0 ? {} : _1,
13984
- _2 = _a.verbiage,
13985
- verbiage = _2 === void 0 ? {} : _2,
13986
- _3 = _a.geolocationEnabled,
13987
- geolocationEnabled = _3 === void 0 ? true : _3,
13988
- _4 = _a.geolocationRequired,
13989
- geolocationRequired = _4 === void 0 ? false : _4,
13990
- _5 = _a.debugMode,
13991
- debugMode = _5 === void 0 ? false : _5;
13981
+ _z = _a.theme,
13982
+ theme = _z === void 0 ? 'default' : _z,
13983
+ _0 = _a.assets,
13984
+ assets = _0 === void 0 ? {} : _0,
13985
+ _1 = _a.classNames,
13986
+ classNames = _1 === void 0 ? {} : _1,
13987
+ _2 = _a.colors,
13988
+ colors = _2 === void 0 ? {} : _2,
13989
+ _3 = _a.verbiage,
13990
+ verbiage = _3 === void 0 ? {} : _3,
13991
+ _4 = _a.geolocationEnabled,
13992
+ geolocationEnabled = _4 === void 0 ? true : _4,
13993
+ _5 = _a.geolocationRequired,
13994
+ geolocationRequired = _5 === void 0 ? false : _5,
13995
+ _6 = _a.debugMode,
13996
+ debugMode = _6 === void 0 ? false : _6;
13992
13997
  useLanguage(lang);
13993
13998
  useDebugLogging(debugMode);
13994
13999
  var idCaptureProps = useMemo(function () {
@@ -13998,6 +14003,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13998
14003
  colors: colors.idCapture,
13999
14004
  verbiage: verbiage.idCapture,
14000
14005
  captureRequirement: idCaptureRequirement,
14006
+ allowSinglePageIdCapture: allowSinglePageIdCapture,
14001
14007
  thresholds: idCaptureThresholds,
14002
14008
  loadingOverlayMode: idCaptureLoadingOverlayMode,
14003
14009
  instructions: idCaptureInstructions,
@@ -14016,7 +14022,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14016
14022
  skipSuccessScreen: skipSuccessScreen,
14017
14023
  debugMode: debugMode
14018
14024
  };
14019
- }, [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]);
14025
+ }, [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]);
14020
14026
  var faceLivenessProps = useMemo(function () {
14021
14027
  return {
14022
14028
  onExitCapture: onExitCapture,