idmission-web-sdk 2.2.25 → 2.2.27
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/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +74 -68
- 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 +74 -68
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +74 -68
- 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 +3 -3
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
var webSdkVersion = '2.2.
|
|
214
|
+
var webSdkVersion = '2.2.27';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -21436,8 +21436,8 @@
|
|
|
21436
21436
|
}, [idCaptureGuideImagesByUrl]);
|
|
21437
21437
|
var idCardImageStyle = React.useMemo(function () {
|
|
21438
21438
|
return {
|
|
21439
|
-
maxWidth: idCardGuideWidth >
|
|
21440
|
-
maxHeight: idCardGuideHeight,
|
|
21439
|
+
maxWidth: idCardGuideWidth > idCardGuideHeight ? idCardGuideWidth : undefined,
|
|
21440
|
+
maxHeight: idCardGuideHeight > idCardGuideWidth ? idCardGuideHeight : undefined,
|
|
21441
21441
|
height: '100%',
|
|
21442
21442
|
aspectRatio: aspectRatio
|
|
21443
21443
|
};
|
|
@@ -21497,7 +21497,7 @@
|
|
|
21497
21497
|
var Inner = styled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"], ["\n width: 100%;\n height: 100%;\n max-height: 1280px;\n display: flex;\n margin: auto;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
21498
21498
|
var FaceGuideContainer = styled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: relative;\n height: 65%;\n"], ["\n position: relative;\n height: 65%;\n"])));
|
|
21499
21499
|
var IdCardGuideContainer = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n margin: 0 auto;\n position: relative;\n max-width: 100%;\n height: 35%;\n"])));
|
|
21500
|
-
var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n"], ["\n position: relative;\n height: 100%;\n"])));
|
|
21500
|
+
var IdCardGuideInner = styled.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n position: relative;\n height: 100%;\n width: 100%;\n"], ["\n position: relative;\n height: 100%;\n width: 100%;\n"])));
|
|
21501
21501
|
var IdCardGuideInstructionsContainer = styled.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n width: 100%;\n text-align: center;\n color: white;\n display: flex;\n flex-direction: column;\n justify-content: end;\n padding: 0 40px;\n position: fixed;\n bottom: 14px;\n left: 0;\n right: 0;\n box-sizing: border-box;\n"], ["\n width: 100%;\n text-align: center;\n color: white;\n display: flex;\n flex-direction: column;\n justify-content: end;\n padding: 0 40px;\n position: fixed;\n bottom: 14px;\n left: 0;\n right: 0;\n box-sizing: border-box;\n"])));
|
|
21502
21502
|
var IdCardGuideInstructions = styled(GuidanceMessage)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-content: center;\n margin: 12px auto;\n padding: 8px 12px;\n font-weight: bold;\n font-size: 18px;\n"], ["\n align-content: center;\n margin: 12px auto;\n padding: 8px 12px;\n font-weight: bold;\n font-size: 18px;\n"])));
|
|
21503
21503
|
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$2, templateObject_5$1, templateObject_6$1, templateObject_7;
|
|
@@ -23253,14 +23253,16 @@
|
|
|
23253
23253
|
idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
|
|
23254
23254
|
_o = _a.idCaptureModelLoadTimeoutMs,
|
|
23255
23255
|
idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
|
|
23256
|
-
_p = _a.
|
|
23257
|
-
|
|
23258
|
-
_q = _a.
|
|
23259
|
-
|
|
23260
|
-
_r = _a.
|
|
23261
|
-
|
|
23262
|
-
_s = _a.
|
|
23263
|
-
|
|
23256
|
+
_p = _a.idCaptureForceFallbackMode,
|
|
23257
|
+
idCaptureForceFallbackMode = _p === void 0 ? false : _p,
|
|
23258
|
+
_q = _a.selfieCaptureModelLoadTimeoutMs,
|
|
23259
|
+
selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
|
|
23260
|
+
_r = _a.allowIdCardBackToFrontCapture,
|
|
23261
|
+
allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
|
|
23262
|
+
_s = _a.enableOverrideWrongDocumentTypeDialog,
|
|
23263
|
+
enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
|
|
23264
|
+
_t = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
23265
|
+
allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
|
|
23264
23266
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
23265
23267
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
23266
23268
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -23277,28 +23279,28 @@
|
|
|
23277
23279
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
23278
23280
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
23279
23281
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23280
|
-
|
|
23281
|
-
captureSignature =
|
|
23282
|
-
|
|
23283
|
-
captureSignatureVideo =
|
|
23284
|
-
|
|
23285
|
-
captureAdditionalDocuments =
|
|
23286
|
-
|
|
23287
|
-
theme =
|
|
23288
|
-
|
|
23289
|
-
assets =
|
|
23290
|
-
|
|
23291
|
-
classNames =
|
|
23292
|
-
|
|
23293
|
-
colors =
|
|
23294
|
-
|
|
23295
|
-
verbiage =
|
|
23296
|
-
|
|
23297
|
-
geolocationEnabled =
|
|
23298
|
-
|
|
23299
|
-
geolocationRequired =
|
|
23300
|
-
|
|
23301
|
-
debugMode =
|
|
23282
|
+
_u = _a.captureSignature,
|
|
23283
|
+
captureSignature = _u === void 0 ? false : _u,
|
|
23284
|
+
_v = _a.captureSignatureVideo,
|
|
23285
|
+
captureSignatureVideo = _v === void 0 ? false : _v,
|
|
23286
|
+
_w = _a.captureAdditionalDocuments,
|
|
23287
|
+
captureAdditionalDocuments = _w === void 0 ? [] : _w,
|
|
23288
|
+
_x = _a.theme,
|
|
23289
|
+
theme = _x === void 0 ? 'default' : _x,
|
|
23290
|
+
_y = _a.assets,
|
|
23291
|
+
assets = _y === void 0 ? {} : _y,
|
|
23292
|
+
_z = _a.classNames,
|
|
23293
|
+
classNames = _z === void 0 ? {} : _z,
|
|
23294
|
+
_0 = _a.colors,
|
|
23295
|
+
colors = _0 === void 0 ? {} : _0,
|
|
23296
|
+
_1 = _a.verbiage,
|
|
23297
|
+
verbiage = _1 === void 0 ? {} : _1,
|
|
23298
|
+
_2 = _a.geolocationEnabled,
|
|
23299
|
+
geolocationEnabled = _2 === void 0 ? true : _2,
|
|
23300
|
+
_3 = _a.geolocationRequired,
|
|
23301
|
+
geolocationRequired = _3 === void 0 ? false : _3,
|
|
23302
|
+
_4 = _a.debugMode,
|
|
23303
|
+
debugMode = _4 === void 0 ? false : _4;
|
|
23302
23304
|
useLanguage(lang);
|
|
23303
23305
|
useDebugLogging(debugMode);
|
|
23304
23306
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -23323,10 +23325,11 @@
|
|
|
23323
23325
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
23324
23326
|
enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
|
|
23325
23327
|
allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
|
|
23328
|
+
forceFallbackMode: idCaptureForceFallbackMode,
|
|
23326
23329
|
skipSuccessScreen: skipSuccessScreen,
|
|
23327
23330
|
debugMode: debugMode
|
|
23328
23331
|
};
|
|
23329
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, skipSuccessScreen, debugMode]);
|
|
23332
|
+
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, idCaptureForceFallbackMode, skipSuccessScreen, debugMode]);
|
|
23330
23333
|
var faceLivenessProps = React.useMemo(function () {
|
|
23331
23334
|
return {
|
|
23332
23335
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -23487,14 +23490,16 @@
|
|
|
23487
23490
|
idCaptureRotateLoadingOverlayImageWhenPortrait = _m === void 0 ? true : _m,
|
|
23488
23491
|
_o = _a.idCaptureModelLoadTimeoutMs,
|
|
23489
23492
|
idCaptureModelLoadTimeoutMs = _o === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _o,
|
|
23490
|
-
_p = _a.
|
|
23491
|
-
|
|
23492
|
-
_q = _a.
|
|
23493
|
-
|
|
23494
|
-
_r = _a.
|
|
23495
|
-
|
|
23496
|
-
_s = _a.
|
|
23497
|
-
|
|
23493
|
+
_p = _a.idCaptureForceFallbackMode,
|
|
23494
|
+
idCaptureForceFallbackMode = _p === void 0 ? false : _p,
|
|
23495
|
+
_q = _a.selfieCaptureModelLoadTimeoutMs,
|
|
23496
|
+
selfieCaptureModelLoadTimeoutMs = _q === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _q,
|
|
23497
|
+
_r = _a.allowIdCardBackToFrontCapture,
|
|
23498
|
+
allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
|
|
23499
|
+
_s = _a.enableOverrideWrongDocumentTypeDialog,
|
|
23500
|
+
enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
|
|
23501
|
+
_t = _a.allowOverrideWrongDocumentTypeAfterMs,
|
|
23502
|
+
allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
|
|
23498
23503
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
23499
23504
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
23500
23505
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -23510,31 +23515,31 @@
|
|
|
23510
23515
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
23511
23516
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
23512
23517
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
23513
|
-
|
|
23514
|
-
captureSignature =
|
|
23515
|
-
|
|
23516
|
-
captureSignatureVideo =
|
|
23517
|
-
|
|
23518
|
-
captureAdditionalDocuments =
|
|
23519
|
-
|
|
23520
|
-
captureVideoId =
|
|
23518
|
+
_u = _a.captureSignature,
|
|
23519
|
+
captureSignature = _u === void 0 ? false : _u,
|
|
23520
|
+
_v = _a.captureSignatureVideo,
|
|
23521
|
+
captureSignatureVideo = _v === void 0 ? false : _v,
|
|
23522
|
+
_w = _a.captureAdditionalDocuments,
|
|
23523
|
+
captureAdditionalDocuments = _w === void 0 ? [] : _w,
|
|
23524
|
+
_x = _a.captureVideoId,
|
|
23525
|
+
captureVideoId = _x === void 0 ? false : _x,
|
|
23521
23526
|
captureVideoIdProps = _a.captureVideoIdProps,
|
|
23522
|
-
|
|
23523
|
-
theme =
|
|
23524
|
-
|
|
23525
|
-
assets =
|
|
23526
|
-
|
|
23527
|
-
classNames =
|
|
23528
|
-
|
|
23529
|
-
colors =
|
|
23530
|
-
|
|
23531
|
-
verbiage =
|
|
23532
|
-
|
|
23533
|
-
geolocationEnabled =
|
|
23534
|
-
|
|
23535
|
-
geolocationRequired =
|
|
23536
|
-
|
|
23537
|
-
debugMode =
|
|
23527
|
+
_y = _a.theme,
|
|
23528
|
+
theme = _y === void 0 ? 'default' : _y,
|
|
23529
|
+
_z = _a.assets,
|
|
23530
|
+
assets = _z === void 0 ? {} : _z,
|
|
23531
|
+
_0 = _a.classNames,
|
|
23532
|
+
classNames = _0 === void 0 ? {} : _0,
|
|
23533
|
+
_1 = _a.colors,
|
|
23534
|
+
colors = _1 === void 0 ? {} : _1,
|
|
23535
|
+
_2 = _a.verbiage,
|
|
23536
|
+
verbiage = _2 === void 0 ? {} : _2,
|
|
23537
|
+
_3 = _a.geolocationEnabled,
|
|
23538
|
+
geolocationEnabled = _3 === void 0 ? true : _3,
|
|
23539
|
+
_4 = _a.geolocationRequired,
|
|
23540
|
+
geolocationRequired = _4 === void 0 ? false : _4,
|
|
23541
|
+
_5 = _a.debugMode,
|
|
23542
|
+
debugMode = _5 === void 0 ? false : _5;
|
|
23538
23543
|
useLanguage(lang);
|
|
23539
23544
|
useDebugLogging(debugMode);
|
|
23540
23545
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -23553,6 +23558,7 @@
|
|
|
23553
23558
|
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
23554
23559
|
modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
|
|
23555
23560
|
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
23561
|
+
forceFallbackMode: idCaptureForceFallbackMode,
|
|
23556
23562
|
enableOverrideWrongDocumentTypeDialog: enableOverrideWrongDocumentTypeDialog,
|
|
23557
23563
|
allowOverrideWrongDocumentTypeAfterMs: allowOverrideWrongDocumentTypeAfterMs,
|
|
23558
23564
|
onExitCapture: onExitCapture,
|
|
@@ -23561,7 +23567,7 @@
|
|
|
23561
23567
|
skipSuccessScreen: skipSuccessScreen,
|
|
23562
23568
|
debugMode: debugMode
|
|
23563
23569
|
};
|
|
23564
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
23570
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCaptureGuideImages, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, idCaptureForceFallbackMode, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
23565
23571
|
var faceLivenessProps = React.useMemo(function () {
|
|
23566
23572
|
return {
|
|
23567
23573
|
onExitCapture: onExitCapture,
|