analytica-frontend-lib 1.2.6 → 1.2.7
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.js +4 -2
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +4 -2
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12603,12 +12603,14 @@ var QuizTitle = forwardRef22(({ className, onBack, ...props }, ref) => {
|
|
|
12603
12603
|
] });
|
|
12604
12604
|
});
|
|
12605
12605
|
var QuizHeader = () => {
|
|
12606
|
-
const { getCurrentQuestion,
|
|
12606
|
+
const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
|
|
12607
12607
|
const currentQuestion = getCurrentQuestion();
|
|
12608
|
+
let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
|
|
12609
|
+
const questionIndex = getQuestionIndex(currentId);
|
|
12608
12610
|
return /* @__PURE__ */ jsx55(
|
|
12609
12611
|
HeaderAlternative,
|
|
12610
12612
|
{
|
|
12611
|
-
title: currentQuestion ? `Quest\xE3o ${
|
|
12613
|
+
title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
|
|
12612
12614
|
subTitle: currentQuestion?.knowledgeMatrix?.[0]?.topic?.name ?? "",
|
|
12613
12615
|
content: currentQuestion?.statement ?? ""
|
|
12614
12616
|
}
|