eat-js-sdk 0.0.3 → 0.0.4
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 +59 -30
- package/package.json +1 -1
|
@@ -895,6 +895,26 @@
|
|
|
895
895
|
child_ctx[14] = i;
|
|
896
896
|
return child_ctx;
|
|
897
897
|
}
|
|
898
|
+
function create_if_block_1(ctx) {
|
|
899
|
+
let p;
|
|
900
|
+
return {
|
|
901
|
+
c() {
|
|
902
|
+
p = element("p");
|
|
903
|
+
p.textContent = `${/*rubric*/
|
|
904
|
+
ctx[2].text}`;
|
|
905
|
+
attr(p, "class", "h5 mb-2 md:mb-4");
|
|
906
|
+
},
|
|
907
|
+
m(target, anchor) {
|
|
908
|
+
insert(target, p, anchor);
|
|
909
|
+
},
|
|
910
|
+
p: noop,
|
|
911
|
+
d(detaching) {
|
|
912
|
+
if (detaching) {
|
|
913
|
+
detach(p);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
}
|
|
898
918
|
function create_if_block(ctx) {
|
|
899
919
|
let div1;
|
|
900
920
|
let div0;
|
|
@@ -1042,53 +1062,60 @@
|
|
|
1042
1062
|
}
|
|
1043
1063
|
function create_fragment(ctx) {
|
|
1044
1064
|
let div1;
|
|
1045
|
-
let
|
|
1046
|
-
let
|
|
1047
|
-
let
|
|
1048
|
-
let t3;
|
|
1065
|
+
let t0;
|
|
1066
|
+
let p;
|
|
1067
|
+
let t2;
|
|
1049
1068
|
let div0;
|
|
1050
|
-
let
|
|
1051
|
-
let
|
|
1069
|
+
let t3;
|
|
1070
|
+
let if_block0 = (
|
|
1071
|
+
/*rubric*/
|
|
1072
|
+
ctx[2].text && create_if_block_1(ctx)
|
|
1073
|
+
);
|
|
1074
|
+
let if_block1 = (
|
|
1052
1075
|
/*options*/
|
|
1053
1076
|
ctx[4] && create_if_block(ctx)
|
|
1054
1077
|
);
|
|
1055
1078
|
return {
|
|
1056
1079
|
c() {
|
|
1057
1080
|
div1 = element("div");
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
p1.textContent = `${/*prompt*/
|
|
1081
|
+
if (if_block0)
|
|
1082
|
+
if_block0.c();
|
|
1083
|
+
t0 = space();
|
|
1084
|
+
p = element("p");
|
|
1085
|
+
p.textContent = `${/*prompt*/
|
|
1064
1086
|
ctx[3]}`;
|
|
1065
|
-
|
|
1087
|
+
t2 = space();
|
|
1066
1088
|
div0 = element("div");
|
|
1067
|
-
|
|
1068
|
-
if (
|
|
1069
|
-
|
|
1070
|
-
attr(
|
|
1071
|
-
attr(p1, "class", "h5 font-semibold");
|
|
1089
|
+
t3 = space();
|
|
1090
|
+
if (if_block1)
|
|
1091
|
+
if_block1.c();
|
|
1092
|
+
attr(p, "class", "h5 font-semibold");
|
|
1072
1093
|
attr(div0, "class", "divider my-6");
|
|
1073
1094
|
attr(div1, "class", "bg-transparent");
|
|
1074
1095
|
},
|
|
1075
1096
|
m(target, anchor) {
|
|
1076
1097
|
insert(target, div1, anchor);
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
append(div1,
|
|
1080
|
-
append(div1,
|
|
1098
|
+
if (if_block0)
|
|
1099
|
+
if_block0.m(div1, null);
|
|
1100
|
+
append(div1, t0);
|
|
1101
|
+
append(div1, p);
|
|
1102
|
+
append(div1, t2);
|
|
1081
1103
|
append(div1, div0);
|
|
1082
|
-
append(div1,
|
|
1083
|
-
if (
|
|
1084
|
-
|
|
1104
|
+
append(div1, t3);
|
|
1105
|
+
if (if_block1)
|
|
1106
|
+
if_block1.m(div1, null);
|
|
1085
1107
|
},
|
|
1086
1108
|
p(ctx2, [dirty]) {
|
|
1109
|
+
if (
|
|
1110
|
+
/*rubric*/
|
|
1111
|
+
ctx2[2].text
|
|
1112
|
+
)
|
|
1113
|
+
if_block0.p(ctx2, dirty);
|
|
1087
1114
|
if (
|
|
1088
1115
|
/*options*/
|
|
1089
1116
|
ctx2[4]
|
|
1090
1117
|
)
|
|
1091
|
-
|
|
1118
|
+
if_block1.p(ctx2, dirty);
|
|
1092
1119
|
},
|
|
1093
1120
|
i: noop,
|
|
1094
1121
|
o: noop,
|
|
@@ -1096,8 +1123,10 @@
|
|
|
1096
1123
|
if (detaching) {
|
|
1097
1124
|
detach(div1);
|
|
1098
1125
|
}
|
|
1099
|
-
if (
|
|
1100
|
-
|
|
1126
|
+
if (if_block0)
|
|
1127
|
+
if_block0.d();
|
|
1128
|
+
if (if_block1)
|
|
1129
|
+
if_block1.d();
|
|
1101
1130
|
}
|
|
1102
1131
|
};
|
|
1103
1132
|
}
|
|
@@ -1219,7 +1248,7 @@
|
|
|
1219
1248
|
}
|
|
1220
1249
|
};
|
|
1221
1250
|
}
|
|
1222
|
-
function
|
|
1251
|
+
function create_if_block_12(ctx) {
|
|
1223
1252
|
let promptmcq;
|
|
1224
1253
|
let current;
|
|
1225
1254
|
promptmcq = new PromptMCQ_default({
|
|
@@ -1307,7 +1336,7 @@
|
|
|
1307
1336
|
let if_block;
|
|
1308
1337
|
let if_block_anchor;
|
|
1309
1338
|
let current;
|
|
1310
|
-
const if_block_creators = [create_if_block2,
|
|
1339
|
+
const if_block_creators = [create_if_block2, create_if_block_12, create_else_block];
|
|
1311
1340
|
const if_blocks = [];
|
|
1312
1341
|
function select_block_type(ctx2, dirty) {
|
|
1313
1342
|
if (
|