idmission-web-sdk 2.3.55 → 2.3.57

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.
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
235
235
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
236
236
  };
237
237
 
238
- var webSdkVersion = '2.3.55';
238
+ var webSdkVersion = '2.3.57';
239
239
 
240
240
  function getPlatform() {
241
241
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -10465,6 +10465,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10465
10465
  onExitCapture = _a.onExitCapture,
10466
10466
  onUserCancel = _a.onUserCancel,
10467
10467
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
10468
+ onDocumentCaptured = _a.onDocumentCaptured,
10468
10469
  _g = _a.loadingOverlayMode,
10469
10470
  loadingOverlayMode = _g === void 0 ? 'default' : _g,
10470
10471
  customOverlayContent = _a.customOverlayContent,
@@ -10604,6 +10605,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10604
10605
  }, [state.captureState, stop]);
10605
10606
  var onCapture = React.useCallback(function (imageData, width, height, documentType, metadata) {
10606
10607
  logCaptureMetadata(metadata);
10608
+ onDocumentCaptured === null || onDocumentCaptured === void 0 ? void 0 : onDocumentCaptured(metadata);
10607
10609
  dispatchIdCaptureAction({
10608
10610
  type: 'documentCaptured',
10609
10611
  payload: {
@@ -13915,21 +13917,23 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13915
13917
  guidesComponent = _a.guidesComponent,
13916
13918
  _c = _a.minSignaturePadPoints,
13917
13919
  minSignaturePadPoints = _c === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _c,
13918
- _d = _a.headTrackingBoundaryPercentage,
13919
- headTrackingBoundaryPercentage = _d === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _d,
13920
- _e = _a.headTrackingBoundaryType,
13921
- headTrackingBoundaryType = _e === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _e,
13922
- _f = _a.captureAudio,
13923
- captureAudio = _f === void 0 ? false : _f,
13924
- _g = _a.classNames,
13925
- classNames = _g === void 0 ? {} : _g,
13926
- _h = _a.colors,
13927
- colors = _h === void 0 ? {} : _h,
13928
- _j = _a.verbiage,
13929
- rawVerbiage = _j === void 0 ? {} : _j,
13930
- _k = _a.debugMode,
13931
- debugMode = _k === void 0 ? false : _k;
13932
- var _l = useCameraStore(shallow.useShallow(function (state) {
13920
+ _d = _a.headTrackingDisabled,
13921
+ headTrackingDisabled = _d === void 0 ? false : _d,
13922
+ _e = _a.headTrackingBoundaryPercentage,
13923
+ headTrackingBoundaryPercentage = _e === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _e,
13924
+ _f = _a.headTrackingBoundaryType,
13925
+ headTrackingBoundaryType = _f === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _f,
13926
+ _g = _a.captureAudio,
13927
+ captureAudio = _g === void 0 ? false : _g,
13928
+ _h = _a.classNames,
13929
+ classNames = _h === void 0 ? {} : _h,
13930
+ _j = _a.colors,
13931
+ colors = _j === void 0 ? {} : _j,
13932
+ _k = _a.verbiage,
13933
+ rawVerbiage = _k === void 0 ? {} : _k,
13934
+ _l = _a.debugMode,
13935
+ debugMode = _l === void 0 ? false : _l;
13936
+ var _m = useCameraStore(shallow.useShallow(function (state) {
13933
13937
  return {
13934
13938
  camera: state.camera,
13935
13939
  audioStream: state.audioStream,
@@ -13937,19 +13941,19 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13937
13941
  videoHeight: state.videoHeight
13938
13942
  };
13939
13943
  })),
13940
- camera = _l.camera,
13941
- audioStream = _l.audioStream,
13942
- videoWidth = _l.videoWidth,
13943
- videoHeight = _l.videoHeight;
13944
- var _m = useSelfieGuidanceModelsContext(),
13945
- onHeadTrackingPredictionMade = _m.onPredictionMade,
13946
- startHeadTracking = _m.start,
13947
- stopHeadTracking = _m.stop;
13948
- var _o = useVideoSignatureStore(),
13949
- startRecording = _o.startRecording,
13950
- stopRecording = _o.stopRecording,
13951
- clearRecordedData = _o.clearRecordedData,
13952
- isRecording = _o.isRecording;
13944
+ camera = _m.camera,
13945
+ audioStream = _m.audioStream,
13946
+ videoWidth = _m.videoWidth,
13947
+ videoHeight = _m.videoHeight;
13948
+ var _o = useSelfieGuidanceModelsContext(),
13949
+ onHeadTrackingPredictionMade = _o.onPredictionMade,
13950
+ startHeadTracking = _o.start,
13951
+ stopHeadTracking = _o.stop;
13952
+ var _p = useVideoSignatureStore(),
13953
+ startRecording = _p.startRecording,
13954
+ stopRecording = _p.stopRecording,
13955
+ clearRecordedData = _p.clearRecordedData,
13956
+ isRecording = _p.isRecording;
13953
13957
  React.useEffect(function () {
13954
13958
  useVideoSignatureStore.setState({
13955
13959
  onSignatureVideoCaptured: onSignatureVideoCaptured
@@ -13969,18 +13973,18 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13969
13973
  var verbiage = useTranslations(rawVerbiage, {
13970
13974
  guidanceMessageText: 'Please sign the box below'
13971
13975
  });
13972
- var _p = React.useState(true),
13973
- headTrackingSatisfied = _p[0],
13974
- setHeadTrackingSatisfied = _p[1];
13975
- var _q = React.useState(null),
13976
- lastFace = _q[0],
13977
- setLastFace = _q[1];
13978
- var _r = React.useState(0),
13979
- numFramesWithoutFaces = _r[0],
13980
- setNumFramesWithoutFaces = _r[1];
13976
+ var _q = React.useState(true),
13977
+ headTrackingSatisfied = _q[0],
13978
+ setHeadTrackingSatisfied = _q[1];
13979
+ var _r = React.useState(null),
13980
+ lastFace = _r[0],
13981
+ setLastFace = _r[1];
13982
+ var _s = React.useState(0),
13983
+ numFramesWithoutFaces = _s[0],
13984
+ setNumFramesWithoutFaces = _s[1];
13981
13985
  onHeadTrackingPredictionMade(useDebounce.useThrottledCallback(React.useCallback(function (_a) {
13982
13986
  var face = _a.face;
13983
- if (!camera) return;
13987
+ if (!camera || headTrackingDisabled) return;
13984
13988
  var leftEdge = videoWidth * headTrackingBoundaryPercentage;
13985
13989
  var rightEdge = videoWidth * (1 - headTrackingBoundaryPercentage);
13986
13990
  var topEdge = videoHeight * headTrackingBoundaryPercentage;
@@ -13991,13 +13995,13 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13991
13995
  setNumFramesWithoutFaces(face ? 0 : function (n) {
13992
13996
  return n + 1;
13993
13997
  });
13994
- }, [camera, headTrackingBoundaryPercentage, headTrackingBoundaryType, videoHeight, videoWidth]), 16));
13995
- var _s = useResizeObserver(),
13996
- ref = _s.ref,
13997
- _t = _s.width,
13998
- width = _t === void 0 ? 1 : _t,
13999
- _u = _s.height,
14000
- height = _u === void 0 ? 1 : _u;
13998
+ }, [camera, headTrackingBoundaryPercentage, headTrackingBoundaryType, headTrackingDisabled, videoHeight, videoWidth]), 16));
13999
+ var _t = useResizeObserver(),
14000
+ ref = _t.ref,
14001
+ _u = _t.width,
14002
+ width = _u === void 0 ? 1 : _u,
14003
+ _v = _t.height,
14004
+ height = _v === void 0 ? 1 : _v;
14001
14005
  var debugScalingDetails = useDebugScalingDetails({
14002
14006
  enabled: debugMode,
14003
14007
  pageWidth: width,
@@ -14293,49 +14297,51 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14293
14297
  captureAudio = _d === void 0 ? false : _d,
14294
14298
  _e = _a.minSignaturePadPoints,
14295
14299
  minSignaturePadPoints = _e === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _e,
14296
- _f = _a.headTrackingBoundaryPercentage,
14297
- headTrackingBoundaryPercentage = _f === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _f,
14298
- _g = _a.headTrackingBoundaryType,
14299
- headTrackingBoundaryType = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _g,
14300
- _h = _a.allowSignatureAfterLivenessCheckFailure,
14301
- allowSignatureAfterLivenessCheckFailure = _h === void 0 ? false : _h,
14302
- _j = _a.restartVideoOnSignaturePadCleared,
14303
- restartVideoOnSignaturePadCleared = _j === void 0 ? true : _j,
14304
- _k = _a.skipLivenessValidation,
14305
- skipLivenessValidation = _k === void 0 ? false : _k,
14300
+ _f = _a.headTrackingDisabled,
14301
+ headTrackingDisabled = _f === void 0 ? false : _f,
14302
+ _g = _a.headTrackingBoundaryPercentage,
14303
+ headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
14304
+ _h = _a.headTrackingBoundaryType,
14305
+ headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
14306
+ _j = _a.allowSignatureAfterLivenessCheckFailure,
14307
+ allowSignatureAfterLivenessCheckFailure = _j === void 0 ? false : _j,
14308
+ _k = _a.restartVideoOnSignaturePadCleared,
14309
+ restartVideoOnSignaturePadCleared = _k === void 0 ? true : _k,
14310
+ _l = _a.skipLivenessValidation,
14311
+ skipLivenessValidation = _l === void 0 ? false : _l,
14306
14312
  faceLivenessProps = _a.faceLivenessProps,
14307
14313
  guidesComponent = _a.guidesComponent,
14308
- _l = _a.assets,
14309
- assets = _l === void 0 ? {} : _l,
14310
- _m = _a.classNames,
14311
- classNames = _m === void 0 ? {} : _m,
14312
- _o = _a.colors,
14313
- colors = _o === void 0 ? {} : _o,
14314
- _p = _a.verbiage,
14315
- verbiage = _p === void 0 ? {} : _p,
14316
- _q = _a.debugMode,
14317
- debugMode = _q === void 0 ? false : _q;
14318
- var _r = useSubmissionContext(),
14319
- selfieImage = _r.selfieImage,
14320
- setSelfieImage = _r.setSelfieImage,
14321
- setSignatureData = _r.setSignatureData,
14322
- setSignatureVideoUrl = _r.setSignatureVideoUrl,
14323
- logSelfieCaptureAttempt = _r.logSelfieCaptureAttempt,
14324
- uploadDocument = _r.uploadDocument;
14314
+ _m = _a.assets,
14315
+ assets = _m === void 0 ? {} : _m,
14316
+ _o = _a.classNames,
14317
+ classNames = _o === void 0 ? {} : _o,
14318
+ _p = _a.colors,
14319
+ colors = _p === void 0 ? {} : _p,
14320
+ _q = _a.verbiage,
14321
+ verbiage = _q === void 0 ? {} : _q,
14322
+ _r = _a.debugMode,
14323
+ debugMode = _r === void 0 ? false : _r;
14324
+ var _s = useSubmissionContext(),
14325
+ selfieImage = _s.selfieImage,
14326
+ setSelfieImage = _s.setSelfieImage,
14327
+ setSignatureData = _s.setSignatureData,
14328
+ setSignatureVideoUrl = _s.setSignatureVideoUrl,
14329
+ logSelfieCaptureAttempt = _s.logSelfieCaptureAttempt,
14330
+ uploadDocument = _s.uploadDocument;
14325
14331
  var cameraAccessDenied = useCameraStore(shallow.useShallow(function (state) {
14326
14332
  return {
14327
14333
  cameraAccessDenied: state.cameraAccessDenied
14328
14334
  };
14329
14335
  })).cameraAccessDenied;
14330
- var _s = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
14331
- captureState = _s[0],
14332
- setCaptureState = _s[1];
14336
+ var _t = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
14337
+ captureState = _t[0],
14338
+ setCaptureState = _t[1];
14333
14339
  var operationStartedAt = React.useRef();
14334
14340
  var captureStartedAt = React.useRef();
14335
14341
  var captureEndedAt = React.useRef();
14336
- var _t = useSelfieGuidanceModelsContext(),
14337
- start = _t.start,
14338
- stop = _t.stop;
14342
+ var _u = useSelfieGuidanceModelsContext(),
14343
+ start = _u.start,
14344
+ stop = _u.stop;
14339
14345
  React.useEffect(function () {
14340
14346
  operationStartedAt.current = new Date();
14341
14347
  }, []);
@@ -14379,9 +14385,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14379
14385
  filetype: 'image/jpeg'
14380
14386
  }).then(onSelfieCaptured);
14381
14387
  }, [logCaptureMetadata, onSelfieCaptured, setSelfieImage, uploadDocument]);
14382
- var _u = React.useState(null),
14383
- signatureImageUrl = _u[0],
14384
- setSignatureImageUrl = _u[1];
14388
+ var _v = React.useState(null),
14389
+ signatureImageUrl = _v[0],
14390
+ setSignatureImageUrl = _v[1];
14385
14391
  var onSignatureCaptureCompleted = React.useCallback(function (videoData, signatureData, signatureImageData) {
14386
14392
  setSignatureData(signatureData);
14387
14393
  setSignatureVideoUrl(URL.createObjectURL(videoData));
@@ -14389,17 +14395,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14389
14395
  setCaptureState('SUCCESS');
14390
14396
  onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData);
14391
14397
  }, [onVideoCaptured, setSignatureData, setSignatureVideoUrl]);
14392
- var _v = React.useState(true),
14393
- showLoadingOverlay = _v[0],
14394
- setShowLoadingOverlay = _v[1];
14398
+ var _w = React.useState(true),
14399
+ showLoadingOverlay = _w[0],
14400
+ setShowLoadingOverlay = _w[1];
14395
14401
  var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
14396
14402
  setShowLoadingOverlay(false);
14397
14403
  setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
14398
14404
  useVideoSignatureStore.getState().clearRecordedData();
14399
14405
  }, [skipLivenessValidation]);
14400
- var _w = React.useState(0),
14401
- attempt = _w[0],
14402
- setAttempt = _w[1];
14406
+ var _x = React.useState(0),
14407
+ attempt = _x[0],
14408
+ setAttempt = _x[1];
14403
14409
  var onRetry = React.useCallback(function () {
14404
14410
  onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
14405
14411
  setAttempt(function (n) {
@@ -14503,6 +14509,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14503
14509
  onFaceNotDetected: onSignatureCaptureFacesNotDetected,
14504
14510
  onExit: onExitSignatureCapture,
14505
14511
  minSignaturePadPoints: minSignaturePadPoints,
14512
+ headTrackingDisabled: headTrackingDisabled,
14506
14513
  headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
14507
14514
  headTrackingBoundaryType: headTrackingBoundaryType,
14508
14515
  restartVideoOnSignaturePadCleared: restartVideoOnSignaturePadCleared,
@@ -16239,14 +16246,16 @@ var IdValidation = function IdValidation(_a) {
16239
16246
  modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
16240
16247
  _q = _a.forceFallbackMode,
16241
16248
  forceFallbackMode = _q === void 0 ? false : _q,
16242
- _r = _a.allowIdCardBackToFrontCapture,
16243
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
16244
- _s = _a.enableOverrideWrongDocumentTypeDialog,
16245
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
16246
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
16247
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
16248
- _u = _a.allowUploadingDocumentsFromStorage,
16249
- allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
16249
+ _r = _a.silentFallback,
16250
+ silentFallback = _r === void 0 ? false : _r,
16251
+ _s = _a.allowIdCardBackToFrontCapture,
16252
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
16253
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
16254
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
16255
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
16256
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
16257
+ _v = _a.allowUploadingDocumentsFromStorage,
16258
+ allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
16250
16259
  onLoadingStarted = _a.onLoadingStarted,
16251
16260
  onLoadingProgress = _a.onLoadingProgress,
16252
16261
  onLoadingCompleted = _a.onLoadingCompleted,
@@ -16266,28 +16275,29 @@ var IdValidation = function IdValidation(_a) {
16266
16275
  onModelError = _a.onModelError,
16267
16276
  onCameraAccessDenied = _a.onCameraAccessDenied,
16268
16277
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
16269
- _v = _a.theme,
16270
- theme = _v === void 0 ? 'default' : _v,
16271
- _w = _a.assets,
16272
- assets = _w === void 0 ? {} : _w,
16273
- _x = _a.classNames,
16274
- classNames = _x === void 0 ? {} : _x,
16275
- _y = _a.colors,
16276
- colors = _y === void 0 ? {} : _y,
16277
- _z = _a.verbiage,
16278
- verbiage = _z === void 0 ? {} : _z,
16279
- _0 = _a.captureSignature,
16280
- captureSignature = _0 === void 0 ? false : _0,
16281
- _1 = _a.captureSignatureVideo,
16282
- captureSignatureVideo = _1 === void 0 ? false : _1,
16283
- _2 = _a.captureAdditionalDocuments,
16284
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
16285
- _3 = _a.geolocationEnabled,
16286
- geolocationEnabled = _3 === void 0 ? true : _3,
16287
- _4 = _a.geolocationRequired,
16288
- geolocationRequired = _4 === void 0 ? false : _4,
16289
- _5 = _a.debugMode,
16290
- debugMode = _5 === void 0 ? false : _5;
16278
+ onDocumentCaptured = _a.onDocumentCaptured,
16279
+ _w = _a.theme,
16280
+ theme = _w === void 0 ? 'default' : _w,
16281
+ _x = _a.assets,
16282
+ assets = _x === void 0 ? {} : _x,
16283
+ _y = _a.classNames,
16284
+ classNames = _y === void 0 ? {} : _y,
16285
+ _z = _a.colors,
16286
+ colors = _z === void 0 ? {} : _z,
16287
+ _0 = _a.verbiage,
16288
+ verbiage = _0 === void 0 ? {} : _0,
16289
+ _1 = _a.captureSignature,
16290
+ captureSignature = _1 === void 0 ? false : _1,
16291
+ _2 = _a.captureSignatureVideo,
16292
+ captureSignatureVideo = _2 === void 0 ? false : _2,
16293
+ _3 = _a.captureAdditionalDocuments,
16294
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
16295
+ _4 = _a.geolocationEnabled,
16296
+ geolocationEnabled = _4 === void 0 ? true : _4,
16297
+ _5 = _a.geolocationRequired,
16298
+ geolocationRequired = _5 === void 0 ? false : _5,
16299
+ _6 = _a.debugMode,
16300
+ debugMode = _6 === void 0 ? false : _6;
16291
16301
  useLanguage(lang);
16292
16302
  useDebugLogging(debugMode);
16293
16303
  var idCaptureProps = React.useMemo(function () {
@@ -16298,6 +16308,7 @@ var IdValidation = function IdValidation(_a) {
16298
16308
  onExitCapture: onExitCapture,
16299
16309
  onUserCancel: onUserCancel,
16300
16310
  onModelError: onModelError,
16311
+ onDocumentCaptured: onDocumentCaptured,
16301
16312
  precapturedDocuments: precapturedDocuments,
16302
16313
  captureRequirement: idCaptureRequirement,
16303
16314
  allowSinglePageIdCapture: allowSinglePageIdCapture,
@@ -16308,6 +16319,7 @@ var IdValidation = function IdValidation(_a) {
16308
16319
  customOverlayContent: customOverlayContent,
16309
16320
  onLoadingOverlayDismissed: onLoadingOverlayDismissed,
16310
16321
  forceFallbackMode: forceFallbackMode,
16322
+ silentFallback: silentFallback,
16311
16323
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
16312
16324
  allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
16313
16325
  instructions: instructions,
@@ -16324,7 +16336,7 @@ var IdValidation = function IdValidation(_a) {
16324
16336
  verbiage: verbiage,
16325
16337
  debugMode: debugMode
16326
16338
  };
16327
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, allowUploadingDocumentsFromStorage, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
16339
+ }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onModelError, onDocumentCaptured, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, silentFallback, allowIdCardBackToFrontCapture, allowUploadingDocumentsFromStorage, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
16328
16340
  var additionalDocumentCaptureProps = React.useMemo(function () {
16329
16341
  return {
16330
16342
  documents: captureAdditionalDocuments,
@@ -18342,29 +18354,31 @@ var SignatureKYC = function SignatureKYC(_a) {
18342
18354
  idCardForFaceMatch = _a.idCardForFaceMatch,
18343
18355
  _f = _a.minSignaturePadPoints,
18344
18356
  minSignaturePadPoints = _f === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _f,
18345
- _g = _a.headTrackingBoundaryPercentage,
18346
- headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
18347
- _h = _a.headTrackingBoundaryType,
18348
- headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
18349
- _j = _a.modelLoadTimeoutMs,
18350
- modelLoadTimeoutMs = _j === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _j,
18351
- _k = _a.allowSignatureAfterLivenessCheckFailure,
18352
- allowSignatureAfterLivenessCheckFailure = _k === void 0 ? false : _k,
18353
- _l = _a.restartVideoOnSignaturePadCleared,
18354
- restartVideoOnSignaturePadCleared = _l === void 0 ? true : _l,
18357
+ _g = _a.headTrackingDisabled,
18358
+ headTrackingDisabled = _g === void 0 ? false : _g,
18359
+ _h = _a.headTrackingBoundaryPercentage,
18360
+ headTrackingBoundaryPercentage = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _h,
18361
+ _j = _a.headTrackingBoundaryType,
18362
+ headTrackingBoundaryType = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _j,
18363
+ _k = _a.modelLoadTimeoutMs,
18364
+ modelLoadTimeoutMs = _k === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _k,
18365
+ _l = _a.allowSignatureAfterLivenessCheckFailure,
18366
+ allowSignatureAfterLivenessCheckFailure = _l === void 0 ? false : _l,
18367
+ _m = _a.restartVideoOnSignaturePadCleared,
18368
+ restartVideoOnSignaturePadCleared = _m === void 0 ? true : _m,
18355
18369
  faceLivenessProps = _a.faceLivenessProps,
18356
- _m = _a.skipLivenessValidation,
18357
- skipLivenessValidation = _m === void 0 ? false : _m,
18370
+ _o = _a.skipLivenessValidation,
18371
+ skipLivenessValidation = _o === void 0 ? false : _o,
18358
18372
  guidesComponent = _a.guidesComponent,
18359
- _o = _a.theme,
18360
- theme = _o === void 0 ? 'default' : _o,
18373
+ _p = _a.theme,
18374
+ theme = _p === void 0 ? 'default' : _p,
18361
18375
  classNames = _a.classNames,
18362
18376
  colors = _a.colors,
18363
18377
  verbiage = _a.verbiage,
18364
18378
  geolocationEnabled = _a.geolocationEnabled,
18365
18379
  geolocationRequired = _a.geolocationRequired,
18366
- _p = _a.debugMode,
18367
- debugMode = _p === void 0 ? false : _p;
18380
+ _q = _a.debugMode,
18381
+ debugMode = _q === void 0 ? false : _q;
18368
18382
  useLanguage(lang);
18369
18383
  useDebugLogging(debugMode);
18370
18384
  return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
@@ -18414,6 +18428,7 @@ var SignatureKYC = function SignatureKYC(_a) {
18414
18428
  skipSuccessScreen: skipSuccessScreen,
18415
18429
  captureAudio: captureAudio,
18416
18430
  minSignaturePadPoints: minSignaturePadPoints,
18431
+ headTrackingDisabled: headTrackingDisabled,
18417
18432
  headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
18418
18433
  headTrackingBoundaryType: headTrackingBoundaryType,
18419
18434
  modelLoadTimeoutMs: modelLoadTimeoutMs,
@@ -18429,7 +18444,7 @@ var SignatureKYC = function SignatureKYC(_a) {
18429
18444
  onModelError: onModelError,
18430
18445
  onUserCancel: onUserCancel
18431
18446
  };
18432
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, guidesComponent, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
18447
+ }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, guidesComponent, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
18433
18448
  })))));
18434
18449
  };
18435
18450