@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
|
@@ -15,14 +15,5 @@ export class ChatBotTextManager {
|
|
|
15
15
|
endMessage: this.messagesCreator.createMessage('chat.answerAgain'),
|
|
16
16
|
anotherHintOption: this.messagesCreator.createOption('chat.anotherHint')
|
|
17
17
|
};
|
|
18
|
-
defaultMessages = {
|
|
19
|
-
...this.messages
|
|
20
|
-
};
|
|
21
|
-
update(cb) {
|
|
22
|
-
Object.assign(this.messages, cb(this.messagesCreator));
|
|
23
|
-
}
|
|
24
|
-
restore() {
|
|
25
|
-
Object.assign(this.messages, this.defaultMessages);
|
|
26
|
-
}
|
|
27
18
|
}
|
|
28
19
|
//# sourceMappingURL=ChatBoxTextManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DefaultMessagesCreator","getText","$localization","ChatBotTextManager","messagesCreator","textGetter","bindToLanguageChanged","updates","messages","error","createMessage","options","createOption","start","endMessage","anotherHintOption"
|
|
1
|
+
{"version":3,"names":["DefaultMessagesCreator","getText","$localization","ChatBotTextManager","messagesCreator","textGetter","bindToLanguageChanged","updates","messages","error","createMessage","options","createOption","start","endMessage","anotherHintOption"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatBoxTextManager.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,4BAAyB;AAEhE,SAASC,OAAO,QAAQ,wCAAqC;AAE7D,SAASC,aAAa,QAAQ,sCAA6B;AAE3D,OAAO,MAAMC,kBAAkB,CAAC;EACbC,eAAe,GAAG,IAAIJ,sBAAsB,CAAkB;IAC7EK,UAAU,EAAEJ;EACd,CAAC,CAAC,CAACK,qBAAqB,CAACJ,aAAa,CAACK,OAAO,CAAC;EAE/BC,QAAQ,GAAoB;IAC1CC,KAAK,EAAE,IAAI,CAACL,eAAe,CAACM,aAAa,CAAC,mBAAmB,EAAE;MAC7DC,OAAO,EAAE,CAAC,IAAI,CAACP,eAAe,CAACQ,YAAY,CAAC,eAAe,CAAC;IAC9D,CAAC,CAAC;IACFC,KAAK,EAAE,IAAI,CAACT,eAAe,CAACM,aAAa,CAAC,kBAAkB,CAAC;IAC7DI,UAAU,EAAE,IAAI,CAACV,eAAe,CAACM,aAAa,CAAC,kBAAkB,CAAC;IAClEK,iBAAiB,EAAE,IAAI,CAACX,eAAe,CAACQ,YAAY,CAAC,kBAAkB;EACzE,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DefaultMessagesCreator","list","Map","constructor","textGetter","getter","createMessage","key","isOwn","options","message","id","size","toString","isOwnMessage","set","createOption","option","text","
|
|
1
|
+
{"version":3,"names":["DefaultMessagesCreator","list","Map","constructor","textGetter","getter","createMessage","key","isOwn","options","message","id","size","toString","isOwnMessage","set","createOption","option","text","promptKey","bindToLanguageChanged","event","watch","forEach","chatMessage"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/DefaultMessageCreator.ts"],"mappings":";;AAkBA,OAAO,MAAMA,sBAAsB,CAAmB;EACnCC,IAAI,GAAG,IAAIC,GAAG,CAA8B,CAAC;EAG9DC,WAAWA,CAAC;IAAEC;EAA0C,CAAC,EAAE;IACzD,IAAI,CAACC,MAAM,GAAGD,UAAU;EAC1B;EAEOE,aAAaA,CAACC,GAAM,EAAE;IAAEC,KAAK,GAAG,KAAK;IAAEC,OAAO,GAAG;EAA2B,CAAC,GAAG,CAAC,CAAC,EAAE;IACzF,MAAMC,OAAoB,GAAG;MAC3BC,EAAE,EAAE,IAAI,CAACV,IAAI,CAACW,IAAI,CAACC,QAAQ,CAAC,CAAC;MAC7BH,OAAO,EAAE,IAAI,CAACL,MAAM,CAACE,GAAG,CAAC;MACzBE,OAAO;MACPK,YAAY,EAAEN;IAChB,CAAC;IACD,IAAI,CAACP,IAAI,CAACc,GAAG,CAACL,OAAO,EAAEH,GAAG,CAAC;IAC3B,OAAOG,OAAO;EAChB;EAEOM,YAAYA,CAACT,GAAM,EAAE;IAC1B,MAAMU,MAAkB,GAAG;MACzBC,IAAI,EAAE,IAAI,CAACb,MAAM,CAACE,GAAG,CAAC;MACtBY,SAAS,EAAE;IACb,CAAC;IACD,IAAI,CAAClB,IAAI,CAACc,GAAG,CAACE,MAAM,EAAEV,GAAG,CAAC;IAC1B,OAAOU,MAAM;EACf;EAEOG,qBAAqBA,CAACC,KAAqB,EAAE;IAClDA,KAAK,CAACC,KAAK,CAAC,MAAM;MAChB,IAAI,CAACrB,IAAI,CAACsB,OAAO,CAAC,CAAChB,GAAG,EAAEiB,WAAW,KAAK;QACtC,IAAI,SAAS,IAAIA,WAAW,EAAE;UAC5BA,WAAW,CAACd,OAAO,GAAG,IAAI,CAACL,MAAM,CAACE,GAAG,CAAC;UACtC;QACF;QACAiB,WAAW,CAACN,IAAI,GAAG,IAAI,CAACb,MAAM,CAACE,GAAG,CAAC;MACrC,CAAC,CAAC;IACJ,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
|
@@ -39,7 +39,6 @@ export class ChatbotTranslation {
|
|
|
39
39
|
});
|
|
40
40
|
sample({
|
|
41
41
|
clock: this.translateAllMessagesFx.doneData,
|
|
42
|
-
filter: (_, translatedMessages) => !!translatedMessages.length,
|
|
43
42
|
source: [this.$key],
|
|
44
43
|
fn: ([key], translatedMessages) => ({
|
|
45
44
|
key,
|
|
@@ -81,7 +80,7 @@ export class ChatbotTranslation {
|
|
|
81
80
|
targetLanguage
|
|
82
81
|
}) => {
|
|
83
82
|
const allTranslated = messages.every(message => message.translatedMessage);
|
|
84
|
-
if (allTranslated || !targetLanguage
|
|
83
|
+
if (allTranslated || !targetLanguage) {
|
|
85
84
|
return messages;
|
|
86
85
|
}
|
|
87
86
|
const defaultMessages = [this.defaultMessages.error, this.defaultMessages.endMessage];
|
|
@@ -98,7 +97,6 @@ export class ChatbotTranslation {
|
|
|
98
97
|
defaultMessages: defaultMessages.map(({
|
|
99
98
|
message
|
|
100
99
|
}) => message),
|
|
101
|
-
defaultMessagesOptions: defaultMessages.flatMap(message => message.options.map(option => option.text)),
|
|
102
100
|
defaultOptions: defaultOptions.map(({
|
|
103
101
|
text
|
|
104
102
|
}) => text),
|
|
@@ -110,12 +108,6 @@ export class ChatbotTranslation {
|
|
|
110
108
|
});
|
|
111
109
|
translatedTextsList.defaultMessages.forEach((message, index) => {
|
|
112
110
|
defaultMessages[index].translatedMessage = message;
|
|
113
|
-
defaultMessages[index].options = defaultMessages[index].options.map(option => {
|
|
114
|
-
return {
|
|
115
|
-
...option,
|
|
116
|
-
translatedText: translatedTextsList.defaultMessagesOptions[index]
|
|
117
|
-
};
|
|
118
|
-
});
|
|
119
111
|
});
|
|
120
112
|
translatedTextsList.defaultOptions.forEach((message, index) => {
|
|
121
113
|
defaultOptions[index].translatedText = message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["attach","createEffect","createEvent","restore","sample","decodeHTMLEntities","addTranslationsToAlternative","addTranslationToOptions","getOptionsForTranslation","ChatbotTranslation","setIsTranslated","$isTranslated","constructor","api","$key","defaultMessages","alternativesModel","$context","chats","applyTranslationFx","source","mapParams","messages","isTranslationActive","context","targetLanguage","translationTargetLanguage","effect","translateMessagesFx","translateAllMessagesFx","$data","$store","_","key","alternatives","translateBatchFx","clock","doneData","
|
|
1
|
+
{"version":3,"names":["attach","createEffect","createEvent","restore","sample","decodeHTMLEntities","addTranslationsToAlternative","addTranslationToOptions","getOptionsForTranslation","ChatbotTranslation","setIsTranslated","$isTranslated","constructor","api","$key","defaultMessages","alternativesModel","$context","chats","applyTranslationFx","source","mapParams","messages","isTranslationActive","context","targetLanguage","translationTargetLanguage","effect","translateMessagesFx","translateAllMessagesFx","$data","$store","_","key","alternatives","translateBatchFx","clock","doneData","fn","translatedMessages","data","target","update","translateRequest","textList","text","Object","values","flat","response","translateTextFx","translatedText","translations","map","entries","reduce","result","texts","splice","length","addTranslationToAlternatives","props","set","allTranslated","every","message","translatedMessage","error","endMessage","defaultOptions","anotherHintOption","options","lastMessage","at","translatedTextsList","alternativesHints","hints","alternativesDefaults","default","forEach","index","translatedHints","translatedDefaults","isLastMessage","translatedTexts","shift","reset"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/translation.ts"],"mappings":";;AAAA,SAASA,MAAM,EAAEC,YAAY,EAAEC,WAAW,EAAiBC,OAAO,EAAEC,MAAM,QAAe,UAAU;AASnG,SAASC,kBAAkB,QAAQ,eAAY;AAE/C,SACEC,4BAA4B,EAC5BC,uBAAuB,EACvBC,wBAAwB,QACnB,0BAAuB;AAiB9B,OAAO,MAAMC,kBAAkB,CAAC;EAOrBC,eAAe,GAAGR,WAAW,CAAU,CAAC;EACxCS,aAAa,GAAGR,OAAO,CAAC,IAAI,CAACO,eAAe,EAAE,KAAK,CAAC;EAK7DE,WAAWA,CAAC;IACVC,GAAG;IACHC,IAAI;IACJC,eAAe;IACfC,iBAAiB;IACjBC,QAAQ;IACRC;EACuB,CAAC,EAAE;IAC1B,IAAI,CAACL,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACG,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACF,eAAe,GAAGA,eAAe;IACtC,IAAI,CAACC,iBAAiB,GAAGA,iBAAiB;IAE1C,IAAI,CAACG,kBAAkB,GAAGnB,MAAM,CAAC;MAC/BoB,MAAM,EAAE,CAAC,IAAI,CAACT,aAAa,EAAE,IAAI,CAACM,QAAQ,CAAC;MAC3CI,SAAS,EAAEA,CAACC,QAA+B,EAAE,CAACC,mBAAmB,EAAEC,OAAO,CAAC,MAAM;QAC/EF,QAAQ;QACRG,cAAc,EAAED,OAAO,EAAEE,yBAAyB,IAAI,EAAE;QACxDH;MACF,CAAC,CAAC;MACFI,MAAM,EAAE,IAAI,CAACC;IACf,CAAC,CAAC;IAEF,IAAI,CAACC,sBAAsB,GAAG7B,MAAM,CAAC;MACn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AAKA,CAAA,EAAG;IACb,IAAI,CAAC5E,eAAe,CAAC,KAAK,CAAC;EAC7B;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MessageVariant"],"sourceRoot":"../../../../../src","sources":["features/chatbot/types/model.types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["MessageVariant"],"sourceRoot":"../../../../../src","sources":["features/chatbot/types/model.types.ts"],"mappings":";;AAqEA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { Animated,
|
|
4
|
+
import { Animated, StyleSheet, TouchableWithoutFeedback, View } from 'react-native';
|
|
5
5
|
import { ButtonVariant, CrossIcon, COLORS, BORDER_RADIUS, SPACING, SHADOWS, Button } from '@magmamath/react-native-ui';
|
|
6
6
|
import { ModalModel } from "./model.js";
|
|
7
7
|
import { ModalBackground } from "./ModalBackground.js";
|
|
@@ -26,8 +26,6 @@ export const Modal = ({
|
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
if (isVisible) {
|
|
28
28
|
modalModel.animation.show();
|
|
29
|
-
// It's important to blur drawboard text input when modal appears
|
|
30
|
-
Keyboard.dismiss();
|
|
31
29
|
}
|
|
32
30
|
}, [isVisible]);
|
|
33
31
|
if (!isVisible) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","Animated","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Animated","StyleSheet","TouchableWithoutFeedback","View","ButtonVariant","CrossIcon","COLORS","BORDER_RADIUS","SPACING","SHADOWS","Button","ModalModel","ModalBackground","jsx","_jsx","jsxs","_jsxs","stopPropagation","onTouchStart","event","onMouseDown","Modal","isVisible","isDismissable","onClose","style","content","withBackground","modalModel","animation","show","onPress","children","styles","overlay","animatedStyle","container","backgroundWrapper","closeButton","variant","TERTIARY","icon","size","color","NEUTRAL_7","create","absoluteFillObject","justifyContent","alignItems","backgroundColor","zIndex","position","NEUTRAL_1","minWidth","maxWidth","borderRadius","paddingHorizontal","paddingVertical","gap","top","right"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/Modal/Modal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAeC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SACEC,QAAQ,EAGRC,UAAU,EAEVC,wBAAwB,EACxBC,IAAI,QAEC,cAAc;AAErB,SACEC,aAAa,EACbC,SAAS,EACTC,MAAM,EACNC,aAAa,EACbC,OAAO,EACPC,OAAO,EACPC,MAAM,QACD,4BAA4B;AAEnC,SAASC,UAAU,QAAQ,YAAS;AACpC,SAASC,eAAe,QAAQ,sBAAmB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEnD,MAAMC,eAAe,GAAG;EACtBC,YAAY,EAAGC,KAA4B,IAAK;IAC9CA,KAAK,CAACF,eAAe,CAAC,CAAC;EACzB,CAAC;EACDG,WAAW,EAAGD,KAAiB,IAAK;IAClCA,KAAK,CAACF,eAAe,CAAC,CAAC;EACzB;AACF,CAAC;AAmBD,OAAO,MAAMI,KAAK,GAAGA,CAAC;EACpBC,SAAS;EACTC,aAAa,GAAG,IAAI;EACpBC,OAAO;EACPC,KAAK;EACLC,OAAO;EACPC;AACU,CAAC,KAAK;EAChB,MAAM,CAACC,UAAU,CAAC,GAAG7B,QAAQ,CAAC,MAAM,IAAIY,UAAU,CAAC,CAAC,CAAC;EAErDb,SAAS,CAAC,MAAM;IACd,IAAIwB,SAAS,EAAE;MACbM,UAAU,CAACC,SAAS,CAACC,IAAI,CAAC,CAAC;IAC7B;EACF,CAAC,EAAE,CAACR,SAAS,CAAC,CAAC;EAEf,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAC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MAAM,EAAE;EACV,CAAC;EACDd,SAAS,EAAE;IACTe,QAAQ,EAAE,UAAU;IACpBJ,cAAc,EAAE,eAAe;IAC/BE,eAAe,EAAE3C,MAAM,CAAC8C,SAAS;IACjCC,QAAQ,EAAE,GAAG;IACbC,QAAQ,EAAE,GAAG;IACbC,YAAY,EAAEhD,aAAa,CAAC,KAAK,CAAC;IAClCiD,iBAAiB,EAAEhD,OAAO,CAAC,MAAM,CAAC;IAClCiD,eAAe,EAAEjD,OAAO,CAAC,KAAK,CAAC;IAC/BkD,GAAG,EAAElD,OAAO,CAAC,KAAK,CAAC;IACnB,GAAGC,OAAO,CAAC,GAAG;EAChB,CAAC;EACD6B,WAAW,EAAE;IACXa,QAAQ,EAAE,UAAU;IACpBQ,GAAG,EAAEnD,OAAO,CAAC,KAAK,CAAC;IACnBoD,KAAK,EAAEpD,OAAO,CAAC,KAAK;EACtB,CAAC;EACD6B,iBAAiB,EAAE;IACjB,GAAGpC,UAAU,CAAC6C,kBAAkB;IAChCI,MAAM,EAAE,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -26,12 +26,13 @@ export class TeacherCommentsModel {
|
|
|
26
26
|
})
|
|
27
27
|
})).on(this.add, (state, {
|
|
28
28
|
assignmentId,
|
|
29
|
+
problemId,
|
|
29
30
|
comment,
|
|
30
31
|
isRead
|
|
31
32
|
}) => updateCommentsState({
|
|
32
33
|
state,
|
|
33
34
|
assignmentId,
|
|
34
|
-
problemId
|
|
35
|
+
problemId,
|
|
35
36
|
fn: data => ({
|
|
36
37
|
comments: [...data.comments, comment],
|
|
37
38
|
unreadMessagesCount: isRead ? data.unreadMessagesCount : data.unreadMessagesCount + 1
|
|
@@ -78,10 +79,7 @@ export class TeacherCommentsModel {
|
|
|
78
79
|
},
|
|
79
80
|
filter: ({
|
|
80
81
|
isOpen
|
|
81
|
-
},
|
|
82
|
-
problemId,
|
|
83
|
-
comment
|
|
84
|
-
}) => isOpen && comment.problemId === problemId,
|
|
82
|
+
}) => isOpen,
|
|
85
83
|
fn: (_, {
|
|
86
84
|
comment
|
|
87
85
|
}) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createEvent","restore","sample","updateCommentsState","getText","EMPTY_COMMENT","TeacherCommentsModel","setNoCommentsMessage","setAllCommentsRead","add","delete","setData","$data","on","state","assignmentId","problemId","fn","data","comments","map","comment","isRead","unreadMessagesCount","commentId","commentToDelete","find","_id","filteredComments","filter","length","undefined","noCommentsMessage","exerciseId","constructor","api","$isOpen","clock","source","isOpen","_","ids","target","updateCommentStatusSeenFx","deletedMessage","hasNoMessages","get","content"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/comments.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAe,UAAU;AAG9D,SAASC,mBAAmB,QAAQ,eAAY;AAChD,SAASC,OAAO,QAAQ,wCAAqC;AAC7D,SAASC,aAAa,QAAQ,8BAA8B;AAO5D,OAAO,MAAMC,oBAAoB,CAAC;EACfC,oBAAoB,GAAGP,WAAW,CAAiB,CAAC;EACrDQ,kBAAkB,GAAGR,WAAW,CAAU,CAAC;EAC3CS,GAAG,GAAGT,WAAW,CAAkB,CAAC;EACpCU,MAAM,GAAGV,WAAW,CAAqB,CAAC;EAE1CW,OAAO,GAAGX,WAAW,CAAc,CAAC;EACpCY,KAAK,GAAGX,OAAO,CAAqB,IAAI,CAACU,OAAO,EAAE,IAAI,CAAC,CACpEE,EAAE,CAAC,IAAI,CAACL,kBAAkB,EAAE,CAACM,KAAK,EAAE;IAAEC,YAAY;IAAEC;EAAU,CAAC,KAC9Db,mBAAmB,CAAC;IAClBW,KAAK;IACLC,YAAY;IACZC,SAAS;IACTC,EAAE,
|
|
1
|
+
{"version":3,"names":["createEvent","restore","sample","updateCommentsState","getText","EMPTY_COMMENT","TeacherCommentsModel","setNoCommentsMessage","setAllCommentsRead","add","delete","setData","$data","on","state","assignmentId","problemId","fn","data","comments","map","comment","isRead","unreadMessagesCount","commentId","commentToDelete","find","_id","filteredComments","filter","length","undefined","noCommentsMessage","exerciseId","constructor","api","$isOpen","clock","source","isOpen","_","ids","target","updateCommentStatusSeenFx","deletedMessage","hasNoMessages","get","content"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/comments.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAe,UAAU;AAG9D,SAASC,mBAAmB,QAAQ,eAAY;AAChD,SAASC,OAAO,QAAQ,wCAAqC;AAC7D,SAASC,aAAa,QAAQ,8BAA8B;AAO5D,OAAO,MAAMC,oBAAoB,CAAC;EACfC,oBAAoB,GAAGP,WAAW,CAAiB,CAAC;EACrDQ,kBAAkB,GAAGR,WAAW,CAAU,CAAC;EAC3CS,GAAG,GAAGT,WAAW,CAAkB,CAAC;EACpCU,MAAM,GAAGV,WAAW,CAAqB,CAAC;EAE1CW,OAAO,GAAGX,WAAW,CAAc,CAAC;EACpCY,KAAK,GAAGX,OAAO,CAAqB,IAAI,CAACU,OAAO,EAAE,IAAI,CAAC,CACpEE,EAAE,CAAC,IAAI,CAACL,kBAAkB,EAAE,CAACM,KAAK,EAAE;IAAEC,YAAY;IAAEC;EAAU,CAAC,KAC9Db,mBAAmB,CAAC;IAClBW,KAAK;IACLC,YAAY;IACZC,SAAS;IACTC,EAAE,EAAEC,IAAI,KAAK;MACXC,QAAQ,EAAED,IAAI,CAACC,QAAQ,CAACC,GAAG,CAACC,OAAO,KAAK;QAAE,GAAGA,OAAO;QAAEC,MAAM,EAAE;MAAK,CAAC,CAAC,CAAC;MACtEC,mBAAmB,EAAE;IACvB,CAAC;EACH,CAAC,CACH,CAAC,CACAV,EAAE,CAAC,IAAI,CAACJ,GAAG,EAAE,CAACK,KAAK,EAAE;IAAEC,YAAY;IAAEC,SAAS;IAAEK,OAAO;IAAEC;EAAO,CAAC,KAChEnB,mBAAmB,CAAC;IAClBW,KAAK;IACLC,YAAY;IACZC,SAAS;IACTC,EAAE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
|
49
49
|
assignmentId,
|
|
50
50
|
problemId
|
|
51
|
-
}) => ({
|
|
51
|
+
}, comment) => ({
|
|
52
52
|
assignmentId,
|
|
53
53
|
problemId,
|
|
54
54
|
commentId: EMPTY_COMMENT_ID
|
|
@@ -97,8 +97,13 @@ export class TeacherFeedbackModel {
|
|
|
97
97
|
});
|
|
98
98
|
sample({
|
|
99
99
|
clock: this.sockets.commentDeleted,
|
|
100
|
-
|
|
101
|
-
assignmentId:
|
|
100
|
+
source: {
|
|
101
|
+
assignmentId: credits.$assignmentId
|
|
102
|
+
},
|
|
103
|
+
fn: ({
|
|
104
|
+
assignmentId
|
|
105
|
+
}, comment) => ({
|
|
106
|
+
assignmentId,
|
|
102
107
|
problemId: comment.problemId,
|
|
103
108
|
commentId: comment._id
|
|
104
109
|
}),
|
|
@@ -111,9 +116,6 @@ export class TeacherFeedbackModel {
|
|
|
111
116
|
problemId: credits.$problemId,
|
|
112
117
|
isOpen: this.$isOpen
|
|
113
118
|
},
|
|
114
|
-
filter: ({
|
|
115
|
-
assignmentId
|
|
116
|
-
}, comment) => assignmentId === comment.exerciseId,
|
|
117
119
|
fn: ({
|
|
118
120
|
assignmentId,
|
|
119
121
|
problemId,
|
|
@@ -121,7 +123,7 @@ export class TeacherFeedbackModel {
|
|
|
121
123
|
}, comment) => ({
|
|
122
124
|
comment,
|
|
123
125
|
assignmentId,
|
|
124
|
-
problemId,
|
|
126
|
+
problemId: comment.problemId,
|
|
125
127
|
isRead: isOpen && comment.problemId === problemId
|
|
126
128
|
}),
|
|
127
129
|
target: this.comments.add
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createEvent","restore","sample","TeacherFeedbackAPI","TeacherFeedbackSockets","TeacherCommentsModel","findCommentsByCredits","generateCommentsMap","EMPTY_COMMENT_ID","TeacherFeedbackModel","setIsOpen","$isOpen","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","sockets","comments","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","commentId","delete","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","id","setData","commentDeleted","
|
|
1
|
+
{"version":3,"names":["createEvent","restore","sample","TeacherFeedbackAPI","TeacherFeedbackSockets","TeacherCommentsModel","findCommentsByCredits","generateCommentsMap","EMPTY_COMMENT_ID","TeacherFeedbackModel","setIsOpen","$isOpen","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","sockets","comments","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","comment","commentId","delete","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","id","setData","commentDeleted","commentAdded","add"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAe,UAAU;AAC9D,SAASC,kBAAkB,QAAQ,UAAO;AAC1C,SAASC,sBAAsB,QAAQ,cAAW;AAClD,SAASC,oBAAoB,QAAQ,eAAY;AACjD,SAASC,qBAAqB,EAAEC,mBAAmB,QAAQ,eAAY;AAEvE,SAASC,gBAAgB,QAAQ,iBAAc;AAc/C,OAAO,MAAMC,oBAAoB,CAAC;EAIhBC,SAAS,GAAGV,WAAW,CAAU,CAAC;EAClCW,OAAO,GAAGV,OAAO,CAAC,IAAI,CAACS,SAAS,EAAE,KAAK,CAAC;EAExCE,0BAA0B,GAAGZ,WAAW,CAAU,CAAC;EACnDa,wBAAwB,GAAGZ,OAAO,CAAC,IAAI,CAACW,0BAA0B,EAAE,IAAI,CAAC;EAEzFE,WAAWA,CAAC;IAAEC,GAAG;IAAEC,MAAM;IAAEC;EAAmC,CAAC,EAAE;IAC/D,IAAI,CAACF,GAAG,GAAG,IAAIZ,kBA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B,KAAK,EAAE,IAAI,CAACF,OAAO,CAACmC,cAAc;MAClC7B,MAAM,EAAE;QAAEG,YAAY,EAAEV,OAAO,CAACW;MAAc,CAAC;MAC/CN,EAAE,EAAEA,CAAC;QAAEK;MAAa,CAAC,EAAES,OAAO,MAAM;QAClCT,YAAY;QACZE,SAAS,EAAEO,OAAO,CAACP,SAAS;QAC5BQ,SAAS,EAAED,OAAO,CAACD;MACrB,CAAC,CAAC;MACFZ,MAAM,EAAE,IAAI,CAACJ,QAAQ,CAACmB;IACxB,CAAC,CAAC;IAEFpC,MAAM,CAAC;MACLkB,KAAK,EAAE,IAAI,CAACF,OAAO,CAACoC,YAAY;MAChC9B,MAAM,EAAE;QACNG,YAAY,EAAEV,OAAO,CAACW,aAAa;QACnCC,SAAS,EAAEZ,OAAO,CAACI,UAAU;QAC7BU,MAAM,EAAE,IAAI,CAACpB;MACf,CAAC;MACDW,EAAE,EAAEA,CAAC;QAAEK,YAAY;QAAEE,SAAS;QAAEE;MAAO,CAAC,EAAEK,OAAO,MAAM;QACrDA,OAAO;QACPT,YAAY;QACZE,SAAS,EAAEO,OAAO,CAACP,SAAS;QAC5BY,MAAM,EAAEV,MAAM,IAAIK,OAAO,CAACP,SAAS,KAAKA;MAC1C,CAAC,CAAC;MACFN,MAAM,EAAE,IAAI,CAACJ,QAAQ,CAACoC;IACxB,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -18,10 +18,6 @@ export const FormulaSheet = /*#__PURE__*/forwardRef(({
|
|
|
18
18
|
const isOpen = useUnit(model.modal.$isOpen);
|
|
19
19
|
const sheetFileBlob = useUnit(model.file.$blob);
|
|
20
20
|
const isRequestPending = useUnit(model.api.getPDFFileBlobFx.pending);
|
|
21
|
-
const onPressHandler = () => {
|
|
22
|
-
model.modal.toggle();
|
|
23
|
-
onPress?.();
|
|
24
|
-
};
|
|
25
21
|
useEffect(() => {
|
|
26
22
|
model.file.setId(fileId ?? null);
|
|
27
23
|
}, [fileId]);
|
|
@@ -32,7 +28,10 @@ export const FormulaSheet = /*#__PURE__*/forwardRef(({
|
|
|
32
28
|
variant: ButtonVariant.SECONDARY,
|
|
33
29
|
colorScheme: buttonColor,
|
|
34
30
|
isActive: isOpen,
|
|
35
|
-
onPress: () =>
|
|
31
|
+
onPress: () => {
|
|
32
|
+
model.modal.toggle();
|
|
33
|
+
onPress?.();
|
|
34
|
+
},
|
|
36
35
|
icon: /*#__PURE__*/_jsx(TheoryIcon, {
|
|
37
36
|
color: isOpen ? COLORS.NEUTRAL_1 : undefined,
|
|
38
37
|
size: 20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useEffect","useUnit","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","TheoryIcon","LoaderColor","FormulaSheetModal","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FormulaSheet","model","fileId","renderer","buttonSize","MEDIUM","buttonColor","BLUE","loaderColor","onPress","style","ref","isOpen","modal","$isOpen","sheetFileBlob","file","$blob","isRequestPending","api","getPDFFileBlobFx","pending","
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useEffect","useUnit","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","TheoryIcon","LoaderColor","FormulaSheetModal","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FormulaSheet","model","fileId","renderer","buttonSize","MEDIUM","buttonColor","BLUE","loaderColor","onPress","style","ref","isOpen","modal","$isOpen","sheetFileBlob","file","$blob","isRequestPending","api","getPDFFileBlobFx","pending","setId","children","size","variant","SECONDARY","colorScheme","isActive","toggle","icon","color","NEUTRAL_1","undefined","isLoading","onClose","setIsOpen"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheet.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAaC,SAAS,QAAQ,OAAO;AAC/D,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa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MAAM,GAAGtB,MAAM,CAAC0C,SAAS,GAAGC,SAAU;QAACT,IAAI,EAAE;MAAG,CAAE,CAAE;MAC7Ed,KAAK,EAAEA;IAAM,CACd,CAAC,EAEDE,MAAM,iBACLjB,IAAA,CAACF,iBAAiB;MAChByC,SAAS,EAAEhB,gBAAiB;MAC5BV,WAAW,EAAEA,WAAY;MACzB2B,OAAO,EAAEA,CAAA,KAAMlC,KAAK,CAACY,KAAK,CAACuB,SAAS,CAAC,KAAK,CAAE;MAAAb,QAAA,EAE3CpB,QAAQ,CAACY,aAAa,IAAI,EAAE;IAAC,CACb,CACpB;EAAA,CACD,CAAC;AAEP,CACF,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, StyleSheet } from 'react-native';
|
|
5
5
|
import { UnreadMessagesBadge } from '@magmamath/students-features';
|
|
6
|
-
import { Button, ButtonSize, ButtonStates, ButtonVariant,
|
|
7
|
-
import { BADGE_COORDINATES,
|
|
6
|
+
import { Button, ButtonSize, ButtonStates, ButtonVariant, Typography } from '@magmamath/react-native-ui';
|
|
7
|
+
import { BADGE_COORDINATES, BUTTON_SIZE, COLOR_SCHEME_MAP, ICON_SIZE } from "../constants.js";
|
|
8
|
+
import { LockIcon } from "../../../shared/icons/LockIcon.js";
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
export const ProblemSelectorButton = ({
|
|
10
11
|
text,
|
|
@@ -26,13 +27,14 @@ export const ProblemSelectorButton = ({
|
|
|
26
27
|
},
|
|
27
28
|
disabled: locked,
|
|
28
29
|
icon: locked ? /*#__PURE__*/_jsx(LockIcon, {
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
height: ICON_SIZE.height,
|
|
31
|
+
width: ICON_SIZE.width,
|
|
32
|
+
color: customColorScheme[ButtonStates.DISABLED]?.color
|
|
31
33
|
}) : /*#__PURE__*/_jsx(Typography, {
|
|
32
|
-
variant: "
|
|
33
|
-
style:
|
|
34
|
+
variant: "h2",
|
|
35
|
+
style: {
|
|
34
36
|
color: customColorScheme[ButtonStates.DEFAULT]?.color
|
|
35
|
-
}
|
|
37
|
+
},
|
|
36
38
|
children: text ?? ''
|
|
37
39
|
})
|
|
38
40
|
}), typeof badgeValue === 'number' && /*#__PURE__*/_jsx(UnreadMessagesBadge, {
|
|
@@ -55,12 +57,7 @@ const styles = StyleSheet.create({
|
|
|
55
57
|
button: {
|
|
56
58
|
width: BUTTON_SIZE,
|
|
57
59
|
height: BUTTON_SIZE,
|
|
58
|
-
borderWidth:
|
|
59
|
-
},
|
|
60
|
-
buttonText: {
|
|
61
|
-
textAlign: 'center',
|
|
62
|
-
fontWeight: 400,
|
|
63
|
-
fontFamily: FONT_FAMILY.buenosAires
|
|
60
|
+
borderWidth: 2.75
|
|
64
61
|
}
|
|
65
62
|
});
|
|
66
63
|
//# sourceMappingURL=ProblemSelectorButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","UnreadMessagesBadge","Button","ButtonSize","ButtonStates","ButtonVariant","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","UnreadMessagesBadge","Button","ButtonSize","ButtonStates","ButtonVariant","Typography","BADGE_COORDINATES","BUTTON_SIZE","COLOR_SCHEME_MAP","ICON_SIZE","LockIcon","jsx","_jsx","jsxs","_jsxs","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","style","styles","wrapper","children","variant","PRIMARY","size","MEDIUM","onPress","button","disabled","icon","height","width","color","DISABLED","DEFAULT","badgeContent","undefined","withBorder","badge","top","right","create","position","borderWidth"],"sourceRoot":"../../../../../src","sources":["features/problemSelector/components/ProblemSelectorButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,mBAAmB,QAAQ,8BAA8B;AAClE,SACEC,MAAM,EACN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AA,CAACZ,mBAAmB;MAClBuC,YAAY,EAAEpB,UAAU,KAAK,CAAC,GAAGA,UAAU,GAAGqB,SAAU;MACxDC,UAAU;MACVnB,KAAK,EAAE,CACLC,MAAM,CAACmB,KAAK,EACZ;QACEC,GAAG,EAAExB,UAAU,GAAG,CAAC,GAAGb,iBAAiB,CAACqC,GAAG;QAC3CC,KAAK,EAAEzB,UAAU,GAAG,CAAC,GAAGb,iBAAiB,CAACsC;MAC5C,CAAC;IACD,CACH,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAMrB,MAAM,GAAGxB,UAAU,CAAC8C,MAAM,CAAC;EAC/BrB,OAAO,EAAE;IAAEsB,QAAQ,EAAE;EAAW,CAAC;EACjCJ,KAAK,EAAE;IAAEI,QAAQ,EAAE;EAAW,CAAC;EAC/Bf,MAAM,EAAE;IACNI,KAAK,EAAE5B,WAAW;IAClB2B,MAAM,EAAE3B,WAAW;IACnBwC,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { ButtonStates, COLORS } from '@magmamath/react-native-ui';
|
|
4
|
-
export const BUTTON_SIZE = 49;
|
|
5
|
-
export const BUTTON_BORDER_WIDTH = 3;
|
|
4
|
+
export const BUTTON_SIZE = 49.5;
|
|
6
5
|
export const BADGE_COORDINATES = {
|
|
7
6
|
top: 4,
|
|
8
7
|
right: 4
|
|
9
8
|
};
|
|
9
|
+
export const ICON_SIZE = {
|
|
10
|
+
width: 23,
|
|
11
|
+
height: 25
|
|
12
|
+
};
|
|
10
13
|
export const PROBLEM_SELECTOR_CONTENT_WIDTH = 265;
|
|
11
14
|
export const PROBLEM_SELECTOR_BUTTON_STATE = {
|
|
12
15
|
SELECTED: 'selected',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ButtonStates","COLORS","BUTTON_SIZE","
|
|
1
|
+
{"version":3,"names":["ButtonStates","COLORS","BUTTON_SIZE","BADGE_COORDINATES","top","right","ICON_SIZE","width","height","PROBLEM_SELECTOR_CONTENT_WIDTH","PROBLEM_SELECTOR_BUTTON_STATE","SELECTED","SELECTED_EXAM","SOLVED","SOLVED_FIRST_ATTEMPT","NOT_SOLVED","MISTAKE","EXAM","colorPreset","bg","border","color","raise","backgroundColor","borderColor","raiseColor","COLOR_SCHEME_MAP","DEFAULT","BLUE_1","PRIMARY_BLUE","HOVER","BLUE_4","ACTIVE","PRESSED","DISABLED","BLUE_3","PURPLE_1","PRIMARY_PURPLE","PURPLE_4","PURPLE_3","PRIMARY_RED","NEUTRAL_1","RED_4","RED_3","PRIMARY_YELLOW","YELLOW_4","YELLOW_3","PRIMARY_GREEN","GREEN_4","GREEN_3","NEUTRAL_4","NEUTRAL_10","NEUTRAL_3","NEUTRAL_6"],"sourceRoot":"../../../../src","sources":["features/problemSelector/constants.ts"],"mappings":";;AAAA,SAA4BA,YAAY,EAAEC,MAAM,QAAQ,4BAA4B;AAGpF,OAAO,MAAMC,WAAW,GAAG,IAAI;AAC/B,OAAO,MAAMC,iBAAiB,GAAG;EAAEC,GAAG,EAAE,CAAC;EAAEC,KAAK,EAAE;AAAE,CAAC;AACrD,OAAO,MAAMC,SAAS,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;AAClD,OAAO,MAAMC,8BAA8B,GAAG,GAAG;AAEjD,OAAO,MAAMC,6BAA6B,GAAG;EAC3CC,QAAQ,EAAE,UAAU;EACpBC,aAAa,EAAE,eAAe;EAC9BC,MAAM,EAAE,QAAQ;EAChBC,oBAAoB,EAAE,sBAAsB;EAC5CC,UAAU,EAAE,YAAY;EACxBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE;AACR,CAAU;AAEV,MAAMC,WAAW,GAAGA,CAACC,EAAU,EAAEC,MAAc,EAAEC,KAAa,EAAEC,KAAa,GAAGF,MAAM,MAAM;EAC1FG,eAAe,EAAEJ,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CAACwC,SACT,CAAC;IACD,CAACzC,YAAY,CAACiC,OAAO,GAAGf,WAAW,CACjCjB,MAAM,CAACoC,cAAc,EACrBpC,MAAM,CAACoC,cAAc,EACrBpC,MAAM,CAACwC,SACT,CAAC;IACD,CAACzC,YAAY,CAACkC,QAAQ,GAAGhB,WAAW,CAACjB,MAAM,CAACsC,QAAQ,EAAEtC,MAAM,CAACsC,QAAQ,EAAEtC,MAAM,CAACwC,SAAS;EACzF;AACF,CAAC","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -8,7 +8,4 @@ export * from "./features/celebrations/index.js";
|
|
|
8
8
|
export * from "./features/endOfAssignment/index.js";
|
|
9
9
|
export * from "./features/formulaSheet/index.js";
|
|
10
10
|
export * from "./features/problemSelector/index.js";
|
|
11
|
-
export * from "./features/gifCelebrations/index.js";
|
|
12
|
-
export * from "./features/exampleSolution/index.js";
|
|
13
|
-
export * from "./shared/icons/index.js";
|
|
14
11
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B
|
|
1
|
+
{"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createEffect","controlledRequest","request","data","controller","AbortController","abortAfter","timeout","setTimeout","abort","response","signal","clearTimeout","error","code","reason","Error","createControllerEffect","fn","effect","fail","watch"],"sourceRoot":"../../../../src","sources":["lib/effector/createControllerEffect.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAqB,UAAU;AAkBpD,OAAO,SAASC,iBAAiBA,
|
|
1
|
+
{"version":3,"names":["createEffect","controlledRequest","request","data","controller","AbortController","abortAfter","timeout","setTimeout","abort","response","signal","clearTimeout","error","code","reason","Error","createControllerEffect","fn","effect","fail","watch"],"sourceRoot":"../../../../src","sources":["lib/effector/createControllerEffect.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAqB,UAAU;AAkBpD,OAAO,SAASC,iBAAiBA,CAC7BC,OAAiE,EACnE;EACE,OAAO,OAAO;IACVC,IAAI;IACJC,UAAU,GAAG,IAAIC,eAAe,CAAC,CAAC;IAClCC,UAAU,GAAG;EACU,CAAC,KAAK;IAC7B,IAAIC,OAA6C,GAAG,IAAI;IAExD,IAAID,UAAU,EAAE;MACZC,OAAO,GAAGC,UAAU,CAAC,MAAM;QACvBJ,UAAU,CAACK,KAAK,CAAC,SAAS,CAAC;MAC/B,CAAC,EAAEH,UAAU,CAAC;IAClB;IAEA,IAAI;MACA,MAAMI,QAAQ,GAAG,MAAMR,OAAO,CAACC,IAAI,EAAE;QAAEQ,MAAM,EAAEP,UAAU,EAAEO;MAAO,CAAC,CAAC;MACpE,IAAIJ,OAAO,KAAK,IAAI,EAAEK,YAAY,CAACL,OAAO,CAAC;MAC3C,OAAOG,QAAQ;IACnB,CAAC,CAAC,OAAOG,KAAc,EAAE;MACrB,IAAKA,KAAK,CAAuBC,IAAI,KAAK,cAAc,EAAE;QACtD,IAAIV,UAAU,CAACO,MAAM,CAACI,MAAM,KAAK,SAAS,EAAE;UACxC,MAAM,IAAIC,KAAK,CAAC,mBAAmB,CAAC;QACxC;QACA,MAAM,IAAIA,KAAK,CAAC,0BAA0B,CAAC;MAC/C;MAEA,MAAMH,KAAK;IACf;EACJ,CAAC;AACL;AAEA,OAAO,MAAMI,sBAAsB,GAC/BC,EAA4D,IAC3D;EACD,MAAMhB,OAAO,GAAGD,iBAAiB,CAAOiB,EAAE,CAAC;EAC3C,MAAMC,MAAM,GAAGnB,YAAY,CAAEG,IAAO,IAChCD,OAAO,CAAC;IAAEC,IAAI;IAAEC,UAAU,EAAEe,MAAM,CAACf;EAAW,CAAC,CACnD,CAA2B;EAC3Be,MAAM,CAACf,UAAU,GAAG,IAAIC,eAAe,CAAC,CAAC;EAEzCc,MAAM,CAACC,IAAI,CAACC,KAAK,CAAC,MAAM;IACpBF,MAAM,CAACf,UAAU,GAAG,IAAIC,eAAe,CAAC,CAAC;EAC7C,CAAC,CAAC;EAEF,OAAOc,MAAM;AACjB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { COLORS } from '@magmamath/react-native-ui';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const LockIcon = ({
|
|
8
|
+
width = 23,
|
|
9
|
+
height = 25,
|
|
10
|
+
color = COLORS.NEUTRAL_6
|
|
11
|
+
}) => /*#__PURE__*/_jsx(Svg, {
|
|
12
|
+
width: width,
|
|
13
|
+
height: height,
|
|
14
|
+
viewBox: "0.5 1 23 25",
|
|
15
|
+
fill: "none",
|
|
16
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
clipRule: "evenodd",
|
|
19
|
+
d: "M4.183 8.91H3.44A2.578 2.578 0 00.862 11.49v11.068a2.578 2.578 0 002.578 2.578h17.12a2.578 2.578 0 002.578-2.578V11.49a2.578 2.578 0 00-2.578-2.578h-.743c-.119-1.421-.391-3.307-1.374-4.897C17.304 2.172 15.303.864 12 .864c-3.304 0-5.304 1.308-6.443 3.15-.983 1.59-1.255 3.476-1.374 4.897zm2.008 0h11.618c-.12-1.303-.369-2.714-1.067-3.844C16.002 3.87 14.68 2.864 12 2.864c-2.68 0-4.003 1.006-4.742 2.202-.699 1.13-.947 2.54-1.067 3.845zm-2.75 2H20.56c.319 0 .578.26.578.579v11.068c0 .32-.26.578-.578.578H3.44a.578.578 0 01-.578-.578V11.49c0-.32.26-.578.578-.578z",
|
|
20
|
+
fill: color
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=LockIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","COLORS","jsx","_jsx","LockIcon","width","height","color","NEUTRAL_6","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/LockIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAc,kBAAkB;AAClD,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAInD,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAGN,MAAM,CAACO;AAAqB,CAAC,kBACvFL,IAAA,CAACJ,GAAG;EAACM,KAAK,EAAEA,KAAM;EAACC,MAAM,EAAEA,MAAO;EAACG,OAAO,EAAC,aAAa;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAClER,IAAA,CAACH,IAAI;IACHY,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,kjBAAkjB;IACpjBJ,IAAI,EAAEH;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
|
|
@@ -4,13 +4,9 @@ import { Locale } from "./types.js";
|
|
|
4
4
|
import EN from './localization/en.json';
|
|
5
5
|
import GB from './localization/gb.json';
|
|
6
6
|
import SW from './localization/sw.json';
|
|
7
|
-
import CA from './localization/ca.json';
|
|
8
|
-
import SCT from './localization/sct.json';
|
|
9
7
|
export const LOCALIZATION_CONFIGS = {
|
|
10
8
|
[Locale.EN]: EN,
|
|
11
9
|
[Locale.GB]: GB,
|
|
12
|
-
[Locale.SW]: SW
|
|
13
|
-
[Locale.CA]: CA,
|
|
14
|
-
[Locale.SCT]: SCT
|
|
10
|
+
[Locale.SW]: SW
|
|
15
11
|
};
|
|
16
12
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Locale","EN","GB","SW","
|
|
1
|
+
{"version":3,"names":["Locale","EN","GB","SW","LOCALIZATION_CONFIGS"],"sourceRoot":"../../../../src","sources":["shared/translation/constants.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,YAAS;AAChC,OAAOC,EAAE,MAAM,wBAAwB;AACvC,OAAOC,EAAE,MAAM,wBAAwB;AACvC,OAAOC,EAAE,MAAM,wBAAwB;AAEvC,OAAO,MAAMC,oBAAoB,GAAG;EAClC,CAACJ,MAAM,CAACC,EAAE,GAAGA,EAAE;EACf,CAACD,MAAM,CAACE,EAAE,GAAGA,EAAE;EACf,CAACF,MAAM,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
|
}
|