idmission-web-sdk 2.2.52 → 2.2.53

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.52';
214
+ var webSdkVersion = '2.2.53';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -21548,23 +21548,25 @@
21548
21548
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
21549
21549
  var _z = _a.requestedAction,
21550
21550
  requestedAction = _z === void 0 ? 'SHOW_ID_FRONT' : _z,
21551
- _0 = _a.satisfied,
21552
- satisfied = _0 === void 0 ? false : _0,
21553
- _1 = _a.faceGuideStatus,
21554
- faceGuideStatus = _1 === void 0 ? 'success' : _1,
21551
+ _0 = _a.idDocumentType,
21552
+ idDocumentType = _0 === void 0 ? 'idCard' : _0,
21553
+ _1 = _a.satisfied,
21554
+ satisfied = _1 === void 0 ? false : _1,
21555
+ _2 = _a.faceGuideStatus,
21556
+ faceGuideStatus = _2 === void 0 ? 'success' : _2,
21555
21557
  faceGuideBorderWidth = _a.faceGuideBorderWidth,
21556
21558
  faceGuideBorderColor = _a.faceGuideBorderColor,
21557
- _2 = _a.idCardGuideStatus,
21558
- idCardGuideStatus = _2 === void 0 ? 'ready' : _2,
21559
+ _3 = _a.idCardGuideStatus,
21560
+ idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
21559
21561
  idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
21560
21562
  idCardGuideBorderColor = _a.idCardGuideBorderColor,
21561
21563
  idCardCaptureProgress = _a.idCardCaptureProgress,
21562
- _3 = _a.idCaptureGuideImages,
21563
- userSuppliedImages = _3 === void 0 ? defaultIdCaptureGuideImages : _3,
21564
- _4 = _a.classNames,
21565
- classNames = _4 === void 0 ? {} : _4,
21566
- _5 = _a.verbiage,
21567
- rawVerbiage = _5 === void 0 ? {} : _5;
21564
+ _4 = _a.idCaptureGuideImages,
21565
+ userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
21566
+ _5 = _a.classNames,
21567
+ classNames = _5 === void 0 ? {} : _5,
21568
+ _6 = _a.verbiage,
21569
+ rawVerbiage = _6 === void 0 ? {} : _6;
21568
21570
  var isRearFacing = useCameraStore(function (state) {
21569
21571
  return state.isRearFacing;
21570
21572
  });
@@ -21581,17 +21583,17 @@
21581
21583
  if (faceGuideBorderColor === undefined) faceGuideBorderColor = (_j = satisfied ? (_f = (_e = theme.idVideoCapture) === null || _e === void 0 ? void 0 : _e.faceGuides) === null || _f === void 0 ? void 0 : _f.satisfiedColor : (_h = (_g = theme.idVideoCapture) === null || _g === void 0 ? void 0 : _g.faceGuides) === null || _h === void 0 ? void 0 : _h.unsatisfiedColor) !== null && _j !== void 0 ? _j : '#D6DCE7';
21582
21584
  if (idCardGuideBorderWidth === undefined) idCardGuideBorderWidth = (_m = (_l = (_k = theme.idVideoCapture) === null || _k === void 0 ? void 0 : _k.idCardGuides) === null || _l === void 0 ? void 0 : _l.borderWidth) !== null && _m !== void 0 ? _m : 20;
21583
21585
  if (idCardGuideBorderColor === undefined) idCardGuideBorderColor = (_s = satisfied ? (_p = (_o = theme.idVideoCapture) === null || _o === void 0 ? void 0 : _o.idCardGuides) === null || _p === void 0 ? void 0 : _p.satisfiedColor : (_r = (_q = theme.idVideoCapture) === null || _q === void 0 ? void 0 : _q.idCardGuides) === null || _r === void 0 ? void 0 : _r.unsatisfiedColor) !== null && _s !== void 0 ? _s : '#D6DCE7';
21584
- var _6 = useResizeObserver(),
21585
- idCardGuideRef = _6.ref,
21586
- _7 = _6.width,
21587
- idCardGuideWidth = _7 === void 0 ? 0 : _7,
21588
- _8 = _6.height,
21589
- idCardGuideHeight = _8 === void 0 ? 0 : _8;
21586
+ var _7 = useResizeObserver(),
21587
+ idCardGuideRef = _7.ref,
21588
+ _8 = _7.width,
21589
+ idCardGuideWidth = _8 === void 0 ? 0 : _8,
21590
+ _9 = _7.height,
21591
+ idCardGuideHeight = _9 === void 0 ? 0 : _9;
21590
21592
  var idCaptureGuideImages = useGuideImages(userSuppliedImages);
21591
21593
  var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
21592
- var _9 = React.useState(undefined),
21593
- aspectRatio = _9[0],
21594
- setAspectRatio = _9[1];
21594
+ var _10 = React.useState(undefined),
21595
+ aspectRatio = _10[0],
21596
+ setAspectRatio = _10[1];
21595
21597
  var onImageLoaded = React.useCallback(function (e) {
21596
21598
  var _a, _b, _c, _d;
21597
21599
  var img = e.currentTarget;
@@ -21640,7 +21642,7 @@
21640
21642
  className: classNames.idCardGuideImage,
21641
21643
  "$isMirrored": !isRearFacing,
21642
21644
  style: idCardImageStyle,
21643
- src: requestedAction === 'SHOW_PASSPORT' ? idCaptureGuideImages.landscape.SHOW_PASSPORT.url : requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
21645
+ src: idDocumentType === 'passport' ? idCaptureGuideImages.landscape.SHOW_PASSPORT.url : requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
21644
21646
  onLoad: onImageLoaded
21645
21647
  })), requestedAction === 'FLIP_ID' && ( /*#__PURE__*/React.createElement(IdVideoCaptureFlipIdPrompt, {
21646
21648
  idCaptureGuideImages: idCaptureGuideImages,
@@ -22189,6 +22191,7 @@
22189
22191
  classNames: classNames.guides,
22190
22192
  verbiage: rawVerbiage.guides,
22191
22193
  requestedAction: requestedAction,
22194
+ idDocumentType: idDocumentType,
22192
22195
  satisfied: satisfied,
22193
22196
  idCardGuideStatus: countdownStartedAt ? 'capturing' : 'ready',
22194
22197
  idCardCaptureProgress: countdownStartedAt ? 1 : 0,
@@ -22499,10 +22502,11 @@
22499
22502
  var _b, _c, _d, _e;
22500
22503
  var status = _a.status;
22501
22504
  return /*#__PURE__*/React.createElement(IdVideoCaptureGuides, {
22502
- idCaptureGuideImages: idCaptureGuideImages,
22503
22505
  classNames: (_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides,
22504
22506
  verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
22505
22507
  requestedAction: "VERIFY_LIVENESS",
22508
+ idCaptureGuideImages: idCaptureGuideImages,
22509
+ idDocumentType: idDocumentType,
22506
22510
  faceGuideStatus: status,
22507
22511
  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,
22508
22512
  idCardGuideStatus: "disabled"