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/components/customer_flows/IdValidation.d.ts +6 -2
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureStateProvider.d.ts +2 -11
- package/dist/components/id_capture/IdCaptureStateProvider.d.ts.map +1 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts +3 -1
- package/dist/components/id_capture/IdCaptureWizard.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts +2 -11
- package/dist/components/video_signature_capture/VideoSignatureContext.d.ts.map +1 -1
- package/dist/lib/camera/useVideoRecorder.d.ts +2 -11
- package/dist/lib/camera/useVideoRecorder.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +39 -32
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +39 -32
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +282 -98
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
16217
|
-
|
|
16218
|
-
_s = _a.
|
|
16219
|
-
|
|
16220
|
-
_t = _a.
|
|
16221
|
-
|
|
16222
|
-
_u = _a.
|
|
16223
|
-
|
|
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
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
|
|
16255
|
-
|
|
16256
|
-
|
|
16257
|
-
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
|
|
16261
|
-
|
|
16262
|
-
|
|
16263
|
-
|
|
16264
|
-
|
|
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,
|