idmission-web-sdk 0.0.16 → 0.0.17
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/README.md +0 -3
- package/dist/sdk2.cjs.development.js +2 -2
- 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 +2 -2
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +2 -2
- 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/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,6 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
53
53
|
<tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
|
|
54
54
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
55
55
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
56
|
-
<tr><td><code>documentDetectionNonMaxSuppressionEnabled</code> (optional)</td><td>boolean to indicate whether to remove document predictions below the max score.</td></tr>
|
|
57
56
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
58
57
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards.</td></tr>
|
|
59
58
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports.</td></tr>
|
|
@@ -213,7 +212,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
213
212
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
214
213
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
215
214
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
216
|
-
<tr><td><code>documentDetectionNonMaxSuppressionEnabled</code> (optional)</td><td>boolean to indicate whether to remove document predictions below the max score.</td></tr>
|
|
217
215
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
218
216
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards.</td></tr>
|
|
219
217
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports.</td></tr>
|
|
@@ -262,7 +260,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
262
260
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
263
261
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
264
262
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
265
|
-
<tr><td><code>documentDetectionNonMaxSuppressionEnabled</code> (optional)</td><td>boolean to indicate whether to remove document predictions below the max score.</td></tr>
|
|
266
263
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
267
264
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards.</td></tr>
|
|
268
265
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports.</td></tr>
|
|
@@ -1367,7 +1367,7 @@ var IdCapture = function IdCapture(_a) {
|
|
|
1367
1367
|
return [4, takePhoto()];
|
|
1368
1368
|
case 2:
|
|
1369
1369
|
frame_1 = _a.sent();
|
|
1370
|
-
if (!frame_1) {
|
|
1370
|
+
if (!frame_1 || !shouldCaptureFrames.current) {
|
|
1371
1371
|
animationFrame.current = requestAnimationFrame(runFrame);
|
|
1372
1372
|
return [2];
|
|
1373
1373
|
}
|
|
@@ -1375,7 +1375,7 @@ var IdCapture = function IdCapture(_a) {
|
|
|
1375
1375
|
return [4, new Promise(function (resolve) {
|
|
1376
1376
|
var img = new Image();
|
|
1377
1377
|
img.onload = function () {
|
|
1378
|
-
makePrediction(img);
|
|
1378
|
+
if (shouldCaptureFrames.current) makePrediction(img);
|
|
1379
1379
|
resolve(null);
|
|
1380
1380
|
};
|
|
1381
1381
|
img.onerror = function () {
|