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.
package/dist/sdk2.esm.js CHANGED
@@ -203,7 +203,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
203
203
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
204
204
  };
205
205
 
206
- var webSdkVersion = '2.2.63';
206
+ var webSdkVersion = '2.2.64';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -12583,7 +12583,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12583
12583
  customOverlayContent = _a.customOverlayContent,
12584
12584
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
12585
12585
  _u = _a.idDocumentType,
12586
- idDocumentType = _u === void 0 ? 'idCard' : _u,
12586
+ idDocumentType = _u === void 0 ? 'idCardOrPassport' : _u,
12587
12587
  _v = _a.idCaptureGuideType,
12588
12588
  idCaptureGuideType = _v === void 0 ? 'fit' : _v,
12589
12589
  _w = _a.idCaptureGuideImages,
@@ -12615,6 +12615,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12615
12615
  _9 = _a.debugMode,
12616
12616
  debugMode = _9 === void 0 ? false : _9;
12617
12617
  var _10 = useContext(SubmissionContext),
12618
+ passportImage = _10.passportImage,
12618
12619
  submissionStatus = _10.submissionStatus,
12619
12620
  idCaptureVideoUrl = _10.idCaptureVideoUrl,
12620
12621
  idCaptureVideoAudioUrl = _10.idCaptureVideoAudioUrl,
@@ -12690,6 +12691,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12690
12691
  });
12691
12692
  onExitCapture === null || onExitCapture === void 0 ? void 0 : onExitCapture();
12692
12693
  }, [onExitCapture]);
12694
+ var capturedIdDocumentType = idDocumentType !== 'idCardOrPassport' ? idDocumentType : passportImage ? 'passport' : 'idCard';
12693
12695
  var faceLivenessGuides = useCallback(function (_a) {
12694
12696
  var _b, _c, _d, _e;
12695
12697
  var status = _a.status;
@@ -12698,12 +12700,12 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12698
12700
  verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
12699
12701
  requestedAction: "VERIFY_LIVENESS",
12700
12702
  idCaptureGuideImages: idCaptureGuideImages,
12701
- idDocumentType: idDocumentType,
12703
+ idDocumentType: capturedIdDocumentType,
12702
12704
  faceGuideStatus: status,
12703
12705
  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,
12704
12706
  idCardGuideStatus: "disabled"
12705
12707
  });
12706
- }, [(_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]);
12708
+ }, [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]);
12707
12709
  if (submissionStatus === SubmissionStatus.SUBMITTING) {
12708
12710
  return /*#__PURE__*/React__default.createElement(PageContainer, {
12709
12711
  className: "flex"
@@ -12793,7 +12795,7 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12793
12795
  onExitCapture: handleExitCapture,
12794
12796
  idCaptureModelsEnabled: idCaptureModelsEnabled,
12795
12797
  idCaptureGuideImages: idCaptureGuideImages,
12796
- idDocumentType: idDocumentType,
12798
+ idDocumentType: capturedIdDocumentType,
12797
12799
  videoIdCaptureThresholds: videoIdCaptureThresholds,
12798
12800
  skipShowIdCardBack: skipShowIdCardBack,
12799
12801
  disableFaceDetectionWhileAudioCapture: disableFaceDetectionWhileAudioCapture,
@@ -15344,7 +15346,7 @@ var VideoIdValidation = function VideoIdValidation(_a) {
15344
15346
  idCaptureRotateLoadingOverlayImageWhenPortrait = _p === void 0 ? true : _p,
15345
15347
  idCardForFaceMatch = _a.idCardForFaceMatch,
15346
15348
  _q = _a.idDocumentType,
15347
- idDocumentType = _q === void 0 ? 'idCard' : _q,
15349
+ idDocumentType = _q === void 0 ? 'idCardOrPassport' : _q,
15348
15350
  _r = _a.faceLivenessLoadingOverlayMode,
15349
15351
  faceLivenessLoadingOverlayMode = _r === void 0 ? 'default' : _r,
15350
15352
  _s = _a.disableFaceDetectionWhileAudioCapture,