labmaker-plugin 0.0.357 → 0.0.358

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.
@@ -887,7 +887,7 @@ const Fu = {
887
887
  return this.stepperStore.getShowFeedbackAttempts;
888
888
  },
889
889
  feedbackHeader() {
890
- return this.stepperStore.getShowFeedbackAttempts ? "Too many Attempts" : this.content.feedbackHeader;
890
+ return this.stepperStore.getShowFeedbackAttempts && !this.content.feedbackHeader ? "Too Many Attempts" : this.content.feedbackHeader;
891
891
  },
892
892
  feedbackWidth() {
893
893
  return this.content.feedbackWidth ? this.content.feedbackWidth : "50%";
@@ -1687,6 +1687,13 @@ const vh = {
1687
1687
  },
1688
1688
  showFeedback() {
1689
1689
  return !!this.stepperStore.getShowFeedback;
1690
+ },
1691
+ renderMath() {
1692
+ this.$mathjax && MathJax.typesetPromise().then(() => {
1693
+ console.log("MathJax typesetting done!");
1694
+ }).catch((A) => {
1695
+ console.error("MathJax typesetting failed:", A);
1696
+ });
1690
1697
  }
1691
1698
  },
1692
1699
  mounted() {
@@ -1696,7 +1703,7 @@ const vh = {
1696
1703
  A[0].focus();
1697
1704
  });
1698
1705
  }
1699
- this.content.input && (this.input = this.content.input, this.choicesComplete(!0, this.content.input), this.stepperStore.finishSteps());
1706
+ this.content.input && (this.input = this.content.input, this.choicesComplete(!0, this.content.input), this.stepperStore.finishSteps()), this.renderMath();
1700
1707
  },
1701
1708
  beforeMount() {
1702
1709
  this.stepperStore = this.stepperMain(), this.stepperStore = this.stepperMain(), this.stepperStore.resetSteps("el-textarea__inner"), this.content.attempts && (this.totalAttempts = this.content.attempts);
@@ -1966,7 +1973,7 @@ const Sh = {
1966
1973
  return !1;
1967
1974
  return !0;
1968
1975
  }
1969
- this.getAttempt < Number(this.content.attempts) ? c(this.selected, this.correctChoices) ? (this.stepperStore.showFeedback = !0, this.feedbackObject.feedbackHeader = this.content.correctHeader, this.feedbackObject.feedback = this.content.correctFeedback, this.choicesComplete(!0)) : (this.feedbackObject.feedbackHeader = this.content.incorrectHeader, this.feedbackObject.feedback = this.content.incorrectFeedback, this.stepperStore.attempts = this.getAttempt + 1) : (c(this.selected, this.correctChoices) || (this.stepperStore.showFeedbackAttempts = !0, this.feedbackObject.feedbackAttempts = this.content.feedbackAttempts, this.selected = this.correctChoices), this.choicesComplete(!1)), this.feedbackIndex = A, this.stepperStore.showFeedback = !0, setTimeout(() => {
1976
+ this.getAttempt < Number(this.content.attempts) ? c(this.selected, this.correctChoices) ? (this.stepperStore.showFeedback = !0, this.feedbackObject.feedbackHeader = this.content.correctHeader, this.feedbackObject.feedback = this.content.correctFeedback, this.choicesComplete(!0)) : (this.feedbackObject.feedbackHeader = this.content.incorrectHeader, this.feedbackObject.feedback = this.content.incorrectFeedback, this.stepperStore.attempts = this.getAttempt + 1) : (c(this.selected, this.correctChoices) || (this.stepperStore.showFeedbackAttempts = !0, this.feedbackObject.feedbackAttempts = this.content.feedbackAttempts, this.content.failedHeader && (this.feedbackObject.feedbackHeader = this.content.failedHeader), this.selected = this.correctChoices), this.choicesComplete(!1)), this.feedbackIndex = A, this.stepperStore.showFeedback = !0, setTimeout(() => {
1970
1977
  document.getElementById("feedbackClose") && document.getElementById("feedbackClose").focus();
1971
1978
  });
1972
1979
  },
@@ -2027,7 +2034,7 @@ function Th(A, c, e, a, r, t) {
2027
2034
  }, null, 8, ["content"])) : y("", !0)
2028
2035
  ], 2);
2029
2036
  }
2030
- const Dh = /* @__PURE__ */ a2(Sh, [["render", Th], ["__scopeId", "data-v-38862b63"]]);
2037
+ const Dh = /* @__PURE__ */ a2(Sh, [["render", Th], ["__scopeId", "data-v-958cb42e"]]);
2031
2038
  const XA = {
2032
2039
  y: {
2033
2040
  t: "top",