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.
- package/dist/components/id_capture/IdCaptureGuidesCommon.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +29 -27
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +29 -27
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +29 -27
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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.
|
|
214
|
+
var webSdkVersion = '2.2.90';
|
|
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;
|
|
16375
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
16376
16376
|
var children = _a.children,
|
|
16377
|
-
|
|
16378
|
-
status =
|
|
16379
|
-
|
|
16380
|
-
borderWidth =
|
|
16381
|
-
|
|
16382
|
-
borderRadius =
|
|
16383
|
-
|
|
16384
|
-
borderColor =
|
|
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,
|
|
16385
16385
|
aspectRatio = _a.aspectRatio,
|
|
16386
|
-
|
|
16387
|
-
progress =
|
|
16386
|
+
_w = _a.progress,
|
|
16387
|
+
progress = _w === void 0 ? 0 : _w,
|
|
16388
16388
|
props = __rest(_a, ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress"]);
|
|
16389
|
-
var
|
|
16390
|
-
ref =
|
|
16391
|
-
|
|
16392
|
-
width =
|
|
16393
|
-
|
|
16394
|
-
height =
|
|
16395
|
-
var
|
|
16396
|
-
progressResets =
|
|
16397
|
-
setProgressResets =
|
|
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];
|
|
16398
16398
|
React.useEffect(function () {
|
|
16399
16399
|
if (progress === 0 && status === 'capturing') {
|
|
16400
16400
|
setProgressResets(function (n) {
|
|
@@ -16405,8 +16405,9 @@
|
|
|
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 :
|
|
16409
|
-
var
|
|
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;
|
|
16410
16411
|
return /*#__PURE__*/React.createElement(IdCardBorderContainer, _assign({}, props), /*#__PURE__*/React.createElement("div", {
|
|
16411
16412
|
ref: ref,
|
|
16412
16413
|
style: {
|
|
@@ -16440,7 +16441,7 @@
|
|
|
16440
16441
|
width: width,
|
|
16441
16442
|
height: height,
|
|
16442
16443
|
borderRadius: borderRadius,
|
|
16443
|
-
borderColor:
|
|
16444
|
+
borderColor: progressBarColor,
|
|
16444
16445
|
borderWidth: progressBarWidth,
|
|
16445
16446
|
className: "idmSdkWavesOrigin"
|
|
16446
16447
|
}), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React.createElement(IdCardBorderSvg, {
|
|
@@ -16448,8 +16449,8 @@
|
|
|
16448
16449
|
width: width,
|
|
16449
16450
|
height: height,
|
|
16450
16451
|
borderRadius: borderRadius,
|
|
16451
|
-
borderColor:
|
|
16452
|
-
borderWidth:
|
|
16452
|
+
borderColor: progressBarIndicatorColor,
|
|
16453
|
+
borderWidth: progressBarWidth,
|
|
16453
16454
|
isProgressBar: true,
|
|
16454
16455
|
progress: progress,
|
|
16455
16456
|
progressPaused: progress > 0 && status !== 'capturing'
|
|
@@ -20971,7 +20972,7 @@
|
|
|
20971
20972
|
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"])));
|
|
20972
20973
|
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) {
|
|
20973
20974
|
var _a, _b, _c, _d;
|
|
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.
|
|
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)';
|
|
20975
20976
|
}, function (props) {
|
|
20976
20977
|
var _a, _b, _c, _d;
|
|
20977
20978
|
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,6 +24554,7 @@
|
|
|
24553
24554
|
wavesDisabled: false,
|
|
24554
24555
|
wavesColor: '#287ec6',
|
|
24555
24556
|
progressBarColor: '#287ec6',
|
|
24557
|
+
progressBarIndicatorColor: 'white',
|
|
24556
24558
|
progressBarWidth: '2.5%'
|
|
24557
24559
|
}
|
|
24558
24560
|
},
|