idmission-web-sdk 2.2.80 → 2.2.82
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/CustomerBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- 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/CustomerIdentification.d.ts +2 -0
- package/dist/components/customer_flows/CustomerIdentification.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +2 -0
- package/dist/components/customer_flows/CustomerVerification.d.ts.map +1 -1
- package/dist/components/customer_flows/DocumentCapture.d.ts +2 -0
- package/dist/components/customer_flows/DocumentCapture.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/FaceValidation.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/customer_flows/IdValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts +2 -0
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +2 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +126 -88
- 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 +126 -88
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +126 -88
- 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.82';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2143,83 +2143,85 @@
|
|
|
2143
2143
|
userSuppliedOnDocumentUploadFailed = _a.onDocumentUploadFailed,
|
|
2144
2144
|
userSuppliedOnResponseReceived = _a.onResponseReceived,
|
|
2145
2145
|
userSuppliedOnRequestFailure = _a.onRequestFailure,
|
|
2146
|
-
clientRequestID = _a.clientRequestID
|
|
2146
|
+
clientRequestID = _a.clientRequestID,
|
|
2147
|
+
_x = _a.useDocumentServiceForLivenessChecks,
|
|
2148
|
+
useDocumentServiceForLivenessChecks = _x === void 0 ? false : _x;
|
|
2147
2149
|
var sessionId = useAuthContext()[0].sessionId;
|
|
2148
|
-
var
|
|
2149
|
-
submissionStatus =
|
|
2150
|
-
setSubmissionStatus =
|
|
2151
|
-
var _y = React.useState(null),
|
|
2152
|
-
submissionRequest = _y[0],
|
|
2153
|
-
setSubmissionRequest = _y[1];
|
|
2150
|
+
var _y = React.useState(SubmissionStatus.READY),
|
|
2151
|
+
submissionStatus = _y[0],
|
|
2152
|
+
setSubmissionStatus = _y[1];
|
|
2154
2153
|
var _z = React.useState(null),
|
|
2155
|
-
|
|
2156
|
-
|
|
2154
|
+
submissionRequest = _z[0],
|
|
2155
|
+
setSubmissionRequest = _z[1];
|
|
2157
2156
|
var _0 = React.useState(null),
|
|
2158
|
-
|
|
2159
|
-
|
|
2157
|
+
submissionResponse = _0[0],
|
|
2158
|
+
setSubmissionResponse = _0[1];
|
|
2160
2159
|
var _1 = React.useState(null),
|
|
2161
|
-
|
|
2162
|
-
|
|
2160
|
+
submissionError = _1[0],
|
|
2161
|
+
setSubmissionError = _1[1];
|
|
2163
2162
|
var _2 = React.useState(null),
|
|
2164
|
-
|
|
2165
|
-
|
|
2163
|
+
retrySubmission = _2[0],
|
|
2164
|
+
setRetrySubmission = _2[1];
|
|
2166
2165
|
var _3 = React.useState(null),
|
|
2167
|
-
|
|
2168
|
-
|
|
2166
|
+
livenessCheckRequest = _3[0],
|
|
2167
|
+
setLivenessCheckRequest = _3[1];
|
|
2169
2168
|
var _4 = React.useState(null),
|
|
2170
|
-
|
|
2171
|
-
|
|
2169
|
+
idFrontImage = _4[0],
|
|
2170
|
+
setIdFrontImage = _4[1];
|
|
2172
2171
|
var _5 = React.useState(null),
|
|
2173
|
-
|
|
2174
|
-
|
|
2172
|
+
idBackImage = _5[0],
|
|
2173
|
+
setIdBackImage = _5[1];
|
|
2175
2174
|
var _6 = React.useState(null),
|
|
2176
|
-
|
|
2177
|
-
|
|
2175
|
+
passportImage = _6[0],
|
|
2176
|
+
setPassportImage = _6[1];
|
|
2178
2177
|
var _7 = React.useState(null),
|
|
2179
|
-
|
|
2180
|
-
|
|
2178
|
+
selfieImage = _7[0],
|
|
2179
|
+
setSelfieImage = _7[1];
|
|
2181
2180
|
var _8 = React.useState(null),
|
|
2182
|
-
|
|
2183
|
-
|
|
2181
|
+
signatureData = _8[0],
|
|
2182
|
+
setSignatureData = _8[1];
|
|
2184
2183
|
var _9 = React.useState(null),
|
|
2185
|
-
|
|
2186
|
-
|
|
2184
|
+
signatureVideoUrl = _9[0],
|
|
2185
|
+
setSignatureVideoUrl = _9[1];
|
|
2187
2186
|
var _10 = React.useState(null),
|
|
2188
|
-
|
|
2189
|
-
|
|
2187
|
+
idCaptureVideoUrl = _10[0],
|
|
2188
|
+
setIdCaptureVideoUrl = _10[1];
|
|
2190
2189
|
var _11 = React.useState(null),
|
|
2191
|
-
|
|
2192
|
-
|
|
2190
|
+
idCaptureVideoIdFrontImage = _11[0],
|
|
2191
|
+
setIdCaptureVideoIdFrontImage = _11[1];
|
|
2193
2192
|
var _12 = React.useState(null),
|
|
2194
|
-
|
|
2195
|
-
|
|
2193
|
+
idCaptureVideoIdBackImage = _12[0],
|
|
2194
|
+
setIdCaptureVideoIdBackImage = _12[1];
|
|
2196
2195
|
var _13 = React.useState(null),
|
|
2197
|
-
|
|
2198
|
-
|
|
2196
|
+
idCaptureVideoAudioUrl = _13[0],
|
|
2197
|
+
setIdCaptureVideoAudioUrl = _13[1];
|
|
2199
2198
|
var _14 = React.useState(null),
|
|
2200
|
-
|
|
2201
|
-
|
|
2199
|
+
idCaptureVideoAudioStartsAt = _14[0],
|
|
2200
|
+
setIdCaptureVideoAudioStartsAt = _14[1];
|
|
2202
2201
|
var _15 = React.useState(null),
|
|
2203
|
-
|
|
2204
|
-
|
|
2202
|
+
expectedAudioText = _15[0],
|
|
2203
|
+
setExpectedAudioText = _15[1];
|
|
2205
2204
|
var _16 = React.useState(null),
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
var _17 = React.useState(
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
var _18 = React.useState(
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
var _19 = React.useState(
|
|
2215
|
-
|
|
2216
|
-
|
|
2205
|
+
additionalDocuments = _16[0],
|
|
2206
|
+
setAdditionalDocuments = _16[1];
|
|
2207
|
+
var _17 = React.useState(null),
|
|
2208
|
+
geolocationResult = _17[0],
|
|
2209
|
+
setGeolocationResult = _17[1];
|
|
2210
|
+
var _18 = React.useState(0),
|
|
2211
|
+
geolocationAttempts = _18[0],
|
|
2212
|
+
setGeolocationAttempts = _18[1];
|
|
2213
|
+
var _19 = React.useState(false),
|
|
2214
|
+
geolocationBlocked = _19[0],
|
|
2215
|
+
setGeolocationBlocked = _19[1];
|
|
2217
2216
|
var _20 = React.useState([]),
|
|
2218
|
-
|
|
2219
|
-
|
|
2217
|
+
idFrontCaptureAttempts = _20[0],
|
|
2218
|
+
setIdFrontCaptureAttempts = _20[1];
|
|
2220
2219
|
var _21 = React.useState([]),
|
|
2221
|
-
|
|
2222
|
-
|
|
2220
|
+
idBackCaptureAttempts = _21[0],
|
|
2221
|
+
setIdBackCaptureAttempts = _21[1];
|
|
2222
|
+
var _22 = React.useState([]),
|
|
2223
|
+
selfieCaptureAttempts = _22[0],
|
|
2224
|
+
setSelfieCaptureAttempts = _22[1];
|
|
2223
2225
|
var logIdFrontCaptureAttempt = React.useCallback(function (attempt) {
|
|
2224
2226
|
setIdFrontCaptureAttempts(function (attempts) {
|
|
2225
2227
|
return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
|
|
@@ -2618,28 +2620,44 @@
|
|
|
2618
2620
|
}, [buildSubmissionPayload, defaultOnSubmit]);
|
|
2619
2621
|
var buildLivenessCheckPayload = React.useCallback(function (imageDataUrl) {
|
|
2620
2622
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2621
|
-
var request, onBeforeLivenessCheckResult;
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
switch (_d.label) {
|
|
2623
|
+
var selfie, request, onBeforeLivenessCheckResult;
|
|
2624
|
+
return __generator(this, function (_a) {
|
|
2625
|
+
switch (_a.label) {
|
|
2625
2626
|
case 0:
|
|
2626
|
-
|
|
2627
|
+
selfie = imageDataUrl;
|
|
2628
|
+
if (!(useDocumentServiceForLivenessChecks && documentServiceUrl)) return [3 /*break*/, 2];
|
|
2629
|
+
if (!selfie.startsWith('data:')) {
|
|
2630
|
+
selfie = "data:image/jpeg;base64,".concat(selfie);
|
|
2631
|
+
}
|
|
2632
|
+
return [4 /*yield*/, uploadDocument(selfie, {
|
|
2633
|
+
filename: 'liveness',
|
|
2634
|
+
filetype: 'image/jpeg'
|
|
2635
|
+
})];
|
|
2636
|
+
case 1:
|
|
2637
|
+
selfie = _a.sent();
|
|
2638
|
+
return [3 /*break*/, 3];
|
|
2639
|
+
case 2:
|
|
2640
|
+
selfie = dataUrlToBase64Sync(selfie);
|
|
2641
|
+
_a.label = 3;
|
|
2642
|
+
case 3:
|
|
2643
|
+
request = {
|
|
2627
2644
|
securityData: {
|
|
2628
2645
|
userName: '',
|
|
2629
2646
|
password: '',
|
|
2630
2647
|
merchantId: 0
|
|
2648
|
+
},
|
|
2649
|
+
customerData: {
|
|
2650
|
+
biometricData: {
|
|
2651
|
+
selfie: selfie
|
|
2652
|
+
}
|
|
2653
|
+
},
|
|
2654
|
+
additionalData: {
|
|
2655
|
+
uniqueRequestId: new Date().getTime().toString(),
|
|
2656
|
+
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
2657
|
+
estimateAge: 'N',
|
|
2658
|
+
predictGender: 'N'
|
|
2631
2659
|
}
|
|
2632
2660
|
};
|
|
2633
|
-
_b = {};
|
|
2634
|
-
_c = {};
|
|
2635
|
-
return [4 /*yield*/, dataUrlToBase64(imageDataUrl)];
|
|
2636
|
-
case 1:
|
|
2637
|
-
request = (_a.customerData = (_b.biometricData = (_c.selfie = _d.sent(), _c), _b), _a.additionalData = {
|
|
2638
|
-
uniqueRequestId: new Date().getTime().toString(),
|
|
2639
|
-
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
2640
|
-
estimateAge: 'N',
|
|
2641
|
-
predictGender: 'N'
|
|
2642
|
-
}, _a);
|
|
2643
2661
|
if (clientRequestID) {
|
|
2644
2662
|
request.additionalData.clientRequestID = clientRequestID;
|
|
2645
2663
|
}
|
|
@@ -2658,19 +2676,19 @@
|
|
|
2658
2676
|
idBackCaptureAttempts: idBackCaptureAttempts,
|
|
2659
2677
|
geolocationResult: geolocationResult
|
|
2660
2678
|
});
|
|
2661
|
-
if (!onBeforeLivenessCheck.current) return [3 /*break*/,
|
|
2679
|
+
if (!onBeforeLivenessCheck.current) return [3 /*break*/, 5];
|
|
2662
2680
|
return [4 /*yield*/, onBeforeLivenessCheck.current(request)];
|
|
2663
|
-
case
|
|
2664
|
-
onBeforeLivenessCheckResult =
|
|
2681
|
+
case 4:
|
|
2682
|
+
onBeforeLivenessCheckResult = _a.sent();
|
|
2665
2683
|
if (onBeforeLivenessCheckResult) request = onBeforeLivenessCheckResult;
|
|
2666
|
-
|
|
2667
|
-
case
|
|
2684
|
+
_a.label = 5;
|
|
2685
|
+
case 5:
|
|
2668
2686
|
setLivenessCheckRequest(request);
|
|
2669
2687
|
return [2 /*return*/, request];
|
|
2670
2688
|
}
|
|
2671
2689
|
});
|
|
2672
2690
|
});
|
|
2673
|
-
}, [clientRequestID, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, webhooksStripSpecialCharacters]);
|
|
2691
|
+
}, [clientRequestID, documentServiceUrl, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, uploadDocument, webhooksStripSpecialCharacters]);
|
|
2674
2692
|
var checkLiveness = React.useCallback(function (imageDataUrl) {
|
|
2675
2693
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
2676
2694
|
var request, host, endpoint, response, statusMessage, submissionResponse_3, e_2, err;
|
|
@@ -24022,6 +24040,7 @@
|
|
|
24022
24040
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
24023
24041
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24024
24042
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
24043
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
24025
24044
|
precapturedDocuments = _a.precapturedDocuments,
|
|
24026
24045
|
_c = _a.loadingOverlayMode,
|
|
24027
24046
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -24193,7 +24212,8 @@
|
|
|
24193
24212
|
onSubmit: onSubmit,
|
|
24194
24213
|
onResponseReceived: onResponseReceived,
|
|
24195
24214
|
geolocationEnabled: geolocationEnabled,
|
|
24196
|
-
geolocationRequired: geolocationRequired
|
|
24215
|
+
geolocationRequired: geolocationRequired,
|
|
24216
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
24197
24217
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
24198
24218
|
checks: React.useMemo(function () {
|
|
24199
24219
|
return ['IdCapture'];
|
|
@@ -24229,6 +24249,7 @@
|
|
|
24229
24249
|
webhooksFireOnReview = _c === void 0 ? false : _c,
|
|
24230
24250
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
24231
24251
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24252
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
24232
24253
|
_d = _a.loadingOverlayMode,
|
|
24233
24254
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
24234
24255
|
_e = _a.timeoutDurationMs,
|
|
@@ -24312,7 +24333,8 @@
|
|
|
24312
24333
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
24313
24334
|
onBeforeLivenessCheck: onBeforeSubmit,
|
|
24314
24335
|
geolocationEnabled: geolocationEnabled,
|
|
24315
|
-
geolocationRequired: geolocationRequired
|
|
24336
|
+
geolocationRequired: geolocationRequired,
|
|
24337
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
24316
24338
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
24317
24339
|
checks: React.useMemo(function () {
|
|
24318
24340
|
return ['FaceLiveness'];
|
|
@@ -24353,6 +24375,7 @@
|
|
|
24353
24375
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
24354
24376
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24355
24377
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
24378
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
24356
24379
|
precapturedDocuments = _a.precapturedDocuments,
|
|
24357
24380
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
24358
24381
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
@@ -24549,7 +24572,8 @@
|
|
|
24549
24572
|
onSubmit: onSubmit,
|
|
24550
24573
|
onResponseReceived: onResponseReceived,
|
|
24551
24574
|
geolocationEnabled: geolocationEnabled,
|
|
24552
|
-
geolocationRequired: geolocationRequired
|
|
24575
|
+
geolocationRequired: geolocationRequired,
|
|
24576
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
24553
24577
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
24554
24578
|
checks: checks,
|
|
24555
24579
|
idCaptureProps: idCaptureProps,
|
|
@@ -24598,6 +24622,7 @@
|
|
|
24598
24622
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
24599
24623
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
24600
24624
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
24625
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
24601
24626
|
_c = _a.idCaptureLoadingOverlayMode,
|
|
24602
24627
|
idCaptureLoadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
24603
24628
|
_d = _a.idCaptureRequirement,
|
|
@@ -24811,7 +24836,8 @@
|
|
|
24811
24836
|
onSubmit: onSubmit,
|
|
24812
24837
|
onResponseReceived: onResponseReceived,
|
|
24813
24838
|
geolocationEnabled: geolocationEnabled,
|
|
24814
|
-
geolocationRequired: geolocationRequired
|
|
24839
|
+
geolocationRequired: geolocationRequired,
|
|
24840
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
24815
24841
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
24816
24842
|
checks: checks,
|
|
24817
24843
|
idCaptureProps: idCaptureProps,
|
|
@@ -25300,6 +25326,7 @@
|
|
|
25300
25326
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
25301
25327
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
25302
25328
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
25329
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
25303
25330
|
_c = _a.loadingOverlayMode,
|
|
25304
25331
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
25305
25332
|
_d = _a.timeoutDurationMs,
|
|
@@ -25362,7 +25389,8 @@
|
|
|
25362
25389
|
onBeforeSubmit: onBeforeSubmit,
|
|
25363
25390
|
onSubmit: onSubmit,
|
|
25364
25391
|
geolocationEnabled: geolocationEnabled,
|
|
25365
|
-
geolocationRequired: geolocationRequired
|
|
25392
|
+
geolocationRequired: geolocationRequired,
|
|
25393
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
25366
25394
|
}, /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
25367
25395
|
preferFrontFacingCamera: true,
|
|
25368
25396
|
onCameraAccessDenied: onCameraAccessDenied
|
|
@@ -25858,6 +25886,7 @@
|
|
|
25858
25886
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
25859
25887
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
25860
25888
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
25889
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
25861
25890
|
_c = _a.loadingOverlayMode,
|
|
25862
25891
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
25863
25892
|
_d = _a.timeoutDurationMs,
|
|
@@ -25919,7 +25948,8 @@
|
|
|
25919
25948
|
onBeforeSubmit: onBeforeSubmit,
|
|
25920
25949
|
onSubmit: onSubmit,
|
|
25921
25950
|
geolocationEnabled: geolocationEnabled,
|
|
25922
|
-
geolocationRequired: geolocationRequired
|
|
25951
|
+
geolocationRequired: geolocationRequired,
|
|
25952
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
25923
25953
|
}, /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
25924
25954
|
preferFrontFacingCamera: true,
|
|
25925
25955
|
onCameraAccessDenied: onCameraAccessDenied
|
|
@@ -25956,6 +25986,7 @@
|
|
|
25956
25986
|
submissionUrl = _a.submissionUrl,
|
|
25957
25987
|
documentServiceUrl = _a.documentServiceUrl,
|
|
25958
25988
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
25989
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
25959
25990
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
25960
25991
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
25961
25992
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26009,7 +26040,8 @@
|
|
|
26009
26040
|
onSubmit: onSubmit,
|
|
26010
26041
|
onResponseReceived: onComplete,
|
|
26011
26042
|
geolocationEnabled: geolocationEnabled,
|
|
26012
|
-
geolocationRequired: geolocationRequired
|
|
26043
|
+
geolocationRequired: geolocationRequired,
|
|
26044
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
26013
26045
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
26014
26046
|
debugMode: debugMode,
|
|
26015
26047
|
checks: React.useMemo(function () {
|
|
@@ -26067,6 +26099,7 @@
|
|
|
26067
26099
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
26068
26100
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
26069
26101
|
customerDataMatchConfig = _a.customerDataMatchConfig,
|
|
26102
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
26070
26103
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26071
26104
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26072
26105
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26245,7 +26278,8 @@
|
|
|
26245
26278
|
onBeforeSubmit: onBeforeSubmit,
|
|
26246
26279
|
onResponseReceived: onComplete,
|
|
26247
26280
|
geolocationEnabled: geolocationEnabled,
|
|
26248
|
-
geolocationRequired: geolocationRequired
|
|
26281
|
+
geolocationRequired: geolocationRequired,
|
|
26282
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
26249
26283
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
26250
26284
|
checks: React.useMemo(function () {
|
|
26251
26285
|
return ['VideoIdCapture'];
|
|
@@ -26284,6 +26318,7 @@
|
|
|
26284
26318
|
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
26285
26319
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
26286
26320
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
26321
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
26287
26322
|
_c = _a.loadingOverlayMode,
|
|
26288
26323
|
loadingOverlayMode = _c === void 0 ? 'default' : _c,
|
|
26289
26324
|
_d = _a.timeoutDurationMs,
|
|
@@ -26410,7 +26445,8 @@
|
|
|
26410
26445
|
onSubmit: onSubmit,
|
|
26411
26446
|
onResponseReceived: onResponseReceived,
|
|
26412
26447
|
geolocationEnabled: geolocationEnabled,
|
|
26413
|
-
geolocationRequired: geolocationRequired
|
|
26448
|
+
geolocationRequired: geolocationRequired,
|
|
26449
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
26414
26450
|
}, /*#__PURE__*/React.createElement(CompositeWizard, {
|
|
26415
26451
|
checks: React.useMemo(function () {
|
|
26416
26452
|
return ['FaceLiveness'];
|
|
@@ -26437,6 +26473,7 @@
|
|
|
26437
26473
|
submissionUrl = _a.submissionUrl,
|
|
26438
26474
|
documentServiceUrl = _a.documentServiceUrl,
|
|
26439
26475
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
26476
|
+
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
26440
26477
|
onBeforeDocumentUpload = _a.onBeforeDocumentUpload,
|
|
26441
26478
|
onDocumentUploadProgress = _a.onDocumentUploadProgress,
|
|
26442
26479
|
onDocumentUploaded = _a.onDocumentUploaded,
|
|
@@ -26479,7 +26516,8 @@
|
|
|
26479
26516
|
onDocumentUploaded: onDocumentUploaded,
|
|
26480
26517
|
onDocumentUploadFailed: onDocumentUploadFailed,
|
|
26481
26518
|
geolocationEnabled: geolocationEnabled,
|
|
26482
|
-
geolocationRequired: geolocationRequired
|
|
26519
|
+
geolocationRequired: geolocationRequired,
|
|
26520
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
26483
26521
|
}, /*#__PURE__*/React.createElement(CameraStoreProvider, {
|
|
26484
26522
|
requestAccessAutomatically: false,
|
|
26485
26523
|
preferIphoneContinuityCamera: true,
|