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/Quiz/index.mjs
CHANGED
|
@@ -5664,12 +5664,14 @@ var QuizTitle = forwardRef11(({ className, onBack, ...props }, ref) => {
|
|
|
5664
5664
|
] });
|
|
5665
5665
|
});
|
|
5666
5666
|
var QuizHeader = () => {
|
|
5667
|
-
const { getCurrentQuestion,
|
|
5667
|
+
const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
|
|
5668
5668
|
const currentQuestion = getCurrentQuestion();
|
|
5669
|
+
let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
|
|
5670
|
+
const questionIndex = getQuestionIndex(currentId);
|
|
5669
5671
|
return /* @__PURE__ */ jsx21(
|
|
5670
5672
|
HeaderAlternative,
|
|
5671
5673
|
{
|
|
5672
|
-
title: currentQuestion ? `Quest\xE3o ${
|
|
5674
|
+
title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
|
|
5673
5675
|
subTitle: currentQuestion?.knowledgeMatrix?.[0]?.topic?.name ?? "",
|
|
5674
5676
|
content: currentQuestion?.statement ?? ""
|
|
5675
5677
|
}
|