eat-js-sdk 0.0.16 → 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.
- package/dist/eat-prompt-builder.mjs +15 -32
- package/package.json +1 -1
|
@@ -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,
|
|
1559
|
-
|
|
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]
|
|
@@ -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,6 @@
|
|
|
1762
1763
|
let t4;
|
|
1763
1764
|
let t5;
|
|
1764
1765
|
let button_aria_label_value;
|
|
1765
|
-
let button_aria_description_value;
|
|
1766
1766
|
let button_class_value;
|
|
1767
1767
|
let current;
|
|
1768
1768
|
let mounted;
|
|
@@ -1813,22 +1813,15 @@
|
|
|
1813
1813
|
ctx[17].id ? `Selected option ${useMCQ_default(
|
|
1814
1814
|
/*index*/
|
|
1815
1815
|
ctx[19]
|
|
1816
|
-
)} ${!/*isFinished*/
|
|
1817
|
-
ctx[1] ? "" : (
|
|
1818
|
-
/*isResultCorrect*/
|
|
1819
|
-
ctx[2] ? "(correct)" : "(incorrect)"
|
|
1820
1816
|
)}` : `Option ${useMCQ_default(
|
|
1821
1817
|
/*index*/
|
|
1822
1818
|
ctx[19]
|
|
1823
1819
|
)}`}: ${/*option*/
|
|
1824
|
-
ctx[17].answer}
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
ctx[17].id ? `${/*resultFeedbackTitle*/
|
|
1830
|
-
ctx[4]} ${/*resultFeedback*/
|
|
1831
|
-
ctx[5]}` : "");
|
|
1820
|
+
ctx[17].answer} ${!/*isFinished*/
|
|
1821
|
+
ctx[1] ? "" : (
|
|
1822
|
+
/*isResultCorrect*/
|
|
1823
|
+
ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
|
|
1824
|
+
)}`);
|
|
1832
1825
|
attr(button, "class", button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
1833
1826
|
(ctx[3] === /*option*/
|
|
1834
1827
|
ctx[17].id ? "selected" : "") + " " + (!/*isFinished*/
|
|
@@ -1905,27 +1898,17 @@
|
|
|
1905
1898
|
ctx[17].id ? `Selected option ${useMCQ_default(
|
|
1906
1899
|
/*index*/
|
|
1907
1900
|
ctx[19]
|
|
1908
|
-
)} ${!/*isFinished*/
|
|
1909
|
-
ctx[1] ? "" : (
|
|
1910
|
-
/*isResultCorrect*/
|
|
1911
|
-
ctx[2] ? "(correct)" : "(incorrect)"
|
|
1912
1901
|
)}` : `Option ${useMCQ_default(
|
|
1913
1902
|
/*index*/
|
|
1914
1903
|
ctx[19]
|
|
1915
1904
|
)}`}: ${/*option*/
|
|
1916
|
-
ctx[17].answer}
|
|
1905
|
+
ctx[17].answer} ${!/*isFinished*/
|
|
1906
|
+
ctx[1] ? "" : (
|
|
1907
|
+
/*isResultCorrect*/
|
|
1908
|
+
ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
|
|
1909
|
+
)}`)) {
|
|
1917
1910
|
attr(button, "aria-label", button_aria_label_value);
|
|
1918
1911
|
}
|
|
1919
|
-
if (!current || dirty & /*isFinished, resultFeedback, selectedOption, resultFeedbackTitle*/
|
|
1920
|
-
58 && button_aria_description_value !== (button_aria_description_value = /*isFinished*/
|
|
1921
|
-
ctx[1] && /*resultFeedback*/
|
|
1922
|
-
ctx[5] && /*selectedOption*/
|
|
1923
|
-
ctx[3] === /*option*/
|
|
1924
|
-
ctx[17].id ? `${/*resultFeedbackTitle*/
|
|
1925
|
-
ctx[4]} ${/*resultFeedback*/
|
|
1926
|
-
ctx[5]}` : "")) {
|
|
1927
|
-
attr(button, "aria-description", button_aria_description_value);
|
|
1928
|
-
}
|
|
1929
1912
|
if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
|
|
1930
1913
|
14 && button_class_value !== (button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
1931
1914
|
(ctx[3] === /*option*/
|
|
@@ -2105,8 +2088,8 @@
|
|
|
2105
2088
|
},
|
|
2106
2089
|
p(ctx2, [dirty]) {
|
|
2107
2090
|
const promptbody_changes = {};
|
|
2108
|
-
if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect,
|
|
2109
|
-
|
|
2091
|
+
if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect, isDataSaving*/
|
|
2092
|
+
1048591) {
|
|
2110
2093
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
2111
2094
|
}
|
|
2112
2095
|
promptbody.$set(promptbody_changes);
|