eat-js-sdk 0.0.17 → 0.0.18

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.
@@ -1555,8 +1555,8 @@
1555
1555
  ctx2[0] ? "absolute inset-0 bg-transparent z-50" : "")) {
1556
1556
  attr(div0, "class", div0_class_value);
1557
1557
  }
1558
- if (dirty & /*selectedOption, Object, options, isFinished, isResultCorrect, resultFeedback, resultFeedbackTitle, handleOptionClick*/
1559
- 830) {
1558
+ if (dirty & /*selectedOption, Object, options, isFinished, isResultCorrect, handleOptionClick*/
1559
+ 782) {
1560
1560
  each_value = ensure_array_like(Object.entries(
1561
1561
  /*options*/
1562
1562
  ctx2[8]
@@ -1763,7 +1763,6 @@
1763
1763
  let t4;
1764
1764
  let t5;
1765
1765
  let button_aria_label_value;
1766
- let button_aria_description_value;
1767
1766
  let button_class_value;
1768
1767
  let current;
1769
1768
  let mounted;
@@ -1811,25 +1810,18 @@
1811
1810
  attr(span1, "class", "grow flex items-center");
1812
1811
  attr(button, "aria-label", button_aria_label_value = `${/*selectedOption*/
1813
1812
  ctx[3] === /*option*/
1814
- ctx[17].id ? `${!/*isFinished*/
1815
- ctx[1] ? "" : (
1816
- /*isResultCorrect*/
1817
- ctx[2] ? "(Correct)" : "(Incorrect)"
1818
- )} Selected option ${useMCQ_default(
1813
+ ctx[17].id ? `Selected option ${useMCQ_default(
1819
1814
  /*index*/
1820
1815
  ctx[19]
1821
1816
  )}` : `Option ${useMCQ_default(
1822
1817
  /*index*/
1823
1818
  ctx[19]
1824
1819
  )}`}: ${/*option*/
1825
- ctx[17].answer}`);
1826
- attr(button, "aria-description", button_aria_description_value = /*isFinished*/
1827
- ctx[1] && /*resultFeedback*/
1828
- ctx[5] && /*selectedOption*/
1829
- ctx[3] === /*option*/
1830
- ctx[17].id ? `${/*resultFeedbackTitle*/
1831
- ctx[4]} ${/*resultFeedback*/
1832
- ctx[5]}` : "");
1820
+ ctx[17].answer} ${!/*isFinished*/
1821
+ ctx[1] ? "" : (
1822
+ /*isResultCorrect*/
1823
+ ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
1824
+ )}`);
1833
1825
  attr(button, "class", button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
1834
1826
  (ctx[3] === /*option*/
1835
1827
  ctx[17].id ? "selected" : "") + " " + (!/*isFinished*/
@@ -1903,30 +1895,20 @@
1903
1895
  if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
1904
1896
  14 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
1905
1897
  ctx[3] === /*option*/
1906
- ctx[17].id ? `${!/*isFinished*/
1907
- ctx[1] ? "" : (
1908
- /*isResultCorrect*/
1909
- ctx[2] ? "(Correct)" : "(Incorrect)"
1910
- )} Selected option ${useMCQ_default(
1898
+ ctx[17].id ? `Selected option ${useMCQ_default(
1911
1899
  /*index*/
1912
1900
  ctx[19]
1913
1901
  )}` : `Option ${useMCQ_default(
1914
1902
  /*index*/
1915
1903
  ctx[19]
1916
1904
  )}`}: ${/*option*/
1917
- ctx[17].answer}`)) {
1905
+ ctx[17].answer} ${!/*isFinished*/
1906
+ ctx[1] ? "" : (
1907
+ /*isResultCorrect*/
1908
+ ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
1909
+ )}`)) {
1918
1910
  attr(button, "aria-label", button_aria_label_value);
1919
1911
  }
1920
- if (!current || dirty & /*isFinished, resultFeedback, selectedOption, resultFeedbackTitle*/
1921
- 58 && button_aria_description_value !== (button_aria_description_value = /*isFinished*/
1922
- ctx[1] && /*resultFeedback*/
1923
- ctx[5] && /*selectedOption*/
1924
- ctx[3] === /*option*/
1925
- ctx[17].id ? `${/*resultFeedbackTitle*/
1926
- ctx[4]} ${/*resultFeedback*/
1927
- ctx[5]}` : "")) {
1928
- attr(button, "aria-description", button_aria_description_value);
1929
- }
1930
1912
  if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
1931
1913
  14 && button_class_value !== (button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
1932
1914
  (ctx[3] === /*option*/
@@ -2106,8 +2088,8 @@
2106
2088
  },
2107
2089
  p(ctx2, [dirty]) {
2108
2090
  const promptbody_changes = {};
2109
- if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect, resultFeedback, resultFeedbackTitle, isDataSaving*/
2110
- 1048639) {
2091
+ if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect, isDataSaving*/
2092
+ 1048591) {
2111
2093
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
2112
2094
  }
2113
2095
  promptbody.$set(promptbody_changes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Authoring tool frontend SDK",
5
5
  "contributors": [
6
6
  {