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.
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.91';
206
+ var webSdkVersion = '2.2.93';
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, _p, _q, _r;
7301
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7302
7302
  var children = _a.children,
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,
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,
7311
7311
  aspectRatio = _a.aspectRatio,
7312
- _w = _a.progress,
7313
- progress = _w === void 0 ? 0 : _w,
7312
+ _t = _a.progress,
7313
+ progress = _t === void 0 ? 0 : _t,
7314
7314
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
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];
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];
7324
7324
  useEffect(function () {
7325
7325
  if (progress === 0 && status === 'capturing') {
7326
7326
  setProgressResets(function (n) {
@@ -7331,9 +7331,8 @@ 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 : 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;
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;
7337
7336
  return /*#__PURE__*/React__default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__default.createElement("div", {
7338
7337
  ref: ref,
7339
7338
  style: {
@@ -7367,7 +7366,7 @@ function IdCardBorder(_a) {
7367
7366
  width: width,
7368
7367
  height: height,
7369
7368
  borderRadius: borderRadius,
7370
- borderColor: progressBarColor,
7369
+ borderColor: borderColor,
7371
7370
  borderWidth: progressBarWidth,
7372
7371
  className: "idmSdkWavesOrigin"
7373
7372
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
@@ -7375,8 +7374,8 @@ function IdCardBorder(_a) {
7375
7374
  width: width,
7376
7375
  height: height,
7377
7376
  borderRadius: borderRadius,
7378
- borderColor: progressBarIndicatorColor,
7379
- borderWidth: progressBarWidth,
7377
+ borderColor: progressBarColor,
7378
+ borderWidth: borderWidth,
7380
7379
  isProgressBar: true,
7381
7380
  progress: progress,
7382
7381
  progressPaused: progress > 0 && status !== 'capturing'
@@ -9373,7 +9372,7 @@ function FilePickerButton(_a) {
9373
9372
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("input", {
9374
9373
  ref: fileInput,
9375
9374
  type: "file",
9376
- accept: "image/*",
9375
+ accept: "image/*,.pdf",
9377
9376
  style: {
9378
9377
  display: 'none'
9379
9378
  },
@@ -11898,7 +11897,7 @@ var LoadingListItem = styled.li(templateObject_8 || (templateObject_8 = __makeTe
11898
11897
  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"])));
11899
11898
  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) {
11900
11899
  var _a, _b, _c, _d;
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)';
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)';
11902
11901
  }, function (props) {
11903
11902
  var _a, _b, _c, _d;
11904
11903
  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,8 +14710,7 @@ var defaultTheme = {
14711
14710
  imagePadding: 50,
14712
14711
  wavesDisabled: false,
14713
14712
  wavesColor: '#287ec6',
14714
- progressBarColor: 'white',
14715
- progressBarIndicatorColor: '#287ec6',
14713
+ progressBarColor: '#287ec6',
14716
14714
  progressBarWidth: '2.5%'
14717
14715
  }
14718
14716
  },