idmission-web-sdk 2.1.89 → 2.1.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/lib/models/defaults/Focus.d.ts +1 -1
- package/dist/sdk2.cjs.development.js +14 -14
- 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 +14 -14
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +14 -14
- 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/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.1.
|
|
207
|
+
var webSdkVersion = '2.1.90';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2723,7 +2723,7 @@ var DEFAULT_CDN_URL = 'https://websdk-cdn-dev.idmission.com/assets';
|
|
|
2723
2723
|
|
|
2724
2724
|
var defaultDocumentDetectorModelPath = "".concat(DEFAULT_CDN_URL, "/models/docdetectmp20240825/model_fp16.tflite");
|
|
2725
2725
|
|
|
2726
|
-
var defaultFocusModelPath = "".concat(DEFAULT_CDN_URL, "/models/Focus/Focus-
|
|
2726
|
+
var defaultFocusModelPath = "".concat(DEFAULT_CDN_URL, "/models/Focus/Focus-20241008_102708.tflite");
|
|
2727
2727
|
|
|
2728
2728
|
var defaultFaceDetectorModelPath = "".concat(DEFAULT_CDN_URL, "/models/blazeface20240207/blaze_face_short_range.tflite");
|
|
2729
2729
|
|
|
@@ -8450,7 +8450,7 @@ function IdCardBorder(_a) {
|
|
|
8450
8450
|
borderOpacity: 0.25,
|
|
8451
8451
|
borderColor: wavesColor,
|
|
8452
8452
|
borderWidth: borderWidth,
|
|
8453
|
-
className: "
|
|
8453
|
+
className: "idmSdkWaves"
|
|
8454
8454
|
}), /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
|
|
8455
8455
|
width: width,
|
|
8456
8456
|
height: height,
|
|
@@ -8458,7 +8458,7 @@ function IdCardBorder(_a) {
|
|
|
8458
8458
|
borderOpacity: 0.25,
|
|
8459
8459
|
borderColor: wavesColor,
|
|
8460
8460
|
borderWidth: borderWidth,
|
|
8461
|
-
className: "
|
|
8461
|
+
className: "idmSdkWaves"
|
|
8462
8462
|
}), /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
|
|
8463
8463
|
width: width,
|
|
8464
8464
|
height: height,
|
|
@@ -8466,14 +8466,14 @@ function IdCardBorder(_a) {
|
|
|
8466
8466
|
borderOpacity: 0.25,
|
|
8467
8467
|
borderColor: wavesColor,
|
|
8468
8468
|
borderWidth: borderWidth,
|
|
8469
|
-
className: "
|
|
8469
|
+
className: "idmSdkWaves"
|
|
8470
8470
|
}))), /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
|
|
8471
8471
|
width: width,
|
|
8472
8472
|
height: height,
|
|
8473
8473
|
borderRadius: borderRadius,
|
|
8474
8474
|
borderColor: borderColor,
|
|
8475
8475
|
borderWidth: borderWidth,
|
|
8476
|
-
className: "
|
|
8476
|
+
className: "idmSdkWavesOrigin"
|
|
8477
8477
|
}), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__default.createElement(IdCardBorderSvg, {
|
|
8478
8478
|
key: "progress".concat(progressResets),
|
|
8479
8479
|
width: width,
|
|
@@ -8537,12 +8537,12 @@ function IdCardBorderSvg(_a) {
|
|
|
8537
8537
|
strokeOpacity: borderOpacity,
|
|
8538
8538
|
strokeDashoffset: isProgressBar ? resolvedProgress : undefined,
|
|
8539
8539
|
strokeDasharray: isProgressBar ? totalLength : undefined,
|
|
8540
|
-
className: isProgressBar ? "
|
|
8540
|
+
className: isProgressBar ? "idmSdkProgressBorder ".concat(progressPaused ? 'idmSdkProgressPaused' : '') : ''
|
|
8541
8541
|
}));
|
|
8542
8542
|
}
|
|
8543
|
-
var IdCardBorderContainer = styled.div(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n & > .
|
|
8543
|
+
var IdCardBorderContainer = styled.div(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n & > .idmSdkWaves {\n position: absolute;\n animation: glow-grow 2s ease-out infinite;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n\n @keyframes glow-grow {\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n"], ["\n & > .idmSdkWaves {\n position: absolute;\n animation: glow-grow 2s ease-out infinite;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n\n @keyframes glow-grow {\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n"])));
|
|
8544
8544
|
var SvgOverlay = styled.svg(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"])));
|
|
8545
|
-
var IdCardBorderRect = styled.rect(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n &.
|
|
8545
|
+
var IdCardBorderRect = styled.rect(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n &.idmSdkProgressBorder {\n animation: dash ", "\n ", ";\n }\n\n &.idmSdkProgressPaused {\n animation-play-state: paused;\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n"], ["\n &.idmSdkProgressBorder {\n animation: dash ", "\n ", ";\n }\n\n &.idmSdkProgressPaused {\n animation-play-state: paused;\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n"])), function (props) {
|
|
8546
8546
|
var _a;
|
|
8547
8547
|
return (_a = props.$speed) !== null && _a !== void 0 ? _a : '3s';
|
|
8548
8548
|
}, function (props) {
|
|
@@ -10869,7 +10869,7 @@ var HeadGuideSvg = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
10869
10869
|
}))));
|
|
10870
10870
|
});
|
|
10871
10871
|
HeadGuideSvg.displayName = 'HeadGuideSvg';
|
|
10872
|
-
var PulsingHeadGuideContainer = styled.div(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .
|
|
10872
|
+
var PulsingHeadGuideContainer = styled.div(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: glow-grow 2s ease-out infinite;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n\n @keyframes glow-grow {\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n"], ["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: glow-grow 2s ease-out infinite;\n\n &:nth-child(2) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(3) {\n animation-delay: 1.33s;\n }\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n\n @keyframes glow-grow {\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale(2);\n opacity: 0;\n }\n }\n"])));
|
|
10873
10873
|
function HeadGuide(_a) {
|
|
10874
10874
|
var _b;
|
|
10875
10875
|
var _c = _a.status,
|
|
@@ -10893,19 +10893,19 @@ function HeadGuide(_a) {
|
|
|
10893
10893
|
return /*#__PURE__*/React__default.createElement(PulsingHeadGuideContainer, {
|
|
10894
10894
|
ref: parentRef
|
|
10895
10895
|
}, status === 'ready' && ( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
10896
|
-
className: "
|
|
10896
|
+
className: "idmSdkWaves",
|
|
10897
10897
|
borderOpacity: 0.25,
|
|
10898
10898
|
borderColor: "#287ec6",
|
|
10899
10899
|
width: scaledWidth,
|
|
10900
10900
|
height: parentHeight
|
|
10901
10901
|
})), /*#__PURE__*/React__default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
10902
|
-
className: "
|
|
10902
|
+
className: "idmSdkWaves",
|
|
10903
10903
|
borderOpacity: 0.25,
|
|
10904
10904
|
borderColor: "#287ec6",
|
|
10905
10905
|
width: scaledWidth,
|
|
10906
10906
|
height: parentHeight
|
|
10907
10907
|
})), /*#__PURE__*/React__default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
10908
|
-
className: "
|
|
10908
|
+
className: "idmSdkWaves",
|
|
10909
10909
|
borderOpacity: 0.25,
|
|
10910
10910
|
borderColor: "#287ec6",
|
|
10911
10911
|
width: scaledWidth,
|
|
@@ -10913,7 +10913,7 @@ function HeadGuide(_a) {
|
|
|
10913
10913
|
})))), /*#__PURE__*/React__default.createElement(HeadGuideSvg, _assign({}, props, {
|
|
10914
10914
|
ref: ref,
|
|
10915
10915
|
borderOpacity: 1,
|
|
10916
|
-
className: "
|
|
10916
|
+
className: "idmSdkWavesOrigin ".concat((_b = props.className) !== null && _b !== void 0 ? _b : ''),
|
|
10917
10917
|
status: status,
|
|
10918
10918
|
width: scaledWidth,
|
|
10919
10919
|
height: parentHeight
|