@magmamath/students-features 0.4.4 → 0.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +2 -1
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.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 +41 -0
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -0
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +22 -19
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +32 -32
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +11 -13
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +8 -28
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js +5 -7
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/context/ChatBotModelContext.js +17 -0
- package/dist/commonjs/features/chatbot/context/ChatBotModelContext.js.map +1 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +51 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +116 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -0
- 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 +145 -121
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/{ChatBotMessageHandler.js → ChatBotThreadManager.js} +44 -22
- package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +22 -0
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/{api.js → ChatbotApi.js} +16 -1
- package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +110 -0
- package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +12 -12
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ThreadItem.js +16 -8
- package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/constants.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/messagesHelper.js +7 -7
- package/dist/commonjs/features/chatbot/model/messagesHelper.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/t2s.js +18 -13
- package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/translation.helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/translation.js +54 -45
- package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/api.types.js +4 -0
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/units.types.js +2 -0
- package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -0
- package/dist/commonjs/index.js +0 -24
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/effector/createEntityFieldStore.js +4 -0
- package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -1
- package/dist/commonjs/lib/effector/withEvent.js +13 -0
- package/dist/commonjs/lib/effector/withEvent.js.map +1 -0
- package/dist/commonjs/lib/helpers/helpers.js +1 -3
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/lib/helpers/randomElements.js +24 -0
- package/dist/commonjs/lib/helpers/randomElements.js.map +1 -0
- package/dist/commonjs/lib/localization/en.json +7 -1
- package/dist/commonjs/lib/localization/gb.json +7 -1
- package/dist/commonjs/lib/localization/sw.json +7 -1
- package/dist/commonjs/lib/types/keys.js +2 -0
- package/dist/commonjs/lib/types/keys.js.map +1 -0
- package/dist/commonjs/shared/icons/HighlighterIcon.js +36 -0
- package/dist/commonjs/shared/icons/HighlighterIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/{Valentine.js → StopIcon.js} +12 -9
- package/dist/commonjs/shared/icons/StopIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/icon.types.js +4 -0
- package/dist/commonjs/shared/translation/helpers.js +22 -6
- package/dist/commonjs/shared/translation/helpers.js.map +1 -1
- package/dist/commonjs/shared/translation/hooks.js +3 -5
- package/dist/commonjs/shared/translation/hooks.js.map +1 -1
- package/dist/commonjs/shared/translation/model.js +1 -1
- package/dist/commonjs/shared/translation/model.js.map +1 -1
- package/dist/commonjs/shared/translation/types.js +1 -1
- package/dist/commonjs/shared/translation/types.js.map +1 -1
- package/dist/commonjs/shared/translation/validation.types.js +6 -0
- package/dist/commonjs/shared/translation/validation.types.js.map +1 -0
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +2 -1
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.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 +35 -0
- package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +23 -20
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +32 -32
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +11 -13
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +8 -28
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/module/features/chatbot/components/Chatbot.js +6 -8
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/context/ChatBotModelContext.js +12 -0
- package/dist/module/features/chatbot/context/ChatBotModelContext.js.map +1 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +45 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +111 -0
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -0
- 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 +147 -123
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/{ChatBotMessageHandler.js → ChatBotThreadManager.js} +42 -20
- package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -0
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js +17 -0
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -0
- package/dist/module/features/chatbot/model/{api.js → ChatbotApi.js} +16 -1
- package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -0
- package/dist/module/features/chatbot/model/ChatsCacheModel.js +104 -0
- package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +1 -0
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js +12 -12
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/module/features/chatbot/model/ThreadItem.js +16 -8
- package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
- package/dist/module/features/chatbot/model/constants.js.map +1 -1
- package/dist/module/features/chatbot/model/messagesHelper.js +7 -7
- package/dist/module/features/chatbot/model/messagesHelper.js.map +1 -1
- package/dist/module/features/chatbot/model/t2s.js +19 -14
- package/dist/module/features/chatbot/model/t2s.js.map +1 -1
- package/dist/module/features/chatbot/model/translation.helpers.js.map +1 -1
- package/dist/module/features/chatbot/model/translation.js +54 -45
- package/dist/module/features/chatbot/model/translation.js.map +1 -1
- package/dist/module/features/chatbot/types/api.types.js +2 -0
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/chatbot/types/units.types.js +2 -0
- package/dist/module/features/chatbot/types/units.types.js.map +1 -0
- package/dist/module/index.js +0 -2
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/effector/createEntityFieldStore.js +4 -0
- package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -1
- package/dist/module/lib/effector/withEvent.js +9 -0
- package/dist/module/lib/effector/withEvent.js.map +1 -0
- package/dist/module/lib/helpers/helpers.js +0 -1
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/lib/helpers/randomElements.js +20 -0
- package/dist/module/lib/helpers/randomElements.js.map +1 -0
- package/dist/module/lib/localization/en.json +7 -1
- package/dist/module/lib/localization/gb.json +7 -1
- package/dist/module/lib/localization/sw.json +7 -1
- package/dist/module/lib/types/keys.js +2 -0
- package/dist/module/lib/types/keys.js.map +1 -0
- package/dist/module/shared/icons/HighlighterIcon.js +29 -0
- package/dist/module/shared/icons/HighlighterIcon.js.map +1 -0
- package/dist/module/shared/icons/StopIcon.js +26 -0
- package/dist/module/shared/icons/StopIcon.js.map +1 -0
- package/dist/module/shared/icons/icon.types.js +2 -0
- package/dist/module/shared/translation/helpers.js +19 -5
- package/dist/module/shared/translation/helpers.js.map +1 -1
- package/dist/module/shared/translation/hooks.js +4 -6
- package/dist/module/shared/translation/hooks.js.map +1 -1
- package/dist/module/shared/translation/model.js +1 -1
- package/dist/module/shared/translation/model.js.map +1 -1
- package/dist/module/shared/translation/types.js +2 -0
- package/dist/module/shared/translation/types.js.map +1 -1
- package/dist/module/shared/translation/validation.types.js +4 -0
- package/dist/module/shared/translation/validation.types.js.map +1 -0
- 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/ChatMessage/ChatMessage.d.ts +5 -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 +11 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +7 -3
- 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 +2 -10
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +2 -5
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/context/ChatBotModelContext.d.ts +4 -0
- package/dist/typescript/commonjs/features/chatbot/context/ChatBotModelContext.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +7 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +30 -0
- package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +4 -3
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +24 -18
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +33 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +6 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/{api.d.ts → ChatbotApi.d.ts} +4 -3
- package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +27 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +5 -3
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +13 -7
- package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts +7 -5
- package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +16 -6
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +7 -8
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +2 -11
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +25 -24
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts +2 -7
- package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +34 -0
- package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -0
- 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/createEntityFieldStore.d.ts +2 -0
- package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/effector/withEvent.d.ts +2 -0
- package/dist/typescript/commonjs/lib/effector/withEvent.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +0 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts +2 -0
- package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/types/keys.d.ts +8 -0
- package/dist/typescript/commonjs/lib/types/keys.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/icon.types.d.ts +2 -0
- package/dist/typescript/commonjs/shared/icons/icon.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +18 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts +3 -2
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts +2 -2
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/index.d.ts +0 -1
- package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +41 -3
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +3 -3
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +17 -0
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -0
- 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/ChatMessage/ChatMessage.d.ts +5 -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 +11 -0
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +7 -3
- 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 +2 -10
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +2 -5
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/context/ChatBotModelContext.d.ts +4 -0
- package/dist/typescript/module/features/chatbot/context/ChatBotModelContext.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +7 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +30 -0
- package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/index.d.ts +4 -3
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +24 -18
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +33 -0
- package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +6 -0
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/{api.d.ts → ChatbotApi.d.ts} +4 -3
- package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +27 -0
- package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +5 -3
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +13 -7
- package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts +7 -5
- package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts +16 -6
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts +7 -8
- package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +2 -11
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +25 -24
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts +2 -7
- package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts +34 -0
- package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -0
- 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/createEntityFieldStore.d.ts +2 -0
- package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -1
- package/dist/typescript/module/lib/effector/withEvent.d.ts +2 -0
- package/dist/typescript/module/lib/effector/withEvent.d.ts.map +1 -0
- package/dist/typescript/module/lib/helpers/helpers.d.ts +0 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/randomElements.d.ts +2 -0
- package/dist/typescript/module/lib/helpers/randomElements.d.ts.map +1 -0
- package/dist/typescript/module/lib/types/keys.d.ts +8 -0
- package/dist/typescript/module/lib/types/keys.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/StopIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/StopIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/icon.types.d.ts +2 -0
- package/dist/typescript/module/shared/icons/icon.types.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +18 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts +3 -2
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/hooks.d.ts +2 -2
- package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/index.d.ts +0 -1
- package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +41 -3
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +3 -3
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/validation.types.d.ts +17 -0
- package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -0
- package/package.json +3 -6
- package/src/features/chatbot/components/Alternatives/Alternatives.tsx +2 -4
- package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +5 -5
- package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +36 -0
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +27 -20
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +27 -26
- package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +9 -9
- package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +9 -30
- package/src/features/chatbot/components/Chatbot.tsx +5 -11
- package/src/features/chatbot/context/ChatBotModelContext.ts +14 -0
- package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +48 -0
- package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +130 -0
- package/src/features/chatbot/index.ts +3 -4
- package/src/features/chatbot/model/ChatBotModel.ts +137 -130
- package/src/features/chatbot/model/{ChatBotMessageHandler.ts → ChatBotThreadManager.ts} +53 -27
- package/src/features/chatbot/model/ChatBoxTextManager.ts +18 -0
- package/src/features/chatbot/model/{api.ts → ChatbotApi.ts} +19 -2
- package/src/features/chatbot/model/ChatsCacheModel.ts +95 -0
- package/src/features/chatbot/model/DefaultMessageCreator.ts +17 -16
- package/src/features/chatbot/model/ThreadItem.ts +15 -10
- package/src/features/chatbot/model/constants.ts +2 -0
- package/src/features/chatbot/model/messagesHelper.ts +12 -7
- package/src/features/chatbot/model/t2s.ts +28 -13
- package/src/features/chatbot/model/translation.helpers.ts +2 -1
- package/src/features/chatbot/model/translation.ts +52 -46
- package/src/features/chatbot/types/api.types.ts +2 -12
- package/src/features/chatbot/types/model.types.ts +37 -32
- package/src/features/chatbot/types/t2s.types.ts +10 -15
- package/src/features/chatbot/types/translation.types.ts +2 -1
- package/src/features/chatbot/types/units.types.ts +37 -0
- package/src/index.ts +0 -3
- package/src/lib/effector/createEntityFieldStore.ts +9 -1
- package/src/lib/effector/withEvent.ts +7 -0
- package/src/lib/helpers/helpers.ts +0 -2
- package/src/lib/helpers/randomElements.ts +22 -0
- package/src/lib/localization/en.json +7 -1
- package/src/lib/localization/gb.json +7 -1
- package/src/lib/localization/sw.json +7 -1
- package/src/lib/types/keys.ts +18 -0
- package/src/shared/icons/HighlighterIcon.tsx +21 -0
- package/src/shared/icons/StopIcon.tsx +17 -0
- package/src/shared/icons/icon.types.ts +9 -6
- package/src/shared/translation/helpers.ts +22 -9
- package/src/shared/translation/hooks.ts +12 -16
- package/src/shared/translation/index.ts +0 -1
- package/src/shared/translation/model.ts +8 -8
- package/src/shared/translation/types.ts +10 -7
- package/src/shared/translation/validation.types.ts +26 -0
- package/dist/commonjs/features/celebrations/components/Celebrations.js +0 -51
- package/dist/commonjs/features/celebrations/components/Celebrations.js.map +0 -1
- package/dist/commonjs/features/celebrations/components/Particle.js +0 -85
- package/dist/commonjs/features/celebrations/components/Particle.js.map +0 -1
- package/dist/commonjs/features/celebrations/components/ParticleBatch.js +0 -47
- package/dist/commonjs/features/celebrations/components/ParticleBatch.js.map +0 -1
- package/dist/commonjs/features/celebrations/components/Spark.js +0 -23
- package/dist/commonjs/features/celebrations/components/Spark.js.map +0 -1
- package/dist/commonjs/features/celebrations/config.js +0 -224
- package/dist/commonjs/features/celebrations/config.js.map +0 -1
- package/dist/commonjs/features/celebrations/helpers.js +0 -99
- package/dist/commonjs/features/celebrations/helpers.js.map +0 -1
- package/dist/commonjs/features/celebrations/index.js +0 -28
- package/dist/commonjs/features/celebrations/index.js.map +0 -1
- package/dist/commonjs/features/celebrations/types.js +0 -15
- package/dist/commonjs/features/celebrations/types.js.map +0 -1
- package/dist/commonjs/features/chatbot/model/ChatBotMessageHandler.js.map +0 -1
- package/dist/commonjs/features/chatbot/model/api.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -65
- package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +0 -255
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -133
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js +0 -56
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js +0 -68
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.js +0 -53
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +0 -47
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -76
- package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -62
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -109
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js +0 -83
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +0 -96
- package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js +0 -44
- package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +0 -233
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +0 -63
- package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/Modal/model.js +0 -34
- package/dist/commonjs/features/endOfAssignment/components/Modal/model.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +0 -108
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js +0 -107
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/constants.js +0 -55
- package/dist/commonjs/features/endOfAssignment/constants.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/helpers.js +0 -64
- package/dist/commonjs/features/endOfAssignment/helpers.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/hooks/useSparkAnimation.js +0 -51
- package/dist/commonjs/features/endOfAssignment/hooks/useSparkAnimation.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/index.js +0 -40
- package/dist/commonjs/features/endOfAssignment/index.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/model/model.js +0 -53
- package/dist/commonjs/features/endOfAssignment/model/model.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/types.js +0 -33
- package/dist/commonjs/features/endOfAssignment/types.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js +0 -43
- package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +0 -30
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -64
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js +0 -29
- package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +0 -1
- package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js +0 -32
- package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js.map +0 -1
- package/dist/commonjs/lib/constants.js +0 -11
- package/dist/commonjs/lib/constants.js.map +0 -1
- package/dist/commonjs/shared/hooks/useKeyDownListener.js +0 -27
- package/dist/commonjs/shared/hooks/useKeyDownListener.js.map +0 -1
- package/dist/commonjs/shared/hooks/useKeyboard.js +0 -23
- package/dist/commonjs/shared/hooks/useKeyboard.js.map +0 -1
- package/dist/commonjs/shared/icons/Halloween.js +0 -54
- package/dist/commonjs/shared/icons/Halloween.js.map +0 -1
- package/dist/commonjs/shared/icons/Pi.js +0 -30
- package/dist/commonjs/shared/icons/Pi.js.map +0 -1
- package/dist/commonjs/shared/icons/Star.js +0 -30
- package/dist/commonjs/shared/icons/Star.js.map +0 -1
- package/dist/commonjs/shared/icons/Valentine.js.map +0 -1
- package/dist/commonjs/shared/icons/Winter.js +0 -32
- package/dist/commonjs/shared/icons/Winter.js.map +0 -1
- package/dist/module/features/celebrations/components/Celebrations.js +0 -45
- package/dist/module/features/celebrations/components/Celebrations.js.map +0 -1
- package/dist/module/features/celebrations/components/Particle.js +0 -77
- package/dist/module/features/celebrations/components/Particle.js.map +0 -1
- package/dist/module/features/celebrations/components/ParticleBatch.js +0 -40
- package/dist/module/features/celebrations/components/ParticleBatch.js.map +0 -1
- package/dist/module/features/celebrations/components/Spark.js +0 -17
- package/dist/module/features/celebrations/components/Spark.js.map +0 -1
- package/dist/module/features/celebrations/config.js +0 -219
- package/dist/module/features/celebrations/config.js.map +0 -1
- package/dist/module/features/celebrations/helpers.js +0 -92
- package/dist/module/features/celebrations/helpers.js.map +0 -1
- package/dist/module/features/celebrations/index.js +0 -5
- package/dist/module/features/celebrations/index.js.map +0 -1
- package/dist/module/features/celebrations/types.js +0 -11
- package/dist/module/features/celebrations/types.js.map +0 -1
- package/dist/module/features/chatbot/model/ChatBotMessageHandler.js.map +0 -1
- package/dist/module/features/chatbot/model/api.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -59
- package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +0 -249
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -126
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js +0 -50
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js +0 -62
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/Spark.js +0 -47
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/Spark.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/EOAModal.js +0 -41
- package/dist/module/features/endOfAssignment/components/EOAModal.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -70
- package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -56
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -103
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js +0 -77
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js +0 -89
- package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js +0 -38
- package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +0 -226
- package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +0 -56
- package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/Modal/model.js +0 -29
- package/dist/module/features/endOfAssignment/components/Modal/model.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +0 -102
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js +0 -100
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js.map +0 -1
- package/dist/module/features/endOfAssignment/constants.js +0 -51
- package/dist/module/features/endOfAssignment/constants.js.map +0 -1
- package/dist/module/features/endOfAssignment/helpers.js +0 -58
- package/dist/module/features/endOfAssignment/helpers.js.map +0 -1
- package/dist/module/features/endOfAssignment/hooks/useSparkAnimation.js +0 -46
- package/dist/module/features/endOfAssignment/hooks/useSparkAnimation.js.map +0 -1
- package/dist/module/features/endOfAssignment/index.js +0 -6
- package/dist/module/features/endOfAssignment/index.js.map +0 -1
- package/dist/module/features/endOfAssignment/model/model.js +0 -48
- package/dist/module/features/endOfAssignment/model/model.js.map +0 -1
- package/dist/module/features/endOfAssignment/types.js +0 -29
- package/dist/module/features/endOfAssignment/types.js.map +0 -1
- package/dist/module/features/endOfAssignment/ui/EOABadge.js +0 -37
- package/dist/module/features/endOfAssignment/ui/EOABadge.js.map +0 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButton.js +0 -24
- package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +0 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -57
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +0 -1
- package/dist/module/features/endOfAssignment/ui/SparkIcon.js +0 -21
- package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +0 -1
- package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js +0 -24
- package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js.map +0 -1
- package/dist/module/lib/constants.js +0 -7
- package/dist/module/lib/constants.js.map +0 -1
- package/dist/module/shared/hooks/useKeyDownListener.js +0 -22
- package/dist/module/shared/hooks/useKeyDownListener.js.map +0 -1
- package/dist/module/shared/hooks/useKeyboard.js +0 -20
- package/dist/module/shared/hooks/useKeyboard.js.map +0 -1
- package/dist/module/shared/icons/Halloween.js +0 -47
- package/dist/module/shared/icons/Halloween.js.map +0 -1
- package/dist/module/shared/icons/Pi.js +0 -23
- package/dist/module/shared/icons/Pi.js.map +0 -1
- package/dist/module/shared/icons/Star.js +0 -23
- package/dist/module/shared/icons/Star.js.map +0 -1
- package/dist/module/shared/icons/Valentine.js +0 -23
- package/dist/module/shared/icons/Valentine.js.map +0 -1
- package/dist/module/shared/icons/Winter.js +0 -25
- package/dist/module/shared/icons/Winter.js.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/components/Celebrations.d.ts +0 -10
- package/dist/typescript/commonjs/features/celebrations/components/Celebrations.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/components/Particle.d.ts +0 -20
- package/dist/typescript/commonjs/features/celebrations/components/Particle.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts +0 -26
- package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts +0 -4
- package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/config.d.ts +0 -192
- package/dist/typescript/commonjs/features/celebrations/config.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/helpers.d.ts +0 -6
- package/dist/typescript/commonjs/features/celebrations/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/index.d.ts +0 -3
- package/dist/typescript/commonjs/features/celebrations/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/celebrations/types.d.ts +0 -11
- package/dist/typescript/commonjs/features/celebrations/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts +0 -31
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts +0 -15
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts +0 -8
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts +0 -8
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts +0 -12
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +0 -11
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts +0 -8
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts +0 -20
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts +0 -3
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/model.d.ts +0 -14
- package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts +0 -8
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/constants.d.ts +0 -41
- package/dist/typescript/commonjs/features/endOfAssignment/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +0 -9
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/hooks/useSparkAnimation.d.ts +0 -27
- package/dist/typescript/commonjs/features/endOfAssignment/hooks/useSparkAnimation.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/index.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +0 -14
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +0 -60
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/EOABadge.d.ts +0 -11
- package/dist/typescript/commonjs/features/endOfAssignment/ui/EOABadge.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts +0 -10
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +0 -14
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/constants.d.ts +0 -4
- package/dist/typescript/commonjs/lib/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts +0 -3
- package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts +0 -11
- package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/Halloween.d.ts +0 -5
- package/dist/typescript/commonjs/shared/icons/Halloween.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/Pi.d.ts +0 -5
- package/dist/typescript/commonjs/shared/icons/Pi.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/Star.d.ts +0 -5
- package/dist/typescript/commonjs/shared/icons/Star.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/Valentine.d.ts +0 -5
- package/dist/typescript/commonjs/shared/icons/Valentine.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/Winter.d.ts +0 -5
- package/dist/typescript/commonjs/shared/icons/Winter.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/components/Celebrations.d.ts +0 -10
- package/dist/typescript/module/features/celebrations/components/Celebrations.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/components/Particle.d.ts +0 -20
- package/dist/typescript/module/features/celebrations/components/Particle.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts +0 -26
- package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/components/Spark.d.ts +0 -4
- package/dist/typescript/module/features/celebrations/components/Spark.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/config.d.ts +0 -192
- package/dist/typescript/module/features/celebrations/config.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/helpers.d.ts +0 -6
- package/dist/typescript/module/features/celebrations/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/index.d.ts +0 -3
- package/dist/typescript/module/features/celebrations/index.d.ts.map +0 -1
- package/dist/typescript/module/features/celebrations/types.d.ts +0 -11
- package/dist/typescript/module/features/celebrations/types.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts +0 -31
- package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/model/api.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts +0 -15
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts +0 -8
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts +0 -8
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts +0 -12
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +0 -11
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts +0 -8
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts +0 -20
- package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts +0 -3
- package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/Modal/model.d.ts +0 -14
- package/dist/typescript/module/features/endOfAssignment/components/Modal/model.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts +0 -8
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/constants.d.ts +0 -41
- package/dist/typescript/module/features/endOfAssignment/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +0 -9
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/hooks/useSparkAnimation.d.ts +0 -27
- package/dist/typescript/module/features/endOfAssignment/hooks/useSparkAnimation.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/index.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/index.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +0 -14
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/types.d.ts +0 -60
- package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/ui/EOABadge.d.ts +0 -11
- package/dist/typescript/module/features/endOfAssignment/ui/EOABadge.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts +0 -10
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +0 -14
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts +0 -4
- package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +0 -1
- package/dist/typescript/module/lib/constants.d.ts +0 -4
- package/dist/typescript/module/lib/constants.d.ts.map +0 -1
- package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts +0 -3
- package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts.map +0 -1
- package/dist/typescript/module/shared/hooks/useKeyboard.d.ts +0 -11
- package/dist/typescript/module/shared/hooks/useKeyboard.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/Halloween.d.ts +0 -5
- package/dist/typescript/module/shared/icons/Halloween.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/Pi.d.ts +0 -5
- package/dist/typescript/module/shared/icons/Pi.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/Star.d.ts +0 -5
- package/dist/typescript/module/shared/icons/Star.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/Valentine.d.ts +0 -5
- package/dist/typescript/module/shared/icons/Valentine.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/Winter.d.ts +0 -5
- package/dist/typescript/module/shared/icons/Winter.d.ts.map +0 -1
- package/src/features/celebrations/components/Celebrations.tsx +0 -62
- package/src/features/celebrations/components/Particle.tsx +0 -101
- package/src/features/celebrations/components/ParticleBatch.tsx +0 -57
- package/src/features/celebrations/components/Spark.tsx +0 -14
- package/src/features/celebrations/config.ts +0 -224
- package/src/features/celebrations/helpers.ts +0 -103
- package/src/features/celebrations/index.ts +0 -2
- package/src/features/celebrations/types.ts +0 -11
- package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +0 -65
- package/src/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.tsx +0 -298
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +0 -141
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.tsx +0 -39
- package/src/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.tsx +0 -40
- package/src/features/endOfAssignment/components/CorrectAnswer/Spark.tsx +0 -45
- package/src/features/endOfAssignment/components/EOAModal.tsx +0 -64
- package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +0 -77
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +0 -62
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +0 -110
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.tsx +0 -69
- package/src/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
- package/src/features/endOfAssignment/components/Modal/Modal.tsx +0 -121
- package/src/features/endOfAssignment/components/Modal/ModalBackground.tsx +0 -33
- package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +0 -196
- package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +0 -62
- package/src/features/endOfAssignment/components/Modal/model.ts +0 -34
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +0 -103
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswerContent.tsx +0 -107
- package/src/features/endOfAssignment/constants.ts +0 -53
- package/src/features/endOfAssignment/helpers.ts +0 -28
- package/src/features/endOfAssignment/hooks/useSparkAnimation.tsx +0 -78
- package/src/features/endOfAssignment/index.ts +0 -3
- package/src/features/endOfAssignment/model/model.ts +0 -57
- package/src/features/endOfAssignment/types.ts +0 -65
- package/src/features/endOfAssignment/ui/EOABadge.tsx +0 -47
- package/src/features/endOfAssignment/ui/PracticeButton.tsx +0 -27
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +0 -73
- package/src/features/endOfAssignment/ui/SparkIcon.tsx +0 -15
- package/src/features/endOfAssignment/ui/ThumbUpIcon.tsx +0 -17
- package/src/lib/constants.ts +0 -3
- package/src/shared/hooks/useKeyDownListener.ts +0 -27
- package/src/shared/hooks/useKeyboard.ts +0 -18
- package/src/shared/icons/Halloween.tsx +0 -33
- package/src/shared/icons/Pi.tsx +0 -16
- package/src/shared/icons/Star.tsx +0 -16
- package/src/shared/icons/Valentine.tsx +0 -16
- package/src/shared/icons/Winter.tsx +0 -19
package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Spark } from "./Spark.js";
|
|
6
|
-
import { SPARKS_ANIMATION_DELAY } from "../../constants.js";
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const CA_SPARKS_MAP = [{
|
|
9
|
-
id: '1',
|
|
10
|
-
x: 22,
|
|
11
|
-
y: 20,
|
|
12
|
-
size: 14,
|
|
13
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.3
|
|
14
|
-
}, {
|
|
15
|
-
id: '2',
|
|
16
|
-
x: 128,
|
|
17
|
-
y: 127,
|
|
18
|
-
size: 21,
|
|
19
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.14
|
|
20
|
-
}, {
|
|
21
|
-
id: '3',
|
|
22
|
-
x: 268,
|
|
23
|
-
y: 44,
|
|
24
|
-
size: 28,
|
|
25
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.4
|
|
26
|
-
}];
|
|
27
|
-
export const CorrectAnswerSparks = ({
|
|
28
|
-
color,
|
|
29
|
-
shouldStartAnimation
|
|
30
|
-
}) => {
|
|
31
|
-
if (!shouldStartAnimation) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return /*#__PURE__*/_jsx(View, {
|
|
35
|
-
style: styles.container,
|
|
36
|
-
children: CA_SPARKS_MAP.map(star => /*#__PURE__*/_jsx(Spark, {
|
|
37
|
-
color: color,
|
|
38
|
-
...star
|
|
39
|
-
}, star.id))
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const styles = StyleSheet.create({
|
|
43
|
-
container: {
|
|
44
|
-
position: 'absolute',
|
|
45
|
-
zIndex: 110,
|
|
46
|
-
width: '100%',
|
|
47
|
-
height: '100%'
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=CorrectAnswerSparks.js.map
|
package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Spark","SPARKS_ANIMATION_DELAY","jsx","_jsx","CA_SPARKS_MAP","id","x","y","size","initialDelay","CorrectAnswerSparks","color","shouldStartAnimation","style","styles","container","children","map","star","create","position","zIndex","width","height"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,KAAK,QAAQ,YAAS;AAC/B,SAASC,sBAAsB,QAAQ,oBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOxD,MAAMC,aAAa,GAAG,CACpB;EAAEC,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,EAAE;EAAEC,CAAC,EAAE,EAAE;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAI,CAAC,EAC/E;EAAEI,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAK,CAAC,EAClF;EAAEI,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,EAAE;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAI,CAAC,CACjF;AAED,OAAO,MAAMS,mBAAmB,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAyC,CAAC,KAAK;EAC1F,IAAI,CAACA,oBAAoB,EAAE;IACzB,OAAO,IAAI;EACb;EAEA,oBACET,IAAA,CAACJ,IAAI;IAACc,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,EAC3BZ,aAAa,CAACa,GAAG,CAAEC,IAAI,iBACtBf,IAAA,CAACH,KAAK;MAAeW,KAAK,EAAEA,KAAM;MAAA,GAAKO;IAAI,GAA/BA,IAAI,CAACb,EAA6B,CAC/C;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAGhB,UAAU,CAACqB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,GAAG;IACXC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Spark } from "./Spark.js";
|
|
6
|
-
import { SPARKS_ANIMATION_DELAY } from "../../constants.js";
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const GD_SPARKS_MAP = [{
|
|
9
|
-
id: '1',
|
|
10
|
-
x: 20,
|
|
11
|
-
y: 135.5,
|
|
12
|
-
size: 14,
|
|
13
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.25
|
|
14
|
-
}, {
|
|
15
|
-
id: '2',
|
|
16
|
-
x: 25,
|
|
17
|
-
y: 19.5,
|
|
18
|
-
size: 21,
|
|
19
|
-
initialDelay: SPARKS_ANIMATION_DELAY
|
|
20
|
-
}, {
|
|
21
|
-
id: '3',
|
|
22
|
-
x: 115,
|
|
23
|
-
y: 132,
|
|
24
|
-
size: 28,
|
|
25
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.1
|
|
26
|
-
}, {
|
|
27
|
-
id: '4',
|
|
28
|
-
x: 315,
|
|
29
|
-
y: 42,
|
|
30
|
-
size: 14,
|
|
31
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.31
|
|
32
|
-
}, {
|
|
33
|
-
id: '5',
|
|
34
|
-
x: 326,
|
|
35
|
-
y: 24.5,
|
|
36
|
-
size: 21,
|
|
37
|
-
initialDelay: SPARKS_ANIMATION_DELAY * 1.36
|
|
38
|
-
}];
|
|
39
|
-
export const GoodDrawingSparks = ({
|
|
40
|
-
color,
|
|
41
|
-
shouldStartAnimation
|
|
42
|
-
}) => {
|
|
43
|
-
if (!shouldStartAnimation) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
return /*#__PURE__*/_jsx(View, {
|
|
47
|
-
style: styles.container,
|
|
48
|
-
children: GD_SPARKS_MAP.map(star => /*#__PURE__*/_jsx(Spark, {
|
|
49
|
-
color: color,
|
|
50
|
-
...star
|
|
51
|
-
}, star.id))
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
const styles = StyleSheet.create({
|
|
55
|
-
container: {
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
zIndex: 110,
|
|
58
|
-
width: '100%',
|
|
59
|
-
height: '100%'
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=GoodDrawingSparks.js.map
|
package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Spark","SPARKS_ANIMATION_DELAY","jsx","_jsx","GD_SPARKS_MAP","id","x","y","size","initialDelay","GoodDrawingSparks","color","shouldStartAnimation","style","styles","container","children","map","star","create","position","zIndex","width","height"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,KAAK,QAAQ,YAAS;AAC/B,SAASC,sBAAsB,QAAQ,oBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAExD,MAAMC,aAAa,GAAG,CACpB;EAAEC,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,EAAE;EAAEC,CAAC,EAAE,KAAK;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAK,CAAC,EACnF;EAAEI,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,EAAE;EAAEC,CAAC,EAAE,IAAI;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER;AAAuB,CAAC,EAC3E;EAAEI,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAI,CAAC,EACjF;EAAEI,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,EAAE;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAK,CAAC,EACjF;EAAEI,EAAE,EAAE,GAAG;EAAEC,CAAC,EAAE,GAAG;EAAEC,CAAC,EAAE,IAAI;EAAEC,IAAI,EAAE,EAAE;EAAEC,YAAY,EAAER,sBAAsB,GAAG;AAAK,CAAC,CACpF;AAOD,OAAO,MAAMS,iBAAiB,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAA6C,CAAC,KAAK;EAC5F,IAAI,CAACA,oBAAoB,EAAE;IACzB,OAAO,IAAI;EACb;EAEA,oBACET,IAAA,CAACJ,IAAI;IAACc,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,EAC3BZ,aAAa,CAACa,GAAG,CAAEC,IAAI,iBACtBf,IAAA,CAACH,KAAK;MAAeW,KAAK,EAAEA,KAAM;MAAA,GAAKO;IAAI,GAA/BA,IAAI,CAACb,EAA6B,CAC/C;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAGhB,UAAU,CAACqB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,GAAG;IACXC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { COLORS } from '@magmamath/react-native-ui';
|
|
5
|
-
import { SparkIcon } from "../../ui/SparkIcon.js";
|
|
6
|
-
import { useSparkAnimation } from "../../hooks/useSparkAnimation.js";
|
|
7
|
-
import Animated from 'react-native-reanimated';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const SPARKS_SPRING_CONFIG = {
|
|
10
|
-
mass: 1.8,
|
|
11
|
-
damping: 25,
|
|
12
|
-
stiffness: 293,
|
|
13
|
-
overshootClamping: false,
|
|
14
|
-
restDisplacementThreshold: 0.01,
|
|
15
|
-
restSpeedThreshold: 2
|
|
16
|
-
};
|
|
17
|
-
const HOLD_DELAY = 800;
|
|
18
|
-
const ROTATION_ANGLE = 90;
|
|
19
|
-
export const Spark = ({
|
|
20
|
-
id,
|
|
21
|
-
x,
|
|
22
|
-
y,
|
|
23
|
-
size,
|
|
24
|
-
initialDelay = 350,
|
|
25
|
-
color = COLORS.GREEN_3
|
|
26
|
-
}) => {
|
|
27
|
-
const {
|
|
28
|
-
animatedStyle
|
|
29
|
-
} = useSparkAnimation({
|
|
30
|
-
id,
|
|
31
|
-
initialDelay,
|
|
32
|
-
rotationAngle: ROTATION_ANGLE,
|
|
33
|
-
holdDelay: HOLD_DELAY,
|
|
34
|
-
springConfig: SPARKS_SPRING_CONFIG,
|
|
35
|
-
x,
|
|
36
|
-
y,
|
|
37
|
-
size
|
|
38
|
-
});
|
|
39
|
-
return /*#__PURE__*/_jsx(Animated.View, {
|
|
40
|
-
style: animatedStyle,
|
|
41
|
-
children: /*#__PURE__*/_jsx(SparkIcon, {
|
|
42
|
-
size: size,
|
|
43
|
-
color: color
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=Spark.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","COLORS","SparkIcon","useSparkAnimation","Animated","jsx","_jsx","SPARKS_SPRING_CONFIG","mass","damping","stiffness","overshootClamping","restDisplacementThreshold","restSpeedThreshold","HOLD_DELAY","ROTATION_ANGLE","Spark","id","x","y","size","initialDelay","color","GREEN_3","animatedStyle","rotationAngle","holdDelay","springConfig","View","style","children"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/Spark.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,SAAS,QAAQ,uBAAoB;AAC9C,SAASC,iBAAiB,QAAQ,kCAA+B;AACjE,OAAOC,QAAQ,MAAM,yBAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAW9C,MAAMC,oBAAoB,GAAG;EAC3BC,IAAI,EAAE,GAAG;EACTC,OAAO,EAAE,EAAE;EACXC,SAAS,EAAE,GAAG;EACdC,iBAAiB,EAAE,KAAK;EACxBC,yBAAyB,EAAE,IAAI;EAC/BC,kBAAkB,EAAE;AACtB,CAAC;AAED,MAAMC,UAAU,GAAG,GAAG;AACtB,MAAMC,cAAc,GAAG,EAAE;AAEzB,OAAO,MAAMC,KAAK,GAAGA,CAAC;EAAEC,EAAE;EAAEC,CAAC;EAAEC,CAAC;EAAEC,IAAI;EAAEC,YAAY,GAAG,GAAG;EAAEC,KAAK,GAAGrB,MAAM,CAACsB;AAAoB,CAAC,KAAK;EACnG,MAAM;IAAEC;EAAc,CAAC,GAAGrB,iBAAiB,CAAC;IAC1Cc,EAAE;IACFI,YAAY;IACZI,aAAa,EAAEV,cAAc;IAC7BW,SAAS,EAAEZ,UAAU;IACrBa,YAAY,EAAEpB,oBAAoB;IAClCW,CAAC;IACDC,CAAC;IACDC;EACF,CAAC,CAAC;EAEF,oBACEd,IAAA,CAACF,QAAQ,CAACwB,IAAI;IAACC,KAAK,EAAEL,aAAc;IAAAM,QAAA,eAClCxB,IAAA,CAACJ,SAAS;MAACkB,IAAI,EAAEA,IAAK;MAACE,KAAK,EAAEA;IAAM,CAAE;EAAC,CAC1B,CAAC;AAEpB,CAAC","ignoreList":[]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { useUnit } from 'effector-react';
|
|
5
|
-
import { EOAEventType, EOAModalVariant } from "../types.js";
|
|
6
|
-
import { Modal } from "./Modal/Modal.js";
|
|
7
|
-
import { NoAnswer } from "./NoAnswer/NoAnswer.js";
|
|
8
|
-
import { CheatDetected } from "./CheatDetected/CheatDetected.js";
|
|
9
|
-
import { CorrectAnswer } from "./CorrectAnswer/CorrectAnswer.js";
|
|
10
|
-
import { ExamLeave } from "./ExamLeave/ExamLeave.js";
|
|
11
|
-
import { ExamPaused } from "./ExamPaused/ExamPaused.js";
|
|
12
|
-
import { ExamSubmit } from "./ExamSubmit/ExamSubmit.js";
|
|
13
|
-
import { getModalContainerSize, shouldDisplayModalBackground } from "../helpers.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
const MODAL_CONTENT_VARIANTS_MAP = new Map([[EOAModalVariant.NO_CORRECT_ANSWERS, NoAnswer], [EOAModalVariant.HAS_CORRECT_ANSWERS, CorrectAnswer], [EOAModalVariant.HAS_GOOD_DRAWING, CorrectAnswer], [EOAModalVariant.EXAM_FINISHED_NO_CORRECT_ANSWERS, NoAnswer], [EOAModalVariant.EXAM_FINISHED_HAS_CORRECT_ANSWERS, CorrectAnswer], [EOAModalVariant.EXAM_SAFE_MODE_SUBMIT, ExamSubmit], [EOAModalVariant.EXAM_SUBMIT, ExamSubmit], [EOAModalVariant.EXAM_PAUSED, ExamPaused], [EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED, CheatDetected], [EOAModalVariant.EXAM_SAFE_MODE_LEAVE, ExamLeave]]);
|
|
16
|
-
export const EOAModal = ({
|
|
17
|
-
model,
|
|
18
|
-
textContent,
|
|
19
|
-
onPracticePress
|
|
20
|
-
}) => {
|
|
21
|
-
const popUpData = useUnit(model.$popUpData);
|
|
22
|
-
const modalVariant = useUnit(model.$modalVariant);
|
|
23
|
-
if (!popUpData || !modalVariant) return null;
|
|
24
|
-
const withBackground = shouldDisplayModalBackground(modalVariant);
|
|
25
|
-
const isDismissable = popUpData.eventType !== EOAEventType.CHEAT_DETECTED && popUpData.eventType !== EOAEventType.EXAM_PAUSED;
|
|
26
|
-
const ModalContent = MODAL_CONTENT_VARIANTS_MAP.get(modalVariant);
|
|
27
|
-
if (!ModalContent) return null;
|
|
28
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
29
|
-
isVisible: true,
|
|
30
|
-
isDismissable: isDismissable,
|
|
31
|
-
style: getModalContainerSize(modalVariant),
|
|
32
|
-
onClose: model.hidePopUp,
|
|
33
|
-
content: /*#__PURE__*/_jsx(ModalContent, {
|
|
34
|
-
model: model,
|
|
35
|
-
textContent: textContent,
|
|
36
|
-
onPracticePress: onPracticePress
|
|
37
|
-
}),
|
|
38
|
-
withBackground: withBackground
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=EOAModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useUnit","EOAEventType","EOAModalVariant","Modal","NoAnswer","CheatDetected","CorrectAnswer","ExamLeave","ExamPaused","ExamSubmit","getModalContainerSize","shouldDisplayModalBackground","jsx","_jsx","MODAL_CONTENT_VARIANTS_MAP","Map","NO_CORRECT_ANSWERS","HAS_CORRECT_ANSWERS","HAS_GOOD_DRAWING","EXAM_FINISHED_NO_CORRECT_ANSWERS","EXAM_FINISHED_HAS_CORRECT_ANSWERS","EXAM_SAFE_MODE_SUBMIT","EXAM_SUBMIT","EXAM_PAUSED","EXAM_SAFE_MODE_CHEAT_DETECTED","EXAM_SAFE_MODE_LEAVE","EOAModal","model","textContent","onPracticePress","popUpData","$popUpData","modalVariant","$modalVariant","withBackground","isDismissable","eventType","CHEAT_DETECTED","ModalContent","get","isVisible","style","onClose","hidePopUp","content"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/components/EOAModal.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,gBAAgB;AAGxC,SAASC,YAAY,EAAgBC,eAAe,QAAQ,aAAU;AAEtE,SAASC,KAAK,QAAQ,kBAAe;AAErC,SAASC,QAAQ,QAAQ,wBAAqB;AAC9C,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,aAAa,QAAQ,kCAA+B;AAC7D,SAASC,SAAS,QAAQ,0BAAuB;AACjD,SAASC,UAAU,QAAQ,4BAAyB;AACpD,SAASC,UAAU,QAAQ,4BAAyB;AAEpD,SAASC,qBAAqB,EAAEC,4BAA4B,QAAQ,eAAY;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEhF,MAAMC,0BAA0B,GAAG,IAAIC,GAAG,CAAC,CACzC,CAACb,eAAe,CAACc,kBAAkB,EAAEZ,QAAQ,CAAC,EAC9C,CAACF,eAAe,CAACe,mBAAmB,EAAEX,aAAa,CAAC,EACpD,CAACJ,eAAe,CAACgB,gBAAgB,EAAEZ,aAAa,CAAC,EACjD,CAACJ,eAAe,CAACiB,gCAAgC,EAAEf,QAAQ,CAAC,EAC5D,CAACF,eAAe,CAACkB,iCAAiC,EAAEd,aAAa,CAAC,EAClE,CAACJ,eAAe,CAACmB,qBAAqB,EAAEZ,UAAU,CAAC,EACnD,CAACP,eAAe,CAACoB,WAAW,EAAEb,UAAU,CAAC,EACzC,CAACP,eAAe,CAACqB,WAAW,EAAEf,UAAU,CAAC,EACzC,CAACN,eAAe,CAACsB,6BAA6B,EAAEnB,aAAa,CAAC,EAC9D,CAACH,eAAe,CAACuB,oBAAoB,EAAElB,SAAS,CAAC,CAClD,CAAC;AAQF,OAAO,MAAMmB,QAAQ,GAAGA,CAAC;EAAEC,KAAK;EAAEC,WAAW;EAAEC;AAA+B,CAAC,KAAK;EAClF,MAAMC,SAAS,GAAG9B,OAAO,CAAC2B,KAAK,CAACI,UAAU,CAAC;EAC3C,MAAMC,YAAY,GAAGhC,OAAO,CAAC2B,KAAK,CAACM,aAAa,CAAC;EAEjD,IAAI,CAACH,SAAS,IAAI,CAACE,YAAY,EAAE,OAAO,IAAI;EAE5C,MAAME,cAAc,GAAGvB,4BAA4B,CAACqB,YAAY,CAAC;EACjE,MAAMG,aAAa,GACjBL,SAAS,CAACM,SAAS,KAAKnC,YAAY,CAACoC,cAAc,IACnDP,SAAS,CAACM,SAAS,KAAKnC,YAAY,CAACsB,WAAW;EAElD,MAAMe,YAAY,GAAGxB,0BAA0B,CAACyB,GAAG,CAACP,YAAY,CAAC;EAEjE,IAAI,CAACM,YAAY,EAAE,OAAO,IAAI;EAE9B,oBACEzB,IAAA,CAACV,KAAK;IACJqC,SAAS,EAAE,IAAK;IAChBL,aAAa,EAAEA,aAAc;IAC7BM,KAAK,EAAE/B,qBAAqB,CAACsB,YAAY,CAAE;IAC3CU,OAAO,EAAEf,KAAK,CAACgB,SAAU;IACzBC,OAAO,eACL/B,IAAA,CAACyB,YAAY;MAACX,KAAK,EAAEA,KAAM;MAACC,WAAW,EAAEA,WAAY;MAACC,eAAe,EAAEA;IAAgB,CAAE,CAC1F;IACDK,cAAc,EAAEA;EAAe,CAChC,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, StyleSheet } from 'react-native';
|
|
5
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant, COLORS, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
6
|
-
import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
7
|
-
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
export const ExamLeave = ({
|
|
10
|
-
textContent,
|
|
11
|
-
model
|
|
12
|
-
}) => {
|
|
13
|
-
const handleDismiss = () => model.hidePopUp();
|
|
14
|
-
useKeyBoard(event => {
|
|
15
|
-
if (event.key === KeyboardKeys.ENTER) {
|
|
16
|
-
model.hidePopUpAndLeave();
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
20
|
-
style: styles.container,
|
|
21
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
22
|
-
variant: "h1",
|
|
23
|
-
style: styles.description,
|
|
24
|
-
children: textContent.description
|
|
25
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
26
|
-
style: styles.buttonsContainer,
|
|
27
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
28
|
-
variant: ButtonVariant.TERTIARY,
|
|
29
|
-
size: ButtonSize.LARGE,
|
|
30
|
-
style: {
|
|
31
|
-
text: styles.buttonText
|
|
32
|
-
},
|
|
33
|
-
onPress: handleDismiss,
|
|
34
|
-
children: textContent.leftButtonText
|
|
35
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
36
|
-
variant: ButtonVariant.PRIMARY,
|
|
37
|
-
colorScheme: ButtonColor.RED,
|
|
38
|
-
size: ButtonSize.LARGE,
|
|
39
|
-
style: {
|
|
40
|
-
text: styles.buttonText
|
|
41
|
-
},
|
|
42
|
-
onPress: model.hidePopUpAndLeave,
|
|
43
|
-
children: textContent.rightButtonText
|
|
44
|
-
})]
|
|
45
|
-
})]
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
const styles = StyleSheet.create({
|
|
49
|
-
container: {
|
|
50
|
-
flex: 1,
|
|
51
|
-
gap: SPACING[800],
|
|
52
|
-
paddingTop: SPACING[800],
|
|
53
|
-
alignItems: 'center',
|
|
54
|
-
justifyContent: 'space-between'
|
|
55
|
-
},
|
|
56
|
-
description: {
|
|
57
|
-
textAlign: 'center',
|
|
58
|
-
fontWeight: '700',
|
|
59
|
-
color: COLORS.NEUTRAL_9
|
|
60
|
-
},
|
|
61
|
-
buttonsContainer: {
|
|
62
|
-
flexDirection: 'row',
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
gap: SPACING[200]
|
|
65
|
-
},
|
|
66
|
-
buttonText: {
|
|
67
|
-
textTransform: 'uppercase'
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=ExamLeave.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","SPACING","Typography","useKeyBoard","KeyboardKeys","jsx","_jsx","jsxs","_jsxs","ExamLeave","textContent","model","handleDismiss","hidePopUp","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","variant","description","buttonsContainer","TERTIARY","size","LARGE","text","buttonText","onPress","leftButtonText","PRIMARY","colorScheme","RED","rightButtonText","create","flex","gap","paddingTop","alignItems","justifyContent","textAlign","fontWeight","color","NEUTRAL_9","flexDirection","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAGnC,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA4B,CAAC,KAAK;EACzE,MAAMC,aAAa,GAAGA,CAAA,KAAMD,KAAK,CAACE,SAAS,CAAC,CAAC;EAE7CV,WAAW,CAAEW,KAAK,IAAK;IACrB,IAAIA,KAAK,CAACC,GAAG,KAAKX,YAAY,CAACY,KAAK,EAAE;MACpCL,KAAK,CAACM,iBAAiB,CAAC,CAAC;IAC3B;EACF,CAAC,CAAC;EAEF,oBACET,KAAA,CAACd,IAAI;IAACwB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5Bf,IAAA,CAACJ,UAAU;MAACoB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACI,WAAY;MAAAF,QAAA,EAChDX,WAAW,CAACa;IAAW,CACd,CAAC,eAEbf,KAAA,CAACd,IAAI;MAACwB,KAAK,EAAEC,MAAM,CAACK,gBAAiB;MAAAH,QAAA,gBACnCf,IAAA,CAACV,MAAM;QACL0B,OAAO,EAAEvB,aAAa,CAAC0B,QAAS;QAChCC,IAAI,EAAE5B,UAAU,CAAC6B,KAAM;QACvBT,KAAK,EAAE;UAAEU,IAAI,EAAET,MAAM,CAACU;QAAW,CAAE;QACnCC,OAAO,EAAElB,aAAc;QAAAS,QAAA,EAEtBX,WAAW,CAACqB;MAAc,CACrB,CAAC,eAETzB,IAAA,CAACV,MAAM;QACL0B,OAAO,EAAEvB,aAAa,CAACiC,OAAQ;QAC/BC,WAAW,EAAEpC,WAAW,CAACqC,GAAI;QAC7BR,IAAI,EAAE5B,UAAU,CAAC6B,KAAM;QACvBT,KAAK,EAAE;UAAEU,IAAI,EAAET,MAAM,CAACU;QAAW,CAAE;QACnCC,OAAO,EAAEnB,KAAK,CAACM,iBAAkB;QAAAI,QAAA,EAEhCX,WAAW,CAACyB;MAAe,CACtB,CAAC;IAAA,CACL,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMhB,MAAM,GAAGxB,UAAU,CAACyC,MAAM,CAAC;EAC/BhB,SAAS,EAAE;IACTiB,IAAI,EAAE,CAAC;IACPC,GAAG,EAAErC,OAAO,CAAC,GAAG,CAAC;IACjBsC,UAAU,EAAEtC,OAAO,CAAC,GAAG,CAAC;IACxBuC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDlB,WAAW,EAAE;IACXmB,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE5C,MAAM,CAAC6C;EAChB,CAAC;EACDrB,gBAAgB,EAAE;IAChBsB,aAAa,EAAE,KAAK;IACpBN,UAAU,EAAE,QAAQ;IACpBF,GAAG,EAAErC,OAAO,CAAC,GAAG;EAClB,CAAC;EACD4B,UAAU,EAAE;IACVkB,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, StyleSheet } from 'react-native';
|
|
5
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant, COLORS, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
6
|
-
import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
7
|
-
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
export const ExamPaused = ({
|
|
10
|
-
textContent,
|
|
11
|
-
model
|
|
12
|
-
}) => {
|
|
13
|
-
useKeyBoard(event => {
|
|
14
|
-
if (event.key === KeyboardKeys.ENTER) {
|
|
15
|
-
model.hidePopUpAndLeave();
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
19
|
-
style: styles.container,
|
|
20
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
21
|
-
variant: "h2",
|
|
22
|
-
style: styles.title,
|
|
23
|
-
children: textContent.title
|
|
24
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
25
|
-
variant: "h1",
|
|
26
|
-
style: styles.description,
|
|
27
|
-
children: textContent.description
|
|
28
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
29
|
-
variant: ButtonVariant.PRIMARY,
|
|
30
|
-
colorScheme: ButtonColor.PURPLE,
|
|
31
|
-
size: ButtonSize.LARGE,
|
|
32
|
-
style: {
|
|
33
|
-
text: styles.buttonText
|
|
34
|
-
},
|
|
35
|
-
onPress: model.hidePopUpAndLeave,
|
|
36
|
-
children: textContent.leftButtonText
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
const styles = StyleSheet.create({
|
|
41
|
-
container: {
|
|
42
|
-
gap: SPACING[800],
|
|
43
|
-
alignItems: 'center'
|
|
44
|
-
},
|
|
45
|
-
title: {
|
|
46
|
-
color: COLORS.NEUTRAL_9
|
|
47
|
-
},
|
|
48
|
-
description: {
|
|
49
|
-
textAlign: 'center',
|
|
50
|
-
fontWeight: '700'
|
|
51
|
-
},
|
|
52
|
-
buttonText: {
|
|
53
|
-
textTransform: 'uppercase'
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=ExamPaused.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","SPACING","Typography","useKeyBoard","KeyboardKeys","jsx","_jsx","jsxs","_jsxs","ExamPaused","textContent","model","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","variant","title","description","PRIMARY","colorScheme","PURPLE","size","LARGE","text","buttonText","onPress","leftButtonText","create","gap","alignItems","color","NEUTRAL_9","textAlign","fontWeight","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAGnC,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,UAAU,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA4B,CAAC,KAAK;EAC1ER,WAAW,CAAES,KAAK,IAAK;IACrB,IAAIA,KAAK,CAACC,GAAG,KAAKT,YAAY,CAACU,KAAK,EAAE;MACpCH,KAAK,CAACI,iBAAiB,CAAC,CAAC;IAC3B;EACF,CAAC,CAAC;EAEF,oBACEP,KAAA,CAACd,IAAI;IAACsB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5Bb,IAAA,CAACJ,UAAU;MAACkB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACI,KAAM;MAAAF,QAAA,EAC1CT,WAAW,CAACW;IAAK,CACR,CAAC,eAEbf,IAAA,CAACJ,UAAU;MAACkB,OAAO,EAAC,IAAI;MAACJ,KAAK,EAAEC,MAAM,CAACK,WAAY;MAAAH,QAAA,EAChDT,WAAW,CAACY;IAAW,CACd,CAAC,eAEbhB,IAAA,CAACV,MAAM;MACLwB,OAAO,EAAErB,aAAa,CAACwB,OAAQ;MAC/BC,WAAW,EAAE3B,WAAW,CAAC4B,MAAO;MAChCC,IAAI,EAAE5B,UAAU,CAAC6B,KAAM;MACvBX,KAAK,EAAE;QAAEY,IAAI,EAAEX,MAAM,CAACY;MAAW,CAAE;MACnCC,OAAO,EAAEnB,KAAK,CAACI,iBAAkB;MAAAI,QAAA,EAEhCT,WAAW,CAACqB;IAAc,CACrB,CAAC;EAAA,CACL,CAAC;AAEX,CAAC;AAED,MAAMd,MAAM,GAAGtB,UAAU,CAACqC,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,GAAG,EAAEhC,OAAO,CAAC,GAAG,CAAC;IACjBiC,UAAU,EAAE;EACd,CAAC;EACDb,KAAK,EAAE;IACLc,KAAK,EAAEnC,MAAM,CAACoC;EAChB,CAAC;EACDd,WAAW,EAAE;IACXe,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE;EACd,CAAC;EACDT,UAAU,EAAE;IACVU,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, StyleSheet, Platform, Image } from 'react-native';
|
|
5
|
-
import { useUnit } from 'effector-react';
|
|
6
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant, COLORS, IS_MOBILE, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
7
|
-
import { ExamSubmitContent } from "./ExamSubmitContent.js";
|
|
8
|
-
import { PracticeButton } from "../../ui/PracticeButton.js";
|
|
9
|
-
import { useKeyBoard } from "../../../../shared/hooks/useKeyboard.js";
|
|
10
|
-
import { KeyboardKeys } from "../../../../lib/constants.js";
|
|
11
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export const ExamSubmit = ({
|
|
13
|
-
textContent,
|
|
14
|
-
model,
|
|
15
|
-
onPracticePress
|
|
16
|
-
}) => {
|
|
17
|
-
const popUpData = useUnit(model.$popUpData);
|
|
18
|
-
const problemsAmount = popUpData?.stats?.problemsAmount ?? 0;
|
|
19
|
-
const practiceModeEnabled = popUpData?.user.practiceMode;
|
|
20
|
-
const isPracticeButtonVisible = !!practiceModeEnabled && !popUpData?.newerAssignmentAvailable;
|
|
21
|
-
const handlePracticePress = () => {
|
|
22
|
-
onPracticePress?.();
|
|
23
|
-
model.hidePopUp();
|
|
24
|
-
};
|
|
25
|
-
useKeyBoard(event => {
|
|
26
|
-
if (event.key === KeyboardKeys.ENTER) {
|
|
27
|
-
isPracticeButtonVisible ? handlePracticePress() : model.hidePopUpAndLeave();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
31
|
-
style: styles.container,
|
|
32
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
33
|
-
style: styles.contentBackground,
|
|
34
|
-
children: IS_MOBILE ? /*#__PURE__*/_jsx(Image, {
|
|
35
|
-
source: require('./blurred-card.png')
|
|
36
|
-
}) : /*#__PURE__*/_jsx(ExamSubmitContent, {
|
|
37
|
-
problemsAmount: problemsAmount
|
|
38
|
-
})
|
|
39
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
40
|
-
variant: "h2",
|
|
41
|
-
style: styles.title,
|
|
42
|
-
children: textContent.title
|
|
43
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
44
|
-
variant: "h1",
|
|
45
|
-
style: styles.description,
|
|
46
|
-
children: textContent.description
|
|
47
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
48
|
-
style: styles.buttonsContainer,
|
|
49
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
50
|
-
variant: isPracticeButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY,
|
|
51
|
-
size: ButtonSize.LARGE,
|
|
52
|
-
colorScheme: popUpData?.isExam ? ButtonColor.PURPLE : ButtonColor.BLUE,
|
|
53
|
-
style: {
|
|
54
|
-
text: {
|
|
55
|
-
textTransform: 'uppercase'
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
onPress: model.hidePopUpAndLeave,
|
|
59
|
-
children: textContent.leftButtonText ?? ''
|
|
60
|
-
}), isPracticeButtonVisible && /*#__PURE__*/_jsx(PracticeButton, {
|
|
61
|
-
onPress: handlePracticePress,
|
|
62
|
-
text: textContent.rightButtonText
|
|
63
|
-
})]
|
|
64
|
-
})]
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
const styles = StyleSheet.create({
|
|
68
|
-
container: {
|
|
69
|
-
flex: 1,
|
|
70
|
-
gap: SPACING[400],
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
justifyContent: 'space-between'
|
|
73
|
-
},
|
|
74
|
-
title: {
|
|
75
|
-
color: COLORS.NEUTRAL_9,
|
|
76
|
-
paddingVertical: SPACING[100]
|
|
77
|
-
},
|
|
78
|
-
description: {
|
|
79
|
-
color: COLORS.NEUTRAL_9,
|
|
80
|
-
textAlign: 'center',
|
|
81
|
-
fontWeight: 700,
|
|
82
|
-
paddingTop: SPACING[800],
|
|
83
|
-
paddingBottom: SPACING[1600]
|
|
84
|
-
},
|
|
85
|
-
contentBackground: {
|
|
86
|
-
position: 'absolute',
|
|
87
|
-
zIndex: -1,
|
|
88
|
-
top: '22%',
|
|
89
|
-
...(Platform.OS === 'web' && {
|
|
90
|
-
filter: 'blur(4px)'
|
|
91
|
-
})
|
|
92
|
-
},
|
|
93
|
-
buttonsContainer: {
|
|
94
|
-
height: 62,
|
|
95
|
-
flexDirection: 'row',
|
|
96
|
-
alignItems: 'center',
|
|
97
|
-
gap: SPACING[200]
|
|
98
|
-
},
|
|
99
|
-
buttonText: {
|
|
100
|
-
textTransform: 'uppercase'
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
//# sourceMappingURL=ExamSubmit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","Platform","Image","useUnit","Button","ButtonColor","ButtonSize","ButtonVariant","COLORS","IS_MOBILE","SPACING","Typography","ExamSubmitContent","PracticeButton","useKeyBoard","KeyboardKeys","jsx","_jsx","jsxs","_jsxs","ExamSubmit","textContent","model","onPracticePress","popUpData","$popUpData","problemsAmount","stats","practiceModeEnabled","user","practiceMode","isPracticeButtonVisible","newerAssignmentAvailable","handlePracticePress","hidePopUp","event","key","ENTER","hidePopUpAndLeave","style","styles","container","children","contentBackground","source","require","variant","title","description","buttonsContainer","TERTIARY","PRIMARY","size","LARGE","colorScheme","isExam","PURPLE","BLUE","text","textTransform","onPress","leftButtonText","rightButtonText","create","flex","gap","alignItems","justifyContent","color","NEUTRAL_9","paddingVertical","textAlign","fontWeight","paddingTop","paddingBottom","position","zIndex","top","OS","filter","height","flexDirection","buttonText"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,KAAK,QAAQ,cAAc;AAEhE,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,MAAM,EACNC,SAAS,EACTC,OAAO,EACPC,UAAU,QACL,4BAA4B;AAEnC,SAASC,iBAAiB,QAAQ,wBAAqB;AAEvD,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,YAAY,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,UAAU,GAAGA,CAAC;EAAEC,WAAW;EAAEC,KAAK;EAAEC;AAAsC,CAAC,KAAK;EAC3F,MAAMC,SAAS,GAAGrB,OAAO,CAACmB,KAAK,CAACG,UAAU,CAAC;EAE3C,MAAMC,cAAc,GAAGF,SAAS,EAAEG,KAAK,EAAED,cAAc,IAAI,CAAC;EAC5D,MAAME,mBAAmB,GAAGJ,SAAS,EAAEK,IAAI,CAACC,YAAY;EAExD,MAAMC,uBAAuB,GAAG,CAAC,CAACH,mBAAmB,IAAI,CAACJ,SAAS,EAAEQ,wBAAwB;EAE7F,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;IAChCV,eAAe,GAAG,CAAC;IACnBD,KAAK,CAACY,SAAS,CAAC,CAAC;EACnB,CAAC;EAEDpB,WAAW,CAAEqB,KAAK,IAAK;IACrB,IAAIA,KAAK,CAACC,GAAG,KAAKrB,YAAY,CAACsB,KAAK,EAAE;MACpCN,uBAAuB,GAAGE,mBAAmB,CAAC,CAAC,GAAGX,KAAK,CAACgB,iBAAiB,CAAC,CAAC;IAC7E;EACF,CAAC,CAAC;EAEF,oBACEnB,KAAA,CAACpB,IAAI;IAACwC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BzB,IAAA,CAAClB,IAAI;MAACwC,KAAK,EAAEC,MAAM,CAACG,iBAAkB;MAAAD,QAAA,EACnCjC,SAAS,gBACRQ,IAAA,CAACf,KAAK;QAAC0C,MAAM,EAAEC,OAAO,CAAC,oBAAoB;MAAE,CAAE,CAAC,gBAEhD5B,IAAA,CAACL,iBAAiB;QAACc,cAAc,EAAEA;MAAe,CAAE;IACrD,CACG,CAAC,eACPT,IAAA,CAACN,UAAU;MAACmC,OAAO,EAAC,IAAI;MAACP,KAAK,EAAEC,MAAM,CAACO,KAAM;MAAAL,QAAA,EAC1CrB,WAAW,CAAC0B;IAAK,CACR,CAAC,eACb9B,IAAA,CAACN,UAAU;MAACmC,OAAO,EAAC,IAAI;MAACP,KAAK,EAAEC,MAAM,CAACQ,WAAY;MAAAN,QAAA,EAChDrB,WAAW,CAAC2B;IAAW,CACd,CAAC,eAEb7B,KAAA,CAACpB,IAAI;MAACwC,KAAK,EAAEC,MAAM,CAACS,gBAAiB;MAAAP,QAAA,gBACnCzB,IAAA,CAACb,MAAM;QACL0C,OAAO,EAAEf,uBAAuB,GAAGxB,aAAa,CAAC2C,QAAQ,GAAG3C,aAAa,CAAC4C,OAAQ;QAClFC,IAAI,EAAE9C,UAAU,CAAC+C,KAAM;QACvBC,WAAW,EAAE9B,SAAS,EAAE+B,MAAM,GAAGlD,WAAW,CAACmD,MAAM,GAAGnD,WAAW,CAACoD,IAAK;QACvElB,KAAK,EAAE;UAAEmB,IAAI,EAAE;YAAEC,aAAa,EAAE;UAAY;QAAE,CAAE;QAChDC,OAAO,EAAEtC,KAAK,CAACgB,iBAAkB;QAAAI,QAAA,EAEhCrB,WAAW,CAACwC,cAAc,IAAI;MAAE,CAC3B,CAAC,EACR9B,uBAAuB,iBACtBd,IAAA,CAACJ,cAAc;QAAC+C,OAAO,EAAE3B,mBAAoB;QAACyB,IAAI,EAAErC,WAAW,CAACyC;MAAgB,CAAE,CACnF;IAAA,CACG,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMtB,MAAM,GAAGxC,UAAU,CAAC+D,MAAM,CAAC;EAC/BtB,SAAS,EAAE;IACTuB,IAAI,EAAE,CAAC;IACPC,GAAG,EAAEvD,OAAO,CAAC,GAAG,CAAC;IACjBwD,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDpB,KAAK,EAAE;IACLqB,KAAK,EAAE5D,MAAM,CAAC6D,SAAS;IACvBC,eAAe,EAAE5D,OAAO,CAAC,GAAG;EAC9B,CAAC;EACDsC,WAAW,EAAE;IACXoB,KAAK,EAAE5D,MAAM,CAAC6D,SAAS;IACvBE,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE/D,OAAO,CAAC,GAAG,CAAC;IACxBgE,aAAa,EAAEhE,OAAO,CAAC,IAAI;EAC7B,CAAC;EACDiC,iBAAiB,EAAE;IACjBgC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,CAAC;IACVC,GAAG,EAAE,KAAK;IACV,IAAI5E,QAAQ,CAAC6E,EAAE,KAAK,KAAK,IAAI;MAC3BC,MAAM,EAAE;IACV,CAAC;EACH,CAAC;EACD9B,gBAAgB,EAAE;IAChB+B,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBf,UAAU,EAAE,QAAQ;IACpBD,GAAG,EAAEvD,OAAO,CAAC,GAAG;EAClB,CAAC;EACDwE,UAAU,EAAE;IACVvB,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, StyleSheet } from 'react-native';
|
|
5
|
-
import { BORDER_RADIUS, COLORS, CorrectIcon, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const ExamSubmitContent = ({
|
|
8
|
-
problemsAmount,
|
|
9
|
-
description
|
|
10
|
-
}) => {
|
|
11
|
-
return /*#__PURE__*/_jsx(View, {
|
|
12
|
-
style: styles.container,
|
|
13
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
14
|
-
style: styles.content,
|
|
15
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
16
|
-
style: styles.iconContainer,
|
|
17
|
-
children: /*#__PURE__*/_jsx(CorrectIcon, {
|
|
18
|
-
size: 70,
|
|
19
|
-
color: COLORS.NEUTRAL_1
|
|
20
|
-
})
|
|
21
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
22
|
-
style: styles.textContainer,
|
|
23
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
24
|
-
variant: "xxl",
|
|
25
|
-
style: styles.largeText,
|
|
26
|
-
children: description || '?'
|
|
27
|
-
}), /*#__PURE__*/_jsxs(Typography, {
|
|
28
|
-
style: styles.text,
|
|
29
|
-
children: ["/", problemsAmount]
|
|
30
|
-
})]
|
|
31
|
-
})]
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
const styles = StyleSheet.create({
|
|
36
|
-
container: {
|
|
37
|
-
opacity: 0.4,
|
|
38
|
-
paddingHorizontal: SPACING[100],
|
|
39
|
-
paddingTop: SPACING[100],
|
|
40
|
-
paddingBottom: 38,
|
|
41
|
-
marginBottom: SPACING[800],
|
|
42
|
-
backgroundColor: COLORS.NEUTRAL_5,
|
|
43
|
-
borderRadius: BORDER_RADIUS[400]
|
|
44
|
-
},
|
|
45
|
-
content: {
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
borderRadius: BORDER_RADIUS[200],
|
|
48
|
-
paddingVertical: SPACING[400],
|
|
49
|
-
paddingHorizontal: SPACING[800],
|
|
50
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
51
|
-
gap: SPACING[500]
|
|
52
|
-
},
|
|
53
|
-
iconContainer: {
|
|
54
|
-
backgroundColor: COLORS.NEUTRAL_5,
|
|
55
|
-
padding: SPACING[200],
|
|
56
|
-
borderRadius: 100,
|
|
57
|
-
height: 70,
|
|
58
|
-
width: 70,
|
|
59
|
-
justifyContent: 'center',
|
|
60
|
-
alignItems: 'center'
|
|
61
|
-
},
|
|
62
|
-
textContainer: {
|
|
63
|
-
flexDirection: 'row'
|
|
64
|
-
},
|
|
65
|
-
text: {
|
|
66
|
-
fontWeight: '700',
|
|
67
|
-
color: COLORS.NEUTRAL_5,
|
|
68
|
-
alignSelf: 'flex-end'
|
|
69
|
-
},
|
|
70
|
-
largeText: {
|
|
71
|
-
fontSize: 48,
|
|
72
|
-
fontWeight: '700',
|
|
73
|
-
lineHeight: 48,
|
|
74
|
-
color: COLORS.NEUTRAL_5
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=ExamSubmitContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","BORDER_RADIUS","COLORS","CorrectIcon","SPACING","Typography","jsx","_jsx","jsxs","_jsxs","ExamSubmitContent","problemsAmount","description","style","styles","container","children","content","iconContainer","size","color","NEUTRAL_1","textContainer","variant","largeText","text","create","opacity","paddingHorizontal","paddingTop","paddingBottom","marginBottom","backgroundColor","NEUTRAL_5","borderRadius","flexDirection","paddingVertical","gap","padding","height","width","justifyContent","alignItems","fontWeight","alignSelf","fontSize","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,aAAa,EAAEC,MAAM,EAAEC,WAAW,EAAEC,OAAO,EAAEC,UAAU,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOpG,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,cAAc;EAAEC;AAAmC,CAAC,KAAK;EAC3F,oBACEL,IAAA,CAACR,IAAI;IAACc,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BP,KAAA,CAACV,IAAI;MAACc,KAAK,EAAEC,MAAM,CAACG,OAAQ;MAAAD,QAAA,gBAC1BT,IAAA,CAACR,IAAI;QAACc,KAAK,EAAEC,MAAM,CAACI,aAAc;QAAAF,QAAA,eAChCT,IAAA,CAACJ,WAAW;UAACgB,IAAI,EAAE,EAAG;UAACC,KAAK,EAAElB,MAAM,CAACmB;QAAU,CAAE;MAAC,CAC9C,CAAC,eACPZ,KAAA,CAACV,IAAI;QAACc,KAAK,EAAEC,MAAM,CAACQ,aAAc;QAAAN,QAAA,gBAChCT,IAAA,CAACF,UAAU;UAACkB,OAAO,EAAC,KAAK;UAACV,KAAK,EAAEC,MAAM,CAACU,SAAU;UAAAR,QAAA,EAC/CJ,WAAW,IAAI;QAAG,CACT,CAAC,eACbH,KAAA,CAACJ,UAAU;UAACQ,KAAK,EAAEC,MAAM,CAACW,IAAK;UAAAT,QAAA,GAAC,GAAC,EAACL,cAAc;QAAA,CAAa,CAAC;MAAA,CAC1D,CAAC;IAAA,CACH;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGd,UAAU,CAAC0B,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,OAAO,EAAE,GAAG;IACZC,iBAAiB,EAAExB,OAAO,CAAC,GAAG,CAAC;IAC/ByB,UAAU,EAAEzB,OAAO,CAAC,GAAG,CAAC;IACxB0B,aAAa,EAAE,EAAE;IACjBC,YAAY,EAAE3B,OAAO,CAAC,GAAG,CAAC;IAC1B4B,eAAe,EAAE9B,MAAM,CAAC+B,SAAS;IACjCC,YAAY,EAAEjC,aAAa,CAAC,GAAG;EACjC,CAAC;EACDgB,OAAO,EAAE;IACPkB,aAAa,EAAE,KAAK;IACpBD,YAAY,EAAEjC,aAAa,CAAC,GAAG,CAAC;IAChCmC,eAAe,EAAEhC,OAAO,CAAC,GAAG,CAAC;IAC7BwB,iBAAiB,EAAExB,OAAO,CAAC,GAAG,CAAC;IAC/B4B,eAAe,EAAE9B,MAAM,CAACmB,SAAS;IACjCgB,GAAG,EAAEjC,OAAO,CAAC,GAAG;EAClB,CAAC;EACDc,aAAa,EAAE;IACbc,eAAe,EAAE9B,MAAM,CAAC+B,SAAS;IACjCK,OAAO,EAAElC,OAAO,CAAC,GAAG,CAAC;IACrB8B,YAAY,EAAE,GAAG;IACjBK,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDpB,aAAa,EAAE;IACba,aAAa,EAAE;EACjB,CAAC;EACDV,IAAI,EAAE;IACJkB,UAAU,EAAE,KAAK;IACjBvB,KAAK,EAAElB,MAAM,CAAC+B,SAAS;IACvBW,SAAS,EAAE;EACb,CAAC;EACDpB,SAAS,EAAE;IACTqB,QAAQ,EAAE,EAAE;IACZF,UAAU,EAAE,KAAK;IACjBG,UAAU,EAAE,EAAE;IACd1B,KAAK,EAAElB,MAAM,CAAC+B;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
Binary file
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { Animated, StyleSheet, TouchableWithoutFeedback, View } from 'react-native';
|
|
5
|
-
import { ButtonVariant, CrossIcon, COLORS, BORDER_RADIUS, SPACING, SHADOWS, Button } from '@magmamath/react-native-ui';
|
|
6
|
-
import { ModalModel } from "./model.js";
|
|
7
|
-
import { ModalBackground } from "./ModalBackground.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const stopPropagation = {
|
|
10
|
-
onTouchStart: event => {
|
|
11
|
-
event.stopPropagation();
|
|
12
|
-
},
|
|
13
|
-
onMouseDown: event => {
|
|
14
|
-
event.stopPropagation();
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
export const Modal = ({
|
|
18
|
-
isVisible,
|
|
19
|
-
isDismissable = true,
|
|
20
|
-
onClose,
|
|
21
|
-
style,
|
|
22
|
-
content,
|
|
23
|
-
withBackground
|
|
24
|
-
}) => {
|
|
25
|
-
const [modalModel] = useState(() => new ModalModel());
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (isVisible) {
|
|
28
|
-
modalModel.animation.show();
|
|
29
|
-
}
|
|
30
|
-
}, [isVisible]);
|
|
31
|
-
if (!isVisible) return null;
|
|
32
|
-
return /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
33
|
-
onPress: () => isDismissable && onClose?.(),
|
|
34
|
-
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
35
|
-
style: [styles.overlay, style?.overlay, modalModel.animatedStyle],
|
|
36
|
-
children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
37
|
-
...stopPropagation,
|
|
38
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
39
|
-
style: [styles.container, style?.container],
|
|
40
|
-
children: [withBackground && /*#__PURE__*/_jsx(View, {
|
|
41
|
-
style: styles.backgroundWrapper,
|
|
42
|
-
children: /*#__PURE__*/_jsx(ModalBackground, {})
|
|
43
|
-
}), isDismissable && /*#__PURE__*/_jsx(View, {
|
|
44
|
-
style: [styles.closeButton, style?.closeButton],
|
|
45
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
46
|
-
variant: ButtonVariant.TERTIARY,
|
|
47
|
-
icon: /*#__PURE__*/_jsx(CrossIcon, {
|
|
48
|
-
size: 18,
|
|
49
|
-
color: COLORS.NEUTRAL_7
|
|
50
|
-
}),
|
|
51
|
-
onPress: onClose
|
|
52
|
-
})
|
|
53
|
-
}), content]
|
|
54
|
-
})
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
const styles = StyleSheet.create({
|
|
60
|
-
overlay: {
|
|
61
|
-
...StyleSheet.absoluteFillObject,
|
|
62
|
-
justifyContent: 'center',
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
backgroundColor: 'rgba(0, 0, 0, 0.2)',
|
|
65
|
-
zIndex: 10001
|
|
66
|
-
},
|
|
67
|
-
container: {
|
|
68
|
-
position: 'relative',
|
|
69
|
-
justifyContent: 'space-between',
|
|
70
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
71
|
-
minWidth: 300,
|
|
72
|
-
maxWidth: 957,
|
|
73
|
-
borderRadius: BORDER_RADIUS['400'],
|
|
74
|
-
paddingHorizontal: SPACING['1600'],
|
|
75
|
-
paddingVertical: SPACING['800'],
|
|
76
|
-
gap: SPACING['600'],
|
|
77
|
-
...SHADOWS['5']
|
|
78
|
-
},
|
|
79
|
-
closeButton: {
|
|
80
|
-
position: 'absolute',
|
|
81
|
-
top: SPACING['400'],
|
|
82
|
-
right: SPACING['400']
|
|
83
|
-
},
|
|
84
|
-
backgroundWrapper: {
|
|
85
|
-
...StyleSheet.absoluteFillObject,
|
|
86
|
-
zIndex: -1
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
//# sourceMappingURL=Modal.js.map
|