analytica-frontend-lib 1.1.91 → 1.1.93
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/DownloadButton/index.js +0 -1
- package/dist/DownloadButton/index.js.map +1 -1
- package/dist/DownloadButton/index.mjs +0 -1
- package/dist/DownloadButton/index.mjs.map +1 -1
- package/dist/Quiz/index.js +10 -41
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +10 -41
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.js +0 -13
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +0 -13
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/VideoPlayer/index.js +0 -1
- package/dist/VideoPlayer/index.js.map +1 -1
- package/dist/VideoPlayer/index.mjs +0 -1
- package/dist/VideoPlayer/index.mjs.map +1 -1
- package/dist/index.d.mts +185 -4
- package/dist/index.d.ts +185 -4
- package/dist/index.js +351 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +346 -53
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/Quiz/index.mjs
CHANGED
|
@@ -1040,7 +1040,6 @@ var useQuizStore = create2()(
|
|
|
1040
1040
|
const activityId = quiz.id;
|
|
1041
1041
|
const userId = get().getUserId();
|
|
1042
1042
|
if (!userId || userId === "") {
|
|
1043
|
-
console.warn("selectAnswer called before userId is set");
|
|
1044
1043
|
return;
|
|
1045
1044
|
}
|
|
1046
1045
|
const question = quiz.questions.find((q) => q.id === questionId);
|
|
@@ -1074,7 +1073,6 @@ var useQuizStore = create2()(
|
|
|
1074
1073
|
const activityId = quiz.id;
|
|
1075
1074
|
const userId = get().getUserId();
|
|
1076
1075
|
if (!userId || userId === "") {
|
|
1077
|
-
console.warn("selectMultipleAnswer called before userId is set");
|
|
1078
1076
|
return;
|
|
1079
1077
|
}
|
|
1080
1078
|
const question = quiz.questions.find((q) => q.id === questionId);
|
|
@@ -1109,16 +1107,10 @@ var useQuizStore = create2()(
|
|
|
1109
1107
|
const activityId = quiz.id;
|
|
1110
1108
|
const userId = get().getUserId();
|
|
1111
1109
|
if (!userId || userId === "") {
|
|
1112
|
-
console.warn(
|
|
1113
|
-
"selectDissertativeAnswer called before userId is set"
|
|
1114
|
-
);
|
|
1115
1110
|
return;
|
|
1116
1111
|
}
|
|
1117
1112
|
const question = quiz.questions.find((q) => q.id === questionId);
|
|
1118
1113
|
if (!question || question.questionType !== "DISSERTATIVA" /* DISSERTATIVA */) {
|
|
1119
|
-
console.warn(
|
|
1120
|
-
"selectDissertativeAnswer called for non-dissertative question"
|
|
1121
|
-
);
|
|
1122
1114
|
return;
|
|
1123
1115
|
}
|
|
1124
1116
|
const existingAnswerIndex = userAnswers.findIndex(
|
|
@@ -1152,7 +1144,6 @@ var useQuizStore = create2()(
|
|
|
1152
1144
|
const activityId = quiz.id;
|
|
1153
1145
|
const userId = get().getUserId();
|
|
1154
1146
|
if (!userId || userId === "") {
|
|
1155
|
-
console.warn("skipQuestion called before userId is set");
|
|
1156
1147
|
return;
|
|
1157
1148
|
}
|
|
1158
1149
|
const existingAnswerIndex = userAnswers.findIndex(
|
|
@@ -1185,7 +1176,6 @@ var useQuizStore = create2()(
|
|
|
1185
1176
|
const activityId = quiz.id;
|
|
1186
1177
|
const userId = get().getUserId();
|
|
1187
1178
|
if (!userId || userId === "") {
|
|
1188
|
-
console.warn("addUserAnswer called before userId is set");
|
|
1189
1179
|
return;
|
|
1190
1180
|
}
|
|
1191
1181
|
const question = quiz.questions.find((q) => q.id === questionId);
|
|
@@ -1413,9 +1403,6 @@ var useQuizStore = create2()(
|
|
|
1413
1403
|
);
|
|
1414
1404
|
}
|
|
1415
1405
|
if (questionIndex === -1) {
|
|
1416
|
-
console.warn(
|
|
1417
|
-
`Question with id "${question.id}" not found in active quiz`
|
|
1418
|
-
);
|
|
1419
1406
|
return;
|
|
1420
1407
|
}
|
|
1421
1408
|
set({ currentQuestionIndex: questionIndex });
|
|
@@ -5926,34 +5913,16 @@ var QuizFooter = forwardRef11(
|
|
|
5926
5913
|
children: "Avan\xE7ar"
|
|
5927
5914
|
}
|
|
5928
5915
|
)
|
|
5929
|
-
] }) : /* @__PURE__ */
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
) }),
|
|
5940
|
-
/* @__PURE__ */ jsx21(
|
|
5941
|
-
Button_default,
|
|
5942
|
-
{
|
|
5943
|
-
variant: "solid",
|
|
5944
|
-
action: "primary",
|
|
5945
|
-
size: "medium",
|
|
5946
|
-
onClick: () => {
|
|
5947
|
-
if (quiz?.canRetry) {
|
|
5948
|
-
onRepeat?.();
|
|
5949
|
-
} else {
|
|
5950
|
-
openModal("modalResolution");
|
|
5951
|
-
}
|
|
5952
|
-
},
|
|
5953
|
-
children: quiz?.canRetry ? `Repetir ${getTypeLabel(quiz.type)}` : "Ver Resolu\xE7\xE3o"
|
|
5954
|
-
}
|
|
5955
|
-
)
|
|
5956
|
-
] })
|
|
5916
|
+
] }) : /* @__PURE__ */ jsx21("div", { className: "flex flex-row items-center justify-center w-full", children: /* @__PURE__ */ jsx21(
|
|
5917
|
+
Button_default,
|
|
5918
|
+
{
|
|
5919
|
+
variant: "link",
|
|
5920
|
+
action: "primary",
|
|
5921
|
+
size: "medium",
|
|
5922
|
+
onClick: () => openModal("modalResolution"),
|
|
5923
|
+
children: "Ver resolu\xE7\xE3o"
|
|
5924
|
+
}
|
|
5925
|
+
) })
|
|
5957
5926
|
}
|
|
5958
5927
|
),
|
|
5959
5928
|
/* @__PURE__ */ jsx21(
|