@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
|
@@ -14,7 +14,6 @@ import { useKeyBoard } from '../../../../../shared/hooks/useKeyboard'
|
|
|
14
14
|
import { KeyboardKeys } from '../../../../../lib/constants'
|
|
15
15
|
|
|
16
16
|
import { SendMessageButton } from './SendMessageButton'
|
|
17
|
-
import { TEST_IDS } from '../../../../../config/dataTestIDs'
|
|
18
17
|
|
|
19
18
|
const MAX_AVAILABLE_MESSAGE_LENGTH = 500
|
|
20
19
|
const COMPACT_WIDTH = 134
|
|
@@ -111,7 +110,6 @@ export const ChatTextInput = ({
|
|
|
111
110
|
placeholder={placeholder}
|
|
112
111
|
placeholderTextColor={COLORS.NEUTRAL_5}
|
|
113
112
|
style={styles.input}
|
|
114
|
-
testID={TEST_IDS.OPEN_CHAT_TEXT_INPUT}
|
|
115
113
|
/>
|
|
116
114
|
<SendMessageButton
|
|
117
115
|
onPress={handleSendMessage}
|
|
@@ -6,7 +6,6 @@ import { HintButtonVariant, RequestHintButton } from '../RequestHintButton'
|
|
|
6
6
|
import { useChatModel } from '../../../context/ChatBotModelContext'
|
|
7
7
|
import { t } from '../../../../../shared/translation'
|
|
8
8
|
import { ChatTextInput } from './ChatTextInput'
|
|
9
|
-
import { TEST_IDS } from '../../../../../config/dataTestIDs'
|
|
10
9
|
|
|
11
10
|
type FreeTextInputBlockProps = {
|
|
12
11
|
optionLabel: string
|
|
@@ -39,7 +38,7 @@ export const FreeTextInputBlock = ({
|
|
|
39
38
|
const handleOnChangeText = (text: string) => model.textInput.setValue(text)
|
|
40
39
|
|
|
41
40
|
return (
|
|
42
|
-
<View style={styles.container}
|
|
41
|
+
<View style={styles.container}>
|
|
43
42
|
<ChatTextInput
|
|
44
43
|
value={inputValue}
|
|
45
44
|
onSubmit={handleOnSubmit}
|
|
@@ -9,7 +9,6 @@ import Animated, {
|
|
|
9
9
|
import { ArrowUpIcon, COLORS, IS_MOBILE } from '@magmamath/react-native-ui'
|
|
10
10
|
import { ColorScheme } from '@magmamath/students-features'
|
|
11
11
|
import { MESSAGE_COLORS_MAP } from '../../../constants'
|
|
12
|
-
import { TEST_IDS } from '../../../../../config/dataTestIDs'
|
|
13
12
|
|
|
14
13
|
type SendMessageButtonProps = {
|
|
15
14
|
onPress: () => void
|
|
@@ -55,7 +54,6 @@ export const SendMessageButton = ({
|
|
|
55
54
|
disabled={disabled}
|
|
56
55
|
accessibilityState={{ disabled }}
|
|
57
56
|
accessibilityRole="button"
|
|
58
|
-
testID={TEST_IDS.OPEN_CHAT_SEND_MESSAGE_BUTTON}
|
|
59
57
|
>
|
|
60
58
|
{IS_MOBILE ? (
|
|
61
59
|
<Animated.View
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
SPACING,
|
|
15
15
|
} from '@magmamath/react-native-ui'
|
|
16
16
|
import { ColorScheme } from '@magmamath/students-features'
|
|
17
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
18
17
|
import { INPUT_WIDTH, MESSAGE_COLORS_MAP } from '../../constants'
|
|
19
18
|
|
|
20
19
|
export enum HintButtonVariant {
|
|
@@ -104,7 +103,6 @@ export const RequestHintButton = memo(
|
|
|
104
103
|
disabled={disabled}
|
|
105
104
|
accessibilityState={{ disabled }}
|
|
106
105
|
accessibilityRole="button"
|
|
107
|
-
testID={TEST_IDS.CHAT_NEED_A_HINT_BUTTON}
|
|
108
106
|
>
|
|
109
107
|
<Animated.View style={[styles.content, animatedTextContainerStyle]}>
|
|
110
108
|
<Animated.Text numberOfLines={1} style={[styles.text, animatedTextStyle, { fontSize }]}>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React, { PropsWithChildren } from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
3
|
import { BORDER_RADIUS, COLORS, Loader, LoaderColor } from '@magmamath/react-native-ui'
|
|
4
4
|
import { SPACING } from '@magmamath/react-native-ui'
|
|
5
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
6
5
|
|
|
7
6
|
type MessageLoaderProps = {
|
|
8
7
|
isLoading?: boolean
|
|
@@ -12,7 +11,7 @@ export const MessageLoader = ({ isLoading }: MessageLoaderProps) => {
|
|
|
12
11
|
if (!isLoading) return null
|
|
13
12
|
|
|
14
13
|
return (
|
|
15
|
-
<View style={styles.loader}
|
|
14
|
+
<View style={styles.loader}>
|
|
16
15
|
<Loader color={LoaderColor.GRAY} />
|
|
17
16
|
</View>
|
|
18
17
|
)
|
|
@@ -6,7 +6,6 @@ import { ConversationMessage } from '../../types/units.types'
|
|
|
6
6
|
import { MessageVariant } from '../../types/model.types'
|
|
7
7
|
import { ColorScheme } from '../../types/style.types'
|
|
8
8
|
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
9
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
10
9
|
|
|
11
10
|
type MessageTextToSpeechProps = {
|
|
12
11
|
state: T2SState
|
|
@@ -35,7 +34,6 @@ export const MessageTextToSpeech = ({
|
|
|
35
34
|
colorScheme={MESSAGE_COLORS_MAP[colorScheme][variant].icon}
|
|
36
35
|
state={state}
|
|
37
36
|
onPress={play}
|
|
38
|
-
testID={TEST_IDS.CHAT_TTS_BUTTON}
|
|
39
37
|
/>
|
|
40
38
|
)
|
|
41
39
|
}
|
|
@@ -7,7 +7,6 @@ import { ColorScheme } from '../../types/style.types'
|
|
|
7
7
|
import { MessageVariant } from '../../types/model.types'
|
|
8
8
|
import { VariantProps } from './ChatMessage'
|
|
9
9
|
import { MessageContent } from './MessageContent'
|
|
10
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
11
10
|
|
|
12
11
|
export const ReceivedMessage = ({
|
|
13
12
|
message,
|
|
@@ -22,7 +21,7 @@ export const ReceivedMessage = ({
|
|
|
22
21
|
const text = isTranslated ? message.translatedMessage : message.message
|
|
23
22
|
|
|
24
23
|
return (
|
|
25
|
-
<View style={styles.container}
|
|
24
|
+
<View style={styles.container}>
|
|
26
25
|
<View style={[styles.iconWrapper, { opacity: withIcon ? 1 : 0 }]}>
|
|
27
26
|
<ChatbotIcon width={CHATBOT_ICON_SIZE.width} height={CHATBOT_ICON_SIZE.height} />
|
|
28
27
|
</View>
|
|
@@ -7,7 +7,6 @@ import { VariantProps } from './ChatMessage'
|
|
|
7
7
|
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
8
8
|
import { ColorScheme } from '../../types/style.types'
|
|
9
9
|
import { MessageVariant } from '../../types/model.types'
|
|
10
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
11
10
|
|
|
12
11
|
export const SentMessage = React.memo(
|
|
13
12
|
({ message, isTranslated, colorScheme = ColorScheme.Blue }: VariantProps) => {
|
|
@@ -15,7 +14,6 @@ export const SentMessage = React.memo(
|
|
|
15
14
|
|
|
16
15
|
return (
|
|
17
16
|
<View
|
|
18
|
-
testID={TEST_IDS.CHAT_MESSAGE_SENT}
|
|
19
17
|
style={[
|
|
20
18
|
styles.container,
|
|
21
19
|
{ backgroundColor: MESSAGE_COLORS_MAP[colorScheme][MessageVariant.SENT].background },
|
|
@@ -6,7 +6,6 @@ import { StyleSheet } from 'react-native'
|
|
|
6
6
|
import { HighlighterIcon } from '../../../shared/icons/HighlighterIcon'
|
|
7
7
|
import { ConversationMessage } from '../types/units.types'
|
|
8
8
|
import { useText } from '../../../shared/translation'
|
|
9
|
-
import { TEST_IDS } from '../../../config/dataTestIDs'
|
|
10
9
|
|
|
11
10
|
type ErrorSpottingButtonProps = {
|
|
12
11
|
contextMessage: ConversationMessage
|
|
@@ -33,7 +32,6 @@ export const ErrorSpottingButton = ({ contextMessage }: ErrorSpottingButtonProps
|
|
|
33
32
|
variant={'secondary'}
|
|
34
33
|
colorScheme={'blue'}
|
|
35
34
|
size={'small'}
|
|
36
|
-
testID={TEST_IDS.CHAT_ERROR_SPOTTING_BUTTON}
|
|
37
35
|
onPress={() => {
|
|
38
36
|
model.errorSpotting.errorSpottingPressed({ message: contextMessage })
|
|
39
37
|
}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createEvent, createStore, sample, Store, restore } from 'effector'
|
|
2
|
-
import { ChatItem, ConversationMessage } from '../types/units.types'
|
|
2
|
+
import { ChatItem, ConversationMessage, ErrorChar } from '../types/units.types'
|
|
3
3
|
|
|
4
4
|
type ErrorSpottingProps = {
|
|
5
5
|
$currentChatData: Store<ChatItem>
|
|
@@ -10,6 +10,7 @@ type ActiveErrorSpottingData = {
|
|
|
10
10
|
isDisabled: boolean
|
|
11
11
|
strokesIds: string[]
|
|
12
12
|
validationKey: null | string
|
|
13
|
+
errorChars: ErrorChar[] | null
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const AUTO_CLOSE_TIMEOUT = 5000
|
|
@@ -62,6 +63,7 @@ export class ErrorSpottingModel {
|
|
|
62
63
|
return {
|
|
63
64
|
validationKey: key,
|
|
64
65
|
strokesIds: chatData.currentThread.errorStrokesIds,
|
|
66
|
+
errorChars: chatData.currentThread.errorChars,
|
|
65
67
|
isActive: source.isEnabled && !isDisabled && isKeyChanged,
|
|
66
68
|
isDisabled,
|
|
67
69
|
}
|
|
@@ -103,6 +103,7 @@ export function prepareChatRequestPayload(
|
|
|
103
103
|
...(imageCdnId && { imageCdnId }),
|
|
104
104
|
...(imageAltText && { altText: imageAltText }),
|
|
105
105
|
...(!!problemStandards?.length && { problemStandards }),
|
|
106
|
+
...(!!answerOptions?.length && { answerOptions }),
|
|
106
107
|
},
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -56,24 +56,44 @@ export class ChatBotThreadManager {
|
|
|
56
56
|
const key = this.currentKey
|
|
57
57
|
const existingThreadItem = this.threads.get(key)
|
|
58
58
|
if (existingThreadItem) return existingThreadItem
|
|
59
|
+
|
|
59
60
|
const threadItem = new ThreadItem()
|
|
60
61
|
this.threads.set(key, threadItem)
|
|
61
|
-
|
|
62
|
+
await this.setDrawBoardContent(threadItem)
|
|
63
|
+
return threadItem
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private async setDrawBoardContent(threadItem: ThreadItem) {
|
|
67
|
+
if (!this.drawBoardAdapter) return
|
|
62
68
|
try {
|
|
63
69
|
const content = await this.drawBoardAdapter.getContent()
|
|
64
|
-
if (!content) return
|
|
65
|
-
threadItem.setValidationKey(content.validationKey)
|
|
66
|
-
if (content.text) return threadItem.setText(content.text)
|
|
67
|
-
if (content.strokes?.length) return threadItem.setStrokes(content.strokes)
|
|
68
|
-
} catch {}
|
|
70
|
+
if (!content) return
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
threadItem.setValidationKey(content.validationKey)
|
|
73
|
+
threadItem.setStudentInput(content.studentInput)
|
|
74
|
+
|
|
75
|
+
if (content.strokes?.length) {
|
|
76
|
+
threadItem.setStrokes(content.strokes)
|
|
77
|
+
}
|
|
78
|
+
if (content.spreadSheetContent?.length) {
|
|
79
|
+
threadItem.setSpreadSheetContent(content.spreadSheetContent)
|
|
80
|
+
}
|
|
81
|
+
if (content.equationContent?.length) {
|
|
82
|
+
threadItem.setEquationContent(content.equationContent)
|
|
83
|
+
}
|
|
84
|
+
if (content.drawBoardImage) {
|
|
85
|
+
threadItem.setDrawBoardImage(content.drawBoardImage)
|
|
86
|
+
}
|
|
87
|
+
} catch (e) {
|
|
88
|
+
console.error('Failed to load draw board content', e)
|
|
89
|
+
}
|
|
71
90
|
}
|
|
72
91
|
|
|
73
92
|
public setDrawBoardAdapter(adapter: IChatDrawBoardAdapter) {
|
|
74
93
|
this.drawBoardAdapter = adapter
|
|
75
94
|
}
|
|
76
95
|
|
|
96
|
+
// TODO: simplify this method, split it into smaller methods
|
|
77
97
|
public readonly postMessage = async (
|
|
78
98
|
payload: PostMessagePayload,
|
|
79
99
|
requestConfig?: RequestOptionalConfig,
|
|
@@ -91,10 +111,25 @@ export class ChatBotThreadManager {
|
|
|
91
111
|
? await this.api.sendMessage(data, requestConfig)
|
|
92
112
|
: await this.api.getHint(data, requestConfig)
|
|
93
113
|
|
|
114
|
+
const isFirstHint = threadItem.hintsHistory.length === 0
|
|
94
115
|
threadItem.history.push(result.message)
|
|
95
116
|
|
|
96
|
-
if (
|
|
97
|
-
threadItem.
|
|
117
|
+
if (type === ChatRequestType.HINT) {
|
|
118
|
+
threadItem.hintsHistory.push(result.message)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (isFirstHint) {
|
|
122
|
+
if ('errorChars' in result && result.errorChars?.length) {
|
|
123
|
+
const errorStrokeIds = result.errorChars.map((c) => c.id)
|
|
124
|
+
threadItem.setErrorStrokesIds(errorStrokeIds)
|
|
125
|
+
threadItem.setErrorChars(result.errorChars)
|
|
126
|
+
}
|
|
127
|
+
if ('errorCellIds' in result && result.errorCellIds?.length) {
|
|
128
|
+
threadItem.setErrorStrokesIds(result.errorCellIds)
|
|
129
|
+
}
|
|
130
|
+
if ('errorStrokeIds' in result && result?.errorStrokeIds) {
|
|
131
|
+
threadItem.setErrorStrokesIds(result.errorStrokeIds)
|
|
132
|
+
}
|
|
98
133
|
}
|
|
99
134
|
|
|
100
135
|
const nextOptions =
|
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ErrorChar,
|
|
3
|
+
EquationItem,
|
|
4
|
+
FullStrokeData,
|
|
5
|
+
IThreadItem,
|
|
6
|
+
SpreadsheetItem,
|
|
7
|
+
} from '../types/units.types'
|
|
2
8
|
import { generateRandomId } from '../../../lib/helpers/helpers'
|
|
3
9
|
|
|
4
10
|
type ThreadItemProps = {
|
|
5
11
|
strokes?: FullStrokeData[]
|
|
6
|
-
text?: string
|
|
7
12
|
key: string
|
|
13
|
+
spreadSheetContent?: SpreadsheetItem[]
|
|
14
|
+
equationContent?: EquationItem[]
|
|
15
|
+
drawBoardImage?: string
|
|
16
|
+
studentInput?: string
|
|
8
17
|
}
|
|
9
18
|
|
|
19
|
+
const DEFAULT_STUDENT_INPUT = 'none'
|
|
20
|
+
|
|
21
|
+
// TODO: move drawboard content to separate class and make ThreadItem responsible only for history and hints
|
|
10
22
|
export class ThreadItem implements IThreadItem {
|
|
11
23
|
public readonly id = generateRandomId()
|
|
12
24
|
public readonly history: string[] = []
|
|
25
|
+
public readonly hintsHistory: string[] = []
|
|
13
26
|
public strokesValidationKey: string | null = null
|
|
14
27
|
public strokes: FullStrokeData[] | null
|
|
15
|
-
public text: string | null = null
|
|
16
28
|
public errorStrokesIds: string[] | null = null
|
|
29
|
+
public errorChars: ErrorChar[] | null = null
|
|
30
|
+
public spreadSheetContent?: SpreadsheetItem[]
|
|
31
|
+
public equationContent?: EquationItem[]
|
|
32
|
+
public drawBoardImage?: string
|
|
33
|
+
public studentInput: string
|
|
17
34
|
|
|
18
35
|
public constructor(props?: ThreadItemProps | null) {
|
|
19
36
|
this.strokes = props?.strokes ?? null
|
|
20
|
-
this.text = props?.text ?? null
|
|
21
37
|
this.strokesValidationKey = props?.key ?? null
|
|
38
|
+
this.spreadSheetContent = props?.spreadSheetContent
|
|
39
|
+
this.equationContent = props?.equationContent
|
|
40
|
+
this.drawBoardImage = props?.drawBoardImage
|
|
41
|
+
this.studentInput = props?.studentInput ?? DEFAULT_STUDENT_INPUT
|
|
22
42
|
}
|
|
23
43
|
|
|
24
44
|
public setStrokes(strokes: FullStrokeData[]) {
|
|
@@ -26,11 +46,6 @@ export class ThreadItem implements IThreadItem {
|
|
|
26
46
|
return this
|
|
27
47
|
}
|
|
28
48
|
|
|
29
|
-
public setText(text: string) {
|
|
30
|
-
this.text = text
|
|
31
|
-
return this
|
|
32
|
-
}
|
|
33
|
-
|
|
34
49
|
public setValidationKey(key: string) {
|
|
35
50
|
this.strokesValidationKey = key
|
|
36
51
|
return this
|
|
@@ -41,19 +56,53 @@ export class ThreadItem implements IThreadItem {
|
|
|
41
56
|
return this
|
|
42
57
|
}
|
|
43
58
|
|
|
44
|
-
public
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
}
|
|
59
|
+
public setErrorChars(chars: ErrorChar[]) {
|
|
60
|
+
this.errorChars = chars
|
|
61
|
+
return this
|
|
62
|
+
}
|
|
50
63
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
public setSpreadSheetContent(content: SpreadsheetItem[]) {
|
|
65
|
+
this.spreadSheetContent = content
|
|
66
|
+
return this
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public setEquationContent(content: EquationItem[]) {
|
|
70
|
+
this.equationContent = content
|
|
71
|
+
return this
|
|
72
|
+
}
|
|
54
73
|
|
|
55
|
-
|
|
74
|
+
public setDrawBoardImage(image: string) {
|
|
75
|
+
this.drawBoardImage = image
|
|
76
|
+
return this
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public setStudentInput(studentInput: string) {
|
|
80
|
+
this.studentInput = studentInput
|
|
81
|
+
return this
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
private getContentProps() {
|
|
85
|
+
if (this.strokes?.length) {
|
|
56
86
|
return { stroke: this.strokes }
|
|
57
87
|
}
|
|
88
|
+
if (this.spreadSheetContent?.length) {
|
|
89
|
+
return { spreadSheetContent: this.spreadSheetContent }
|
|
90
|
+
}
|
|
91
|
+
if (this.equationContent?.length) {
|
|
92
|
+
return { equationContent: this.equationContent }
|
|
93
|
+
}
|
|
94
|
+
return {}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public getNextHintProps() {
|
|
98
|
+
const hintNumber = this.hintsHistory.length
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
hintNumber,
|
|
102
|
+
studentInput: this.studentInput,
|
|
103
|
+
...(this.drawBoardImage && { drawBoardImage: this.drawBoardImage }),
|
|
104
|
+
...(hintNumber === 0 && this.getContentProps()),
|
|
105
|
+
...(this.hintsHistory.length && { previousHints: [...this.hintsHistory] }),
|
|
106
|
+
}
|
|
58
107
|
}
|
|
59
108
|
}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChatAnswer,
|
|
3
|
+
FullStrokeData,
|
|
4
|
+
Stroke,
|
|
5
|
+
EquationItem,
|
|
6
|
+
SpreadsheetItem,
|
|
7
|
+
ErrorChar,
|
|
8
|
+
} from './units.types'
|
|
2
9
|
import { ProblemStandard } from './model.types'
|
|
3
10
|
|
|
4
11
|
export type GetAlternativesPayload = {
|
|
@@ -107,17 +114,25 @@ export type ChatHintPayload = {
|
|
|
107
114
|
correctAnswer: string[]
|
|
108
115
|
userAnswer?: string | string[]
|
|
109
116
|
stroke?: Stroke[]
|
|
110
|
-
|
|
117
|
+
previousHints?: string[]
|
|
111
118
|
language: string
|
|
112
119
|
imageAltText?: string
|
|
113
120
|
imageCdnId?: string
|
|
114
121
|
drawBoardText?: string
|
|
122
|
+
spreadSheetContent?: SpreadsheetItem[]
|
|
123
|
+
equationContent?: EquationItem[]
|
|
124
|
+
drawBoardImage?: string
|
|
125
|
+
hintNumber: number
|
|
126
|
+
studentInput: string
|
|
127
|
+
answerOptions?: string[]
|
|
115
128
|
}
|
|
116
129
|
|
|
117
130
|
export type ChatHintResponse = {
|
|
118
131
|
message: string
|
|
119
132
|
conversationId?: string | null
|
|
120
133
|
errorStrokeIds?: string[]
|
|
134
|
+
errorCellIds?: string[]
|
|
135
|
+
errorChars?: ErrorChar[]
|
|
121
136
|
}
|
|
122
137
|
export type ErrorSpottingPayload = {
|
|
123
138
|
strokes: FullStrokeData[]
|
|
@@ -16,7 +16,14 @@ import {
|
|
|
16
16
|
SendMessageResponse,
|
|
17
17
|
} from './api.types'
|
|
18
18
|
import { ExtendWithOptional } from '../../../lib/helpers/types'
|
|
19
|
-
import {
|
|
19
|
+
import {
|
|
20
|
+
EquationItem,
|
|
21
|
+
ChatAnswer,
|
|
22
|
+
ChatItem,
|
|
23
|
+
ConversationMessage,
|
|
24
|
+
FullStrokeData,
|
|
25
|
+
SpreadsheetItem,
|
|
26
|
+
} from './units.types'
|
|
20
27
|
import { WithAbortSignal } from '../../../lib/types/requests'
|
|
21
28
|
import { RequestOptionalConfig } from '../../../lib/effector/createControllerEffect'
|
|
22
29
|
|
|
@@ -117,8 +124,11 @@ type GetVisibleStrokesResponse = {
|
|
|
117
124
|
|
|
118
125
|
type GetBoardContentResponse = {
|
|
119
126
|
strokes?: FullStrokeData[]
|
|
120
|
-
text?: string
|
|
121
127
|
validationKey: string
|
|
128
|
+
spreadSheetContent?: SpreadsheetItem[]
|
|
129
|
+
equationContent?: EquationItem[]
|
|
130
|
+
drawBoardImage?: string
|
|
131
|
+
studentInput: string
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
export type IChatDrawBoardAdapter = {
|
|
@@ -2,16 +2,42 @@ export type Stroke = {
|
|
|
2
2
|
x: number[]
|
|
3
3
|
y: number[]
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
export type FullStrokeData = Stroke & {
|
|
6
7
|
id: string
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
export type EquationItem = {
|
|
11
|
+
id: string
|
|
12
|
+
value?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type SpreadsheetItem = {
|
|
16
|
+
id: string
|
|
17
|
+
value?: string
|
|
18
|
+
point: {
|
|
19
|
+
x: number
|
|
20
|
+
y: number
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ErrorChar = {
|
|
25
|
+
id: string
|
|
26
|
+
value: string
|
|
27
|
+
}
|
|
28
|
+
|
|
9
29
|
export type IThreadItem = {
|
|
10
30
|
id: string
|
|
11
31
|
strokesValidationKey: string | null
|
|
12
32
|
strokes: FullStrokeData[] | null
|
|
13
33
|
history: string[]
|
|
34
|
+
hintsHistory: string[]
|
|
14
35
|
errorStrokesIds: string[] | null
|
|
36
|
+
errorChars: ErrorChar[] | null
|
|
37
|
+
spreadSheetContent?: SpreadsheetItem[]
|
|
38
|
+
equationContent?: EquationItem[]
|
|
39
|
+
drawBoardImage?: string
|
|
40
|
+
studentInput: string
|
|
15
41
|
}
|
|
16
42
|
|
|
17
43
|
export type ChatAnswer = {
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
import { EOAModalContentProps } from '../../types'
|
|
14
14
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
17
16
|
|
|
18
17
|
export const CheatDetected = ({ textContent, model }: EOAModalContentProps) => {
|
|
19
18
|
useKeyBoard({
|
|
@@ -25,7 +24,7 @@ export const CheatDetected = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
25
24
|
})
|
|
26
25
|
|
|
27
26
|
return (
|
|
28
|
-
<View style={styles.container}
|
|
27
|
+
<View style={styles.container}>
|
|
29
28
|
<Typography variant="h2" style={styles.title}>
|
|
30
29
|
{textContent.title}
|
|
31
30
|
</Typography>
|
|
@@ -40,7 +39,6 @@ export const CheatDetected = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
40
39
|
size={ButtonSize.LARGE}
|
|
41
40
|
style={{ text: styles.buttonText }}
|
|
42
41
|
onPress={model.hidePopUpAndLeave}
|
|
43
|
-
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
44
42
|
>
|
|
45
43
|
{textContent.leftButtonText}
|
|
46
44
|
</Button>
|
|
@@ -12,7 +12,6 @@ import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
|
12
12
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
13
13
|
import { getEoaButtonColor } from '../../helpers'
|
|
14
14
|
import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
|
|
15
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
16
15
|
|
|
17
16
|
export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
|
|
18
17
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -60,7 +59,6 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
|
|
|
60
59
|
|
|
61
60
|
return (
|
|
62
61
|
<View
|
|
63
|
-
testID={TEST_IDS.EOA_WITH_CORRECT_ANSWER}
|
|
64
62
|
style={[
|
|
65
63
|
styles.wrapper,
|
|
66
64
|
modalVariant !== EOAModalVariant.HAS_GOOD_DRAWING && { alignItems: 'center' },
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
import { EOAModalContentProps } from '../../types'
|
|
14
14
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
17
16
|
|
|
18
17
|
export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
19
18
|
const handleDismiss = () => model.hidePopUp()
|
|
@@ -27,7 +26,7 @@ export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
27
26
|
})
|
|
28
27
|
|
|
29
28
|
return (
|
|
30
|
-
<View style={styles.container}
|
|
29
|
+
<View style={styles.container}>
|
|
31
30
|
<Typography variant="h1" style={styles.description}>
|
|
32
31
|
{textContent.description}
|
|
33
32
|
</Typography>
|
|
@@ -48,7 +47,6 @@ export const ExamLeave = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
48
47
|
size={ButtonSize.LARGE}
|
|
49
48
|
style={{ text: styles.buttonText }}
|
|
50
49
|
onPress={model.hidePopUpAndLeave}
|
|
51
|
-
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
52
50
|
>
|
|
53
51
|
{textContent.rightButtonText}
|
|
54
52
|
</Button>
|
|
@@ -15,7 +15,6 @@ import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
16
|
import { getEoaButtonColor } from '../../helpers'
|
|
17
17
|
import { useUnit } from 'effector-react'
|
|
18
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
19
18
|
|
|
20
19
|
export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
21
20
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -29,7 +28,7 @@ export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
29
28
|
})
|
|
30
29
|
|
|
31
30
|
return (
|
|
32
|
-
<View style={styles.container}
|
|
31
|
+
<View style={styles.container}>
|
|
33
32
|
<Typography variant="h2" style={styles.title}>
|
|
34
33
|
{textContent.title}
|
|
35
34
|
</Typography>
|
|
@@ -44,7 +43,6 @@ export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
44
43
|
size={ButtonSize.LARGE}
|
|
45
44
|
style={{ text: styles.buttonText }}
|
|
46
45
|
onPress={model.hidePopUpAndLeave}
|
|
47
|
-
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
48
46
|
>
|
|
49
47
|
{textContent.leftButtonText}
|
|
50
48
|
</Button>
|
|
@@ -18,7 +18,6 @@ import { PracticeButton } from '../../ui/PracticeButton'
|
|
|
18
18
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
19
19
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
20
20
|
import { getEoaButtonColor } from '../../helpers'
|
|
21
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
22
21
|
|
|
23
22
|
export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
|
|
24
23
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -42,7 +41,7 @@ export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalCont
|
|
|
42
41
|
})
|
|
43
42
|
|
|
44
43
|
return (
|
|
45
|
-
<View style={styles.container}
|
|
44
|
+
<View style={styles.container}>
|
|
46
45
|
<View style={styles.contentBackground}>
|
|
47
46
|
{IS_MOBILE ? (
|
|
48
47
|
<Image source={require('./blurred-card.png')} />
|
|
@@ -64,7 +63,6 @@ export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalCont
|
|
|
64
63
|
colorScheme={getEoaButtonColor(popUpData)}
|
|
65
64
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
66
65
|
onPress={model.hidePopUpAndLeave}
|
|
67
|
-
testID={TEST_IDS.EOA_LEAVE_BUTTON}
|
|
68
66
|
>
|
|
69
67
|
{textContent.leftButtonText ?? ''}
|
|
70
68
|
</Button>
|
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
|
|
24
24
|
import { ModalModel } from './model'
|
|
25
25
|
import { ModalBackground } from './ModalBackground'
|
|
26
|
-
import { TEST_IDS } from '../../../../config/dataTestIDs'
|
|
27
26
|
|
|
28
27
|
const stopPropagation = {
|
|
29
28
|
onTouchStart: (event: GestureResponderEvent) => {
|
|
@@ -72,10 +71,7 @@ export const Modal = ({
|
|
|
72
71
|
if (!isVisible) return null
|
|
73
72
|
return (
|
|
74
73
|
<TouchableWithoutFeedback onPress={() => isDismissable && onClose?.()}>
|
|
75
|
-
<Animated.View
|
|
76
|
-
style={[styles.overlay, style?.overlay, modalModel.animatedStyle]}
|
|
77
|
-
testID={TEST_IDS.EOA_MODAL}
|
|
78
|
-
>
|
|
74
|
+
<Animated.View style={[styles.overlay, style?.overlay, modalModel.animatedStyle]}>
|
|
79
75
|
<TouchableWithoutFeedback {...stopPropagation}>
|
|
80
76
|
<View style={[styles.container, style?.container]}>
|
|
81
77
|
{withBackground && <View style={styles.backgroundWrapper}>{<ModalBackground />}</View>}
|
|
@@ -85,7 +81,6 @@ export const Modal = ({
|
|
|
85
81
|
variant={ButtonVariant.TERTIARY}
|
|
86
82
|
icon={<CrossIcon size={18} color={COLORS.NEUTRAL_7} />}
|
|
87
83
|
onPress={onClose}
|
|
88
|
-
testID={TEST_IDS.EOA_MODAL_CLOSE_BUTTON}
|
|
89
84
|
/>
|
|
90
85
|
</View>
|
|
91
86
|
)}
|