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.
@@ -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.25';
214
+ var webSdkVersion = '2.2.27';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -21436,8 +21436,8 @@
21436
21436
  }, [idCaptureGuideImagesByUrl]);
21437
21437
  var idCardImageStyle = React.useMemo(function () {
21438
21438
  return {
21439
- maxWidth: idCardGuideWidth > 0 ? idCardGuideWidth : undefined,
21440
- maxHeight: idCardGuideHeight,
21439
+ maxWidth: idCardGuideWidth > idCardGuideHeight ? idCardGuideWidth : undefined,
21440
+ maxHeight: idCardGuideHeight > idCardGuideWidth ? idCardGuideHeight : undefined,
21441
21441
  height: '100%',
21442
21442
  aspectRatio: aspectRatio
21443
21443
  };
@@ -21497,7 +21497,7 @@
21497
21497
  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"])));
21498
21498
  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"])));
21499
21499
  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"])));
21500
- 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"])));
21500
+ 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"])));
21501
21501
  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"])));
21502
21502
  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"])));
21503
21503
  var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$2, templateObject_5$1, templateObject_6$1, templateObject_7;
@@ -23253,14 +23253,16 @@
23253
23253
  idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
23254
23254
  _o = _a.idCaptureModelLoadTimeoutMs,
23255
23255
  idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
23256
- _p = _a.selfieCaptureModelLoadTimeoutMs,
23257
- selfieCaptureModelLoadTimeoutMs = _p === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _p,
23258
- _q = _a.allowIdCardBackToFrontCapture,
23259
- allowIdCardBackToFrontCapture = _q === void 0 ? false : _q,
23260
- _r = _a.enableOverrideWrongDocumentTypeDialog,
23261
- enableOverrideWrongDocumentTypeDialog = _r === void 0 ? false : _r,
23262
- _s = _a.allowOverrideWrongDocumentTypeAfterMs,
23263
- allowOverrideWrongDocumentTypeAfterMs = _s === void 0 ? 8000 : _s,
23256
+ _p = _a.idCaptureForceFallbackMode,
23257
+ idCaptureForceFallbackMode = _p === void 0 ? false : _p,
23258
+ _q = _a.selfieCaptureModelLoadTimeoutMs,
23259
+ selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
23260
+ _r = _a.allowIdCardBackToFrontCapture,
23261
+ allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
23262
+ _s = _a.enableOverrideWrongDocumentTypeDialog,
23263
+ enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
23264
+ _t = _a.allowOverrideWrongDocumentTypeAfterMs,
23265
+ allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
23264
23266
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
23265
23267
  onDocumentUploaded = _a.onDocumentUploaded,
23266
23268
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -23277,28 +23279,28 @@
23277
23279
  onIdCaptureModelError = _a.onIdCaptureModelError,
23278
23280
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
23279
23281
  onCameraAccessDenied = _a.onCameraAccessDenied,
23280
- _t = _a.captureSignature,
23281
- captureSignature = _t === void 0 ? false : _t,
23282
- _u = _a.captureSignatureVideo,
23283
- captureSignatureVideo = _u === void 0 ? false : _u,
23284
- _v = _a.captureAdditionalDocuments,
23285
- captureAdditionalDocuments = _v === void 0 ? [] : _v,
23286
- _w = _a.theme,
23287
- theme = _w === void 0 ? 'default' : _w,
23288
- _x = _a.assets,
23289
- assets = _x === void 0 ? {} : _x,
23290
- _y = _a.classNames,
23291
- classNames = _y === void 0 ? {} : _y,
23292
- _z = _a.colors,
23293
- colors = _z === void 0 ? {} : _z,
23294
- _0 = _a.verbiage,
23295
- verbiage = _0 === void 0 ? {} : _0,
23296
- _1 = _a.geolocationEnabled,
23297
- geolocationEnabled = _1 === void 0 ? true : _1,
23298
- _2 = _a.geolocationRequired,
23299
- geolocationRequired = _2 === void 0 ? false : _2,
23300
- _3 = _a.debugMode,
23301
- debugMode = _3 === void 0 ? false : _3;
23282
+ _u = _a.captureSignature,
23283
+ captureSignature = _u === void 0 ? false : _u,
23284
+ _v = _a.captureSignatureVideo,
23285
+ captureSignatureVideo = _v === void 0 ? false : _v,
23286
+ _w = _a.captureAdditionalDocuments,
23287
+ captureAdditionalDocuments = _w === void 0 ? [] : _w,
23288
+ _x = _a.theme,
23289
+ theme = _x === void 0 ? 'default' : _x,
23290
+ _y = _a.assets,
23291
+ assets = _y === void 0 ? {} : _y,
23292
+ _z = _a.classNames,
23293
+ classNames = _z === void 0 ? {} : _z,
23294
+ _0 = _a.colors,
23295
+ colors = _0 === void 0 ? {} : _0,
23296
+ _1 = _a.verbiage,
23297
+ verbiage = _1 === void 0 ? {} : _1,
23298
+ _2 = _a.geolocationEnabled,
23299
+ geolocationEnabled = _2 === void 0 ? true : _2,
23300
+ _3 = _a.geolocationRequired,
23301
+ geolocationRequired = _3 === void 0 ? false : _3,
23302
+ _4 = _a.debugMode,
23303
+ debugMode = _4 === void 0 ? false : _4;
23302
23304
  useLanguage(lang);
23303
23305
  useDebugLogging(debugMode);
23304
23306
  var idCaptureProps = React.useMemo(function () {
@@ -23323,10 +23325,11 @@
23323
23325
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
23324
23326
  enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
23325
23327
  allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
23328
+ forceFallbackMode: idCaptureForceFallbackMode,
23326
23329
  skipSuccessScreen: skipSuccessScreen,
23327
23330
  debugMode: debugMode
23328
23331
  };
23329
- }, [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]);
23332
+ }, [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]);
23330
23333
  var faceLivenessProps = React.useMemo(function () {
23331
23334
  return {
23332
23335
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
@@ -23487,14 +23490,16 @@
23487
23490
  idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
23488
23491
  _o = _a.idCaptureModelLoadTimeoutMs,
23489
23492
  idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
23490
- _p = _a.selfieCaptureModelLoadTimeoutMs,
23491
- selfieCaptureModelLoadTimeoutMs = _p === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _p,
23492
- _q = _a.allowIdCardBackToFrontCapture,
23493
- allowIdCardBackToFrontCapture = _q === void 0 ? false : _q,
23494
- _r = _a.enableOverrideWrongDocumentTypeDialog,
23495
- enableOverrideWrongDocumentTypeDialog = _r === void 0 ? false : _r,
23496
- _s = _a.allowOverrideWrongDocumentTypeAfterMs,
23497
- allowOverrideWrongDocumentTypeAfterMs = _s === void 0 ? 8000 : _s,
23493
+ _p = _a.idCaptureForceFallbackMode,
23494
+ idCaptureForceFallbackMode = _p === void 0 ? false : _p,
23495
+ _q = _a.selfieCaptureModelLoadTimeoutMs,
23496
+ selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
23497
+ _r = _a.allowIdCardBackToFrontCapture,
23498
+ allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
23499
+ _s = _a.enableOverrideWrongDocumentTypeDialog,
23500
+ enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
23501
+ _t = _a.allowOverrideWrongDocumentTypeAfterMs,
23502
+ allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
23498
23503
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
23499
23504
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
23500
23505
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -23510,31 +23515,31 @@
23510
23515
  onIdCaptureModelError = _a.onIdCaptureModelError,
23511
23516
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
23512
23517
  onCameraAccessDenied = _a.onCameraAccessDenied,
23513
- _t = _a.captureSignature,
23514
- captureSignature = _t === void 0 ? false : _t,
23515
- _u = _a.captureSignatureVideo,
23516
- captureSignatureVideo = _u === void 0 ? false : _u,
23517
- _v = _a.captureAdditionalDocuments,
23518
- captureAdditionalDocuments = _v === void 0 ? [] : _v,
23519
- _w = _a.captureVideoId,
23520
- captureVideoId = _w === void 0 ? false : _w,
23518
+ _u = _a.captureSignature,
23519
+ captureSignature = _u === void 0 ? false : _u,
23520
+ _v = _a.captureSignatureVideo,
23521
+ captureSignatureVideo = _v === void 0 ? false : _v,
23522
+ _w = _a.captureAdditionalDocuments,
23523
+ captureAdditionalDocuments = _w === void 0 ? [] : _w,
23524
+ _x = _a.captureVideoId,
23525
+ captureVideoId = _x === void 0 ? false : _x,
23521
23526
  captureVideoIdProps = _a.captureVideoIdProps,
23522
- _x = _a.theme,
23523
- theme = _x === void 0 ? 'default' : _x,
23524
- _y = _a.assets,
23525
- assets = _y === void 0 ? {} : _y,
23526
- _z = _a.classNames,
23527
- classNames = _z === void 0 ? {} : _z,
23528
- _0 = _a.colors,
23529
- colors = _0 === void 0 ? {} : _0,
23530
- _1 = _a.verbiage,
23531
- verbiage = _1 === void 0 ? {} : _1,
23532
- _2 = _a.geolocationEnabled,
23533
- geolocationEnabled = _2 === void 0 ? true : _2,
23534
- _3 = _a.geolocationRequired,
23535
- geolocationRequired = _3 === void 0 ? false : _3,
23536
- _4 = _a.debugMode,
23537
- debugMode = _4 === void 0 ? false : _4;
23527
+ _y = _a.theme,
23528
+ theme = _y === void 0 ? 'default' : _y,
23529
+ _z = _a.assets,
23530
+ assets = _z === void 0 ? {} : _z,
23531
+ _0 = _a.classNames,
23532
+ classNames = _0 === void 0 ? {} : _0,
23533
+ _1 = _a.colors,
23534
+ colors = _1 === void 0 ? {} : _1,
23535
+ _2 = _a.verbiage,
23536
+ verbiage = _2 === void 0 ? {} : _2,
23537
+ _3 = _a.geolocationEnabled,
23538
+ geolocationEnabled = _3 === void 0 ? true : _3,
23539
+ _4 = _a.geolocationRequired,
23540
+ geolocationRequired = _4 === void 0 ? false : _4,
23541
+ _5 = _a.debugMode,
23542
+ debugMode = _5 === void 0 ? false : _5;
23538
23543
  useLanguage(lang);
23539
23544
  useDebugLogging(debugMode);
23540
23545
  var idCaptureProps = React.useMemo(function () {
@@ -23553,6 +23558,7 @@
23553
23558
  rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
23554
23559
  modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
23555
23560
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
23561
+ forceFallbackMode: idCaptureForceFallbackMode,
23556
23562
  enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
23557
23563
  allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
23558
23564
  onExitCapture: onExitCapture,
@@ -23561,7 +23567,7 @@
23561
23567
  skipSuccessScreen: skipSuccessScreen,
23562
23568
  debugMode: debugMode
23563
23569
  };
23564
- }, [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]);
23570
+ }, [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]);
23565
23571
  var faceLivenessProps = React.useMemo(function () {
23566
23572
  return {
23567
23573
  onExitCapture: onExitCapture,