@magmamath/students-features 1.2.2-rc.5 → 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/features/voice/recording/components/VoiceRecordButton.js +0 -2
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +0 -2
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +0 -2
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +1 -5
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +0 -4
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +0 -4
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.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/features/voice/recording/components/VoiceRecordButton.js +0 -2
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +0 -2
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +0 -2
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +1 -1
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -5
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +0 -4
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +0 -4
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.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/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -3
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.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/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -3
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.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/features/voice/recording/components/VoiceRecordButton.tsx +0 -2
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +1 -2
- package/src/features/voice/recording/components/VoiceRecordTimer.tsx +1 -2
- package/src/features/voice/recording/modal/ModalFooterButtons.tsx +0 -6
- package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +0 -4
- package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +0 -4
- package/src/index.ts +0 -1
- package/src/shared/components/PlayButton.tsx +0 -1
- package/dist/commonjs/config/dataTestIDs.js +0 -66
- package/dist/commonjs/config/dataTestIDs.js.map +0 -1
- package/dist/module/config/dataTestIDs.js +0 -63
- package/dist/module/config/dataTestIDs.js.map +0 -1
- package/dist/typescript/commonjs/config/dataTestIDs.d.ts +0 -61
- package/dist/typescript/commonjs/config/dataTestIDs.d.ts.map +0 -1
- package/dist/typescript/module/config/dataTestIDs.d.ts +0 -61
- package/dist/typescript/module/config/dataTestIDs.d.ts.map +0 -1
- package/src/config/dataTestIDs.ts +0 -66
|
@@ -5,7 +5,6 @@ import React, { memo } from 'react';
|
|
|
5
5
|
import Animated, { useSharedValue, withTiming, useAnimatedStyle, interpolateColor } from 'react-native-reanimated';
|
|
6
6
|
import { ArrowRightIcon, ArrowUpIcon, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui';
|
|
7
7
|
import { ColorScheme } from '@magmamath/students-features';
|
|
8
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
9
8
|
import { INPUT_WIDTH, MESSAGE_COLORS_MAP } from "../../constants.js";
|
|
10
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
export let HintButtonVariant = /*#__PURE__*/function (HintButtonVariant) {
|
|
@@ -81,7 +80,6 @@ export const RequestHintButton = /*#__PURE__*/memo(({
|
|
|
81
80
|
disabled
|
|
82
81
|
},
|
|
83
82
|
accessibilityRole: "button",
|
|
84
|
-
testID: TEST_IDS.CHAT_NEED_A_HINT_BUTTON,
|
|
85
83
|
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
86
84
|
style: [styles.content, animatedTextContainerStyle],
|
|
87
85
|
children: [/*#__PURE__*/_jsx(Animated.Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","StyleSheet","React","memo","Animated","useSharedValue","withTiming","useAnimatedStyle","interpolateColor","ArrowRightIcon","ArrowUpIcon","COLORS","FONT_FAMILY","SPACING","ColorScheme","
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","React","memo","Animated","useSharedValue","withTiming","useAnimatedStyle","interpolateColor","ArrowRightIcon","ArrowUpIcon","COLORS","FONT_FAMILY","SPACING","ColorScheme","INPUT_WIDTH","MESSAGE_COLORS_MAP","jsx","_jsx","jsxs","_jsxs","HintButtonVariant","HOVER_ANIMATION_DURATION","REQUEST_HINT_BUTTON","DEFAULT","width","fontSize","SHORT","RequestHintButton","onPress","label","disabled","colorScheme","Blue","variant","hoverSv","onHoverIn","value","duration","onHoverOut","animatedTextContainerStyle","backgroundColor","NEUTRAL_2","borderColor","NEUTRAL_5","defaultBorderColor","NEUTRAL_1","sent","border","background","animatedTextStyle","color","NEUTRAL_10","iconColor","style","styles","button","cursor","accessibilityState","accessibilityRole","children","View","content","Text","numberOfLines","text","iconWrapper","size","create","flexDirection","justifyContent","fontWeight","fontFamily","buenosAires","height","flex","alignItems","paddingHorizontal","borderWidth","borderRadius","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","PRIMARY_BLUE","top"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatInput/RequestHintButton.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,OAAOC,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,OAAOC,QAAQ,IACbC,cAAc,EACdC,UAAU,EACVC,gBAAgB,EAChBC,gBAAgB,QACX,yBAAyB;AAChC,SACEC,cAAc,EACdC,WAAW,EACXC,MAAM,EACNC,WAAW,EACXC,OAAO,QACF,4BAA4B;AACnC,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,WAAW,EAAEC,kBAAkB,QAAQ,oBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjE,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAK7B,MAAMC,wBAAwB,GAAG,GAAG;AAEpC,MAAMC,mBAAmB,GAAG;EAC1B,CAACF,iBAAiB,CAACG,OAAO,GAAG;IAC3BC,KAAK,EAAEV,WAAW;IAClBW,QAAQ,EAAE;EACZ,CAAC;EACD,CAACL,iBAAiB,CAACM,KAAK,GAAG;IAAEF,KAAK,EAAE,GAAG;IAAEC,QAAQ,EAAE;EAAG;AACxD,CAAC;AAUD,OAAO,MAAME,iBAAiB,gBAAGzB,IAAI,CACnC,CAAC;EACC0B,OAAO;EACPC,KAAK;EACLC,QAAQ,GAAG,KAAK;EAChBC,WAAW,GAAGlB,WAAW,CAACmB,IAAI;EAC9BC,OAAO,GAAGb,iBAAiB,CAACG;AACN,CAAC,KAAK;EAC5B,MAAMW,OAAO,GAA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leSheet, View } from 'react-native';
|
|
5
5
|
import { BORDER_RADIUS, COLORS, Loader, LoaderColor } from '@magmamath/react-native-ui';
|
|
6
6
|
import { SPACING } from '@magmamath/react-native-ui';
|
|
7
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
8
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
8
|
export const MessageLoader = ({
|
|
10
9
|
isLoading
|
|
@@ -12,7 +11,6 @@ export const MessageLoader = ({
|
|
|
12
11
|
if (!isLoading) return null;
|
|
13
12
|
return /*#__PURE__*/_jsx(View, {
|
|
14
13
|
style: styles.loader,
|
|
15
|
-
testID: TEST_IDS.CHAT_MESSAGE_LOADER,
|
|
16
14
|
children: /*#__PURE__*/_jsx(Loader, {
|
|
17
15
|
color: LoaderColor.GRAY
|
|
18
16
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","BORDER_RADIUS","COLORS","Loader","LoaderColor","SPACING","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","BORDER_RADIUS","COLORS","Loader","LoaderColor","SPACING","jsx","_jsx","MessageLoader","isLoading","style","styles","loader","children","color","GRAY","create","marginLeft","alignSelf","marginTop","flexDirection","alignItems","justifyContent","maxWidth","padding","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor","NEUTRAL_3"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,aAAa,EAAEC,MAAM,EAAEC,MAAM,EAAEC,WAAW,QAAQ,4BAA4B;AACvF,SAASC,OAAO,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMpD,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAAEC;AAA8B,CAAC,KAAK;EAClE,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,oBACEF,IAAA,CAACP,IAAI;IAACU,KAAK,EAAEC,MAAM,CAACC,MAAO;IAAAC,QAAA,eACzBN,IAAA,CAACJ,MAAM;MAACW,KAAK,EAAEV,WAAW,CAACW;IAAK,CAAE;EAAC,CAC/B,CAAC;AAEX,CAAC;AAED,MAAMJ,MAAM,GAAGZ,UAAU,CAACiB,MAAM,CAAC;EAC/BJ,MAAM,EAAE;IACNK,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,YAAY;IACvBC,SAAS,EAAEd,OAAO,CAAC,KAAK,CAAC;IACzBe,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBC,cAAc,EAAE,YAAY;IAC5BC,QAAQ,EAAE,EAAE;IACZC,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE/B,aAAa,CAAC,KAAK,CAAC;IAClCgC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAEhC,MAAM,CAACiC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import { useChatModel } from "../../context/ChatBotModelContext.js";
|
|
|
5
5
|
import { PlayButton } from "../../../../shared/components/PlayButton.js";
|
|
6
6
|
import { ColorScheme } from "../../types/style.types.js";
|
|
7
7
|
import { MESSAGE_COLORS_MAP } from "../../constants.js";
|
|
8
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
export const MessageTextToSpeech = ({
|
|
11
10
|
state,
|
|
@@ -23,8 +22,7 @@ export const MessageTextToSpeech = ({
|
|
|
23
22
|
return /*#__PURE__*/_jsx(PlayButton, {
|
|
24
23
|
colorScheme: MESSAGE_COLORS_MAP[colorScheme][variant].icon,
|
|
25
24
|
state: state,
|
|
26
|
-
onPress: play
|
|
27
|
-
testID: TEST_IDS.CHAT_TTS_BUTTON
|
|
25
|
+
onPress: play
|
|
28
26
|
});
|
|
29
27
|
};
|
|
30
28
|
//# sourceMappingURL=MessageTextToSpeech.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useChatModel","PlayButton","ColorScheme","MESSAGE_COLORS_MAP","
|
|
1
|
+
{"version":3,"names":["React","useChatModel","PlayButton","ColorScheme","MESSAGE_COLORS_MAP","jsx","_jsx","MessageTextToSpeech","state","variant","message","colorScheme","Blue","model","play","t2s","isTranslated","translation","$isTranslated","getState","icon","onPress"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,UAAU,QAAQ,6CAA0C;AAIrE,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,kBAAkB,QAAQ,oBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AASpD,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,KAAK;EACLC,OAAO;EACPC,OAAO;EACPC,WAAW,GAAGR,WAAW,CAACS;AACF,CAAC,KAAK;EAC9B,MAAMC,KAAK,GAAGZ,YAAY,CAAC,CAAC;EAE5B,MAAMa,IAAI,GAAGA,CAAA,KAAM;IACjB,KAAKD,KAAK,CAACE,GAAG,CAACD,IAAI,CAAC;MAClBE,YAAY,EAAEH,KAAK,CAACI,WAAW,CAACC,aAAa,CAACC,QAAQ,CAAC,CAAC;MACxDT;IACF,CAAC,CAAC;EACJ,CAAC;EAED,oBACEJ,IAAA,CAACJ,UAAU;IACTS,WAAW,EAAEP,kBAAkB,CAACO,WAAW,CAAC,CAACF,OAAO,CAAC,CAACW,IAAK;IAC3DZ,KAAK,EAAEA,KAAM;IACba,OAAO,EAAEP;EAAK,CACf,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -8,7 +8,6 @@ import { ChatbotIcon } from '@magmamath/students-features';
|
|
|
8
8
|
import { ColorScheme } from "../../types/style.types.js";
|
|
9
9
|
import { MessageVariant } from "../../types/model.types.js";
|
|
10
10
|
import { MessageContent } from "./MessageContent.js";
|
|
11
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
12
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export const ReceivedMessage = ({
|
|
14
13
|
message,
|
|
@@ -23,7 +22,6 @@ export const ReceivedMessage = ({
|
|
|
23
22
|
const text = isTranslated ? message.translatedMessage : message.message;
|
|
24
23
|
return /*#__PURE__*/_jsxs(View, {
|
|
25
24
|
style: styles.container,
|
|
26
|
-
testID: TEST_IDS.CHAT_MESSAGE_RECEIVED,
|
|
27
25
|
children: [/*#__PURE__*/_jsx(View, {
|
|
28
26
|
style: [styles.iconWrapper, {
|
|
29
27
|
opacity: withIcon ? 1 : 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","View","BORDER_RADIUS","SPACING","CHATBOT_ICON_SIZE","MESSAGE_WIDTH","ChatbotIcon","ColorScheme","MessageVariant","MessageContent","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","View","BORDER_RADIUS","SPACING","CHATBOT_ICON_SIZE","MESSAGE_WIDTH","ChatbotIcon","ColorScheme","MessageVariant","MessageContent","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","isTranslated","t2sState","withIcon","colorScheme","Blue","withErrorSpotting","highlightedWordIndex","TTSHighlightRenderer","text","translatedMessage","style","styles","container","children","iconWrapper","opacity","width","height","variant","RECEIVED","create","flexDirection","alignItems","justifyContent","paddingHorizontal","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor","select","web","backfaceVisibility"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,aAAa,EAAEC,OAAO,QAAQ,4BAA4B;AACnE,SAASC,iBAAiB,EAAEC,aAAa,QAAQ,oBAAiB;AAClE,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,cAAc,QAAQ,4BAAyB;AAExD,SAASC,cAAc,QAAQ,qBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,OAAO;EACPC,YAAY;EACZC,QAAQ;EACRC,QAAQ;EACRC,WAAW,GAAGZ,WAAW,CAACa,IAAI;EAC9BC,iBAAiB;EACjBC,oBAAoB;EACpBC;AACY,CAAC,KAAK;EAClB,MAAMC,IAAI,GAAGR,YAAY,GAAGD,OAAO,CAACU,iBAAiB,GAAGV,OAAO,CAACA,OAAO;EAEvE,oBACEF,KAAA,CAACZ,IAAI;IAACyB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BlB,IAAA,CAACV,IAAI;MAACyB,KAAK,EAAE,CAACC,MAAM,CAACG,WAAW,EAAE;QAAEC,OAAO,EAAEb,QAAQ,GAAG,CAAC,GAAG;MAAE,CAAC,CAAE;MAAAW,QAAA,eAC/DlB,IAAA,CAACL,WAAW;QAAC0B,KAAK,EAAE5B,iBAAiB,CAAC4B,KAAM;QAACC,MAAM,EAAE7B,iBAAiB,CAAC6B;MAAO,CAAE;IAAC,CAC7E,CAAC,eACPtB,IAAA,CAACV,IAAI;MAACyB,KAAK,EAAEC,MAAM,CAACZ,OAAQ;MAAAc,QAAA,eAC1BlB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|
7
7
|
import { MESSAGE_COLORS_MAP } from "../../constants.js";
|
|
8
8
|
import { ColorScheme } from "../../types/style.types.js";
|
|
9
9
|
import { MessageVariant } from "../../types/model.types.js";
|
|
10
|
-
import { TEST_IDS } from "../../../../config/dataTestIDs.js";
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
11
|
export const SentMessage = /*#__PURE__*/React.memo(({
|
|
13
12
|
message,
|
|
@@ -16,7 +15,6 @@ export const SentMessage = /*#__PURE__*/React.memo(({
|
|
|
16
15
|
}) => {
|
|
17
16
|
const text = isTranslated ? message.translatedMessage : message.message;
|
|
18
17
|
return /*#__PURE__*/_jsx(View, {
|
|
19
|
-
testID: TEST_IDS.CHAT_MESSAGE_SENT,
|
|
20
18
|
style: [styles.container, {
|
|
21
19
|
backgroundColor: MESSAGE_COLORS_MAP[colorScheme][MessageVariant.SENT].background
|
|
22
20
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","Text","View","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","MESSAGE_WIDTH","MESSAGE_COLORS_MAP","ColorScheme","MessageVariant","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","Text","View","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","MESSAGE_WIDTH","MESSAGE_COLORS_MAP","ColorScheme","MessageVariant","jsx","_jsx","SentMessage","memo","message","isTranslated","colorScheme","Blue","text","translatedMessage","style","styles","container","backgroundColor","SENT","background","children","create","alignSelf","maxWidth","padding","borderRadius","borderBottomRightRadius","select","web","backfaceVisibility","fontSize","fontWeight","fontFamily","buenosAires","color","NEUTRAL_1"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/SentMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC/D,SAASC,aAAa,EAAE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WAAW,CAACmC,WAAW;IACnCC,KAAK,EAAErC,MAAM,CAACsC;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,6 @@ import { useStoreMap, useUnit } from 'effector-react';
|
|
|
7
7
|
import { StyleSheet } from 'react-native';
|
|
8
8
|
import { HighlighterIcon } from "../../../shared/icons/HighlighterIcon.js";
|
|
9
9
|
import { useText } from "../../../shared/translation/index.js";
|
|
10
|
-
import { TEST_IDS } from "../../../config/dataTestIDs.js";
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
11
|
export const ErrorSpottingButton = ({
|
|
13
12
|
contextMessage
|
|
@@ -29,7 +28,6 @@ export const ErrorSpottingButton = ({
|
|
|
29
28
|
variant: 'secondary',
|
|
30
29
|
colorScheme: 'blue',
|
|
31
30
|
size: 'small',
|
|
32
|
-
testID: TEST_IDS.CHAT_ERROR_SPOTTING_BUTTON,
|
|
33
31
|
onPress: () => {
|
|
34
32
|
model.errorSpotting.errorSpottingPressed({
|
|
35
33
|
message: contextMessage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Button","COLORS","StopIcon","useChatModel","useStoreMap","useUnit","StyleSheet","HighlighterIcon","useText","
|
|
1
|
+
{"version":3,"names":["React","Button","COLORS","StopIcon","useChatModel","useStoreMap","useUnit","StyleSheet","HighlighterIcon","useText","jsx","_jsx","ErrorSpottingButton","contextMessage","t","model","activeErrorSpotting","errorSpotting","$activeData","validationKey","$validationKey","currentThread","$currentChatData","chatData","threadId","errorStrokesIds","id","isActive","style","buttonStyles","disabled","strokesValidationKey","variant","colorScheme","size","onPress","errorSpottingPressed","message","icon","color","NEUTRAL_1","children","create","text","textTransform","paddingTop"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,4BAA4B;AACr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,gBAAGhB,IAAA,CAACR,QAAQ;MAACoC,KAAK,EAAErC,MAAM,CAACsC;IAAU,CAAE,CAAC,gBAAG7B,IAAA,CAACH,eAAe,IAAE,CAAE;IAAAiC,QAAA,EAE5E3B,CAAC,CAAC,gBAAgB;EAAC,CACd,CAAC;AAEb,CAAC;AAED,MAAMe,YAAY,GAAGtB,UAAU,CAACmC,MAAM,CAAC;EACrCC,IAAI,EAAE;IACJC,aAAa,EAAE,WAAW;IAC1BC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createEvent","createStore","sample","restore","AUTO_CLOSE_TIMEOUT","ErrorSpottingModel","setIsEnabled","$isEnabled","$validationKey","errorSpottingPressed","spottingHidden","reset","$activeData","on","state","isActive","payload","isDisabled","validationKey","closeTimeout","constructor","$currentChatData","clock","source","activeSpotting","isEnabled","fn","chatData","currentThread","errorStrokesIds","length","key","strokesValidationKey","currentKey","isKeyChanged","strokesIds","target","map","data","watch","scheduleClose","clearTimeout","setTimeout","bindStrokesValidation","$store","enable","disable"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingModel.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,EAAEC,MAAM,EAASC,OAAO,QAAQ,UAAU;
|
|
1
|
+
{"version":3,"names":["createEvent","createStore","sample","restore","AUTO_CLOSE_TIMEOUT","ErrorSpottingModel","setIsEnabled","$isEnabled","$validationKey","errorSpottingPressed","spottingHidden","reset","$activeData","on","state","isActive","payload","isDisabled","validationKey","closeTimeout","constructor","$currentChatData","clock","source","activeSpotting","isEnabled","fn","chatData","currentThread","errorStrokesIds","length","key","strokesValidationKey","currentKey","isKeyChanged","strokesIds","errorChars","target","map","data","watch","scheduleClose","clearTimeout","setTimeout","bindStrokesValidation","$store","enable","disable"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingModel.ts"],"mappings":";;A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AC1B;IACF,CAAC,CAAC;EACN;EAEQsB,aAAaA,CAAA,EAAG;IACtB,IAAI,IAAI,CAACtB,YAAY,EAAEuB,YAAY,CAAC,IAAI,CAACvB,YAAY,CAAC;IACtD,IAAI,CAACA,YAAY,GAAGwB,UAAU,CAAC,MAAM;MACnC,IAAI,CAACjC,cAAc,CAAC,CAAC;MACrB,IAAI,CAACS,YAAY,GAAG,IAAI;IAC1B,CAAC,EAAEf,kBAAkB,CAAC;EACxB;EAEOwC,qBAAqBA,CAACC,MAA4B,EAAE;IACzD3C,MAAM,CAAC;MACLqB,MAAM,EAAEsB,MAAM;MACdR,MAAM,EAAE,IAAI,CAAC7B;IACf,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEOsC,MAAMA,CAAA,EAAG;IACd,IAAI,CAACxC,YAAY,CAAC,IAAI,CAAC;EACzB;EAEOyC,OAAOA,CAAA,EAAG;IACf,IAAI,CAACzC,YAAY,CAAC,KAAK,CAAC;EAC1B;AACF","ignoreList":[]}
|
|
@@ -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,MAAM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AAIC,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","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,CA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JZ,cAAc;QACda,OAAO,EAAEZ,eAAe;QACxB,IAAI,CAAC,CAACE,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,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,OAAO,GAAG,IAAIC,GAAG,CAAqB,CAAC;EAGhDC,UAAU,GAAG,EAAE;EAIhBC,WAAWA,CAAC;IACjBJ,gBAAgB;IAChBD,GAAG;IACHM,aAAa,GAAGT,uBAAuB,CAACU,qBAAqB;IAC7DC;EACyB,CAAC,EAAE;IAC5B,IAAIR,GAAG,EAAE,IAAI,CAACA,GAAG,GAAGA,GAAG;IACvB,IAAI,CAACC,gBAAgB,GAAGA,gBAAgB,IAAI,IAAI;IAChD,IAAI,CAACK,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACG,eAAe,GAAGD,QAAQ;EACjC;EAEA,MAAcE,aAAaA,CAAA,EAAG;IAC5B,MAAMC,GAAG,GAAG,IAAI,CAACP,UAAU;IAC3B,MAAMQ,kBAAkB,GAAG,IAAI,CAACV,OAAO,CAACW,GAAG,CAACF,GAAG,CAAC;IAChD,IAAIC,kBAAkB,EAAE,OAAOA,kBAAkB;IAEjD,MAAME,UAAU,GAAG,IAAInB,UAAU,CAAC,CAAC;IACnC,IAAI,CAACO,OAAO,CAACa,GAAG,CAACJ,GAAG,EAAEG,UAAU,CAAC;IACjC,MAAM,I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AMO,WAAW,GACf/C,UAAU,CAACmC,OAAO,CAACzB,MAAM,GAAG,IAAI,CAAClB,aAAa,GAAG,CAAC,IAAI,CAACG,eAAe,CAACqD,iBAAiB,CAAC,GAAG,EAAE;IAEhG,OAAO;MACLX,OAAO,EAAER,MAAM,CAACQ,OAAO;MACvBY,OAAO,EAAEF,WAAW;MACpBG,UAAU,EAAE,CAACH,WAAW,CAACrC,MAAM;MAC/ByC,QAAQ,EAAEnD,UAAU,CAAC2C,EAAE;MACvBS,cAAc,EAAEvB,MAAM,EAAEuB,cAAc,IAAI;IAC5C,CAAC;EACH,CAAC;EAEMrD,GAAGA,CAACF,GAAW,EAAE;IACtB,OAAO,IAAI,CAACT,OAAO,CAACW,GAAG,CAACF,GAAG,CAAC;EAC9B;EAEOwD,KAAKA,CAACxD,GAAY,EAAE;IACzB,IAAI,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,iC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ACb;EAEOE,iBAAiBA,CAACC,KAAa,EAAE;IACtC,IAAI,CAACZ,cAAc,GAAGY,KAAK;IAC3B,OAAO,IAAI;EACb;EAEOC,eAAeA,CAACZ,YAAoB,EAAE;IAC3C,IAAI,CAACA,YAAY,GAAGA,YAAY;IAChC,OAAO,IAAI;EACb;EAEQa,eAAeA,CAAA,EAAG;IACxB,IAAI,IAAI,CAAClB,OAAO,EAAEmB,MAAM,EAAE;MACxB,OAAO;QAAEC,MAAM,EAAE,IAAI,CAACpB;MAAQ,CAAC;IACjC;IACA,IAAI,IAAI,CAACE,kBAAkB,EAAEiB,MAAM,EAAE;MACnC,OAAO;QAAEjB,kBAAkB,EAAE,IAAI,CAACA;MAAmB,CAAC;IACxD;IACA,IAAI,IAAI,CAACC,eAAe,EAAEgB,MAAM,EAAE;MAChC,OAAO;QAAEhB,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,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA4B,CAAC,KAAK;EAC7ER,WAAW,CAAC;IACVS,QAAQ,EAAGC,KAAK,IAAK;MACnB,IAAIA,KAAK,CAACC,GAAG,KAAKV,YAAY,CAACW,KAAK,EAAE;QACpCJ,KAAK,CAACK,iBAAiB,CAAC,CAAC;MAC3B;IACF;EACF,CAAC,CAAC;EAEF,oBACER,KAAA,CAACd,IAAI;IAACuB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5Bd,IAAA,CAACP,UAAU;MAACsB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACI,KAAM;MAAAF,QAAA,EAC1CV,WAAW,CAACY;IAAK,CACR,CAAC,eAEbhB,IAAA,CAACP,UAAU;MAACsB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACK,WAAY;MAAAH,QAAA,EAChDV,WAAW,CAACa;IAAW,CACd,CAAC,eAEbjB,IAAA,CAACV,MAAM;MACLyB,OAAO,EAAErB,aAAa,CAACwB,OAAQ;MAC/BC,WAAW,EAAExB,WAAW,CAACyB,GAAI;MAC7BC,IAAI,EAAEzB,UAAU,CAAC0B,KAAM;MACvBX,KAAK,EAAE;QAAEY,IAAI,EAAEX,MAAM,CAACY;MAAW,CAAE;MACnCC,OAAO,EAAEpB,KAAK,CAACK,iBAAkB;MAAAI,QAAA,EAEhCV,WAAW,CAACsB;IAAc,CACrB,CAAC;EAAA,CACL,CAAC;AAEX,CAAC;AAED,MAAMd,MAAM,GAAGvB,UAAU,CAACsC,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,IAAI,EAAE,CAAC;IACPC,GAAG,EAAEtC,OAAO,CAAC,GAAG,CAAC;IACjBuC,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","buttonsContain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