idmission-web-sdk 2.2.25 → 2.2.27

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
@@ -201,7 +201,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
201
201
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
202
202
  };
203
203
 
204
- var webSdkVersion = '2.2.25';
204
+ var webSdkVersion = '2.2.27';
205
205
 
206
206
  function getPlatform() {
207
207
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11720,8 +11720,8 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
11720
11720
  }, [idCaptureGuideImagesByUrl]);
11721
11721
  var idCardImageStyle = useMemo(function () {
11722
11722
  return {
11723
- maxWidth: idCardGuideWidth > 0 ? idCardGuideWidth : undefined,
11724
- maxHeight: idCardGuideHeight,
11723
+ maxWidth: idCardGuideWidth > idCardGuideHeight ? idCardGuideWidth : undefined,
11724
+ maxHeight: idCardGuideHeight > idCardGuideWidth ? idCardGuideHeight : undefined,
11725
11725
  height: '100%',
11726
11726
  aspectRatio: aspectRatio
11727
11727
  };
@@ -11781,7 +11781,7 @@ var Container = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTem
11781
11781
  var Inner = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"], ["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"])));
11782
11782
  var FaceGuideContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: relative;\n height: 65%;\n"], ["\n position: relative;\n height: 65%;\n"])));
11783
11783
  var IdCardGuideContainer = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"])));
11784
- var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n"], ["\n position: relative;\n height: 100%;\n"])));
11784
+ var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n width: 100%;\n"], ["\n position: relative;\n height: 100%;\n width: 100%;\n"])));
11785
11785
  var IdCardGuideInstructionsContainer = styled.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n width: 100%;\n text-align: center;\n color: white;\n display: flex;\n flex-direction: column;\n justify-content: end;\n padding: 0 40px;\n position: fixed;\n bottom: 14px;\n left: 0;\n right: 0;\n box-sizing: border-box;\n"], ["\n width: 100%;\n text-align: center;\n color: white;\n display: flex;\n flex-direction: column;\n justify-content: end;\n padding: 0 40px;\n position: fixed;\n bottom: 14px;\n left: 0;\n right: 0;\n box-sizing: border-box;\n"])));
11786
11786
  var IdCardGuideInstructions = styled(GuidanceMessage)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-content: center;\n margin: 12px auto;\n padding: 8px 12px;\n font-weight: bold;\n font-size: 18px;\n"], ["\n align-content: center;\n margin: 12px auto;\n padding: 8px 12px;\n font-weight: bold;\n font-size: 18px;\n"])));
11787
11787
  var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$2, templateObject_5$1, templateObject_6$1, templateObject_7;
@@ -13537,14 +13537,16 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13537
13537
  idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
13538
13538
  _o = _a.idCaptureModelLoadTimeoutMs,
13539
13539
  idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
13540
- _p = _a.selfieCaptureModelLoadTimeoutMs,
13541
- selfieCaptureModelLoadTimeoutMs = _p === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _p,
13542
- _q = _a.allowIdCardBackToFrontCapture,
13543
- allowIdCardBackToFrontCapture = _q === void 0 ? false : _q,
13544
- _r = _a.enableOverrideWrongDocumentTypeDialog,
13545
- enableOverrideWrongDocumentTypeDialog = _r === void 0 ? false : _r,
13546
- _s = _a.allowOverrideWrongDocumentTypeAfterMs,
13547
- allowOverrideWrongDocumentTypeAfterMs = _s === void 0 ? 8000 : _s,
13540
+ _p = _a.idCaptureForceFallbackMode,
13541
+ idCaptureForceFallbackMode = _p === void 0 ? false : _p,
13542
+ _q = _a.selfieCaptureModelLoadTimeoutMs,
13543
+ selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
13544
+ _r = _a.allowIdCardBackToFrontCapture,
13545
+ allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
13546
+ _s = _a.enableOverrideWrongDocumentTypeDialog,
13547
+ enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
13548
+ _t = _a.allowOverrideWrongDocumentTypeAfterMs,
13549
+ allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
13548
13550
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
13549
13551
  onDocumentUploaded = _a.onDocumentUploaded,
13550
13552
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -13561,28 +13563,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13561
13563
  onIdCaptureModelError = _a.onIdCaptureModelError,
13562
13564
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
13563
13565
  onCameraAccessDenied = _a.onCameraAccessDenied,
13564
- _t = _a.captureSignature,
13565
- captureSignature = _t === void 0 ? false : _t,
13566
- _u = _a.captureSignatureVideo,
13567
- captureSignatureVideo = _u === void 0 ? false : _u,
13568
- _v = _a.captureAdditionalDocuments,
13569
- captureAdditionalDocuments = _v === void 0 ? [] : _v,
13570
- _w = _a.theme,
13571
- theme = _w === void 0 ? 'default' : _w,
13572
- _x = _a.assets,
13573
- assets = _x === void 0 ? {} : _x,
13574
- _y = _a.classNames,
13575
- classNames = _y === void 0 ? {} : _y,
13576
- _z = _a.colors,
13577
- colors = _z === void 0 ? {} : _z,
13578
- _0 = _a.verbiage,
13579
- verbiage = _0 === void 0 ? {} : _0,
13580
- _1 = _a.geolocationEnabled,
13581
- geolocationEnabled = _1 === void 0 ? true : _1,
13582
- _2 = _a.geolocationRequired,
13583
- geolocationRequired = _2 === void 0 ? false : _2,
13584
- _3 = _a.debugMode,
13585
- debugMode = _3 === void 0 ? false : _3;
13566
+ _u = _a.captureSignature,
13567
+ captureSignature = _u === void 0 ? false : _u,
13568
+ _v = _a.captureSignatureVideo,
13569
+ captureSignatureVideo = _v === void 0 ? false : _v,
13570
+ _w = _a.captureAdditionalDocuments,
13571
+ captureAdditionalDocuments = _w === void 0 ? [] : _w,
13572
+ _x = _a.theme,
13573
+ theme = _x === void 0 ? 'default' : _x,
13574
+ _y = _a.assets,
13575
+ assets = _y === void 0 ? {} : _y,
13576
+ _z = _a.classNames,
13577
+ classNames = _z === void 0 ? {} : _z,
13578
+ _0 = _a.colors,
13579
+ colors = _0 === void 0 ? {} : _0,
13580
+ _1 = _a.verbiage,
13581
+ verbiage = _1 === void 0 ? {} : _1,
13582
+ _2 = _a.geolocationEnabled,
13583
+ geolocationEnabled = _2 === void 0 ? true : _2,
13584
+ _3 = _a.geolocationRequired,
13585
+ geolocationRequired = _3 === void 0 ? false : _3,
13586
+ _4 = _a.debugMode,
13587
+ debugMode = _4 === void 0 ? false : _4;
13586
13588
  useLanguage(lang);
13587
13589
  useDebugLogging(debugMode);
13588
13590
  var idCaptureProps = useMemo(function () {
@@ -13607,10 +13609,11 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
13607
13609
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13608
13610
  enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
13609
13611
  allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
13612
+ forceFallbackMode: idCaptureForceFallbackMode,
13610
13613
  skipSuccessScreen: skipSuccessScreen,
13611
13614
  debugMode: debugMode
13612
13615
  };
13613
- }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, skipSuccessScreen, debugMode]);
13616
+ }, [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]);
13614
13617
  var faceLivenessProps = useMemo(function () {
13615
13618
  return {
13616
13619
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
@@ -13771,14 +13774,16 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13771
13774
  idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
13772
13775
  _o = _a.idCaptureModelLoadTimeoutMs,
13773
13776
  idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
13774
- _p = _a.selfieCaptureModelLoadTimeoutMs,
13775
- selfieCaptureModelLoadTimeoutMs = _p === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _p,
13776
- _q = _a.allowIdCardBackToFrontCapture,
13777
- allowIdCardBackToFrontCapture = _q === void 0 ? false : _q,
13778
- _r = _a.enableOverrideWrongDocumentTypeDialog,
13779
- enableOverrideWrongDocumentTypeDialog = _r === void 0 ? false : _r,
13780
- _s = _a.allowOverrideWrongDocumentTypeAfterMs,
13781
- allowOverrideWrongDocumentTypeAfterMs = _s === void 0 ? 8000 : _s,
13777
+ _p = _a.idCaptureForceFallbackMode,
13778
+ idCaptureForceFallbackMode = _p === void 0 ? false : _p,
13779
+ _q = _a.selfieCaptureModelLoadTimeoutMs,
13780
+ selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
13781
+ _r = _a.allowIdCardBackToFrontCapture,
13782
+ allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
13783
+ _s = _a.enableOverrideWrongDocumentTypeDialog,
13784
+ enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
13785
+ _t = _a.allowOverrideWrongDocumentTypeAfterMs,
13786
+ allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
13782
13787
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
13783
13788
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
13784
13789
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -13794,31 +13799,31 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13794
13799
  onIdCaptureModelError = _a.onIdCaptureModelError,
13795
13800
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
13796
13801
  onCameraAccessDenied = _a.onCameraAccessDenied,
13797
- _t = _a.captureSignature,
13798
- captureSignature = _t === void 0 ? false : _t,
13799
- _u = _a.captureSignatureVideo,
13800
- captureSignatureVideo = _u === void 0 ? false : _u,
13801
- _v = _a.captureAdditionalDocuments,
13802
- captureAdditionalDocuments = _v === void 0 ? [] : _v,
13803
- _w = _a.captureVideoId,
13804
- captureVideoId = _w === void 0 ? false : _w,
13802
+ _u = _a.captureSignature,
13803
+ captureSignature = _u === void 0 ? false : _u,
13804
+ _v = _a.captureSignatureVideo,
13805
+ captureSignatureVideo = _v === void 0 ? false : _v,
13806
+ _w = _a.captureAdditionalDocuments,
13807
+ captureAdditionalDocuments = _w === void 0 ? [] : _w,
13808
+ _x = _a.captureVideoId,
13809
+ captureVideoId = _x === void 0 ? false : _x,
13805
13810
  captureVideoIdProps = _a.captureVideoIdProps,
13806
- _x = _a.theme,
13807
- theme = _x === void 0 ? 'default' : _x,
13808
- _y = _a.assets,
13809
- assets = _y === void 0 ? {} : _y,
13810
- _z = _a.classNames,
13811
- classNames = _z === void 0 ? {} : _z,
13812
- _0 = _a.colors,
13813
- colors = _0 === void 0 ? {} : _0,
13814
- _1 = _a.verbiage,
13815
- verbiage = _1 === void 0 ? {} : _1,
13816
- _2 = _a.geolocationEnabled,
13817
- geolocationEnabled = _2 === void 0 ? true : _2,
13818
- _3 = _a.geolocationRequired,
13819
- geolocationRequired = _3 === void 0 ? false : _3,
13820
- _4 = _a.debugMode,
13821
- debugMode = _4 === void 0 ? false : _4;
13811
+ _y = _a.theme,
13812
+ theme = _y === void 0 ? 'default' : _y,
13813
+ _z = _a.assets,
13814
+ assets = _z === void 0 ? {} : _z,
13815
+ _0 = _a.classNames,
13816
+ classNames = _0 === void 0 ? {} : _0,
13817
+ _1 = _a.colors,
13818
+ colors = _1 === void 0 ? {} : _1,
13819
+ _2 = _a.verbiage,
13820
+ verbiage = _2 === void 0 ? {} : _2,
13821
+ _3 = _a.geolocationEnabled,
13822
+ geolocationEnabled = _3 === void 0 ? true : _3,
13823
+ _4 = _a.geolocationRequired,
13824
+ geolocationRequired = _4 === void 0 ? false : _4,
13825
+ _5 = _a.debugMode,
13826
+ debugMode = _5 === void 0 ? false : _5;
13822
13827
  useLanguage(lang);
13823
13828
  useDebugLogging(debugMode);
13824
13829
  var idCaptureProps = useMemo(function () {
@@ -13837,6 +13842,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13837
13842
  rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
13838
13843
  modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
13839
13844
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
13845
+ forceFallbackMode: idCaptureForceFallbackMode,
13840
13846
  enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
13841
13847
  allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
13842
13848
  onExitCapture: onExitCapture,
@@ -13845,7 +13851,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
13845
13851
  skipSuccessScreen: skipSuccessScreen,
13846
13852
  debugMode: debugMode
13847
13853
  };
13848
- }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
13854
+ }, [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]);
13849
13855
  var faceLivenessProps = useMemo(function () {
13850
13856
  return {
13851
13857
  onExitCapture: onExitCapture,