idmission-web-sdk 2.2.105 → 2.2.106
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/FaceValidation.d.ts +4 -0
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +3 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +71 -63
- 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 +71 -63
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +71 -63
- 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
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.2.
|
|
207
|
+
var webSdkVersion = '2.2.106';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1172,83 +1172,87 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1172
1172
|
userSuppliedOnRequestFailure = _a.onRequestFailure,
|
|
1173
1173
|
clientRequestID = _a.clientRequestID,
|
|
1174
1174
|
_x = _a.useDocumentServiceForLivenessChecks,
|
|
1175
|
-
useDocumentServiceForLivenessChecks = _x === void 0 ? false : _x
|
|
1175
|
+
useDocumentServiceForLivenessChecks = _x === void 0 ? false : _x,
|
|
1176
|
+
_y = _a.estimateAge,
|
|
1177
|
+
estimateAge = _y === void 0 ? false : _y,
|
|
1178
|
+
_z = _a.predictGender,
|
|
1179
|
+
predictGender = _z === void 0 ? false : _z;
|
|
1176
1180
|
var sessionId = useAuthContext()[0].sessionId;
|
|
1177
|
-
var
|
|
1178
|
-
submissionStatus =
|
|
1179
|
-
setSubmissionStatus =
|
|
1180
|
-
var _z = useState(null),
|
|
1181
|
-
submissionRequest = _z[0],
|
|
1182
|
-
setSubmissionRequest = _z[1];
|
|
1183
|
-
var _0 = useState(null),
|
|
1184
|
-
submissionResponse = _0[0],
|
|
1185
|
-
setSubmissionResponse = _0[1];
|
|
1181
|
+
var _0 = useState(SubmissionStatus.READY),
|
|
1182
|
+
submissionStatus = _0[0],
|
|
1183
|
+
setSubmissionStatus = _0[1];
|
|
1186
1184
|
var _1 = useState(null),
|
|
1187
|
-
|
|
1188
|
-
|
|
1185
|
+
submissionRequest = _1[0],
|
|
1186
|
+
setSubmissionRequest = _1[1];
|
|
1189
1187
|
var _2 = useState(null),
|
|
1190
|
-
|
|
1191
|
-
|
|
1188
|
+
submissionResponse = _2[0],
|
|
1189
|
+
setSubmissionResponse = _2[1];
|
|
1192
1190
|
var _3 = useState(null),
|
|
1193
|
-
|
|
1194
|
-
|
|
1191
|
+
submissionError = _3[0],
|
|
1192
|
+
setSubmissionError = _3[1];
|
|
1195
1193
|
var _4 = useState(null),
|
|
1196
|
-
|
|
1197
|
-
|
|
1194
|
+
retrySubmission = _4[0],
|
|
1195
|
+
setRetrySubmission = _4[1];
|
|
1198
1196
|
var _5 = useState(null),
|
|
1199
|
-
|
|
1200
|
-
|
|
1197
|
+
livenessCheckRequest = _5[0],
|
|
1198
|
+
setLivenessCheckRequest = _5[1];
|
|
1201
1199
|
var _6 = useState(null),
|
|
1202
|
-
|
|
1203
|
-
|
|
1200
|
+
idFrontImage = _6[0],
|
|
1201
|
+
setIdFrontImage = _6[1];
|
|
1204
1202
|
var _7 = useState(null),
|
|
1205
|
-
|
|
1206
|
-
|
|
1203
|
+
idBackImage = _7[0],
|
|
1204
|
+
setIdBackImage = _7[1];
|
|
1207
1205
|
var _8 = useState(null),
|
|
1208
|
-
|
|
1209
|
-
|
|
1206
|
+
passportImage = _8[0],
|
|
1207
|
+
setPassportImage = _8[1];
|
|
1210
1208
|
var _9 = useState(null),
|
|
1211
|
-
|
|
1212
|
-
|
|
1209
|
+
selfieImage = _9[0],
|
|
1210
|
+
setSelfieImage = _9[1];
|
|
1213
1211
|
var _10 = useState(null),
|
|
1214
|
-
|
|
1215
|
-
|
|
1212
|
+
signatureData = _10[0],
|
|
1213
|
+
setSignatureData = _10[1];
|
|
1216
1214
|
var _11 = useState(null),
|
|
1217
|
-
|
|
1218
|
-
|
|
1215
|
+
signatureVideoUrl = _11[0],
|
|
1216
|
+
setSignatureVideoUrl = _11[1];
|
|
1219
1217
|
var _12 = useState(null),
|
|
1220
|
-
|
|
1221
|
-
|
|
1218
|
+
idCaptureVideoUrl = _12[0],
|
|
1219
|
+
setIdCaptureVideoUrl = _12[1];
|
|
1222
1220
|
var _13 = useState(null),
|
|
1223
|
-
|
|
1224
|
-
|
|
1221
|
+
idCaptureVideoIdFrontImage = _13[0],
|
|
1222
|
+
setIdCaptureVideoIdFrontImage = _13[1];
|
|
1225
1223
|
var _14 = useState(null),
|
|
1226
|
-
|
|
1227
|
-
|
|
1224
|
+
idCaptureVideoIdBackImage = _14[0],
|
|
1225
|
+
setIdCaptureVideoIdBackImage = _14[1];
|
|
1228
1226
|
var _15 = useState(null),
|
|
1229
|
-
|
|
1230
|
-
|
|
1227
|
+
idCaptureVideoAudioUrl = _15[0],
|
|
1228
|
+
setIdCaptureVideoAudioUrl = _15[1];
|
|
1231
1229
|
var _16 = useState(null),
|
|
1232
|
-
|
|
1233
|
-
|
|
1230
|
+
idCaptureVideoAudioStartsAt = _16[0],
|
|
1231
|
+
setIdCaptureVideoAudioStartsAt = _16[1];
|
|
1234
1232
|
var _17 = useState(null),
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
var _18 = useState(
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
var _19 = useState(
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
var _20 = useState(
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
var _21 = useState(
|
|
1247
|
-
|
|
1248
|
-
|
|
1233
|
+
expectedAudioText = _17[0],
|
|
1234
|
+
setExpectedAudioText = _17[1];
|
|
1235
|
+
var _18 = useState(null),
|
|
1236
|
+
additionalDocuments = _18[0],
|
|
1237
|
+
setAdditionalDocuments = _18[1];
|
|
1238
|
+
var _19 = useState(null),
|
|
1239
|
+
geolocationResult = _19[0],
|
|
1240
|
+
setGeolocationResult = _19[1];
|
|
1241
|
+
var _20 = useState(0),
|
|
1242
|
+
geolocationAttempts = _20[0],
|
|
1243
|
+
setGeolocationAttempts = _20[1];
|
|
1244
|
+
var _21 = useState(false),
|
|
1245
|
+
geolocationBlocked = _21[0],
|
|
1246
|
+
setGeolocationBlocked = _21[1];
|
|
1249
1247
|
var _22 = useState([]),
|
|
1250
|
-
|
|
1251
|
-
|
|
1248
|
+
idFrontCaptureAttempts = _22[0],
|
|
1249
|
+
setIdFrontCaptureAttempts = _22[1];
|
|
1250
|
+
var _23 = useState([]),
|
|
1251
|
+
idBackCaptureAttempts = _23[0],
|
|
1252
|
+
setIdBackCaptureAttempts = _23[1];
|
|
1253
|
+
var _24 = useState([]),
|
|
1254
|
+
selfieCaptureAttempts = _24[0],
|
|
1255
|
+
setSelfieCaptureAttempts = _24[1];
|
|
1252
1256
|
var logIdFrontCaptureAttempt = useCallback(function (attempt) {
|
|
1253
1257
|
setIdFrontCaptureAttempts(function (attempts) {
|
|
1254
1258
|
return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
|
|
@@ -1682,8 +1686,8 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1682
1686
|
additionalData: {
|
|
1683
1687
|
uniqueRequestId: new Date().getTime().toString(),
|
|
1684
1688
|
stripSpecialCharacters: webhooksStripSpecialCharacters ? 'Y' : 'N',
|
|
1685
|
-
estimateAge: 'N',
|
|
1686
|
-
predictGender: 'N'
|
|
1689
|
+
estimateAge: estimateAge ? 'Y' : 'N',
|
|
1690
|
+
predictGender: predictGender ? 'Y' : 'N'
|
|
1687
1691
|
}
|
|
1688
1692
|
};
|
|
1689
1693
|
if (clientRequestID) {
|
|
@@ -1716,7 +1720,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1716
1720
|
}
|
|
1717
1721
|
});
|
|
1718
1722
|
});
|
|
1719
|
-
}, [clientRequestID, documentServiceUrl, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, selfieCaptureAttempts, uploadDocument, useDocumentServiceForLivenessChecks, webhooksStripSpecialCharacters]);
|
|
1723
|
+
}, [clientRequestID, documentServiceUrl, estimateAge, geolocationResult, idBackCaptureAttempts, idCardForFaceMatch, idFrontCaptureAttempts, predictGender, selfieCaptureAttempts, uploadDocument, useDocumentServiceForLivenessChecks, webhooksStripSpecialCharacters]);
|
|
1720
1724
|
var checkLiveness = useCallback(function (imageDataUrl) {
|
|
1721
1725
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
1722
1726
|
var request, host, endpoint, response, statusMessage, submissionResponse_3, e_2, err;
|
|
@@ -15221,6 +15225,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15221
15225
|
webhooksFireOnReviewURL = _a.webhooksFireOnReviewURL,
|
|
15222
15226
|
sendBase64DocumentsInSwaggerProxy = _a.sendBase64DocumentsInSwaggerProxy,
|
|
15223
15227
|
useDocumentServiceForLivenessChecks = _a.useDocumentServiceForLivenessChecks,
|
|
15228
|
+
estimateAge = _a.estimateAge,
|
|
15229
|
+
predictGender = _a.predictGender,
|
|
15224
15230
|
_d = _a.loadingOverlayMode,
|
|
15225
15231
|
loadingOverlayMode = _d === void 0 ? 'default' : _d,
|
|
15226
15232
|
_e = _a.timeoutDurationMs,
|
|
@@ -15305,7 +15311,9 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
15305
15311
|
onBeforeLivenessCheck: onBeforeSubmit,
|
|
15306
15312
|
geolocationEnabled: geolocationEnabled,
|
|
15307
15313
|
geolocationRequired: geolocationRequired,
|
|
15308
|
-
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks
|
|
15314
|
+
useDocumentServiceForLivenessChecks: useDocumentServiceForLivenessChecks,
|
|
15315
|
+
estimateAge: estimateAge,
|
|
15316
|
+
predictGender: predictGender
|
|
15309
15317
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
15310
15318
|
checks: useMemo(function () {
|
|
15311
15319
|
return ['FaceLiveness'];
|