idmission-web-sdk 2.2.54 → 2.2.56
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/CompositeWizard.d.ts +2 -1
- package/dist/components/CompositeWizard.d.ts.map +1 -1
- package/dist/components/common/LoaderButton.d.ts +2 -0
- package/dist/components/common/LoaderButton.d.ts.map +1 -1
- package/dist/components/common/overlay.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts.map +1 -1
- package/dist/components/customer_flows/FaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/IdValidation.d.ts.map +1 -1
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/customer_flows/VideoIdValidation.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +39 -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 +39 -19
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +39 -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
package/dist/sdk2.esm.js
CHANGED
|
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
203
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
204
|
};
|
|
205
205
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
206
|
+
var webSdkVersion = '2.2.56';
|
|
207
207
|
|
|
208
208
|
function getPlatform() {
|
|
209
209
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -485,7 +485,16 @@ var OverlayImageRow = styled.div(templateObject_4$l || (templateObject_4$l = __m
|
|
|
485
485
|
var GrayOverlayContainer = styled(OverlayContainer)(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n background: #f7f6fb;\n"], ["\n background: #f7f6fb;\n"])));
|
|
486
486
|
var ButtonsColumn = styled.div(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: 15px 0;\n justify-content: center;\n margin-top: 24px;\n"])));
|
|
487
487
|
var WideButton = styled(LoaderButton)(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n width: 100%;\n border-radius: 30px;\n"], ["\n width: 100%;\n border-radius: 30px;\n"])));
|
|
488
|
-
var WideBorderButton = styled(WideButton)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n color:
|
|
488
|
+
var WideBorderButton = styled(WideButton)(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n background: ", ";\n border: 1px solid\n ", ";\n box-sizing: border-box;\n"])), function (props) {
|
|
489
|
+
var _a, _b;
|
|
490
|
+
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.textColor) !== null && _b !== void 0 ? _b : 'black';
|
|
491
|
+
}, function (props) {
|
|
492
|
+
var _a, _b;
|
|
493
|
+
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) !== null && _b !== void 0 ? _b : 'white';
|
|
494
|
+
}, function (props) {
|
|
495
|
+
var _a, _b;
|
|
496
|
+
return (_b = (_a = props.colors) === null || _a === void 0 ? void 0 : _a.borderColor) !== null && _b !== void 0 ? _b : 'var(--idm-color-secondary-500)';
|
|
497
|
+
});
|
|
489
498
|
var templateObject_1$J, templateObject_2$A, templateObject_3$r, templateObject_4$l, templateObject_5$c, templateObject_6$9, templateObject_7$6, templateObject_8$3;
|
|
490
499
|
|
|
491
500
|
var GeolocationAccessDeniedOverlay = function GeolocationAccessDeniedOverlay(_a) {
|
|
@@ -12813,15 +12822,17 @@ function CompositeWizard(_a) {
|
|
|
12813
12822
|
_o = _a.captureSignatureVideo,
|
|
12814
12823
|
captureSignatureVideo = _o === void 0 ? false : _o,
|
|
12815
12824
|
onCameraAccessDenied = _a.onCameraAccessDenied,
|
|
12816
|
-
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
+
onMicrophoneAccessDenied = _a.onMicrophoneAccessDenied,
|
|
12826
|
+
_p = _a.debugMode,
|
|
12827
|
+
debugMode = _p === void 0 ? false : _p;
|
|
12828
|
+
var _q = useContext(SubmissionContext),
|
|
12829
|
+
submit = _q.submit,
|
|
12830
|
+
submissionStatus = _q.submissionStatus,
|
|
12831
|
+
setSignatureData = _q.setSignatureData,
|
|
12832
|
+
setAdditionalDocuments = _q.setAdditionalDocuments;
|
|
12833
|
+
var _r = useState(0),
|
|
12834
|
+
checkIndex = _r[0],
|
|
12835
|
+
setCheckIndex = _r[1];
|
|
12825
12836
|
var checks = useMemo(function () {
|
|
12826
12837
|
var _a, _b;
|
|
12827
12838
|
var checks = __spreadArray([], userChecks, true);
|
|
@@ -12918,9 +12929,11 @@ function CompositeWizard(_a) {
|
|
|
12918
12929
|
className: "flex"
|
|
12919
12930
|
}, /*#__PURE__*/React__default.createElement(Spinner, null));
|
|
12920
12931
|
case SubmissionStatus.SUBMITTED:
|
|
12921
|
-
return /*#__PURE__*/React__default.createElement(SubmissionSuccess, null);
|
|
12932
|
+
if (debugMode) return /*#__PURE__*/React__default.createElement(SubmissionSuccess, null);
|
|
12933
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
12922
12934
|
case SubmissionStatus.FAILED:
|
|
12923
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, "Submission failed!");
|
|
12935
|
+
if (debugMode) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, "Submission failed!");
|
|
12936
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
12924
12937
|
default:
|
|
12925
12938
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
12926
12939
|
}
|
|
@@ -13430,7 +13443,8 @@ var IdValidation = function IdValidation(_a) {
|
|
|
13430
13443
|
videoSignatureCaptureProps: videoSignatureCaptureProps,
|
|
13431
13444
|
captureSignature: captureSignature,
|
|
13432
13445
|
captureSignatureVideo: captureSignatureVideo,
|
|
13433
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
13446
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
13447
|
+
debugMode: debugMode
|
|
13434
13448
|
}))));
|
|
13435
13449
|
};
|
|
13436
13450
|
|
|
@@ -13536,7 +13550,8 @@ var FaceValidation = function FaceValidation(_a) {
|
|
|
13536
13550
|
return ['FaceLiveness'];
|
|
13537
13551
|
}, []),
|
|
13538
13552
|
faceLivenessProps: faceLivenessProps,
|
|
13539
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
13553
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
13554
|
+
debugMode: debugMode
|
|
13540
13555
|
}))));
|
|
13541
13556
|
};
|
|
13542
13557
|
|
|
@@ -13769,7 +13784,8 @@ var IdAndFaceValidation = function IdAndFaceValidation(_a) {
|
|
|
13769
13784
|
additionalDocumentCaptureProps: additionalDocumentCaptureProps,
|
|
13770
13785
|
captureSignature: captureSignature,
|
|
13771
13786
|
captureSignatureVideo: captureSignatureVideo,
|
|
13772
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
13787
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
13788
|
+
debugMode: debugMode
|
|
13773
13789
|
}))));
|
|
13774
13790
|
};
|
|
13775
13791
|
|
|
@@ -14024,7 +14040,8 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
14024
14040
|
videoSignatureCaptureProps: videoSignatureCaptureProps,
|
|
14025
14041
|
captureSignature: captureSignature,
|
|
14026
14042
|
captureSignatureVideo: captureSignatureVideo,
|
|
14027
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
14043
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
14044
|
+
debugMode: debugMode
|
|
14028
14045
|
}))));
|
|
14029
14046
|
};
|
|
14030
14047
|
|
|
@@ -15208,6 +15225,7 @@ var SignatureKYC = function SignatureKYC(_a) {
|
|
|
15208
15225
|
geolocationEnabled: geolocationEnabled,
|
|
15209
15226
|
geolocationRequired: geolocationRequired
|
|
15210
15227
|
}, /*#__PURE__*/React__default.createElement(CompositeWizard, {
|
|
15228
|
+
debugMode: debugMode,
|
|
15211
15229
|
checks: useMemo(function () {
|
|
15212
15230
|
return ['VideoSignatureCapture'];
|
|
15213
15231
|
}, []),
|
|
@@ -15449,7 +15467,8 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
15449
15467
|
captureSignature: captureSignature,
|
|
15450
15468
|
captureSignatureVideo: captureSignatureVideo,
|
|
15451
15469
|
onCameraAccessDenied: onCameraAccessDenied,
|
|
15452
|
-
onMicrophoneAccessDenied: onMicrophoneAccessDenied
|
|
15470
|
+
onMicrophoneAccessDenied: onMicrophoneAccessDenied,
|
|
15471
|
+
debugMode: debugMode
|
|
15453
15472
|
}))));
|
|
15454
15473
|
};
|
|
15455
15474
|
|
|
@@ -15606,7 +15625,8 @@ var CustomerBiometricsEnrollment = function CustomerBiometricsEnrollment(_a) {
|
|
|
15606
15625
|
videoSignatureCaptureProps: videoSignatureCaptureProps,
|
|
15607
15626
|
captureSignature: captureSignature,
|
|
15608
15627
|
captureSignatureVideo: captureSignatureVideo,
|
|
15609
|
-
onCameraAccessDenied: onCameraAccessDenied
|
|
15628
|
+
onCameraAccessDenied: onCameraAccessDenied,
|
|
15629
|
+
debugMode: debugMode
|
|
15610
15630
|
}))));
|
|
15611
15631
|
};
|
|
15612
15632
|
|