idmission-web-sdk 2.2.88 → 2.2.89

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.88';
214
+ var webSdkVersion = '2.2.89';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -16372,29 +16372,29 @@
16372
16372
  return props.$isInvisible ? 'opacity: 0;' : '';
16373
16373
  });
16374
16374
  function IdCardBorder(_a) {
16375
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
16375
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
16376
16376
  var children = _a.children,
16377
- _p = _a.status,
16378
- status = _p === void 0 ? 'ready' : _p,
16379
- _q = _a.borderWidth,
16380
- borderWidth = _q === void 0 ? 20 : _q,
16381
- _r = _a.borderRadius,
16382
- borderRadius = _r === void 0 ? 25 : _r,
16383
- _s = _a.borderColor,
16384
- borderColor = _s === void 0 ? 'white' : _s,
16377
+ _s = _a.status,
16378
+ status = _s === void 0 ? 'ready' : _s,
16379
+ _t = _a.borderWidth,
16380
+ borderWidth = _t === void 0 ? 20 : _t,
16381
+ _u = _a.borderRadius,
16382
+ borderRadius = _u === void 0 ? 25 : _u,
16383
+ _v = _a.borderColor,
16384
+ borderColor = _v === void 0 ? 'white' : _v,
16385
16385
  aspectRatio = _a.aspectRatio,
16386
- _t = _a.progress,
16387
- progress = _t === void 0 ? 0 : _t,
16386
+ _w = _a.progress,
16387
+ progress = _w === void 0 ? 0 : _w,
16388
16388
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
16389
- var _u = useResizeObserver(),
16390
- ref = _u.ref,
16391
- _v = _u.width,
16392
- width = _v === void 0 ? 0 : _v,
16393
- _w = _u.height,
16394
- height = _w === void 0 ? 0 : _w;
16395
- var _x = React.useState(0),
16396
- progressResets = _x[0],
16397
- setProgressResets = _x[1];
16389
+ var _x = useResizeObserver(),
16390
+ ref = _x.ref,
16391
+ _y = _x.width,
16392
+ width = _y === void 0 ? 0 : _y,
16393
+ _z = _x.height,
16394
+ height = _z === void 0 ? 0 : _z;
16395
+ var _0 = React.useState(0),
16396
+ progressResets = _0[0],
16397
+ setProgressResets = _0[1];
16398
16398
  React.useEffect(function () {
16399
16399
  if (progress === 0 && status === 'capturing') {
16400
16400
  setProgressResets(function (n) {
@@ -16406,7 +16406,8 @@
16406
16406
  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;
16407
16407
  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';
16408
16408
  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';
16409
- 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;
16409
+ 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 : borderColor;
16410
+ 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;
16410
16411
  return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React.createElement("div", {
16411
16412
  ref: ref,
16412
16413
  style: {
@@ -16440,7 +16441,7 @@
16440
16441
  width: width,
16441
16442
  height: height,
16442
16443
  borderRadius: borderRadius,
16443
- borderColor: borderColor,
16444
+ borderColor: progressBarIndicatorColor,
16444
16445
  borderWidth: progressBarWidth,
16445
16446
  className: "idmSdkWavesOrigin"
16446
16447
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React.createElement(IdCardBorderSvg, {
@@ -16449,7 +16450,7 @@
16449
16450
  height: height,
16450
16451
  borderRadius: borderRadius,
16451
16452
  borderColor: progressBarColor,
16452
- borderWidth: borderWidth,
16453
+ borderWidth: progressBarWidth,
16453
16454
  isProgressBar: true,
16454
16455
  progress: progress,
16455
16456
  progressPaused: progress > 0 && status !== 'capturing'
@@ -20971,7 +20972,7 @@
20971
20972
  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"])));
20972
20973
  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) {
20973
20974
  var _a, _b, _c, _d;
20974
- 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)';
20975
+ 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)';
20975
20976
  }, function (props) {
20976
20977
  var _a, _b, _c, _d;
20977
20978
  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;
@@ -24553,6 +24554,7 @@
24553
24554
  wavesDisabled: false,
24554
24555
  wavesColor: '#287ec6',
24555
24556
  progressBarColor: '#287ec6',
24557
+ progressBarIndicatorColor: 'white',
24556
24558
  progressBarWidth: '2.5%'
24557
24559
  }
24558
24560
  },