@magmamath/students-features 0.6.1-8.rc-3 → 0.6.2
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/README.md +5 -14
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +2 -6
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +24 -27
- package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +4 -9
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +5 -18
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +3 -10
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +12 -16
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -13
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +8 -14
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +4 -14
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js +2 -5
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +1 -2
- package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/constants.js +1 -36
- package/dist/commonjs/features/chatbot/constants.js.map +1 -1
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +0 -8
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js +0 -7
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +36 -64
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +8 -3
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +0 -9
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +0 -1
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/translation.js +1 -9
- package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +0 -2
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
- package/dist/commonjs/features/feedback/model/comments.js +3 -5
- package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
- package/dist/commonjs/features/feedback/model/model.js +9 -7
- package/dist/commonjs/features/feedback/model/model.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +4 -5
- package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +9 -12
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/commonjs/features/problemSelector/constants.js +6 -3
- package/dist/commonjs/features/problemSelector/constants.js.map +1 -1
- package/dist/commonjs/index.js +0 -36
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/effector/createControllerEffect.js.map +1 -1
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/shared/icons/LockIcon.js +31 -0
- package/dist/commonjs/shared/icons/LockIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/constants.js +1 -5
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/en.json +0 -11
- package/dist/commonjs/shared/translation/localization/gb.json +0 -11
- package/dist/commonjs/shared/translation/localization/sw.json +0 -11
- package/dist/commonjs/shared/translation/types.js +0 -2
- package/dist/commonjs/shared/translation/types.js.map +1 -1
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +2 -6
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
- package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +27 -29
- package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +4 -9
- package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +5 -18
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +3 -10
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +12 -16
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -13
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +8 -14
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +4 -14
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/module/features/chatbot/components/Chatbot.js +2 -5
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +3 -3
- package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
- package/dist/module/features/chatbot/constants.js +0 -35
- package/dist/module/features/chatbot/constants.js.map +1 -1
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -9
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
- package/dist/module/features/chatbot/index.js +0 -1
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +37 -65
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js +8 -3
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js +0 -9
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js +0 -1
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/module/features/chatbot/model/translation.js +1 -9
- package/dist/module/features/chatbot/model/translation.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js +1 -3
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
- package/dist/module/features/feedback/model/comments.js +3 -5
- package/dist/module/features/feedback/model/comments.js.map +1 -1
- package/dist/module/features/feedback/model/model.js +9 -7
- package/dist/module/features/feedback/model/model.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheet.js +4 -5
- package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +10 -13
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/module/features/problemSelector/constants.js +5 -2
- package/dist/module/features/problemSelector/constants.js.map +1 -1
- package/dist/module/index.js +0 -3
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/effector/createControllerEffect.js.map +1 -1
- package/dist/module/shared/icons/LockIcon.js +23 -0
- package/dist/module/shared/icons/LockIcon.js.map +1 -0
- package/dist/module/shared/translation/constants.js +1 -5
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/localization/en.json +0 -11
- package/dist/module/shared/translation/localization/gb.json +0 -11
- package/dist/module/shared/translation/localization/sw.json +0 -11
- package/dist/module/shared/translation/types.js +0 -2
- package/dist/module/shared/translation/types.js.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +1 -2
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -5
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +1 -6
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +2 -7
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
- 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 +1 -5
- 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 +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 +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -3
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +3 -4
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts +0 -33
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -4
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +0 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +2 -7
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +3 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +0 -5
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +2 -5
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/problemSelector/constants.d.ts +5 -2
- package/dist/typescript/commonjs/features/problemSelector/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -3
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +1 -1
- package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -99
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -22
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -3
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +1 -5
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +1 -2
- package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -5
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +1 -6
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +2 -7
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
- 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 +1 -5
- 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 +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 +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -3
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +3 -4
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/constants.d.ts +0 -33
- package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -4
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +0 -1
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +2 -7
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +3 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +0 -5
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +2 -5
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
- package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
- package/dist/typescript/module/features/problemSelector/constants.d.ts +5 -2
- package/dist/typescript/module/features/problemSelector/constants.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -3
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +1 -1
- package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/LockIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/LockIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -99
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -22
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +1 -3
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/validation.types.d.ts +1 -5
- package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -1
- package/package.json +7 -11
- package/src/features/chatbot/components/Alternatives/Alternatives.tsx +0 -6
- package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +29 -28
- package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +1 -6
- package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +4 -24
- package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +6 -39
- package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +3 -11
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +7 -28
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +5 -25
- package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +13 -24
- package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +3 -13
- package/src/features/chatbot/components/Chatbot.tsx +2 -6
- package/src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx +10 -7
- package/src/features/chatbot/constants.ts +0 -37
- package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +1 -11
- package/src/features/chatbot/index.ts +0 -1
- package/src/features/chatbot/model/ChatBotModel.ts +41 -65
- package/src/features/chatbot/model/ChatBotThreadManager.ts +10 -4
- package/src/features/chatbot/model/ChatBoxTextManager.ts +0 -11
- package/src/features/chatbot/model/DefaultMessageCreator.ts +0 -1
- package/src/features/chatbot/model/translation.ts +1 -11
- package/src/features/chatbot/types/model.types.ts +2 -5
- package/src/features/endOfAssignment/components/Modal/Modal.tsx +0 -3
- package/src/features/feedback/model/comments.ts +7 -7
- package/src/features/feedback/model/model.ts +6 -6
- package/src/features/formulaSheet/components/FormulaSheet.tsx +4 -6
- package/src/features/problemSelector/components/ProblemSelectorButton.tsx +10 -17
- package/src/features/problemSelector/constants.ts +2 -3
- package/src/index.ts +0 -3
- package/src/lib/effector/createControllerEffect.ts +41 -41
- package/src/lib/helpers/helpers.ts +1 -1
- package/src/shared/icons/LockIcon.tsx +16 -0
- package/src/shared/translation/constants.ts +0 -4
- package/src/shared/translation/localization/en.json +0 -11
- package/src/shared/translation/localization/gb.json +0 -11
- package/src/shared/translation/localization/sw.json +0 -11
- package/src/shared/translation/types.ts +0 -6
- package/src/shared/translation/validation.types.ts +1 -9
- package/dist/commonjs/features/chatbot/types/style.types.js +0 -12
- package/dist/commonjs/features/chatbot/types/style.types.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +0 -29
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/assets/grid.webp +0 -0
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -104
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +0 -44
- package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +0 -61
- package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +0 -68
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +0 -101
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/constants.js +0 -13
- package/dist/commonjs/features/exampleSolution/constants.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +0 -61
- package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/index.js +0 -39
- package/dist/commonjs/features/exampleSolution/index.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +0 -24
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +0 -32
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +0 -18
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/types.js +0 -6
- package/dist/commonjs/features/exampleSolution/types.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/GifCelebrations.js +0 -62
- package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/assets/confetti.webp +0 -0
- package/dist/commonjs/features/gifCelebrations/assets/gifFallback.gif +0 -0
- package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +0 -44
- package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js +0 -46
- package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/components/Gif.js +0 -90
- package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/components/Progress.js +0 -96
- package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/constants.js +0 -34
- package/dist/commonjs/features/gifCelebrations/constants.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/helpers.js +0 -114
- package/dist/commonjs/features/gifCelebrations/helpers.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/index.js +0 -20
- package/dist/commonjs/features/gifCelebrations/index.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +0 -136
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js +0 -27
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js +0 -30
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js.map +0 -1
- package/dist/commonjs/features/gifCelebrations/types/model.types.js +0 -6
- package/dist/commonjs/features/gifCelebrations/types/model.types.js.map +0 -1
- package/dist/commonjs/lib/effector/ControlledSample.js +0 -40
- package/dist/commonjs/lib/effector/ControlledSample.js.map +0 -1
- package/dist/commonjs/react-app-env.d.js +0 -2
- package/dist/commonjs/react-app-env.d.js.map +0 -1
- package/dist/commonjs/shared/icons/ExcitedLavaIcon.js +0 -681
- package/dist/commonjs/shared/icons/ExcitedLavaIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/LavaIconInGlasses.js +0 -616
- package/dist/commonjs/shared/icons/LavaIconInGlasses.js.map +0 -1
- package/dist/commonjs/shared/icons/index.js +0 -204
- package/dist/commonjs/shared/icons/index.js.map +0 -1
- package/dist/commonjs/shared/translation/localization/ca.json +0 -33
- package/dist/commonjs/shared/translation/localization/sct.json +0 -33
- package/dist/commonjs/types/common.types.js +0 -2
- package/dist/commonjs/types/common.types.js.map +0 -1
- package/dist/module/features/chatbot/types/style.types.js +0 -8
- package/dist/module/features/chatbot/types/style.types.js.map +0 -1
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js +0 -23
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
- package/dist/module/features/exampleSolution/assets/grid.webp +0 -0
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -98
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
- package/dist/module/features/exampleSolution/components/LavaIcon.js +0 -36
- package/dist/module/features/exampleSolution/components/LavaIcon.js.map +0 -1
- package/dist/module/features/exampleSolution/components/MessageBlock.js +0 -53
- package/dist/module/features/exampleSolution/components/MessageBlock.js.map +0 -1
- package/dist/module/features/exampleSolution/components/QuestionSection.js +0 -60
- package/dist/module/features/exampleSolution/components/QuestionSection.js.map +0 -1
- package/dist/module/features/exampleSolution/components/SolutionSection.js +0 -93
- package/dist/module/features/exampleSolution/components/SolutionSection.js.map +0 -1
- package/dist/module/features/exampleSolution/constants.js +0 -9
- package/dist/module/features/exampleSolution/constants.js.map +0 -1
- package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +0 -56
- package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
- package/dist/module/features/exampleSolution/index.js +0 -6
- package/dist/module/features/exampleSolution/index.js.map +0 -1
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +0 -19
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +0 -27
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +0 -13
- package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
- package/dist/module/features/exampleSolution/types.js +0 -4
- package/dist/module/features/exampleSolution/types.js.map +0 -1
- package/dist/module/features/gifCelebrations/GifCelebrations.js +0 -55
- package/dist/module/features/gifCelebrations/GifCelebrations.js.map +0 -1
- package/dist/module/features/gifCelebrations/assets/confetti.webp +0 -0
- package/dist/module/features/gifCelebrations/assets/gifFallback.gif +0 -0
- package/dist/module/features/gifCelebrations/components/Backdrop.js +0 -36
- package/dist/module/features/gifCelebrations/components/Backdrop.js.map +0 -1
- package/dist/module/features/gifCelebrations/components/ContentContainer.js +0 -38
- package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +0 -1
- package/dist/module/features/gifCelebrations/components/Gif.js +0 -82
- package/dist/module/features/gifCelebrations/components/Gif.js.map +0 -1
- package/dist/module/features/gifCelebrations/components/Progress.js +0 -88
- package/dist/module/features/gifCelebrations/components/Progress.js.map +0 -1
- package/dist/module/features/gifCelebrations/constants.js +0 -30
- package/dist/module/features/gifCelebrations/constants.js.map +0 -1
- package/dist/module/features/gifCelebrations/helpers.js +0 -103
- package/dist/module/features/gifCelebrations/helpers.js.map +0 -1
- package/dist/module/features/gifCelebrations/index.js +0 -5
- package/dist/module/features/gifCelebrations/index.js.map +0 -1
- package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +0 -131
- package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +0 -1
- package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js +0 -22
- package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js.map +0 -1
- package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js +0 -25
- package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js.map +0 -1
- package/dist/module/features/gifCelebrations/types/model.types.js +0 -4
- package/dist/module/features/gifCelebrations/types/model.types.js.map +0 -1
- package/dist/module/lib/effector/ControlledSample.js +0 -35
- package/dist/module/lib/effector/ControlledSample.js.map +0 -1
- package/dist/module/react-app-env.d.js +0 -2
- package/dist/module/react-app-env.d.js.map +0 -1
- package/dist/module/shared/icons/ExcitedLavaIcon.js +0 -673
- package/dist/module/shared/icons/ExcitedLavaIcon.js.map +0 -1
- package/dist/module/shared/icons/LavaIconInGlasses.js +0 -608
- package/dist/module/shared/icons/LavaIconInGlasses.js.map +0 -1
- package/dist/module/shared/icons/index.js +0 -21
- package/dist/module/shared/icons/index.js.map +0 -1
- package/dist/module/shared/translation/localization/ca.json +0 -33
- package/dist/module/shared/translation/localization/sct.json +0 -33
- package/dist/module/types/common.types.js +0 -2
- package/dist/module/types/common.types.js.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts +0 -5
- package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +0 -9
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +0 -6
- package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
- package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +0 -4
- package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +0 -27
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +0 -10
- package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +0 -10
- package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +0 -10
- package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +0 -10
- package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +0 -10
- package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +0 -26
- package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +0 -29
- package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts +0 -3
- package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +0 -25
- package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts +0 -7
- package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts +0 -18
- package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +0 -45
- package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts +0 -17
- package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/index.d.ts +0 -19
- package/dist/typescript/commonjs/shared/icons/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/types/common.types.d.ts +0 -5
- package/dist/typescript/commonjs/types/common.types.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/types/style.types.d.ts +0 -5
- package/dist/typescript/module/features/chatbot/types/style.types.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +0 -9
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/constants.d.ts +0 -6
- package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
- package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/index.d.ts +0 -4
- package/dist/typescript/module/features/exampleSolution/index.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/types.d.ts +0 -27
- package/dist/typescript/module/features/exampleSolution/types.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +0 -10
- package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +0 -10
- package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +0 -10
- package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +0 -10
- package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +0 -10
- package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/constants.d.ts +0 -26
- package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +0 -29
- package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/index.d.ts +0 -3
- package/dist/typescript/module/features/gifCelebrations/index.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +0 -25
- package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts +0 -7
- package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts +0 -18
- package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +0 -1
- package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +0 -45
- package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +0 -1
- package/dist/typescript/module/lib/effector/ControlledSample.d.ts +0 -17
- package/dist/typescript/module/lib/effector/ControlledSample.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts +0 -4
- package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/index.d.ts +0 -19
- package/dist/typescript/module/shared/icons/index.d.ts.map +0 -1
- package/dist/typescript/module/types/common.types.d.ts +0 -5
- package/dist/typescript/module/types/common.types.d.ts.map +0 -1
- package/src/features/chatbot/types/style.types.ts +0 -4
- package/src/features/exampleSolution/ExampleSolutionModal.tsx +0 -23
- package/src/features/exampleSolution/assets/grid.webp +0 -0
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -83
- package/src/features/exampleSolution/components/LavaIcon.tsx +0 -35
- package/src/features/exampleSolution/components/MessageBlock.tsx +0 -67
- package/src/features/exampleSolution/components/QuestionSection.tsx +0 -60
- package/src/features/exampleSolution/components/SolutionSection.tsx +0 -112
- package/src/features/exampleSolution/constants.ts +0 -5
- package/src/features/exampleSolution/hooks/useExampleSolution.ts +0 -66
- package/src/features/exampleSolution/index.ts +0 -3
- package/src/features/exampleSolution/model/ExampleSolution.model.ts +0 -15
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +0 -33
- package/src/features/exampleSolution/model/ExampleSolutionCache.ts +0 -20
- package/src/features/exampleSolution/types.ts +0 -27
- package/src/features/gifCelebrations/GifCelebrations.tsx +0 -75
- package/src/features/gifCelebrations/assets/confetti.webp +0 -0
- package/src/features/gifCelebrations/assets/gifFallback.gif +0 -0
- package/src/features/gifCelebrations/components/Backdrop.tsx +0 -41
- package/src/features/gifCelebrations/components/ContentContainer.tsx +0 -44
- package/src/features/gifCelebrations/components/Gif.tsx +0 -88
- package/src/features/gifCelebrations/components/Progress.tsx +0 -106
- package/src/features/gifCelebrations/constants.ts +0 -32
- package/src/features/gifCelebrations/helpers.ts +0 -144
- package/src/features/gifCelebrations/index.ts +0 -2
- package/src/features/gifCelebrations/model/GifCelebrations.model.ts +0 -167
- package/src/features/gifCelebrations/model/GifCelebrationsApi.ts +0 -26
- package/src/features/gifCelebrations/model/GifCelebrationsCache.ts +0 -41
- package/src/features/gifCelebrations/types/model.types.ts +0 -53
- package/src/lib/effector/ControlledSample.ts +0 -40
- package/src/react-app-env.d.ts +0 -6
- package/src/shared/icons/ExcitedLavaIcon.tsx +0 -541
- package/src/shared/icons/LavaIconInGlasses.tsx +0 -489
- package/src/shared/icons/index.ts +0 -18
- package/src/shared/translation/localization/ca.json +0 -33
- package/src/shared/translation/localization/sct.json +0 -33
- package/src/types/common.types.ts +0 -4
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
attach,
|
|
3
|
+
combine,
|
|
4
|
+
createEffect,
|
|
5
|
+
createEvent,
|
|
6
|
+
createStore,
|
|
7
|
+
restore,
|
|
8
|
+
sample,
|
|
9
|
+
type Store,
|
|
10
|
+
} from 'effector'
|
|
2
11
|
import {
|
|
3
12
|
ChatbotContext,
|
|
4
13
|
ChatbotModelProps,
|
|
@@ -19,7 +28,6 @@ import { ChatsCacheModel, defaultChatData } from './ChatsCacheModel'
|
|
|
19
28
|
import { ErrorSpottingModel } from '../errorSpotting/ErrorSpottingModel'
|
|
20
29
|
import { withEvent } from '../../../lib/effector/withEvent'
|
|
21
30
|
import { ChatBotTextManager } from './ChatBoxTextManager'
|
|
22
|
-
import { ControlledSample } from '../../../lib/effector/ControlledSample'
|
|
23
31
|
|
|
24
32
|
type ReinitConversationProps = {
|
|
25
33
|
key: string
|
|
@@ -38,11 +46,7 @@ export class ChatbotModel {
|
|
|
38
46
|
public readonly t2s: ChatTextToSpeechModel
|
|
39
47
|
public readonly errorSpotting: ErrorSpottingModel
|
|
40
48
|
|
|
41
|
-
|
|
42
|
-
public readonly $currentKey = restore(this.setCurrentKey, '')
|
|
43
|
-
|
|
44
|
-
private unbindCurrentKey: null | (() => void) = null
|
|
45
|
-
private externalTranslationStateSync?: ControlledSample<boolean, void>
|
|
49
|
+
public readonly $currentKey = createStore('')
|
|
46
50
|
|
|
47
51
|
readonly resetAlternatives = createEvent()
|
|
48
52
|
readonly setAlternatives = createEvent<GetAlternativesResponse | null>()
|
|
@@ -129,31 +133,6 @@ export class ChatbotModel {
|
|
|
129
133
|
target: this.$isOpen,
|
|
130
134
|
})
|
|
131
135
|
}
|
|
132
|
-
|
|
133
|
-
this.startConversation = attach({
|
|
134
|
-
source: { currentChatData: this.$currentChatData, alternatives: this.$alternatives },
|
|
135
|
-
mapParams: (props: StartConversationProps | void, source) => ({
|
|
136
|
-
...props,
|
|
137
|
-
...source,
|
|
138
|
-
}),
|
|
139
|
-
effect: createEffect(
|
|
140
|
-
({ currentChatData, alternatives, initOnly }: StartConversationFxData) => {
|
|
141
|
-
const { key, messages } = currentChatData
|
|
142
|
-
|
|
143
|
-
if (!alternatives?.chatAccess) return
|
|
144
|
-
|
|
145
|
-
if (messages.length) {
|
|
146
|
-
if (initOnly) return
|
|
147
|
-
return this.reinitConversation({ key })
|
|
148
|
-
}
|
|
149
|
-
this.cache.add(key, {
|
|
150
|
-
messages: [this.defaultMessages.start],
|
|
151
|
-
isAvailable: true,
|
|
152
|
-
currentThread: null,
|
|
153
|
-
})
|
|
154
|
-
},
|
|
155
|
-
),
|
|
156
|
-
})
|
|
157
136
|
}
|
|
158
137
|
|
|
159
138
|
private createSendHelpRequestFx() {
|
|
@@ -207,28 +186,21 @@ export class ChatbotModel {
|
|
|
207
186
|
}
|
|
208
187
|
|
|
209
188
|
public bindKey($store: Store<string>) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
this
|
|
213
|
-
this.threadManager.setCurrentKey(value)
|
|
189
|
+
sample({
|
|
190
|
+
source: $store,
|
|
191
|
+
target: this.$currentKey,
|
|
214
192
|
})
|
|
215
|
-
|
|
216
|
-
const initialValue = $store.getState()
|
|
217
|
-
this.setCurrentKey(initialValue)
|
|
218
|
-
this.threadManager.setCurrentKey(initialValue)
|
|
193
|
+
this.threadManager.bindKeyStore($store)
|
|
219
194
|
return this
|
|
220
195
|
}
|
|
221
196
|
|
|
222
|
-
public bindExternalTranslationState($
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
isActiveDefault: true,
|
|
230
|
-
})
|
|
231
|
-
}
|
|
197
|
+
public bindExternalTranslationState($store: Store<boolean>) {
|
|
198
|
+
sample({
|
|
199
|
+
source: $store,
|
|
200
|
+
clock: [this.$currentKey.updates, this.startConversation.done],
|
|
201
|
+
filter: (isTranslated) => !!isTranslated,
|
|
202
|
+
target: this.translation.translateAllMessagesFx,
|
|
203
|
+
})
|
|
232
204
|
return this
|
|
233
205
|
}
|
|
234
206
|
|
|
@@ -243,9 +215,27 @@ export class ChatbotModel {
|
|
|
243
215
|
return this
|
|
244
216
|
}
|
|
245
217
|
|
|
246
|
-
public readonly startConversation
|
|
247
218
|
public readonly sendHelpRequestFx = this.createSendHelpRequestFx()
|
|
248
219
|
|
|
220
|
+
public readonly startConversation = attach({
|
|
221
|
+
source: this.$currentChatData,
|
|
222
|
+
mapParams: (props: StartConversationProps | void, source) => ({
|
|
223
|
+
...props,
|
|
224
|
+
...source,
|
|
225
|
+
}),
|
|
226
|
+
effect: createEffect(({ key, messages, initOnly }: StartConversationFxData) => {
|
|
227
|
+
if (messages.length) {
|
|
228
|
+
if (initOnly) return
|
|
229
|
+
return this.reinitConversation({ key })
|
|
230
|
+
}
|
|
231
|
+
this.cache.add(key, {
|
|
232
|
+
messages: [this.defaultMessages.start],
|
|
233
|
+
isAvailable: true,
|
|
234
|
+
currentThread: null,
|
|
235
|
+
})
|
|
236
|
+
}),
|
|
237
|
+
})
|
|
238
|
+
|
|
249
239
|
public setHintMessage({ key, ...message }: SetHintMessageProps) {
|
|
250
240
|
const options = this.$alternatives.getState()?.options.hints ?? message.options
|
|
251
241
|
this.cache.setSingleMessage(key, { ...message, options })
|
|
@@ -287,18 +277,4 @@ export class ChatbotModel {
|
|
|
287
277
|
this.threadManager.reset()
|
|
288
278
|
this.errorSpotting.reset()
|
|
289
279
|
})
|
|
290
|
-
|
|
291
|
-
public unbindKey() {
|
|
292
|
-
this.unbindCurrentKey?.()
|
|
293
|
-
this.unbindCurrentKey = null
|
|
294
|
-
|
|
295
|
-
this.setCurrentKey('')
|
|
296
|
-
this.threadManager.setCurrentKey('')
|
|
297
|
-
return this
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
public unbindExternalTranslationState() {
|
|
301
|
-
this.externalTranslationStateSync?.disable()
|
|
302
|
-
return this
|
|
303
|
-
}
|
|
304
280
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ThreadItem } from './ThreadItem'
|
|
2
|
+
import { Store } from 'effector'
|
|
2
3
|
import {
|
|
3
4
|
ChatHintPayload,
|
|
4
5
|
ChatHintResponse,
|
|
@@ -26,6 +27,7 @@ export class ChatBotThreadManager {
|
|
|
26
27
|
|
|
27
28
|
private messagesLimit
|
|
28
29
|
private currentKey = ''
|
|
30
|
+
private currentBinding: null | (() => void) = null
|
|
29
31
|
|
|
30
32
|
private readonly defaultMessages
|
|
31
33
|
|
|
@@ -41,6 +43,14 @@ export class ChatBotThreadManager {
|
|
|
41
43
|
this.defaultMessages = messages
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
public bindKeyStore($store: Store<string>) {
|
|
47
|
+
this.currentBinding?.()
|
|
48
|
+
this.currentBinding = $store.watch((value) => {
|
|
49
|
+
this.currentKey = value
|
|
50
|
+
})
|
|
51
|
+
return this
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
private async getThreadItem() {
|
|
45
55
|
const key = this.currentKey
|
|
46
56
|
const existingThreadItem = this.threads.get(key)
|
|
@@ -118,8 +128,4 @@ export class ChatBotThreadManager {
|
|
|
118
128
|
this.api = api
|
|
119
129
|
return this
|
|
120
130
|
}
|
|
121
|
-
|
|
122
|
-
public setCurrentKey(key: string) {
|
|
123
|
-
this.currentKey = key
|
|
124
|
-
}
|
|
125
131
|
}
|
|
@@ -17,15 +17,4 @@ export class ChatBotTextManager {
|
|
|
17
17
|
endMessage: this.messagesCreator.createMessage('chat.answerAgain'),
|
|
18
18
|
anotherHintOption: this.messagesCreator.createOption('chat.anotherHint'),
|
|
19
19
|
}
|
|
20
|
-
private readonly defaultMessages = { ...this.messages }
|
|
21
|
-
|
|
22
|
-
public update(
|
|
23
|
-
cb: (manager: DefaultMessagesCreator<TranslationKeys>) => Partial<ChatbotMessages>,
|
|
24
|
-
) {
|
|
25
|
-
Object.assign(this.messages, cb(this.messagesCreator))
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public restore() {
|
|
29
|
-
Object.assign(this.messages, this.defaultMessages)
|
|
30
|
-
}
|
|
31
20
|
}
|
|
@@ -79,7 +79,6 @@ export class ChatbotTranslation {
|
|
|
79
79
|
|
|
80
80
|
sample({
|
|
81
81
|
clock: this.translateAllMessagesFx.doneData,
|
|
82
|
-
filter: (_, translatedMessages) => !!translatedMessages.length,
|
|
83
82
|
source: [this.$key] as const,
|
|
84
83
|
fn: ([key], translatedMessages) => ({ key, data: { messages: translatedMessages } }),
|
|
85
84
|
target: chats.update,
|
|
@@ -118,7 +117,7 @@ export class ChatbotTranslation {
|
|
|
118
117
|
private readonly translateBatchFx = createEffect(
|
|
119
118
|
async ({ messages, alternatives, targetLanguage }: TranslateBatchFxProps) => {
|
|
120
119
|
const allTranslated = messages.every((message) => message.translatedMessage)
|
|
121
|
-
if (allTranslated || !targetLanguage
|
|
120
|
+
if (allTranslated || !targetLanguage) {
|
|
122
121
|
return messages
|
|
123
122
|
}
|
|
124
123
|
|
|
@@ -130,9 +129,6 @@ export class ChatbotTranslation {
|
|
|
130
129
|
textList: {
|
|
131
130
|
messages: messages.map(({ message }) => message),
|
|
132
131
|
defaultMessages: defaultMessages.map(({ message }) => message),
|
|
133
|
-
defaultMessagesOptions: defaultMessages.flatMap((message) =>
|
|
134
|
-
message.options.map((option) => option.text),
|
|
135
|
-
),
|
|
136
132
|
defaultOptions: defaultOptions.map(({ text }) => text),
|
|
137
133
|
lastMessage: options.lastMessage || [],
|
|
138
134
|
alternativesHints: options.alternatives?.hints || [],
|
|
@@ -143,12 +139,6 @@ export class ChatbotTranslation {
|
|
|
143
139
|
|
|
144
140
|
translatedTextsList.defaultMessages.forEach((message, index) => {
|
|
145
141
|
defaultMessages[index].translatedMessage = message
|
|
146
|
-
defaultMessages[index].options = defaultMessages[index].options.map((option) => {
|
|
147
|
-
return {
|
|
148
|
-
...option,
|
|
149
|
-
translatedText: translatedTextsList.defaultMessagesOptions[index],
|
|
150
|
-
}
|
|
151
|
-
})
|
|
152
142
|
})
|
|
153
143
|
translatedTextsList.defaultOptions.forEach((message, index) => {
|
|
154
144
|
defaultOptions[index].translatedText = message
|
|
@@ -63,11 +63,8 @@ export type StartConversationProps = {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export type StartConversationFxData = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
messages: ConversationMessage[]
|
|
69
|
-
}
|
|
70
|
-
alternatives?: GetAlternativesResponse | null
|
|
66
|
+
key: string
|
|
67
|
+
messages: ConversationMessage[]
|
|
71
68
|
} & StartConversationProps
|
|
72
69
|
|
|
73
70
|
export enum MessageVariant {
|
|
@@ -2,7 +2,6 @@ import React, { ReactNode, useEffect, useState } from 'react'
|
|
|
2
2
|
import {
|
|
3
3
|
Animated,
|
|
4
4
|
GestureResponderEvent,
|
|
5
|
-
Keyboard,
|
|
6
5
|
StyleProp,
|
|
7
6
|
StyleSheet,
|
|
8
7
|
TextStyle,
|
|
@@ -63,8 +62,6 @@ export const Modal = ({
|
|
|
63
62
|
useEffect(() => {
|
|
64
63
|
if (isVisible) {
|
|
65
64
|
modalModel.animation.show()
|
|
66
|
-
// It's important to blur drawboard text input when modal appears
|
|
67
|
-
Keyboard.dismiss()
|
|
68
65
|
}
|
|
69
66
|
}, [isVisible])
|
|
70
67
|
|
|
@@ -23,18 +23,18 @@ export class TeacherCommentsModel {
|
|
|
23
23
|
state,
|
|
24
24
|
assignmentId,
|
|
25
25
|
problemId,
|
|
26
|
-
fn:
|
|
27
|
-
comments: data.comments.map(
|
|
26
|
+
fn: data => ({
|
|
27
|
+
comments: data.comments.map(comment => ({ ...comment, isRead: true })),
|
|
28
28
|
unreadMessagesCount: 0,
|
|
29
29
|
}),
|
|
30
30
|
}),
|
|
31
31
|
)
|
|
32
|
-
.on(this.add, (state, { assignmentId, comment, isRead }) =>
|
|
32
|
+
.on(this.add, (state, { assignmentId, problemId, comment, isRead }) =>
|
|
33
33
|
updateCommentsState({
|
|
34
34
|
state,
|
|
35
35
|
assignmentId,
|
|
36
|
-
problemId
|
|
37
|
-
fn:
|
|
36
|
+
problemId,
|
|
37
|
+
fn: data => ({
|
|
38
38
|
comments: [...data.comments, comment],
|
|
39
39
|
unreadMessagesCount: isRead ? data.unreadMessagesCount : data.unreadMessagesCount + 1,
|
|
40
40
|
}),
|
|
@@ -45,7 +45,7 @@ export class TeacherCommentsModel {
|
|
|
45
45
|
state,
|
|
46
46
|
assignmentId,
|
|
47
47
|
problemId,
|
|
48
|
-
fn:
|
|
48
|
+
fn: data => {
|
|
49
49
|
const commentToDelete = data.comments.find(({ _id }) => _id === commentId)
|
|
50
50
|
if (!commentToDelete) return data
|
|
51
51
|
|
|
@@ -77,7 +77,7 @@ export class TeacherCommentsModel {
|
|
|
77
77
|
sample({
|
|
78
78
|
clock: this.add,
|
|
79
79
|
source: { isOpen: $isOpen },
|
|
80
|
-
filter: ({ isOpen }
|
|
80
|
+
filter: ({ isOpen }) => isOpen,
|
|
81
81
|
fn: (_, { comment }) => ({
|
|
82
82
|
ids: [comment._id],
|
|
83
83
|
}),
|
|
@@ -56,7 +56,7 @@ export class TeacherFeedbackModel {
|
|
|
56
56
|
comments?.length === 1 && comments[0]._id === EMPTY_COMMENT_ID
|
|
57
57
|
return !isOpen && isOnlyNoCommentsMessage
|
|
58
58
|
},
|
|
59
|
-
fn: ({ assignmentId, problemId }) => ({
|
|
59
|
+
fn: ({ assignmentId, problemId }, comment) => ({
|
|
60
60
|
assignmentId,
|
|
61
61
|
problemId,
|
|
62
62
|
commentId: EMPTY_COMMENT_ID,
|
|
@@ -76,7 +76,7 @@ export class TeacherFeedbackModel {
|
|
|
76
76
|
const hasUnreadComments = comments.some(({ isRead }) => !isRead)
|
|
77
77
|
return isOpen && hasUnreadComments
|
|
78
78
|
},
|
|
79
|
-
fn:
|
|
79
|
+
fn: source => {
|
|
80
80
|
const comments = findCommentsByCredits(source)
|
|
81
81
|
return { ids: comments.map(({ _id }) => _id) }
|
|
82
82
|
},
|
|
@@ -97,8 +97,9 @@ export class TeacherFeedbackModel {
|
|
|
97
97
|
|
|
98
98
|
sample({
|
|
99
99
|
clock: this.sockets.commentDeleted,
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
source: { assignmentId: credits.$assignmentId },
|
|
101
|
+
fn: ({ assignmentId }, comment) => ({
|
|
102
|
+
assignmentId,
|
|
102
103
|
problemId: comment.problemId,
|
|
103
104
|
commentId: comment._id,
|
|
104
105
|
}),
|
|
@@ -112,11 +113,10 @@ export class TeacherFeedbackModel {
|
|
|
112
113
|
problemId: credits.$problemId,
|
|
113
114
|
isOpen: this.$isOpen,
|
|
114
115
|
},
|
|
115
|
-
filter: ({ assignmentId }, comment) => assignmentId === comment.exerciseId,
|
|
116
116
|
fn: ({ assignmentId, problemId, isOpen }, comment) => ({
|
|
117
117
|
comment,
|
|
118
118
|
assignmentId,
|
|
119
|
-
problemId,
|
|
119
|
+
problemId: comment.problemId,
|
|
120
120
|
isRead: isOpen && comment.problemId === problemId,
|
|
121
121
|
}),
|
|
122
122
|
target: this.comments.add,
|
|
@@ -43,11 +43,6 @@ export const FormulaSheet = forwardRef<ButtonRef | null, FormulaSheetProps>(
|
|
|
43
43
|
const sheetFileBlob = useUnit(model.file.$blob)
|
|
44
44
|
const isRequestPending = useUnit(model.api.getPDFFileBlobFx.pending)
|
|
45
45
|
|
|
46
|
-
const onPressHandler = () => {
|
|
47
|
-
model.modal.toggle()
|
|
48
|
-
onPress?.()
|
|
49
|
-
}
|
|
50
|
-
|
|
51
46
|
useEffect(() => {
|
|
52
47
|
model.file.setId(fileId ?? null)
|
|
53
48
|
}, [fileId])
|
|
@@ -60,7 +55,10 @@ export const FormulaSheet = forwardRef<ButtonRef | null, FormulaSheetProps>(
|
|
|
60
55
|
variant={ButtonVariant.SECONDARY}
|
|
61
56
|
colorScheme={buttonColor}
|
|
62
57
|
isActive={isOpen}
|
|
63
|
-
onPress={() =>
|
|
58
|
+
onPress={() => {
|
|
59
|
+
model.modal.toggle()
|
|
60
|
+
onPress?.()
|
|
61
|
+
}}
|
|
64
62
|
icon={<TheoryIcon color={isOpen ? COLORS.NEUTRAL_1 : undefined} size={20} />}
|
|
65
63
|
style={style}
|
|
66
64
|
/>
|
|
@@ -7,12 +7,11 @@ import {
|
|
|
7
7
|
ButtonSize,
|
|
8
8
|
ButtonStates,
|
|
9
9
|
ButtonVariant,
|
|
10
|
-
FONT_FAMILY,
|
|
11
|
-
LockIcon,
|
|
12
10
|
Typography,
|
|
13
11
|
} from '@magmamath/react-native-ui'
|
|
14
12
|
|
|
15
|
-
import { BADGE_COORDINATES,
|
|
13
|
+
import { BADGE_COORDINATES, BUTTON_SIZE, COLOR_SCHEME_MAP, ICON_SIZE } from '../constants'
|
|
14
|
+
import { LockIcon } from '../../../shared/icons/LockIcon'
|
|
16
15
|
|
|
17
16
|
import { ProblemSelectorButtonProps } from '../types'
|
|
18
17
|
|
|
@@ -38,16 +37,15 @@ export const ProblemSelectorButton = ({
|
|
|
38
37
|
disabled={locked}
|
|
39
38
|
icon={
|
|
40
39
|
locked ? (
|
|
41
|
-
<LockIcon
|
|
40
|
+
<LockIcon
|
|
41
|
+
height={ICON_SIZE.height}
|
|
42
|
+
width={ICON_SIZE.width}
|
|
43
|
+
color={customColorScheme[ButtonStates.DISABLED]?.color}
|
|
44
|
+
/>
|
|
42
45
|
) : (
|
|
43
46
|
<Typography
|
|
44
|
-
variant="
|
|
45
|
-
style={[
|
|
46
|
-
styles.buttonText,
|
|
47
|
-
{
|
|
48
|
-
color: customColorScheme[ButtonStates.DEFAULT]?.color,
|
|
49
|
-
},
|
|
50
|
-
]}
|
|
47
|
+
variant="h2"
|
|
48
|
+
style={{ color: customColorScheme[ButtonStates.DEFAULT]?.color }}
|
|
51
49
|
>
|
|
52
50
|
{text ?? ''}
|
|
53
51
|
</Typography>
|
|
@@ -78,11 +76,6 @@ const styles = StyleSheet.create({
|
|
|
78
76
|
button: {
|
|
79
77
|
width: BUTTON_SIZE,
|
|
80
78
|
height: BUTTON_SIZE,
|
|
81
|
-
borderWidth:
|
|
82
|
-
},
|
|
83
|
-
buttonText: {
|
|
84
|
-
textAlign: 'center',
|
|
85
|
-
fontWeight: 400,
|
|
86
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
79
|
+
borderWidth: 2.75,
|
|
87
80
|
},
|
|
88
81
|
})
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ButtonColorPreset, ButtonStates, COLORS } from '@magmamath/react-native-ui'
|
|
2
|
-
|
|
3
2
|
import { ProblemSelectorButtonState } from './types'
|
|
4
3
|
|
|
5
|
-
export const BUTTON_SIZE = 49
|
|
6
|
-
export const BUTTON_BORDER_WIDTH = 3
|
|
4
|
+
export const BUTTON_SIZE = 49.5
|
|
7
5
|
export const BADGE_COORDINATES = { top: 4, right: 4 }
|
|
6
|
+
export const ICON_SIZE = { width: 23, height: 25 }
|
|
8
7
|
export const PROBLEM_SELECTOR_CONTENT_WIDTH = 265
|
|
9
8
|
|
|
10
9
|
export const PROBLEM_SELECTOR_BUTTON_STATE = {
|
package/src/index.ts
CHANGED
|
@@ -6,6 +6,3 @@ export * from './features/celebrations'
|
|
|
6
6
|
export * from './features/endOfAssignment'
|
|
7
7
|
export * from './features/formulaSheet'
|
|
8
8
|
export * from './features/problemSelector'
|
|
9
|
-
export * from './features/gifCelebrations'
|
|
10
|
-
export * from './features/exampleSolution'
|
|
11
|
-
export * from './shared/icons'
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import { createEffect, type Effect } from 'effector'
|
|
2
2
|
|
|
3
3
|
type LikeCanceledError = {
|
|
4
|
-
|
|
4
|
+
code?: string
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export type ControlledEffect<P, T> = Effect<P, T> & {
|
|
8
|
-
|
|
8
|
+
controller: AbortController
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
type ControlledRequestProps<P> = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
data: P
|
|
13
|
+
controller?: AbortController
|
|
14
|
+
abortAfter?: number
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
type RequestOptionalConfig = { signal?: AbortSignal }
|
|
18
18
|
|
|
19
19
|
export function controlledRequest<R = void, P = void>(
|
|
20
|
-
|
|
20
|
+
request: (props: P, config?: RequestOptionalConfig) => Promise<R>,
|
|
21
21
|
) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
return async ({
|
|
23
|
+
data,
|
|
24
|
+
controller = new AbortController(),
|
|
25
|
+
abortAfter = 20000,
|
|
26
|
+
}: ControlledRequestProps<P>) => {
|
|
27
|
+
let timeout: ReturnType<typeof setTimeout> | null = null
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
const response = await request(data, { signal: controller?.signal })
|
|
37
|
-
if (timeout !== null) clearTimeout(timeout)
|
|
38
|
-
return response
|
|
39
|
-
} catch (error: unknown) {
|
|
40
|
-
if ((error as LikeCanceledError).code === 'ERR_CANCELED') {
|
|
41
|
-
if (controller.signal.reason === 'timeout') {
|
|
42
|
-
throw new Error('Request timed out')
|
|
29
|
+
if (abortAfter) {
|
|
30
|
+
timeout = setTimeout(() => {
|
|
31
|
+
controller.abort('timeout')
|
|
32
|
+
}, abortAfter)
|
|
43
33
|
}
|
|
44
|
-
throw new Error('Request aborted manually')
|
|
45
|
-
}
|
|
46
34
|
|
|
47
|
-
|
|
35
|
+
try {
|
|
36
|
+
const response = await request(data, { signal: controller?.signal })
|
|
37
|
+
if (timeout !== null) clearTimeout(timeout)
|
|
38
|
+
return response
|
|
39
|
+
} catch (error: unknown) {
|
|
40
|
+
if ((error as LikeCanceledError).code === 'ERR_CANCELED') {
|
|
41
|
+
if (controller.signal.reason === 'timeout') {
|
|
42
|
+
throw new Error('Request timed out')
|
|
43
|
+
}
|
|
44
|
+
throw new Error('Request aborted manually')
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
throw error
|
|
48
|
+
}
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export const createControllerEffect = <T, P
|
|
53
|
-
|
|
52
|
+
export const createControllerEffect = <T, P>(
|
|
53
|
+
fn: (props: P, config?: RequestOptionalConfig) => Promise<T>,
|
|
54
54
|
) => {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
effect.controller = new AbortController()
|
|
60
|
-
|
|
61
|
-
effect.fail.watch(() => {
|
|
55
|
+
const request = controlledRequest<T, P>(fn)
|
|
56
|
+
const effect = createEffect((data: P) =>
|
|
57
|
+
request({ data, controller: effect.controller }),
|
|
58
|
+
) as ControlledEffect<P, T>
|
|
62
59
|
effect.controller = new AbortController()
|
|
63
|
-
})
|
|
64
60
|
|
|
65
|
-
|
|
61
|
+
effect.fail.watch(() => {
|
|
62
|
+
effect.controller = new AbortController()
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
return effect
|
|
66
66
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path, Rect } from 'react-native-svg'
|
|
3
|
+
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
+
|
|
5
|
+
import { IconProps } from './icon.types'
|
|
6
|
+
|
|
7
|
+
export const LockIcon = ({ width = 23, height = 25, color = COLORS.NEUTRAL_6 }: IconProps) => (
|
|
8
|
+
<Svg width={width} height={height} viewBox="0.5 1 23 25" fill="none">
|
|
9
|
+
<Path
|
|
10
|
+
fillRule="evenodd"
|
|
11
|
+
clipRule="evenodd"
|
|
12
|
+
d="M4.183 8.91H3.44A2.578 2.578 0 00.862 11.49v11.068a2.578 2.578 0 002.578 2.578h17.12a2.578 2.578 0 002.578-2.578V11.49a2.578 2.578 0 00-2.578-2.578h-.743c-.119-1.421-.391-3.307-1.374-4.897C17.304 2.172 15.303.864 12 .864c-3.304 0-5.304 1.308-6.443 3.15-.983 1.59-1.255 3.476-1.374 4.897zm2.008 0h11.618c-.12-1.303-.369-2.714-1.067-3.844C16.002 3.87 14.68 2.864 12 2.864c-2.68 0-4.003 1.006-4.742 2.202-.699 1.13-.947 2.54-1.067 3.845zm-2.75 2H20.56c.319 0 .578.26.578.579v11.068c0 .32-.26.578-.578.578H3.44a.578.578 0 01-.578-.578V11.49c0-.32.26-.578.578-.578z"
|
|
13
|
+
fill={color}
|
|
14
|
+
/>
|
|
15
|
+
</Svg>
|
|
16
|
+
)
|
|
@@ -2,13 +2,9 @@ import { Locale } from './types'
|
|
|
2
2
|
import EN from './localization/en.json'
|
|
3
3
|
import GB from './localization/gb.json'
|
|
4
4
|
import SW from './localization/sw.json'
|
|
5
|
-
import CA from './localization/ca.json'
|
|
6
|
-
import SCT from './localization/sct.json'
|
|
7
5
|
|
|
8
6
|
export const LOCALIZATION_CONFIGS = {
|
|
9
7
|
[Locale.EN]: EN,
|
|
10
8
|
[Locale.GB]: GB,
|
|
11
9
|
[Locale.SW]: SW,
|
|
12
|
-
[Locale.CA]: CA,
|
|
13
|
-
[Locale.SCT]: SCT,
|
|
14
10
|
}
|
|
@@ -18,16 +18,5 @@
|
|
|
18
18
|
"errorMessage": "Something went wrong! Try again",
|
|
19
19
|
"howCanIHelp": "Hi! Do you want help?",
|
|
20
20
|
"showError": "Show error"
|
|
21
|
-
},
|
|
22
|
-
"gifCelebrations": {
|
|
23
|
-
"greatStart": "Great start!",
|
|
24
|
-
"onTheWay": "On the way!",
|
|
25
|
-
"almostThere": "Almost there"
|
|
26
|
-
},
|
|
27
|
-
"exampleSolution": {
|
|
28
|
-
"exampleSolution": "Example solution",
|
|
29
|
-
"letMeThink": "Let me think...",
|
|
30
|
-
"aha": "Aha!",
|
|
31
|
-
"errorMessage": "Something went wrong with generating an example solution"
|
|
32
21
|
}
|
|
33
22
|
}
|
|
@@ -18,16 +18,5 @@
|
|
|
18
18
|
"errorMessage": "Something went wrong! Try again",
|
|
19
19
|
"howCanIHelp": "Hi! Do you want help?",
|
|
20
20
|
"showError": "Show error"
|
|
21
|
-
},
|
|
22
|
-
"gifCelebrations": {
|
|
23
|
-
"greatStart": "Great start!",
|
|
24
|
-
"onTheWay": "On the way!",
|
|
25
|
-
"almostThere": "Almost there"
|
|
26
|
-
},
|
|
27
|
-
"exampleSolution": {
|
|
28
|
-
"exampleSolution": "Example solution",
|
|
29
|
-
"letMeThink": "Let me think...",
|
|
30
|
-
"aha": "Aha!",
|
|
31
|
-
"errorMessage": "Something went wrong with generating an example solution"
|
|
32
21
|
}
|
|
33
22
|
}
|
|
@@ -18,16 +18,5 @@
|
|
|
18
18
|
"errorMessage": "Något gick snett! Försök igen",
|
|
19
19
|
"howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
|
|
20
20
|
"showError": "Visa fel"
|
|
21
|
-
},
|
|
22
|
-
"gifCelebrations": {
|
|
23
|
-
"greatStart": "Bra start!",
|
|
24
|
-
"onTheWay": "På god väg!",
|
|
25
|
-
"almostThere": "Nästan där"
|
|
26
|
-
},
|
|
27
|
-
"exampleSolution": {
|
|
28
|
-
"exampleSolution": "Lösningsexempel",
|
|
29
|
-
"letMeThink": "Låt mig tänka...",
|
|
30
|
-
"aha": "Aha!",
|
|
31
|
-
"errorMessage": "Något gick snett med att generera en exempellösning"
|
|
32
21
|
}
|
|
33
22
|
}
|