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.
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.52';
206
+ var webSdkVersion = '2.2.53';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -11706,23 +11706,25 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
11706
11706
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
11707
11707
  var _z = _a.requestedAction,
11708
11708
  requestedAction = _z === void 0 ? 'SHOW_ID_FRONT' : _z,
11709
- _0 = _a.satisfied,
11710
- satisfied = _0 === void 0 ? false : _0,
11711
- _1 = _a.faceGuideStatus,
11712
- faceGuideStatus = _1 === void 0 ? 'success' : _1,
11709
+ _0 = _a.idDocumentType,
11710
+ idDocumentType = _0 === void 0 ? 'idCard' : _0,
11711
+ _1 = _a.satisfied,
11712
+ satisfied = _1 === void 0 ? false : _1,
11713
+ _2 = _a.faceGuideStatus,
11714
+ faceGuideStatus = _2 === void 0 ? 'success' : _2,
11713
11715
  faceGuideBorderWidth = _a.faceGuideBorderWidth,
11714
11716
  faceGuideBorderColor = _a.faceGuideBorderColor,
11715
- _2 = _a.idCardGuideStatus,
11716
- idCardGuideStatus = _2 === void 0 ? 'ready' : _2,
11717
+ _3 = _a.idCardGuideStatus,
11718
+ idCardGuideStatus = _3 === void 0 ? 'ready' : _3,
11717
11719
  idCardGuideBorderWidth = _a.idCardGuideBorderWidth,
11718
11720
  idCardGuideBorderColor = _a.idCardGuideBorderColor,
11719
11721
  idCardCaptureProgress = _a.idCardCaptureProgress,
11720
- _3 = _a.idCaptureGuideImages,
11721
- userSuppliedImages = _3 === void 0 ? defaultIdCaptureGuideImages : _3,
11722
- _4 = _a.classNames,
11723
- classNames = _4 === void 0 ? {} : _4,
11724
- _5 = _a.verbiage,
11725
- rawVerbiage = _5 === void 0 ? {} : _5;
11722
+ _4 = _a.idCaptureGuideImages,
11723
+ userSuppliedImages = _4 === void 0 ? defaultIdCaptureGuideImages : _4,
11724
+ _5 = _a.classNames,
11725
+ classNames = _5 === void 0 ? {} : _5,
11726
+ _6 = _a.verbiage,
11727
+ rawVerbiage = _6 === void 0 ? {} : _6;
11726
11728
  var isRearFacing = useCameraStore(function (state) {
11727
11729
  return state.isRearFacing;
11728
11730
  });
@@ -11739,17 +11741,17 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
11739
11741
  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';
11740
11742
  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;
11741
11743
  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';
11742
- var _6 = useResizeObserver(),
11743
- idCardGuideRef = _6.ref,
11744
- _7 = _6.width,
11745
- idCardGuideWidth = _7 === void 0 ? 0 : _7,
11746
- _8 = _6.height,
11747
- idCardGuideHeight = _8 === void 0 ? 0 : _8;
11744
+ var _7 = useResizeObserver(),
11745
+ idCardGuideRef = _7.ref,
11746
+ _8 = _7.width,
11747
+ idCardGuideWidth = _8 === void 0 ? 0 : _8,
11748
+ _9 = _7.height,
11749
+ idCardGuideHeight = _9 === void 0 ? 0 : _9;
11748
11750
  var idCaptureGuideImages = useGuideImages(userSuppliedImages);
11749
11751
  var idCaptureGuideImagesByUrl = useGuideImagesByUrl(idCaptureGuideImages);
11750
- var _9 = useState(undefined),
11751
- aspectRatio = _9[0],
11752
- setAspectRatio = _9[1];
11752
+ var _10 = useState(undefined),
11753
+ aspectRatio = _10[0],
11754
+ setAspectRatio = _10[1];
11753
11755
  var onImageLoaded = useCallback(function (e) {
11754
11756
  var _a, _b, _c, _d;
11755
11757
  var img = e.currentTarget;
@@ -11798,7 +11800,7 @@ var IdVideoCaptureGuides = function IdVideoCaptureGuides(_a) {
11798
11800
  className: classNames.idCardGuideImage,
11799
11801
  "$isMirrored": !isRearFacing,
11800
11802
  style: idCardImageStyle,
11801
- 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,
11803
+ src: idDocumentType === 'passport' ? idCaptureGuideImages.landscape.SHOW_PASSPORT.url : requestedAction === 'SHOW_ID_BACK' ? idCaptureGuideImages.landscape.SHOW_ID_BACK.url : idCaptureGuideImages.landscape.SHOW_ID_FRONT.url,
11802
11804
  onLoad: onImageLoaded
11803
11805
  })), requestedAction === 'FLIP_ID' && ( /*#__PURE__*/React__default.createElement(IdVideoCaptureFlipIdPrompt, {
11804
11806
  idCaptureGuideImages: idCaptureGuideImages,
@@ -12347,6 +12349,7 @@ var IdVideoCapture = function IdVideoCapture(_a) {
12347
12349
  classNames: classNames.guides,
12348
12350
  verbiage: rawVerbiage.guides,
12349
12351
  requestedAction: requestedAction,
12352
+ idDocumentType: idDocumentType,
12350
12353
  satisfied: satisfied,
12351
12354
  idCardGuideStatus: countdownStartedAt ? 'capturing' : 'ready',
12352
12355
  idCardCaptureProgress: countdownStartedAt ? 1 : 0,
@@ -12657,10 +12660,11 @@ var VideoIdWizard = function VideoIdWizard(_a) {
12657
12660
  var _b, _c, _d, _e;
12658
12661
  var status = _a.status;
12659
12662
  return /*#__PURE__*/React__default.createElement(IdVideoCaptureGuides, {
12660
- idCaptureGuideImages: idCaptureGuideImages,
12661
12663
  classNames: (_b = classNames.idVideoCapture) === null || _b === void 0 ? void 0 : _b.guides,
12662
12664
  verbiage: (_c = verbiage.idVideoCapture) === null || _c === void 0 ? void 0 : _c.guides,
12663
12665
  requestedAction: "VERIFY_LIVENESS",
12666
+ idCaptureGuideImages: idCaptureGuideImages,
12667
+ idDocumentType: idDocumentType,
12664
12668
  faceGuideStatus: status,
12665
12669
  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,
12666
12670
  idCardGuideStatus: "disabled"