eat-js-sdk 0.0.17 → 0.0.19
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 +20 -34
- 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]
|
|
@@ -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,20 @@
|
|
|
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 ?
|
|
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
|
-
|
|
1827
|
-
ctx[
|
|
1828
|
-
ctx[
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
ctx[5]}` : "");
|
|
1820
|
+
ctx[17].answer} ${!/*isFinished*/
|
|
1821
|
+
ctx[1] || /*selectedOption*/
|
|
1822
|
+
ctx[3] !== /*option*/
|
|
1823
|
+
ctx[17].id ? "" : (
|
|
1824
|
+
/*isResultCorrect*/
|
|
1825
|
+
ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
|
|
1826
|
+
)}`);
|
|
1833
1827
|
attr(button, "class", button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
1834
1828
|
(ctx[3] === /*option*/
|
|
1835
1829
|
ctx[17].id ? "selected" : "") + " " + (!/*isFinished*/
|
|
@@ -1903,30 +1897,22 @@
|
|
|
1903
1897
|
if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
|
|
1904
1898
|
14 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
|
|
1905
1899
|
ctx[3] === /*option*/
|
|
1906
|
-
ctx[17].id ?
|
|
1907
|
-
ctx[1] ? "" : (
|
|
1908
|
-
/*isResultCorrect*/
|
|
1909
|
-
ctx[2] ? "(Correct)" : "(Incorrect)"
|
|
1910
|
-
)} Selected option ${useMCQ_default(
|
|
1900
|
+
ctx[17].id ? `Selected option ${useMCQ_default(
|
|
1911
1901
|
/*index*/
|
|
1912
1902
|
ctx[19]
|
|
1913
1903
|
)}` : `Option ${useMCQ_default(
|
|
1914
1904
|
/*index*/
|
|
1915
1905
|
ctx[19]
|
|
1916
1906
|
)}`}: ${/*option*/
|
|
1917
|
-
ctx[17].answer}
|
|
1907
|
+
ctx[17].answer} ${!/*isFinished*/
|
|
1908
|
+
ctx[1] || /*selectedOption*/
|
|
1909
|
+
ctx[3] !== /*option*/
|
|
1910
|
+
ctx[17].id ? "" : (
|
|
1911
|
+
/*isResultCorrect*/
|
|
1912
|
+
ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
|
|
1913
|
+
)}`)) {
|
|
1918
1914
|
attr(button, "aria-label", button_aria_label_value);
|
|
1919
1915
|
}
|
|
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
1916
|
if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
|
|
1931
1917
|
14 && button_class_value !== (button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
1932
1918
|
(ctx[3] === /*option*/
|
|
@@ -2106,8 +2092,8 @@
|
|
|
2106
2092
|
},
|
|
2107
2093
|
p(ctx2, [dirty]) {
|
|
2108
2094
|
const promptbody_changes = {};
|
|
2109
|
-
if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect,
|
|
2110
|
-
|
|
2095
|
+
if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect, isDataSaving*/
|
|
2096
|
+
1048591) {
|
|
2111
2097
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
2112
2098
|
}
|
|
2113
2099
|
promptbody.$set(promptbody_changes);
|