@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,66 +1,33 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Platform, StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
|
|
4
1
|
import { ConversationMessage } from '../../types/units.types'
|
|
5
2
|
import { T2SState } from '../../types/t2s.types'
|
|
6
|
-
import {
|
|
7
|
-
|
|
3
|
+
import { Platform, StyleSheet, Text, View } from 'react-native'
|
|
8
4
|
import { MessageButtonsBlock } from './MessageButtonsBlock'
|
|
9
5
|
import { getSpacerSize } from './helpers'
|
|
10
|
-
import
|
|
6
|
+
import React from 'react'
|
|
11
7
|
|
|
12
8
|
type MessageContentProps = {
|
|
13
9
|
text: string
|
|
14
10
|
message: ConversationMessage
|
|
15
11
|
t2sState: T2SState
|
|
16
|
-
variant: MessageVariant
|
|
17
|
-
colorScheme?: ColorScheme
|
|
18
|
-
withErrorSpotting?: boolean
|
|
19
12
|
}
|
|
20
13
|
|
|
21
|
-
const MessageContentWeb = ({
|
|
22
|
-
message,
|
|
23
|
-
text,
|
|
24
|
-
t2sState,
|
|
25
|
-
variant,
|
|
26
|
-
colorScheme = ColorScheme.Blue,
|
|
27
|
-
withErrorSpotting,
|
|
28
|
-
}: MessageContentProps) => {
|
|
14
|
+
const MessageContentWeb = ({ message, text, t2sState }: MessageContentProps) => {
|
|
29
15
|
return (
|
|
30
16
|
<Text style={styles.messageText}>
|
|
31
17
|
{text}
|
|
32
|
-
<MessageButtonsBlock
|
|
33
|
-
message={message}
|
|
34
|
-
t2sState={t2sState}
|
|
35
|
-
variant={variant}
|
|
36
|
-
colorScheme={colorScheme}
|
|
37
|
-
withErrorSpotting={withErrorSpotting}
|
|
38
|
-
/>
|
|
18
|
+
<MessageButtonsBlock message={message} t2sState={t2sState} />
|
|
39
19
|
</Text>
|
|
40
20
|
)
|
|
41
21
|
}
|
|
42
22
|
|
|
43
|
-
const MessageContentMobile = ({
|
|
44
|
-
message,
|
|
45
|
-
text,
|
|
46
|
-
t2sState,
|
|
47
|
-
variant,
|
|
48
|
-
colorScheme = ColorScheme.Blue,
|
|
49
|
-
withErrorSpotting,
|
|
50
|
-
}: MessageContentProps) => {
|
|
23
|
+
const MessageContentMobile = ({ message, text, t2sState }: MessageContentProps) => {
|
|
51
24
|
return (
|
|
52
25
|
<>
|
|
53
26
|
<Text style={[styles.messageText, styles.mobileMessageText]}>
|
|
54
27
|
{text}
|
|
55
28
|
<View style={{ width: getSpacerSize(message, t2sState) }} />
|
|
56
29
|
</Text>
|
|
57
|
-
<MessageButtonsBlock
|
|
58
|
-
message={message}
|
|
59
|
-
t2sState={t2sState}
|
|
60
|
-
variant={variant}
|
|
61
|
-
colorScheme={colorScheme}
|
|
62
|
-
withErrorSpotting={withErrorSpotting}
|
|
63
|
-
/>
|
|
30
|
+
<MessageButtonsBlock message={message} t2sState={t2sState} />
|
|
64
31
|
</>
|
|
65
32
|
)
|
|
66
33
|
}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
|
-
|
|
5
3
|
import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
|
|
6
4
|
import { ThreeDotsLoader } from '../ThreeDotsLoader/ThreeDotsLoader'
|
|
7
|
-
import { CONTROLS_COLORS_MAP } from '../../constants'
|
|
8
|
-
import { ColorScheme } from '../../types/style.types'
|
|
9
|
-
|
|
10
|
-
type MessageLoaderProps = {
|
|
11
|
-
colorScheme?: ColorScheme
|
|
12
|
-
}
|
|
13
5
|
|
|
14
|
-
export const MessageLoader = (
|
|
6
|
+
export const MessageLoader = () => (
|
|
15
7
|
<View style={styles.container}>
|
|
16
8
|
<View style={styles.icon}>
|
|
17
9
|
<ChatbotIcon width={60} height={80} />
|
|
18
10
|
</View>
|
|
19
11
|
<View style={styles.loader}>
|
|
20
|
-
<ThreeDotsLoader
|
|
12
|
+
<ThreeDotsLoader />
|
|
21
13
|
</View>
|
|
22
14
|
</View>
|
|
23
15
|
)
|
|
@@ -46,6 +38,6 @@ const styles = StyleSheet.create({
|
|
|
46
38
|
elevation: 3,
|
|
47
39
|
borderRadius: 8,
|
|
48
40
|
borderBottomLeftRadius: 0,
|
|
49
|
-
backgroundColor:
|
|
41
|
+
backgroundColor: '#F2F2F4',
|
|
50
42
|
},
|
|
51
43
|
})
|
|
@@ -1,55 +1,41 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { ActivityIndicator } from 'react-native'
|
|
3
|
-
import { Button, COLORS } from '@magmamath/react-native-ui'
|
|
4
|
-
|
|
5
3
|
import { SpeakerIcon } from '../../../../shared/icons/SpeakerIcon'
|
|
6
4
|
import { PlayIcon } from '../../../../shared/icons/PlayIcon'
|
|
7
5
|
import { PauseIcon } from '../../../../shared/icons/PauseIcon'
|
|
8
6
|
import { AudioStatus, T2SState } from '../../types/t2s.types'
|
|
9
7
|
import { useChatModel } from '../../context/ChatBotModelContext'
|
|
10
8
|
import { ConversationMessage } from '../../types/units.types'
|
|
11
|
-
import {
|
|
12
|
-
import { MessageVariant } from '../../types/model.types'
|
|
13
|
-
import { CONTROLS_COLORS_MAP, MESSAGE_COLORS_MAP } from '../../constants'
|
|
9
|
+
import { Button, COLORS } from '@magmamath/react-native-ui'
|
|
14
10
|
|
|
15
11
|
type TextToSpeechIconProps = {
|
|
16
12
|
status: AudioStatus
|
|
17
13
|
isLoading: boolean
|
|
18
14
|
isActive: boolean
|
|
19
|
-
colorScheme?: ColorScheme
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
const TextToSpeechIcon = ({
|
|
23
|
-
status,
|
|
24
|
-
isActive,
|
|
25
|
-
isLoading,
|
|
26
|
-
colorScheme = ColorScheme.Blue,
|
|
27
|
-
}: TextToSpeechIconProps) => {
|
|
17
|
+
const TextToSpeechIcon = ({ status, isActive, isLoading }: TextToSpeechIconProps) => {
|
|
28
18
|
if (isLoading && isActive) {
|
|
29
|
-
return <ActivityIndicator
|
|
19
|
+
return <ActivityIndicator />
|
|
30
20
|
}
|
|
31
21
|
|
|
32
22
|
if (!isActive) {
|
|
33
|
-
return <SpeakerIcon />
|
|
23
|
+
return <SpeakerIcon color={isActive ? COLORS.PRIMARY_BLUE : undefined} />
|
|
34
24
|
}
|
|
35
25
|
|
|
36
26
|
if (status === 'playing') return <PauseIcon color={COLORS.NEUTRAL_1} />
|
|
37
27
|
if (status === 'paused') return <PlayIcon color={COLORS.NEUTRAL_1} />
|
|
38
|
-
return <SpeakerIcon />
|
|
28
|
+
return <SpeakerIcon color={isActive ? COLORS.PRIMARY_BLUE : undefined} />
|
|
39
29
|
}
|
|
40
30
|
|
|
41
31
|
type MessageTextToSpeechProps = {
|
|
42
32
|
state: T2SState
|
|
43
33
|
message: ConversationMessage
|
|
44
|
-
variant: MessageVariant
|
|
45
|
-
colorScheme?: ColorScheme
|
|
46
34
|
}
|
|
47
35
|
|
|
48
36
|
export const MessageTextToSpeech = ({
|
|
49
37
|
state: { status, disabled, isActive, isLoading },
|
|
50
38
|
message,
|
|
51
|
-
variant,
|
|
52
|
-
colorScheme = ColorScheme.Blue,
|
|
53
39
|
}: MessageTextToSpeechProps) => {
|
|
54
40
|
const model = useChatModel()
|
|
55
41
|
|
|
@@ -65,17 +51,10 @@ export const MessageTextToSpeech = ({
|
|
|
65
51
|
disabled={disabled}
|
|
66
52
|
isActive={isActive}
|
|
67
53
|
variant={'secondary'}
|
|
68
|
-
colorScheme={
|
|
54
|
+
colorScheme={'blue'}
|
|
69
55
|
size={'small'}
|
|
70
56
|
onPress={play}
|
|
71
|
-
icon={
|
|
72
|
-
<TextToSpeechIcon
|
|
73
|
-
isActive={isActive}
|
|
74
|
-
isLoading={isLoading}
|
|
75
|
-
status={status}
|
|
76
|
-
colorScheme={colorScheme}
|
|
77
|
-
/>
|
|
78
|
-
}
|
|
57
|
+
icon={<TextToSpeechIcon isActive={isActive} isLoading={isLoading} status={status} />}
|
|
79
58
|
/>
|
|
80
59
|
)
|
|
81
60
|
}
|
|
@@ -1,39 +1,20 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
|
|
4
3
|
import { VariantProps } from './ChatMessage'
|
|
5
4
|
import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
|
|
6
|
-
import { ColorScheme } from '../../types/style.types'
|
|
7
5
|
import { MessageContent } from './MessageContent'
|
|
8
|
-
import { MessageVariant } from '../../types/model.types'
|
|
9
6
|
|
|
10
|
-
export const ReceivedMessage = ({
|
|
11
|
-
message,
|
|
12
|
-
isTranslated,
|
|
13
|
-
t2sState,
|
|
14
|
-
withIcon,
|
|
15
|
-
colorScheme = ColorScheme.Blue,
|
|
16
|
-
withErrorSpotting,
|
|
17
|
-
}: VariantProps) => {
|
|
7
|
+
export const ReceivedMessage = ({ message, isTranslated, t2sState }: VariantProps) => {
|
|
18
8
|
const text = isTranslated ? message.translatedMessage : message.message
|
|
19
9
|
|
|
20
10
|
return (
|
|
21
11
|
<View style={styles.container}>
|
|
22
|
-
{
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
</View>
|
|
26
|
-
)}
|
|
12
|
+
<View style={styles.icon}>
|
|
13
|
+
<ChatbotIcon width={60} height={80} />
|
|
14
|
+
</View>
|
|
27
15
|
|
|
28
16
|
<View style={styles.message}>
|
|
29
|
-
<MessageContent
|
|
30
|
-
message={message}
|
|
31
|
-
variant={MessageVariant.RECEIVED}
|
|
32
|
-
t2sState={t2sState}
|
|
33
|
-
text={text ?? ''}
|
|
34
|
-
colorScheme={colorScheme}
|
|
35
|
-
withErrorSpotting={withErrorSpotting}
|
|
36
|
-
/>
|
|
17
|
+
<MessageContent message={message} t2sState={t2sState} text={text ?? ''} />
|
|
37
18
|
</View>
|
|
38
19
|
</View>
|
|
39
20
|
)
|
|
@@ -46,7 +27,6 @@ const styles = StyleSheet.create({
|
|
|
46
27
|
maxWidth: 372,
|
|
47
28
|
width: 372,
|
|
48
29
|
alignItems: 'flex-end',
|
|
49
|
-
justifyContent: 'flex-end',
|
|
50
30
|
},
|
|
51
31
|
icon: {
|
|
52
32
|
alignSelf: 'flex-end',
|
|
@@ -1,41 +1,30 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
|
|
4
|
-
|
|
5
3
|
import { VariantProps } from './ChatMessage'
|
|
6
|
-
import { MESSAGE_COLORS_MAP } from '../../constants'
|
|
7
|
-
import { ColorScheme } from '../../types/style.types'
|
|
8
|
-
import { MessageVariant } from '../../types/model.types'
|
|
9
4
|
|
|
10
|
-
export const SentMessage = React.memo(
|
|
11
|
-
|
|
12
|
-
const text = isTranslated ? message.translatedMessage : message.message
|
|
5
|
+
export const SentMessage = React.memo(({ message, isTranslated }: VariantProps) => {
|
|
6
|
+
const text = isTranslated ? message.translatedMessage : message.message
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
>
|
|
21
|
-
<Text style={styles.text}>{text}</Text>
|
|
22
|
-
</View>
|
|
23
|
-
)
|
|
24
|
-
},
|
|
25
|
-
)
|
|
8
|
+
return (
|
|
9
|
+
<View style={styles.container}>
|
|
10
|
+
<Text style={styles.text}>{text}</Text>
|
|
11
|
+
</View>
|
|
12
|
+
)
|
|
13
|
+
})
|
|
26
14
|
|
|
27
15
|
const styles = StyleSheet.create({
|
|
28
16
|
container: {
|
|
29
17
|
alignSelf: 'flex-end',
|
|
30
18
|
maxWidth: 305,
|
|
31
|
-
padding:
|
|
32
|
-
borderRadius:
|
|
19
|
+
padding: 8,
|
|
20
|
+
borderRadius: 8,
|
|
33
21
|
borderBottomRightRadius: 0,
|
|
22
|
+
backgroundColor: '#55ABE0',
|
|
34
23
|
},
|
|
35
24
|
text: {
|
|
36
25
|
fontSize: 20,
|
|
37
26
|
fontWeight: 400,
|
|
38
|
-
fontFamily:
|
|
39
|
-
color:
|
|
27
|
+
fontFamily: 'Buenos Aires',
|
|
28
|
+
color: '#FFF',
|
|
40
29
|
},
|
|
41
30
|
})
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import React, { useRef } from 'react'
|
|
2
2
|
import { Platform, ScrollView, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
3
3
|
import { useStoreMap, useUnit } from 'effector-react'
|
|
4
|
-
|
|
5
4
|
import { ChatbotModel } from '../../model/ChatBotModel'
|
|
6
5
|
import { ChatMessage } from '../ChatMessage/ChatMessage'
|
|
7
6
|
import { MessageLoader } from '../ChatMessage/MessageLoader'
|
|
8
7
|
import { Alternatives } from '../Alternatives/Alternatives'
|
|
9
8
|
import { MessageVariant } from '../../types/model.types'
|
|
10
|
-
import { ColorScheme } from '../../types/style.types'
|
|
11
9
|
|
|
12
10
|
type ChatbotMessagesProps = {
|
|
13
11
|
model: ChatbotModel
|
|
14
12
|
isHintFeedback: boolean
|
|
15
13
|
isTextToSpeechEnabled: boolean
|
|
16
|
-
colorScheme?: ColorScheme
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
const TOOLBAR_HEIGHT = 140
|
|
@@ -26,7 +23,6 @@ export const ChatbotMessages = ({
|
|
|
26
23
|
model,
|
|
27
24
|
isHintFeedback,
|
|
28
25
|
isTextToSpeechEnabled,
|
|
29
|
-
colorScheme = ColorScheme.Blue,
|
|
30
26
|
}: ChatbotMessagesProps) => {
|
|
31
27
|
const dimensions = useWindowDimensions()
|
|
32
28
|
const ref = useRef<ScrollView>(null)
|
|
@@ -38,13 +34,11 @@ export const ChatbotMessages = ({
|
|
|
38
34
|
const currentPlayingId = useUnit(model.t2s.$currentPlayingId)
|
|
39
35
|
const isTranslated = useUnit(model.translation.$isTranslated)
|
|
40
36
|
const audioStatus = useUnit(model.t2s.$status)
|
|
41
|
-
const errorSpottingEnabled = useUnit(model.errorSpotting.$isEnabled)
|
|
42
|
-
|
|
43
|
-
const messages = useStoreMap(model.$currentChatData, ({ messages }) => messages)
|
|
44
|
-
const lastMessageId = messages.at(-1)?.id
|
|
45
37
|
|
|
46
38
|
const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET
|
|
47
39
|
|
|
40
|
+
const messages = useStoreMap(model.$currentChatData, ({ messages }) => messages)
|
|
41
|
+
|
|
48
42
|
const askChatForHelp = (message: string, translatedMessage?: string) => {
|
|
49
43
|
void model.sendHelpRequestFx({ message, translatedMessage })
|
|
50
44
|
}
|
|
@@ -69,11 +63,8 @@ export const ChatbotMessages = ({
|
|
|
69
63
|
<ChatMessage
|
|
70
64
|
key={message.id}
|
|
71
65
|
isTranslated={isTranslated}
|
|
72
|
-
withIcon={!message.isOwnMessage && message.id === lastMessageId}
|
|
73
66
|
message={message}
|
|
74
67
|
variant={message.isOwnMessage ? MessageVariant.SENT : MessageVariant.RECEIVED}
|
|
75
|
-
colorScheme={colorScheme}
|
|
76
|
-
withErrorSpotting={errorSpottingEnabled && !message.isOwnMessage}
|
|
77
68
|
t2sState={{
|
|
78
69
|
isEnabled: isTextToSpeechEnabled && !message.isOwnMessage,
|
|
79
70
|
isActive: message.id === currentPlayingId,
|
|
@@ -84,7 +75,7 @@ export const ChatbotMessages = ({
|
|
|
84
75
|
/>
|
|
85
76
|
))}
|
|
86
77
|
|
|
87
|
-
{isHelpRequestPending && <MessageLoader
|
|
78
|
+
{isHelpRequestPending && <MessageLoader />}
|
|
88
79
|
</View>
|
|
89
80
|
)}
|
|
90
81
|
|
|
@@ -93,7 +84,6 @@ export const ChatbotMessages = ({
|
|
|
93
84
|
onPressAlternative={askChatForHelp}
|
|
94
85
|
hasMessages={messages.length > 1}
|
|
95
86
|
isHintFeedback={isHintFeedback}
|
|
96
|
-
colorScheme={colorScheme}
|
|
97
87
|
/>
|
|
98
88
|
)}
|
|
99
89
|
</ScrollView>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentType, PropsWithChildren } from 'react'
|
|
2
2
|
import { useStoreMap, useUnit } from 'effector-react'
|
|
3
|
-
|
|
4
3
|
import { ChatbotModel } from '../model/ChatBotModel'
|
|
5
4
|
import { ChatbotMessages } from './ChatMessages/ChatbotMessages'
|
|
6
5
|
import { ChatControls } from './ChatControls/ChatControls'
|
|
7
6
|
import { AUDIO_CONFIG, DEFAULT_VOICE } from '../constants'
|
|
7
|
+
import React from 'react'
|
|
8
8
|
import { ChatBotModelContext } from '../context/ChatBotModelContext'
|
|
9
|
-
import { ColorScheme } from '../types/style.types'
|
|
10
9
|
|
|
11
10
|
type ChatbotProps = {
|
|
12
11
|
model: ChatbotModel
|
|
@@ -18,7 +17,6 @@ type ChatbotProps = {
|
|
|
18
17
|
}
|
|
19
18
|
ButtonWrapper: ComponentType<PropsWithChildren>
|
|
20
19
|
iconSize?: { width: number; height: number } // TODO: use number instead
|
|
21
|
-
colorScheme?: ColorScheme
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
export const Chatbot = ({
|
|
@@ -28,7 +26,6 @@ export const Chatbot = ({
|
|
|
28
26
|
textToSpeechConfig,
|
|
29
27
|
ButtonWrapper,
|
|
30
28
|
iconSize,
|
|
31
|
-
colorScheme = ColorScheme.Blue,
|
|
32
29
|
}: ChatbotProps) => {
|
|
33
30
|
const alternatives = useUnit(model.$alternatives)
|
|
34
31
|
const isAvailable = useStoreMap(model.$currentChatData, ({ isAvailable }) => isAvailable)
|
|
@@ -45,7 +42,6 @@ export const Chatbot = ({
|
|
|
45
42
|
<ChatBotModelContext.Provider value={model}>
|
|
46
43
|
<ChatbotMessages
|
|
47
44
|
model={model}
|
|
48
|
-
colorScheme={colorScheme}
|
|
49
45
|
isHintFeedback={isHintFeedback}
|
|
50
46
|
isTextToSpeechEnabled={isTextToSpeechEnabled}
|
|
51
47
|
/>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useEffect, useMemo } from 'react'
|
|
2
3
|
import { View, Animated, StyleSheet, Platform } from 'react-native'
|
|
3
4
|
|
|
4
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
5
|
-
|
|
6
5
|
type ChatLoaderProps = {
|
|
7
6
|
dotsCount?: number
|
|
8
7
|
animationDuration?: number
|
|
@@ -12,12 +11,12 @@ type ChatLoaderProps = {
|
|
|
12
11
|
export const ThreeDotsLoader = ({
|
|
13
12
|
dotsCount = 3,
|
|
14
13
|
animationDuration = 250,
|
|
15
|
-
backgroundColor =
|
|
14
|
+
backgroundColor = '#55ABE0',
|
|
16
15
|
}: ChatLoaderProps) => {
|
|
17
16
|
const isWeb = Platform.OS === 'web'
|
|
18
17
|
const animations = useMemo(
|
|
19
18
|
() => [...Array(dotsCount)].map(() => new Animated.Value(0)),
|
|
20
|
-
[dotsCount]
|
|
19
|
+
[dotsCount]
|
|
21
20
|
)
|
|
22
21
|
|
|
23
22
|
useEffect(() => {
|
|
@@ -34,7 +33,7 @@ export const ThreeDotsLoader = ({
|
|
|
34
33
|
duration: animationDuration,
|
|
35
34
|
useNativeDriver: !isWeb,
|
|
36
35
|
}),
|
|
37
|
-
])
|
|
36
|
+
])
|
|
38
37
|
)
|
|
39
38
|
|
|
40
39
|
Animated.loop(Animated.parallel(animationsArray)).start()
|
|
@@ -51,7 +50,11 @@ export const ThreeDotsLoader = ({
|
|
|
51
50
|
return (
|
|
52
51
|
<Animated.View
|
|
53
52
|
key={index}
|
|
54
|
-
style={[
|
|
53
|
+
style={[
|
|
54
|
+
styles.dot,
|
|
55
|
+
{ transform: [{ translateY }] },
|
|
56
|
+
{ backgroundColor },
|
|
57
|
+
]}
|
|
55
58
|
/>
|
|
56
59
|
)
|
|
57
60
|
})}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { ButtonColor, COLORS } from '@magmamath/react-native-ui'
|
|
2
1
|
import { Platform } from 'react-native'
|
|
3
|
-
import { MessageVariant } from './types/model.types'
|
|
4
|
-
import { ColorScheme } from './types/style.types'
|
|
5
2
|
|
|
6
3
|
export const AUDIO_CONFIG = {
|
|
7
4
|
audioEncoding: 'LINEAR16',
|
|
@@ -39,37 +36,3 @@ export const KATEX_REPLACEMENTS = {
|
|
|
39
36
|
export const KATEX_REPLACEMENTS_REVERSE = {
|
|
40
37
|
__KATEX_DOLLAR_SYMBOL__: '$',
|
|
41
38
|
} as const
|
|
42
|
-
|
|
43
|
-
export const MESSAGE_COLORS_MAP = {
|
|
44
|
-
[ColorScheme.Blue]: {
|
|
45
|
-
[MessageVariant.RECEIVED]: {
|
|
46
|
-
background: COLORS.NEUTRAL_3,
|
|
47
|
-
icon: ButtonColor.BLUE,
|
|
48
|
-
},
|
|
49
|
-
[MessageVariant.SENT]: {
|
|
50
|
-
background: COLORS.PRIMARY_BLUE,
|
|
51
|
-
icon: ButtonColor.BLUE,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
[ColorScheme.Yellow]: {
|
|
55
|
-
[MessageVariant.RECEIVED]: {
|
|
56
|
-
background: COLORS.NEUTRAL_3,
|
|
57
|
-
icon: ButtonColor.YELLOW,
|
|
58
|
-
},
|
|
59
|
-
[MessageVariant.SENT]: {
|
|
60
|
-
background: COLORS.PRIMARY_YELLOW,
|
|
61
|
-
icon: ButtonColor.YELLOW,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export const CONTROLS_COLORS_MAP = {
|
|
67
|
-
[ColorScheme.Blue]: {
|
|
68
|
-
hover: COLORS.PRIMARY_BLUE,
|
|
69
|
-
background: COLORS.PRIMARY_BLUE,
|
|
70
|
-
},
|
|
71
|
-
[ColorScheme.Yellow]: {
|
|
72
|
-
hover: COLORS.PRIMARY_YELLOW,
|
|
73
|
-
background: COLORS.PRIMARY_YELLOW,
|
|
74
|
-
},
|
|
75
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatbotAPI } from '../model/ChatbotApi'
|
|
2
|
-
import { createEvent, createStore, sample, createEffect, Store
|
|
2
|
+
import { createEvent, createStore, sample, createEffect, Store } from 'effector'
|
|
3
3
|
import { ChatItem, ConversationMessage } from '../types/units.types'
|
|
4
4
|
import { ChatbotContext } from '../types/model.types'
|
|
5
5
|
|
|
@@ -35,9 +35,7 @@ export class ErrorSpottingModel {
|
|
|
35
35
|
public readonly errorSpottingPressed = createEvent<ErrorSpottingPressedProps>()
|
|
36
36
|
private readonly activeDataChanged = createEvent<ActiveErrorSpottingData | null>()
|
|
37
37
|
public readonly spottingHidden = createEvent()
|
|
38
|
-
public readonly setIsEnabled = createEvent<boolean>()
|
|
39
38
|
|
|
40
|
-
public readonly $isEnabled = restore(this.setIsEnabled, false)
|
|
41
39
|
public readonly $validationKey = createStore<string | null>(null)
|
|
42
40
|
public readonly $activeData = createStore<ActiveErrorSpottingData | null>(null)
|
|
43
41
|
.on(this.activeDataChanged, (_, payload) => payload)
|
|
@@ -149,12 +147,4 @@ export class ErrorSpottingModel {
|
|
|
149
147
|
this.activeDataChanged(null)
|
|
150
148
|
this.abortPendingRequest()
|
|
151
149
|
}
|
|
152
|
-
|
|
153
|
-
public enable() {
|
|
154
|
-
this.setIsEnabled(true)
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
public disable() {
|
|
158
|
-
this.setIsEnabled(false)
|
|
159
|
-
}
|
|
160
150
|
}
|
|
@@ -10,4 +10,3 @@ export type { PostMessageResponse } from './types/api.types'
|
|
|
10
10
|
export { DefaultMessagesCreator } from './model/DefaultMessageCreator'
|
|
11
11
|
export type { ChatAnswer } from './types/units.types'
|
|
12
12
|
export type { ConversationMessage } from './types/units.types'
|
|
13
|
-
export { ColorScheme } from './types/style.types'
|