idmission-web-sdk 2.1.21 → 2.1.23
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/IdAndFaceValidation.d.ts +2 -0
- package/dist/sdk2.cjs.development.js +53 -47
- 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 +53 -47
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +53 -47
- 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.1.
|
|
207
|
+
var webSdkVersion = '2.1.23';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -14333,6 +14333,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14333
14333
|
idCaptureModelLoadTimeoutMs = _m === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _m,
|
|
14334
14334
|
_o = _a.selfieCaptureModelLoadTimeoutMs,
|
|
14335
14335
|
selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
|
|
14336
|
+
_p = _a.allowIdCardBackToFrontCapture,
|
|
14337
|
+
allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
|
|
14336
14338
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
14337
14339
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
14338
14340
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -14349,28 +14351,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14349
14351
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
14350
14352
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
14351
14353
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
14352
|
-
|
|
14353
|
-
captureSignature =
|
|
14354
|
-
|
|
14355
|
-
captureSignatureVideo =
|
|
14356
|
-
|
|
14357
|
-
captureAdditionalDocuments =
|
|
14358
|
-
|
|
14359
|
-
theme =
|
|
14360
|
-
|
|
14361
|
-
assets =
|
|
14362
|
-
|
|
14363
|
-
classNames =
|
|
14364
|
-
|
|
14365
|
-
colors =
|
|
14366
|
-
|
|
14367
|
-
verbiage =
|
|
14368
|
-
|
|
14369
|
-
geolocationEnabled =
|
|
14370
|
-
|
|
14371
|
-
geolocationRequired =
|
|
14372
|
-
|
|
14373
|
-
debugMode =
|
|
14354
|
+
_q = _a.captureSignature,
|
|
14355
|
+
captureSignature = _q === void 0 ? false : _q,
|
|
14356
|
+
_r = _a.captureSignatureVideo,
|
|
14357
|
+
captureSignatureVideo = _r === void 0 ? false : _r,
|
|
14358
|
+
_s = _a.captureAdditionalDocuments,
|
|
14359
|
+
captureAdditionalDocuments = _s === void 0 ? [] : _s,
|
|
14360
|
+
_t = _a.theme,
|
|
14361
|
+
theme = _t === void 0 ? 'default' : _t,
|
|
14362
|
+
_u = _a.assets,
|
|
14363
|
+
assets = _u === void 0 ? {} : _u,
|
|
14364
|
+
_v = _a.classNames,
|
|
14365
|
+
classNames = _v === void 0 ? {} : _v,
|
|
14366
|
+
_w = _a.colors,
|
|
14367
|
+
colors = _w === void 0 ? {} : _w,
|
|
14368
|
+
_x = _a.verbiage,
|
|
14369
|
+
verbiage = _x === void 0 ? {} : _x,
|
|
14370
|
+
_y = _a.geolocationEnabled,
|
|
14371
|
+
geolocationEnabled = _y === void 0 ? true : _y,
|
|
14372
|
+
_z = _a.geolocationRequired,
|
|
14373
|
+
geolocationRequired = _z === void 0 ? false : _z,
|
|
14374
|
+
_0 = _a.debugMode,
|
|
14375
|
+
debugMode = _0 === void 0 ? false : _0;
|
|
14374
14376
|
useLanguage(lang);
|
|
14375
14377
|
useDebugLogging(debugMode);
|
|
14376
14378
|
var idCaptureProps = useMemo(function () {
|
|
@@ -14391,10 +14393,11 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14391
14393
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
14392
14394
|
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
14393
14395
|
modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
|
|
14396
|
+
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
14394
14397
|
skipSuccessScreen: skipSuccessScreen,
|
|
14395
14398
|
debugMode: debugMode
|
|
14396
14399
|
};
|
|
14397
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, skipSuccessScreen, debugMode]);
|
|
14400
|
+
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, skipSuccessScreen, debugMode]);
|
|
14398
14401
|
var faceLivenessProps = useMemo(function () {
|
|
14399
14402
|
return {
|
|
14400
14403
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -14555,6 +14558,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14555
14558
|
idCaptureModelLoadTimeoutMs = _m === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _m,
|
|
14556
14559
|
_o = _a.selfieCaptureModelLoadTimeoutMs,
|
|
14557
14560
|
selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
|
|
14561
|
+
_p = _a.allowIdCardBackToFrontCapture,
|
|
14562
|
+
allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
|
|
14558
14563
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
14559
14564
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
14560
14565
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -14570,28 +14575,28 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14570
14575
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
14571
14576
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
14572
14577
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
14573
|
-
|
|
14574
|
-
captureSignature =
|
|
14575
|
-
|
|
14576
|
-
captureSignatureVideo =
|
|
14577
|
-
|
|
14578
|
-
captureAdditionalDocuments =
|
|
14579
|
-
|
|
14580
|
-
theme =
|
|
14581
|
-
|
|
14582
|
-
assets =
|
|
14583
|
-
|
|
14584
|
-
classNames =
|
|
14585
|
-
|
|
14586
|
-
colors =
|
|
14587
|
-
|
|
14588
|
-
verbiage =
|
|
14589
|
-
|
|
14590
|
-
geolocationEnabled =
|
|
14591
|
-
|
|
14592
|
-
geolocationRequired =
|
|
14593
|
-
|
|
14594
|
-
debugMode =
|
|
14578
|
+
_q = _a.captureSignature,
|
|
14579
|
+
captureSignature = _q === void 0 ? false : _q,
|
|
14580
|
+
_r = _a.captureSignatureVideo,
|
|
14581
|
+
captureSignatureVideo = _r === void 0 ? false : _r,
|
|
14582
|
+
_s = _a.captureAdditionalDocuments,
|
|
14583
|
+
captureAdditionalDocuments = _s === void 0 ? [] : _s,
|
|
14584
|
+
_t = _a.theme,
|
|
14585
|
+
theme = _t === void 0 ? 'default' : _t,
|
|
14586
|
+
_u = _a.assets,
|
|
14587
|
+
assets = _u === void 0 ? {} : _u,
|
|
14588
|
+
_v = _a.classNames,
|
|
14589
|
+
classNames = _v === void 0 ? {} : _v,
|
|
14590
|
+
_w = _a.colors,
|
|
14591
|
+
colors = _w === void 0 ? {} : _w,
|
|
14592
|
+
_x = _a.verbiage,
|
|
14593
|
+
verbiage = _x === void 0 ? {} : _x,
|
|
14594
|
+
_y = _a.geolocationEnabled,
|
|
14595
|
+
geolocationEnabled = _y === void 0 ? true : _y,
|
|
14596
|
+
_z = _a.geolocationRequired,
|
|
14597
|
+
geolocationRequired = _z === void 0 ? false : _z,
|
|
14598
|
+
_0 = _a.debugMode,
|
|
14599
|
+
debugMode = _0 === void 0 ? false : _0;
|
|
14595
14600
|
useLanguage(lang);
|
|
14596
14601
|
useDebugLogging(debugMode);
|
|
14597
14602
|
var idCaptureProps = useMemo(function () {
|
|
@@ -14608,13 +14613,14 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14608
14613
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
14609
14614
|
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
14610
14615
|
modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
|
|
14616
|
+
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
14611
14617
|
onExitCapture: onExitCapture,
|
|
14612
14618
|
onUserCancel: onUserCancel,
|
|
14613
14619
|
onModelError: onIdCaptureModelError,
|
|
14614
14620
|
skipSuccessScreen: skipSuccessScreen,
|
|
14615
14621
|
debugMode: debugMode
|
|
14616
14622
|
};
|
|
14617
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
14623
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
14618
14624
|
var faceLivenessProps = useMemo(function () {
|
|
14619
14625
|
return {
|
|
14620
14626
|
onExitCapture: onExitCapture,
|