@magmamath/students-features 1.2.2-rc.4 → 1.3.0
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/commonjs/features/chatbot/components/Chat/Chat.js +0 -2
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js +0 -2
- package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +0 -2
- package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +1 -3
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +1 -3
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +0 -2
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -2
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/helpers.js +3 -0
- package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +40 -8
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ThreadItem.js +51 -13
- package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -3
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -2
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +1 -4
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +3 -9
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +0 -2
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -2
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -2
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +0 -2
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +0 -2
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -1
- package/dist/commonjs/features/feedback/components/EmptyComment.js +0 -2
- package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js +0 -2
- package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js +0 -3
- package/dist/commonjs/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +0 -2
- package/dist/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
- package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js +0 -2
- package/dist/commonjs/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +0 -2
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +0 -2
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +0 -2
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +0 -2
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +4 -9
- package/dist/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +11 -15
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +0 -2
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +0 -2
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +0 -2
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +0 -2
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +0 -2
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +4 -9
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +0 -2
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js +0 -2
- package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -1
- package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +0 -2
- package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +0 -2
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/commonjs/index.js +0 -8
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/components/PlayButton.js.map +1 -1
- package/dist/module/features/chatbot/components/Chat/Chat.js +0 -2
- package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
- package/dist/module/features/chatbot/components/Chat/ChatIcon.js +0 -2
- package/dist/module/features/chatbot/components/Chat/ChatIcon.js.map +1 -1
- package/dist/module/features/chatbot/components/Chat/CloseButton.js +0 -2
- package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +0 -2
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +1 -3
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +0 -2
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +0 -2
- package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +0 -2
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +0 -2
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +1 -3
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +0 -2
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +0 -2
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -2
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
- package/dist/module/features/chatbot/helpers.js +3 -0
- package/dist/module/features/chatbot/helpers.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js +40 -8
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/module/features/chatbot/model/ThreadItem.js +51 -13
- package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -3
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -2
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -3
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -3
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -3
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js +1 -4
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +3 -9
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButton.js +0 -2
- package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -2
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -2
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/components/QuestionSection.js +0 -2
- package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -1
- package/dist/module/features/exampleSolution/components/SolutionSection.js +0 -2
- package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -1
- package/dist/module/features/feedback/components/EmptyComment.js +0 -2
- package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/module/features/feedback/components/ListCardCommentsCount.js +0 -2
- package/dist/module/features/feedback/components/ListCardCommentsCount.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackButton.js +0 -3
- package/dist/module/features/feedback/components/TeacherFeedbackButton.js.map +1 -1
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js +0 -2
- package/dist/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.js.map +1 -1
- package/dist/module/features/feedback/components/UnreadMessagesBadge.js +0 -2
- package/dist/module/features/feedback/components/UnreadMessagesBadge.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +0 -2
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +0 -2
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +0 -2
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +0 -2
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js +4 -9
- package/dist/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +12 -16
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +0 -2
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +0 -2
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +0 -2
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +0 -2
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Numpad/Numpad.js +0 -2
- package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +4 -9
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +0 -2
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js +0 -2
- package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -1
- package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +0 -2
- package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -1
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +0 -2
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/components/PlayButton.js.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +50 -12
- package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +10 -2
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +5 -2
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +22 -0
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/EmptyComment.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +0 -1
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chat/ChatIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +1 -0
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +50 -12
- package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +10 -2
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +5 -2
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts +22 -0
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/EmptyComment.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/ListCardCommentsCount.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackButton.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/TeacherFeedbackComments/TeacherComment.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/components/UnreadMessagesBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/CurrencyBasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/TimeBasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -1
- package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -1
- package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/components/PlayButton.d.ts +0 -1
- package/dist/typescript/module/shared/components/PlayButton.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chatbot/components/Chat/Chat.tsx +1 -2
- package/src/features/chatbot/components/Chat/ChatIcon.tsx +1 -2
- package/src/features/chatbot/components/Chat/CloseButton.tsx +0 -2
- package/src/features/chatbot/components/ChatControls/ChatControls.tsx +0 -2
- package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +0 -2
- package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -2
- package/src/features/chatbot/components/ChatInput/FreeText/SendMessageButton.tsx +0 -2
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +0 -2
- package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +2 -3
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +0 -2
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +1 -2
- package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +0 -2
- package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +0 -2
- package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +3 -1
- package/src/features/chatbot/helpers.ts +1 -0
- package/src/features/chatbot/model/ChatBotThreadManager.ts +44 -9
- package/src/features/chatbot/model/ThreadItem.ts +68 -19
- package/src/features/chatbot/types/api.types.ts +17 -2
- package/src/features/chatbot/types/model.types.ts +12 -2
- package/src/features/chatbot/types/units.types.ts +26 -0
- package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +1 -3
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +0 -2
- package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +1 -3
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +1 -3
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +1 -3
- package/src/features/endOfAssignment/components/Modal/Modal.tsx +1 -6
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +1 -6
- package/src/features/endOfAssignment/ui/PracticeButton.tsx +0 -2
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +0 -2
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -2
- package/src/features/exampleSolution/components/QuestionSection.tsx +1 -2
- package/src/features/exampleSolution/components/SolutionSection.tsx +1 -5
- package/src/features/feedback/components/EmptyComment.tsx +1 -2
- package/src/features/feedback/components/ListCardCommentsCount.tsx +1 -2
- package/src/features/feedback/components/TeacherFeedbackButton.tsx +0 -3
- package/src/features/feedback/components/TeacherFeedbackComments/TeacherComment.tsx +1 -2
- package/src/features/feedback/components/UnreadMessagesBadge.tsx +0 -2
- package/src/features/formulaSheet/components/FormulaSheet.tsx +0 -2
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +1 -2
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +1 -2
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +1 -2
- package/src/features/keyboard/components/BasicLayout/CurrencyBasicLayout.tsx +1 -5
- package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +13 -16
- package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +1 -2
- package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +1 -2
- package/src/features/keyboard/components/Keyboard.tsx +0 -2
- package/src/features/keyboard/components/MainLayout/MainLayout.tsx +1 -5
- package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -2
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +1 -9
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +1 -2
- package/src/features/openEnded/components/OpenEndedAttemptsLimit.tsx +1 -2
- package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +1 -2
- package/src/features/problemSelector/components/ProblemSelectorButton.tsx +0 -2
- package/src/index.ts +0 -1
- package/src/shared/components/PlayButton.tsx +0 -1
- package/dist/commonjs/config/dataTestIDs.js +0 -57
- package/dist/commonjs/config/dataTestIDs.js.map +0 -1
- package/dist/module/config/dataTestIDs.js +0 -54
- package/dist/module/config/dataTestIDs.js.map +0 -1
- package/dist/typescript/commonjs/config/dataTestIDs.d.ts +0 -52
- package/dist/typescript/commonjs/config/dataTestIDs.d.ts.map +0 -1
- package/dist/typescript/module/config/dataTestIDs.d.ts +0 -52
- package/dist/typescript/module/config/dataTestIDs.d.ts.map +0 -1
- package/src/config/dataTestIDs.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IS_WEB","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","t","ChatRequestType","decodeHTMLEntities","input","replace","replaceKatexSyntax","texts","reverse","replacements","Object","entries","map","text","reduce","newText","pattern","placeholder","RegExp","transformAlternatives","payload","isOpenChatEnabled","options","default","promptKey","translatedText","hints","prepareChatRequestPayload","threadItem","conversationId","freeTextMessage","problemDescription","problemStandards","problemAnswer","language","imageCdnId","imageAltText","answerOptions","answer","type","FREETEXT","data","message","length","correctAnswer","altText","HINT","getNextHintProps","userAnswer"],"sourceRoot":"../../../../src","sources":["features/chatbot/helpers.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAA4B;AACnD;AACA,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,gBAAa;AAE5E,SAASC,CAAC,QAAQ,mCAA0B;AAE5C,SAA6BC,eAAe,QAAQ,wBAAqB;AAEzE,OAAO,MAAMC,kBAAkB,GAAIC,KAAa,IAAK;EACnD,OAAOA,KAAK,CAACC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;AACrC,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAGA,CAACC,KAAe,EAAEC,OAAO,GAAG,KAAK,KAAK;EACtE,MAAMC,YAAY,GAAGD,OAAO,GACxBE,MAAM,CAACC,OAAO,CAACX,0BAA0B,CAAC,GAC1CU,MAAM,CAACC,OAAO,CAACZ,kBAAkB,CAAC;EAEtC,OAAOQ,KAAK,CAACK,GAAG,CAAEC,IAAI,IACpBJ,YAAY,CAACK,MAAM,CACjB,CAACC,OAAO,EAAE,CAACC,OAAO,EAAEC,WAAW,CAAC,KAAKF,OAAO,CAACV,OAAO,CAAC,IAAIa,MAAM,CAACF,OAAO,EAAE,GAAG,CAAC,EAAEC,WAA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E,gBAAgB,EAAEW,MAAM,IAAI;UAAEX;QAAiB,CAAC;MACxD;IACF,CAAC,GACD;MACEO,IAAI,EAAErC,eAAe,CAACsC,QAAQ;MAC9BC,IAAI,EAAE;QACJC,OAAO,EAAEZ,eAAe;QACxBc,aAAa,EAAEX,aAAa;QAC5BF,kBAAkB;QAClBG,QAAQ;QACR,IAAIC,UAAU,IAAI;UAAEA;QAAW,CAAC,CAAC;QACjC,IAAIC,YAAY,IAAI;UAAES,OAAO,EAAET;QAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,CAACJ,gBAAgB,EAAEW,MAAM,IAAI;UAAEX;QAAiB,CAAC,CAAC;QACvD,IAAI,CAAC,CAACK,aAAa,EAAEM,MAAM,IAAI;UAAEN;QAAc,CAAC;MAClD;IACF,CAAC;EACP;EAEA,OAAO;IACLE,IAAI,EAAErC,eAAe,CAAC4C,IAAI;IAC1BL,IAAI,EAAE;MACJ,GAAGb,UAAU,CAACmB,gBAAgB,CAAC,CAAC;MAChCH,aAAa,EAAEX,aAAa;MAC5BF,kBAAkB;MAClBiB,UAAU,EAAEV,MAAM;MAClBJ,QAAQ;MACR,IAAIC,UAAU,IAAI;QAAEA;MAAW,CAAC,CAAC;MACjC,IAAIC,YAAY,IAAI;QAAES,OAAO,EAAET;MAAa,CAAC,CAAC;MAC9C,IAAI,CAAC,CAACJ,gBAAgB,EAAEW,MAAM,IAAI;QAAEX;MAAiB,CAAC;
|
|
1
|
+
{"version":3,"names":["IS_WEB","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","t","ChatRequestType","decodeHTMLEntities","input","replace","replaceKatexSyntax","texts","reverse","replacements","Object","entries","map","text","reduce","newText","pattern","placeholder","RegExp","transformAlternatives","payload","isOpenChatEnabled","options","default","promptKey","translatedText","hints","prepareChatRequestPayload","threadItem","conversationId","freeTextMessage","problemDescription","problemStandards","problemAnswer","language","imageCdnId","imageAltText","answerOptions","answer","type","FREETEXT","data","message","length","correctAnswer","altText","HINT","get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QAAc,CAAC;MAClD;IACF,CAAC;EACP;EAEA,OAAO;IACLE,IAAI,EAAErC,eAAe,CAAC4C,IAAI;IAC1BL,IAAI,EAAE;MACJ,GAAGb,UAAU,CAACmB,gBAAgB,CAAC,CAAC;MAChCH,aAAa,EAAEX,aAAa;MAC5BF,kBAAkB;MAClBiB,UAAU,EAAEV,MAAM;MAClBJ,QAAQ;MACR,IAAIC,UAAU,IAAI;QAAEA;MAAW,CAAC,CAAC;MACjC,IAAIC,YAAY,IAAI;QAAES,OAAO,EAAET;MAAa,CAAC,CAAC;MAC9C,IAAI,CAAC,CAACJ,gBAAgB,EAAEW,MAAM,IAAI;QAAEX;MAAiB,CAAC,CAAC;MACvD,IAAI,CAAC,CAACK,aAAa,EAAEM,MAAM,IAAI;QAAEN;MAAc,CAAC;IAClD;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -26,19 +26,37 @@ export class ChatBotThreadManager {
|
|
|
26
26
|
if (existingThreadItem) return existingThreadItem;
|
|
27
27
|
const threadItem = new ThreadItem();
|
|
28
28
|
this.threads.set(key, threadItem);
|
|
29
|
-
|
|
29
|
+
await this.setDrawBoardContent(threadItem);
|
|
30
|
+
return threadItem;
|
|
31
|
+
}
|
|
32
|
+
async setDrawBoardContent(threadItem) {
|
|
33
|
+
if (!this.drawBoardAdapter) return;
|
|
30
34
|
try {
|
|
31
35
|
const content = await this.drawBoardAdapter.getContent();
|
|
32
|
-
if (!content) return
|
|
36
|
+
if (!content) return;
|
|
33
37
|
threadItem.setValidationKey(content.validationKey);
|
|
34
|
-
|
|
35
|
-
if (content.strokes?.length)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
threadItem.setStudentInput(content.studentInput);
|
|
39
|
+
if (content.strokes?.length) {
|
|
40
|
+
threadItem.setStrokes(content.strokes);
|
|
41
|
+
}
|
|
42
|
+
if (content.spreadSheetContent?.length) {
|
|
43
|
+
threadItem.setSpreadSheetContent(content.spreadSheetContent);
|
|
44
|
+
}
|
|
45
|
+
if (content.equationContent?.length) {
|
|
46
|
+
threadItem.setEquationContent(content.equationContent);
|
|
47
|
+
}
|
|
48
|
+
if (content.drawBoardImage) {
|
|
49
|
+
threadItem.setDrawBoardImage(content.drawBoardImage);
|
|
50
|
+
}
|
|
51
|
+
} catch (e) {
|
|
52
|
+
console.error('Failed to load draw board content', e);
|
|
53
|
+
}
|
|
38
54
|
}
|
|
39
55
|
setDrawBoardAdapter(adapter) {
|
|
40
56
|
this.drawBoardAdapter = adapter;
|
|
41
57
|
}
|
|
58
|
+
|
|
59
|
+
// TODO: simplify this method, split it into smaller methods
|
|
42
60
|
postMessage = async (payload, requestConfig) => {
|
|
43
61
|
if (!this.api) {
|
|
44
62
|
throw new Error('API is not set in ThreadManagersApi, pls provide API before sending requests');
|
|
@@ -49,9 +67,23 @@ export class ChatBotThreadManager {
|
|
|
49
67
|
data
|
|
50
68
|
} = prepareChatRequestPayload(payload, threadItem);
|
|
51
69
|
const result = type === ChatRequestType.FREETEXT ? await this.api.sendMessage(data, requestConfig) : await this.api.getHint(data, requestConfig);
|
|
70
|
+
const isFirstHint = threadItem.hintsHistory.length === 0;
|
|
52
71
|
threadItem.history.push(result.message);
|
|
53
|
-
if (
|
|
54
|
-
threadItem.
|
|
72
|
+
if (type === ChatRequestType.HINT) {
|
|
73
|
+
threadItem.hintsHistory.push(result.message);
|
|
74
|
+
}
|
|
75
|
+
if (isFirstHint) {
|
|
76
|
+
if ('errorChars' in result && result.errorChars?.length) {
|
|
77
|
+
const errorStrokeIds = result.errorChars.map(c => c.id);
|
|
78
|
+
threadItem.setErrorStrokesIds(errorStrokeIds);
|
|
79
|
+
threadItem.setErrorChars(result.errorChars);
|
|
80
|
+
}
|
|
81
|
+
if ('errorCellIds' in result && result.errorCellIds?.length) {
|
|
82
|
+
threadItem.setErrorStrokesIds(result.errorCellIds);
|
|
83
|
+
}
|
|
84
|
+
if ('errorStrokeIds' in result && result?.errorStrokeIds) {
|
|
85
|
+
threadItem.setErrorStrokesIds(result.errorStrokeIds);
|
|
86
|
+
}
|
|
55
87
|
}
|
|
56
88
|
const nextOptions = threadItem.history.length < this.messagesLimit ? [this.defaultMessages.anotherHintOption] : [];
|
|
57
89
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ThreadItem","ChatRequestType","CHAT_BOT_MODEL_DEFAULTS","prepareChatRequestPayload","ChatBotThreadManager","api","drawBoardAdapter","threads","Map","currentKey","constructor","messagesLimit","THREAD_MESSAGES_LIMIT","messages","defaultMessages","getThreadItem","key","existingThreadItem","get","threadItem","set","content","getContent","setValidationKey","validationKey","
|
|
1
|
+
{"version":3,"names":["ThreadItem","ChatRequestType","CHAT_BOT_MODEL_DEFAULTS","prepareChatRequestPayload","ChatBotThreadManager","api","drawBoardAdapter","threads","Map","currentKey","constructor","messagesLimit","THREAD_MESSAGES_LIMIT","messages","defaultMessages","getThreadItem","key","existingThreadItem","get","threadItem","set","setDrawBoardContent","content","getContent","setValidationKey","validationKey","setStudentInput","studentInput","strokes","length","setStrokes","spreadSheetContent","setSpreadSheetContent","equationContent","setEquationContent","drawBoardImage","setDrawBoardImage","e","console","error","setDrawBoardAdapter","adapter","postMessage","payload","requestConfig","Error","type","data","result","FREETEXT","sendMessage","getHint","isFirstHint","hintsHistory","history","push","message","HINT","errorChars","errorStrokeIds","map","c","id","setErrorStrokesIds","setErrorChars","errorCellIds","nextOptions","anotherHintOption","options","endMessage","threadId","conversationId","reset","delete","clear","setMessagesLimit","limit","setApi","setCurrentKey"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatBotThreadManager.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAc;AASzC,SAA0BC,eAAe,QAA+B,yBAAsB;AAC9F,SAASC,uBAAuB,QAAQ,gBAAa;AACrD,SAASC,yBAAyB,QAAQ,eAAY;AAqBtD,OAAO,MAAMC,oBAAoB,CAAC;EACxBC,GAAG,GAA4B,IAAI;EACnCC,gBAAgB,GAAiC,IAAI;EAC5CC,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AAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;MAC3B,IAAI,CAACT,OAAO,CAACkE,MAAM,CAACzD,GAAG,CAAC;MACxB;IACF;IACA,IAAI,CAACT,OAAO,CAACmE,KAAK,CAAC,CAAC;EACtB;EAEOC,gBAAgBA,CAACC,KAAa,EAAE;IACrC,IAAI,CAACjE,aAAa,GAAGiE,KAAK;EAC5B;EAEOC,MAAMA,CAACxE,GAAqB,EAAE;IACnC,IAAI,CAACA,GAAG,GAAGA,GAAG;IACd,OAAO,IAAI;EACb;EAEOyE,aAAaA,CAAC9D,GAAW,EAAE;IAChC,IAAI,CAACP,UAAU,GAAGO,GAAG;EACvB;AACF","ignoreList":[]}
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { generateRandomId } from "../../../lib/helpers/helpers.js";
|
|
4
|
+
const DEFAULT_STUDENT_INPUT = 'none';
|
|
5
|
+
|
|
6
|
+
// TODO: move drawboard content to separate class and make ThreadItem responsible only for history and hints
|
|
4
7
|
export class ThreadItem {
|
|
5
8
|
id = generateRandomId();
|
|
6
9
|
history = [];
|
|
10
|
+
hintsHistory = [];
|
|
7
11
|
strokesValidationKey = null;
|
|
8
|
-
text = null;
|
|
9
12
|
errorStrokesIds = null;
|
|
13
|
+
errorChars = null;
|
|
10
14
|
constructor(props) {
|
|
11
15
|
this.strokes = props?.strokes ?? null;
|
|
12
|
-
this.text = props?.text ?? null;
|
|
13
16
|
this.strokesValidationKey = props?.key ?? null;
|
|
17
|
+
this.spreadSheetContent = props?.spreadSheetContent;
|
|
18
|
+
this.equationContent = props?.equationContent;
|
|
19
|
+
this.drawBoardImage = props?.drawBoardImage;
|
|
20
|
+
this.studentInput = props?.studentInput ?? DEFAULT_STUDENT_INPUT;
|
|
14
21
|
}
|
|
15
22
|
setStrokes(strokes) {
|
|
16
23
|
this.strokes = strokes;
|
|
17
24
|
return this;
|
|
18
25
|
}
|
|
19
|
-
setText(text) {
|
|
20
|
-
this.text = text;
|
|
21
|
-
return this;
|
|
22
|
-
}
|
|
23
26
|
setValidationKey(key) {
|
|
24
27
|
this.strokesValidationKey = key;
|
|
25
28
|
return this;
|
|
@@ -28,22 +31,57 @@ export class ThreadItem {
|
|
|
28
31
|
this.errorStrokesIds = ids;
|
|
29
32
|
return this;
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
setErrorChars(chars) {
|
|
35
|
+
this.errorChars = chars;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
setSpreadSheetContent(content) {
|
|
39
|
+
this.spreadSheetContent = content;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
setEquationContent(content) {
|
|
43
|
+
this.equationContent = content;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
setDrawBoardImage(image) {
|
|
47
|
+
this.drawBoardImage = image;
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
setStudentInput(studentInput) {
|
|
51
|
+
this.studentInput = studentInput;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
getContentProps() {
|
|
55
|
+
if (this.strokes?.length) {
|
|
33
56
|
return {
|
|
34
|
-
|
|
57
|
+
stroke: this.strokes
|
|
35
58
|
};
|
|
36
59
|
}
|
|
37
|
-
if (this.
|
|
60
|
+
if (this.spreadSheetContent?.length) {
|
|
38
61
|
return {
|
|
39
|
-
|
|
62
|
+
spreadSheetContent: this.spreadSheetContent
|
|
40
63
|
};
|
|
41
64
|
}
|
|
42
|
-
if (this.
|
|
65
|
+
if (this.equationContent?.length) {
|
|
43
66
|
return {
|
|
44
|
-
|
|
67
|
+
equationContent: this.equationContent
|
|
45
68
|
};
|
|
46
69
|
}
|
|
70
|
+
return {};
|
|
71
|
+
}
|
|
72
|
+
getNextHintProps() {
|
|
73
|
+
const hintNumber = this.hintsHistory.length;
|
|
74
|
+
return {
|
|
75
|
+
hintNumber,
|
|
76
|
+
studentInput: this.studentInput,
|
|
77
|
+
...(this.drawBoardImage && {
|
|
78
|
+
drawBoardImage: this.drawBoardImage
|
|
79
|
+
}),
|
|
80
|
+
...(hintNumber === 0 && this.getContentProps()),
|
|
81
|
+
...(this.hintsHistory.length && {
|
|
82
|
+
previousHints: [...this.hintsHistory]
|
|
83
|
+
})
|
|
84
|
+
};
|
|
47
85
|
}
|
|
48
86
|
}
|
|
49
87
|
//# sourceMappingURL=ThreadItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["generateRandomId","ThreadItem","id","history","
|
|
1
|
+
{"version":3,"names":["generateRandomId","DEFAULT_STUDENT_INPUT","ThreadItem","id","history","hintsHistory","strokesValidationKey","errorStrokesIds","errorChars","constructor","props","strokes","key","spreadSheetContent","equationContent","drawBoardImage","studentInput","setStrokes","setValidationKey","setErrorStrokesIds","ids","setErrorChars","chars","setSpreadSheetContent","content","setEquationContent","setDrawBoardImage","image","setStudentInput","getContentProps","length","stroke","getNextHintProps","hintNumber","previousHints"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ThreadItem.ts"],"mappings":";;AAOA,SAASA,gBAAgB,QAAQ,iCAA8B;AAW/D,MAAMC,qBAAqB,GAAG,MAAM;;AAEpC;AACA,OAAO,MAAMC,UAAU,CAAwB;EAC7BC,EAAE,GAAGH,gBAAgB,CAAC,CAAC;EACvBI,OAAO,GAAa,EAAE;EACtBC,YAAY,GAAa,EAAE;EACpCC,oBAAoB,GAAkB,IAAI;EAE1CC,eAAe,GAAoB,IAAI;EACvCC,UAAU,GAAuB,IAAI;EAMrCC,WAAWA,CAACC,KAA8B,EAAE;IACjD,IAAI,CAACC,OAAO,GAAGD,KAAK,EAAEC,OAAO,IAAI,IAAI;IACrC,IAAI,CAACL,oBAAoB,GAAGI,KAAK,EAAEE,GAAG,IAAI,IAAI;IAC9C,IAAI,CAACC,kBAAkB,GAAGH,KAAK,EAAEG,kBAAkB;IACnD,IAAI,CAACC,eAAe,GAAGJ,KAAK,EAAEI,e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EhB,eAAe,EAAE,IAAI,CAACA;MAAgB,CAAC;IAClD;IACA,OAAO,CAAC,CAAC;EACX;EAEOkB,gBAAgBA,CAAA,EAAG;IACxB,MAAMC,UAAU,GAAG,IAAI,CAAC5B,YAAY,CAACyB,MAAM;IAE3C,OAAO;MACLG,UAAU;MACVjB,YAAY,EAAE,IAAI,CAACA,YAAY;MAC/B,IAAI,IAAI,CAACD,cAAc,IAAI;QAAEA,cAAc,EAAE,IAAI,CAACA;MAAe,CAAC,CAAC;MACnE,IAAIkB,UAAU,KAAK,CAAC,IAAI,IAAI,CAACJ,eAAe,CAAC,CAAC,CAAC;MAC/C,IAAI,IAAI,CAACxB,YAAY,CAACyB,MAAM,IAAI;QAAEI,aAAa,EAAE,CAAC,GAAG,IAAI,CAAC7B,YAAY;MAAE,CAAC;IAC3E,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MessageVariant","ChatRequestType"],"sourceRoot":"../../../../../src","sources":["features/chatbot/types/model.types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["MessageVariant","ChatRequestType"],"sourceRoot":"../../../../../src","sources":["features/chatbot/types/model.types.ts"],"mappings":";;AA6GA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAmD1B,WAAYC,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import { View, StyleSheet } from 'react-native';
|
|
|
5
5
|
import { Button, SPACING, COLORS, Typography, ButtonVariant, ButtonColor, ButtonSize } from '@magmamath/react-native-ui';
|
|
6
6
|
import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
7
7
|
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
8
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
9
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
export const CheatDetected = ({
|
|
11
10
|
textContent,
|
|
@@ -20,7 +19,6 @@ export const CheatDetected = ({
|
|
|
20
19
|
});
|
|
21
20
|
return /*#__PURE__*/_jsxs(View, {
|
|
22
21
|
style: styles.container,
|
|
23
|
-
testID: TEST_IDS.EOA_CHEAT_DETECTED,
|
|
24
22
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
25
23
|
variant: "h2",
|
|
26
24
|
style: styles.title,
|
|
@@ -37,7 +35,6 @@ export const CheatDetected = ({
|
|
|
37
35
|
text: styles.buttonText
|
|
38
36
|
},
|
|
39
37
|
onPress: model.hidePopUpAndLeave,
|
|
40
|
-
testID: TEST_IDS.EOA_LEAVE_BUTTON,
|
|
41
38
|
children: textContent.leftButtonText
|
|
42
39
|
})]
|
|
43
40
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Button","SPACING","COLORS","Typography","ButtonVariant","ButtonColor","ButtonSize","useKeyBoard","KeyboardKeys","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Button","SPACING","COLORS","Typography","ButtonVariant","ButtonColor","ButtonSize","useKeyBoard","KeyboardKeys","jsx","_jsx","jsxs","_jsxs","CheatDetected","textContent","model","callback","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","variant","title","description","PRIMARY","colorScheme","RED","size","LARGE","text","buttonText","onPress","leftButtonText","create","flex","gap","alignItems","justifyContent","color","NEUTRAL_9","textAlign","fontWeight","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CheatDetected/CheatDetected.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SACEC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,UAAU,EACVC,aAAa,EACbC,WAAW,EACXC,UAAU,QACL,4BAA4B;AAGnC,SAAS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C,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDf,KAAK,EAAE;IACLgB,KAAK,EAAExC,MAAM,CAACyC;EAChB,CAAC;EACDhB,WAAW,EAAE;IACXe,KAAK,EAAExC,MAAM,CAACyC,SAAS;IACvBC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE;EACd,CAAC;EACDX,UAAU,EAAE;IACVY,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -12,7 +12,6 @@ import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
|
12
12
|
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
13
13
|
import { getEoaButtonColor } from "../../helpers.js";
|
|
14
14
|
import { AssessmentScoreCard } from "../AssessmentScoreCard/AssessmentScoreCard.js";
|
|
15
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
16
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
export const CorrectAnswer = ({
|
|
18
17
|
textContent,
|
|
@@ -51,7 +50,6 @@ export const CorrectAnswer = ({
|
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
52
|
return /*#__PURE__*/_jsxs(View, {
|
|
54
|
-
testID: TEST_IDS.EOA_WITH_CORRECT_ANSWER,
|
|
55
53
|
style: [styles.wrapper, modalVariant !== EOAModalVariant.HAS_GOOD_DRAWING && {
|
|
56
54
|
alignItems: 'center'
|
|
57
55
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useState","View","StyleSheet","useUnit","SPACING","Typography","COLORS","FONT_FAMILY","AnimatedCard","PracticeButtonGroup","GOOD_DRAWING_CARD_APPEARENCE_DELAY","AnimatedCardVariant","EOAModalVariant","useKeyBoard","KeyboardKeys","getEoaButtonColor","AssessmentScoreCard","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useState","View","StyleSheet","useUnit","SPACING","Typography","COLORS","FONT_FAMILY","AnimatedCard","PracticeButtonGroup","GOOD_DRAWING_CARD_APPEARENCE_DELAY","AnimatedCardVariant","EOAModalVariant","useKeyBoard","KeyboardKeys","getEoaButtonColor","AssessmentScoreCard","jsx","_jsx","jsxs","_jsxs","CorrectAnswer","textContent","model","onPracticePress","popUpData","$popUpData","modalVariant","$modalVariant","cardsAnimationCompleted","setCardsAnimationCompleted","user","stats","hasRecommendations","isExam","isAssessment","newerAssignmentAvailable","isPracticeButtonVisible","practiceMode","practiceButtonVisible","handlePracticeButtonPress","hidePopUp","onCorrectAnswerAnimationEnd","goodDrawingAmount","onGBDAnimationEnd","callback","event","key","ENTER","hidePopUpAndLeave","style","styles","wrapper","HAS_GOOD_DRAWING","alignItems","children","header","variant","title","subtitle","firstName","animationContainer","solvedAmount","problemsAmount","CORRECT_ANSWER","shouldTriggerSparkles","onAnimationEnd","GOOD_DRAWING","gbdAmount","delay","onLeftButtonPress","onRightButtonPress","buttonColor","create","flex","gap","fontWeight","lineHeight","fontSize","paddingVertical","color","NEUTRAL_9","fontFamily","buenosAires","NEUTRAL_7","flexDirection","justifyContent","paddingTop","paddingBottom","buttonsContainer","height"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACpD,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,OAAO,EAAEC,UAAU,EAAEC,MAAM,EAAEC,WAAW,QAAQ,4BAA4B;AAErF,SAASC,YAAY,QAAQ,mBAAgB;AAE7C,SAASC,mBAAmB,QAAQ,iCAA8B;AAClE,SAASC,kCAAkC,QAAQ,oBAAiB;AACpE,SAASC,mBAAmB,EAAwBC,eAAe,QAAQ,gBAAa;AACxF,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AACx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EAAE;IAClBa,IAAI,EAAE,CAAC;IACPW,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBX,GAAG,EAAEvE,OAAO,CAAC,GAAG,CAAC;IACjBmF,UAAU,EAAEnF,OAAO,CAAC,GAAG,CAAC;IACxBoF,aAAa,EAAEpF,OAAO,CAAC,IAAI;EAC7B,CAAC;EACDqF,gBAAgB,EAAE;IAChBC,MAAM,EAAE,EAAE;IACVL,aAAa,EAAE,KAAK;IACpB/B,UAAU,EAAE,QAAQ;IACpBqB,GAAG,EAAEvE,OAAO,CAAC,GAAG,CAAC;IACjB2E,eAAe,EAAE3E,OAAO,CAAC,GAAG;EAC9B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import { View, StyleSheet } from 'react-native';
|
|
|
5
5
|
import { Button, ButtonColor, ButtonSize, ButtonVariant, COLORS, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
6
6
|
import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
7
7
|
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
8
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
9
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
export const ExamLeave = ({
|
|
11
10
|
textContent,
|
|
@@ -21,7 +20,6 @@ export const ExamLeave = ({
|
|
|
21
20
|
});
|
|
22
21
|
return /*#__PURE__*/_jsxs(View, {
|
|
23
22
|
style: styles.container,
|
|
24
|
-
testID: TEST_IDS.EOA_EXAM_LEAVE,
|
|
25
23
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
26
24
|
variant: "h1",
|
|
27
25
|
style: styles.description,
|
|
@@ -44,7 +42,6 @@ export const ExamLeave = ({
|
|
|
44
42
|
text: styles.buttonText
|
|
45
43
|
},
|
|
46
44
|
onPress: model.hidePopUpAndLeave,
|
|
47
|
-
testID: TEST_IDS.EOA_LEAVE_BUTTON,
|
|
48
45
|
children: textContent.rightButtonText
|
|
49
46
|
})]
|
|
50
47
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","SPACING","Typography","useKeyBoard","KeyboardKeys","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","SPACING","Typography","useKeyBoard","KeyboardKeys","jsx","_jsx","jsxs","_jsxs","ExamLeave","textContent","model","handleDismiss","hidePopUp","callback","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","variant","description","buttonsContainer","TERTIARY","size","LARGE","text","buttonText","onPress","leftButtonText","PRIMARY","colorScheme","RED","rightButtonText","create","flex","gap","paddingTop","alignItems","justifyContent","textAlign","fontWeight","color","NEUTRAL_9","flexDirection","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAGnC,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA4B,CAAC,KAAK;EACzE,MAAMC,aAAa,GAAGA,CAAA,KAAMD,KAAK,CAACE,SAAS,CAAC,CAAC;EAE7CV,WAAW,CAAC;IACVW,QAAQ,EAAGC,KAAK,IAAK;MACnB,IAAIA,KAAK,CAACC,GAAG,KAAKZ,YAAY,CAACa,KAAK,EAAE;QACpCN,KAAK,CAACO,iBAAiB,CAAC,CAAC;MAC3B;IACF;EAC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nBC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE7C,MAAM,CAAC8C;EAChB,CAAC;EACDrB,gBAAgB,EAAE;IAChBsB,aAAa,EAAE,KAAK;IACpBN,UAAU,EAAE,QAAQ;IACpBF,GAAG,EAAEtC,OAAO,CAAC,GAAG;EAClB,CAAC;EACD6B,UAAU,EAAE;IACVkB,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,6 @@ import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
|
7
7
|
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
8
8
|
import { getEoaButtonColor } from "../../helpers.js";
|
|
9
9
|
import { useUnit } from 'effector-react';
|
|
10
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
11
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
export const ExamPaused = ({
|
|
13
12
|
textContent,
|
|
@@ -23,7 +22,6 @@ export const ExamPaused = ({
|
|
|
23
22
|
});
|
|
24
23
|
return /*#__PURE__*/_jsxs(View, {
|
|
25
24
|
style: styles.container,
|
|
26
|
-
testID: TEST_IDS.EOA_EXAM_PAUSED,
|
|
27
25
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
28
26
|
variant: "h2",
|
|
29
27
|
style: styles.title,
|
|
@@ -40,7 +38,6 @@ export const ExamPaused = ({
|
|
|
40
38
|
text: styles.buttonText
|
|
41
39
|
},
|
|
42
40
|
onPress: model.hidePopUpAndLeave,
|
|
43
|
-
testID: TEST_IDS.EOA_LEAVE_BUTTON,
|
|
44
41
|
children: textContent.leftButtonText
|
|
45
42
|
})]
|
|
46
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Button","ButtonSize","ButtonVariant","COLORS","SPACING","Typography","useKeyBoard","KeyboardKeys","getEoaButtonColor","useUnit","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Button","ButtonSize","ButtonVariant","COLORS","SPACING","Typography","useKeyBoard","KeyboardKeys","getEoaButtonColor","useUnit","jsx","_jsx","jsxs","_jsxs","ExamPaused","textContent","model","popUpData","$popUpData","callback","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","variant","title","description","PRIMARY","colorScheme","size","LARGE","text","buttonText","onPress","leftButtonText","create","gap","alignItems","color","NEUTRAL_9","textAlign","fontWeight","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SACEC,MAAM,EAENC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAGnC,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AACxD,SAASC,iBAAiB,QAAQ,kBAAe;AACjD,SAASC,OAAO,QAAQ,gBAAgB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExC,OAAO,MAAMC,UAAU,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA4B,CAAC,KAAK;EAC1E,MAAMC,SAAS,GAAGR,OAAO,CAACO,KAAK,CAACE,UAAU,CAAC;EAE3CZ,WAAW,CAAC;IACVa,QAAQ,EAAGC,KAAK,IAAK;MACnB,IAAIA,KAAK,CAACC,GAAG,KAAKd,YAAY,CAACe,KAAK,EAAE;QACpCN,KAAK,CAACO,iBAAiB,CAAC,CAAC;MAC3B;IACF;EACF,CAAC,CAAC;EAEF,oBACEV,KAAA,CAACf,IAAI;IAAC0B,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BhB,IAAA,CAACN,UAAU;MAACuB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACI,KAAM;MAAAF,QAAA,EAC1CZ,WAAW,CAACc;IAAK,CACR,CAAC,eAEblB,IAAA,CAACN,UAAU;MAACuB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACK,WAAY;MAAAH,QAAA,EAChDZ,WAAW,CAACe;IAAW,CACd,CAAC,eAEbnB,IAAA,CAACX,MAAM;MACL4B,OAAO,EAAE1B,aAAa,CAAC6B,OAAQ;MAC/BC,WAAW,EAAExB,iBAAiB,CAACS,SAAS,CAAE;MAC1CgB,IAAI,EAAEhC,UAAU,CAACiC,KAAM;MACvBV,KAAK,EAAE;QAAEW,IAAI,EAAEV,MAAM,CAACW;MAAW,CAAE;MACnCC,OAAO,EAAErB,KAAK,CAACO,iBAAkB;MAAAI,QAAA,EAEhCZ,WAAW,CAACuB;IAAc,CACrB,CAAC;EAAA,CACL,CAAC;AAEX,CAAC;AAED,MAAMb,MAAM,GAAG1B,UAAU,CAACwC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,GAAG,EAAEpC,OAAO,CAAC,GAAG,CAAC;IACjBqC,UAAU,EAAE;EACd,CAAC;EACDZ,KAAK,EAAE;IACLa,KAAK,EAAEvC,MAAM,CAACwC;EAChB,CAAC;EACDb,WAAW,EAAE;IACXc,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE;EACd,CAAC;EACDT,UAAU,EAAE;IACVU,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -9,7 +9,6 @@ import { PracticeButton } from "../../ui/PracticeButton.js";
|
|
|
9
9
|
import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
10
10
|
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
11
11
|
import { getEoaButtonColor } from "../../helpers.js";
|
|
12
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
13
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
export const ExamSubmit = ({
|
|
15
14
|
textContent,
|
|
@@ -31,7 +30,6 @@ export const ExamSubmit = ({
|
|
|
31
30
|
});
|
|
32
31
|
return /*#__PURE__*/_jsxs(View, {
|
|
33
32
|
style: styles.container,
|
|
34
|
-
testID: TEST_IDS.EOA_EXAM,
|
|
35
33
|
children: [/*#__PURE__*/_jsx(View, {
|
|
36
34
|
style: styles.contentBackground,
|
|
37
35
|
children: IS_MOBILE ? /*#__PURE__*/_jsx(Image, {
|
|
@@ -59,7 +57,6 @@ export const ExamSubmit = ({
|
|
|
59
57
|
}
|
|
60
58
|
},
|
|
61
59
|
onPress: model.hidePopUpAndLeave,
|
|
62
|
-
testID: TEST_IDS.EOA_LEAVE_BUTTON,
|
|
63
60
|
children: textContent.leftButtonText ?? ''
|
|
64
61
|
}), isPracticeButtonVisible && /*#__PURE__*/_jsx(PracticeButton, {
|
|
65
62
|
onPress: handlePracticePress,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Platform","Image","useUnit","Button","ButtonSize","ButtonVariant","COLORS","IS_MOBILE","SPACING","Typography","ExamSubmitContent","PracticeButton","useKeyBoard","KeyboardKeys","getEoaButtonColor","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Platform","Image","useUnit","Button","ButtonSize","ButtonVariant","COLORS","IS_MOBILE","SPACING","Typography","ExamSubmitContent","PracticeButton","useKeyBoard","KeyboardKeys","getEoaButtonColor","jsx","_jsx","jsxs","_jsxs","ExamSubmit","textContent","model","onPracticePress","popUpData","$popUpData","isPracticeButtonVisible","user","practiceMode","practiceButtonVisible","newerAssignmentAvailable","handlePracticePress","hidePopUp","callback","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","contentBackground","source","require","problemsAmount","stats","variant","title","description","buttonsContainer","TERTIARY","PRIMARY","size","LARGE","colorScheme","text","textTransform","onPress","leftButtonText","rightButtonText","create","flex","gap","alignItems","justifyContent","color","NEUTRAL_9","paddingVertical","textAlign","fontWeight","paddingTop","paddingBottom","position","zIndex","top","OS","filter","height","flexDirection","buttonText"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,cAAc;AAEhE,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SACEC,MAAM,EACNC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,SAAS,EACTC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAEnC,SAASC,iBAAiB,QAAQ,wBAAqB;AAEvD,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AACxD,SAASC,iBAAiB,QAAQ,kBAAe;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjD,OAAO,MAAMC,UAAU,GAAGA,CAAC;EAAEC,WAAW;EAAEC,KAAK;EAAEC;AAAsC,CAAC,KAAK;EAC3F,MAAMC,SAAS,GAAGrB,OAAO,CAACmB,KAAK,CAACG,UAAU,CAAC;EAE3C,MAAMC,uBAAuB,GAC3B,CAAC,CAACF,SAAS,EAAEG,IAAI,EAAEC,YAAY,IAC/BJ,SAAS,CAACG,IAAI,CAACE,qBAAqB,IACpC,CAACL,SAAS,CAACM,wBAAwB;EAErC,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;IAChCR,eAAe,GAAG,CAAC;IACnBD,KAAK,CAACU,SAAS,CAAC,CAAC;EACnB,CAAC;EAEDnB,WAAW,CAAC;IACVoB,QAAQ,EAAGC,KAAK,IAAK;MACnB,IAAIA,KAAK,CAACC,GAAG,KAAKrB,YAAY,CAACsB,KAAK,EAAE;QACpCV,uBAAuB,GAAGK,mBAAmB,CAAC,CAAC,GAAGT,KAAK,CAACe,iBAAiB,CAAC,CAAC;MAC7E;IACF;EACF,CAAC,CAAC;EAEF,oBACElB,KAAA,CA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MAAgB,CAAE,CACnF;IAAA,CACG,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMrB,MAAM,GAAGvC,UAAU,CAAC6D,MAAM,CAAC;EAC/BrB,SAAS,EAAE;IACTsB,IAAI,EAAE,CAAC;IACPC,GAAG,EAAEtD,OAAO,CAAC,GAAG,CAAC;IACjBuD,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDjB,KAAK,EAAE;IACLkB,KAAK,EAAE3D,MAAM,CAAC4D,SAAS;IACvBC,eAAe,EAAE3D,OAAO,CAAC,GAAG;EAC9B,CAAC;EACDwC,WAAW,EAAE;IACXiB,KAAK,EAAE3D,MAAM,CAAC4D,SAAS;IACvBE,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE9D,OAAO,CAAC,GAAG,CAAC;IACxB+D,aAAa,EAAE/D,OAAO,CAAC,IAAI;EAC7B,CAAC;EACDiC,iBAAiB,EAAE;IACjB+B,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,CAAC;IACVC,GAAG,EAAE,KAAK;IACV,IAAI1E,QAAQ,CAAC2E,EAAE,KAAK,KAAK,IAAI;MAC3BC,MAAM,EAAE;IACV,CAAC;EACH,CAAC;EACD3B,gBAAgB,EAAE;IAChB4B,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBf,UAAU,EAAE,QAAQ;IACpBD,GAAG,EAAEtD,OAAO,CAAC,GAAG;EAClB,CAAC;EACDuE,UAAU,EAAE;IACVvB,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import { Animated, Keyboard, StyleSheet, TouchableWithoutFeedback, View } from '
|
|
|
5
5
|
import { ButtonVariant, CrossIcon, COLORS, BORDER_RADIUS, SPACING, SHADOWS, Button } from '@magmamath/react-native-ui';
|
|
6
6
|
import { ModalModel } from "./model.js";
|
|
7
7
|
import { ModalBackground } from "./ModalBackground.js";
|
|
8
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
9
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
const stopPropagation = {
|
|
11
10
|
onTouchStart: event => {
|
|
@@ -36,7 +35,6 @@ export const Modal = ({
|
|
|
36
35
|
onPress: () => isDismissable && onClose?.(),
|
|
37
36
|
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
38
37
|
style: [styles.overlay, style?.overlay, modalModel.animatedStyle],
|
|
39
|
-
testID: TEST_IDS.EOA_MODAL,
|
|
40
38
|
children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
41
39
|
...stopPropagation,
|
|
42
40
|
children: /*#__PURE__*/_jsxs(View, {
|
|
@@ -52,8 +50,7 @@ export const Modal = ({
|
|
|
52
50
|
size: 18,
|
|
53
51
|
color: COLORS.NEUTRAL_7
|
|
54
52
|
}),
|
|
55
|
-
onPress: onClose
|
|
56
|
-
testID: TEST_IDS.EOA_MODAL_CLOSE_BUTTON
|
|
53
|
+
onPress: onClose
|
|
57
54
|
})
|
|
58
55
|
}), content]
|
|
59
56
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","Animated","Keyboard","StyleSheet","TouchableWithoutFeedback","View","ButtonVariant","CrossIcon","COLORS","BORDER_RADIUS","SPACING","SHADOWS","Button","ModalModel","ModalBackground","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Animated","Keyboard","StyleSheet","TouchableWithoutFeedback","View","ButtonVariant","CrossIcon","COLORS","BORDER_RADIUS","SPACING","SHADOWS","Button","ModalModel","ModalBackground","jsx","_jsx","jsxs","_jsxs","stopPropagation","onTouchStart","event","onMouseDown","Modal","isVisible","isDismissable","onClose","style","content","withBackground","modalModel","animation","show","dismiss","onPress","children","styles","overlay","animatedStyle","container","backgroundWrapper","closeButton","variant","TERTIARY","icon","size","color","NEUTRAL_7","create","absoluteFillObject","justifyContent","alignItems","backgroundColor","zIndex","position","NEUTRAL_1","minWidth","maxWidth","borderRadius","paddingHorizontal","paddingVertical","gap","top","right"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/Modal/Modal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAeC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SACEC,QAAQ,EAERC,QAAQ,EAERC,UAAU,EAEVC,wBAAwB,EACxBC,IAAI,QAEC,cAAc;AAErB,SACEC,aAAa,EACbC,SAAS,EACTC,MAAM,EACNC,aAAa,EACbC,OAAO,EACPC,OAAO,EACPC,MAAM,QACD,4BAA4B;AAEnC,SAASC,UAAU,QAAQ,YAAS;AACpC,SAASC,eAAe,QAAQ,sBAAmB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEnD,MAAMC,eAAe,GAAG;EACtBC,YAAY,EAAGC,KAA4B,IAAK;IAC9CA,KAAK,CAACF,eAAe,CAAC,CAAC;EACzB,CAAC;EACDG,WAAW,EAAGD,KAAiB,IAAK;IAClCA,KAAK,CAACF,eAAe,CAAC,CAAC;EACzB;AACF,CAAC;AAmBD,OAAO,MAAMI,KAAK,GAAGA,CAAC;EACpBC,SAAS;EACTC,aAAa,GAAG,IAAI;EACpBC,OAAO;EACPC,KAAK;EACLC,OAAO;EACPC;AACU,CAAC,KAAK;EAChB,MAAM,CAACC,UAAU,CAAC,GAAG9B,QAAQ,CAAC,MAAM,IAAIa,UAAU,CAAC,CAAC,CAAC;EAErDd,SAAS,CAAC,MAAM;IACd,IAAIyB,SAAS,EAAE;MACbM,UAAU,CAACC,SAAS,CAACC,IAAI,CAAC,CAAC;MAC3B;MACA9B,QAAQ,CAAC+B,OAAO,CAAC,CAAC;IACpB;EACF,CAAC,EAAE,CAACT,SAAS,CAAC,CAAC;EAEf,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAC3B,oBACER,IAAA,CAACZ,wBAAwB;IAAC8B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AAE;IACTe,QAAQ,EAAE,UAAU;IACpBJ,cAAc,EAAE,eAAe;IAC/BE,eAAe,EAAE5C,MAAM,CAAC+C,SAAS;IACjCC,QAAQ,EAAE,GAAG;IACbC,QAAQ,EAAE,GAAG;IACbC,YAAY,EAAEjD,aAAa,CAAC,KAAK,CAAC;IAClCkD,iBAAiB,EAAEjD,OAAO,CAAC,MAAM,CAAC;IAClCkD,eAAe,EAAElD,OAAO,CAAC,KAAK,CAAC;IAC/BmD,GAAG,EAAEnD,OAAO,CAAC,KAAK,CAAC;IACnB,GAAGC,OAAO,CAAC,GAAG;EAChB,CAAC;EACD8B,WAAW,EAAE;IACXa,QAAQ,EAAE,UAAU;IACpBQ,GAAG,EAAEpD,OAAO,CAAC,KAAK,CAAC;IACnBqD,KAAK,EAAErD,OAAO,CAAC,KAAK;EACtB,CAAC;EACD8B,iBAAiB,EAAE;IACjB,GAAGrC,UAAU,CAAC8C,kBAAkB;IAChCI,MAAM,EAAE,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -9,7 +9,6 @@ import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
|
9
9
|
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
10
10
|
import { getEoaButtonColor } from "../../helpers.js";
|
|
11
11
|
import { AssessmentScoreCard } from "../AssessmentScoreCard/AssessmentScoreCard.js";
|
|
12
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
13
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
export const NoAnswer = ({
|
|
15
14
|
model,
|
|
@@ -27,8 +26,7 @@ export const NoAnswer = ({
|
|
|
27
26
|
const buttons = [{
|
|
28
27
|
text: textContent.leftButtonText ?? '',
|
|
29
28
|
colorScheme: getEoaButtonColor(popUpData),
|
|
30
|
-
onPress: () => model.hidePopUpAndLeave()
|
|
31
|
-
testID: TEST_IDS.EOA_LEAVE_BUTTON
|
|
29
|
+
onPress: () => model.hidePopUpAndLeave()
|
|
32
30
|
}];
|
|
33
31
|
if (!isExam) {
|
|
34
32
|
buttons.push({
|
|
@@ -37,8 +35,7 @@ export const NoAnswer = ({
|
|
|
37
35
|
onPress: () => {
|
|
38
36
|
model.goToFirstProblemPressed();
|
|
39
37
|
model.hidePopUp();
|
|
40
|
-
}
|
|
41
|
-
testID: TEST_IDS.EOA_GO_TO_PROBLEM_ONE_BUTTON
|
|
38
|
+
}
|
|
42
39
|
});
|
|
43
40
|
return buttons;
|
|
44
41
|
}
|
|
@@ -50,8 +47,7 @@ export const NoAnswer = ({
|
|
|
50
47
|
onPress: () => {
|
|
51
48
|
onPracticePress?.();
|
|
52
49
|
model.hidePopUp();
|
|
53
|
-
}
|
|
54
|
-
testID: TEST_IDS.EOA_PRACTICE_BUTTON
|
|
50
|
+
}
|
|
55
51
|
});
|
|
56
52
|
}
|
|
57
53
|
return buttons;
|
|
@@ -67,7 +63,6 @@ export const NoAnswer = ({
|
|
|
67
63
|
});
|
|
68
64
|
return /*#__PURE__*/_jsxs(View, {
|
|
69
65
|
style: styles.container,
|
|
70
|
-
testID: TEST_IDS.EOA_WITH_NO_CORRECT_ANSWER,
|
|
71
66
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
72
67
|
style: styles.textContainer,
|
|
73
68
|
children: [!!textContent.title && /*#__PURE__*/_jsx(Typography, {
|
|
@@ -98,7 +93,6 @@ export const NoAnswer = ({
|
|
|
98
93
|
}
|
|
99
94
|
},
|
|
100
95
|
onPress: button.onPress,
|
|
101
|
-
testID: button.testID,
|
|
102
96
|
children: button.text
|
|
103
97
|
}, index))
|
|
104
98
|
})]
|