@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
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AnimatedCard = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
-
var _GoodDrawingSparks = require("./GoodDrawingSparks.js");
|
|
12
|
-
var _CorrectAnswerSparks = require("./CorrectAnswerSparks.js");
|
|
13
|
-
var _EOABadge = require("../../ui/EOABadge.js");
|
|
14
|
-
var _SparkIcon = require("../../ui/SparkIcon.js");
|
|
15
|
-
var _types = require("../../types.js");
|
|
16
|
-
var _constants = require("../../constants.js");
|
|
17
|
-
var _types2 = require("../../../celebrations/types.js");
|
|
18
|
-
var _Celebrations = require("../../../celebrations/components/Celebrations.js");
|
|
19
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
const AnimatedCard = exports.AnimatedCard = /*#__PURE__*/(0, _react.memo)(({
|
|
23
|
-
variant,
|
|
24
|
-
textContent,
|
|
25
|
-
shouldTriggerSparkles,
|
|
26
|
-
solvedAmount = 0,
|
|
27
|
-
problemsAmount = 0,
|
|
28
|
-
gbdAmount = 0,
|
|
29
|
-
delay = 0,
|
|
30
|
-
onAnimationEnd
|
|
31
|
-
}) => {
|
|
32
|
-
const celebrationsRef = (0, _react.useRef)(null);
|
|
33
|
-
const cardOpacity = (0, _reactNativeReanimated.useSharedValue)(_constants.OPACITY.initial);
|
|
34
|
-
const cardWidth = (0, _reactNativeReanimated.useSharedValue)(_constants.CARD_DIMENSIONS.initialWidth);
|
|
35
|
-
const badgeTranslateX = (0, _reactNativeReanimated.useSharedValue)(_constants.BADGE_PARAMS.initialTranslateX);
|
|
36
|
-
const badgeRotation = (0, _reactNativeReanimated.useSharedValue)(_constants.BADGE_PARAMS.initialRotation);
|
|
37
|
-
const badgeScale = (0, _reactNativeReanimated.useSharedValue)(_constants.BADGE_PARAMS.initialScale);
|
|
38
|
-
const statsOpacity = (0, _reactNativeReanimated.useSharedValue)(_constants.OPACITY.initial);
|
|
39
|
-
const delaySv = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
40
|
-
const starOffsetLeft = gbdAmount > 9 ? 70 : 55;
|
|
41
|
-
const animatedCardStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
42
|
-
const progress = (0, _reactNativeReanimated.interpolate)(statsOpacity.value, [_constants.OPACITY.initial, _constants.OPACITY.final], [_constants.OPACITY.initial, _constants.OPACITY.final]);
|
|
43
|
-
const backgroundColor = (0, _reactNativeReanimated.interpolateColor)(progress, [_constants.OPACITY.initial, _constants.OPACITY.final], [_constants.VARIANT_COLORS[variant].initial, _constants.VARIANT_COLORS[variant].final]);
|
|
44
|
-
const height = (0, _reactNativeReanimated.interpolate)(cardWidth.value, [_constants.CARD_DIMENSIONS.initialWidth, _constants.CARD_DIMENSIONS.finalWidth], [_constants.CARD_DIMENSIONS.initialHeight, _constants.CARD_DIMENSIONS.finalHeight]);
|
|
45
|
-
return {
|
|
46
|
-
opacity: cardOpacity.value,
|
|
47
|
-
width: cardWidth.value,
|
|
48
|
-
height,
|
|
49
|
-
backgroundColor
|
|
50
|
-
};
|
|
51
|
-
}, [statsOpacity, cardOpacity, cardWidth]);
|
|
52
|
-
const animatedBadgeStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
53
|
-
transform: [{
|
|
54
|
-
translateX: badgeTranslateX.value
|
|
55
|
-
}, {
|
|
56
|
-
rotate: `${badgeRotation.value}deg`
|
|
57
|
-
}, {
|
|
58
|
-
scale: badgeScale.value
|
|
59
|
-
}]
|
|
60
|
-
}), [badgeTranslateX, badgeRotation, badgeScale]);
|
|
61
|
-
const animatedStatsStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
62
|
-
return {
|
|
63
|
-
opacity: statsOpacity.value
|
|
64
|
-
};
|
|
65
|
-
}, [statsOpacity]);
|
|
66
|
-
const statsSubtitle = (() => {
|
|
67
|
-
if (variant === _types.AnimatedCardVariant.CORRECT_ANSWER) {
|
|
68
|
-
if (solvedAmount > 1) {
|
|
69
|
-
return textContent.stats?.correctAnswersPlural;
|
|
70
|
-
}
|
|
71
|
-
return textContent.stats?.correctAnswers;
|
|
72
|
-
} else {
|
|
73
|
-
if (gbdAmount > 1) {
|
|
74
|
-
return textContent.stats?.goodCalculationsPlural;
|
|
75
|
-
}
|
|
76
|
-
return textContent.stats?.goodCalculations;
|
|
77
|
-
}
|
|
78
|
-
})();
|
|
79
|
-
const runCelebration = () => {
|
|
80
|
-
if (variant === _types.AnimatedCardVariant.CORRECT_ANSWER) {
|
|
81
|
-
celebrationsRef.current?.play(_types2.CelebrationVariant.CORRECT_FINISH_ASSIGNMENT);
|
|
82
|
-
} else {
|
|
83
|
-
celebrationsRef.current?.play(_types2.CelebrationVariant.GBD_FINISH_ASSIGNMENT);
|
|
84
|
-
}
|
|
85
|
-
onAnimationEnd?.();
|
|
86
|
-
};
|
|
87
|
-
(0, _react.useEffect)(() => {
|
|
88
|
-
(0, _reactNativeReanimated.runOnUI)(() => {
|
|
89
|
-
'worklet';
|
|
90
|
-
|
|
91
|
-
const step3 = () => {
|
|
92
|
-
badgeTranslateX.value = (0, _reactNativeReanimated.withSpring)(_constants.BADGE_PARAMS.finalTranslateX, _constants.SPRING_CONFIG_STEP_3);
|
|
93
|
-
statsOpacity.value = (0, _reactNativeReanimated.withDelay)(80, (0, _reactNativeReanimated.withSpring)(_constants.OPACITY.final, _constants.SPRING_CONFIG_STEP_3));
|
|
94
|
-
};
|
|
95
|
-
const step2 = () => {
|
|
96
|
-
badgeTranslateX.value = (0, _reactNativeReanimated.withSpring)(_constants.BADGE_PARAMS.intermediateTranslateX, _constants.SPRING_CONFIG);
|
|
97
|
-
cardWidth.value = (0, _reactNativeReanimated.withSpring)(_constants.CARD_DIMENSIONS.finalWidth, _constants.SPRING_CONFIG);
|
|
98
|
-
badgeRotation.value = (0, _reactNativeReanimated.withSpring)(0, _constants.SPRING_CONFIG);
|
|
99
|
-
badgeScale.value = (0, _reactNativeReanimated.withSpring)(1, _constants.SPRING_CONFIG, () => {
|
|
100
|
-
delaySv.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
101
|
-
duration: _constants.ANIMATION_DELAYS.step3
|
|
102
|
-
}, () => {
|
|
103
|
-
step3();
|
|
104
|
-
delaySv.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
105
|
-
duration: 100
|
|
106
|
-
}, finished => {
|
|
107
|
-
if (finished) {
|
|
108
|
-
(0, _reactNativeReanimated.runOnJS)(runCelebration)();
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
const step1 = () => {
|
|
115
|
-
cardOpacity.value = (0, _reactNativeReanimated.withDelay)(delay, (0, _reactNativeReanimated.withSpring)(_constants.OPACITY.final, _constants.SPRING_CONFIG, () => {
|
|
116
|
-
step2();
|
|
117
|
-
}));
|
|
118
|
-
};
|
|
119
|
-
step1();
|
|
120
|
-
})();
|
|
121
|
-
}, []);
|
|
122
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
123
|
-
style: styles.cardContainer,
|
|
124
|
-
children: [variant === _types.AnimatedCardVariant.CORRECT_ANSWER ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CorrectAnswerSparks.CorrectAnswerSparks, {
|
|
125
|
-
color: _reactNativeUi.COLORS.GREEN_3,
|
|
126
|
-
shouldStartAnimation: shouldTriggerSparkles
|
|
127
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_GoodDrawingSparks.GoodDrawingSparks, {
|
|
128
|
-
color: _reactNativeUi.COLORS.ORANGE_3,
|
|
129
|
-
shouldStartAnimation: shouldTriggerSparkles
|
|
130
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Celebrations.Celebrations, {
|
|
131
|
-
modelRef: celebrationsRef,
|
|
132
|
-
style: styles.celebrations
|
|
133
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
134
|
-
style: [styles.card, animatedCardStyle],
|
|
135
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
136
|
-
style: styles.cardContent,
|
|
137
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
138
|
-
style: [styles.badgeContainer, animatedBadgeStyle],
|
|
139
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EOABadge.EOABadge, {
|
|
140
|
-
variant: variant,
|
|
141
|
-
color: _constants.VARIANT_COLORS[variant].primary,
|
|
142
|
-
size: 88,
|
|
143
|
-
iconSize: 56
|
|
144
|
-
})
|
|
145
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
|
|
146
|
-
style: [styles.statsWrapper, animatedStatsStyle],
|
|
147
|
-
children: [variant === _types.AnimatedCardVariant.GOOD_DRAWING && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
148
|
-
style: [styles.starContainer, {
|
|
149
|
-
left: starOffsetLeft
|
|
150
|
-
}],
|
|
151
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SparkIcon.SparkIcon, {
|
|
152
|
-
size: 20,
|
|
153
|
-
color: _constants.VARIANT_COLORS[variant].initial
|
|
154
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
155
|
-
style: styles.starCircle
|
|
156
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SparkIcon.SparkIcon, {
|
|
157
|
-
size: 12,
|
|
158
|
-
color: _constants.VARIANT_COLORS[variant].initial
|
|
159
|
-
})]
|
|
160
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
161
|
-
style: styles.statsValueContainer,
|
|
162
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
163
|
-
variant: "h1",
|
|
164
|
-
style: [styles.largeText, {
|
|
165
|
-
color: _constants.VARIANT_COLORS[variant].primary
|
|
166
|
-
}],
|
|
167
|
-
children: variant === _types.AnimatedCardVariant.CORRECT_ANSWER ? solvedAmount : gbdAmount
|
|
168
|
-
}), variant === _types.AnimatedCardVariant.CORRECT_ANSWER && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeUi.Typography, {
|
|
169
|
-
variant: "h5",
|
|
170
|
-
style: styles.smallText,
|
|
171
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
172
|
-
style: styles.slash,
|
|
173
|
-
children: '/'
|
|
174
|
-
}), problemsAmount]
|
|
175
|
-
})]
|
|
176
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
177
|
-
variant: "h3",
|
|
178
|
-
style: styles.cardTitle,
|
|
179
|
-
children: statsSubtitle
|
|
180
|
-
})]
|
|
181
|
-
})]
|
|
182
|
-
})
|
|
183
|
-
})]
|
|
184
|
-
});
|
|
185
|
-
});
|
|
186
|
-
const styles = _reactNative.StyleSheet.create({
|
|
187
|
-
cardContainer: {
|
|
188
|
-
height: _constants.CARD_DIMENSIONS.finalHeight,
|
|
189
|
-
width: _constants.CARD_DIMENSIONS.finalWidth,
|
|
190
|
-
justifyContent: 'center',
|
|
191
|
-
alignItems: 'center'
|
|
192
|
-
},
|
|
193
|
-
card: {
|
|
194
|
-
padding: _reactNativeUi.SPACING[200],
|
|
195
|
-
borderRadius: _reactNativeUi.SPACING[400]
|
|
196
|
-
},
|
|
197
|
-
cardContent: {
|
|
198
|
-
flex: 1,
|
|
199
|
-
gap: _reactNativeUi.SPACING[100],
|
|
200
|
-
borderRadius: _reactNativeUi.BORDER_RADIUS[200],
|
|
201
|
-
flexDirection: 'row',
|
|
202
|
-
alignItems: 'center',
|
|
203
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1
|
|
204
|
-
},
|
|
205
|
-
badgeContainer: {
|
|
206
|
-
borderRadius: _reactNativeUi.BORDER_RADIUS[400],
|
|
207
|
-
marginRight: 50
|
|
208
|
-
},
|
|
209
|
-
statsWrapper: {
|
|
210
|
-
padding: _reactNativeUi.SPACING[100],
|
|
211
|
-
gap: _reactNativeUi.SPACING[100]
|
|
212
|
-
},
|
|
213
|
-
statsValueContainer: {
|
|
214
|
-
flexDirection: 'row',
|
|
215
|
-
height: _reactNativeUi.IS_MOBILE ? 42 : 'auto',
|
|
216
|
-
paddingHorizontal: _reactNativeUi.SPACING[100],
|
|
217
|
-
marginVertical: _reactNativeUi.SPACING[100]
|
|
218
|
-
},
|
|
219
|
-
largeText: {
|
|
220
|
-
textAlign: 'center',
|
|
221
|
-
textAlignVertical: 'bottom',
|
|
222
|
-
fontSize: _reactNativeUi.IS_MOBILE ? 56 : 60,
|
|
223
|
-
fontWeight: '700',
|
|
224
|
-
lineHeight: _reactNativeUi.IS_MOBILE ? 54 : 46
|
|
225
|
-
},
|
|
226
|
-
slash: {
|
|
227
|
-
paddingRight: 1
|
|
228
|
-
},
|
|
229
|
-
smallText: {
|
|
230
|
-
fontSize: 16,
|
|
231
|
-
fontWeight: '700',
|
|
232
|
-
lineHeight: 16,
|
|
233
|
-
color: _reactNativeUi.COLORS.NEUTRAL_6,
|
|
234
|
-
alignSelf: 'flex-end'
|
|
235
|
-
},
|
|
236
|
-
cardTitle: {
|
|
237
|
-
color: _reactNativeUi.COLORS.NEUTRAL_7,
|
|
238
|
-
padding: _reactNativeUi.SPACING[100]
|
|
239
|
-
},
|
|
240
|
-
starContainer: {
|
|
241
|
-
position: 'absolute',
|
|
242
|
-
top: 10
|
|
243
|
-
},
|
|
244
|
-
starCircle: {
|
|
245
|
-
width: 4,
|
|
246
|
-
height: 4,
|
|
247
|
-
borderRadius: 5,
|
|
248
|
-
backgroundColor: _reactNativeUi.COLORS.ORANGE_2
|
|
249
|
-
},
|
|
250
|
-
celebrations: {
|
|
251
|
-
top: 0,
|
|
252
|
-
zIndex: 100000
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
//# sourceMappingURL=AnimatedCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeUi","_GoodDrawingSparks","_CorrectAnswerSparks","_EOABadge","_SparkIcon","_types","_constants","_types2","_Celebrations","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AnimatedCard","exports","memo","variant","textContent","shouldTriggerSparkles","solvedAmount","problemsAmount","gbdAmount","delay","onAnimationEnd","celebrationsRef","useRef","cardOpacity","useSharedValue","OPACITY","initial","cardWidth","CARD_DIMENSIONS","initialWidth","badgeTranslateX","BADGE_PARAMS","initialTranslateX","badgeRotation","initialRotation","badgeScale","initialScale","statsOpacity","delaySv","starOffsetLeft","animatedCardStyle","useAnimatedStyle","progress","interpolate","value","final","backgroundColor","interpolateColor","VARIANT_COLORS","height","finalWidth","initialHeight","finalHeight","opacity","width","animatedBadgeStyle","transform","translateX","rotate","scale","animatedStatsStyle","statsSubtitle","AnimatedCardVariant","CORRECT_ANSWER","stats","correctAnswersPlural","correctAnswers","goodCalculationsPlural","goodCalculations","runCelebration","current","play","CelebrationVariant","CORRECT_FINISH_ASSIGNMENT","GBD_FINISH_ASSIGNMENT","useEffect","runOnUI","step3","withSpring","finalTranslateX","SPRING_CONFIG_STEP_3","withDelay","step2","intermediateTranslateX","SPRING_CONFIG","withTiming","duration","ANIMATION_DELAYS","finished","runOnJS","step1","jsxs","View","style","styles","cardContainer","children","jsx","CorrectAnswerSparks","color","COLORS","GREEN_3","shouldStartAnimation","GoodDrawingSparks","ORANGE_3","Celebrations","modelRef","celebrations","card","cardContent","badgeContainer","EOABadge","primary","size","iconSize","statsWrapper","GOOD_DRAWING","starContainer","left","SparkIcon","starCircle","statsValueContainer","Typography","largeText","smallText","Text","slash","cardTitle","StyleSheet","create","justifyContent","alignItems","padding","SPACING","borderRadius","flex","gap","BORDER_RADIUS","flexDirection","NEUTRAL_1","marginRight","IS_MOBILE","paddingHorizontal","marginVertical","textAlign","textAlignVertical","fontSize","fontWeight","lineHeight","paddingRight","NEUTRAL_6","alignSelf","NEUTRAL_7","position","top","ORANGE_2","zIndex"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/AnimatedCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAWA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AASA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AAA4E,IAAAY,WAAA,GAAAZ,OAAA;AAAA,SAAAa,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAf,wBAAAe,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAA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,EAAE;IACVlE,KAAK,EAAE,CAAC;IACRL,MAAM,EAAE,CAAC;IACTqF,YAAY,EAAE,CAAC;IACfxF,eAAe,EAAEsD,qBAAM,CAACuD;EAC1B,CAAC;EACDhD,YAAY,EAAE;IACZ+C,GAAG,EAAE,CAAC;IACNE,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CorrectAnswer = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _effectorReact = require("effector-react");
|
|
10
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
-
var _AnimatedCard = require("./AnimatedCard.js");
|
|
12
|
-
var _PracticeButtonGroup = require("../../ui/PracticeButtonGroup.js");
|
|
13
|
-
var _constants = require("../../constants.js");
|
|
14
|
-
var _types = require("../../types.js");
|
|
15
|
-
var _useKeyboard = require("../../../../shared/hooks/useKeyboard.js");
|
|
16
|
-
var _constants2 = require("../../../../lib/constants.js");
|
|
17
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
const CorrectAnswer = ({
|
|
21
|
-
textContent,
|
|
22
|
-
model,
|
|
23
|
-
onPracticePress
|
|
24
|
-
}) => {
|
|
25
|
-
const popUpData = (0, _effectorReact.useUnit)(model.$popUpData);
|
|
26
|
-
const modalVariant = (0, _effectorReact.useUnit)(model.$modalVariant);
|
|
27
|
-
const [cardsAnimationCompleted, setCardsAnimationCompleted] = (0, _react.useState)(false);
|
|
28
|
-
const {
|
|
29
|
-
user,
|
|
30
|
-
stats,
|
|
31
|
-
hasRecommendations,
|
|
32
|
-
isExam = false,
|
|
33
|
-
newerAssignmentAvailable
|
|
34
|
-
} = popUpData ?? {};
|
|
35
|
-
const isPracticeButtonVisible = !!(user?.practiceMode && !newerAssignmentAvailable && (isExam || hasRecommendations));
|
|
36
|
-
const handlePracticeButtonPress = () => {
|
|
37
|
-
onPracticePress?.();
|
|
38
|
-
model.hidePopUp();
|
|
39
|
-
};
|
|
40
|
-
const onCorrectAnswerAnimationEnd = (0, _react.useCallback)(() => {
|
|
41
|
-
if (stats?.goodDrawingAmount === 0) {
|
|
42
|
-
setCardsAnimationCompleted(true);
|
|
43
|
-
}
|
|
44
|
-
}, []);
|
|
45
|
-
const onGBDAnimationEnd = (0, _react.useCallback)(() => {
|
|
46
|
-
setCardsAnimationCompleted(true);
|
|
47
|
-
}, []);
|
|
48
|
-
(0, _useKeyboard.useKeyBoard)(event => {
|
|
49
|
-
if (event.key === _constants2.KeyboardKeys.ENTER) {
|
|
50
|
-
isPracticeButtonVisible ? handlePracticeButtonPress() : model.hidePopUpAndLeave();
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
54
|
-
style: [styles.wrapper, modalVariant !== _types.EOAModalVariant.HAS_GOOD_DRAWING && {
|
|
55
|
-
alignItems: 'center'
|
|
56
|
-
}],
|
|
57
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
58
|
-
style: styles.header,
|
|
59
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
60
|
-
variant: "large",
|
|
61
|
-
style: styles.title,
|
|
62
|
-
children: textContent?.title
|
|
63
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
64
|
-
variant: "h4",
|
|
65
|
-
style: styles.subtitle,
|
|
66
|
-
children: `${textContent?.subtitle} ${user?.firstName}!`
|
|
67
|
-
})]
|
|
68
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
69
|
-
style: styles.animationContainer,
|
|
70
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AnimatedCard.AnimatedCard, {
|
|
71
|
-
variant: _types.AnimatedCardVariant.CORRECT_ANSWER,
|
|
72
|
-
textContent: textContent,
|
|
73
|
-
solvedAmount: stats?.solvedAmount,
|
|
74
|
-
problemsAmount: stats?.problemsAmount,
|
|
75
|
-
shouldTriggerSparkles: cardsAnimationCompleted,
|
|
76
|
-
onAnimationEnd: onCorrectAnswerAnimationEnd
|
|
77
|
-
}), modalVariant === _types.EOAModalVariant.HAS_GOOD_DRAWING && /*#__PURE__*/(0, _jsxRuntime.jsx)(_AnimatedCard.AnimatedCard, {
|
|
78
|
-
variant: _types.AnimatedCardVariant.GOOD_DRAWING,
|
|
79
|
-
textContent: textContent,
|
|
80
|
-
gbdAmount: stats?.goodDrawingAmount,
|
|
81
|
-
shouldTriggerSparkles: cardsAnimationCompleted,
|
|
82
|
-
onAnimationEnd: onGBDAnimationEnd,
|
|
83
|
-
delay: _constants.GOOD_DRAWING_CARD_APPEARENCE_DELAY
|
|
84
|
-
})]
|
|
85
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PracticeButtonGroup.PracticeButtonGroup, {
|
|
86
|
-
textContent: textContent,
|
|
87
|
-
isPracticeButtonVisible: isPracticeButtonVisible,
|
|
88
|
-
isExam: isExam,
|
|
89
|
-
onLeftButtonPress: model.hidePopUpAndLeave,
|
|
90
|
-
onRightButtonPress: handlePracticeButtonPress
|
|
91
|
-
})]
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
exports.CorrectAnswer = CorrectAnswer;
|
|
95
|
-
const styles = _reactNative.StyleSheet.create({
|
|
96
|
-
wrapper: {
|
|
97
|
-
flex: 1,
|
|
98
|
-
gap: _reactNativeUi.SPACING[400]
|
|
99
|
-
},
|
|
100
|
-
header: {
|
|
101
|
-
gap: _reactNativeUi.SPACING[100],
|
|
102
|
-
alignItems: 'center'
|
|
103
|
-
},
|
|
104
|
-
title: {
|
|
105
|
-
fontWeight: '900',
|
|
106
|
-
lineHeight: 54,
|
|
107
|
-
fontSize: 36,
|
|
108
|
-
paddingVertical: _reactNativeUi.SPACING[100],
|
|
109
|
-
color: _reactNativeUi.COLORS.NEUTRAL_9,
|
|
110
|
-
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAires
|
|
111
|
-
},
|
|
112
|
-
subtitle: {
|
|
113
|
-
color: _reactNativeUi.COLORS.NEUTRAL_7,
|
|
114
|
-
paddingVertical: _reactNativeUi.SPACING[100],
|
|
115
|
-
lineHeight: 25
|
|
116
|
-
},
|
|
117
|
-
animationContainer: {
|
|
118
|
-
flex: 1,
|
|
119
|
-
flexDirection: 'row',
|
|
120
|
-
justifyContent: 'center',
|
|
121
|
-
gap: _reactNativeUi.SPACING[800],
|
|
122
|
-
paddingTop: _reactNativeUi.SPACING[800],
|
|
123
|
-
paddingBottom: _reactNativeUi.SPACING[1600]
|
|
124
|
-
},
|
|
125
|
-
buttonsContainer: {
|
|
126
|
-
height: 62,
|
|
127
|
-
flexDirection: 'row',
|
|
128
|
-
alignItems: 'center',
|
|
129
|
-
gap: _reactNativeUi.SPACING[200],
|
|
130
|
-
paddingVertical: _reactNativeUi.SPACING[300]
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
//# sourceMappingURL=CorrectAnswer.js.map
|
package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_reactNativeUi","_AnimatedCard","_PracticeButtonGroup","_constants","_types","_useKeyboard","_constants2","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CorrectAnswer","textContent","model","onPracticePress","popUpData","useUnit","$popUpData","modalVariant","$modalVariant","cardsAnimationCompleted","setCardsAnimationCompleted","useState","user","stats","hasRecommendations","isExam","newerAssignmentAvailable","isPracticeButtonVisible","practiceMode","handlePracticeButtonPress","hidePopUp","onCorrectAnswerAnimationEnd","useCallback","goodDrawingAmount","onGBDAnimationEnd","useKeyBoard","event","key","KeyboardKeys","ENTER","hidePopUpAndLeave","jsxs","View","style","styles","wrapper","EOAModalVariant","HAS_GOOD_DRAWING","alignItems","children","header","jsx","Typography","variant","title","subtitle","firstName","animationContainer","AnimatedCard","AnimatedCardVariant","CORRECT_ANSWER","solvedAmount","problemsAmount","shouldTriggerSparkles","onAnimationEnd","GOOD_DRAWING","gbdAmount","delay","GOOD_DRAWING_CARD_APPEARENCE_DELAY","PracticeButtonGroup","onLeftButtonPress","onRightButtonPress","exports","StyleSheet","create","flex","gap","SPACING","fontWeight","lineHeight","fontSize","paddingVertical","color","COLORS","NEUTRAL_9","fontFamily","FONT_FAMILY","buenosAires","NEUTRAL_7","flexDirection","justifyContent","paddingTop","paddingBottom","buttonsContainer","height"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA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BE,UAAU,EAAE;EACd,CAAC;EACDtB,kBAAkB,EAAE;IAClBkB,IAAI,EAAE,CAAC;IACPc,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBd,GAAG,EAAEC,sBAAO,CAAC,GAAG,CAAC;IACjBc,UAAU,EAAEd,sBAAO,CAAC,GAAG,CAAC;IACxBe,aAAa,EAAEf,sBAAO,CAAC,IAAI;EAC7B,CAAC;EACDgB,gBAAgB,EAAE;IAChBC,MAAM,EAAE,EAAE;IACVL,aAAa,EAAE,KAAK;IACpBzC,UAAU,EAAE,QAAQ;IACpB4B,GAAG,EAAEC,sBAAO,CAAC,GAAG,CAAC;IACjBI,eAAe,EAAEJ,sBAAO,CAAC,GAAG;EAC9B;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CorrectAnswerSparks = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Spark = require("./Spark.js");
|
|
10
|
-
var _constants = require("../../constants.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const CA_SPARKS_MAP = [{
|
|
14
|
-
id: '1',
|
|
15
|
-
x: 22,
|
|
16
|
-
y: 20,
|
|
17
|
-
size: 14,
|
|
18
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.3
|
|
19
|
-
}, {
|
|
20
|
-
id: '2',
|
|
21
|
-
x: 128,
|
|
22
|
-
y: 127,
|
|
23
|
-
size: 21,
|
|
24
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.14
|
|
25
|
-
}, {
|
|
26
|
-
id: '3',
|
|
27
|
-
x: 268,
|
|
28
|
-
y: 44,
|
|
29
|
-
size: 28,
|
|
30
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.4
|
|
31
|
-
}];
|
|
32
|
-
const CorrectAnswerSparks = ({
|
|
33
|
-
color,
|
|
34
|
-
shouldStartAnimation
|
|
35
|
-
}) => {
|
|
36
|
-
if (!shouldStartAnimation) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
40
|
-
style: styles.container,
|
|
41
|
-
children: CA_SPARKS_MAP.map(star => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spark.Spark, {
|
|
42
|
-
color: color,
|
|
43
|
-
...star
|
|
44
|
-
}, star.id))
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
exports.CorrectAnswerSparks = CorrectAnswerSparks;
|
|
48
|
-
const styles = _reactNative.StyleSheet.create({
|
|
49
|
-
container: {
|
|
50
|
-
position: 'absolute',
|
|
51
|
-
zIndex: 110,
|
|
52
|
-
width: '100%',
|
|
53
|
-
height: '100%'
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=CorrectAnswerSparks.js.map
|
package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Spark","_constants","_jsxRuntime","e","__esModule","default","CA_SPARKS_MAP","id","x","y","size","initialDelay","SPARKS_ANIMATION_DELAY","CorrectAnswerSparks","color","shouldStartAnimation","jsx","View","style","styles","container","children","map","star","Spark","exports","StyleSheet","create","position","zIndex","width","height"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA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OAAA,CAAAZ,mBAAA,GAAAA,mBAAA;AAED,MAAMM,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,GAAG;IACXC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.GoodDrawingSparks = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Spark = require("./Spark.js");
|
|
10
|
-
var _constants = require("../../constants.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const GD_SPARKS_MAP = [{
|
|
14
|
-
id: '1',
|
|
15
|
-
x: 20,
|
|
16
|
-
y: 135.5,
|
|
17
|
-
size: 14,
|
|
18
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.25
|
|
19
|
-
}, {
|
|
20
|
-
id: '2',
|
|
21
|
-
x: 25,
|
|
22
|
-
y: 19.5,
|
|
23
|
-
size: 21,
|
|
24
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY
|
|
25
|
-
}, {
|
|
26
|
-
id: '3',
|
|
27
|
-
x: 115,
|
|
28
|
-
y: 132,
|
|
29
|
-
size: 28,
|
|
30
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.1
|
|
31
|
-
}, {
|
|
32
|
-
id: '4',
|
|
33
|
-
x: 315,
|
|
34
|
-
y: 42,
|
|
35
|
-
size: 14,
|
|
36
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.31
|
|
37
|
-
}, {
|
|
38
|
-
id: '5',
|
|
39
|
-
x: 326,
|
|
40
|
-
y: 24.5,
|
|
41
|
-
size: 21,
|
|
42
|
-
initialDelay: _constants.SPARKS_ANIMATION_DELAY * 1.36
|
|
43
|
-
}];
|
|
44
|
-
const GoodDrawingSparks = ({
|
|
45
|
-
color,
|
|
46
|
-
shouldStartAnimation
|
|
47
|
-
}) => {
|
|
48
|
-
if (!shouldStartAnimation) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
52
|
-
style: styles.container,
|
|
53
|
-
children: GD_SPARKS_MAP.map(star => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spark.Spark, {
|
|
54
|
-
color: color,
|
|
55
|
-
...star
|
|
56
|
-
}, star.id))
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
exports.GoodDrawingSparks = GoodDrawingSparks;
|
|
60
|
-
const styles = _reactNative.StyleSheet.create({
|
|
61
|
-
container: {
|
|
62
|
-
position: 'absolute',
|
|
63
|
-
zIndex: 110,
|
|
64
|
-
width: '100%',
|
|
65
|
-
height: '100%'
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=GoodDrawingSparks.js.map
|
package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Spark","_constants","_jsxRuntime","e","__esModule","default","GD_SPARKS_MAP","id","x","y","size","initialDelay","SPARKS_ANIMATION_DELAY","GoodDrawingSparks","color","shouldStartAnimation","jsx","View","style","styles","container","children","map","star","Spark","exports","StyleSheet","create","position","zIndex","width","height"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.tsx"],"mappings":";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A,CAAAc,GAAA,EAACjB,YAAA,CAAAkB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,EAC3Bf,aAAa,CAACgB,GAAG,CAAEC,IAAI,iBACtB,IAAArB,WAAA,CAAAc,GAAA,EAAChB,MAAA,CAAAwB,KAAK;MAAeV,KAAK,EAAEA,KAAM;MAAA,GAAKS;IAAI,GAA/BA,IAAI,CAAChB,EAA6B,CAC/C;EAAC,CACE,CAAC;AAEX,CAAC;AAAAkB,OAAA,CAAAZ,iBAAA,GAAAA,iBAAA;AAED,MAAMM,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,GAAG;IACXC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Spark = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
9
|
-
var _SparkIcon = require("../../ui/SparkIcon.js");
|
|
10
|
-
var _useSparkAnimation = require("../../hooks/useSparkAnimation.js");
|
|
11
|
-
var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
const SPARKS_SPRING_CONFIG = {
|
|
15
|
-
mass: 1.8,
|
|
16
|
-
damping: 25,
|
|
17
|
-
stiffness: 293,
|
|
18
|
-
overshootClamping: false,
|
|
19
|
-
restDisplacementThreshold: 0.01,
|
|
20
|
-
restSpeedThreshold: 2
|
|
21
|
-
};
|
|
22
|
-
const HOLD_DELAY = 800;
|
|
23
|
-
const ROTATION_ANGLE = 90;
|
|
24
|
-
const Spark = ({
|
|
25
|
-
id,
|
|
26
|
-
x,
|
|
27
|
-
y,
|
|
28
|
-
size,
|
|
29
|
-
initialDelay = 350,
|
|
30
|
-
color = _reactNativeUi.COLORS.GREEN_3
|
|
31
|
-
}) => {
|
|
32
|
-
const {
|
|
33
|
-
animatedStyle
|
|
34
|
-
} = (0, _useSparkAnimation.useSparkAnimation)({
|
|
35
|
-
id,
|
|
36
|
-
initialDelay,
|
|
37
|
-
rotationAngle: ROTATION_ANGLE,
|
|
38
|
-
holdDelay: HOLD_DELAY,
|
|
39
|
-
springConfig: SPARKS_SPRING_CONFIG,
|
|
40
|
-
x,
|
|
41
|
-
y,
|
|
42
|
-
size
|
|
43
|
-
});
|
|
44
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
45
|
-
style: animatedStyle,
|
|
46
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SparkIcon.SparkIcon, {
|
|
47
|
-
size: size,
|
|
48
|
-
color: color
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
exports.Spark = Spark;
|
|
53
|
-
//# sourceMappingURL=Spark.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_SparkIcon","_useSparkAnimation","_reactNativeReanimated","_jsxRuntime","e","__esModule","default","SPARKS_SPRING_CONFIG","mass","damping","stiffness","overshootClamping","restDisplacementThreshold","restSpeedThreshold","HOLD_DELAY","ROTATION_ANGLE","Spark","id","x","y","size","initialDelay","color","COLORS","GREEN_3","animatedStyle","useSparkAnimation","rotationAngle","holdDelay","springConfig","jsx","View","style","children","SparkIcon","exports"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/CorrectAnswer/Spark.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAA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