idmission-web-sdk 1.0.133 → 1.0.135
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 +16 -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 +16 -8
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +16 -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
|
@@ -47,7 +47,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
47
47
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
48
48
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
49
49
|
|
|
50
|
-
var webSdkVersion = '1.0.
|
|
50
|
+
var webSdkVersion = '1.0.135';
|
|
51
51
|
|
|
52
52
|
function getPlatform() {
|
|
53
53
|
if (typeof window === 'undefined') return;
|
|
@@ -13579,7 +13579,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
13579
13579
|
_k = _a.idCardFrontFocusThreshold,
|
|
13580
13580
|
idCardFrontFocusThreshold = _k === void 0 ? 0.15 : _k,
|
|
13581
13581
|
_l = _a.goodIdCardFrontFramesThreshold,
|
|
13582
|
-
goodIdCardFrontFramesThreshold = _l === void 0 ?
|
|
13582
|
+
goodIdCardFrontFramesThreshold = _l === void 0 ? 2 : _l,
|
|
13583
13583
|
_m = _a.showIdCardBackDurationMs,
|
|
13584
13584
|
showIdCardBackDurationMs = _m === void 0 ? 5000 : _m,
|
|
13585
13585
|
_o = _a.skipShowIdCardBack,
|
|
@@ -13668,12 +13668,20 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
13668
13668
|
});
|
|
13669
13669
|
}, [idCardFrontDetectionThreshold, idCardFrontFocusThreshold, setThresholds]);
|
|
13670
13670
|
var _4 = React.useState(0),
|
|
13671
|
-
|
|
13672
|
-
|
|
13671
|
+
currentDetectionScore = _4[0],
|
|
13672
|
+
setCurrentDetectionScore = _4[1];
|
|
13673
|
+
var _5 = React.useState(0),
|
|
13674
|
+
currentFocusScore = _5[0],
|
|
13675
|
+
setCurrentFocusScore = _5[1];
|
|
13676
|
+
var _6 = React.useState(0),
|
|
13677
|
+
goodIdCardFrontFramesCount = _6[0],
|
|
13678
|
+
setGoodFramesCount = _6[1];
|
|
13673
13679
|
var goodFramesThresholdMet = goodIdCardFrontFramesCount >= goodIdCardFrontFramesThreshold;
|
|
13674
13680
|
React.useEffect(function () {
|
|
13675
13681
|
onIdPredictionMade(function (prediction) {
|
|
13676
13682
|
setDetectedObjects(prediction.detectedObjects);
|
|
13683
|
+
setCurrentDetectionScore(prediction.detectionScore);
|
|
13684
|
+
setCurrentFocusScore(prediction.focusScore);
|
|
13677
13685
|
if (prediction.detectionThresholdMet && prediction.focusThresholdMet) {
|
|
13678
13686
|
setGoodFramesCount(function (n) {
|
|
13679
13687
|
return n + 1;
|
|
@@ -13748,9 +13756,9 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
13748
13756
|
stopRecording();
|
|
13749
13757
|
}, [stopRecording]);
|
|
13750
13758
|
var timeoutStartedAt = useTimeout(readTextTimeoutDurationMs, onReadTextTimeout, requestedAction !== 'READ_TEXT', false, requestedAction === 'READ_TEXT').timeoutStartedAt;
|
|
13751
|
-
var
|
|
13752
|
-
numFramesWithoutFaces =
|
|
13753
|
-
setNumFramesWithoutFaces =
|
|
13759
|
+
var _7 = React.useState(0),
|
|
13760
|
+
numFramesWithoutFaces = _7[0],
|
|
13761
|
+
setNumFramesWithoutFaces = _7[1];
|
|
13754
13762
|
React.useEffect(function () {
|
|
13755
13763
|
onSelfiePredictionMade(function (faces) {
|
|
13756
13764
|
setFaces(faces);
|
|
@@ -13814,7 +13822,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
|
|
|
13814
13822
|
scaling: debugScalingDetails,
|
|
13815
13823
|
flipX: !((_a = cameraRef.current) === null || _a === void 0 ? void 0 : _a.isRearFacing)
|
|
13816
13824
|
});
|
|
13817
|
-
})))))), debugMode && ( /*#__PURE__*/React__default['default'].createElement(DebugStatsPane, null, cameraRef.current ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u2705 Camera: ", cameraRef.current.label, " (", cameraRef.current.width, "x", cameraRef.current.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__default['default'].createElement("br", null), isRecording ? '✅ Recording' : '❌ Not recording', /*#__PURE__*/React__default['default'].createElement("br", null), goodFramesThresholdMet ? '✅' : '❌', " Good Frame Count:", ' ', goodIdCardFrontFramesCount, "/", goodIdCardFrontFramesThreshold, /*#__PURE__*/React__default['default'].createElement("br", null), "Best Frame Detection Score: ", bestFrameDetectionScore, "Best Frame Focus Score: ", bestFrameFocusScore)));
|
|
13825
|
+
})))))), debugMode && ( /*#__PURE__*/React__default['default'].createElement(DebugStatsPane, null, cameraRef.current ? ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, "\u2705 Camera: ", cameraRef.current.label, " (", cameraRef.current.width, "x", cameraRef.current.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__default['default'].createElement("br", null), isRecording ? '✅ Recording' : '❌ Not recording', /*#__PURE__*/React__default['default'].createElement("br", null), goodFramesThresholdMet ? '✅' : '❌', " Good Frame Count:", ' ', goodIdCardFrontFramesCount, "/", goodIdCardFrontFramesThreshold, /*#__PURE__*/React__default['default'].createElement("br", null), "Detection Score: ", currentDetectionScore, /*#__PURE__*/React__default['default'].createElement("br", null), "Focus Score: ", currentFocusScore, /*#__PURE__*/React__default['default'].createElement("br", null), "Best Frame Detection Score: ", bestFrameDetectionScore, /*#__PURE__*/React__default['default'].createElement("br", null), "Best Frame Focus Score: ", bestFrameFocusScore)));
|
|
13818
13826
|
};
|
|
13819
13827
|
|
|
13820
13828
|
var IdVideoCaptureSuccess = function IdVideoCaptureSuccess(_a) {
|