idmission-web-sdk 2.2.91 → 2.2.93

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.91';
214
+ var webSdkVersion = '2.2.93';
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, _p, _q, _r;
16375
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
16376
16376
  var children = _a.children,
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,
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,
16385
16385
  aspectRatio = _a.aspectRatio,
16386
- _w = _a.progress,
16387
- progress = _w === void 0 ? 0 : _w,
16386
+ _t = _a.progress,
16387
+ progress = _t === void 0 ? 0 : _t,
16388
16388
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
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];
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];
16398
16398
  React.useEffect(function () {
16399
16399
  if (progress === 0 && status === 'capturing') {
16400
16400
  setProgressResets(function (n) {
@@ -16405,9 +16405,8 @@
16405
16405
  var theme = styled.useTheme();
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
- 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;
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 : '#287ec6';
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;
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;
16411
16410
  return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React.createElement("div", {
16412
16411
  ref: ref,
16413
16412
  style: {
@@ -16441,7 +16440,7 @@
16441
16440
  width: width,
16442
16441
  height: height,
16443
16442
  borderRadius: borderRadius,
16444
- borderColor: progressBarColor,
16443
+ borderColor: borderColor,
16445
16444
  borderWidth: progressBarWidth,
16446
16445
  className: "idmSdkWavesOrigin"
16447
16446
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React.createElement(IdCardBorderSvg, {
@@ -16449,8 +16448,8 @@
16449
16448
  width: width,
16450
16449
  height: height,
16451
16450
  borderRadius: borderRadius,
16452
- borderColor: progressBarIndicatorColor,
16453
- borderWidth: progressBarWidth,
16451
+ borderColor: progressBarColor,
16452
+ borderWidth: borderWidth,
16454
16453
  isProgressBar: true,
16455
16454
  progress: progress,
16456
16455
  progressPaused: progress > 0 && status !== 'capturing'
@@ -18447,7 +18446,7 @@
18447
18446
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", {
18448
18447
  ref: fileInput,
18449
18448
  type: "file",
18450
- accept: "image/*",
18449
+ accept: "image/*,.pdf",
18451
18450
  style: {
18452
18451
  display: 'none'
18453
18452
  },
@@ -20972,7 +20971,7 @@
20972
20971
  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"])));
20973
20972
  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) {
20974
20973
  var _a, _b, _c, _d;
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)';
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)';
20976
20975
  }, function (props) {
20977
20976
  var _a, _b, _c, _d;
20978
20977
  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,8 +24552,7 @@
24553
24552
  imagePadding: 50,
24554
24553
  wavesDisabled: false,
24555
24554
  wavesColor: '#287ec6',
24556
- progressBarColor: 'white',
24557
- progressBarIndicatorColor: '#287ec6',
24555
+ progressBarColor: '#287ec6',
24558
24556
  progressBarWidth: '2.5%'
24559
24557
  }
24560
24558
  },