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.
package/dist/sdk2.esm.js CHANGED
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
204
204
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
205
205
  };
206
206
 
207
- var webSdkVersion = '2.3.55';
207
+ var webSdkVersion = '2.3.57';
208
208
 
209
209
  function getPlatform() {
210
210
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -10434,6 +10434,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10434
10434
  onExitCapture = _a.onExitCapture,
10435
10435
  onUserCancel = _a.onUserCancel,
10436
10436
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
10437
+ onDocumentCaptured = _a.onDocumentCaptured,
10437
10438
  _g = _a.loadingOverlayMode,
10438
10439
  loadingOverlayMode = _g === void 0 ? 'default' : _g,
10439
10440
  customOverlayContent = _a.customOverlayContent,
@@ -10573,6 +10574,7 @@ var IdCaptureWizard = function IdCaptureWizard(_a) {
10573
10574
  }, [state.captureState, stop]);
10574
10575
  var onCapture = useCallback(function (imageData, width, height, documentType, metadata) {
10575
10576
  logCaptureMetadata(metadata);
10577
+ onDocumentCaptured === null || onDocumentCaptured === void 0 ? void 0 : onDocumentCaptured(metadata);
10576
10578
  dispatchIdCaptureAction({
10577
10579
  type: 'documentCaptured',
10578
10580
  payload: {
@@ -13884,21 +13886,23 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13884
13886
  guidesComponent = _a.guidesComponent,
13885
13887
  _c = _a.minSignaturePadPoints,
13886
13888
  minSignaturePadPoints = _c === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _c,
13887
- _d = _a.headTrackingBoundaryPercentage,
13888
- headTrackingBoundaryPercentage = _d === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _d,
13889
- _e = _a.headTrackingBoundaryType,
13890
- headTrackingBoundaryType = _e === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _e,
13891
- _f = _a.captureAudio,
13892
- captureAudio = _f === void 0 ? false : _f,
13893
- _g = _a.classNames,
13894
- classNames = _g === void 0 ? {} : _g,
13895
- _h = _a.colors,
13896
- colors = _h === void 0 ? {} : _h,
13897
- _j = _a.verbiage,
13898
- rawVerbiage = _j === void 0 ? {} : _j,
13899
- _k = _a.debugMode,
13900
- debugMode = _k === void 0 ? false : _k;
13901
- var _l = useCameraStore(useShallow(function (state) {
13889
+ _d = _a.headTrackingDisabled,
13890
+ headTrackingDisabled = _d === void 0 ? false : _d,
13891
+ _e = _a.headTrackingBoundaryPercentage,
13892
+ headTrackingBoundaryPercentage = _e === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _e,
13893
+ _f = _a.headTrackingBoundaryType,
13894
+ headTrackingBoundaryType = _f === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _f,
13895
+ _g = _a.captureAudio,
13896
+ captureAudio = _g === void 0 ? false : _g,
13897
+ _h = _a.classNames,
13898
+ classNames = _h === void 0 ? {} : _h,
13899
+ _j = _a.colors,
13900
+ colors = _j === void 0 ? {} : _j,
13901
+ _k = _a.verbiage,
13902
+ rawVerbiage = _k === void 0 ? {} : _k,
13903
+ _l = _a.debugMode,
13904
+ debugMode = _l === void 0 ? false : _l;
13905
+ var _m = useCameraStore(useShallow(function (state) {
13902
13906
  return {
13903
13907
  camera: state.camera,
13904
13908
  audioStream: state.audioStream,
@@ -13906,19 +13910,19 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13906
13910
  videoHeight: state.videoHeight
13907
13911
  };
13908
13912
  })),
13909
- camera = _l.camera,
13910
- audioStream = _l.audioStream,
13911
- videoWidth = _l.videoWidth,
13912
- videoHeight = _l.videoHeight;
13913
- var _m = useSelfieGuidanceModelsContext(),
13914
- onHeadTrackingPredictionMade = _m.onPredictionMade,
13915
- startHeadTracking = _m.start,
13916
- stopHeadTracking = _m.stop;
13917
- var _o = useVideoSignatureStore(),
13918
- startRecording = _o.startRecording,
13919
- stopRecording = _o.stopRecording,
13920
- clearRecordedData = _o.clearRecordedData,
13921
- isRecording = _o.isRecording;
13913
+ camera = _m.camera,
13914
+ audioStream = _m.audioStream,
13915
+ videoWidth = _m.videoWidth,
13916
+ videoHeight = _m.videoHeight;
13917
+ var _o = useSelfieGuidanceModelsContext(),
13918
+ onHeadTrackingPredictionMade = _o.onPredictionMade,
13919
+ startHeadTracking = _o.start,
13920
+ stopHeadTracking = _o.stop;
13921
+ var _p = useVideoSignatureStore(),
13922
+ startRecording = _p.startRecording,
13923
+ stopRecording = _p.stopRecording,
13924
+ clearRecordedData = _p.clearRecordedData,
13925
+ isRecording = _p.isRecording;
13922
13926
  useEffect(function () {
13923
13927
  useVideoSignatureStore.setState({
13924
13928
  onSignatureVideoCaptured: onSignatureVideoCaptured
@@ -13938,18 +13942,18 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13938
13942
  var verbiage = useTranslations(rawVerbiage, {
13939
13943
  guidanceMessageText: 'Please sign the box below'
13940
13944
  });
13941
- var _p = useState(true),
13942
- headTrackingSatisfied = _p[0],
13943
- setHeadTrackingSatisfied = _p[1];
13944
- var _q = useState(null),
13945
- lastFace = _q[0],
13946
- setLastFace = _q[1];
13947
- var _r = useState(0),
13948
- numFramesWithoutFaces = _r[0],
13949
- setNumFramesWithoutFaces = _r[1];
13945
+ var _q = useState(true),
13946
+ headTrackingSatisfied = _q[0],
13947
+ setHeadTrackingSatisfied = _q[1];
13948
+ var _r = useState(null),
13949
+ lastFace = _r[0],
13950
+ setLastFace = _r[1];
13951
+ var _s = useState(0),
13952
+ numFramesWithoutFaces = _s[0],
13953
+ setNumFramesWithoutFaces = _s[1];
13950
13954
  onHeadTrackingPredictionMade(useThrottledCallback(useCallback(function (_a) {
13951
13955
  var face = _a.face;
13952
- if (!camera) return;
13956
+ if (!camera || headTrackingDisabled) return;
13953
13957
  var leftEdge = videoWidth * headTrackingBoundaryPercentage;
13954
13958
  var rightEdge = videoWidth * (1 - headTrackingBoundaryPercentage);
13955
13959
  var topEdge = videoHeight * headTrackingBoundaryPercentage;
@@ -13960,13 +13964,13 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13960
13964
  setNumFramesWithoutFaces(face ? 0 : function (n) {
13961
13965
  return n + 1;
13962
13966
  });
13963
- }, [camera, headTrackingBoundaryPercentage, headTrackingBoundaryType, videoHeight, videoWidth]), 16));
13964
- var _s = useResizeObserver(),
13965
- ref = _s.ref,
13966
- _t = _s.width,
13967
- width = _t === void 0 ? 1 : _t,
13968
- _u = _s.height,
13969
- height = _u === void 0 ? 1 : _u;
13967
+ }, [camera, headTrackingBoundaryPercentage, headTrackingBoundaryType, headTrackingDisabled, videoHeight, videoWidth]), 16));
13968
+ var _t = useResizeObserver(),
13969
+ ref = _t.ref,
13970
+ _u = _t.width,
13971
+ width = _u === void 0 ? 1 : _u,
13972
+ _v = _t.height,
13973
+ height = _v === void 0 ? 1 : _v;
13970
13974
  var debugScalingDetails = useDebugScalingDetails({
13971
13975
  enabled: debugMode,
13972
13976
  pageWidth: width,
@@ -14262,49 +14266,51 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14262
14266
  captureAudio = _d === void 0 ? false : _d,
14263
14267
  _e = _a.minSignaturePadPoints,
14264
14268
  minSignaturePadPoints = _e === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _e,
14265
- _f = _a.headTrackingBoundaryPercentage,
14266
- headTrackingBoundaryPercentage = _f === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _f,
14267
- _g = _a.headTrackingBoundaryType,
14268
- headTrackingBoundaryType = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _g,
14269
- _h = _a.allowSignatureAfterLivenessCheckFailure,
14270
- allowSignatureAfterLivenessCheckFailure = _h === void 0 ? false : _h,
14271
- _j = _a.restartVideoOnSignaturePadCleared,
14272
- restartVideoOnSignaturePadCleared = _j === void 0 ? true : _j,
14273
- _k = _a.skipLivenessValidation,
14274
- skipLivenessValidation = _k === void 0 ? false : _k,
14269
+ _f = _a.headTrackingDisabled,
14270
+ headTrackingDisabled = _f === void 0 ? false : _f,
14271
+ _g = _a.headTrackingBoundaryPercentage,
14272
+ headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
14273
+ _h = _a.headTrackingBoundaryType,
14274
+ headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
14275
+ _j = _a.allowSignatureAfterLivenessCheckFailure,
14276
+ allowSignatureAfterLivenessCheckFailure = _j === void 0 ? false : _j,
14277
+ _k = _a.restartVideoOnSignaturePadCleared,
14278
+ restartVideoOnSignaturePadCleared = _k === void 0 ? true : _k,
14279
+ _l = _a.skipLivenessValidation,
14280
+ skipLivenessValidation = _l === void 0 ? false : _l,
14275
14281
  faceLivenessProps = _a.faceLivenessProps,
14276
14282
  guidesComponent = _a.guidesComponent,
14277
- _l = _a.assets,
14278
- assets = _l === void 0 ? {} : _l,
14279
- _m = _a.classNames,
14280
- classNames = _m === void 0 ? {} : _m,
14281
- _o = _a.colors,
14282
- colors = _o === void 0 ? {} : _o,
14283
- _p = _a.verbiage,
14284
- verbiage = _p === void 0 ? {} : _p,
14285
- _q = _a.debugMode,
14286
- debugMode = _q === void 0 ? false : _q;
14287
- var _r = useSubmissionContext(),
14288
- selfieImage = _r.selfieImage,
14289
- setSelfieImage = _r.setSelfieImage,
14290
- setSignatureData = _r.setSignatureData,
14291
- setSignatureVideoUrl = _r.setSignatureVideoUrl,
14292
- logSelfieCaptureAttempt = _r.logSelfieCaptureAttempt,
14293
- uploadDocument = _r.uploadDocument;
14283
+ _m = _a.assets,
14284
+ assets = _m === void 0 ? {} : _m,
14285
+ _o = _a.classNames,
14286
+ classNames = _o === void 0 ? {} : _o,
14287
+ _p = _a.colors,
14288
+ colors = _p === void 0 ? {} : _p,
14289
+ _q = _a.verbiage,
14290
+ verbiage = _q === void 0 ? {} : _q,
14291
+ _r = _a.debugMode,
14292
+ debugMode = _r === void 0 ? false : _r;
14293
+ var _s = useSubmissionContext(),
14294
+ selfieImage = _s.selfieImage,
14295
+ setSelfieImage = _s.setSelfieImage,
14296
+ setSignatureData = _s.setSignatureData,
14297
+ setSignatureVideoUrl = _s.setSignatureVideoUrl,
14298
+ logSelfieCaptureAttempt = _s.logSelfieCaptureAttempt,
14299
+ uploadDocument = _s.uploadDocument;
14294
14300
  var cameraAccessDenied = useCameraStore(useShallow(function (state) {
14295
14301
  return {
14296
14302
  cameraAccessDenied: state.cameraAccessDenied
14297
14303
  };
14298
14304
  })).cameraAccessDenied;
14299
- var _s = useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
14300
- captureState = _s[0],
14301
- setCaptureState = _s[1];
14305
+ var _t = useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
14306
+ captureState = _t[0],
14307
+ setCaptureState = _t[1];
14302
14308
  var operationStartedAt = useRef();
14303
14309
  var captureStartedAt = useRef();
14304
14310
  var captureEndedAt = useRef();
14305
- var _t = useSelfieGuidanceModelsContext(),
14306
- start = _t.start,
14307
- stop = _t.stop;
14311
+ var _u = useSelfieGuidanceModelsContext(),
14312
+ start = _u.start,
14313
+ stop = _u.stop;
14308
14314
  useEffect(function () {
14309
14315
  operationStartedAt.current = new Date();
14310
14316
  }, []);
@@ -14348,9 +14354,9 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14348
14354
  filetype: 'image/jpeg'
14349
14355
  }).then(onSelfieCaptured);
14350
14356
  }, [logCaptureMetadata, onSelfieCaptured, setSelfieImage, uploadDocument]);
14351
- var _u = useState(null),
14352
- signatureImageUrl = _u[0],
14353
- setSignatureImageUrl = _u[1];
14357
+ var _v = useState(null),
14358
+ signatureImageUrl = _v[0],
14359
+ setSignatureImageUrl = _v[1];
14354
14360
  var onSignatureCaptureCompleted = useCallback(function (videoData, signatureData, signatureImageData) {
14355
14361
  setSignatureData(signatureData);
14356
14362
  setSignatureVideoUrl(URL.createObjectURL(videoData));
@@ -14358,17 +14364,17 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14358
14364
  setCaptureState('SUCCESS');
14359
14365
  onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData);
14360
14366
  }, [onVideoCaptured, setSignatureData, setSignatureVideoUrl]);
14361
- var _v = useState(true),
14362
- showLoadingOverlay = _v[0],
14363
- setShowLoadingOverlay = _v[1];
14367
+ var _w = useState(true),
14368
+ showLoadingOverlay = _w[0],
14369
+ setShowLoadingOverlay = _w[1];
14364
14370
  var onSignatureCaptureFacesNotDetected = useCallback(function () {
14365
14371
  setShowLoadingOverlay(false);
14366
14372
  setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
14367
14373
  useVideoSignatureStore.getState().clearRecordedData();
14368
14374
  }, [skipLivenessValidation]);
14369
- var _w = useState(0),
14370
- attempt = _w[0],
14371
- setAttempt = _w[1];
14375
+ var _x = useState(0),
14376
+ attempt = _x[0],
14377
+ setAttempt = _x[1];
14372
14378
  var onRetry = useCallback(function () {
14373
14379
  onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
14374
14380
  setAttempt(function (n) {
@@ -14472,6 +14478,7 @@ var VideoSignatureWizard = function VideoSignatureWizard(_a) {
14472
14478
  onFaceNotDetected: onSignatureCaptureFacesNotDetected,
14473
14479
  onExit: onExitSignatureCapture,
14474
14480
  minSignaturePadPoints: minSignaturePadPoints,
14481
+ headTrackingDisabled: headTrackingDisabled,
14475
14482
  headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
14476
14483
  headTrackingBoundaryType: headTrackingBoundaryType,
14477
14484
  restartVideoOnSignaturePadCleared: restartVideoOnSignaturePadCleared,
@@ -16208,14 +16215,16 @@ var IdValidation = function IdValidation(_a) {
16208
16215
  modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
16209
16216
  _q = _a.forceFallbackMode,
16210
16217
  forceFallbackMode = _q === void 0 ? false : _q,
16211
- _r = _a.allowIdCardBackToFrontCapture,
16212
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
16213
- _s = _a.enableOverrideWrongDocumentTypeDialog,
16214
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
16215
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
16216
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
16217
- _u = _a.allowUploadingDocumentsFromStorage,
16218
- allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
16218
+ _r = _a.silentFallback,
16219
+ silentFallback = _r === void 0 ? false : _r,
16220
+ _s = _a.allowIdCardBackToFrontCapture,
16221
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
16222
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
16223
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
16224
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
16225
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
16226
+ _v = _a.allowUploadingDocumentsFromStorage,
16227
+ allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
16219
16228
  onLoadingStarted = _a.onLoadingStarted,
16220
16229
  onLoadingProgress = _a.onLoadingProgress,
16221
16230
  onLoadingCompleted = _a.onLoadingCompleted,
@@ -16235,28 +16244,29 @@ var IdValidation = function IdValidation(_a) {
16235
16244
  onModelError = _a.onModelError,
16236
16245
  onCameraAccessDenied = _a.onCameraAccessDenied,
16237
16246
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
16238
- _v = _a.theme,
16239
- theme = _v === void 0 ? 'default' : _v,
16240
- _w = _a.assets,
16241
- assets = _w === void 0 ? {} : _w,
16242
- _x = _a.classNames,
16243
- classNames = _x === void 0 ? {} : _x,
16244
- _y = _a.colors,
16245
- colors = _y === void 0 ? {} : _y,
16246
- _z = _a.verbiage,
16247
- verbiage = _z === void 0 ? {} : _z,
16248
- _0 = _a.captureSignature,
16249
- captureSignature = _0 === void 0 ? false : _0,
16250
- _1 = _a.captureSignatureVideo,
16251
- captureSignatureVideo = _1 === void 0 ? false : _1,
16252
- _2 = _a.captureAdditionalDocuments,
16253
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
16254
- _3 = _a.geolocationEnabled,
16255
- geolocationEnabled = _3 === void 0 ? true : _3,
16256
- _4 = _a.geolocationRequired,
16257
- geolocationRequired = _4 === void 0 ? false : _4,
16258
- _5 = _a.debugMode,
16259
- debugMode = _5 === void 0 ? false : _5;
16247
+ onDocumentCaptured = _a.onDocumentCaptured,
16248
+ _w = _a.theme,
16249
+ theme = _w === void 0 ? 'default' : _w,
16250
+ _x = _a.assets,
16251
+ assets = _x === void 0 ? {} : _x,
16252
+ _y = _a.classNames,
16253
+ classNames = _y === void 0 ? {} : _y,
16254
+ _z = _a.colors,
16255
+ colors = _z === void 0 ? {} : _z,
16256
+ _0 = _a.verbiage,
16257
+ verbiage = _0 === void 0 ? {} : _0,
16258
+ _1 = _a.captureSignature,
16259
+ captureSignature = _1 === void 0 ? false : _1,
16260
+ _2 = _a.captureSignatureVideo,
16261
+ captureSignatureVideo = _2 === void 0 ? false : _2,
16262
+ _3 = _a.captureAdditionalDocuments,
16263
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
16264
+ _4 = _a.geolocationEnabled,
16265
+ geolocationEnabled = _4 === void 0 ? true : _4,
16266
+ _5 = _a.geolocationRequired,
16267
+ geolocationRequired = _5 === void 0 ? false : _5,
16268
+ _6 = _a.debugMode,
16269
+ debugMode = _6 === void 0 ? false : _6;
16260
16270
  useLanguage(lang);
16261
16271
  useDebugLogging(debugMode);
16262
16272
  var idCaptureProps = useMemo(function () {
@@ -16267,6 +16277,7 @@ var IdValidation = function IdValidation(_a) {
16267
16277
  onExitCapture: onExitCapture,
16268
16278
  onUserCancel: onUserCancel,
16269
16279
  onModelError: onModelError,
16280
+ onDocumentCaptured: onDocumentCaptured,
16270
16281
  precapturedDocuments: precapturedDocuments,
16271
16282
  captureRequirement: idCaptureRequirement,
16272
16283
  allowSinglePageIdCapture: allowSinglePageIdCapture,
@@ -16277,6 +16288,7 @@ var IdValidation = function IdValidation(_a) {
16277
16288
  customOverlayContent: customOverlayContent,
16278
16289
  onLoadingOverlayDismissed: onLoadingOverlayDismissed,
16279
16290
  forceFallbackMode: forceFallbackMode,
16291
+ silentFallback: silentFallback,
16280
16292
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
16281
16293
  allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
16282
16294
  instructions: instructions,
@@ -16293,7 +16305,7 @@ var IdValidation = function IdValidation(_a) {
16293
16305
  verbiage: verbiage,
16294
16306
  debugMode: debugMode
16295
16307
  };
16296
- }, [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]);
16308
+ }, [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]);
16297
16309
  var additionalDocumentCaptureProps = useMemo(function () {
16298
16310
  return {
16299
16311
  documents: captureAdditionalDocuments,
@@ -18311,29 +18323,31 @@ var SignatureKYC = function SignatureKYC(_a) {
18311
18323
  idCardForFaceMatch = _a.idCardForFaceMatch,
18312
18324
  _f = _a.minSignaturePadPoints,
18313
18325
  minSignaturePadPoints = _f === void 0 ? DEFAULT_MIN_SIGNATURE_PAD_POINTS : _f,
18314
- _g = _a.headTrackingBoundaryPercentage,
18315
- headTrackingBoundaryPercentage = _g === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _g,
18316
- _h = _a.headTrackingBoundaryType,
18317
- headTrackingBoundaryType = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _h,
18318
- _j = _a.modelLoadTimeoutMs,
18319
- modelLoadTimeoutMs = _j === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _j,
18320
- _k = _a.allowSignatureAfterLivenessCheckFailure,
18321
- allowSignatureAfterLivenessCheckFailure = _k === void 0 ? false : _k,
18322
- _l = _a.restartVideoOnSignaturePadCleared,
18323
- restartVideoOnSignaturePadCleared = _l === void 0 ? true : _l,
18326
+ _g = _a.headTrackingDisabled,
18327
+ headTrackingDisabled = _g === void 0 ? false : _g,
18328
+ _h = _a.headTrackingBoundaryPercentage,
18329
+ headTrackingBoundaryPercentage = _h === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_PERCENTAGE : _h,
18330
+ _j = _a.headTrackingBoundaryType,
18331
+ headTrackingBoundaryType = _j === void 0 ? DEFAULT_HEAD_TRACKING_BOUNDARY_TYPE : _j,
18332
+ _k = _a.modelLoadTimeoutMs,
18333
+ modelLoadTimeoutMs = _k === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _k,
18334
+ _l = _a.allowSignatureAfterLivenessCheckFailure,
18335
+ allowSignatureAfterLivenessCheckFailure = _l === void 0 ? false : _l,
18336
+ _m = _a.restartVideoOnSignaturePadCleared,
18337
+ restartVideoOnSignaturePadCleared = _m === void 0 ? true : _m,
18324
18338
  faceLivenessProps = _a.faceLivenessProps,
18325
- _m = _a.skipLivenessValidation,
18326
- skipLivenessValidation = _m === void 0 ? false : _m,
18339
+ _o = _a.skipLivenessValidation,
18340
+ skipLivenessValidation = _o === void 0 ? false : _o,
18327
18341
  guidesComponent = _a.guidesComponent,
18328
- _o = _a.theme,
18329
- theme = _o === void 0 ? 'default' : _o,
18342
+ _p = _a.theme,
18343
+ theme = _p === void 0 ? 'default' : _p,
18330
18344
  classNames = _a.classNames,
18331
18345
  colors = _a.colors,
18332
18346
  verbiage = _a.verbiage,
18333
18347
  geolocationEnabled = _a.geolocationEnabled,
18334
18348
  geolocationRequired = _a.geolocationRequired,
18335
- _p = _a.debugMode,
18336
- debugMode = _p === void 0 ? false : _p;
18349
+ _q = _a.debugMode,
18350
+ debugMode = _q === void 0 ? false : _q;
18337
18351
  useLanguage(lang);
18338
18352
  useDebugLogging(debugMode);
18339
18353
  return /*#__PURE__*/React__default.createElement(AuthProvider, {
@@ -18383,6 +18397,7 @@ var SignatureKYC = function SignatureKYC(_a) {
18383
18397
  skipSuccessScreen: skipSuccessScreen,
18384
18398
  captureAudio: captureAudio,
18385
18399
  minSignaturePadPoints: minSignaturePadPoints,
18400
+ headTrackingDisabled: headTrackingDisabled,
18386
18401
  headTrackingBoundaryPercentage: headTrackingBoundaryPercentage,
18387
18402
  headTrackingBoundaryType: headTrackingBoundaryType,
18388
18403
  modelLoadTimeoutMs: modelLoadTimeoutMs,
@@ -18398,7 +18413,7 @@ var SignatureKYC = function SignatureKYC(_a) {
18398
18413
  onModelError: onModelError,
18399
18414
  onUserCancel: onUserCancel
18400
18415
  };
18401
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, guidesComponent, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
18416
+ }, [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])
18402
18417
  })))));
18403
18418
  };
18404
18419