idmission-web-sdk 1.0.228 → 1.0.230

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.
@@ -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.228';
51
+ var webSdkVersion = '1.0.230';
52
52
 
53
53
  function getPlatform() {
54
54
  if (typeof window === 'undefined') return;
@@ -14060,13 +14060,13 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14060
14060
  _x = _a.idCardFrontFocusThreshold,
14061
14061
  idCardFrontFocusThreshold = _x === void 0 ? 0 : _x,
14062
14062
  _y = _a.goodIdCardFrontFramesThreshold,
14063
- goodIdCardFrontFramesThreshold = _y === void 0 ? 3 : _y,
14063
+ goodIdCardFrontFramesThreshold = _y === void 0 ? 1 : _y,
14064
14064
  _z = _a.idCardBackDetectionThreshold,
14065
14065
  idCardBackDetectionThreshold = _z === void 0 ? 0.6 : _z,
14066
14066
  _0 = _a.idCardBackFocusThreshold,
14067
14067
  idCardBackFocusThreshold = _0 === void 0 ? 0 : _0,
14068
14068
  _1 = _a.goodIdCardBackFramesThreshold,
14069
- goodIdCardBackFramesThreshold = _1 === void 0 ? 3 : _1,
14069
+ goodIdCardBackFramesThreshold = _1 === void 0 ? 1 : _1,
14070
14070
  _2 = _a.skipShowIdCardBack,
14071
14071
  skipShowIdCardBack = _2 === void 0 ? false : _2,
14072
14072
  readTextPrompt = _a.readTextPrompt,
@@ -14184,7 +14184,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14184
14184
  React.useEffect(function () {
14185
14185
  if (goodFramesCount === 1) setFirstGoodFrameTime(new Date().getTime());
14186
14186
  }, [goodFramesCount]);
14187
- var delaySatisfied = idFrontCaptureStartedAt !== null && new Date().getTime() > idFrontCaptureStartedAt + idCardFrontDelay;
14187
+ var delaySatisfied = requestedAction !== 'SHOW_ID_FRONT' || idFrontCaptureStartedAt !== null && new Date().getTime() > idFrontCaptureStartedAt + idCardFrontDelay;
14188
14188
  var captureCanvas = React.useRef(null);
14189
14189
  var captureFrame = React.useCallback(function () {
14190
14190
  if (!captureCanvas.current || !videoRef.current) return;
@@ -14204,7 +14204,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
14204
14204
  var frameHeight = (_e = (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) !== null && _e !== void 0 ? _e : 0;
14205
14205
  var faceBox = (_f = faces === null || faces === void 0 ? void 0 : faces[0]) === null || _f === void 0 ? void 0 : _f.box;
14206
14206
  var faceCentered = faceBox && faceBox.xMin > frameWidth * edgeBoundary && faceBox.yMin > frameHeight * edgeBoundary && faceBox.xMax < frameWidth * (1 - edgeBoundary) && faceBox.yMax < frameHeight * (1 - edgeBoundary);
14207
- var satisfied = goodFramesCount > 0 && faceCentered && delaySatisfied;
14207
+ var satisfied = goodFramesThresholdMet && faceCentered && delaySatisfied;
14208
14208
  React.useEffect(function () {
14209
14209
  (function () {
14210
14210
  return tslib.__awaiter(void 0, void 0, void 0, function () {
@@ -16677,13 +16677,13 @@ var VideoIdValidation = function VideoIdValidation(_a) {
16677
16677
  _d = _a.idCardFrontFocusThreshold,
16678
16678
  idCardFrontFocusThreshold = _d === void 0 ? 0 : _d,
16679
16679
  _e = _a.goodIdCardFrontFramesThreshold,
16680
- goodIdCardFrontFramesThreshold = _e === void 0 ? 3 : _e,
16680
+ goodIdCardFrontFramesThreshold = _e === void 0 ? 1 : _e,
16681
16681
  _f = _a.idCardBackDetectionThreshold,
16682
16682
  idCardBackDetectionThreshold = _f === void 0 ? 0.6 : _f,
16683
16683
  _g = _a.idCardBackFocusThreshold,
16684
16684
  idCardBackFocusThreshold = _g === void 0 ? 0 : _g,
16685
16685
  _h = _a.goodIdCardBackFramesThreshold,
16686
- goodIdCardBackFramesThreshold = _h === void 0 ? 3 : _h,
16686
+ goodIdCardBackFramesThreshold = _h === void 0 ? 1 : _h,
16687
16687
  readTextPrompt = _a.readTextPrompt,
16688
16688
  _j = _a.readTextTimeoutDurationMs,
16689
16689
  readTextTimeoutDurationMs = _j === void 0 ? 15000 : _j,