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
|
@@ -116,6 +116,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
116
116
|
idCaptureModelLoadTimeoutMs?: number;
|
|
117
117
|
/** Number of milliseconds indicating the maximum amount of time that should be spent trying to load the guided capture experience before giving up and resorting to the stock camera instead. Defaults to 45000 (45 seconds). */
|
|
118
118
|
selfieCaptureModelLoadTimeoutMs?: number;
|
|
119
|
+
/** Boolean to indicate whether to allow the user to capture the back of the ID card before capturing the front. Defaults to `false`. */
|
|
120
|
+
allowIdCardBackToFrontCapture?: boolean;
|
|
119
121
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
120
122
|
onBeforeDocumentUpload?: OnBeforeDocumentUpload;
|
|
121
123
|
/** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
|
|
@@ -113,6 +113,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
113
113
|
idCaptureModelLoadTimeoutMs?: number;
|
|
114
114
|
/** Number of milliseconds indicating the maximum amount of time that should be spent trying to load the guided capture experience before giving up and resorting to the stock camera instead. Defaults to 45000 (45 seconds). */
|
|
115
115
|
selfieCaptureModelLoadTimeoutMs?: number;
|
|
116
|
+
/** Boolean to indicate whether to allow the user to capture the back of the ID card before capturing the front. Defaults to `false`. */
|
|
117
|
+
allowIdCardBackToFrontCapture?: boolean;
|
|
116
118
|
/** Callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded. */
|
|
117
119
|
onBeforeDocumentUpload?: OnBeforeDocumentUpload;
|
|
118
120
|
/** Callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters. */
|
|
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
234
234
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var webSdkVersion = '2.1.
|
|
237
|
+
var webSdkVersion = '2.1.23';
|
|
238
238
|
|
|
239
239
|
function getPlatform() {
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -14363,6 +14363,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14363
14363
|
idCaptureModelLoadTimeoutMs = _m === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _m,
|
|
14364
14364
|
_o = _a.selfieCaptureModelLoadTimeoutMs,
|
|
14365
14365
|
selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
|
|
14366
|
+
_p = _a.allowIdCardBackToFrontCapture,
|
|
14367
|
+
allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
|
|
14366
14368
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
14367
14369
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
14368
14370
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
@@ -14379,28 +14381,28 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14379
14381
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
14380
14382
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
14381
14383
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
14382
|
-
|
|
14383
|
-
captureSignature =
|
|
14384
|
-
|
|
14385
|
-
captureSignatureVideo =
|
|
14386
|
-
|
|
14387
|
-
captureAdditionalDocuments =
|
|
14388
|
-
|
|
14389
|
-
theme =
|
|
14390
|
-
|
|
14391
|
-
assets =
|
|
14392
|
-
|
|
14393
|
-
classNames =
|
|
14394
|
-
|
|
14395
|
-
colors =
|
|
14396
|
-
|
|
14397
|
-
verbiage =
|
|
14398
|
-
|
|
14399
|
-
geolocationEnabled =
|
|
14400
|
-
|
|
14401
|
-
geolocationRequired =
|
|
14402
|
-
|
|
14403
|
-
debugMode =
|
|
14384
|
+
_q = _a.captureSignature,
|
|
14385
|
+
captureSignature = _q === void 0 ? false : _q,
|
|
14386
|
+
_r = _a.captureSignatureVideo,
|
|
14387
|
+
captureSignatureVideo = _r === void 0 ? false : _r,
|
|
14388
|
+
_s = _a.captureAdditionalDocuments,
|
|
14389
|
+
captureAdditionalDocuments = _s === void 0 ? [] : _s,
|
|
14390
|
+
_t = _a.theme,
|
|
14391
|
+
theme = _t === void 0 ? 'default' : _t,
|
|
14392
|
+
_u = _a.assets,
|
|
14393
|
+
assets = _u === void 0 ? {} : _u,
|
|
14394
|
+
_v = _a.classNames,
|
|
14395
|
+
classNames = _v === void 0 ? {} : _v,
|
|
14396
|
+
_w = _a.colors,
|
|
14397
|
+
colors = _w === void 0 ? {} : _w,
|
|
14398
|
+
_x = _a.verbiage,
|
|
14399
|
+
verbiage = _x === void 0 ? {} : _x,
|
|
14400
|
+
_y = _a.geolocationEnabled,
|
|
14401
|
+
geolocationEnabled = _y === void 0 ? true : _y,
|
|
14402
|
+
_z = _a.geolocationRequired,
|
|
14403
|
+
geolocationRequired = _z === void 0 ? false : _z,
|
|
14404
|
+
_0 = _a.debugMode,
|
|
14405
|
+
debugMode = _0 === void 0 ? false : _0;
|
|
14404
14406
|
useLanguage(lang);
|
|
14405
14407
|
useDebugLogging(debugMode);
|
|
14406
14408
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -14421,10 +14423,11 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14421
14423
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
14422
14424
|
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
14423
14425
|
modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
|
|
14426
|
+
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
14424
14427
|
skipSuccessScreen: skipSuccessScreen,
|
|
14425
14428
|
debugMode: debugMode
|
|
14426
14429
|
};
|
|
14427
|
-
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, skipSuccessScreen, debugMode]);
|
|
14430
|
+
}, [onExitCapture, onUserCancel, onIdCaptureModelError, assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, precapturedDocuments, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, skipSuccessScreen, debugMode]);
|
|
14428
14431
|
var faceLivenessProps = React.useMemo(function () {
|
|
14429
14432
|
return {
|
|
14430
14433
|
loadingOverlayMode: faceLivenessLoadingOverlayMode,
|
|
@@ -14585,6 +14588,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14585
14588
|
idCaptureModelLoadTimeoutMs = _m === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _m,
|
|
14586
14589
|
_o = _a.selfieCaptureModelLoadTimeoutMs,
|
|
14587
14590
|
selfieCaptureModelLoadTimeoutMs = _o === void 0 ? defaultSelfieCaptureModelLoadTimeoutMs : _o,
|
|
14591
|
+
_p = _a.allowIdCardBackToFrontCapture,
|
|
14592
|
+
allowIdCardBackToFrontCapture = _p === void 0 ? false : _p,
|
|
14588
14593
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
14589
14594
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
14590
14595
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -14600,28 +14605,28 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14600
14605
|
onIdCaptureModelError = _a.onIdCaptureModelError,
|
|
14601
14606
|
onSelfieCaptureModelError = _a.onSelfieCaptureModelError,
|
|
14602
14607
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
14603
|
-
|
|
14604
|
-
captureSignature =
|
|
14605
|
-
|
|
14606
|
-
captureSignatureVideo =
|
|
14607
|
-
|
|
14608
|
-
captureAdditionalDocuments =
|
|
14609
|
-
|
|
14610
|
-
theme =
|
|
14611
|
-
|
|
14612
|
-
assets =
|
|
14613
|
-
|
|
14614
|
-
classNames =
|
|
14615
|
-
|
|
14616
|
-
colors =
|
|
14617
|
-
|
|
14618
|
-
verbiage =
|
|
14619
|
-
|
|
14620
|
-
geolocationEnabled =
|
|
14621
|
-
|
|
14622
|
-
geolocationRequired =
|
|
14623
|
-
|
|
14624
|
-
debugMode =
|
|
14608
|
+
_q = _a.captureSignature,
|
|
14609
|
+
captureSignature = _q === void 0 ? false : _q,
|
|
14610
|
+
_r = _a.captureSignatureVideo,
|
|
14611
|
+
captureSignatureVideo = _r === void 0 ? false : _r,
|
|
14612
|
+
_s = _a.captureAdditionalDocuments,
|
|
14613
|
+
captureAdditionalDocuments = _s === void 0 ? [] : _s,
|
|
14614
|
+
_t = _a.theme,
|
|
14615
|
+
theme = _t === void 0 ? 'default' : _t,
|
|
14616
|
+
_u = _a.assets,
|
|
14617
|
+
assets = _u === void 0 ? {} : _u,
|
|
14618
|
+
_v = _a.classNames,
|
|
14619
|
+
classNames = _v === void 0 ? {} : _v,
|
|
14620
|
+
_w = _a.colors,
|
|
14621
|
+
colors = _w === void 0 ? {} : _w,
|
|
14622
|
+
_x = _a.verbiage,
|
|
14623
|
+
verbiage = _x === void 0 ? {} : _x,
|
|
14624
|
+
_y = _a.geolocationEnabled,
|
|
14625
|
+
geolocationEnabled = _y === void 0 ? true : _y,
|
|
14626
|
+
_z = _a.geolocationRequired,
|
|
14627
|
+
geolocationRequired = _z === void 0 ? false : _z,
|
|
14628
|
+
_0 = _a.debugMode,
|
|
14629
|
+
debugMode = _0 === void 0 ? false : _0;
|
|
14625
14630
|
useLanguage(lang);
|
|
14626
14631
|
useDebugLogging(debugMode);
|
|
14627
14632
|
var idCaptureProps = React.useMemo(function () {
|
|
@@ -14638,13 +14643,14 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14638
14643
|
portraitGuidesOnMobile: idCapturePortraitGuidesOnMobile,
|
|
14639
14644
|
rotateLoadingOverlayImageWhenPortrait: idCaptureRotateLoadingOverlayImageWhenPortrait,
|
|
14640
14645
|
modelLoadTimeoutMs: idCaptureModelLoadTimeoutMs,
|
|
14646
|
+
allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
|
|
14641
14647
|
onExitCapture: onExitCapture,
|
|
14642
14648
|
onUserCancel: onUserCancel,
|
|
14643
14649
|
onModelError: onIdCaptureModelError,
|
|
14644
14650
|
skipSuccessScreen: skipSuccessScreen,
|
|
14645
14651
|
debugMode: debugMode
|
|
14646
14652
|
};
|
|
14647
|
-
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
14653
|
+
}, [assets.idCapture, classNames.idCapture, colors.idCapture, verbiage.idCapture, idCaptureRequirement, idCaptureThresholds, idCaptureLoadingOverlayMode, idCaptureInstructions, idCaptureGuideType, idCapturePortraitGuidesOnMobile, idCaptureRotateLoadingOverlayImageWhenPortrait, idCaptureModelLoadTimeoutMs, allowIdCardBackToFrontCapture, onExitCapture, onUserCancel, onIdCaptureModelError, skipSuccessScreen, debugMode]);
|
|
14648
14654
|
var faceLivenessProps = React.useMemo(function () {
|
|
14649
14655
|
return {
|
|
14650
14656
|
onExitCapture: onExitCapture,
|