idmission-web-sdk 2.3.129 → 2.3.131
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/id_capture/IdCapture.d.ts.map +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts.map +1 -1
- package/dist/components/submission/types.d.ts +8 -1
- package/dist/components/submission/types.d.ts.map +1 -1
- package/dist/contexts/SubmissionContext.d.ts +2 -2
- package/dist/contexts/SubmissionContext.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +29 -19
- 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 +29 -19
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +29 -19
- 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.3.
|
|
207
|
+
var webSdkVersion = '2.3.131';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -1422,29 +1422,16 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1422
1422
|
operationTime: attempt.operationTime,
|
|
1423
1423
|
bestDetectionScore: attempt.bestDetectionScore,
|
|
1424
1424
|
bestFocusScore: attempt.bestFocusScore,
|
|
1425
|
-
bestBarcodeScore: attempt.bestBarcodeScore,
|
|
1426
1425
|
boundingBox: attempt.boundingBox
|
|
1427
1426
|
});
|
|
1428
1427
|
}
|
|
1429
|
-
if (attempt.bestBarcodeScore !== undefined && attempt.bestBarcodeScore !== null) {
|
|
1430
|
-
setBarcodeCaptureAttempts(function (attempts) {
|
|
1431
|
-
return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
|
|
1432
|
-
});
|
|
1433
|
-
setDocumentFileMetadata('idBarcodeImage', {
|
|
1434
|
-
documentType: 'idBarcodeImage',
|
|
1435
|
-
sourceDocumentType: documentType,
|
|
1436
|
-
documentKey: 'idBarcodeImage',
|
|
1437
|
-
bestBarcodeScore: attempt.bestBarcodeScore,
|
|
1438
|
-
captureMode: attempt.captureMode,
|
|
1439
|
-
autoCapture: attempt.autoCapture,
|
|
1440
|
-
captureTime: attempt.captureTime,
|
|
1441
|
-
operationTime: attempt.operationTime
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
1428
|
}, [setDocumentFileMetadata]);
|
|
1445
1429
|
var logIdBackCaptureAttempt = useCallback(function (attempt, documentType) {
|
|
1430
|
+
var bestBarcodeScore = attempt.bestBarcodeScore,
|
|
1431
|
+
barcodeBoundingBox = attempt.barcodeBoundingBox,
|
|
1432
|
+
captureAttemptWithoutBarcode = __rest(attempt, ["bestBarcodeScore", "barcodeBoundingBox"]);
|
|
1446
1433
|
setIdBackCaptureAttempts(function (attempts) {
|
|
1447
|
-
return __spreadArray(__spreadArray([], attempts, true), [
|
|
1434
|
+
return __spreadArray(__spreadArray([], attempts, true), [captureAttemptWithoutBarcode], false);
|
|
1448
1435
|
});
|
|
1449
1436
|
var submissionKey = capturedDocumentTypeToSubmissionKey[documentType];
|
|
1450
1437
|
if (submissionKey) {
|
|
@@ -1457,10 +1444,32 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1457
1444
|
operationTime: attempt.operationTime,
|
|
1458
1445
|
bestDetectionScore: attempt.bestDetectionScore,
|
|
1459
1446
|
bestFocusScore: attempt.bestFocusScore,
|
|
1460
|
-
bestBarcodeScore: attempt.bestBarcodeScore,
|
|
1461
1447
|
boundingBox: attempt.boundingBox
|
|
1462
1448
|
});
|
|
1463
1449
|
}
|
|
1450
|
+
if (bestBarcodeScore !== undefined && bestBarcodeScore !== null) {
|
|
1451
|
+
var barcodeBoundingBoxToUse = barcodeBoundingBox !== null && barcodeBoundingBox !== void 0 ? barcodeBoundingBox : attempt.boundingBox;
|
|
1452
|
+
var barcodeMetadata_1 = {
|
|
1453
|
+
captureTime: attempt.captureTime,
|
|
1454
|
+
operationTime: attempt.operationTime,
|
|
1455
|
+
bestBarcodeScore: bestBarcodeScore,
|
|
1456
|
+
boundingBox: barcodeBoundingBoxToUse
|
|
1457
|
+
};
|
|
1458
|
+
setBarcodeCaptureAttempts(function (attempts) {
|
|
1459
|
+
return __spreadArray(__spreadArray([], attempts, true), [barcodeMetadata_1], false);
|
|
1460
|
+
});
|
|
1461
|
+
setDocumentFileMetadata('idBarcodeImage', {
|
|
1462
|
+
documentType: 'idBarcodeImage',
|
|
1463
|
+
sourceDocumentType: documentType,
|
|
1464
|
+
documentKey: 'idBarcodeImage',
|
|
1465
|
+
bestBarcodeScore: bestBarcodeScore,
|
|
1466
|
+
captureMode: attempt.captureMode,
|
|
1467
|
+
autoCapture: attempt.autoCapture,
|
|
1468
|
+
captureTime: attempt.captureTime,
|
|
1469
|
+
operationTime: attempt.operationTime,
|
|
1470
|
+
boundingBox: barcodeBoundingBoxToUse
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1464
1473
|
}, [setDocumentFileMetadata]);
|
|
1465
1474
|
var logSelfieCaptureAttempt = useCallback(function (attempt) {
|
|
1466
1475
|
setSelfieCaptureAttempts(function (attempts) {
|
|
@@ -7297,6 +7306,7 @@ var IdCapture = function IdCapture(_a) {
|
|
|
7297
7306
|
autoCapture: 'Y',
|
|
7298
7307
|
captureTime: captureTime,
|
|
7299
7308
|
boundingBox: boundingBox,
|
|
7309
|
+
barcodeBoundingBox: bestBarcode === null || bestBarcode === void 0 ? void 0 : bestBarcode.boundingBox,
|
|
7300
7310
|
bestDetectionScore: detectionScore,
|
|
7301
7311
|
bestFocusScore: focusScore,
|
|
7302
7312
|
bestBarcodeScore: (_b = bestBarcode === null || bestBarcode === void 0 ? void 0 : bestBarcode.score) !== null && _b !== void 0 ? _b : 0
|