idmission-web-sdk 2.2.123 → 2.2.125
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/IdCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +25 -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 +25 -15
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +25 -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 +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,YAAY,EAKb,MAAM,OAAO,CAAA;AASd,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAUxE,eAAO,MAAM,8BAA8B,uIAUxC,4BAA4B,KAAG,
|
|
1
|
+
{"version":3,"file":"IdCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,YAAY,EAKb,MAAM,OAAO,CAAA;AASd,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAUxE,eAAO,MAAM,8BAA8B,uIAUxC,4BAA4B,KAAG,YAiMjC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelfieCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAmC,MAAM,OAAO,CAAA;AAW5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"SelfieCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAmC,MAAM,OAAO,CAAA;AAW5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAA;AAqBhF,eAAO,MAAM,kCAAkC,oIAS5C,gCAAgC,KAAG,YAuKrC,CAAA"}
|
|
@@ -233,7 +233,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
233
233
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
234
234
|
};
|
|
235
235
|
|
|
236
|
-
var webSdkVersion = '2.2.
|
|
236
|
+
var webSdkVersion = '2.2.125';
|
|
237
237
|
|
|
238
238
|
function getPlatform() {
|
|
239
239
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -4780,11 +4780,6 @@ var useIdCaptureStore = zustand.create()(middleware.devtools(function (set) {
|
|
|
4780
4780
|
}));
|
|
4781
4781
|
function IdCaptureStateProvider(_a) {
|
|
4782
4782
|
var children = _a.children;
|
|
4783
|
-
React.useEffect(function resetWhenProviderMounts() {
|
|
4784
|
-
useIdCaptureStore.getState().dispatch({
|
|
4785
|
-
type: 'resetWizard'
|
|
4786
|
-
});
|
|
4787
|
-
}, []);
|
|
4788
4783
|
var overrideWrongDocumentTypeGuidance = useIdCaptureStore(shallow.useShallow(function (state) {
|
|
4789
4784
|
return state.overrideWrongDocumentTypeGuidance;
|
|
4790
4785
|
}));
|
|
@@ -4804,6 +4799,13 @@ function IdCaptureStateProvider(_a) {
|
|
|
4804
4799
|
return window.removeEventListener('resize', onResize);
|
|
4805
4800
|
};
|
|
4806
4801
|
}, [onResize]);
|
|
4802
|
+
React.useEffect(function resetWhenProviderUnmounts() {
|
|
4803
|
+
return function () {
|
|
4804
|
+
return useIdCaptureStore.getState().dispatch({
|
|
4805
|
+
type: 'resetWizard'
|
|
4806
|
+
});
|
|
4807
|
+
};
|
|
4808
|
+
}, []);
|
|
4807
4809
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, children);
|
|
4808
4810
|
}
|
|
4809
4811
|
var dispatchIdCaptureAction = function dispatchIdCaptureAction(action) {
|
|
@@ -7215,6 +7217,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
|
|
|
7215
7217
|
}), modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer$1, {
|
|
7216
7218
|
className: classNames.continueBtnContainer
|
|
7217
7219
|
}, modelsReady && cameraReady && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
|
|
7220
|
+
autoFocus: true,
|
|
7218
7221
|
finished: true,
|
|
7219
7222
|
className: classNames.continueBtn,
|
|
7220
7223
|
variant: "positive",
|
|
@@ -7270,12 +7273,15 @@ var ProgressIndicator$1 = styled__default.default.span(templateObject_15$1 || (t
|
|
|
7270
7273
|
}, progressBarAnimation);
|
|
7271
7274
|
var CustomLoadingGraphic$1 = styled__default.default.img(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
|
|
7272
7275
|
var ContinueButtonContainer$1 = styled__default.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
7273
|
-
var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"])), function (props) {
|
|
7276
|
+
var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
|
|
7274
7277
|
var _a, _b, _c, _d, _e, _f;
|
|
7275
7278
|
return ((_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.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
7276
7279
|
}, function (props) {
|
|
7277
7280
|
var _a, _b, _c, _d, _e, _f;
|
|
7278
7281
|
return ((_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.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
|
|
7282
|
+
}, function (props) {
|
|
7283
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7284
|
+
return ((_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.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
|
|
7279
7285
|
});
|
|
7280
7286
|
var templateObject_1$z, templateObject_2$u, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18;
|
|
7281
7287
|
|
|
@@ -12067,6 +12073,13 @@ var StyledButtonsRow$6 = styled__default.default(ButtonsRow)(templateObject_2$c
|
|
|
12067
12073
|
var templateObject_1$e, templateObject_2$c;
|
|
12068
12074
|
|
|
12069
12075
|
var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
|
|
12076
|
+
var OverlayInner = styled__default.default.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
12077
|
+
var _a, _b, _c, _d;
|
|
12078
|
+
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.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
|
|
12079
|
+
}, function (props) {
|
|
12080
|
+
var _a, _b, _c, _d;
|
|
12081
|
+
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.textColor) !== null && _d !== void 0 ? _d : 'black';
|
|
12082
|
+
});
|
|
12070
12083
|
var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
|
|
12071
12084
|
var onDismissed = _a.onDismissed,
|
|
12072
12085
|
onUserCancel = _a.onUserCancel,
|
|
@@ -12185,6 +12198,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12185
12198
|
}), allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer, {
|
|
12186
12199
|
className: classNames.continueBtnContainer
|
|
12187
12200
|
}, allModelsReady && cameraReady && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
|
|
12201
|
+
autoFocus: true,
|
|
12188
12202
|
finished: true,
|
|
12189
12203
|
className: classNames.continueBtn,
|
|
12190
12204
|
variant: "positive",
|
|
@@ -12195,13 +12209,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
|
|
|
12195
12209
|
}
|
|
12196
12210
|
}, verbiage.continueText))))));
|
|
12197
12211
|
};
|
|
12198
|
-
var OverlayInner = styled__default.default.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
|
|
12199
|
-
var _a, _b, _c, _d;
|
|
12200
|
-
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.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
|
|
12201
|
-
}, function (props) {
|
|
12202
|
-
var _a, _b, _c, _d;
|
|
12203
|
-
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.textColor) !== null && _d !== void 0 ? _d : 'black';
|
|
12204
|
-
});
|
|
12205
12212
|
var OverlayHeader = styled__default.default.div(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"])), function (props) {
|
|
12206
12213
|
var _a;
|
|
12207
12214
|
return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
|
|
@@ -12237,12 +12244,15 @@ var ProgressIndicator = styled__default.default.span(templateObject_12 || (templ
|
|
|
12237
12244
|
}, progressBarAnimation);
|
|
12238
12245
|
var CustomLoadingGraphic = styled__default.default.img(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
12239
12246
|
var ContinueButtonContainer = styled__default.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
12240
|
-
var ContinueButton = styled__default.default(LoaderButton)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"])), function (props) {
|
|
12247
|
+
var ContinueButton = styled__default.default(LoaderButton)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
|
|
12241
12248
|
var _a, _b, _c, _d, _e, _f;
|
|
12242
12249
|
return ((_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.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
|
|
12243
12250
|
}, function (props) {
|
|
12244
12251
|
var _a, _b, _c, _d, _e, _f;
|
|
12245
12252
|
return ((_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.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
|
|
12253
|
+
}, function (props) {
|
|
12254
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12255
|
+
return ((_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.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
|
|
12246
12256
|
});
|
|
12247
12257
|
var templateObject_1$d, templateObject_2$b, templateObject_3$b, templateObject_4$6, templateObject_5$3, templateObject_6$3, templateObject_7$2, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
12248
12258
|
|