idmission-web-sdk 2.2.88 → 2.2.90

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,qBAkFA"}
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"}
@@ -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.88';
237
+ var webSdkVersion = '2.2.90';
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;
7332
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
7333
7333
  var children = _a.children,
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,
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,
7342
7342
  aspectRatio = _a.aspectRatio,
7343
- _t = _a.progress,
7344
- progress = _t === void 0 ? 0 : _t,
7343
+ _w = _a.progress,
7344
+ progress = _w === void 0 ? 0 : _w,
7345
7345
  props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
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];
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];
7355
7355
  React.useEffect(function () {
7356
7356
  if (progress === 0 && status === 'capturing') {
7357
7357
  setProgressResets(function (n) {
@@ -7362,8 +7362,9 @@ 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 : '#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;
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;
7367
7368
  return /*#__PURE__*/React__namespace.default.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React__namespace.default.createElement("div", {
7368
7369
  ref: ref,
7369
7370
  style: {
@@ -7397,7 +7398,7 @@ function IdCardBorder(_a) {
7397
7398
  width: width,
7398
7399
  height: height,
7399
7400
  borderRadius: borderRadius,
7400
- borderColor: borderColor,
7401
+ borderColor: progressBarColor,
7401
7402
  borderWidth: progressBarWidth,
7402
7403
  className: "idmSdkWavesOrigin"
7403
7404
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
@@ -7405,8 +7406,8 @@ function IdCardBorder(_a) {
7405
7406
  width: width,
7406
7407
  height: height,
7407
7408
  borderRadius: borderRadius,
7408
- borderColor: progressBarColor,
7409
- borderWidth: borderWidth,
7409
+ borderColor: progressBarIndicatorColor,
7410
+ borderWidth: progressBarWidth,
7410
7411
  isProgressBar: true,
7411
7412
  progress: progress,
7412
7413
  progressPaused: progress > 0 && status !== 'capturing'
@@ -11928,7 +11929,7 @@ var LoadingListItem = styled__default.default.li(templateObject_8 || (templateOb
11928
11929
  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"])));
11929
11930
  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) {
11930
11931
  var _a, _b, _c, _d;
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)';
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)';
11932
11933
  }, function (props) {
11933
11934
  var _a, _b, _c, _d;
11934
11935
  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,6 +14743,7 @@ var defaultTheme = {
14742
14743
  wavesDisabled: false,
14743
14744
  wavesColor: '#287ec6',
14744
14745
  progressBarColor: '#287ec6',
14746
+ progressBarIndicatorColor: 'white',
14745
14747
  progressBarWidth: '2.5%'
14746
14748
  }
14747
14749
  },