eat-js-sdk 2.0.20 → 2.0.22

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.
@@ -6710,7 +6710,7 @@ function Sd(e, t, r) {
6710
6710
  }));
6711
6711
  const l = s.isValid, c = _d(t, n), d = Cd(t, n, c), p = ga(n);
6712
6712
  let h = !1;
6713
- return t.mode === Q.INTERACTIVE && (h = i), t.mode === Q.SESSION && t.isFinished && (h = !l || o), {
6713
+ return t.mode === Q.INTERACTIVE && (h = i), t.mode === Q.SESSION && t.isFinished && (h = !0), {
6714
6714
  showFeedback: h,
6715
6715
  isAllCorrect: l,
6716
6716
  isSkipped: o,
@@ -7856,7 +7856,7 @@ const dn = (e) => Object.keys(e.options), Qo = (e, t) => e.options[t]?.correct_a
7856
7856
  if (!Ei(t))
7857
7857
  return "";
7858
7858
  const { correct: r, total: n } = Xo(e, t);
7859
- return r === n ? e.feedback.correct || "Excellent! All answers are correct." : e.feedback.incorrect || "Some answers are incorrect. Please review your selections.";
7859
+ return r === n ? e.feedback.correct : e.feedback.incorrect;
7860
7860
  }, wa = (e) => dn(e).map((r) => ({ id: r, choice: "" })), Jo = (e) => dn(e).map((r) => ({
7861
7861
  id: r,
7862
7862
  choice: ru(e, r)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "2.0.20",
3
+ "version": "2.0.22",
4
4
  "change version": "2.0.0",
5
5
  "description": "Authoring tool frontend SDK",
6
6
  "contributors": [