idmission-web-sdk 1.0.366 → 1.0.367

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/sdk2.esm.js CHANGED
@@ -14,7 +14,7 @@ import i18n from 'i18next';
14
14
  import { createPortal } from 'react-dom';
15
15
  import SignatureCanvas from 'react-signature-canvas';
16
16
 
17
- var webSdkVersion = '1.0.366';
17
+ var webSdkVersion = '1.0.367';
18
18
 
19
19
  function getPlatform() {
20
20
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -271,7 +271,7 @@ var LoaderButton = function LoaderButton(_a) {
271
271
  if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
272
272
  }, [finished, laddaLoaded]);
273
273
  return /*#__PURE__*/React__default.createElement(StyledButton, {
274
- className: "ladda-button ".concat(className),
274
+ className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
275
275
  "data-style": "expand-right",
276
276
  disabled: disabled,
277
277
  ref: buttonRef,
@@ -16422,9 +16422,9 @@ var ReadTextPrompt = function ReadTextPrompt(_a) {
16422
16422
  }, countdownRemaining), /*#__PURE__*/React__default.createElement(DoneButton, {
16423
16423
  variant: "positive",
16424
16424
  className: classNames.doneBtn,
16425
- onClick: onComplete,
16425
+ onClick: minReadingTimeElapsed ? onComplete : undefined,
16426
16426
  disabled: !minReadingTimeElapsed,
16427
- finished: minReadingTimeElapsed
16427
+ finished: true
16428
16428
  }, verbiage.doneBtnText)));
16429
16429
  };
16430
16430
  var ReadTextPromptContainer = styled.div(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n"], ["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n"])));