idmission-web-sdk 2.1.89 → 2.1.91

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
- export declare const defaultFocusModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/Focus/Focus-20240920_141944.tflite";
1
+ export declare const defaultFocusModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/Focus/Focus-20241008_102708.tflite";
@@ -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.1.89';
237
+ var webSdkVersion = '2.1.91';
238
238
 
239
239
  function getPlatform() {
240
240
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -2753,7 +2753,7 @@ var DEFAULT_CDN_URL = 'https://websdk-cdn-dev.idmission.com/assets';
2753
2753
 
2754
2754
  var defaultDocumentDetectorModelPath = "".concat(DEFAULT_CDN_URL, "/models/docdetectmp20240825/model_fp16.tflite");
2755
2755
 
2756
- var defaultFocusModelPath = "".concat(DEFAULT_CDN_URL, "/models/Focus/Focus-20240920_141944.tflite");
2756
+ var defaultFocusModelPath = "".concat(DEFAULT_CDN_URL, "/models/Focus/Focus-20241008_102708.tflite");
2757
2757
 
2758
2758
  var defaultFaceDetectorModelPath = "".concat(DEFAULT_CDN_URL, "/models/blazeface20240207/blaze_face_short_range.tflite");
2759
2759
 
@@ -8480,7 +8480,7 @@ function IdCardBorder(_a) {
8480
8480
  borderOpacity: 0.25,
8481
8481
  borderColor: wavesColor,
8482
8482
  borderWidth: borderWidth,
8483
- className: "pulse"
8483
+ className: "idmSdkWaves"
8484
8484
  }), /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
8485
8485
  width: width,
8486
8486
  height: height,
@@ -8488,7 +8488,7 @@ function IdCardBorder(_a) {
8488
8488
  borderOpacity: 0.25,
8489
8489
  borderColor: wavesColor,
8490
8490
  borderWidth: borderWidth,
8491
- className: "pulse"
8491
+ className: "idmSdkWaves"
8492
8492
  }), /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
8493
8493
  width: width,
8494
8494
  height: height,
@@ -8496,14 +8496,14 @@ function IdCardBorder(_a) {
8496
8496
  borderOpacity: 0.25,
8497
8497
  borderColor: wavesColor,
8498
8498
  borderWidth: borderWidth,
8499
- className: "pulse"
8499
+ className: "idmSdkWaves"
8500
8500
  }))), /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
8501
8501
  width: width,
8502
8502
  height: height,
8503
8503
  borderRadius: borderRadius,
8504
8504
  borderColor: borderColor,
8505
8505
  borderWidth: borderWidth,
8506
- className: "pulseOrigin"
8506
+ className: "idmSdkWavesOrigin"
8507
8507
  }), (status === 'capturing' || progress > 0) && ( /*#__PURE__*/React__namespace.default.createElement(IdCardBorderSvg, {
8508
8508
  key: "progress".concat(progressResets),
8509
8509
  width: width,
@@ -8567,12 +8567,12 @@ function IdCardBorderSvg(_a) {
8567
8567
  strokeOpacity: borderOpacity,
8568
8568
  strokeDashoffset: isProgressBar ? resolvedProgress : undefined,
8569
8569
  strokeDasharray: isProgressBar ? totalLength : undefined,
8570
- className: isProgressBar ? "progress ".concat(progressPaused ? 'paused' : '') : ''
8570
+ className: isProgressBar ? "idmSdkProgressBorder ".concat(progressPaused ? 'idmSdkProgressPaused' : '') : ''
8571
8571
  }));
8572
8572
  }
8573
- var IdCardBorderContainer = styled__default.default.div(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n & > .pulse {\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 & > .pulse {\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"])));
8573
+ var IdCardBorderContainer = styled__default.default.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"])));
8574
8574
  var SvgOverlay = styled__default.default.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"])));
8575
- var IdCardBorderRect = styled__default.default.rect(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n &.progress {\n animation: dash ", "\n ", ";\n }\n\n &.paused {\n animation-play-state: paused;\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n"], ["\n &.progress {\n animation: dash ", "\n ", ";\n }\n\n &.paused {\n animation-play-state: paused;\n }\n\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n"])), function (props) {
8575
+ var IdCardBorderRect = styled__default.default.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) {
8576
8576
  var _a;
8577
8577
  return (_a = props.$speed) !== null && _a !== void 0 ? _a : '3s';
8578
8578
  }, function (props) {
@@ -10899,7 +10899,7 @@ var HeadGuideSvg = /*#__PURE__*/React.forwardRef(function (_a, ref) {
10899
10899
  }))));
10900
10900
  });
10901
10901
  HeadGuideSvg.displayName = 'HeadGuideSvg';
10902
- var PulsingHeadGuideContainer = styled__default.default.div(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .pulse {\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 & > .pulseOrigin {\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 & > .pulse {\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 & > .pulseOrigin {\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"])));
10902
+ var PulsingHeadGuideContainer = styled__default.default.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"])));
10903
10903
  function HeadGuide(_a) {
10904
10904
  var _b;
10905
10905
  var _c = _a.status,
@@ -10923,19 +10923,19 @@ function HeadGuide(_a) {
10923
10923
  return /*#__PURE__*/React__namespace.default.createElement(PulsingHeadGuideContainer, {
10924
10924
  ref: parentRef
10925
10925
  }, status === 'ready' && ( /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
10926
- className: "pulse",
10926
+ className: "idmSdkWaves",
10927
10927
  borderOpacity: 0.25,
10928
10928
  borderColor: "#287ec6",
10929
10929
  width: scaledWidth,
10930
10930
  height: parentHeight
10931
10931
  })), /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
10932
- className: "pulse",
10932
+ className: "idmSdkWaves",
10933
10933
  borderOpacity: 0.25,
10934
10934
  borderColor: "#287ec6",
10935
10935
  width: scaledWidth,
10936
10936
  height: parentHeight
10937
10937
  })), /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
10938
- className: "pulse",
10938
+ className: "idmSdkWaves",
10939
10939
  borderOpacity: 0.25,
10940
10940
  borderColor: "#287ec6",
10941
10941
  width: scaledWidth,
@@ -10943,7 +10943,7 @@ function HeadGuide(_a) {
10943
10943
  })))), /*#__PURE__*/React__namespace.default.createElement(HeadGuideSvg, _assign({}, props, {
10944
10944
  ref: ref,
10945
10945
  borderOpacity: 1,
10946
- className: "pulseOrigin ".concat((_b = props.className) !== null && _b !== void 0 ? _b : ''),
10946
+ className: "idmSdkWavesOrigin ".concat((_b = props.className) !== null && _b !== void 0 ? _b : ''),
10947
10947
  status: status,
10948
10948
  width: scaledWidth,
10949
10949
  height: parentHeight