@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
|
@@ -8,14 +8,10 @@ var _types = require("./types.js");
|
|
|
8
8
|
var _en = _interopRequireDefault(require("./localization/en.json"));
|
|
9
9
|
var _gb = _interopRequireDefault(require("./localization/gb.json"));
|
|
10
10
|
var _sw = _interopRequireDefault(require("./localization/sw.json"));
|
|
11
|
-
var _ca = _interopRequireDefault(require("./localization/ca.json"));
|
|
12
|
-
var _sct = _interopRequireDefault(require("./localization/sct.json"));
|
|
13
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
12
|
const LOCALIZATION_CONFIGS = exports.LOCALIZATION_CONFIGS = {
|
|
15
13
|
[_types.Locale.EN]: _en.default,
|
|
16
14
|
[_types.Locale.GB]: _gb.default,
|
|
17
|
-
[_types.Locale.SW]: _sw.default
|
|
18
|
-
[_types.Locale.CA]: _ca.default,
|
|
19
|
-
[_types.Locale.SCT]: _sct.default
|
|
15
|
+
[_types.Locale.SW]: _sw.default
|
|
20
16
|
};
|
|
21
17
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_types","require","_en","_interopRequireDefault","_gb","_sw","
|
|
1
|
+
{"version":3,"names":["_types","require","_en","_interopRequireDefault","_gb","_sw","e","__esModule","default","LOCALIZATION_CONFIGS","exports","Locale","EN","GB","SW"],"sourceRoot":"../../../../src","sources":["shared/translation/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,GAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,GAAA,GAAAF,sBAAA,CAAAF,OAAA;AAAuC,SAAAE,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhC,MAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG;EAClC,CAACE,aAAM,CAACC,EAAE,GAAGA,WAAE;EACf,CAACD,aAAM,CAACE,EAAE,GAAGA,WAAE;EACf,CAACF,aAAM,CAACG,EAAE,GAAGA;AACf,CAAC","ignoreList":[]}
|
|
@@ -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
|
}
|
|
@@ -8,8 +8,6 @@ let Locale = exports.Locale = /*#__PURE__*/function (Locale) {
|
|
|
8
8
|
Locale["EN"] = "en-SE";
|
|
9
9
|
Locale["SW"] = "sv-SE";
|
|
10
10
|
Locale["GB"] = "en-GB";
|
|
11
|
-
Locale["CA"] = "en-CA";
|
|
12
|
-
Locale["SCT"] = "en-SCT";
|
|
13
11
|
return Locale;
|
|
14
12
|
}({}); // Validation of translations, do not remove
|
|
15
13
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Locale","exports"],"sourceRoot":"../../../../src","sources":["shared/translation/types.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["Locale","exports"],"sourceRoot":"../../../../src","sources":["shared/translation/types.ts"],"mappings":";;;;;;IAUYA,MAAM,GAAAC,OAAA,CAAAD,MAAA,0BAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA,OAMlB","ignoreList":[]}
|
|
@@ -5,14 +5,11 @@ import { StyleSheet, View } from 'react-native';
|
|
|
5
5
|
import { useStoreMap, useUnit } from 'effector-react';
|
|
6
6
|
import { HelpRequestOption } from "./HelpRequestOption.js";
|
|
7
7
|
import { useChatModel } from "../../context/ChatBotModelContext.js";
|
|
8
|
-
import { ColorScheme } from "../../types/style.types.js";
|
|
9
|
-
import { CONTROLS_COLORS_MAP } from "../../constants.js";
|
|
10
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
9
|
export const Alternatives = ({
|
|
12
10
|
onPressAlternative,
|
|
13
11
|
hasMessages,
|
|
14
|
-
isHintFeedback
|
|
15
|
-
colorScheme = ColorScheme.Blue
|
|
12
|
+
isHintFeedback
|
|
16
13
|
}) => {
|
|
17
14
|
const model = useChatModel();
|
|
18
15
|
const isTranslated = useUnit(model.translation.$isTranslated);
|
|
@@ -37,8 +34,7 @@ export const Alternatives = ({
|
|
|
37
34
|
}, index) => /*#__PURE__*/_jsx(HelpRequestOption, {
|
|
38
35
|
onPress: () => onPressAlternative(text, translatedText),
|
|
39
36
|
message: isTranslated ? translatedText : text,
|
|
40
|
-
disabled: isTranslationPending
|
|
41
|
-
hoverColor: CONTROLS_COLORS_MAP[colorScheme].hover
|
|
37
|
+
disabled: isTranslationPending
|
|
42
38
|
}, index))
|
|
43
39
|
});
|
|
44
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useStoreMap","useUnit","HelpRequestOption","useChatModel","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useStoreMap","useUnit","HelpRequestOption","useChatModel","jsx","_jsx","Alternatives","onPressAlternative","hasMessages","isHintFeedback","model","isTranslated","translation","$isTranslated","alternatives","$alternatives","isTranslationPending","translateAllMessagesFx","pending","lastMessageOptions","$currentChatData","messages","lastMessage","at","options","hints","default","style","styles","container","children","map","text","translatedText","index","onPress","message","disabled","create","flex","width","marginVertical","gap"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/Alternatives.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AACrD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,YAAY,QAAQ,sCAAmC;AAAA,SAAAC,GAAA,I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IN,CACF;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMN,MAAM,GAAG9B,UAAU,CAACwC,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,GAAG;IACVC,cAAc,EAAE,CAAC;IACjBC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,56 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useEffect, useRef, useState } from 'react';
|
|
5
|
+
import { Animated, Platform, Pressable, StyleSheet } from 'react-native';
|
|
6
6
|
import { ArrowRightIcon } from "../../../../shared/icons/ArrowRightIcon.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const transitionColor = (isHovered, value) => Animated.timing(value, {
|
|
9
|
+
toValue: isHovered ? 1 : 0,
|
|
10
|
+
duration: 200,
|
|
11
|
+
useNativeDriver: Platform.OS !== 'web'
|
|
12
|
+
}).start();
|
|
8
13
|
export const HelpRequestOption = ({
|
|
9
14
|
onPress,
|
|
10
15
|
message,
|
|
11
|
-
disabled = false
|
|
12
|
-
hoverColor = COLORS.PRIMARY_BLUE
|
|
16
|
+
disabled = false
|
|
13
17
|
}) => {
|
|
14
18
|
const [isHovered, setIsHovered] = useState(false);
|
|
15
|
-
const
|
|
16
|
-
const
|
|
19
|
+
const backgroundColor = useRef(new Animated.Value(0)).current;
|
|
20
|
+
const backgroundInterpolation = backgroundColor.interpolate({
|
|
17
21
|
inputRange: [0, 1],
|
|
18
|
-
outputRange: [
|
|
22
|
+
outputRange: ['#FFFFFF', '#55ABE0']
|
|
19
23
|
});
|
|
20
|
-
const textColor =
|
|
24
|
+
const textColor = useRef(new Animated.Value(0)).current;
|
|
25
|
+
const textInterpolation = textColor.interpolate({
|
|
21
26
|
inputRange: [0, 1],
|
|
22
|
-
outputRange: [
|
|
27
|
+
outputRange: ['#33334D', '#FFFFFF']
|
|
23
28
|
});
|
|
24
29
|
useEffect(() => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
useNativeDriver: false
|
|
29
|
-
}).start();
|
|
30
|
-
}, [isHovered, hoverAnim]);
|
|
30
|
+
transitionColor(isHovered, backgroundColor);
|
|
31
|
+
transitionColor(isHovered, textColor);
|
|
32
|
+
}, [isHovered]);
|
|
31
33
|
return /*#__PURE__*/_jsx(Pressable, {
|
|
32
34
|
onHoverIn: () => setIsHovered(true),
|
|
33
35
|
onHoverOut: () => setIsHovered(false),
|
|
34
36
|
onPress: onPress,
|
|
35
37
|
style: styles.button,
|
|
36
38
|
disabled: disabled,
|
|
37
|
-
accessibilityState: {
|
|
38
|
-
disabled
|
|
39
|
-
},
|
|
40
|
-
accessibilityRole: "button",
|
|
41
39
|
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
42
40
|
style: [styles.textWrapper, {
|
|
43
|
-
backgroundColor
|
|
44
|
-
borderColor: backgroundColor
|
|
41
|
+
backgroundColor: backgroundInterpolation
|
|
45
42
|
}],
|
|
46
43
|
children: [/*#__PURE__*/_jsx(Animated.Text, {
|
|
47
44
|
numberOfLines: 1,
|
|
48
45
|
style: [styles.text, {
|
|
49
|
-
color:
|
|
46
|
+
color: textInterpolation
|
|
50
47
|
}],
|
|
51
48
|
children: message
|
|
52
49
|
}), /*#__PURE__*/_jsx(ArrowRightIcon, {
|
|
53
|
-
color: isHovered ?
|
|
50
|
+
color: isHovered ? '#FFFFFF' : '#33334D'
|
|
54
51
|
})]
|
|
55
52
|
})
|
|
56
53
|
});
|
|
@@ -65,8 +62,8 @@ const styles = StyleSheet.create({
|
|
|
65
62
|
text: {
|
|
66
63
|
fontSize: 20,
|
|
67
64
|
fontWeight: 400,
|
|
68
|
-
fontFamily:
|
|
69
|
-
color:
|
|
65
|
+
fontFamily: 'Buenos Aires',
|
|
66
|
+
color: '#33334D'
|
|
70
67
|
},
|
|
71
68
|
textWrapper: {
|
|
72
69
|
flex: 1,
|
|
@@ -74,10 +71,11 @@ const styles = StyleSheet.create({
|
|
|
74
71
|
alignItems: 'center',
|
|
75
72
|
justifyContent: 'space-between',
|
|
76
73
|
maxWidth: 305,
|
|
77
|
-
paddingHorizontal:
|
|
78
|
-
paddingVertical:
|
|
74
|
+
paddingHorizontal: 16,
|
|
75
|
+
paddingVertical: 8,
|
|
79
76
|
borderWidth: 1,
|
|
80
77
|
borderRadius: 48,
|
|
78
|
+
borderColor: '#55ABE0',
|
|
81
79
|
elevation: 3,
|
|
82
80
|
shadowColor: '#333',
|
|
83
81
|
shadowOffset: {
|
|
@@ -86,7 +84,7 @@ const styles = StyleSheet.create({
|
|
|
86
84
|
},
|
|
87
85
|
shadowOpacity: 0.25,
|
|
88
86
|
shadowRadius: 3,
|
|
89
|
-
backgroundColor:
|
|
87
|
+
backgroundColor: '#FFFFFF'
|
|
90
88
|
}
|
|
91
89
|
});
|
|
92
90
|
//# sourceMappingURL=HelpRequestOption.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","useState","Animated","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","useState","Animated","Platform","Pressable","StyleSheet","ArrowRightIcon","jsx","_jsx","jsxs","_jsxs","transitionColor","isHovered","value","timing","toValue","duration","useNativeDriver","OS","start","HelpRequestOption","onPress","message","disabled","setIsHovered","backgroundColor","Value","current","backgroundInterpolation","interpolate","inputRange","outputRange","textColor","textInterpolation","onHoverIn","onHoverOut","style","styles","button","children","View","textWrapper","Text","numberOfLines","text","color","create","flexDirection","alignItems","justifyContent","width","fontSize","fontWeight","fontFamily","flex","maxWidth","paddingHorizontal","paddingVertical","borderWidth","borderRadius","borderColor","elevation","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"m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a,IAAI,EAAE,CAAC;IACPP,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BM,QAAQ,EAAE,GAAG;IACbC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,SAAS;IACtBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEc,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfzC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReceivedMessage","SentMessage","MessageVariant","jsx","_jsx","variantsMap","SENT","RECEIVED","ChatMessage","variant","props","Component"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAyB,OAAO;
|
|
1
|
+
{"version":3,"names":["React","ReceivedMessage","SentMessage","MessageVariant","jsx","_jsx","variantsMap","SENT","RECEIVED","ChatMessage","variant","props","Component"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAyB,OAAO;AAC5C,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,WAAW,QAAQ,kBAAe;AAE3C,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAYxD,MAAMC,WAAgE,GAAG;EACvE,CAACH,cAAc,CAACI,IAAI,GAAGL,WAAW;EAClC,CAACC,cAAc,CAACK,QAAQ,GAAGP;AAC7B,CAAC;AAED,OAAO,MAAMQ,WAAW,GAAGA,CAAC;EAAEC,OAAO;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACtE,MAAMC,SAAS,GAAGN,WAAW,CAACI,OAAO,CAAC;EACtC,oBAAOL,IAAA,CAACO,SAAS;IAAA,GAAKD;EAAK,CAAG,CAAC;AACjC,CAAC","ignoreList":[]}
|
|
@@ -2,27 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { IS_WEB } from '@magmamath/react-native-ui';
|
|
6
5
|
import { ErrorSpottingButton } from "../../errorSpotting/ErrorSpottingButton.js";
|
|
7
6
|
import { MessageTextToSpeech } from "./MessageTextToSpeech.js";
|
|
7
|
+
import { IS_WEB } from '@magmamath/react-native-ui';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export const MessageButtonsBlock = ({
|
|
10
10
|
t2sState,
|
|
11
|
-
message
|
|
12
|
-
variant,
|
|
13
|
-
colorScheme,
|
|
14
|
-
withErrorSpotting
|
|
11
|
+
message
|
|
15
12
|
}) => {
|
|
16
13
|
if (!t2sState.isEnabled && !message.isInitial) return null;
|
|
17
14
|
return /*#__PURE__*/_jsxs(View, {
|
|
18
15
|
style: styles.container,
|
|
19
|
-
children: [
|
|
16
|
+
children: [!!message.isInitial && /*#__PURE__*/_jsx(ErrorSpottingButton, {
|
|
20
17
|
contextMessage: message
|
|
21
18
|
}), t2sState.isEnabled && /*#__PURE__*/_jsx(MessageTextToSpeech, {
|
|
22
19
|
state: t2sState,
|
|
23
|
-
message: message
|
|
24
|
-
variant: variant,
|
|
25
|
-
colorScheme: colorScheme
|
|
20
|
+
message: message
|
|
26
21
|
})]
|
|
27
22
|
});
|
|
28
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ErrorSpottingButton","MessageTextToSpeech","IS_WEB","jsx","_jsx","jsxs","_jsxs","MessageButtonsBlock","t2sState","message","isEnabled","isInitial","style","styles","container","children","contextMessage","state","create","flexDirection","gap","marginLeft","float","position","bottom","right"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,mBAAmB,QAAQ,4CAAyC;AAC7E,SAASC,mBAAmB,QAAQ,0BAAuB;AAE3D,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQnD,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAkC,CAAC,KAAK;EACtF,IAAI,CAACD,QAAQ,CAACE,SAAS,IAAI,CAACD,OAAO,CAACE,SAAS,EAAE,OAAO,IAAI;EAE1D,oBACEL,KAAA,CAACP,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,GAC3B,CAAC,CAACN,OAAO,CAACE,SAAS,iBAAIP,IAAA,CAACJ,mBAAmB;MAACgB,cAAc,EAAEP;IAAQ,CAAE,CAAC,EACvED,QAAQ,CAACE,SAAS,iBAAIN,IAAA,CAACH,mBAAmB;MAACgB,KAAK,EAAET,QAAS;MAACC,OAAO,EAAEA;IAAQ,CAAE,CAAC;EAAA,CAC7E,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGf,UAAU,CAACoB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,CAAC;IACNC,UAAU,EAAE,MAAM;IAClB,IAAInB,MAAM,GACN;MAAEoB,KAAK,EAAE;IAAQ,CAAC,GAClB;MACEC,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT,CAAC;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,37 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { Platform, StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import { ColorScheme } from "../../types/style.types.js";
|
|
6
4
|
import { MessageButtonsBlock } from "./MessageButtonsBlock.js";
|
|
7
5
|
import { getSpacerSize } from "./helpers.js";
|
|
6
|
+
import React from 'react';
|
|
8
7
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
8
|
const MessageContentWeb = ({
|
|
10
9
|
message,
|
|
11
10
|
text,
|
|
12
|
-
t2sState
|
|
13
|
-
variant,
|
|
14
|
-
colorScheme = ColorScheme.Blue,
|
|
15
|
-
withErrorSpotting
|
|
11
|
+
t2sState
|
|
16
12
|
}) => {
|
|
17
13
|
return /*#__PURE__*/_jsxs(Text, {
|
|
18
14
|
style: styles.messageText,
|
|
19
15
|
children: [text, /*#__PURE__*/_jsx(MessageButtonsBlock, {
|
|
20
16
|
message: message,
|
|
21
|
-
t2sState: t2sState
|
|
22
|
-
variant: variant,
|
|
23
|
-
colorScheme: colorScheme,
|
|
24
|
-
withErrorSpotting: withErrorSpotting
|
|
17
|
+
t2sState: t2sState
|
|
25
18
|
})]
|
|
26
19
|
});
|
|
27
20
|
};
|
|
28
21
|
const MessageContentMobile = ({
|
|
29
22
|
message,
|
|
30
23
|
text,
|
|
31
|
-
t2sState
|
|
32
|
-
variant,
|
|
33
|
-
colorScheme = ColorScheme.Blue,
|
|
34
|
-
withErrorSpotting
|
|
24
|
+
t2sState
|
|
35
25
|
}) => {
|
|
36
26
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
37
27
|
children: [/*#__PURE__*/_jsxs(Text, {
|
|
@@ -43,10 +33,7 @@ const MessageContentMobile = ({
|
|
|
43
33
|
})]
|
|
44
34
|
}), /*#__PURE__*/_jsx(MessageButtonsBlock, {
|
|
45
35
|
message: message,
|
|
46
|
-
t2sState: t2sState
|
|
47
|
-
variant: variant,
|
|
48
|
-
colorScheme: colorScheme,
|
|
49
|
-
withErrorSpotting: withErrorSpotting
|
|
36
|
+
t2sState: t2sState
|
|
50
37
|
})]
|
|
51
38
|
});
|
|
52
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Platform","StyleSheet","Text","View","MessageButtonsBlock","getSpacerSize","React","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MessageContentWeb","message","text","t2sState","style","styles","messageText","children","MessageContentMobile","mobileMessageText","width","MessageContent","select","web","default","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;AAEA,SAASA,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC/D,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,cAAW;AACzC,OAAOC,KAAK,MAAM,OAAO;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAQzB,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,OAAO;EAAEC,IAAI;EAAEC;AAA8B,CAAC,KAAK;EAC9E,oBACEN,KAAA,CAACR,IAAI;IAACe,KAAK,EAAEC,MAAM,CAACC,WAAY;IAAAC,QAAA,GAC7BL,IAAI,eACLP,IAAA,CAACJ,mBAAmB;MAACU,OAAO,EAAEA,OAAQ;MAACE,QAAQ,EAAEA;IAAS,CAAE,CAAC;EAAA,CACzD,CAAC;AAEX,CAAC;AAED,MAAMK,oBAAoB,GAAGA,CAAC;EAAEP,OAAO;EAAEC,IAAI;EAAEC;AAA8B,CAAC,KAAK;EACjF,oBACEN,KAAA,CAAAE,SAAA;IAAAQ,QAAA,gBACEV,KAAA,CAACR,IAAI;MAACe,KAAK,EAAE,CAACC,MAAM,CAACC,WAAW,EAAED,MAAM,CAACI,iBAAiB,CAAE;MAAAF,QAAA,GACzDL,IAAI,eACLP,IAAA,CAACL,IAAI;QAACc,KAAK,EAAE;UAAEM,KAAK,EAAElB,aAAa,CAACS,OAAO,EAAEE,QAAQ;QAAE;MAAE,CAAE,CAAC;IAAA,CACxD,CAAC,eACPR,IAAA,CAACJ,mBAAmB;MAACU,OAAO,EAAEA,OAAQ;MAACE,QAAQ,EAAEA;IAAS,CAAE,CAAC;EAAA,CAC7D,CAAC;AAEP,CAAC;AAED,OAAO,MAAMQ,cAAc,GAAGxB,QAAQ,CAACyB,MAAM,CAAC;EAC5CC,GAAG,EAAEb,iBAAiB;EACtBc,OAAO,EAAEN;AACX,CAAC,CAAC;AAEF,MAAMH,MAAM,GAAGjB,UAAU,CAAC2B,MAAM,CAAC;EAC/BT,WAAW,EAAE;IACXU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE,SAAS;IAChBV,KAAK,EAAE;EACT,CAAC;EACDD,iBAAiB,EAAE;IACjBY,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { COLORS } from '@magmamath/react-native-ui';
|
|
6
5
|
import { ChatbotIcon } from "../../../../shared/icons/ChatbotIcon.js";
|
|
7
6
|
import { ThreeDotsLoader } from "../ThreeDotsLoader/ThreeDotsLoader.js";
|
|
8
|
-
import { CONTROLS_COLORS_MAP } from "../../constants.js";
|
|
9
|
-
import { ColorScheme } from "../../types/style.types.js";
|
|
10
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
export const MessageLoader = ({
|
|
12
|
-
colorScheme = ColorScheme.Blue
|
|
13
|
-
}) => /*#__PURE__*/_jsxs(View, {
|
|
8
|
+
export const MessageLoader = () => /*#__PURE__*/_jsxs(View, {
|
|
14
9
|
style: styles.container,
|
|
15
10
|
children: [/*#__PURE__*/_jsx(View, {
|
|
16
11
|
style: styles.icon,
|
|
@@ -20,9 +15,7 @@ export const MessageLoader = ({
|
|
|
20
15
|
})
|
|
21
16
|
}), /*#__PURE__*/_jsx(View, {
|
|
22
17
|
style: styles.loader,
|
|
23
|
-
children: /*#__PURE__*/_jsx(ThreeDotsLoader, {
|
|
24
|
-
backgroundColor: CONTROLS_COLORS_MAP[colorScheme].background
|
|
25
|
-
})
|
|
18
|
+
children: /*#__PURE__*/_jsx(ThreeDotsLoader, {})
|
|
26
19
|
})]
|
|
27
20
|
});
|
|
28
21
|
const styles = StyleSheet.create({
|
|
@@ -52,7 +45,7 @@ const styles = StyleSheet.create({
|
|
|
52
45
|
elevation: 3,
|
|
53
46
|
borderRadius: 8,
|
|
54
47
|
borderBottomLeftRadius: 0,
|
|
55
|
-
backgroundColor:
|
|
48
|
+
backgroundColor: '#F2F2F4'
|
|
56
49
|
}
|
|
57
50
|
});
|
|
58
51
|
//# sourceMappingURL=MessageLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ChatbotIcon","ThreeDotsLoader","jsx","_jsx","jsxs","_jsxs","MessageLoader","style","styles","container","children","icon","width","height","loader","create","flexDirection","alignItems","alignSelf","marginRight","flex","maxWidth","padding","paddingTop","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,eAAe,QAA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from 'react';
|
|
4
4
|
import { ActivityIndicator } from 'react-native';
|
|
5
|
-
import { Button, COLORS } from '@magmamath/react-native-ui';
|
|
6
5
|
import { SpeakerIcon } from "../../../../shared/icons/SpeakerIcon.js";
|
|
7
6
|
import { PlayIcon } from "../../../../shared/icons/PlayIcon.js";
|
|
8
7
|
import { PauseIcon } from "../../../../shared/icons/PauseIcon.js";
|
|
9
8
|
import { useChatModel } from "../../context/ChatBotModelContext.js";
|
|
10
|
-
import {
|
|
11
|
-
import { CONTROLS_COLORS_MAP, MESSAGE_COLORS_MAP } from "../../constants.js";
|
|
9
|
+
import { Button, COLORS } from '@magmamath/react-native-ui';
|
|
12
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
11
|
const TextToSpeechIcon = ({
|
|
14
12
|
status,
|
|
15
13
|
isActive,
|
|
16
|
-
isLoading
|
|
17
|
-
colorScheme = ColorScheme.Blue
|
|
14
|
+
isLoading
|
|
18
15
|
}) => {
|
|
19
16
|
if (isLoading && isActive) {
|
|
20
|
-
return /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
21
|
-
color: CONTROLS_COLORS_MAP[colorScheme].background
|
|
22
|
-
});
|
|
17
|
+
return /*#__PURE__*/_jsx(ActivityIndicator, {});
|
|
23
18
|
}
|
|
24
19
|
if (!isActive) {
|
|
25
|
-
return /*#__PURE__*/_jsx(SpeakerIcon, {
|
|
20
|
+
return /*#__PURE__*/_jsx(SpeakerIcon, {
|
|
21
|
+
color: isActive ? COLORS.PRIMARY_BLUE : undefined
|
|
22
|
+
});
|
|
26
23
|
}
|
|
27
24
|
if (status === 'playing') return /*#__PURE__*/_jsx(PauseIcon, {
|
|
28
25
|
color: COLORS.NEUTRAL_1
|
|
@@ -30,7 +27,9 @@ const TextToSpeechIcon = ({
|
|
|
30
27
|
if (status === 'paused') return /*#__PURE__*/_jsx(PlayIcon, {
|
|
31
28
|
color: COLORS.NEUTRAL_1
|
|
32
29
|
});
|
|
33
|
-
return /*#__PURE__*/_jsx(SpeakerIcon, {
|
|
30
|
+
return /*#__PURE__*/_jsx(SpeakerIcon, {
|
|
31
|
+
color: isActive ? COLORS.PRIMARY_BLUE : undefined
|
|
32
|
+
});
|
|
34
33
|
};
|
|
35
34
|
export const MessageTextToSpeech = ({
|
|
36
35
|
state: {
|
|
@@ -39,9 +38,7 @@ export const MessageTextToSpeech = ({
|
|
|
39
38
|
isActive,
|
|
40
39
|
isLoading
|
|
41
40
|
},
|
|
42
|
-
message
|
|
43
|
-
variant,
|
|
44
|
-
colorScheme = ColorScheme.Blue
|
|
41
|
+
message
|
|
45
42
|
}) => {
|
|
46
43
|
const model = useChatModel();
|
|
47
44
|
function play() {
|
|
@@ -54,14 +51,13 @@ export const MessageTextToSpeech = ({
|
|
|
54
51
|
disabled: disabled,
|
|
55
52
|
isActive: isActive,
|
|
56
53
|
variant: 'secondary',
|
|
57
|
-
colorScheme:
|
|
54
|
+
colorScheme: 'blue',
|
|
58
55
|
size: 'small',
|
|
59
56
|
onPress: play,
|
|
60
57
|
icon: /*#__PURE__*/_jsx(TextToSpeechIcon, {
|
|
61
58
|
isActive: isActive,
|
|
62
59
|
isLoading: isLoading,
|
|
63
|
-
status: status
|
|
64
|
-
colorScheme: colorScheme
|
|
60
|
+
status: status
|
|
65
61
|
})
|
|
66
62
|
});
|
|
67
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ActivityIndicator","
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","SpeakerIcon","PlayIcon","PauseIcon","useChatModel","Button","COLORS","jsx","_jsx","TextToSpeechIcon","status","isActive","isLoading","color","PRIMARY_BLUE","undefined","NEUTRAL_1","MessageTextToSpeech","state","disabled","message","model","play","t2s","isTranslated","translation","$isTranslated","getState","variant","colorScheme","size","onPress","icon"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iB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,CAACC,aAAa,CAACC,QAAQ,CAAC,CAAC;MACxDP;IACF,CAAC,CAAC;EACJ;EAEA,oBACEZ,IAAA,CAACH,MAAM;IACLc,QAAQ,EAAEA,QAAS;IACnBR,QAAQ,EAAEA,QAAS;IACnBiB,OAAO,EAAE,WAAY;IACrBC,WAAW,EAAE,MAAO;IACpBC,IAAI,EAAE,OAAQ;IACdC,OAAO,EAAET,IAAK;IACdU,IAAI,eAAExB,IAAA,CAACC,gBAAgB;MAACE,QAAQ,EAAEA,QAAS;MAACC,SAAS,EAAEA,SAAU;MAACF,MAAM,EAAEA;IAAO,CAAE;EAAE,CACtF,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -3,22 +3,17 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
5
|
import { ChatbotIcon } from "../../../../shared/icons/ChatbotIcon.js";
|
|
6
|
-
import { ColorScheme } from "../../types/style.types.js";
|
|
7
6
|
import { MessageContent } from "./MessageContent.js";
|
|
8
|
-
import { MessageVariant } from "../../types/model.types.js";
|
|
9
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
8
|
export const ReceivedMessage = ({
|
|
11
9
|
message,
|
|
12
10
|
isTranslated,
|
|
13
|
-
t2sState
|
|
14
|
-
withIcon,
|
|
15
|
-
colorScheme = ColorScheme.Blue,
|
|
16
|
-
withErrorSpotting
|
|
11
|
+
t2sState
|
|
17
12
|
}) => {
|
|
18
13
|
const text = isTranslated ? message.translatedMessage : message.message;
|
|
19
14
|
return /*#__PURE__*/_jsxs(View, {
|
|
20
15
|
style: styles.container,
|
|
21
|
-
children: [
|
|
16
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
22
17
|
style: styles.icon,
|
|
23
18
|
children: /*#__PURE__*/_jsx(ChatbotIcon, {
|
|
24
19
|
width: 60,
|
|
@@ -28,11 +23,8 @@ export const ReceivedMessage = ({
|
|
|
28
23
|
style: styles.message,
|
|
29
24
|
children: /*#__PURE__*/_jsx(MessageContent, {
|
|
30
25
|
message: message,
|
|
31
|
-
variant: MessageVariant.RECEIVED,
|
|
32
26
|
t2sState: t2sState,
|
|
33
|
-
text: text ?? ''
|
|
34
|
-
colorScheme: colorScheme,
|
|
35
|
-
withErrorSpotting: withErrorSpotting
|
|
27
|
+
text: text ?? ''
|
|
36
28
|
})
|
|
37
29
|
})]
|
|
38
30
|
});
|
|
@@ -43,8 +35,7 @@ const styles = StyleSheet.create({
|
|
|
43
35
|
flexDirection: 'row',
|
|
44
36
|
maxWidth: 372,
|
|
45
37
|
width: 372,
|
|
46
|
-
alignItems: 'flex-end'
|
|
47
|
-
justifyContent: 'flex-end'
|
|
38
|
+
alignItems: 'flex-end'
|
|
48
39
|
},
|
|
49
40
|
icon: {
|
|
50
41
|
alignSelf: 'flex-end',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","ChatbotIcon","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ChatbotIcon","MessageContent","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","isTranslated","t2sState","text","translatedMessage","style","styles","container","children","icon","width","height","create","flex","flexDirection","maxWidth","alignItems","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,cAAc,QAAQ,qBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC;AAAuB,CAAC,KAAK;EACpF,MAAMC,IAAI,G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