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.
@@ -1 +1 @@
1
- {"version":3,"file":"IdCaptureGuidesCommon.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureGuidesCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAM5D,eAAO,MAAM,yBAAyB;aA6B3B,iBAAiB;kBACZ,MAAM,GAAG,MAAM;mBACd,MAAM;kBACP,MAAM;kBACN,MAAM;eACT,MAAM;;iBAjCJ,OAAO;6EAKrB,CAAA;AAED,eAAO,MAAM,gBAAgB;kBACb,OAAO;mBACN,OAAO;YAKvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAA;AAElE,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,MAAgB,EAChB,WAAgB,EAChB,YAAiB,EACjB,WAAqB,EACrB,WAAW,EACX,QAAY,EACZ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,qBAoFA"}
1
+ {"version":3,"file":"IdCaptureGuidesCommon.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureGuidesCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAM5D,eAAO,MAAM,yBAAyB;aA6B3B,iBAAiB;kBACZ,MAAM,GAAG,MAAM;mBACd,MAAM;kBACP,MAAM;kBACN,MAAM;eACT,MAAM;;iBAjCJ,OAAO;6EAKrB,CAAA;AAED,eAAO,MAAM,gBAAgB;kBACb,OAAO;mBACN,OAAO;YAKvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAA;AAElE,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,MAAgB,EAChB,WAAgB,EAChB,YAAiB,EACjB,WAAqB,EACrB,WAAW,EACX,QAAY,EACZ,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACxC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,qBAkFA"}
@@ -234,7 +234,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
234
234
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
235
235
  };
236
236
 
237
- var webSdkVersion = '2.2.91';
237
+ var webSdkVersion = '2.2.93';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7329,29 +7329,29 @@ var IdCardGuideImage = styled__default.default.img(templateObject_2$q || (templa
7329
7329
  return props.$isInvisible ? 'opacity: 0;' : '';
7330
7330
  });
7331
7331
  function IdCardBorder(_a) {
7332
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
7332
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7333
7333
  var children = _a.children,
7334
- _s = _a.status,
7335
- status = _s === void 0 ? 'ready' : _s,
7336
- _t = _a.borderWidth,
7337
- borderWidth = _t === void 0 ? 20 : _t,
7338
- _u = _a.borderRadius,
7339
- borderRadius = _u === void 0 ? 25 : _u,
7340
- _v = _a.borderColor,
7341
- borderColor = _v === void 0 ? 'white' : _v,
7334
+ _p = _a.status,
7335
+ status = _p === void 0 ? 'ready' : _p,
7336
+ _q = _a.borderWidth,
7337
+ borderWidth = _q === void 0 ? 20 : _q,
7338
+ _r = _a.borderRadius,
7339
+ borderRadius = _r === void 0 ? 25 : _r,
7340
+ _s = _a.borderColor,
7341
+ borderColor = _s === void 0 ? 'white' : _s,
7342
7342
  aspectRatio = _a.aspectRatio,
7343
- _w = _a.progress,
7344
- progress = _w === void 0 ? 0 : _w,
7343
+ _t = _a.progress,
7344
+ progress = _t === void 0 ? 0 : _t,
7345
7345
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
7346
- var _x = useResizeObserver__default.default(),
7347
- ref = _x.ref,
7348
- _y = _x.width,
7349
- width = _y === void 0 ? 0 : _y,
7350
- _z = _x.height,
7351
- height = _z === void 0 ? 0 : _z;
7352
- var _0 = React.useState(0),
7353
- progressResets = _0[0],
7354
- setProgressResets = _0[1];
7346
+ var _u = useResizeObserver__default.default(),
7347
+ ref = _u.ref,
7348
+ _v = _u.width,
7349
+ width = _v === void 0 ? 0 : _v,
7350
+ _w = _u.height,
7351
+ height = _w === void 0 ? 0 : _w;
7352
+ var _x = React.useState(0),
7353
+ progressResets = _x[0],
7354
+ setProgressResets = _x[1];
7355
7355
  React.useEffect(function () {
7356
7356
  if (progress === 0 && status === 'capturing') {
7357
7357
  setProgressResets(function (n) {
@@ -7362,9 +7362,8 @@ function IdCardBorder(_a) {
7362
7362
  var theme = styled.useTheme();
7363
7363
  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;
7364
7364
  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';
7365
- 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;
7366
- 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';
7367
- 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;
7365
+ 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';
7366
+ 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;
7368
7367
  return /*#__PURE__*/React__namespace.default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__namespace.default.createElement("div", {
7369
7368
  ref: ref,
7370
7369
  style: {
@@ -7398,7 +7397,7 @@ function IdCardBorder(_a) {
7398
7397
  width: width,
7399
7398
  height: height,
7400
7399
  borderRadius: borderRadius,
7401
- borderColor: progressBarColor,
7400
+ borderColor: borderColor,
7402
7401
  borderWidth: progressBarWidth,
7403
7402
  className: "idmSdkWavesOrigin"
7404
7403
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
@@ -7406,8 +7405,8 @@ function IdCardBorder(_a) {
7406
7405
  width: width,
7407
7406
  height: height,
7408
7407
  borderRadius: borderRadius,
7409
- borderColor: progressBarIndicatorColor,
7410
- borderWidth: progressBarWidth,
7408
+ borderColor: progressBarColor,
7409
+ borderWidth: borderWidth,
7411
7410
  isProgressBar: true,
7412
7411
  progress: progress,
7413
7412
  progressPaused: progress > 0 && status !== 'capturing'
@@ -9404,7 +9403,7 @@ function FilePickerButton(_a) {
9404
9403
  return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement("input", {
9405
9404
  ref: fileInput,
9406
9405
  type: "file",
9407
- accept: "image/*",
9406
+ accept: "image/*,.pdf",
9408
9407
  style: {
9409
9408
  display: 'none'
9410
9409
  },
@@ -11929,7 +11928,7 @@ var LoadingListItem = styled__default.default.li(templateObject_8 || (templateOb
11929
11928
  var ProgressContainer = styled__default.default.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"])));
11930
11929
  var ProgressBarBackground = styled__default.default.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) {
11931
11930
  var _a, _b, _c, _d;
11932
- 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)';
11931
+ 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)';
11933
11932
  }, function (props) {
11934
11933
  var _a, _b, _c, _d;
11935
11934
  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;
@@ -14742,8 +14741,7 @@ var defaultTheme = {
14742
14741
  imagePadding: 50,
14743
14742
  wavesDisabled: false,
14744
14743
  wavesColor: '#287ec6',
14745
- progressBarColor: 'white',
14746
- progressBarIndicatorColor: '#287ec6',
14744
+ progressBarColor: '#287ec6',
14747
14745
  progressBarWidth: '2.5%'
14748
14746
  }
14749
14747
  },