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/index.js CHANGED
@@ -12643,12 +12643,14 @@ var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props },
12643
12643
  ] });
12644
12644
  });
12645
12645
  var QuizHeader = () => {
12646
- const { getCurrentQuestion, currentQuestionIndex } = useQuizStore();
12646
+ const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
12647
12647
  const currentQuestion = getCurrentQuestion();
12648
+ let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
12649
+ const questionIndex = getQuestionIndex(currentId);
12648
12650
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
12649
12651
  HeaderAlternative,
12650
12652
  {
12651
- title: currentQuestion ? `Quest\xE3o ${currentQuestionIndex + 1}` : "Quest\xE3o",
12653
+ title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
12652
12654
  subTitle: currentQuestion?.knowledgeMatrix?.[0]?.topic?.name ?? "",
12653
12655
  content: currentQuestion?.statement ?? ""
12654
12656
  }