idmission-web-sdk 2.1.20 → 2.1.22

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.
@@ -116,6 +116,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
116
116
  idCaptureModelLoadTimeoutMs?: number;
117
117
  /** Number of milliseconds indicating the maximum amount of time that should be spent trying to load the guided capture experience before giving up and resorting to the stock camera instead. Defaults to 45000 (45 seconds). */
118
118
  selfieCaptureModelLoadTimeoutMs?: number;
119
+ /** Boolean to indicate whether to allow the user to capture the back of the ID card before capturing the front. Defaults to `false`. */
120
+ allowIdCardBackToFrontCapture?: boolean;
119
121
  /** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
120
122
  onBeforeDocumentUpload?: OnBeforeDocumentUpload;
121
123
  /** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
@@ -113,6 +113,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
113
113
  idCaptureModelLoadTimeoutMs?: number;
114
114
  /** Number of milliseconds indicating the maximum amount of time that should be spent trying to load the guided capture experience before giving up and resorting to the stock camera instead. Defaults to 45000 (45 seconds). */
115
115
  selfieCaptureModelLoadTimeoutMs?: number;
116
+ /** Boolean to indicate whether to allow the user to capture the back of the ID card before capturing the front. Defaults to `false`. */
117
+ allowIdCardBackToFrontCapture?: boolean;
116
118
  /** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
117
119
  onBeforeDocumentUpload?: OnBeforeDocumentUpload;
118
120
  /** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.1.20';
237
+ var webSdkVersion = '2.1.22';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -14304,6 +14304,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14304
14304
  idCaptureModelLoadTimeoutMs = _m === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _m,
14305
14305
  _o = _a.selfieCaptureModelLoadTimeoutMs,
14306
14306
  selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
14307
+ _p = _a.allowIdCardBackToFrontCapture,
14308
+ allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
14307
14309
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
14308
14310
  onDocumentUploaded = _a.onDocumentUploaded,
14309
14311
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
@@ -14320,28 +14322,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14320
14322
  onIdCaptureModelError = _a.onIdCaptureModelError,
14321
14323
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
14322
14324
  onCameraAccessDenied = _a.onCameraAccessDenied,
14323
- _p = _a.captureSignature,
14324
- captureSignature = _p === void 0 ? false : _p,
14325
- _q = _a.captureSignatureVideo,
14326
- captureSignatureVideo = _q === void 0 ? false : _q,
14327
- _r = _a.captureAdditionalDocuments,
14328
- captureAdditionalDocuments = _r === void 0 ? [] : _r,
14329
- _s = _a.theme,
14330
- theme = _s === void 0 ? 'default' : _s,
14331
- _t = _a.assets,
14332
- assets = _t === void 0 ? {} : _t,
14333
- _u = _a.classNames,
14334
- classNames = _u === void 0 ? {} : _u,
14335
- _v = _a.colors,
14336
- colors = _v === void 0 ? {} : _v,
14337
- _w = _a.verbiage,
14338
- verbiage = _w === void 0 ? {} : _w,
14339
- _x = _a.geolocationEnabled,
14340
- geolocationEnabled = _x === void 0 ? true : _x,
14341
- _y = _a.geolocationRequired,
14342
- geolocationRequired = _y === void 0 ? false : _y,
14343
- _z = _a.debugMode,
14344
- debugMode = _z === void 0 ? false : _z;
14325
+ _q = _a.captureSignature,
14326
+ captureSignature = _q === void 0 ? false : _q,
14327
+ _r = _a.captureSignatureVideo,
14328
+ captureSignatureVideo = _r === void 0 ? false : _r,
14329
+ _s = _a.captureAdditionalDocuments,
14330
+ captureAdditionalDocuments = _s === void 0 ? [] : _s,
14331
+ _t = _a.theme,
14332
+ theme = _t === void 0 ? 'default' : _t,
14333
+ _u = _a.assets,
14334
+ assets = _u === void 0 ? {} : _u,
14335
+ _v = _a.classNames,
14336
+ classNames = _v === void 0 ? {} : _v,
14337
+ _w = _a.colors,
14338
+ colors = _w === void 0 ? {} : _w,
14339
+ _x = _a.verbiage,
14340
+ verbiage = _x === void 0 ? {} : _x,
14341
+ _y = _a.geolocationEnabled,
14342
+ geolocationEnabled = _y === void 0 ? true : _y,
14343
+ _z = _a.geolocationRequired,
14344
+ geolocationRequired = _z === void 0 ? false : _z,
14345
+ _0 = _a.debugMode,
14346
+ debugMode = _0 === void 0 ? false : _0;
14345
14347
  useLanguage(lang);
14346
14348
  useDebugLogging(debugMode);
14347
14349
  var idCaptureProps = React.useMemo(function () {
@@ -14362,10 +14364,11 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
14362
14364
  portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
14363
14365
  rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
14364
14366
  modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
14367
+ allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
14365
14368
  skipSuccessScreen: skipSuccessScreen,
14366
14369
  debugMode: debugMode
14367
14370
  };
14368
- }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, skipSuccessScreen, debugMode]);
14371
+ }, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, skipSuccessScreen, debugMode]);
14369
14372
  var faceLivenessProps = React.useMemo(function () {
14370
14373
  return {
14371
14374
  loadingOverlayMode: faceLivenessLoadingOverlayMode,
@@ -14526,6 +14529,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14526
14529
  idCaptureModelLoadTimeoutMs = _m === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _m,
14527
14530
  _o = _a.selfieCaptureModelLoadTimeoutMs,
14528
14531
  selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
14532
+ _p = _a.allowIdCardBackToFrontCapture,
14533
+ allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
14529
14534
  onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
14530
14535
  onDocumentUploadProgress = _a.onDocumentUploadProgress,
14531
14536
  onDocumentUploaded = _a.onDocumentUploaded,
@@ -14541,28 +14546,28 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14541
14546
  onIdCaptureModelError = _a.onIdCaptureModelError,
14542
14547
  onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
14543
14548
  onCameraAccessDenied = _a.onCameraAccessDenied,
14544
- _p = _a.captureSignature,
14545
- captureSignature = _p === void 0 ? false : _p,
14546
- _q = _a.captureSignatureVideo,
14547
- captureSignatureVideo = _q === void 0 ? false : _q,
14548
- _r = _a.captureAdditionalDocuments,
14549
- captureAdditionalDocuments = _r === void 0 ? [] : _r,
14550
- _s = _a.theme,
14551
- theme = _s === void 0 ? 'default' : _s,
14552
- _t = _a.assets,
14553
- assets = _t === void 0 ? {} : _t,
14554
- _u = _a.classNames,
14555
- classNames = _u === void 0 ? {} : _u,
14556
- _v = _a.colors,
14557
- colors = _v === void 0 ? {} : _v,
14558
- _w = _a.verbiage,
14559
- verbiage = _w === void 0 ? {} : _w,
14560
- _x = _a.geolocationEnabled,
14561
- geolocationEnabled = _x === void 0 ? true : _x,
14562
- _y = _a.geolocationRequired,
14563
- geolocationRequired = _y === void 0 ? false : _y,
14564
- _z = _a.debugMode,
14565
- debugMode = _z === void 0 ? false : _z;
14549
+ _q = _a.captureSignature,
14550
+ captureSignature = _q === void 0 ? false : _q,
14551
+ _r = _a.captureSignatureVideo,
14552
+ captureSignatureVideo = _r === void 0 ? false : _r,
14553
+ _s = _a.captureAdditionalDocuments,
14554
+ captureAdditionalDocuments = _s === void 0 ? [] : _s,
14555
+ _t = _a.theme,
14556
+ theme = _t === void 0 ? 'default' : _t,
14557
+ _u = _a.assets,
14558
+ assets = _u === void 0 ? {} : _u,
14559
+ _v = _a.classNames,
14560
+ classNames = _v === void 0 ? {} : _v,
14561
+ _w = _a.colors,
14562
+ colors = _w === void 0 ? {} : _w,
14563
+ _x = _a.verbiage,
14564
+ verbiage = _x === void 0 ? {} : _x,
14565
+ _y = _a.geolocationEnabled,
14566
+ geolocationEnabled = _y === void 0 ? true : _y,
14567
+ _z = _a.geolocationRequired,
14568
+ geolocationRequired = _z === void 0 ? false : _z,
14569
+ _0 = _a.debugMode,
14570
+ debugMode = _0 === void 0 ? false : _0;
14566
14571
  useLanguage(lang);
14567
14572
  useDebugLogging(debugMode);
14568
14573
  var idCaptureProps = React.useMemo(function () {
@@ -14579,13 +14584,14 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
14579
14584
  portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
14580
14585
  rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
14581
14586
  modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
14587
+ allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
14582
14588
  onExitCapture: onExitCapture,
14583
14589
  onUserCancel: onUserCancel,
14584
14590
  onModelError: onIdCaptureModelError,
14585
14591
  skipSuccessScreen: skipSuccessScreen,
14586
14592
  debugMode: debugMode
14587
14593
  };
14588
- }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
14594
+ }, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
14589
14595
  var faceLivenessProps = React.useMemo(function () {
14590
14596
  return {
14591
14597
  onExitCapture: onExitCapture,