eat-js-sdk 0.0.15 → 0.0.17

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.
@@ -1644,6 +1644,7 @@
1644
1644
  c() {
1645
1645
  span = element("span");
1646
1646
  if_block.c();
1647
+ attr(span, "aria-hidden", "true");
1647
1648
  attr(span, "class", span_class_value = /*isResultCorrect*/
1648
1649
  (ctx[2] ? "text-green-800" : "text-red-800") + " p-0.5");
1649
1650
  },
@@ -1762,7 +1763,7 @@
1762
1763
  let t4;
1763
1764
  let t5;
1764
1765
  let button_aria_label_value;
1765
- let button_aria_roledescription_value;
1766
+ let button_aria_description_value;
1766
1767
  let button_class_value;
1767
1768
  let current;
1768
1769
  let mounted;
@@ -1810,19 +1811,19 @@
1810
1811
  attr(span1, "class", "grow flex items-center");
1811
1812
  attr(button, "aria-label", button_aria_label_value = `${/*selectedOption*/
1812
1813
  ctx[3] === /*option*/
1813
- ctx[17].id ? `Selected option ${useMCQ_default(
1814
- /*index*/
1815
- ctx[19]
1816
- )} ${!/*isFinished*/
1814
+ ctx[17].id ? `${!/*isFinished*/
1817
1815
  ctx[1] ? "" : (
1818
1816
  /*isResultCorrect*/
1819
- ctx[2] ? "(correct)" : "(incorrect)"
1817
+ ctx[2] ? "(Correct)" : "(Incorrect)"
1818
+ )} Selected option ${useMCQ_default(
1819
+ /*index*/
1820
+ ctx[19]
1820
1821
  )}` : `Option ${useMCQ_default(
1821
1822
  /*index*/
1822
1823
  ctx[19]
1823
1824
  )}`}: ${/*option*/
1824
1825
  ctx[17].answer}`);
1825
- attr(button, "aria-roledescription", button_aria_roledescription_value = /*isFinished*/
1826
+ attr(button, "aria-description", button_aria_description_value = /*isFinished*/
1826
1827
  ctx[1] && /*resultFeedback*/
1827
1828
  ctx[5] && /*selectedOption*/
1828
1829
  ctx[3] === /*option*/
@@ -1902,13 +1903,13 @@
1902
1903
  if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
1903
1904
  14 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
1904
1905
  ctx[3] === /*option*/
1905
- ctx[17].id ? `Selected option ${useMCQ_default(
1906
- /*index*/
1907
- ctx[19]
1908
- )} ${!/*isFinished*/
1906
+ ctx[17].id ? `${!/*isFinished*/
1909
1907
  ctx[1] ? "" : (
1910
1908
  /*isResultCorrect*/
1911
- ctx[2] ? "(correct)" : "(incorrect)"
1909
+ ctx[2] ? "(Correct)" : "(Incorrect)"
1910
+ )} Selected option ${useMCQ_default(
1911
+ /*index*/
1912
+ ctx[19]
1912
1913
  )}` : `Option ${useMCQ_default(
1913
1914
  /*index*/
1914
1915
  ctx[19]
@@ -1917,14 +1918,14 @@
1917
1918
  attr(button, "aria-label", button_aria_label_value);
1918
1919
  }
1919
1920
  if (!current || dirty & /*isFinished, resultFeedback, selectedOption, resultFeedbackTitle*/
1920
- 58 && button_aria_roledescription_value !== (button_aria_roledescription_value = /*isFinished*/
1921
+ 58 && button_aria_description_value !== (button_aria_description_value = /*isFinished*/
1921
1922
  ctx[1] && /*resultFeedback*/
1922
1923
  ctx[5] && /*selectedOption*/
1923
1924
  ctx[3] === /*option*/
1924
1925
  ctx[17].id ? `${/*resultFeedbackTitle*/
1925
1926
  ctx[4]} ${/*resultFeedback*/
1926
1927
  ctx[5]}` : "")) {
1927
- attr(button, "aria-roledescription", button_aria_roledescription_value);
1928
+ attr(button, "aria-description", button_aria_description_value);
1928
1929
  }
1929
1930
  if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
1930
1931
  14 && button_class_value !== (button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Authoring tool frontend SDK",
5
5
  "contributors": [
6
6
  {