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
|
@@ -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.3.
|
|
214
|
+
var webSdkVersion = '2.3.131';
|
|
215
215
|
|
|
216
216
|
function getPlatform() {
|
|
217
217
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2403,29 +2403,16 @@
|
|
|
2403
2403
|
operationTime: attempt.operationTime,
|
|
2404
2404
|
bestDetectionScore: attempt.bestDetectionScore,
|
|
2405
2405
|
bestFocusScore: attempt.bestFocusScore,
|
|
2406
|
-
bestBarcodeScore: attempt.bestBarcodeScore,
|
|
2407
2406
|
boundingBox: attempt.boundingBox
|
|
2408
2407
|
});
|
|
2409
2408
|
}
|
|
2410
|
-
if (attempt.bestBarcodeScore !== undefined && attempt.bestBarcodeScore !== null) {
|
|
2411
|
-
setBarcodeCaptureAttempts(function (attempts) {
|
|
2412
|
-
return __spreadArray(__spreadArray([], attempts, true), [attempt], false);
|
|
2413
|
-
});
|
|
2414
|
-
setDocumentFileMetadata('idBarcodeImage', {
|
|
2415
|
-
documentType: 'idBarcodeImage',
|
|
2416
|
-
sourceDocumentType: documentType,
|
|
2417
|
-
documentKey: 'idBarcodeImage',
|
|
2418
|
-
bestBarcodeScore: attempt.bestBarcodeScore,
|
|
2419
|
-
captureMode: attempt.captureMode,
|
|
2420
|
-
autoCapture: attempt.autoCapture,
|
|
2421
|
-
captureTime: attempt.captureTime,
|
|
2422
|
-
operationTime: attempt.operationTime
|
|
2423
|
-
});
|
|
2424
|
-
}
|
|
2425
2409
|
}, [setDocumentFileMetadata]);
|
|
2426
2410
|
var logIdBackCaptureAttempt = React.useCallback(function (attempt, documentType) {
|
|
2411
|
+
var bestBarcodeScore = attempt.bestBarcodeScore,
|
|
2412
|
+
barcodeBoundingBox = attempt.barcodeBoundingBox,
|
|
2413
|
+
captureAttemptWithoutBarcode = __rest(attempt, ["bestBarcodeScore", "barcodeBoundingBox"]);
|
|
2427
2414
|
setIdBackCaptureAttempts(function (attempts) {
|
|
2428
|
-
return __spreadArray(__spreadArray([], attempts, true), [
|
|
2415
|
+
return __spreadArray(__spreadArray([], attempts, true), [captureAttemptWithoutBarcode], false);
|
|
2429
2416
|
});
|
|
2430
2417
|
var submissionKey = capturedDocumentTypeToSubmissionKey[documentType];
|
|
2431
2418
|
if (submissionKey) {
|
|
@@ -2438,10 +2425,32 @@
|
|
|
2438
2425
|
operationTime: attempt.operationTime,
|
|
2439
2426
|
bestDetectionScore: attempt.bestDetectionScore,
|
|
2440
2427
|
bestFocusScore: attempt.bestFocusScore,
|
|
2441
|
-
bestBarcodeScore: attempt.bestBarcodeScore,
|
|
2442
2428
|
boundingBox: attempt.boundingBox
|
|
2443
2429
|
});
|
|
2444
2430
|
}
|
|
2431
|
+
if (bestBarcodeScore !== undefined && bestBarcodeScore !== null) {
|
|
2432
|
+
var barcodeBoundingBoxToUse = barcodeBoundingBox !== null && barcodeBoundingBox !== void 0 ? barcodeBoundingBox : attempt.boundingBox;
|
|
2433
|
+
var barcodeMetadata_1 = {
|
|
2434
|
+
captureTime: attempt.captureTime,
|
|
2435
|
+
operationTime: attempt.operationTime,
|
|
2436
|
+
bestBarcodeScore: bestBarcodeScore,
|
|
2437
|
+
boundingBox: barcodeBoundingBoxToUse
|
|
2438
|
+
};
|
|
2439
|
+
setBarcodeCaptureAttempts(function (attempts) {
|
|
2440
|
+
return __spreadArray(__spreadArray([], attempts, true), [barcodeMetadata_1], false);
|
|
2441
|
+
});
|
|
2442
|
+
setDocumentFileMetadata('idBarcodeImage', {
|
|
2443
|
+
documentType: 'idBarcodeImage',
|
|
2444
|
+
sourceDocumentType: documentType,
|
|
2445
|
+
documentKey: 'idBarcodeImage',
|
|
2446
|
+
bestBarcodeScore: bestBarcodeScore,
|
|
2447
|
+
captureMode: attempt.captureMode,
|
|
2448
|
+
autoCapture: attempt.autoCapture,
|
|
2449
|
+
captureTime: attempt.captureTime,
|
|
2450
|
+
operationTime: attempt.operationTime,
|
|
2451
|
+
boundingBox: barcodeBoundingBoxToUse
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2445
2454
|
}, [setDocumentFileMetadata]);
|
|
2446
2455
|
var logSelfieCaptureAttempt = React.useCallback(function (attempt) {
|
|
2447
2456
|
setSelfieCaptureAttempts(function (attempts) {
|
|
@@ -16420,6 +16429,7 @@
|
|
|
16420
16429
|
autoCapture: 'Y',
|
|
16421
16430
|
captureTime: captureTime,
|
|
16422
16431
|
boundingBox: boundingBox,
|
|
16432
|
+
barcodeBoundingBox: bestBarcode === null || bestBarcode === void 0 ? void 0 : bestBarcode.boundingBox,
|
|
16423
16433
|
bestDetectionScore: detectionScore,
|
|
16424
16434
|
bestFocusScore: focusScore,
|
|
16425
16435
|
bestBarcodeScore: (_b = bestBarcode === null || bestBarcode === void 0 ? void 0 : bestBarcode.score) !== null && _b !== void 0 ? _b : 0
|