idmission-web-sdk 2.2.63 → 2.2.64

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.63';
214
+ var webSdkVersion = '2.2.64';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -22425,7 +22425,7 @@
22425
22425
  customOverlayContent = _a.customOverlayContent,
22426
22426
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
22427
22427
  _u = _a.idDocumentType,
22428
- idDocumentType = _u === void 0 ? 'idCard' : _u,
22428
+ idDocumentType = _u === void 0 ? 'idCardOrPassport' : _u,
22429
22429
  _v = _a.idCaptureGuideType,
22430
22430
  idCaptureGuideType = _v === void 0 ? 'fit' : _v,
22431
22431
  _w = _a.idCaptureGuideImages,
@@ -22457,6 +22457,7 @@
22457
22457
  _9 = _a.debugMode,
22458
22458
  debugMode = _9 === void 0 ? false : _9;
22459
22459
  var _10 = React.useContext(SubmissionContext),
22460
+ passportImage = _10.passportImage,
22460
22461
  submissionStatus = _10.submissionStatus,
22461
22462
  idCaptureVideoUrl = _10.idCaptureVideoUrl,
22462
22463
  idCaptureVideoAudioUrl = _10.idCaptureVideoAudioUrl,
@@ -22532,6 +22533,7 @@
22532
22533
  });
22533
22534
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
22534
22535
  }, [onExitCapture]);
22536
+ var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
22535
22537
  var faceLivenessGuides = React.useCallback(function (_a) {
22536
22538
  var _b, _c, _d, _e;
22537
22539
  var status = _a.status;
@@ -22540,12 +22542,12 @@
22540
22542
  verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
22541
22543
  requestedAction: "VERIFY_LIVENESS",
22542
22544
  idCaptureGuideImages: idCaptureGuideImages,
22543
- idDocumentType: idDocumentType,
22545
+ idDocumentType: capturedIdDocumentType,
22544
22546
  faceGuideStatus: status,
22545
22547
  faceGuideBorderColor: status === 'success' ? (_d = colors.idVideoCapture) === null || _d === void 0 ? void 0 : _d.guidesSatisfiedColor : (_e = colors.idVideoCapture) === null || _e === void 0 ? void 0 : _e.guidesUnsatisfiedColor,
22546
22548
  idCardGuideStatus: "disabled"
22547
22549
  });
22548
- }, [(_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides, (_c = colors.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guidesSatisfiedColor, (_d = colors.idVideoCapture) === null || _d === void 0 ? void 0 : _d.guidesUnsatisfiedColor, idCaptureGuideImages, (_e = verbiage.idVideoCapture) === null || _e === void 0 ? void 0 : _e.guides]);
22550
+ }, [capturedIdDocumentType, (_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides, (_c = colors.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guidesSatisfiedColor, (_d = colors.idVideoCapture) === null || _d === void 0 ? void 0 : _d.guidesUnsatisfiedColor, idCaptureGuideImages, (_e = verbiage.idVideoCapture) === null || _e === void 0 ? void 0 : _e.guides]);
22549
22551
  if (submissionStatus === SubmissionStatus.SUBMITTING) {
22550
22552
  return /*#__PURE__*/React.createElement(PageContainer, {
22551
22553
  className: "flex"
@@ -22635,7 +22637,7 @@
22635
22637
  onExitCapture: handleExitCapture,
22636
22638
  idCaptureModelsEnabled: idCaptureModelsEnabled,
22637
22639
  idCaptureGuideImages: idCaptureGuideImages,
22638
- idDocumentType: idDocumentType,
22640
+ idDocumentType: capturedIdDocumentType,
22639
22641
  videoIdCaptureThresholds: videoIdCaptureThresholds,
22640
22642
  skipShowIdCardBack: skipShowIdCardBack,
22641
22643
  disableFaceDetectionWhileAudioCapture: disableFaceDetectionWhileAudioCapture,
@@ -25186,7 +25188,7 @@
25186
25188
  idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
25187
25189
  idCardForFaceMatch = _a.idCardForFaceMatch,
25188
25190
  _q = _a.idDocumentType,
25189
- idDocumentType = _q === void 0 ? 'idCard' : _q,
25191
+ idDocumentType = _q === void 0 ? 'idCardOrPassport' : _q,
25190
25192
  _r = _a.faceLivenessLoadingOverlayMode,
25191
25193
  faceLivenessLoadingOverlayMode = _r === void 0 ? 'default' : _r,
25192
25194
  _s = _a.disableFaceDetectionWhileAudioCapture,