eat-js-sdk 0.0.4 → 0.0.5
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 +14 -2
- package/package.json +1 -1
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
ctx2[0] ? "absolute inset-0 bg-transparent z-50" : "")) {
|
|
957
957
|
attr(div0, "class", div0_class_value);
|
|
958
958
|
}
|
|
959
|
-
if (dirty & /*Object, options,
|
|
959
|
+
if (dirty & /*selectedOption, Object, options, handleOptionClick*/
|
|
960
960
|
50) {
|
|
961
961
|
each_value = ensure_array_like(Object.entries(
|
|
962
962
|
/*options*/
|
|
@@ -1022,7 +1022,9 @@
|
|
|
1022
1022
|
t2 = text(t2_value);
|
|
1023
1023
|
t3 = space();
|
|
1024
1024
|
attr(span, "class", "choice group-active:border-2 group-active:border-blue-1000 group-active:p-[7px]");
|
|
1025
|
-
attr(button, "aria-label", button_aria_label_value =
|
|
1025
|
+
attr(button, "aria-label", button_aria_label_value = `${/*selectedOption*/
|
|
1026
|
+
ctx[1] === /*option*/
|
|
1027
|
+
ctx[12].id ? "Selected option" : "Option"} ${useMCQ_default(
|
|
1026
1028
|
/*index*/
|
|
1027
1029
|
ctx[14]
|
|
1028
1030
|
)}: ${/*option*/
|
|
@@ -1045,6 +1047,16 @@
|
|
|
1045
1047
|
p(new_ctx, dirty) {
|
|
1046
1048
|
ctx = new_ctx;
|
|
1047
1049
|
if (dirty & /*selectedOption*/
|
|
1050
|
+
2 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
|
|
1051
|
+
ctx[1] === /*option*/
|
|
1052
|
+
ctx[12].id ? "Selected option" : "Option"} ${useMCQ_default(
|
|
1053
|
+
/*index*/
|
|
1054
|
+
ctx[14]
|
|
1055
|
+
)}: ${/*option*/
|
|
1056
|
+
ctx[12].answer}`)) {
|
|
1057
|
+
attr(button, "aria-label", button_aria_label_value);
|
|
1058
|
+
}
|
|
1059
|
+
if (dirty & /*selectedOption*/
|
|
1048
1060
|
2 && button_class_value !== (button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
1049
1061
|
(ctx[1] === /*option*/
|
|
1050
1062
|
ctx[12].id ? "selected" : ""))) {
|