idmission-web-sdk 1.0.352 → 1.0.354
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 +8 -0
- package/dist/components/id_capture/HighPerformanceObjectDetectionModelsProvider.d.ts +1 -1
- 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/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +4 -0
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +4 -0
- package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +6 -2
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +4 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,6 +113,7 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
113
113
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
114
114
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
115
115
|
<tr><td><code>webhooksFireOnReview</code> (optional)</td><td>boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. Defaults to false.</td></tr>
|
|
116
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
116
117
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
117
118
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Colors table below.</td></tr>
|
|
118
119
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
@@ -249,6 +250,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
249
250
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
250
251
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
251
252
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
253
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
252
254
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
253
255
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Colors table below.</td></tr>
|
|
254
256
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
@@ -392,6 +394,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
392
394
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
393
395
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
394
396
|
<tr><td><code>webhooksFireOnReview</code> (optional)</td><td>boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. Defaults to false.</td></tr>
|
|
397
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
395
398
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
396
399
|
<tr><td><code>assets.idCapture</code> (optional)</td><td>object containing any asset overrides, for available options consult the ID Capture Assets table above.</td></tr>
|
|
397
400
|
<tr><td><code>assets.faceLiveness</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
@@ -479,6 +482,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
479
482
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
480
483
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
481
484
|
<tr><td><code>webhooksFireOnReview</code> (optional)</td><td>boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. Defaults to false.</td></tr>
|
|
485
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
482
486
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
483
487
|
<tr><td><code>assets.idCapture</code> (optional)</td><td>object containing any asset overrides, for available options consult the ID Capture Assets table above.</td></tr>
|
|
484
488
|
<tr><td><code>assets.faceLiveness</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
@@ -543,6 +547,7 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
|
|
|
543
547
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
544
548
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
545
549
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
550
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
546
551
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
547
552
|
<tr><td><code>assets.faceLiveness</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
548
553
|
<tr><td><code>colors.faceLiveness</code> (optional)</td><td>object containing any color overrides, for available options consult the Face Liveness Colors table above.</td></tr>
|
|
@@ -599,6 +604,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
599
604
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
600
605
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
601
606
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
607
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
602
608
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
603
609
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
604
610
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Face Liveness Colors table above.</td></tr>
|
|
@@ -650,6 +656,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
650
656
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
651
657
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
652
658
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
659
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
653
660
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
654
661
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
655
662
|
<tr><td><code>colors</code> (optional)</td><td>object containing any asset overrides, for available options consult the Colors table below.</td></tr>
|
|
@@ -781,6 +788,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
781
788
|
<tr><td><code>idCapturePortraitGuidesOnMobile</code> (optional)</td><td>boolean to indicate whether guide images should be rotated on mobile. Defaults to false.</td></tr>
|
|
782
789
|
<tr><td><code>idCaptureRotateLoadingOverlayImageWhenPortrait</code> (optional)</td><td>boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to true.</td></tr>
|
|
783
790
|
<tr><td><code>faceLivenessLoadingOverlayMode</code> (optional)</td><td>string indicating which face liveness loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
791
|
+
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
784
792
|
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
785
793
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
786
794
|
<tr><td><code>colors</code> (optional)</td><td>object containing any asset overrides, for available options consult the Colors table below.</td></tr>
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
3
3
|
import { ObjectDetector } from '@mediapipe/tasks-vision';
|
|
4
4
|
export declare const visionTasksBasePath = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm";
|
|
5
|
-
export declare const objectDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/
|
|
5
|
+
export declare const objectDetectorModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/docdetectmp20240517/model_fp16.tflite";
|
|
6
6
|
export type DetectedObject = {
|
|
7
7
|
box: {
|
|
8
8
|
xMin: number;
|
|
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
51
51
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
52
52
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
53
53
|
|
|
54
|
-
var webSdkVersion = '1.0.
|
|
54
|
+
var webSdkVersion = '1.0.354';
|
|
55
55
|
|
|
56
56
|
function getPlatform() {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -957,7 +957,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
957
957
|
_v = _a.documentServiceUrl,
|
|
958
958
|
documentServiceUrl = _v === void 0 ? defaultDocumentServiceUrl : _v,
|
|
959
959
|
_w = _a.sendBase64DocumentsInSwaggerProxy,
|
|
960
|
-
sendBase64DocumentsInSwaggerProxy = _w === void 0 ?
|
|
960
|
+
sendBase64DocumentsInSwaggerProxy = _w === void 0 ? true : _w,
|
|
961
961
|
onSubmit = _a.onSubmit,
|
|
962
962
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
963
963
|
onBeforeLivenessCheck = _a.onBeforeLivenessCheck,
|