idmission-web-sdk 1.0.229 → 1.0.231
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
|
@@ -48,7 +48,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
48
48
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
49
49
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
50
50
|
|
|
51
|
-
var webSdkVersion = '1.0.
|
|
51
|
+
var webSdkVersion = '1.0.231';
|
|
52
52
|
|
|
53
53
|
function getPlatform() {
|
|
54
54
|
if (typeof window === 'undefined') return;
|
|
@@ -13780,7 +13780,8 @@ var IdVideoCaptureFlipIdPrompt = function IdVideoCaptureFlipIdPrompt(_a) {
|
|
|
13780
13780
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13781
13781
|
style: {
|
|
13782
13782
|
position: 'relative',
|
|
13783
|
-
border: "".concat(borderWidth, "px solid ").concat(borderColor)
|
|
13783
|
+
border: "".concat(borderWidth, "px solid ").concat(borderColor),
|
|
13784
|
+
width: (imageWidth !== null && imageWidth !== void 0 ? imageWidth : 0) + borderWidth * 2
|
|
13784
13785
|
}
|
|
13785
13786
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
13786
13787
|
src: assets.frontImageUrl,
|
|
@@ -14060,13 +14061,13 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
14060
14061
|
_x = _a.idCardFrontFocusThreshold,
|
|
14061
14062
|
idCardFrontFocusThreshold = _x === void 0 ? 0 : _x,
|
|
14062
14063
|
_y = _a.goodIdCardFrontFramesThreshold,
|
|
14063
|
-
goodIdCardFrontFramesThreshold = _y === void 0 ?
|
|
14064
|
+
goodIdCardFrontFramesThreshold = _y === void 0 ? 1 : _y,
|
|
14064
14065
|
_z = _a.idCardBackDetectionThreshold,
|
|
14065
14066
|
idCardBackDetectionThreshold = _z === void 0 ? 0.6 : _z,
|
|
14066
14067
|
_0 = _a.idCardBackFocusThreshold,
|
|
14067
14068
|
idCardBackFocusThreshold = _0 === void 0 ? 0 : _0,
|
|
14068
14069
|
_1 = _a.goodIdCardBackFramesThreshold,
|
|
14069
|
-
goodIdCardBackFramesThreshold = _1 === void 0 ?
|
|
14070
|
+
goodIdCardBackFramesThreshold = _1 === void 0 ? 1 : _1,
|
|
14070
14071
|
_2 = _a.skipShowIdCardBack,
|
|
14071
14072
|
skipShowIdCardBack = _2 === void 0 ? false : _2,
|
|
14072
14073
|
readTextPrompt = _a.readTextPrompt,
|
|
@@ -14204,7 +14205,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
14204
14205
|
var frameHeight = (_e = (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) !== null && _e !== void 0 ? _e : 0;
|
|
14205
14206
|
var faceBox = (_f = faces === null || faces === void 0 ? void 0 : faces[0]) === null || _f === void 0 ? void 0 : _f.box;
|
|
14206
14207
|
var faceCentered = faceBox && faceBox.xMin > frameWidth * edgeBoundary && faceBox.yMin > frameHeight * edgeBoundary && faceBox.xMax < frameWidth * (1 - edgeBoundary) && faceBox.yMax < frameHeight * (1 - edgeBoundary);
|
|
14207
|
-
var satisfied =
|
|
14208
|
+
var satisfied = goodFramesThresholdMet && faceCentered && delaySatisfied;
|
|
14208
14209
|
React.useEffect(function () {
|
|
14209
14210
|
(function () {
|
|
14210
14211
|
return tslib.__awaiter(void 0, void 0, void 0, function () {
|
|
@@ -14237,7 +14238,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
14237
14238
|
setRequestedAction('FLIP_ID');
|
|
14238
14239
|
setTimeout(function () {
|
|
14239
14240
|
setRequestedAction('SHOW_ID_BACK');
|
|
14240
|
-
},
|
|
14241
|
+
}, 350000);
|
|
14241
14242
|
return [3 /*break*/, 5];
|
|
14242
14243
|
case 4:
|
|
14243
14244
|
if (requestedAction == 'SHOW_ID_BACK') {
|
|
@@ -16677,13 +16678,13 @@ var VideoIdValidation = function VideoIdValidation(_a) {
|
|
|
16677
16678
|
_d = _a.idCardFrontFocusThreshold,
|
|
16678
16679
|
idCardFrontFocusThreshold = _d === void 0 ? 0 : _d,
|
|
16679
16680
|
_e = _a.goodIdCardFrontFramesThreshold,
|
|
16680
|
-
goodIdCardFrontFramesThreshold = _e === void 0 ?
|
|
16681
|
+
goodIdCardFrontFramesThreshold = _e === void 0 ? 1 : _e,
|
|
16681
16682
|
_f = _a.idCardBackDetectionThreshold,
|
|
16682
16683
|
idCardBackDetectionThreshold = _f === void 0 ? 0.6 : _f,
|
|
16683
16684
|
_g = _a.idCardBackFocusThreshold,
|
|
16684
16685
|
idCardBackFocusThreshold = _g === void 0 ? 0 : _g,
|
|
16685
16686
|
_h = _a.goodIdCardBackFramesThreshold,
|
|
16686
|
-
goodIdCardBackFramesThreshold = _h === void 0 ?
|
|
16687
|
+
goodIdCardBackFramesThreshold = _h === void 0 ? 1 : _h,
|
|
16687
16688
|
readTextPrompt = _a.readTextPrompt,
|
|
16688
16689
|
_j = _a.readTextTimeoutDurationMs,
|
|
16689
16690
|
readTextTimeoutDurationMs = _j === void 0 ? 15000 : _j,
|