idmission-web-sdk 1.0.345 → 1.0.346
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/sdk2.cjs.development.js +9 -8
- 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 +9 -8
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +9 -8
- 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
|
@@ -50,7 +50,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
50
50
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
51
51
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
52
52
|
|
|
53
|
-
var webSdkVersion = '1.0.
|
|
53
|
+
var webSdkVersion = '1.0.346';
|
|
54
54
|
|
|
55
55
|
function getPlatform() {
|
|
56
56
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -14190,6 +14190,7 @@ var SelfieCaptureFallback = function SelfieCaptureFallback(_a) {
|
|
|
14190
14190
|
var _a;
|
|
14191
14191
|
var file = (_a = e.target.files) === null || _a === void 0 ? void 0 : _a[0];
|
|
14192
14192
|
if (!file) return;
|
|
14193
|
+
setImage('LOADING'); // this is to reduce some of the flicker - it isn't perfect since .readAsDataURL is slow
|
|
14193
14194
|
var reader = new FileReader();
|
|
14194
14195
|
reader.addEventListener('load', function (e) {
|
|
14195
14196
|
var _a;
|
|
@@ -14214,7 +14215,7 @@ var SelfieCaptureFallback = function SelfieCaptureFallback(_a) {
|
|
|
14214
14215
|
}
|
|
14215
14216
|
});
|
|
14216
14217
|
}
|
|
14217
|
-
// todo: we might be able to use the media stream instead if we clone it - as it stands today, we hae to use the camera to support iOS 16 devices
|
|
14218
|
+
// todo: JN - we might be able to use the media stream instead if we clone it - as it stands today, we hae to use the camera to support iOS 16 devices
|
|
14218
14219
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("input", {
|
|
14219
14220
|
ref: fileInput,
|
|
14220
14221
|
type: "file",
|
|
@@ -14242,7 +14243,7 @@ var SelfieCaptureFallback = function SelfieCaptureFallback(_a) {
|
|
|
14242
14243
|
className: classNames.heading
|
|
14243
14244
|
}, verbiage.headingText), /*#__PURE__*/React__default['default'].createElement(Description$1, {
|
|
14244
14245
|
className: classNames.description
|
|
14245
|
-
}, verbiage.descriptionText))), image && ( /*#__PURE__*/React__default['default'].createElement(ImageContainer$5, {
|
|
14246
|
+
}, verbiage.descriptionText))), image && image !== 'LOADING' && ( /*#__PURE__*/React__default['default'].createElement(ImageContainer$5, {
|
|
14246
14247
|
className: classNames.imageContainer
|
|
14247
14248
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
14248
14249
|
src: image,
|
|
@@ -14531,7 +14532,7 @@ var initialState$2 = {
|
|
|
14531
14532
|
phoneDetected: false,
|
|
14532
14533
|
timesLivenessCheckFailed: 0
|
|
14533
14534
|
};
|
|
14534
|
-
/** todo: this feels like it should be hoisted up to the wizard because these states of failed and error dovetail into those in the wizard.
|
|
14535
|
+
/** todo: JN - this feels like it should be hoisted up to the wizard because these states of failed and error dovetail into those in the wizard.
|
|
14535
14536
|
* There may also be some crossing of wires in how error/failed are used.
|
|
14536
14537
|
*/
|
|
14537
14538
|
var reducer$2 = function reducer(state, action) {
|
|
@@ -14711,11 +14712,11 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
14711
14712
|
case 2:
|
|
14712
14713
|
imageData = _b.sent();
|
|
14713
14714
|
return [4 /*yield*/, checkLiveness(imageData)
|
|
14714
|
-
// todo: this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
|
|
14715
|
+
// todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
|
|
14715
14716
|
];
|
|
14716
14717
|
case 3:
|
|
14717
14718
|
response = _b.sent();
|
|
14718
|
-
// todo: this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
|
|
14719
|
+
// todo: JN - this feels dirty and is the reason for the todo around line 83 - but is necessary to handle fallback liveness validation
|
|
14719
14720
|
if (((_a = response === null || response === void 0 ? void 0 : response.resultData) === null || _a === void 0 ? void 0 : _a.verificationResult) !== 'Live Face Detected') {
|
|
14720
14721
|
onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout();
|
|
14721
14722
|
}
|
|
@@ -14741,7 +14742,7 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
14741
14742
|
}
|
|
14742
14743
|
});
|
|
14743
14744
|
});
|
|
14744
|
-
}, [checkLiveness]);
|
|
14745
|
+
}, [checkLiveness, onTimeout]);
|
|
14745
14746
|
React.useEffect(function () {
|
|
14746
14747
|
if (isPassed && state.imageUrl) onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(state.imageUrl);
|
|
14747
14748
|
}, [onSuccess, state.imageUrl, isPassed]);
|
|
@@ -14977,7 +14978,7 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
14977
14978
|
});
|
|
14978
14979
|
});
|
|
14979
14980
|
}, [onSuccess, setSelfieImage, livenessCheckRequest, submissionResponse]);
|
|
14980
|
-
// todo: how this is being used, it would make sense to rename the prop as well, but that would be a breaking change - discuss
|
|
14981
|
+
// todo: JN - how this is being used, it would make sense to rename the prop as well, but that would be a breaking change - discuss
|
|
14981
14982
|
var onFailureOrTimeout = React.useCallback(function () {
|
|
14982
14983
|
setCaptureState('FAILED');
|
|
14983
14984
|
onTimeout === null || onTimeout === void 0 ? void 0 : onTimeout(submissionResponse, livenessCheckRequest);
|