idmission-web-sdk 2.1.65 → 2.1.67
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/IdCaptureFitGuide.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureGuideOverlay.d.ts +1 -1
- package/dist/components/id_capture/IdCaptureGuides.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureFlipIdPrompt.d.ts +1 -1
- package/dist/components/video_id/IdVideoCaptureGuides.d.ts +1 -1
- package/dist/sdk2.cjs.development.js +24 -15
- 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 +24 -15
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +24 -15
- 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/version.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/components/{video_id/IdVideoCaptureGuidesCommon.d.ts → id_capture/IdCaptureGuidesCommon.d.ts} +0 -0
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
var webSdkVersion = '2.1.
|
|
218
|
+
var webSdkVersion = '2.1.67';
|
|
219
219
|
|
|
220
220
|
function getPlatform() {
|
|
221
221
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -16800,7 +16800,7 @@
|
|
|
16800
16800
|
var _a, _b, _c, _d;
|
|
16801
16801
|
return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarBackgroundOpacity) !== null && _d !== void 0 ? _d : 0.75;
|
|
16802
16802
|
});
|
|
16803
|
-
var ProgressBar$1 = styled.span(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n display: block;\n width: ", "%;\n height: 100%;\n"], ["\n display: block;\n width: ", "%;\n height: 100%;\n"])), function (props) {
|
|
16803
|
+
var ProgressBar$1 = styled.span(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n display: block;\n width: ", "%;\n height: 100%;\n left: 0;\n position: absolute;\n"], ["\n display: block;\n width: ", "%;\n height: 100%;\n left: 0;\n position: absolute;\n"])), function (props) {
|
|
16804
16804
|
return props.$progress;
|
|
16805
16805
|
});
|
|
16806
16806
|
var ProgressIndicator$1 = styled.span(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n display: block;\n height: 100%;\n background: ", ";\n animation: progressBar 3s ease-in-out;\n animation-fill-mode: both;\n\n @keyframes progressBar {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n }\n"], ["\n display: block;\n height: 100%;\n background: ", ";\n animation: progressBar 3s ease-in-out;\n animation-fill-mode: both;\n\n @keyframes progressBar {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n }\n"])), function (props) {
|
|
@@ -17070,7 +17070,7 @@
|
|
|
17070
17070
|
var ImageRow = styled(OverlayImageRow)(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n //grid-template-columns: 1fr 1fr;\n"], ["\n max-width: 100%;\n flex-direction: column;\n display: grid;\n grid-gap: 12px;\n //grid-template-columns: 1fr 1fr;\n"])));
|
|
17071
17071
|
var ImageCol$1 = styled.div(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n width: 100%;\n max-height: none !important;\n"], ["\n width: 100%;\n max-height: none !important;\n"])));
|
|
17072
17072
|
var StyledImage = styled(CapturedDocumentImg)(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n width: 100%;\n border-radius: 12px;\n"], ["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
17073
|
-
var DebugPre = styled.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n text-align: left;\n max-width: min(
|
|
17073
|
+
var DebugPre = styled.pre(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"], ["\n text-align: left;\n max-width: min(450px, 100dvw - 100px);\n overflow-x: auto;\n"])));
|
|
17074
17074
|
var templateObject_1$v, templateObject_2$q, templateObject_3$k, templateObject_4$e, templateObject_5$9, templateObject_6$7;
|
|
17075
17075
|
|
|
17076
17076
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
@@ -17231,19 +17231,28 @@
|
|
|
17231
17231
|
var _f = React.useState(0),
|
|
17232
17232
|
totalLength = _f[0],
|
|
17233
17233
|
setTotalLength = _f[1];
|
|
17234
|
-
var
|
|
17235
|
-
resolvedProgress = _g[0],
|
|
17236
|
-
setResolvedProgress = _g[1];
|
|
17234
|
+
var resolvedProgress = progress * totalLength;
|
|
17237
17235
|
React.useLayoutEffect(function () {
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
|
|
17241
|
-
|
|
17242
|
-
|
|
17243
|
-
|
|
17244
|
-
|
|
17236
|
+
if (totalLength > 0) return;
|
|
17237
|
+
var interval;
|
|
17238
|
+
var measuredLength = 0;
|
|
17239
|
+
function measureTotalLength() {
|
|
17240
|
+
var _a, _b;
|
|
17241
|
+
try {
|
|
17242
|
+
measuredLength = (_b = (_a = rectRef.current) === null || _a === void 0 ? void 0 : _a.getTotalLength()) !== null && _b !== void 0 ? _b : 0;
|
|
17243
|
+
if (measuredLength === 0) return;
|
|
17244
|
+
setTotalLength(measuredLength);
|
|
17245
|
+
if (interval) clearInterval(interval);
|
|
17246
|
+
} catch (e) {
|
|
17247
|
+
warn('failed to measure SVG length', e);
|
|
17248
|
+
}
|
|
17245
17249
|
}
|
|
17246
|
-
|
|
17250
|
+
measureTotalLength();
|
|
17251
|
+
if (measuredLength === 0) interval = setInterval(measureTotalLength, 250);
|
|
17252
|
+
return function () {
|
|
17253
|
+
if (interval) clearInterval(interval);
|
|
17254
|
+
};
|
|
17255
|
+
}, [totalLength]);
|
|
17247
17256
|
return /*#__PURE__*/React.createElement(SvgOverlay, _assign({
|
|
17248
17257
|
height: "100%",
|
|
17249
17258
|
fill: "none",
|
|
@@ -21152,7 +21161,7 @@
|
|
|
21152
21161
|
var _a, _b, _c, _d;
|
|
21153
21162
|
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;
|
|
21154
21163
|
});
|
|
21155
|
-
var ProgressBar = styled.span(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: block;\n width: ", "%;\n height: 100%;\n"], ["\n display: block;\n width: ", "%;\n height: 100%;\n"])), function (props) {
|
|
21164
|
+
var ProgressBar = styled.span(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: block;\n width: ", "%;\n height: 100%;\n left: 0;\n position: absolute;\n"], ["\n display: block;\n width: ", "%;\n height: 100%;\n left: 0;\n position: absolute;\n"])), function (props) {
|
|
21156
21165
|
return props.$progress;
|
|
21157
21166
|
});
|
|
21158
21167
|
var ProgressIndicator = styled.span(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: block;\n height: 100%;\n background: ", ";\n animation: progressBar 3s ease-in-out;\n animation-fill-mode: both;\n\n @keyframes progressBar {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n }\n"], ["\n display: block;\n height: 100%;\n background: ", ";\n animation: progressBar 3s ease-in-out;\n animation-fill-mode: both;\n\n @keyframes progressBar {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n }\n"])), function (props) {
|