idmission-web-sdk 2.3.50 → 2.3.52

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.
@@ -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.3.50';
214
+ var webSdkVersion = '2.3.52';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -20253,17 +20253,20 @@
20253
20253
  HeadGuideSvg.displayName = 'HeadGuideSvg';
20254
20254
  var PulsingHeadGuideContainer = styled.div(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\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 display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\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"])), wavesAnimation);
20255
20255
  function HeadGuide(_a) {
20256
- var _b;
20257
- var _c = _a.status,
20258
- status = _c === void 0 ? 'ready' : _c,
20256
+ var _b, _c, _d, _e, _f, _g, _h;
20257
+ var _j = _a.status,
20258
+ status = _j === void 0 ? 'ready' : _j,
20259
20259
  props = __rest(_a, ["status"]);
20260
20260
  var ref = React.useRef(null);
20261
- var _d = useResizeObserver(),
20262
- parentRef = _d.ref,
20263
- parentHeight = _d.height;
20264
- var _e = React.useState(),
20265
- contentAspectRatio = _e[0],
20266
- setContentAspectRatio = _e[1];
20261
+ var _k = useResizeObserver(),
20262
+ parentRef = _k.ref,
20263
+ parentHeight = _k.height;
20264
+ var _l = React.useState(),
20265
+ contentAspectRatio = _l[0],
20266
+ setContentAspectRatio = _l[1];
20267
+ var theme = styled.useTheme();
20268
+ var wavesDisabled = (_d = (_c = (_b = theme.selfieCapture) === null || _b === void 0 ? void 0 : _b.guides) === null || _c === void 0 ? void 0 : _c.wavesDisabled) !== null && _d !== void 0 ? _d : false;
20269
+ var wavesColor = (_g = (_f = (_e = theme.selfieCapture) === null || _e === void 0 ? void 0 : _e.guides) === null || _f === void 0 ? void 0 : _f.wavesColor) !== null && _g !== void 0 ? _g : '#287ec6';
20267
20270
  React.useEffect(function () {
20268
20271
  if (!ref.current) return;
20269
20272
  var bbox = ref.current.getBBox();
@@ -20274,28 +20277,28 @@
20274
20277
  }, [contentAspectRatio, parentHeight]);
20275
20278
  return /*#__PURE__*/React.createElement(PulsingHeadGuideContainer, {
20276
20279
  ref: parentRef
20277
- }, status === 'ready' && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeadGuideSvg, _assign({}, props, {
20280
+ }, status === 'ready' && !wavesDisabled && ( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(HeadGuideSvg, _assign({}, props, {
20278
20281
  className: "idmSdkWaves",
20279
20282
  borderOpacity: 0.25,
20280
- borderColor: "#287ec6",
20283
+ borderColor: wavesColor,
20281
20284
  width: scaledWidth,
20282
20285
  height: parentHeight
20283
20286
  })), /*#__PURE__*/React.createElement(HeadGuideSvg, _assign({}, props, {
20284
20287
  className: "idmSdkWaves",
20285
20288
  borderOpacity: 0.25,
20286
- borderColor: "#287ec6",
20289
+ borderColor: wavesColor,
20287
20290
  width: scaledWidth,
20288
20291
  height: parentHeight
20289
20292
  })), /*#__PURE__*/React.createElement(HeadGuideSvg, _assign({}, props, {
20290
20293
  className: "idmSdkWaves",
20291
20294
  borderOpacity: 0.25,
20292
- borderColor: "#287ec6",
20295
+ borderColor: wavesColor,
20293
20296
  width: scaledWidth,
20294
20297
  height: parentHeight
20295
20298
  })))), /*#__PURE__*/React.createElement(HeadGuideSvg, _assign({}, props, {
20296
20299
  ref: ref,
20297
20300
  borderOpacity: 1,
20298
- className: "idmSdkWavesOrigin ".concat((_b = props.className) !== null && _b !== void 0 ? _b : ''),
20301
+ className: "idmSdkWavesOrigin ".concat((_h = props.className) !== null && _h !== void 0 ? _h : ''),
20299
20302
  status: status,
20300
20303
  width: scaledWidth,
20301
20304
  height: parentHeight
@@ -23882,6 +23885,7 @@
23882
23885
  "$textColor": colors.guidanceMessageTextColor
23883
23886
  }, verbiage.guidanceMessageText))), /*#__PURE__*/React.createElement(GuidesComponent, {
23884
23887
  status: "success",
23888
+ requestedAction: "CAPTURE_SIGNATURE",
23885
23889
  key: "video-signature-guides-".concat(headTrackingSatisfied ? 'satisfied' : 'unsatisfied'),
23886
23890
  minSignaturePadPoints: minSignaturePadPoints,
23887
23891
  headTrackingSatisfied: headTrackingSatisfied,