idmission-web-sdk 2.3.56 → 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.56';
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: {
@@ -16213,14 +16215,16 @@ var IdValidation = function IdValidation(_a) {
16213
16215
  modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
16214
16216
  _q = _a.forceFallbackMode,
16215
16217
  forceFallbackMode = _q === void 0 ? false : _q,
16216
- _r = _a.allowIdCardBackToFrontCapture,
16217
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
16218
- _s = _a.enableOverrideWrongDocumentTypeDialog,
16219
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
16220
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
16221
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
16222
- _u = _a.allowUploadingDocumentsFromStorage,
16223
- 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,
16224
16228
  onLoadingStarted = _a.onLoadingStarted,
16225
16229
  onLoadingProgress = _a.onLoadingProgress,
16226
16230
  onLoadingCompleted = _a.onLoadingCompleted,
@@ -16240,28 +16244,29 @@ var IdValidation = function IdValidation(_a) {
16240
16244
  onModelError = _a.onModelError,
16241
16245
  onCameraAccessDenied = _a.onCameraAccessDenied,
16242
16246
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
16243
- _v = _a.theme,
16244
- theme = _v === void 0 ? 'default' : _v,
16245
- _w = _a.assets,
16246
- assets = _w === void 0 ? {} : _w,
16247
- _x = _a.classNames,
16248
- classNames = _x === void 0 ? {} : _x,
16249
- _y = _a.colors,
16250
- colors = _y === void 0 ? {} : _y,
16251
- _z = _a.verbiage,
16252
- verbiage = _z === void 0 ? {} : _z,
16253
- _0 = _a.captureSignature,
16254
- captureSignature = _0 === void 0 ? false : _0,
16255
- _1 = _a.captureSignatureVideo,
16256
- captureSignatureVideo = _1 === void 0 ? false : _1,
16257
- _2 = _a.captureAdditionalDocuments,
16258
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
16259
- _3 = _a.geolocationEnabled,
16260
- geolocationEnabled = _3 === void 0 ? true : _3,
16261
- _4 = _a.geolocationRequired,
16262
- geolocationRequired = _4 === void 0 ? false : _4,
16263
- _5 = _a.debugMode,
16264
- 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;
16265
16270
  useLanguage(lang);
16266
16271
  useDebugLogging(debugMode);
16267
16272
  var idCaptureProps = useMemo(function () {
@@ -16272,6 +16277,7 @@ var IdValidation = function IdValidation(_a) {
16272
16277
  onExitCapture: onExitCapture,
16273
16278
  onUserCancel: onUserCancel,
16274
16279
  onModelError: onModelError,
16280
+ onDocumentCaptured: onDocumentCaptured,
16275
16281
  precapturedDocuments: precapturedDocuments,
16276
16282
  captureRequirement: idCaptureRequirement,
16277
16283
  allowSinglePageIdCapture: allowSinglePageIdCapture,
@@ -16282,6 +16288,7 @@ var IdValidation = function IdValidation(_a) {
16282
16288
  customOverlayContent: customOverlayContent,
16283
16289
  onLoadingOverlayDismissed: onLoadingOverlayDismissed,
16284
16290
  forceFallbackMode: forceFallbackMode,
16291
+ silentFallback: silentFallback,
16285
16292
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
16286
16293
  allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
16287
16294
  instructions: instructions,
@@ -16298,7 +16305,7 @@ var IdValidation = function IdValidation(_a) {
16298
16305
  verbiage: verbiage,
16299
16306
  debugMode: debugMode
16300
16307
  };
16301
- }, [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]);
16302
16309
  var additionalDocumentCaptureProps = useMemo(function () {
16303
16310
  return {
16304
16311
  documents: captureAdditionalDocuments,