idmission-web-sdk 2.2.83 → 2.2.85

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.83';
214
+ var webSdkVersion = '2.2.85';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -421,10 +421,9 @@
421
421
  colors = _b === void 0 ? {} : _b,
422
422
  disabled = _a.disabled,
423
423
  finished = _a.finished,
424
- onClick = _a.onClick,
425
- style = _a.style,
426
424
  _c = _a.variant,
427
- variant = _c === void 0 ? 'primary' : _c;
425
+ variant = _c === void 0 ? 'primary' : _c,
426
+ props = __rest(_a, ["children", "className", "colors", "disabled", "finished", "variant"]);
428
427
  var buttonRef = React.useRef(null);
429
428
  var laddaRef = React.useRef(null);
430
429
  var _d = React.useState(false),
@@ -455,19 +454,18 @@
455
454
  var _a;
456
455
  if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
457
456
  }, [finished, laddaLoaded]);
458
- return /*#__PURE__*/React.createElement(StyledButton, {
457
+ return /*#__PURE__*/React.createElement(StyledButton, _assign({
459
458
  className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
460
459
  "data-style": "expand-right",
460
+ type: "button",
461
461
  disabled: disabled,
462
462
  ref: buttonRef,
463
- onClick: onClick,
464
463
  "$backgroundColor": colors.backgroundColor,
465
464
  "$textColor": colors.textColor,
466
465
  "$disabledBackgroundColor": colors.loadingBackgroundColor,
467
466
  "$disabledTextColor": colors.loadingTextColor,
468
- "$variant": variant,
469
- style: style
470
- }, /*#__PURE__*/React.createElement("span", {
467
+ "$variant": variant
468
+ }, props), /*#__PURE__*/React.createElement("span", {
471
469
  className: "ladda-label"
472
470
  }, children));
473
471
  };
@@ -16354,29 +16352,29 @@
16354
16352
  return props.$isInvisible ? 'opacity: 0;' : '';
16355
16353
  });
16356
16354
  function IdCardBorder(_a) {
16357
- var _b, _c, _d, _e, _f, _g, _h, _j, _k;
16355
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
16358
16356
  var children = _a.children,
16359
- _l = _a.status,
16360
- status = _l === void 0 ? 'ready' : _l,
16361
- _m = _a.borderWidth,
16362
- borderWidth = _m === void 0 ? 20 : _m,
16363
- _o = _a.borderRadius,
16364
- borderRadius = _o === void 0 ? 25 : _o,
16365
- _p = _a.borderColor,
16366
- borderColor = _p === void 0 ? 'white' : _p,
16357
+ _p = _a.status,
16358
+ status = _p === void 0 ? 'ready' : _p,
16359
+ _q = _a.borderWidth,
16360
+ borderWidth = _q === void 0 ? 20 : _q,
16361
+ _r = _a.borderRadius,
16362
+ borderRadius = _r === void 0 ? 25 : _r,
16363
+ _s = _a.borderColor,
16364
+ borderColor = _s === void 0 ? 'white' : _s,
16367
16365
  aspectRatio = _a.aspectRatio,
16368
- _q = _a.progress,
16369
- progress = _q === void 0 ? 0 : _q,
16366
+ _t = _a.progress,
16367
+ progress = _t === void 0 ? 0 : _t,
16370
16368
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
16371
- var _r = useResizeObserver(),
16372
- ref = _r.ref,
16373
- _s = _r.width,
16374
- width = _s === void 0 ? 0 : _s,
16375
- _t = _r.height,
16376
- height = _t === void 0 ? 0 : _t;
16377
- var _u = React.useState(0),
16378
- progressResets = _u[0],
16379
- setProgressResets = _u[1];
16369
+ var _u = useResizeObserver(),
16370
+ ref = _u.ref,
16371
+ _v = _u.width,
16372
+ width = _v === void 0 ? 0 : _v,
16373
+ _w = _u.height,
16374
+ height = _w === void 0 ? 0 : _w;
16375
+ var _x = React.useState(0),
16376
+ progressResets = _x[0],
16377
+ setProgressResets = _x[1];
16380
16378
  React.useEffect(function () {
16381
16379
  if (progress === 0 && status === 'capturing') {
16382
16380
  setProgressResets(function (n) {
@@ -16388,6 +16386,7 @@
16388
16386
  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;
16389
16387
  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';
16390
16388
  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';
16389
+ 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;
16391
16390
  return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React.createElement("div", {
16392
16391
  ref: ref,
16393
16392
  style: {
@@ -16422,7 +16421,7 @@
16422
16421
  height: height,
16423
16422
  borderRadius: borderRadius,
16424
16423
  borderColor: borderColor,
16425
- borderWidth: borderWidth,
16424
+ borderWidth: progressBarWidth,
16426
16425
  className: "idmSdkWavesOrigin"
16427
16426
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React.createElement(IdCardBorderSvg, {
16428
16427
  key: "progress".concat(progressResets),
@@ -23931,7 +23930,8 @@
23931
23930
  imagePadding: 50,
23932
23931
  wavesDisabled: false,
23933
23932
  wavesColor: '#287ec6',
23934
- progressBarColor: '#287ec6'
23933
+ progressBarColor: '#287ec6',
23934
+ progressBarWidth: '2.5%'
23935
23935
  }
23936
23936
  },
23937
23937
  selfieCapture: {