idmission-web-sdk 0.0.11 → 0.0.13
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/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +2 -1
- package/dist/components/customer_flows/CustomerVerification.d.ts +2 -1
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +2 -1
- package/dist/sdk2.cjs.development.js +24 -10
- 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 +24 -10
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +24 -10
- 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
|
@@ -19,6 +19,7 @@ export type CustomerBiometricsEnrollmentProps = {
|
|
|
19
19
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
20
20
|
onEnrolled?: (submissionResponse: SubmissionResponse) => void;
|
|
21
21
|
onDenied?: (submissionResponse: SubmissionResponse) => void;
|
|
22
|
+
onExitAfterFailure?: () => void;
|
|
22
23
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
23
24
|
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
24
25
|
captureAdditionalDocuments?: AdditionalDocument[];
|
|
@@ -26,4 +27,4 @@ export type CustomerBiometricsEnrollmentProps = {
|
|
|
26
27
|
geolocationRequired?: boolean;
|
|
27
28
|
debugMode?: boolean;
|
|
28
29
|
};
|
|
29
|
-
export declare const CustomerBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, timeoutDurationMs, assets, verbiage, onBeforeSubmit, onComplete, onEnrolled, onDenied, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: CustomerBiometricsEnrollmentProps) => ReactElement;
|
|
30
|
+
export declare const CustomerBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, timeoutDurationMs, assets, verbiage, onBeforeSubmit, onComplete, onEnrolled, onDenied, onExitAfterFailure, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: CustomerBiometricsEnrollmentProps) => ReactElement;
|
|
@@ -27,6 +27,7 @@ export type CustomerEnrollmentProps = {
|
|
|
27
27
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
28
28
|
onEnrolled?: (submissionResponse: SubmissionResponse) => void;
|
|
29
29
|
onDenied?: (submissionResponse: SubmissionResponse) => void;
|
|
30
|
+
onExitAfterFailure?: () => void;
|
|
30
31
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
31
32
|
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
32
33
|
captureAdditionalDocuments?: AdditionalDocument[];
|
|
@@ -34,4 +35,4 @@ export type CustomerEnrollmentProps = {
|
|
|
34
35
|
geolocationRequired?: boolean;
|
|
35
36
|
debugMode?: boolean;
|
|
36
37
|
};
|
|
37
|
-
export declare const CustomerIdAndBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, idCaptureAssets, idCaptureVerbiage, faceLivenessTimeoutDurationMs, faceLivenessAssets, faceLivenessVerbiage, onBeforeSubmit, onComplete, onEnrolled, onDenied, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: CustomerEnrollmentProps) => ReactElement;
|
|
38
|
+
export declare const CustomerIdAndBiometricsEnrollment: ({ enrollmentId, lang, submissionToken, submissionEnvironment, submissionUrl, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, idCaptureAssets, idCaptureVerbiage, faceLivenessTimeoutDurationMs, faceLivenessAssets, faceLivenessVerbiage, onBeforeSubmit, onComplete, onEnrolled, onDenied, onExitAfterFailure, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: CustomerEnrollmentProps) => ReactElement;
|
|
@@ -15,8 +15,9 @@ export type CustomerVerificationProps = {
|
|
|
15
15
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
16
16
|
onCustomerMatched?: (submissionResponse: SubmissionResponse) => void;
|
|
17
17
|
onCustomerNotMatched?: (submissionResponse: SubmissionResponse) => void;
|
|
18
|
+
onExitAfterFailure?: () => void;
|
|
18
19
|
geolocationEnabled?: boolean;
|
|
19
20
|
geolocationRequired?: boolean;
|
|
20
21
|
debugMode?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare const CustomerVerification: ({ lang, enrollmentId, submissionToken, submissionEnvironment, submissionUrl, timeoutDurationMs, assets, verbiage, onBeforeSubmit, onComplete, onCustomerMatched, onCustomerNotMatched, geolocationEnabled, geolocationRequired, debugMode, }: CustomerVerificationProps) => ReactElement;
|
|
23
|
+
export declare const CustomerVerification: ({ lang, enrollmentId, submissionToken, submissionEnvironment, submissionUrl, timeoutDurationMs, assets, verbiage, onBeforeSubmit, onComplete, onCustomerMatched, onCustomerNotMatched, onExitAfterFailure, geolocationEnabled, geolocationRequired, debugMode, }: CustomerVerificationProps) => ReactElement;
|
|
@@ -12,10 +12,11 @@ export type FaceValidationProps = {
|
|
|
12
12
|
onComplete?: (submissionResponse: SubmissionResponse | null) => void;
|
|
13
13
|
onApproved?: (submissionResponse: SubmissionResponse | null) => void;
|
|
14
14
|
onDenied?: (submissionResponse: SubmissionResponse | null) => void;
|
|
15
|
+
onExitAfterFailure?: () => void;
|
|
15
16
|
assets?: FaceLivenessAssets;
|
|
16
17
|
verbiage?: FaceLivenessVerbiage;
|
|
17
18
|
geolocationEnabled?: boolean;
|
|
18
19
|
geolocationRequired?: boolean;
|
|
19
20
|
debugMode?: boolean;
|
|
20
21
|
};
|
|
21
|
-
export declare const FaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, timeoutDurationMs, onBeforeSubmit, onComplete, onApproved, onDenied, assets, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: FaceValidationProps) => ReactElement;
|
|
22
|
+
export declare const FaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, timeoutDurationMs, onBeforeSubmit, onComplete, onApproved, onDenied, onExitAfterFailure, assets, verbiage, geolocationEnabled, geolocationRequired, debugMode, }: FaceValidationProps) => ReactElement;
|
|
@@ -26,6 +26,7 @@ export type IdAndFaceValidationProps = {
|
|
|
26
26
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
27
27
|
onApproved?: (submissionResponse: SubmissionResponse) => void;
|
|
28
28
|
onDenied?: (submissionResponse: SubmissionResponse | null) => void;
|
|
29
|
+
onExitAfterFailure?: () => void;
|
|
29
30
|
captureSignature?: boolean | (() => Promise<boolean>);
|
|
30
31
|
captureSignatureVideo?: boolean | (() => Promise<boolean>);
|
|
31
32
|
captureAdditionalDocuments?: AdditionalDocument[];
|
|
@@ -33,4 +34,4 @@ export type IdAndFaceValidationProps = {
|
|
|
33
34
|
geolocationRequired?: boolean;
|
|
34
35
|
debugMode?: boolean;
|
|
35
36
|
};
|
|
36
|
-
export declare const IdAndFaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, idCaptureAssets, idCaptureVerbiage, faceLivenessTimeoutDurationMs, faceLivenessAssets, faceLivenessVerbiage, onBeforeSubmit, onComplete, onApproved, onDenied, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: IdAndFaceValidationProps) => ReactElement;
|
|
37
|
+
export declare const IdAndFaceValidation: ({ lang, submissionToken, submissionEnvironment, submissionUrl, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCardAutoCaptureScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, idCardFocusScoreThreshold, passportFocusScoreThreshold, idCaptureAssets, idCaptureVerbiage, faceLivenessTimeoutDurationMs, faceLivenessAssets, faceLivenessVerbiage, onBeforeSubmit, onComplete, onApproved, onDenied, onExitAfterFailure, captureSignature, captureSignatureVideo, captureAdditionalDocuments, geolocationEnabled, geolocationRequired, debugMode, }: IdAndFaceValidationProps) => ReactElement;
|
|
@@ -228,7 +228,7 @@ var templateObject_1$4;
|
|
|
228
228
|
var OverlayContainer = styled__default['default'](PageContainer)(templateObject_1$3 || (templateObject_1$3 = tslib.__makeTemplateObject(["\n background: white;\n z-index: 10000;\n"], ["\n background: white;\n z-index: 10000;\n"])));
|
|
229
229
|
var OverlayInner = styled__default['default'].div(templateObject_2 || (templateObject_2 = tslib.__makeTemplateObject(["\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n padding: 25px;\n max-height: var(--app-height);\n height: 100%;\n box-sizing: border-box;\n"], ["\n text-align: center;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n padding: 25px;\n max-height: var(--app-height);\n height: 100%;\n box-sizing: border-box;\n"])));
|
|
230
230
|
var OverlayImageWrapper = styled__default['default'].div(templateObject_3 || (templateObject_3 = tslib.__makeTemplateObject(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"], ["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n max-width: var(--app-width);\n max-height: var(--app-height);\n overflow: hidden;\n\n & > img {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
|
|
231
|
-
var OverlayImageMultiContainer = styled__default['default'].div(templateObject_4 || (templateObject_4 = tslib.__makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n
|
|
231
|
+
var OverlayImageMultiContainer = styled__default['default'].div(templateObject_4 || (templateObject_4 = tslib.__makeTemplateObject(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n }\n }\n"], ["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100vh - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n }\n }\n"])));
|
|
232
232
|
var templateObject_1$3, templateObject_2, templateObject_3, templateObject_4;
|
|
233
233
|
|
|
234
234
|
var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
|
|
@@ -2051,13 +2051,19 @@ var IdCaptureSuccess = function IdCaptureSuccess(_a) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
}, idCardFront && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", null, idCardFrontText), /*#__PURE__*/React__default['default'].createElement("img", {
|
|
2053
2053
|
src: idCardFront.imageData,
|
|
2054
|
-
alt: idCardFrontText
|
|
2054
|
+
alt: idCardFrontText,
|
|
2055
|
+
width: idCardFront.width,
|
|
2056
|
+
height: idCardFront.height
|
|
2055
2057
|
})), idCardBack && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", null, idCardBackText), /*#__PURE__*/React__default['default'].createElement("img", {
|
|
2056
2058
|
src: idCardBack.imageData,
|
|
2057
|
-
alt: idCardBackText
|
|
2059
|
+
alt: idCardBackText,
|
|
2060
|
+
width: idCardBack.width,
|
|
2061
|
+
height: idCardBack.height
|
|
2058
2062
|
})), passport && /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", null, passportText), /*#__PURE__*/React__default['default'].createElement("img", {
|
|
2059
2063
|
src: passport.imageData,
|
|
2060
|
-
alt: passportText
|
|
2064
|
+
alt: passportText,
|
|
2065
|
+
width: passport.width,
|
|
2066
|
+
height: passport.height
|
|
2061
2067
|
})))), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
2062
2068
|
style: {
|
|
2063
2069
|
fontSize: 18
|
|
@@ -11879,6 +11885,7 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
11879
11885
|
onComplete = _a.onComplete,
|
|
11880
11886
|
onApproved = _a.onApproved,
|
|
11881
11887
|
onDenied = _a.onDenied,
|
|
11888
|
+
onExitAfterFailure = _a.onExitAfterFailure,
|
|
11882
11889
|
assets = _a.assets,
|
|
11883
11890
|
verbiage = _a.verbiage,
|
|
11884
11891
|
_e = _a.geolocationEnabled,
|
|
@@ -11894,12 +11901,12 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
11894
11901
|
onComplete: onComplete,
|
|
11895
11902
|
onSuccess: onApproved,
|
|
11896
11903
|
onTimeout: onDenied,
|
|
11897
|
-
onExitAfterFailure:
|
|
11904
|
+
onExitAfterFailure: onExitAfterFailure,
|
|
11898
11905
|
assets: assets,
|
|
11899
11906
|
verbiage: verbiage,
|
|
11900
11907
|
debugMode: debugMode
|
|
11901
11908
|
};
|
|
11902
|
-
}, [assets, debugMode, onApproved, onComplete, onDenied, timeoutDurationMs, verbiage]);
|
|
11909
|
+
}, [assets, debugMode, onApproved, onComplete, onDenied, onExitAfterFailure, timeoutDurationMs, verbiage]);
|
|
11903
11910
|
return /*#__PURE__*/React__default['default'].createElement(SubmissionProvider, {
|
|
11904
11911
|
action: SubmissionAction.NONE,
|
|
11905
11912
|
environment: submissionEnvironment,
|
|
@@ -11948,6 +11955,7 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
11948
11955
|
onComplete = _a.onComplete,
|
|
11949
11956
|
onApproved = _a.onApproved,
|
|
11950
11957
|
onDenied = _a.onDenied,
|
|
11958
|
+
onExitAfterFailure = _a.onExitAfterFailure,
|
|
11951
11959
|
_m = _a.captureSignature,
|
|
11952
11960
|
captureSignature = _m === void 0 ? false : _m,
|
|
11953
11961
|
_o = _a.captureSignatureVideo,
|
|
@@ -11979,12 +11987,12 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
11979
11987
|
return {
|
|
11980
11988
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
11981
11989
|
onTimeout: onDenied,
|
|
11982
|
-
onExitAfterFailure:
|
|
11990
|
+
onExitAfterFailure: onExitAfterFailure,
|
|
11983
11991
|
assets: faceLivenessAssets,
|
|
11984
11992
|
verbiage: faceLivenessVerbiage,
|
|
11985
11993
|
debugMode: debugMode
|
|
11986
11994
|
};
|
|
11987
|
-
}, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onDenied]);
|
|
11995
|
+
}, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onDenied, onExitAfterFailure]);
|
|
11988
11996
|
var signatureCaptureProps = React.useMemo(function () {
|
|
11989
11997
|
return {
|
|
11990
11998
|
verbiage: {
|
|
@@ -12065,6 +12073,7 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
12065
12073
|
onComplete = _a.onComplete,
|
|
12066
12074
|
onEnrolled = _a.onEnrolled,
|
|
12067
12075
|
onDenied = _a.onDenied,
|
|
12076
|
+
onExitAfterFailure = _a.onExitAfterFailure,
|
|
12068
12077
|
_m = _a.captureSignature,
|
|
12069
12078
|
captureSignature = _m === void 0 ? false : _m,
|
|
12070
12079
|
_o = _a.captureSignatureVideo,
|
|
@@ -12094,12 +12103,13 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
12094
12103
|
}, [debugMode, documentDetectionNonMaxSuppressionEnabled, idAutoCaptureEnabled, idCaptureAssets, idCaptureVerbiage, idCardAutoCaptureScoreThreshold, idCardFocusScoreThreshold, mrzDetectionScoreThreshold, passportAutoCaptureScoreThreshold, passportFocusScoreThreshold]);
|
|
12095
12104
|
var faceLivenessProps = React.useMemo(function () {
|
|
12096
12105
|
return {
|
|
12106
|
+
onExitAfterFailure: onExitAfterFailure,
|
|
12097
12107
|
timeoutDurationMs: faceLivenessTimeoutDurationMs,
|
|
12098
12108
|
assets: faceLivenessAssets,
|
|
12099
12109
|
verbiage: faceLivenessVerbiage,
|
|
12100
12110
|
debugMode: debugMode
|
|
12101
12111
|
};
|
|
12102
|
-
}, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage]);
|
|
12112
|
+
}, [debugMode, faceLivenessAssets, faceLivenessTimeoutDurationMs, faceLivenessVerbiage, onExitAfterFailure]);
|
|
12103
12113
|
var signatureCaptureProps = React.useMemo(function () {
|
|
12104
12114
|
return {
|
|
12105
12115
|
verbiage: {
|
|
@@ -12524,6 +12534,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
12524
12534
|
onComplete = _a.onComplete,
|
|
12525
12535
|
onCustomerMatched = _a.onCustomerMatched,
|
|
12526
12536
|
onCustomerNotMatched = _a.onCustomerNotMatched,
|
|
12537
|
+
onExitAfterFailure = _a.onExitAfterFailure,
|
|
12527
12538
|
_e = _a.geolocationEnabled,
|
|
12528
12539
|
geolocationEnabled = _e === void 0 ? true : _e,
|
|
12529
12540
|
_f = _a.geolocationRequired,
|
|
@@ -12546,6 +12557,7 @@ var CustomerVerification = function CustomerVerification(_a) {
|
|
|
12546
12557
|
onComplete: onComplete,
|
|
12547
12558
|
onCustomerMatched: onCustomerMatched,
|
|
12548
12559
|
onCustomerNotMatched: onCustomerNotMatched,
|
|
12560
|
+
onExitAfterFailure: onExitAfterFailure,
|
|
12549
12561
|
captureGuidanceTimeoutDurationMs: timeoutDurationMs,
|
|
12550
12562
|
assets: assets,
|
|
12551
12563
|
verbiage: verbiage,
|
|
@@ -13010,6 +13022,7 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
13010
13022
|
onComplete = _a.onComplete,
|
|
13011
13023
|
onEnrolled = _a.onEnrolled,
|
|
13012
13024
|
onDenied = _a.onDenied,
|
|
13025
|
+
onExitAfterFailure = _a.onExitAfterFailure,
|
|
13013
13026
|
_e = _a.captureSignature,
|
|
13014
13027
|
captureSignature = _e === void 0 ? false : _e,
|
|
13015
13028
|
_f = _a.captureSignatureVideo,
|
|
@@ -13025,12 +13038,13 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
13025
13038
|
useLanguage(lang);
|
|
13026
13039
|
var faceLivenessProps = React.useMemo(function () {
|
|
13027
13040
|
return {
|
|
13041
|
+
onExitAfterFailure: onExitAfterFailure,
|
|
13028
13042
|
timeoutDurationMs: timeoutDurationMs,
|
|
13029
13043
|
assets: assets,
|
|
13030
13044
|
verbiage: verbiage,
|
|
13031
13045
|
debugMode: debugMode
|
|
13032
13046
|
};
|
|
13033
|
-
}, [assets, debugMode, timeoutDurationMs, verbiage]);
|
|
13047
|
+
}, [assets, debugMode, onExitAfterFailure, timeoutDurationMs, verbiage]);
|
|
13034
13048
|
var signatureCaptureProps = React.useMemo(function () {
|
|
13035
13049
|
return {
|
|
13036
13050
|
verbiage: {
|