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.
@@ -141,7 +141,7 @@
141
141
  return cooked;
142
142
  }
143
143
 
144
- var webSdkVersion = '1.0.366';
144
+ var webSdkVersion = '1.0.367';
145
145
 
146
146
  function getPlatform() {
147
147
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -671,7 +671,7 @@
671
671
  if (laddaLoaded && finished) (_a = laddaRef.current) === null || _a === void 0 ? void 0 : _a.stop();
672
672
  }, [finished, laddaLoaded]);
673
673
  return /*#__PURE__*/React__default['default'].createElement(StyledButton, {
674
- className: "ladda-button ".concat(className),
674
+ className: "ladda-button ".concat(className, " ").concat(disabled ? 'disabled' : ''),
675
675
  "data-style": "expand-right",
676
676
  disabled: disabled,
677
677
  ref: buttonRef,
@@ -20318,9 +20318,9 @@
20318
20318
  }, countdownRemaining), /*#__PURE__*/React__default['default'].createElement(DoneButton, {
20319
20319
  variant: "positive",
20320
20320
  className: classNames.doneBtn,
20321
- onClick: onComplete,
20321
+ onClick: minReadingTimeElapsed ? onComplete : undefined,
20322
20322
  disabled: !minReadingTimeElapsed,
20323
- finished: minReadingTimeElapsed
20323
+ finished: true
20324
20324
  }, verbiage.doneBtnText)));
20325
20325
  };
20326
20326
  var ReadTextPromptContainer = styled__default['default'].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"])));