idmission-web-sdk 2.2.88 → 2.2.90

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.88';
206
+ var webSdkVersion = '2.2.90';
207
207
 
208
208
  function getPlatform() {
209
209
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7298,29 +7298,29 @@ var IdCardGuideImage = styled.img(templateObject_2$q || (templateObject_2$q = __
7298
7298
  return props.$isInvisible ? 'opacity: 0;' : '';
7299
7299
  });
7300
7300
  function IdCardBorder(_a) {
7301
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7301
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
7302
7302
  var children = _a.children,
7303
- _p = _a.status,
7304
- status = _p === void 0 ? 'ready' : _p,
7305
- _q = _a.borderWidth,
7306
- borderWidth = _q === void 0 ? 20 : _q,
7307
- _r = _a.borderRadius,
7308
- borderRadius = _r === void 0 ? 25 : _r,
7309
- _s = _a.borderColor,
7310
- borderColor = _s === void 0 ? 'white' : _s,
7303
+ _s = _a.status,
7304
+ status = _s === void 0 ? 'ready' : _s,
7305
+ _t = _a.borderWidth,
7306
+ borderWidth = _t === void 0 ? 20 : _t,
7307
+ _u = _a.borderRadius,
7308
+ borderRadius = _u === void 0 ? 25 : _u,
7309
+ _v = _a.borderColor,
7310
+ borderColor = _v === void 0 ? 'white' : _v,
7311
7311
  aspectRatio = _a.aspectRatio,
7312
- _t = _a.progress,
7313
- progress = _t === void 0 ? 0 : _t,
7312
+ _w = _a.progress,
7313
+ progress = _w === void 0 ? 0 : _w,
7314
7314
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
7315
- var _u = useResizeObserver(),
7316
- ref = _u.ref,
7317
- _v = _u.width,
7318
- width = _v === void 0 ? 0 : _v,
7319
- _w = _u.height,
7320
- height = _w === void 0 ? 0 : _w;
7321
- var _x = useState(0),
7322
- progressResets = _x[0],
7323
- setProgressResets = _x[1];
7315
+ var _x = useResizeObserver(),
7316
+ ref = _x.ref,
7317
+ _y = _x.width,
7318
+ width = _y === void 0 ? 0 : _y,
7319
+ _z = _x.height,
7320
+ height = _z === void 0 ? 0 : _z;
7321
+ var _0 = useState(0),
7322
+ progressResets = _0[0],
7323
+ setProgressResets = _0[1];
7324
7324
  useEffect(function () {
7325
7325
  if (progress === 0 && status === 'capturing') {
7326
7326
  setProgressResets(function (n) {
@@ -7331,8 +7331,9 @@ function IdCardBorder(_a) {
7331
7331
  var theme = useTheme();
7332
7332
  var wavesDisabled = (_d = (_c = (_b = theme.idCapture) === null || _b === void 0 ? void 0 : _b.guideBox) === null || _c === void 0 ? void 0 : _c.wavesDisabled) !== null && _d !== void 0 ? _d : false;
7333
7333
  var wavesColor = (_g = (_f = (_e = theme.idCapture) === null || _e === void 0 ? void 0 : _e.guideBox) === null || _f === void 0 ? void 0 : _f.wavesColor) !== null && _g !== void 0 ? _g : '#287ec6';
7334
- var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k : '#287ec6';
7335
- var progressBarWidth = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.progressBarWidth) !== null && _o !== void 0 ? _o : borderWidth;
7334
+ var progressBarColor = (_k = (_j = (_h = theme.idCapture) === null || _h === void 0 ? void 0 : _h.guideBox) === null || _j === void 0 ? void 0 : _j.progressBarColor) !== null && _k !== void 0 ? _k : borderColor;
7335
+ var progressBarIndicatorColor = (_o = (_m = (_l = theme.idCapture) === null || _l === void 0 ? void 0 : _l.guideBox) === null || _m === void 0 ? void 0 : _m.progressBarIndicatorColor) !== null && _o !== void 0 ? _o : '#287ec6';
7336
+ var progressBarWidth = (_r = (_q = (_p = theme.idCapture) === null || _p === void 0 ? void 0 : _p.guideBox) === null || _q === void 0 ? void 0 : _q.progressBarWidth) !== null && _r !== void 0 ? _r : borderWidth;
7336
7337
  return /*#__PURE__*/React__default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__default.createElement("div", {
7337
7338
  ref: ref,
7338
7339
  style: {
@@ -7366,7 +7367,7 @@ function IdCardBorder(_a) {
7366
7367
  width: width,
7367
7368
  height: height,
7368
7369
  borderRadius: borderRadius,
7369
- borderColor: borderColor,
7370
+ borderColor: progressBarColor,
7370
7371
  borderWidth: progressBarWidth,
7371
7372
  className: "idmSdkWavesOrigin"
7372
7373
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
@@ -7374,8 +7375,8 @@ function IdCardBorder(_a) {
7374
7375
  width: width,
7375
7376
  height: height,
7376
7377
  borderRadius: borderRadius,
7377
- borderColor: progressBarColor,
7378
- borderWidth: borderWidth,
7378
+ borderColor: progressBarIndicatorColor,
7379
+ borderWidth: progressBarWidth,
7379
7380
  isProgressBar: true,
7380
7381
  progress: progress,
7381
7382
  progressPaused: progress > 0 && status !== 'capturing'
@@ -11897,7 +11898,7 @@ var LoadingListItem = styled.li(templateObject_8 || (templateObject_8 = __makeTe
11897
11898
  var ProgressContainer = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
11898
11899
  var ProgressBarBackground = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ", ";\n opacity: ", ";\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ", ";\n opacity: ", ";\n"])), function (props) {
11899
11900
  var _a, _b, _c, _d;
11900
- return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
11901
+ return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarColor) !== null && _d !== void 0 ? _d : 'var(--idm-color-positive-600)';
11901
11902
  }, function (props) {
11902
11903
  var _a, _b, _c, _d;
11903
11904
  return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundOpacity) !== null && _d !== void 0 ? _d : 0.75;
@@ -14711,6 +14712,7 @@ var defaultTheme = {
14711
14712
  wavesDisabled: false,
14712
14713
  wavesColor: '#287ec6',
14713
14714
  progressBarColor: '#287ec6',
14715
+ progressBarIndicatorColor: 'white',
14714
14716
  progressBarWidth: '2.5%'
14715
14717
  }
14716
14718
  },