idmission-web-sdk 1.0.74 → 1.0.76
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 +4 -0
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -0
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -0
- package/dist/components/customer_flows/IdValidation.d.ts +2 -0
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -0
- package/dist/components/submission/SubmissionProvider.d.ts +2 -1
- package/dist/contexts/SubmissionContext.d.ts +1 -0
- package/dist/sdk2.cjs.development.js +66 -55
- 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 +66 -55
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +66 -55
- 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/README.md
CHANGED
|
@@ -103,6 +103,7 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
103
103
|
<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>
|
|
104
104
|
<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>
|
|
105
105
|
<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>
|
|
106
|
+
<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>
|
|
106
107
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
107
108
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Colors table below.</td></tr>
|
|
108
109
|
<tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Verbiage table below.</td></tr>
|
|
@@ -358,6 +359,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
358
359
|
<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>
|
|
359
360
|
<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>
|
|
360
361
|
<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>
|
|
362
|
+
<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>
|
|
361
363
|
<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>
|
|
362
364
|
<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>
|
|
363
365
|
<tr><td><code>colors.idCapture</code> (optional)</td><td>object containing any color overrides, for available options consult the ID Capture Colors table above.</td></tr>
|
|
@@ -429,6 +431,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
429
431
|
<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>
|
|
430
432
|
<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>
|
|
431
433
|
<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>
|
|
434
|
+
<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>
|
|
432
435
|
<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>
|
|
433
436
|
<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>
|
|
434
437
|
<tr><td><code>colors.idCapture</code> (optional)</td><td>object containing any color overrides, for available options consult the ID Capture Colors table above.</td></tr>
|
|
@@ -678,6 +681,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
678
681
|
<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>
|
|
679
682
|
<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>
|
|
680
683
|
<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>
|
|
684
|
+
<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>
|
|
681
685
|
<tr><td><code>idCaptureProps</code> (optional)</td><td>object containing any overrides for IDValidation.</td></tr>
|
|
682
686
|
<tr><td><code>faceLivenessProps</code> (optional)</td><td>object containing any overrides for IDValidation.</td></tr>
|
|
683
687
|
<tr><td><code>idCardFrontDetectionThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for the ID card front during video capture. Defaults to 0.48.</td></tr>
|
|
@@ -74,6 +74,8 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
|
|
|
74
74
|
webhooksSendInputImages?: boolean;
|
|
75
75
|
/** Boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. */
|
|
76
76
|
webhooksSendProcessedImages?: boolean;
|
|
77
|
+
/** Boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. */
|
|
78
|
+
webhooksFireOnReview?: boolean;
|
|
77
79
|
/** Boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`. */
|
|
78
80
|
idAutoCaptureEnabled?: boolean;
|
|
79
81
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8. */
|
|
@@ -66,6 +66,8 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
|
|
|
66
66
|
webhooksSendInputImages?: boolean;
|
|
67
67
|
/** Boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. */
|
|
68
68
|
webhooksSendProcessedImages?: boolean;
|
|
69
|
+
/** Boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. */
|
|
70
|
+
webhooksFireOnReview?: boolean;
|
|
69
71
|
/** Boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`. */
|
|
70
72
|
idAutoCaptureEnabled?: boolean;
|
|
71
73
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8. */
|
|
@@ -56,6 +56,8 @@ export interface IdValidationProps extends PropsWithChildren {
|
|
|
56
56
|
webhooksSendInputImages?: boolean;
|
|
57
57
|
/** Boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. */
|
|
58
58
|
webhooksSendProcessedImages?: boolean;
|
|
59
|
+
/** Boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. */
|
|
60
|
+
webhooksFireOnReview?: boolean;
|
|
59
61
|
/** Boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`. */
|
|
60
62
|
idAutoCaptureEnabled?: boolean;
|
|
61
63
|
/** Number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8. */
|
|
@@ -58,6 +58,8 @@ export interface VideoIdValidationProps extends PropsWithChildren {
|
|
|
58
58
|
webhooksSendInputImages?: boolean;
|
|
59
59
|
/** Boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. */
|
|
60
60
|
webhooksSendProcessedImages?: boolean;
|
|
61
|
+
/** Boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. */
|
|
62
|
+
webhooksFireOnReview?: boolean;
|
|
61
63
|
/** Callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned. */
|
|
62
64
|
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
63
65
|
/** Callback function that fires when the user has completed the flow instead of making a call to IDmission's servers, allowing customers to specify their own submission logic. Arguments: the request payload that would have been dispatched to IDmission's API, which contains the images/documents/video submitted by the user. Note that when this parameter is supplied, `onComplete` will never fire, and the customer will need to implement their own error handling/retry logic. Use at your own risk! */
|
|
@@ -27,10 +27,11 @@ export type SubmissionProviderProps = {
|
|
|
27
27
|
webhooksStripSpecialCharacters?: boolean;
|
|
28
28
|
webhooksSendInputImages?: boolean;
|
|
29
29
|
webhooksSendProcessedImages?: boolean;
|
|
30
|
+
webhooksFireOnReview?: boolean;
|
|
30
31
|
onSubmit?: (payload: SubmissionRequest) => void;
|
|
31
32
|
onBeforeSubmit?: (req: SubmissionRequest) => Promise<SubmissionRequest>;
|
|
32
33
|
onBeforeLivenessCheck?: (req: LivenessCheckRequest) => Promise<LivenessCheckRequest>;
|
|
33
34
|
onResponseReceived?: (res: SubmissionResponse, req: SubmissionRequest) => void;
|
|
34
35
|
onRequestFailure?: (err: Error) => void;
|
|
35
36
|
};
|
|
36
|
-
export declare const SubmissionProvider: ({ action, children, url, environment, token, companyId, enrollmentId, personalData, cardData, bypassAgeValidation, bypassNameMatching, needImmediateResponse, manualReviewRequired, idBackImageRequired, idImageResolutionCheck, verifyIdWithExternalDatabases, deduplicationEnabled, deduplicationSynchronous, geolocationEnabled, geolocationRequired, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, webhooksSendInputImages, webhooksSendProcessedImages, onSubmit, onBeforeSubmit, onBeforeLivenessCheck, onResponseReceived, onRequestFailure, }: SubmissionProviderProps) => ReactElement;
|
|
37
|
+
export declare const SubmissionProvider: ({ action, children, url, environment, token, companyId, enrollmentId, personalData, cardData, bypassAgeValidation, bypassNameMatching, needImmediateResponse, manualReviewRequired, idBackImageRequired, idImageResolutionCheck, verifyIdWithExternalDatabases, deduplicationEnabled, deduplicationSynchronous, geolocationEnabled, geolocationRequired, webhooksEnabled, webhooksClientTraceId, webhooksStripSpecialCharacters, webhooksSendInputImages, webhooksSendProcessedImages, webhooksFireOnReview, onSubmit, onBeforeSubmit, onBeforeLivenessCheck, onResponseReceived, onRequestFailure, }: SubmissionProviderProps) => ReactElement;
|
|
@@ -56,6 +56,7 @@ export type SubmissionRequest = {
|
|
|
56
56
|
deDuplicationRequired: 'Y' | 'N';
|
|
57
57
|
bypassNameMatching: 'Y' | 'N';
|
|
58
58
|
postDataAPIRequired: 'Y' | 'N';
|
|
59
|
+
postDataOnReviewRequired: 'Y' | 'N';
|
|
59
60
|
sendInputImagesInPost: 'Y' | 'N';
|
|
60
61
|
sendProcessedImagesInPost: 'Y' | 'N';
|
|
61
62
|
needImmediateResponse: 'Y' | 'N';
|
|
@@ -46,7 +46,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
46
46
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
47
47
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
48
48
|
|
|
49
|
-
var webSdkVersion = '1.0.
|
|
49
|
+
var webSdkVersion = '1.0.76';
|
|
50
50
|
|
|
51
51
|
function getPlatform() {
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -684,71 +684,73 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
684
684
|
webhooksSendInputImages = _r === void 0 ? false : _r,
|
|
685
685
|
_s = _a.webhooksSendProcessedImages,
|
|
686
686
|
webhooksSendProcessedImages = _s === void 0 ? false : _s,
|
|
687
|
+
_t = _a.webhooksFireOnReview,
|
|
688
|
+
webhooksFireOnReview = _t === void 0 ? false : _t,
|
|
687
689
|
onSubmit = _a.onSubmit,
|
|
688
690
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
689
691
|
onBeforeLivenessCheck = _a.onBeforeLivenessCheck,
|
|
690
692
|
onResponseReceived = _a.onResponseReceived,
|
|
691
693
|
onRequestFailure = _a.onRequestFailure;
|
|
692
|
-
var
|
|
693
|
-
submissionStatus =
|
|
694
|
-
setSubmissionStatus =
|
|
695
|
-
var _u = React.useState(null),
|
|
696
|
-
submissionRequest = _u[0],
|
|
697
|
-
setSubmissionRequest = _u[1];
|
|
694
|
+
var _u = React.useState(SubmissionStatus.READY),
|
|
695
|
+
submissionStatus = _u[0],
|
|
696
|
+
setSubmissionStatus = _u[1];
|
|
698
697
|
var _v = React.useState(null),
|
|
699
|
-
|
|
700
|
-
|
|
698
|
+
submissionRequest = _v[0],
|
|
699
|
+
setSubmissionRequest = _v[1];
|
|
701
700
|
var _w = React.useState(null),
|
|
702
|
-
|
|
703
|
-
|
|
701
|
+
submissionResponse = _w[0],
|
|
702
|
+
setSubmissionResponse = _w[1];
|
|
704
703
|
var _x = React.useState(null),
|
|
705
|
-
|
|
706
|
-
|
|
704
|
+
submissionError = _x[0],
|
|
705
|
+
setSubmissionError = _x[1];
|
|
707
706
|
var _y = React.useState(null),
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
retrySubmission = _y[0],
|
|
708
|
+
setRetrySubmission = _y[1];
|
|
710
709
|
var _z = React.useState(null),
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
livenessCheckRequest = _z[0],
|
|
711
|
+
setLivenessCheckRequest = _z[1];
|
|
713
712
|
var _0 = React.useState(null),
|
|
714
|
-
|
|
715
|
-
|
|
713
|
+
idFrontImage = _0[0],
|
|
714
|
+
setIdFrontImage = _0[1];
|
|
716
715
|
var _1 = React.useState(null),
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
idBackImage = _1[0],
|
|
717
|
+
setIdBackImage = _1[1];
|
|
719
718
|
var _2 = React.useState(null),
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
passportImage = _2[0],
|
|
720
|
+
setPassportImage = _2[1];
|
|
722
721
|
var _3 = React.useState(null),
|
|
723
|
-
|
|
724
|
-
|
|
722
|
+
selfieImage = _3[0],
|
|
723
|
+
setSelfieImage = _3[1];
|
|
725
724
|
var _4 = React.useState(null),
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
signatureData = _4[0],
|
|
726
|
+
setSignatureData = _4[1];
|
|
728
727
|
var _5 = React.useState(null),
|
|
729
|
-
|
|
730
|
-
|
|
728
|
+
signatureVideoUrl = _5[0],
|
|
729
|
+
setSignatureVideoUrl = _5[1];
|
|
731
730
|
var _6 = React.useState(null),
|
|
732
|
-
|
|
733
|
-
|
|
731
|
+
idCaptureVideoUrl = _6[0],
|
|
732
|
+
setIdCaptureVideoUrl = _6[1];
|
|
734
733
|
var _7 = React.useState(null),
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
var _8 = React.useState(
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
var _9 = React.useState(
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
var _10 = React.useState(
|
|
744
|
-
|
|
745
|
-
|
|
734
|
+
additionalDocuments = _7[0],
|
|
735
|
+
setAdditionalDocuments = _7[1];
|
|
736
|
+
var _8 = React.useState(null),
|
|
737
|
+
geolocationResult = _8[0],
|
|
738
|
+
setGeolocationResult = _8[1];
|
|
739
|
+
var _9 = React.useState(0),
|
|
740
|
+
geolocationAttempts = _9[0],
|
|
741
|
+
setGeolocationAttempts = _9[1];
|
|
742
|
+
var _10 = React.useState(false),
|
|
743
|
+
geolocationBlocked = _10[0],
|
|
744
|
+
setGeolocationBlocked = _10[1];
|
|
746
745
|
var _11 = React.useState([]),
|
|
747
|
-
|
|
748
|
-
|
|
746
|
+
idFrontCaptureAttempts = _11[0],
|
|
747
|
+
setIdFrontCaptureAttempts = _11[1];
|
|
749
748
|
var _12 = React.useState([]),
|
|
750
|
-
|
|
751
|
-
|
|
749
|
+
idBackCaptureAttempts = _12[0],
|
|
750
|
+
setIdBackCaptureAttempts = _12[1];
|
|
751
|
+
var _13 = React.useState([]),
|
|
752
|
+
selfieCaptureAttempts = _13[0],
|
|
753
|
+
setSelfieCaptureAttempts = _13[1];
|
|
752
754
|
var logIdFrontCaptureAttempt = React.useCallback(function (attempt) {
|
|
753
755
|
setIdFrontCaptureAttempts(function (attempts) {
|
|
754
756
|
return tslib.__spreadArray(tslib.__spreadArray([], attempts, true), [attempt], false);
|
|
@@ -791,6 +793,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
791
793
|
bypassAgeValidation: bypassAgeValidation ? 'Y' : 'N',
|
|
792
794
|
bypassNameMatching: bypassNameMatching ? 'Y' : 'N',
|
|
793
795
|
postDataAPIRequired: webhooksEnabled ? 'Y' : 'N',
|
|
796
|
+
postDataOnReviewRequired: webhooksFireOnReview ? 'Y' : 'N',
|
|
794
797
|
sendInputImagesInPost: webhooksSendInputImages ? 'Y' : 'N',
|
|
795
798
|
sendProcessedImagesInPost: webhooksSendProcessedImages ? 'Y' : 'N',
|
|
796
799
|
needImmediateResponse: needImmediateResponse ? 'Y' : 'N',
|
|
@@ -880,7 +883,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
880
883
|
}
|
|
881
884
|
});
|
|
882
885
|
});
|
|
883
|
-
}, [action, additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, companyId, deduplicationEnabled, deduplicationSynchronous, enrollmentId, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoUrl, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, onBeforeSubmit, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters]);
|
|
886
|
+
}, [action, additionalDocuments, bypassAgeValidation, bypassNameMatching, cardData, companyId, deduplicationEnabled, deduplicationSynchronous, enrollmentId, geolocationResult, idBackCaptureAttempts, idBackImage, idBackImageRequired, idCaptureVideoUrl, idFrontCaptureAttempts, idFrontImage, idImageResolutionCheck, manualReviewRequired, needImmediateResponse, onBeforeSubmit, passportImage, personalData, selfieCaptureAttempts, selfieImage, signatureData, signatureVideoUrl, verifyIdWithExternalDatabases, webhooksClientTraceId, webhooksEnabled, webhooksFireOnReview, webhooksSendInputImages, webhooksSendProcessedImages, webhooksStripSpecialCharacters]);
|
|
884
887
|
var defaultOnSubmit = React.useCallback(function () {
|
|
885
888
|
return tslib.__awaiter(void 0, void 0, void 0, function () {
|
|
886
889
|
var submissionResponse_1, payload, host, endpoint, response, statusMessage, submissionResponse_2, e_1, err;
|
|
@@ -1093,12 +1096,12 @@ var SubmissionProvider = function SubmissionProvider(_a) {
|
|
|
1093
1096
|
setSubmissionStatus(SubmissionStatus.READY);
|
|
1094
1097
|
retrySubmission();
|
|
1095
1098
|
}, [retrySubmission]);
|
|
1096
|
-
var
|
|
1097
|
-
tokenState =
|
|
1098
|
-
setTokenState =
|
|
1099
|
-
var
|
|
1100
|
-
tokenError =
|
|
1101
|
-
setTokenError =
|
|
1099
|
+
var _14 = React.useState('NOT_PARSED'),
|
|
1100
|
+
tokenState = _14[0],
|
|
1101
|
+
setTokenState = _14[1];
|
|
1102
|
+
var _15 = React.useState(null),
|
|
1103
|
+
tokenError = _15[0],
|
|
1104
|
+
setTokenError = _15[1];
|
|
1102
1105
|
React.useEffect(function () {
|
|
1103
1106
|
(function () {
|
|
1104
1107
|
return tslib.__awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1404,9 +1407,9 @@ var GuideCenterBorder = styled__default['default'].div(templateObject_5$2 || (te
|
|
|
1404
1407
|
});
|
|
1405
1408
|
var GuideText = styled__default['default'].span(templateObject_6$1 || (templateObject_6$1 = tslib.__makeTemplateObject(["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"], ["\n align-content: center;\n margin-top: 12px;\n margin-bottom: 12px;\n"])));
|
|
1406
1409
|
var GuideImage = styled__default['default'].img(templateObject_7 || (templateObject_7 = tslib.__makeTemplateObject(["\n display: block;\n ", "\n ", "\n"], ["\n display: block;\n ", "\n ", "\n"])), function (props) {
|
|
1407
|
-
return props.$width ? "width: ".concat(props.$width, "px; max-width: ").concat(props.$width, "px;") : "";
|
|
1410
|
+
return props.$width ? "width: ".concat(props.$width, "px; max-width: ").concat(props.$width, "px;") : "max-width: none;";
|
|
1408
1411
|
}, function (props) {
|
|
1409
|
-
return props.$height ? "height: ".concat(props.$height, "px; max-height: ").concat(props.$height, "px;") : "";
|
|
1412
|
+
return props.$height ? "height: ".concat(props.$height, "px; max-height: ").concat(props.$height, "px;") : "max-width: none;";
|
|
1410
1413
|
});
|
|
1411
1414
|
var DocumentCaptureGuideOverlay = function DocumentCaptureGuideOverlay(_a) {
|
|
1412
1415
|
var _b, _c, _d;
|
|
@@ -14120,6 +14123,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14120
14123
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
14121
14124
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
14122
14125
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
14126
|
+
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
14123
14127
|
_c = _a.idAutoCaptureEnabled,
|
|
14124
14128
|
idAutoCaptureEnabled = _c === void 0 ? true : _c,
|
|
14125
14129
|
_d = _a.idCardAutoCaptureScoreThreshold,
|
|
@@ -14229,6 +14233,7 @@ var IdValidation = function IdValidation(_a) {
|
|
|
14229
14233
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
14230
14234
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
14231
14235
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
14236
|
+
webhooksFireOnReview: webhooksFireOnReview,
|
|
14232
14237
|
onBeforeSubmit: onBeforeSubmit,
|
|
14233
14238
|
onResponseReceived: onResponseReceived,
|
|
14234
14239
|
geolocationEnabled: geolocationEnabled,
|
|
@@ -14346,6 +14351,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14346
14351
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
14347
14352
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
14348
14353
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
14354
|
+
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
14349
14355
|
_c = _a.idAutoCaptureEnabled,
|
|
14350
14356
|
idAutoCaptureEnabled = _c === void 0 ? true : _c,
|
|
14351
14357
|
_d = _a.idCardAutoCaptureScoreThreshold,
|
|
@@ -14474,6 +14480,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
14474
14480
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
14475
14481
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
14476
14482
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
14483
|
+
webhooksFireOnReview: webhooksFireOnReview,
|
|
14477
14484
|
onBeforeSubmit: onBeforeSubmit,
|
|
14478
14485
|
onBeforeLivenessCheck: onBeforeLivenessCheck,
|
|
14479
14486
|
onResponseReceived: onResponseReceived,
|
|
@@ -14520,6 +14527,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14520
14527
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
14521
14528
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
14522
14529
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
14530
|
+
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
14523
14531
|
_c = _a.idAutoCaptureEnabled,
|
|
14524
14532
|
idAutoCaptureEnabled = _c === void 0 ? true : _c,
|
|
14525
14533
|
_d = _a.idCardAutoCaptureScoreThreshold,
|
|
@@ -14650,6 +14658,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14650
14658
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
14651
14659
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
14652
14660
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
14661
|
+
webhooksFireOnReview: webhooksFireOnReview,
|
|
14653
14662
|
onBeforeSubmit: onBeforeSubmit,
|
|
14654
14663
|
onResponseReceived: onResponseReceived,
|
|
14655
14664
|
geolocationEnabled: geolocationEnabled,
|
|
@@ -15722,6 +15731,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15722
15731
|
webhooksStripSpecialCharacters = _a.webhooksStripSpecialCharacters,
|
|
15723
15732
|
webhooksSendInputImages = _a.webhooksSendInputImages,
|
|
15724
15733
|
webhooksSendProcessedImages = _a.webhooksSendProcessedImages,
|
|
15734
|
+
webhooksFireOnReview = _a.webhooksFireOnReview,
|
|
15725
15735
|
onSubmit = _a.onSubmit,
|
|
15726
15736
|
onBeforeSubmit = _a.onBeforeSubmit,
|
|
15727
15737
|
onComplete = _a.onComplete,
|
|
@@ -15834,6 +15844,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15834
15844
|
webhooksStripSpecialCharacters: webhooksStripSpecialCharacters,
|
|
15835
15845
|
webhooksSendInputImages: webhooksSendInputImages,
|
|
15836
15846
|
webhooksSendProcessedImages: webhooksSendProcessedImages,
|
|
15847
|
+
webhooksFireOnReview: webhooksFireOnReview,
|
|
15837
15848
|
onSubmit: onSubmit,
|
|
15838
15849
|
onBeforeSubmit: onBeforeSubmit,
|
|
15839
15850
|
onResponseReceived: onComplete,
|