analytica-frontend-lib 1.4.50 → 1.4.52
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/Quiz/index.d.ts.map +1 -1
- package/dist/Quiz/index.js +7 -10
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +7 -10
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/Quiz/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Quiz.d.ts","sourceRoot":"","sources":["../../../src/components/Quiz/Quiz.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA2BxE,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS;;;;;;;;;;;;;;;;CA2BhD,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,mEAE3C,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,MAAM,SAAS,cAE7C,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,gBAEjD,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,WAGjD,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAAI,MAAM,SAAS,KAAG,MAMtD,CAAC;AAGF,eAAO,MAAM,uBAAuB,GAAI,MAAM,SAAS,WAGtD,CAAC;AAGF,eAAO,MAAM,yBAAyB,GAAI,MAAM,SAAS,WAGxD,CAAC;AAEF,QAAA,MAAM,IAAI;cAEI,SAAS;gBAAc,MAAM;cAAY,QAAQ,GAAG,SAAS;kDAazE,CAAC;AAEH,QAAA,MAAM,SAAS;gBAEC,MAAM;aAAW,MAAM,IAAI;kDAsGzC,CAAC;A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f,MAAM,IAAI;eAClB,MAAM,IAAI;iBACR,MAAM,IAAI;2BACA,SAAS;oCACA,SAAS;kDAwa5C,CAAC;AAEF,OAAO,EACL,SAAS,EACT,IAAI,EACJ,UAAU,EACV,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
package/dist/Quiz/index.js
CHANGED
|
@@ -7115,15 +7115,13 @@ var QuizTitle = (0, import_react16.forwardRef)(({ className, onBack, ...props },
|
|
|
7115
7115
|
] });
|
|
7116
7116
|
});
|
|
7117
7117
|
var QuizHeader = () => {
|
|
7118
|
-
const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
|
|
7118
|
+
const { getCurrentQuestion, getQuestionIndex, quiz } = useQuizStore();
|
|
7119
7119
|
const currentQuestion = getCurrentQuestion();
|
|
7120
7120
|
let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
|
|
7121
7121
|
const questionIndex = getQuestionIndex(currentId);
|
|
7122
7122
|
const questionNumber = currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o";
|
|
7123
|
-
const
|
|
7124
|
-
|
|
7125
|
-
currentQuestion?.examYear
|
|
7126
|
-
);
|
|
7123
|
+
const shouldShowExamInfo = quiz?.type === "SIMULADO" /* SIMULADO */;
|
|
7124
|
+
const examInfo = shouldShowExamInfo ? formatExamInfo(currentQuestion?.examBoard, currentQuestion?.examYear) : "";
|
|
7127
7125
|
const title = examInfo ? `${questionNumber} ${examInfo}` : questionNumber;
|
|
7128
7126
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
7129
7127
|
HeaderAlternative,
|
|
@@ -7157,8 +7155,10 @@ var QuizQuestionList = ({
|
|
|
7157
7155
|
getQuestionsGroupedBySubject,
|
|
7158
7156
|
goToQuestion,
|
|
7159
7157
|
getQuestionStatusFromUserAnswers,
|
|
7160
|
-
getQuestionIndex
|
|
7158
|
+
getQuestionIndex,
|
|
7159
|
+
quiz
|
|
7161
7160
|
} = useQuizStore();
|
|
7161
|
+
const shouldShowExamInfo = quiz?.type === "SIMULADO" /* SIMULADO */;
|
|
7162
7162
|
const groupedQuestions = getQuestionsGroupedBySubject();
|
|
7163
7163
|
const getQuestionStatus = (questionId) => {
|
|
7164
7164
|
return getQuestionStatusFromUserAnswers(questionId);
|
|
@@ -7205,10 +7205,7 @@ var QuizQuestionList = ({
|
|
|
7205
7205
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("ul", { className: "flex flex-col gap-2", children: questions.map((question) => {
|
|
7206
7206
|
const status = getQuestionStatus(question.id);
|
|
7207
7207
|
const questionNumber = getQuestionIndex(question.id);
|
|
7208
|
-
const examInfo = formatExamInfo(
|
|
7209
|
-
question.examBoard,
|
|
7210
|
-
question.examYear
|
|
7211
|
-
);
|
|
7208
|
+
const examInfo = shouldShowExamInfo ? formatExamInfo(question.examBoard, question.examYear) : "";
|
|
7212
7209
|
const questionTitle = `Quest\xE3o ${questionNumber.toString().padStart(2, "0")}`;
|
|
7213
7210
|
const header = examInfo ? `${questionTitle} ${examInfo}` : questionTitle;
|
|
7214
7211
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|