eat-js-sdk 0.0.10 → 0.0.11

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.
@@ -1261,6 +1261,8 @@
1261
1261
  attr(svg, "viewBox", "0 0 20 20");
1262
1262
  attr(svg, "fill", "none");
1263
1263
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
1264
+ attr(svg, "role", "img");
1265
+ attr(svg, "aria-label", "Check Icon");
1264
1266
  },
1265
1267
  m(target, anchor) {
1266
1268
  insert(target, svg, anchor);
@@ -1302,6 +1304,8 @@
1302
1304
  attr(svg, "viewBox", "0 0 20 20");
1303
1305
  attr(svg, "fill", "none");
1304
1306
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
1307
+ attr(svg, "role", "img");
1308
+ attr(svg, "aria-label", "Info Icon");
1305
1309
  },
1306
1310
  m(target, anchor) {
1307
1311
  insert(target, svg, anchor);
@@ -1678,6 +1682,8 @@
1678
1682
  attr(svg, "viewBox", "0 0 20 20");
1679
1683
  attr(svg, "fill", "none");
1680
1684
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
1685
+ attr(svg, "role", "img");
1686
+ attr(svg, "aria-label", "Cross Icon");
1681
1687
  },
1682
1688
  m(target, anchor) {
1683
1689
  insert(target, svg, anchor);
@@ -1982,10 +1988,17 @@
1982
1988
  attr(span1, "class", "grow flex items-center");
1983
1989
  attr(button, "aria-label", button_aria_label_value = `${/*selectedOption*/
1984
1990
  ctx[3] === /*option*/
1985
- ctx[16].id ? "Selected option" : "Option"} ${useMCQ_default(
1991
+ ctx[16].id ? `Selected option ${useMCQ_default(
1986
1992
  /*index*/
1987
1993
  ctx[18]
1988
- )}: ${/*option*/
1994
+ )} ${!/*isFinished*/
1995
+ ctx[1] ? "" : (
1996
+ /*isResultCorrect*/
1997
+ ctx[2] ? "is correct" : "is incorrect"
1998
+ )}` : `Option ${useMCQ_default(
1999
+ /*index*/
2000
+ ctx[18]
2001
+ )}`}: ${/*option*/
1989
2002
  ctx[16].answer}`);
1990
2003
  attr(button, "class", button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
1991
2004
  (ctx[3] === /*option*/
@@ -2038,13 +2051,20 @@
2038
2051
  });
2039
2052
  check_outros();
2040
2053
  }
2041
- if (!current || dirty & /*selectedOption*/
2042
- 8 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
2054
+ if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
2055
+ 14 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
2043
2056
  ctx[3] === /*option*/
2044
- ctx[16].id ? "Selected option" : "Option"} ${useMCQ_default(
2057
+ ctx[16].id ? `Selected option ${useMCQ_default(
2058
+ /*index*/
2059
+ ctx[18]
2060
+ )} ${!/*isFinished*/
2061
+ ctx[1] ? "" : (
2062
+ /*isResultCorrect*/
2063
+ ctx[2] ? "is correct" : "is incorrect"
2064
+ )}` : `Option ${useMCQ_default(
2045
2065
  /*index*/
2046
2066
  ctx[18]
2047
- )}: ${/*option*/
2067
+ )}`}: ${/*option*/
2048
2068
  ctx[16].answer}`)) {
2049
2069
  attr(button, "aria-label", button_aria_label_value);
2050
2070
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Authoring tool frontend SDK",
5
5
  "contributors": [
6
6
  {