@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.
Files changed (801) hide show
  1. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +2 -1
  2. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  4. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +41 -0
  5. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -0
  6. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +22 -19
  7. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  8. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +32 -32
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  10. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +11 -13
  11. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  12. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +8 -28
  13. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  14. package/dist/commonjs/features/chatbot/components/Chatbot.js +5 -7
  15. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  16. package/dist/commonjs/features/chatbot/context/ChatBotModelContext.js +17 -0
  17. package/dist/commonjs/features/chatbot/context/ChatBotModelContext.js.map +1 -0
  18. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +51 -0
  19. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
  20. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +116 -0
  21. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -0
  22. package/dist/commonjs/features/chatbot/index.js +0 -7
  23. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  24. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +145 -121
  25. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  26. package/dist/commonjs/features/chatbot/model/{ChatBotMessageHandler.js → ChatBotThreadManager.js} +44 -22
  27. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -0
  28. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +22 -0
  29. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -0
  30. package/dist/commonjs/features/chatbot/model/{api.js → ChatbotApi.js} +16 -1
  31. package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -0
  32. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +110 -0
  33. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +1 -0
  34. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +12 -12
  35. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  36. package/dist/commonjs/features/chatbot/model/ThreadItem.js +16 -8
  37. package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
  38. package/dist/commonjs/features/chatbot/model/constants.js.map +1 -1
  39. package/dist/commonjs/features/chatbot/model/messagesHelper.js +7 -7
  40. package/dist/commonjs/features/chatbot/model/messagesHelper.js.map +1 -1
  41. package/dist/commonjs/features/chatbot/model/t2s.js +18 -13
  42. package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
  43. package/dist/commonjs/features/chatbot/model/translation.helpers.js.map +1 -1
  44. package/dist/commonjs/features/chatbot/model/translation.js +54 -45
  45. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  46. package/dist/commonjs/features/chatbot/types/api.types.js +4 -0
  47. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  48. package/dist/commonjs/features/chatbot/types/units.types.js +2 -0
  49. package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -0
  50. package/dist/commonjs/index.js +0 -24
  51. package/dist/commonjs/index.js.map +1 -1
  52. package/dist/commonjs/lib/effector/createEntityFieldStore.js +4 -0
  53. package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -1
  54. package/dist/commonjs/lib/effector/withEvent.js +13 -0
  55. package/dist/commonjs/lib/effector/withEvent.js.map +1 -0
  56. package/dist/commonjs/lib/helpers/helpers.js +1 -3
  57. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  58. package/dist/commonjs/lib/helpers/randomElements.js +24 -0
  59. package/dist/commonjs/lib/helpers/randomElements.js.map +1 -0
  60. package/dist/commonjs/lib/localization/en.json +7 -1
  61. package/dist/commonjs/lib/localization/gb.json +7 -1
  62. package/dist/commonjs/lib/localization/sw.json +7 -1
  63. package/dist/commonjs/lib/types/keys.js +2 -0
  64. package/dist/commonjs/lib/types/keys.js.map +1 -0
  65. package/dist/commonjs/shared/icons/HighlighterIcon.js +36 -0
  66. package/dist/commonjs/shared/icons/HighlighterIcon.js.map +1 -0
  67. package/dist/commonjs/shared/icons/{Valentine.js → StopIcon.js} +12 -9
  68. package/dist/commonjs/shared/icons/StopIcon.js.map +1 -0
  69. package/dist/commonjs/shared/icons/icon.types.js +4 -0
  70. package/dist/commonjs/shared/translation/helpers.js +22 -6
  71. package/dist/commonjs/shared/translation/helpers.js.map +1 -1
  72. package/dist/commonjs/shared/translation/hooks.js +3 -5
  73. package/dist/commonjs/shared/translation/hooks.js.map +1 -1
  74. package/dist/commonjs/shared/translation/model.js +1 -1
  75. package/dist/commonjs/shared/translation/model.js.map +1 -1
  76. package/dist/commonjs/shared/translation/types.js +1 -1
  77. package/dist/commonjs/shared/translation/types.js.map +1 -1
  78. package/dist/commonjs/shared/translation/validation.types.js +6 -0
  79. package/dist/commonjs/shared/translation/validation.types.js.map +1 -0
  80. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +2 -1
  81. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  82. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  83. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +35 -0
  84. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -0
  85. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +23 -20
  86. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  87. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +32 -32
  88. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  89. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +11 -13
  90. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  91. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +8 -28
  92. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  93. package/dist/module/features/chatbot/components/Chatbot.js +6 -8
  94. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  95. package/dist/module/features/chatbot/context/ChatBotModelContext.js +12 -0
  96. package/dist/module/features/chatbot/context/ChatBotModelContext.js.map +1 -0
  97. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +45 -0
  98. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
  99. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +111 -0
  100. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -0
  101. package/dist/module/features/chatbot/index.js +0 -1
  102. package/dist/module/features/chatbot/index.js.map +1 -1
  103. package/dist/module/features/chatbot/model/ChatBotModel.js +147 -123
  104. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  105. package/dist/module/features/chatbot/model/{ChatBotMessageHandler.js → ChatBotThreadManager.js} +42 -20
  106. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -0
  107. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +17 -0
  108. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -0
  109. package/dist/module/features/chatbot/model/{api.js → ChatbotApi.js} +16 -1
  110. package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -0
  111. package/dist/module/features/chatbot/model/ChatsCacheModel.js +104 -0
  112. package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +1 -0
  113. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +12 -12
  114. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  115. package/dist/module/features/chatbot/model/ThreadItem.js +16 -8
  116. package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
  117. package/dist/module/features/chatbot/model/constants.js.map +1 -1
  118. package/dist/module/features/chatbot/model/messagesHelper.js +7 -7
  119. package/dist/module/features/chatbot/model/messagesHelper.js.map +1 -1
  120. package/dist/module/features/chatbot/model/t2s.js +19 -14
  121. package/dist/module/features/chatbot/model/t2s.js.map +1 -1
  122. package/dist/module/features/chatbot/model/translation.helpers.js.map +1 -1
  123. package/dist/module/features/chatbot/model/translation.js +54 -45
  124. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  125. package/dist/module/features/chatbot/types/api.types.js +2 -0
  126. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  127. package/dist/module/features/chatbot/types/units.types.js +2 -0
  128. package/dist/module/features/chatbot/types/units.types.js.map +1 -0
  129. package/dist/module/index.js +0 -2
  130. package/dist/module/index.js.map +1 -1
  131. package/dist/module/lib/effector/createEntityFieldStore.js +4 -0
  132. package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -1
  133. package/dist/module/lib/effector/withEvent.js +9 -0
  134. package/dist/module/lib/effector/withEvent.js.map +1 -0
  135. package/dist/module/lib/helpers/helpers.js +0 -1
  136. package/dist/module/lib/helpers/helpers.js.map +1 -1
  137. package/dist/module/lib/helpers/randomElements.js +20 -0
  138. package/dist/module/lib/helpers/randomElements.js.map +1 -0
  139. package/dist/module/lib/localization/en.json +7 -1
  140. package/dist/module/lib/localization/gb.json +7 -1
  141. package/dist/module/lib/localization/sw.json +7 -1
  142. package/dist/module/lib/types/keys.js +2 -0
  143. package/dist/module/lib/types/keys.js.map +1 -0
  144. package/dist/module/shared/icons/HighlighterIcon.js +29 -0
  145. package/dist/module/shared/icons/HighlighterIcon.js.map +1 -0
  146. package/dist/module/shared/icons/StopIcon.js +26 -0
  147. package/dist/module/shared/icons/StopIcon.js.map +1 -0
  148. package/dist/module/shared/icons/icon.types.js +2 -0
  149. package/dist/module/shared/translation/helpers.js +19 -5
  150. package/dist/module/shared/translation/helpers.js.map +1 -1
  151. package/dist/module/shared/translation/hooks.js +4 -6
  152. package/dist/module/shared/translation/hooks.js.map +1 -1
  153. package/dist/module/shared/translation/model.js +1 -1
  154. package/dist/module/shared/translation/model.js.map +1 -1
  155. package/dist/module/shared/translation/types.js +2 -0
  156. package/dist/module/shared/translation/types.js.map +1 -1
  157. package/dist/module/shared/translation/validation.types.js +4 -0
  158. package/dist/module/shared/translation/validation.types.js.map +1 -0
  159. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
  160. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  161. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +5 -5
  162. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  163. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +11 -0
  164. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -0
  165. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +7 -3
  166. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  167. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  168. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  169. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  170. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  171. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +2 -10
  172. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  173. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +2 -5
  174. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  175. package/dist/typescript/commonjs/features/chatbot/context/ChatBotModelContext.d.ts +4 -0
  176. package/dist/typescript/commonjs/features/chatbot/context/ChatBotModelContext.d.ts.map +1 -0
  177. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +7 -0
  178. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -0
  179. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +30 -0
  180. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -0
  181. package/dist/typescript/commonjs/features/chatbot/index.d.ts +4 -3
  182. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  183. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +24 -18
  184. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  185. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +33 -0
  186. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -0
  187. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +6 -0
  188. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -0
  189. package/dist/typescript/commonjs/features/chatbot/model/{api.d.ts → ChatbotApi.d.ts} +4 -3
  190. package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +1 -0
  191. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +27 -0
  192. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -0
  193. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +5 -3
  194. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  195. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +13 -7
  196. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  197. package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
  198. package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts +7 -5
  199. package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts.map +1 -1
  200. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +16 -6
  201. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
  202. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +7 -8
  203. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  204. package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts +2 -1
  205. package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts.map +1 -1
  206. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +2 -11
  207. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  208. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +25 -24
  209. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  210. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts +2 -7
  211. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts.map +1 -1
  212. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +2 -1
  213. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
  214. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +34 -0
  215. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -0
  216. package/dist/typescript/commonjs/index.d.ts +0 -3
  217. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  218. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts +2 -0
  219. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -1
  220. package/dist/typescript/commonjs/lib/effector/withEvent.d.ts +2 -0
  221. package/dist/typescript/commonjs/lib/effector/withEvent.d.ts.map +1 -0
  222. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +0 -1
  223. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  224. package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts +2 -0
  225. package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts.map +1 -0
  226. package/dist/typescript/commonjs/lib/types/keys.d.ts +8 -0
  227. package/dist/typescript/commonjs/lib/types/keys.d.ts.map +1 -0
  228. package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts +4 -0
  229. package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts.map +1 -0
  230. package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts +4 -0
  231. package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts.map +1 -0
  232. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts +2 -0
  233. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts.map +1 -1
  234. package/dist/typescript/commonjs/shared/translation/constants.d.ts +18 -0
  235. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  236. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +3 -2
  237. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
  238. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +2 -2
  239. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
  240. package/dist/typescript/commonjs/shared/translation/index.d.ts +0 -1
  241. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
  242. package/dist/typescript/commonjs/shared/translation/model.d.ts +41 -3
  243. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  244. package/dist/typescript/commonjs/shared/translation/types.d.ts +3 -3
  245. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  246. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +17 -0
  247. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -0
  248. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
  249. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  250. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +5 -5
  251. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  252. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +11 -0
  253. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -0
  254. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +7 -3
  255. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  256. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  257. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  258. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  259. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  260. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +2 -10
  261. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  262. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +2 -5
  263. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  264. package/dist/typescript/module/features/chatbot/context/ChatBotModelContext.d.ts +4 -0
  265. package/dist/typescript/module/features/chatbot/context/ChatBotModelContext.d.ts.map +1 -0
  266. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +7 -0
  267. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +1 -0
  268. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +30 -0
  269. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -0
  270. package/dist/typescript/module/features/chatbot/index.d.ts +4 -3
  271. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  272. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +24 -18
  273. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  274. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +33 -0
  275. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -0
  276. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +6 -0
  277. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -0
  278. package/dist/typescript/module/features/chatbot/model/{api.d.ts → ChatbotApi.d.ts} +4 -3
  279. package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +1 -0
  280. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +27 -0
  281. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -0
  282. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +5 -3
  283. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  284. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +13 -7
  285. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  286. package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
  287. package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts +7 -5
  288. package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts.map +1 -1
  289. package/dist/typescript/module/features/chatbot/model/t2s.d.ts +16 -6
  290. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
  291. package/dist/typescript/module/features/chatbot/model/translation.d.ts +7 -8
  292. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  293. package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts +2 -1
  294. package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts.map +1 -1
  295. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +2 -11
  296. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  297. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +25 -24
  298. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  299. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts +2 -7
  300. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts.map +1 -1
  301. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +2 -1
  302. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
  303. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +34 -0
  304. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -0
  305. package/dist/typescript/module/index.d.ts +0 -3
  306. package/dist/typescript/module/index.d.ts.map +1 -1
  307. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts +2 -0
  308. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -1
  309. package/dist/typescript/module/lib/effector/withEvent.d.ts +2 -0
  310. package/dist/typescript/module/lib/effector/withEvent.d.ts.map +1 -0
  311. package/dist/typescript/module/lib/helpers/helpers.d.ts +0 -1
  312. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  313. package/dist/typescript/module/lib/helpers/randomElements.d.ts +2 -0
  314. package/dist/typescript/module/lib/helpers/randomElements.d.ts.map +1 -0
  315. package/dist/typescript/module/lib/types/keys.d.ts +8 -0
  316. package/dist/typescript/module/lib/types/keys.d.ts.map +1 -0
  317. package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts +4 -0
  318. package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts.map +1 -0
  319. package/dist/typescript/module/shared/icons/StopIcon.d.ts +4 -0
  320. package/dist/typescript/module/shared/icons/StopIcon.d.ts.map +1 -0
  321. package/dist/typescript/module/shared/icons/icon.types.d.ts +2 -0
  322. package/dist/typescript/module/shared/icons/icon.types.d.ts.map +1 -1
  323. package/dist/typescript/module/shared/translation/constants.d.ts +18 -0
  324. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  325. package/dist/typescript/module/shared/translation/helpers.d.ts +3 -2
  326. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
  327. package/dist/typescript/module/shared/translation/hooks.d.ts +2 -2
  328. package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
  329. package/dist/typescript/module/shared/translation/index.d.ts +0 -1
  330. package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
  331. package/dist/typescript/module/shared/translation/model.d.ts +41 -3
  332. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  333. package/dist/typescript/module/shared/translation/types.d.ts +3 -3
  334. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  335. package/dist/typescript/module/shared/translation/validation.types.d.ts +17 -0
  336. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -0
  337. package/package.json +3 -6
  338. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +2 -4
  339. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +5 -5
  340. package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +36 -0
  341. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +27 -20
  342. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +27 -26
  343. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +9 -9
  344. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +9 -30
  345. package/src/features/chatbot/components/Chatbot.tsx +5 -11
  346. package/src/features/chatbot/context/ChatBotModelContext.ts +14 -0
  347. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +48 -0
  348. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +130 -0
  349. package/src/features/chatbot/index.ts +3 -4
  350. package/src/features/chatbot/model/ChatBotModel.ts +137 -130
  351. package/src/features/chatbot/model/{ChatBotMessageHandler.ts → ChatBotThreadManager.ts} +53 -27
  352. package/src/features/chatbot/model/ChatBoxTextManager.ts +18 -0
  353. package/src/features/chatbot/model/{api.ts → ChatbotApi.ts} +19 -2
  354. package/src/features/chatbot/model/ChatsCacheModel.ts +95 -0
  355. package/src/features/chatbot/model/DefaultMessageCreator.ts +17 -16
  356. package/src/features/chatbot/model/ThreadItem.ts +15 -10
  357. package/src/features/chatbot/model/constants.ts +2 -0
  358. package/src/features/chatbot/model/messagesHelper.ts +12 -7
  359. package/src/features/chatbot/model/t2s.ts +28 -13
  360. package/src/features/chatbot/model/translation.helpers.ts +2 -1
  361. package/src/features/chatbot/model/translation.ts +52 -46
  362. package/src/features/chatbot/types/api.types.ts +2 -12
  363. package/src/features/chatbot/types/model.types.ts +37 -32
  364. package/src/features/chatbot/types/t2s.types.ts +10 -15
  365. package/src/features/chatbot/types/translation.types.ts +2 -1
  366. package/src/features/chatbot/types/units.types.ts +37 -0
  367. package/src/index.ts +0 -3
  368. package/src/lib/effector/createEntityFieldStore.ts +9 -1
  369. package/src/lib/effector/withEvent.ts +7 -0
  370. package/src/lib/helpers/helpers.ts +0 -2
  371. package/src/lib/helpers/randomElements.ts +22 -0
  372. package/src/lib/localization/en.json +7 -1
  373. package/src/lib/localization/gb.json +7 -1
  374. package/src/lib/localization/sw.json +7 -1
  375. package/src/lib/types/keys.ts +18 -0
  376. package/src/shared/icons/HighlighterIcon.tsx +21 -0
  377. package/src/shared/icons/StopIcon.tsx +17 -0
  378. package/src/shared/icons/icon.types.ts +9 -6
  379. package/src/shared/translation/helpers.ts +22 -9
  380. package/src/shared/translation/hooks.ts +12 -16
  381. package/src/shared/translation/index.ts +0 -1
  382. package/src/shared/translation/model.ts +8 -8
  383. package/src/shared/translation/types.ts +10 -7
  384. package/src/shared/translation/validation.types.ts +26 -0
  385. package/dist/commonjs/features/celebrations/components/Celebrations.js +0 -51
  386. package/dist/commonjs/features/celebrations/components/Celebrations.js.map +0 -1
  387. package/dist/commonjs/features/celebrations/components/Particle.js +0 -85
  388. package/dist/commonjs/features/celebrations/components/Particle.js.map +0 -1
  389. package/dist/commonjs/features/celebrations/components/ParticleBatch.js +0 -47
  390. package/dist/commonjs/features/celebrations/components/ParticleBatch.js.map +0 -1
  391. package/dist/commonjs/features/celebrations/components/Spark.js +0 -23
  392. package/dist/commonjs/features/celebrations/components/Spark.js.map +0 -1
  393. package/dist/commonjs/features/celebrations/config.js +0 -224
  394. package/dist/commonjs/features/celebrations/config.js.map +0 -1
  395. package/dist/commonjs/features/celebrations/helpers.js +0 -99
  396. package/dist/commonjs/features/celebrations/helpers.js.map +0 -1
  397. package/dist/commonjs/features/celebrations/index.js +0 -28
  398. package/dist/commonjs/features/celebrations/index.js.map +0 -1
  399. package/dist/commonjs/features/celebrations/types.js +0 -15
  400. package/dist/commonjs/features/celebrations/types.js.map +0 -1
  401. package/dist/commonjs/features/chatbot/model/ChatBotMessageHandler.js.map +0 -1
  402. package/dist/commonjs/features/chatbot/model/api.js.map +0 -1
  403. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -65
  404. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +0 -1
  405. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +0 -255
  406. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +0 -1
  407. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -133
  408. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +0 -1
  409. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js +0 -56
  410. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map +0 -1
  411. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js +0 -68
  412. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map +0 -1
  413. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.js +0 -53
  414. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.js.map +0 -1
  415. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +0 -47
  416. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +0 -1
  417. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -76
  418. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +0 -1
  419. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -62
  420. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +0 -1
  421. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -109
  422. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +0 -1
  423. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js +0 -83
  424. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js.map +0 -1
  425. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
  426. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +0 -96
  427. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +0 -1
  428. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js +0 -44
  429. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js.map +0 -1
  430. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +0 -233
  431. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +0 -1
  432. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +0 -63
  433. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +0 -1
  434. package/dist/commonjs/features/endOfAssignment/components/Modal/model.js +0 -34
  435. package/dist/commonjs/features/endOfAssignment/components/Modal/model.js.map +0 -1
  436. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +0 -108
  437. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +0 -1
  438. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js +0 -107
  439. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js.map +0 -1
  440. package/dist/commonjs/features/endOfAssignment/constants.js +0 -55
  441. package/dist/commonjs/features/endOfAssignment/constants.js.map +0 -1
  442. package/dist/commonjs/features/endOfAssignment/helpers.js +0 -64
  443. package/dist/commonjs/features/endOfAssignment/helpers.js.map +0 -1
  444. package/dist/commonjs/features/endOfAssignment/hooks/useSparkAnimation.js +0 -51
  445. package/dist/commonjs/features/endOfAssignment/hooks/useSparkAnimation.js.map +0 -1
  446. package/dist/commonjs/features/endOfAssignment/index.js +0 -40
  447. package/dist/commonjs/features/endOfAssignment/index.js.map +0 -1
  448. package/dist/commonjs/features/endOfAssignment/model/model.js +0 -53
  449. package/dist/commonjs/features/endOfAssignment/model/model.js.map +0 -1
  450. package/dist/commonjs/features/endOfAssignment/types.js +0 -33
  451. package/dist/commonjs/features/endOfAssignment/types.js.map +0 -1
  452. package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js +0 -43
  453. package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js.map +0 -1
  454. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +0 -30
  455. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +0 -1
  456. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -64
  457. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +0 -1
  458. package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js +0 -29
  459. package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +0 -1
  460. package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js +0 -32
  461. package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js.map +0 -1
  462. package/dist/commonjs/lib/constants.js +0 -11
  463. package/dist/commonjs/lib/constants.js.map +0 -1
  464. package/dist/commonjs/shared/hooks/useKeyDownListener.js +0 -27
  465. package/dist/commonjs/shared/hooks/useKeyDownListener.js.map +0 -1
  466. package/dist/commonjs/shared/hooks/useKeyboard.js +0 -23
  467. package/dist/commonjs/shared/hooks/useKeyboard.js.map +0 -1
  468. package/dist/commonjs/shared/icons/Halloween.js +0 -54
  469. package/dist/commonjs/shared/icons/Halloween.js.map +0 -1
  470. package/dist/commonjs/shared/icons/Pi.js +0 -30
  471. package/dist/commonjs/shared/icons/Pi.js.map +0 -1
  472. package/dist/commonjs/shared/icons/Star.js +0 -30
  473. package/dist/commonjs/shared/icons/Star.js.map +0 -1
  474. package/dist/commonjs/shared/icons/Valentine.js.map +0 -1
  475. package/dist/commonjs/shared/icons/Winter.js +0 -32
  476. package/dist/commonjs/shared/icons/Winter.js.map +0 -1
  477. package/dist/module/features/celebrations/components/Celebrations.js +0 -45
  478. package/dist/module/features/celebrations/components/Celebrations.js.map +0 -1
  479. package/dist/module/features/celebrations/components/Particle.js +0 -77
  480. package/dist/module/features/celebrations/components/Particle.js.map +0 -1
  481. package/dist/module/features/celebrations/components/ParticleBatch.js +0 -40
  482. package/dist/module/features/celebrations/components/ParticleBatch.js.map +0 -1
  483. package/dist/module/features/celebrations/components/Spark.js +0 -17
  484. package/dist/module/features/celebrations/components/Spark.js.map +0 -1
  485. package/dist/module/features/celebrations/config.js +0 -219
  486. package/dist/module/features/celebrations/config.js.map +0 -1
  487. package/dist/module/features/celebrations/helpers.js +0 -92
  488. package/dist/module/features/celebrations/helpers.js.map +0 -1
  489. package/dist/module/features/celebrations/index.js +0 -5
  490. package/dist/module/features/celebrations/index.js.map +0 -1
  491. package/dist/module/features/celebrations/types.js +0 -11
  492. package/dist/module/features/celebrations/types.js.map +0 -1
  493. package/dist/module/features/chatbot/model/ChatBotMessageHandler.js.map +0 -1
  494. package/dist/module/features/chatbot/model/api.js.map +0 -1
  495. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +0 -59
  496. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +0 -1
  497. package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +0 -249
  498. package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +0 -1
  499. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +0 -126
  500. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +0 -1
  501. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js +0 -50
  502. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map +0 -1
  503. package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js +0 -62
  504. package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map +0 -1
  505. package/dist/module/features/endOfAssignment/components/CorrectAnswer/Spark.js +0 -47
  506. package/dist/module/features/endOfAssignment/components/CorrectAnswer/Spark.js.map +0 -1
  507. package/dist/module/features/endOfAssignment/components/EOAModal.js +0 -41
  508. package/dist/module/features/endOfAssignment/components/EOAModal.js.map +0 -1
  509. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +0 -70
  510. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +0 -1
  511. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +0 -56
  512. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +0 -1
  513. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +0 -103
  514. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +0 -1
  515. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js +0 -77
  516. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js.map +0 -1
  517. package/dist/module/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
  518. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +0 -89
  519. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +0 -1
  520. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js +0 -38
  521. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js.map +0 -1
  522. package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +0 -226
  523. package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +0 -1
  524. package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +0 -56
  525. package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +0 -1
  526. package/dist/module/features/endOfAssignment/components/Modal/model.js +0 -29
  527. package/dist/module/features/endOfAssignment/components/Modal/model.js.map +0 -1
  528. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +0 -102
  529. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +0 -1
  530. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js +0 -100
  531. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js.map +0 -1
  532. package/dist/module/features/endOfAssignment/constants.js +0 -51
  533. package/dist/module/features/endOfAssignment/constants.js.map +0 -1
  534. package/dist/module/features/endOfAssignment/helpers.js +0 -58
  535. package/dist/module/features/endOfAssignment/helpers.js.map +0 -1
  536. package/dist/module/features/endOfAssignment/hooks/useSparkAnimation.js +0 -46
  537. package/dist/module/features/endOfAssignment/hooks/useSparkAnimation.js.map +0 -1
  538. package/dist/module/features/endOfAssignment/index.js +0 -6
  539. package/dist/module/features/endOfAssignment/index.js.map +0 -1
  540. package/dist/module/features/endOfAssignment/model/model.js +0 -48
  541. package/dist/module/features/endOfAssignment/model/model.js.map +0 -1
  542. package/dist/module/features/endOfAssignment/types.js +0 -29
  543. package/dist/module/features/endOfAssignment/types.js.map +0 -1
  544. package/dist/module/features/endOfAssignment/ui/EOABadge.js +0 -37
  545. package/dist/module/features/endOfAssignment/ui/EOABadge.js.map +0 -1
  546. package/dist/module/features/endOfAssignment/ui/PracticeButton.js +0 -24
  547. package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +0 -1
  548. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +0 -57
  549. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +0 -1
  550. package/dist/module/features/endOfAssignment/ui/SparkIcon.js +0 -21
  551. package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +0 -1
  552. package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js +0 -24
  553. package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js.map +0 -1
  554. package/dist/module/lib/constants.js +0 -7
  555. package/dist/module/lib/constants.js.map +0 -1
  556. package/dist/module/shared/hooks/useKeyDownListener.js +0 -22
  557. package/dist/module/shared/hooks/useKeyDownListener.js.map +0 -1
  558. package/dist/module/shared/hooks/useKeyboard.js +0 -20
  559. package/dist/module/shared/hooks/useKeyboard.js.map +0 -1
  560. package/dist/module/shared/icons/Halloween.js +0 -47
  561. package/dist/module/shared/icons/Halloween.js.map +0 -1
  562. package/dist/module/shared/icons/Pi.js +0 -23
  563. package/dist/module/shared/icons/Pi.js.map +0 -1
  564. package/dist/module/shared/icons/Star.js +0 -23
  565. package/dist/module/shared/icons/Star.js.map +0 -1
  566. package/dist/module/shared/icons/Valentine.js +0 -23
  567. package/dist/module/shared/icons/Valentine.js.map +0 -1
  568. package/dist/module/shared/icons/Winter.js +0 -25
  569. package/dist/module/shared/icons/Winter.js.map +0 -1
  570. package/dist/typescript/commonjs/features/celebrations/components/Celebrations.d.ts +0 -10
  571. package/dist/typescript/commonjs/features/celebrations/components/Celebrations.d.ts.map +0 -1
  572. package/dist/typescript/commonjs/features/celebrations/components/Particle.d.ts +0 -20
  573. package/dist/typescript/commonjs/features/celebrations/components/Particle.d.ts.map +0 -1
  574. package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts +0 -26
  575. package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts.map +0 -1
  576. package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts +0 -4
  577. package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts.map +0 -1
  578. package/dist/typescript/commonjs/features/celebrations/config.d.ts +0 -192
  579. package/dist/typescript/commonjs/features/celebrations/config.d.ts.map +0 -1
  580. package/dist/typescript/commonjs/features/celebrations/helpers.d.ts +0 -6
  581. package/dist/typescript/commonjs/features/celebrations/helpers.d.ts.map +0 -1
  582. package/dist/typescript/commonjs/features/celebrations/index.d.ts +0 -3
  583. package/dist/typescript/commonjs/features/celebrations/index.d.ts.map +0 -1
  584. package/dist/typescript/commonjs/features/celebrations/types.d.ts +0 -11
  585. package/dist/typescript/commonjs/features/celebrations/types.d.ts.map +0 -1
  586. package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts +0 -31
  587. package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts.map +0 -1
  588. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +0 -1
  589. package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts +0 -4
  590. package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +0 -1
  591. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts +0 -15
  592. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +0 -1
  593. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts +0 -4
  594. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +0 -1
  595. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts +0 -8
  596. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts.map +0 -1
  597. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts +0 -8
  598. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts.map +0 -1
  599. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts +0 -12
  600. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts.map +0 -1
  601. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +0 -11
  602. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +0 -1
  603. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts +0 -4
  604. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +0 -1
  605. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +0 -4
  606. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +0 -1
  607. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts +0 -4
  608. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +0 -1
  609. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts +0 -8
  610. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts.map +0 -1
  611. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts +0 -20
  612. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +0 -1
  613. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts +0 -3
  614. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +0 -1
  615. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +0 -4
  616. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +0 -1
  617. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +0 -4
  618. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +0 -1
  619. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/model.d.ts +0 -14
  620. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/model.d.ts.map +0 -1
  621. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts +0 -4
  622. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +0 -1
  623. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts +0 -8
  624. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts.map +0 -1
  625. package/dist/typescript/commonjs/features/endOfAssignment/constants.d.ts +0 -41
  626. package/dist/typescript/commonjs/features/endOfAssignment/constants.d.ts.map +0 -1
  627. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +0 -9
  628. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +0 -1
  629. package/dist/typescript/commonjs/features/endOfAssignment/hooks/useSparkAnimation.d.ts +0 -27
  630. package/dist/typescript/commonjs/features/endOfAssignment/hooks/useSparkAnimation.d.ts.map +0 -1
  631. package/dist/typescript/commonjs/features/endOfAssignment/index.d.ts +0 -4
  632. package/dist/typescript/commonjs/features/endOfAssignment/index.d.ts.map +0 -1
  633. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +0 -14
  634. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +0 -1
  635. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +0 -60
  636. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +0 -1
  637. package/dist/typescript/commonjs/features/endOfAssignment/ui/EOABadge.d.ts +0 -11
  638. package/dist/typescript/commonjs/features/endOfAssignment/ui/EOABadge.d.ts.map +0 -1
  639. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts +0 -10
  640. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +0 -1
  641. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +0 -14
  642. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +0 -1
  643. package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts +0 -4
  644. package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts.map +0 -1
  645. package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts +0 -4
  646. package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +0 -1
  647. package/dist/typescript/commonjs/lib/constants.d.ts +0 -4
  648. package/dist/typescript/commonjs/lib/constants.d.ts.map +0 -1
  649. package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts +0 -3
  650. package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts.map +0 -1
  651. package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts +0 -11
  652. package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts.map +0 -1
  653. package/dist/typescript/commonjs/shared/icons/Halloween.d.ts +0 -5
  654. package/dist/typescript/commonjs/shared/icons/Halloween.d.ts.map +0 -1
  655. package/dist/typescript/commonjs/shared/icons/Pi.d.ts +0 -5
  656. package/dist/typescript/commonjs/shared/icons/Pi.d.ts.map +0 -1
  657. package/dist/typescript/commonjs/shared/icons/Star.d.ts +0 -5
  658. package/dist/typescript/commonjs/shared/icons/Star.d.ts.map +0 -1
  659. package/dist/typescript/commonjs/shared/icons/Valentine.d.ts +0 -5
  660. package/dist/typescript/commonjs/shared/icons/Valentine.d.ts.map +0 -1
  661. package/dist/typescript/commonjs/shared/icons/Winter.d.ts +0 -5
  662. package/dist/typescript/commonjs/shared/icons/Winter.d.ts.map +0 -1
  663. package/dist/typescript/module/features/celebrations/components/Celebrations.d.ts +0 -10
  664. package/dist/typescript/module/features/celebrations/components/Celebrations.d.ts.map +0 -1
  665. package/dist/typescript/module/features/celebrations/components/Particle.d.ts +0 -20
  666. package/dist/typescript/module/features/celebrations/components/Particle.d.ts.map +0 -1
  667. package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts +0 -26
  668. package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts.map +0 -1
  669. package/dist/typescript/module/features/celebrations/components/Spark.d.ts +0 -4
  670. package/dist/typescript/module/features/celebrations/components/Spark.d.ts.map +0 -1
  671. package/dist/typescript/module/features/celebrations/config.d.ts +0 -192
  672. package/dist/typescript/module/features/celebrations/config.d.ts.map +0 -1
  673. package/dist/typescript/module/features/celebrations/helpers.d.ts +0 -6
  674. package/dist/typescript/module/features/celebrations/helpers.d.ts.map +0 -1
  675. package/dist/typescript/module/features/celebrations/index.d.ts +0 -3
  676. package/dist/typescript/module/features/celebrations/index.d.ts.map +0 -1
  677. package/dist/typescript/module/features/celebrations/types.d.ts +0 -11
  678. package/dist/typescript/module/features/celebrations/types.d.ts.map +0 -1
  679. package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts +0 -31
  680. package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts.map +0 -1
  681. package/dist/typescript/module/features/chatbot/model/api.d.ts.map +0 -1
  682. package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts +0 -4
  683. package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +0 -1
  684. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts +0 -15
  685. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +0 -1
  686. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts +0 -4
  687. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +0 -1
  688. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts +0 -8
  689. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts.map +0 -1
  690. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts +0 -8
  691. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts.map +0 -1
  692. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts +0 -12
  693. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts.map +0 -1
  694. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +0 -11
  695. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +0 -1
  696. package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts +0 -4
  697. package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +0 -1
  698. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +0 -4
  699. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +0 -1
  700. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts +0 -4
  701. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +0 -1
  702. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts +0 -8
  703. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts.map +0 -1
  704. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts +0 -20
  705. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +0 -1
  706. package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts +0 -3
  707. package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +0 -1
  708. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +0 -4
  709. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +0 -1
  710. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +0 -4
  711. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +0 -1
  712. package/dist/typescript/module/features/endOfAssignment/components/Modal/model.d.ts +0 -14
  713. package/dist/typescript/module/features/endOfAssignment/components/Modal/model.d.ts.map +0 -1
  714. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts +0 -4
  715. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +0 -1
  716. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts +0 -8
  717. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts.map +0 -1
  718. package/dist/typescript/module/features/endOfAssignment/constants.d.ts +0 -41
  719. package/dist/typescript/module/features/endOfAssignment/constants.d.ts.map +0 -1
  720. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +0 -9
  721. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +0 -1
  722. package/dist/typescript/module/features/endOfAssignment/hooks/useSparkAnimation.d.ts +0 -27
  723. package/dist/typescript/module/features/endOfAssignment/hooks/useSparkAnimation.d.ts.map +0 -1
  724. package/dist/typescript/module/features/endOfAssignment/index.d.ts +0 -4
  725. package/dist/typescript/module/features/endOfAssignment/index.d.ts.map +0 -1
  726. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +0 -14
  727. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +0 -1
  728. package/dist/typescript/module/features/endOfAssignment/types.d.ts +0 -60
  729. package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +0 -1
  730. package/dist/typescript/module/features/endOfAssignment/ui/EOABadge.d.ts +0 -11
  731. package/dist/typescript/module/features/endOfAssignment/ui/EOABadge.d.ts.map +0 -1
  732. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts +0 -10
  733. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +0 -1
  734. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +0 -14
  735. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +0 -1
  736. package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts +0 -4
  737. package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts.map +0 -1
  738. package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts +0 -4
  739. package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +0 -1
  740. package/dist/typescript/module/lib/constants.d.ts +0 -4
  741. package/dist/typescript/module/lib/constants.d.ts.map +0 -1
  742. package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts +0 -3
  743. package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts.map +0 -1
  744. package/dist/typescript/module/shared/hooks/useKeyboard.d.ts +0 -11
  745. package/dist/typescript/module/shared/hooks/useKeyboard.d.ts.map +0 -1
  746. package/dist/typescript/module/shared/icons/Halloween.d.ts +0 -5
  747. package/dist/typescript/module/shared/icons/Halloween.d.ts.map +0 -1
  748. package/dist/typescript/module/shared/icons/Pi.d.ts +0 -5
  749. package/dist/typescript/module/shared/icons/Pi.d.ts.map +0 -1
  750. package/dist/typescript/module/shared/icons/Star.d.ts +0 -5
  751. package/dist/typescript/module/shared/icons/Star.d.ts.map +0 -1
  752. package/dist/typescript/module/shared/icons/Valentine.d.ts +0 -5
  753. package/dist/typescript/module/shared/icons/Valentine.d.ts.map +0 -1
  754. package/dist/typescript/module/shared/icons/Winter.d.ts +0 -5
  755. package/dist/typescript/module/shared/icons/Winter.d.ts.map +0 -1
  756. package/src/features/celebrations/components/Celebrations.tsx +0 -62
  757. package/src/features/celebrations/components/Particle.tsx +0 -101
  758. package/src/features/celebrations/components/ParticleBatch.tsx +0 -57
  759. package/src/features/celebrations/components/Spark.tsx +0 -14
  760. package/src/features/celebrations/config.ts +0 -224
  761. package/src/features/celebrations/helpers.ts +0 -103
  762. package/src/features/celebrations/index.ts +0 -2
  763. package/src/features/celebrations/types.ts +0 -11
  764. package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +0 -65
  765. package/src/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.tsx +0 -298
  766. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +0 -141
  767. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.tsx +0 -39
  768. package/src/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.tsx +0 -40
  769. package/src/features/endOfAssignment/components/CorrectAnswer/Spark.tsx +0 -45
  770. package/src/features/endOfAssignment/components/EOAModal.tsx +0 -64
  771. package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +0 -77
  772. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +0 -62
  773. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +0 -110
  774. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.tsx +0 -69
  775. package/src/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
  776. package/src/features/endOfAssignment/components/Modal/Modal.tsx +0 -121
  777. package/src/features/endOfAssignment/components/Modal/ModalBackground.tsx +0 -33
  778. package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +0 -196
  779. package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +0 -62
  780. package/src/features/endOfAssignment/components/Modal/model.ts +0 -34
  781. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +0 -103
  782. package/src/features/endOfAssignment/components/NoAnswer/NoAnswerContent.tsx +0 -107
  783. package/src/features/endOfAssignment/constants.ts +0 -53
  784. package/src/features/endOfAssignment/helpers.ts +0 -28
  785. package/src/features/endOfAssignment/hooks/useSparkAnimation.tsx +0 -78
  786. package/src/features/endOfAssignment/index.ts +0 -3
  787. package/src/features/endOfAssignment/model/model.ts +0 -57
  788. package/src/features/endOfAssignment/types.ts +0 -65
  789. package/src/features/endOfAssignment/ui/EOABadge.tsx +0 -47
  790. package/src/features/endOfAssignment/ui/PracticeButton.tsx +0 -27
  791. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +0 -73
  792. package/src/features/endOfAssignment/ui/SparkIcon.tsx +0 -15
  793. package/src/features/endOfAssignment/ui/ThumbUpIcon.tsx +0 -17
  794. package/src/lib/constants.ts +0 -3
  795. package/src/shared/hooks/useKeyDownListener.ts +0 -27
  796. package/src/shared/hooks/useKeyboard.ts +0 -18
  797. package/src/shared/icons/Halloween.tsx +0 -33
  798. package/src/shared/icons/Pi.tsx +0 -16
  799. package/src/shared/icons/Star.tsx +0 -16
  800. package/src/shared/icons/Valentine.tsx +0 -16
  801. package/src/shared/icons/Winter.tsx +0 -19
@@ -1,121 +0,0 @@
1
- import React, { ReactNode, useEffect, useState } from 'react'
2
- import {
3
- Animated,
4
- GestureResponderEvent,
5
- StyleProp,
6
- StyleSheet,
7
- TextStyle,
8
- TouchableWithoutFeedback,
9
- View,
10
- ViewStyle,
11
- } from 'react-native'
12
-
13
- import {
14
- ButtonVariant,
15
- CrossIcon,
16
- COLORS,
17
- BORDER_RADIUS,
18
- SPACING,
19
- SHADOWS,
20
- Button,
21
- } from '@magmamath/react-native-ui'
22
-
23
- import { ModalModel } from './model'
24
- import { ModalBackground } from './ModalBackground'
25
-
26
- const stopPropagation = {
27
- onTouchStart: (event: GestureResponderEvent) => {
28
- event.stopPropagation()
29
- },
30
- onMouseDown: (event: MouseEvent) => {
31
- event.stopPropagation()
32
- },
33
- }
34
-
35
- export type ModalProps = {
36
- isVisible: boolean
37
- content: ReactNode
38
- isDismissable: boolean
39
- onClose?: () => void
40
- hideCloseButton?: boolean
41
- withBackground?: boolean
42
- style?: {
43
- overlay?: StyleProp<ViewStyle>
44
- container?: StyleProp<ViewStyle>
45
- header?: StyleProp<TextStyle> | StyleProp<ViewStyle>
46
- content?: StyleProp<TextStyle> | StyleProp<ViewStyle>
47
- footer?: StyleProp<ViewStyle>
48
- closeButton?: StyleProp<ViewStyle>
49
- }
50
- }
51
-
52
- export const Modal = ({
53
- isVisible,
54
- isDismissable = true,
55
- onClose,
56
- style,
57
- content,
58
- withBackground,
59
- }: ModalProps) => {
60
- const [modalModel] = useState(() => new ModalModel())
61
-
62
- useEffect(() => {
63
- if (isVisible) {
64
- modalModel.animation.show()
65
- }
66
- }, [isVisible])
67
-
68
- if (!isVisible) return null
69
- return (
70
- <TouchableWithoutFeedback onPress={() => isDismissable && onClose?.()}>
71
- <Animated.View style={[styles.overlay, style?.overlay, modalModel.animatedStyle]}>
72
- <TouchableWithoutFeedback {...stopPropagation}>
73
- <View style={[styles.container, style?.container]}>
74
- {withBackground && <View style={styles.backgroundWrapper}>{<ModalBackground />}</View>}
75
- {isDismissable && (
76
- <View style={[styles.closeButton, style?.closeButton]}>
77
- <Button
78
- variant={ButtonVariant.TERTIARY}
79
- icon={<CrossIcon size={18} color={COLORS.NEUTRAL_7} />}
80
- onPress={onClose}
81
- />
82
- </View>
83
- )}
84
- {content}
85
- </View>
86
- </TouchableWithoutFeedback>
87
- </Animated.View>
88
- </TouchableWithoutFeedback>
89
- )
90
- }
91
-
92
- const styles = StyleSheet.create({
93
- overlay: {
94
- ...StyleSheet.absoluteFillObject,
95
- justifyContent: 'center',
96
- alignItems: 'center',
97
- backgroundColor: 'rgba(0, 0, 0, 0.2)',
98
- zIndex: 10001,
99
- },
100
- container: {
101
- position: 'relative',
102
- justifyContent: 'space-between',
103
- backgroundColor: COLORS.NEUTRAL_1,
104
- minWidth: 300,
105
- maxWidth: 957,
106
- borderRadius: BORDER_RADIUS['400'],
107
- paddingHorizontal: SPACING['1600'],
108
- paddingVertical: SPACING['800'],
109
- gap: SPACING['600'],
110
- ...SHADOWS['5'],
111
- },
112
- closeButton: {
113
- position: 'absolute',
114
- top: SPACING['400'],
115
- right: SPACING['400'],
116
- },
117
- backgroundWrapper: {
118
- ...StyleSheet.absoluteFillObject,
119
- zIndex: -1,
120
- },
121
- })
@@ -1,33 +0,0 @@
1
- import React from 'react'
2
- import { View, StyleSheet } from 'react-native'
3
- import { BORDER_RADIUS } from '@magmamath/react-native-ui'
4
-
5
- import { TrophyIcon } from './assets/TrophyIcon'
6
- import { SunrisingIcon } from './assets/SunrisingIcon'
7
-
8
- export const ModalBackground = () => (
9
- <View style={[StyleSheet.absoluteFill, styles.backgroundContainer]}>
10
- <View style={styles.bgImageLeft}>
11
- <TrophyIcon size={466} />
12
- </View>
13
- <View style={styles.bgImageRight}>
14
- <SunrisingIcon size={909} />
15
- </View>
16
- </View>
17
- )
18
-
19
- const styles = StyleSheet.create({
20
- backgroundContainer: {
21
- borderRadius: BORDER_RADIUS[400],
22
- overflow: 'hidden',
23
- },
24
- bgImageLeft: {
25
- position: 'absolute',
26
- bottom: 0,
27
- zIndex: -1,
28
- },
29
- bgImageRight: {
30
- position: 'absolute',
31
- zIndex: -2,
32
- },
33
- })
@@ -1,196 +0,0 @@
1
- import * as React from 'react'
2
- import { IconProps } from '@magmamath/react-native-ui'
3
- import Svg, { G, Path, Defs, LinearGradient, Stop } from 'react-native-svg'
4
-
5
- export const SunrisingIcon = (props: IconProps) => {
6
- const height = (props.size ?? 0) * 0.606
7
-
8
- return (
9
- <Svg width={props.size} height={height} viewBox='0 0 909 551' fill='none' {...props}>
10
- <G opacity={0.1}>
11
- <Path
12
- d='M164.04-598.854a893.984 893.984 0 01222.319 28.085L164.04 295.106v-893.96z'
13
- fill='url(#paint0_linear_3505_1308)'
14
- />
15
- <Path
16
- d='M-282.94-479.086a893.954 893.954 0 01206.577-86.837L164.04 295.106l-446.98-774.192z'
17
- fill='url(#paint1_linear_3505_1308)'
18
- />
19
- <Path
20
- d='M-610.152-151.874A893.997 893.997 0 01-474.67-330.365l638.71 625.471-774.192-446.98z'
21
- fill='url(#paint2_linear_3505_1308)'
22
- />
23
- <Path
24
- d='M-729.92 295.106a893.938 893.938 0 0128.086-222.319L164.04 295.106h-893.96z'
25
- fill='url(#paint3_linear_3505_1308)'
26
- />
27
- <Path
28
- d='M-610.152 742.086a893.994 893.994 0 01-86.837-206.577L164.04 295.106l-774.192 446.98z'
29
- fill='url(#paint4_linear_3505_1308)'
30
- />
31
- <Path
32
- d='M-282.94 1069.3a894.157 894.157 0 01-178.491-135.484l625.471-638.71-446.98 774.194z'
33
- fill='url(#paint5_linear_3505_1308)'
34
- />
35
- <Path
36
- d='M611.02-479.086a893.96 893.96 0 01178.491 135.482L164.04 295.106l446.98-774.192z'
37
- fill='url(#paint6_linear_3505_1308)'
38
- />
39
- <Path
40
- d='M938.232-151.874a894.096 894.096 0 0186.838 206.577L164.04 295.106l774.192-446.98z'
41
- fill='url(#paint7_linear_3505_1308)'
42
- />
43
- <Path
44
- d='M1058 295.106c0 74.991-9.44 149.684-28.09 222.319L164.04 295.106H1058z'
45
- fill='url(#paint8_linear_3505_1308)'
46
- />
47
- <Path
48
- d='M938.232 742.086A893.96 893.96 0 01802.75 920.577L164.04 295.106l774.192 446.98z'
49
- fill='url(#paint9_linear_3505_1308)'
50
- />
51
- <Path
52
- d='M611.02 1069.3a893.885 893.885 0 01-206.577 86.83L164.04 295.106 611.02 1069.3z'
53
- fill='url(#paint10_linear_3505_1308)'
54
- />
55
- <Path
56
- d='M164.04 1189.07a893.941 893.941 0 01-222.319-28.09L164.04 295.106v893.964z'
57
- fill='url(#paint11_linear_3505_1308)'
58
- />
59
- </G>
60
- <Defs>
61
- <LinearGradient
62
- id='paint0_linear_3505_1308'
63
- x1={164.04}
64
- y1={383.036}
65
- x2={930.076}
66
- y2={383.036}
67
- gradientUnits='userSpaceOnUse'
68
- >
69
- <Stop stopColor='#FF245F' />
70
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
71
- </LinearGradient>
72
- <LinearGradient
73
- id='paint1_linear_3505_1308'
74
- x1={164.04}
75
- y1={383.036}
76
- x2={930.076}
77
- y2={383.036}
78
- gradientUnits='userSpaceOnUse'
79
- >
80
- <Stop stopColor='#FF245F' />
81
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
82
- </LinearGradient>
83
- <LinearGradient
84
- id='paint2_linear_3505_1308'
85
- x1={164.04}
86
- y1={383.036}
87
- x2={930.076}
88
- y2={383.036}
89
- gradientUnits='userSpaceOnUse'
90
- >
91
- <Stop stopColor='#FF245F' />
92
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
93
- </LinearGradient>
94
- <LinearGradient
95
- id='paint3_linear_3505_1308'
96
- x1={164.04}
97
- y1={383.036}
98
- x2={930.076}
99
- y2={383.036}
100
- gradientUnits='userSpaceOnUse'
101
- >
102
- <Stop stopColor='#FF245F' />
103
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
104
- </LinearGradient>
105
- <LinearGradient
106
- id='paint4_linear_3505_1308'
107
- x1={164.04}
108
- y1={383.036}
109
- x2={930.076}
110
- y2={383.036}
111
- gradientUnits='userSpaceOnUse'
112
- >
113
- <Stop stopColor='#FF245F' />
114
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
115
- </LinearGradient>
116
- <LinearGradient
117
- id='paint5_linear_3505_1308'
118
- x1={164.04}
119
- y1={383.036}
120
- x2={930.076}
121
- y2={383.036}
122
- gradientUnits='userSpaceOnUse'
123
- >
124
- <Stop stopColor='#FF245F' />
125
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
126
- </LinearGradient>
127
- <LinearGradient
128
- id='paint6_linear_3505_1308'
129
- x1={164.04}
130
- y1={383.036}
131
- x2={930.076}
132
- y2={383.036}
133
- gradientUnits='userSpaceOnUse'
134
- >
135
- <Stop stopColor='#FF245F' />
136
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
137
- </LinearGradient>
138
- <LinearGradient
139
- id='paint7_linear_3505_1308'
140
- x1={164.04}
141
- y1={383.036}
142
- x2={930.076}
143
- y2={383.036}
144
- gradientUnits='userSpaceOnUse'
145
- >
146
- <Stop stopColor='#FF245F' />
147
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
148
- </LinearGradient>
149
- <LinearGradient
150
- id='paint8_linear_3505_1308'
151
- x1={164.04}
152
- y1={383.036}
153
- x2={930.076}
154
- y2={383.036}
155
- gradientUnits='userSpaceOnUse'
156
- >
157
- <Stop stopColor='#FF245F' />
158
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
159
- </LinearGradient>
160
- <LinearGradient
161
- id='paint9_linear_3505_1308'
162
- x1={164.04}
163
- y1={383.036}
164
- x2={930.076}
165
- y2={383.036}
166
- gradientUnits='userSpaceOnUse'
167
- >
168
- <Stop stopColor='#FF245F' />
169
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
170
- </LinearGradient>
171
- <LinearGradient
172
- id='paint10_linear_3505_1308'
173
- x1={164.04}
174
- y1={383.036}
175
- x2={930.076}
176
- y2={383.036}
177
- gradientUnits='userSpaceOnUse'
178
- >
179
- <Stop stopColor='#FF245F' />
180
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
181
- </LinearGradient>
182
- <LinearGradient
183
- id='paint11_linear_3505_1308'
184
- x1={164.04}
185
- y1={383.036}
186
- x2={930.076}
187
- y2={383.036}
188
- gradientUnits='userSpaceOnUse'
189
- >
190
- <Stop stopColor='#FF245F' />
191
- <Stop offset={1} stopColor='#FF7917' stopOpacity={0} />
192
- </LinearGradient>
193
- </Defs>
194
- </Svg>
195
- )
196
- }
@@ -1,62 +0,0 @@
1
- import { IconProps } from '@magmamath/react-native-ui'
2
- import * as React from 'react'
3
- import Svg, { Path } from 'react-native-svg'
4
-
5
- export const TrophyIcon = (props: IconProps) => {
6
- const height = (props.size ?? 0) * 0.982
7
-
8
- return (
9
- <Svg width={props.size} height={height} viewBox='0 0 466 458' fill='none' {...props}>
10
- <Path
11
- d='M258.454 244.45l-5.731 32.767 16.384 2.86c8.047 1.407 15.796 2.106 23.222 2.106 15.697.011 29.985-3.137 42.766-9.389 6.728-3.292 13.025-7.438 18.9-12.449 44.672-38.12 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575a57.996 57.996 0 00-17.935 2.206c-14.355 4.09-26.36 13.38-33.875 25.994l-32.379-14.332L250.03 88.75l39.162 17.326c6.274 2.771 13.247 2.916 19.632.388 6.374-2.516 11.373-7.382 14.055-13.7a24.56 24.56 0 0115.974-14.112c2.993-.853 6.052-1.13 9.056-.853a24.578 24.578 0 0111.961 4.422c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.841-18.822 112.224-32.024 127.144-2.195 2.494-4.213 4.412-5.909 5.864-14.632 12.47-33.465 16.483-57.586 12.271l-16.372-2.871zM37.623 282.187c7.429 0 15.173-.703 23.223-2.111l16.379-2.864-5.73-32.757-16.378 2.865c-24.126 4.221-42.953.202-57.575-12.274-11.858-10.119-39.295-43.336-37.936-133.006.119-7.871 4.036-15.28 10.476-19.82a24.601 24.601 0 0121.015-3.57A24.606 24.606 0 017.075 92.764c2.683 6.318 7.675 11.186 14.058 13.709 6.384 2.522 13.355 2.38 19.63-.396l39.152-17.329-13.46-30.41-32.37 14.328C26.57 60.055 14.57 50.762.213 46.67c-16.936-4.828-34.901-1.777-49.293 8.369-15.102 10.647-24.286 28.03-24.565 46.498-.652 42.947 4.926 120.686 49.6 158.806 17.036 14.535 37.71 21.844 61.668 21.844z'
12
- fill='#FFD690'
13
- />
14
- <Path
15
- opacity={0.1}
16
- d='M335.095 272.795c6.728-3.293 13.025-7.438 18.9-12.449 44.672-38.121 50.247-115.859 49.604-158.813-.288-18.467-9.466-35.848-24.575-46.49-9.355-6.606-20.23-10.209-31.348-10.575 3.326 3.691 14.3 18.057.233 33.332a24.578 24.578 0 0111.961 4.423c6.44 4.534 10.353 11.95 10.475 19.82 1.164 76.84-18.822 112.223-32.024 127.144 0 0 21.659 24.497-3.226 43.608z'
17
- fill='#D25B00'
18
- />
19
- <Path
20
- d='M26.153 202.82L46.65 26.089a11.505 11.505 0 0111.429-10.18h213.797a11.504 11.504 0 0111.428 10.18l20.495 176.731c4.463 38.483-10.944 76.387-39.056 96.086l-8.179 5.73c-15.466 10.838-32.135 18.807-49.434 23.744-11.86 3.386-19.699 16.816-18.043 31.209l5.7 49.527h-59.619l5.7-49.527c1.656-14.393-6.182-27.825-18.043-31.209-17.299-4.937-33.967-12.905-49.434-23.744l-8.178-5.73c-28.115-19.699-43.522-57.604-39.059-96.086z'
21
- fill='#FFD690'
22
- />
23
- <Path
24
- opacity={0.1}
25
- d='M169.03 359.583l1.752 36.868h22.546l-4.245-36.868c-1.652-14.388 6.185-27.823 18.046-31.203 17.293-4.933 33.964-12.903 49.428-23.744l8.18-5.731c28.112-19.698 43.52-57.597 39.063-96.084L283.299 26.086a11.505 11.505 0 00-11.429-10.18h-50.531l12.193 186.914c2.505 38.487-6.152 76.386-21.959 96.084l-4.6 5.731c-8.702 10.841-18.068 18.811-27.801 23.743-6.661 3.382-11.073 16.817-10.142 31.205z'
26
- fill='#D25B00'
27
- />
28
- <Path
29
- d='M63.166 437.528l203.607-4.774v-6.731c0-16.335-13.295-29.576-29.63-29.576H92.742c-16.335 0-29.576 13.241-29.576 29.576v11.505z'
30
- fill='#FFD690'
31
- />
32
- <Path
33
- opacity={0.1}
34
- d='M171.477 396.447c16.328 0 29.574 13.247 29.574 29.575v7.907l65.722-.857v-7.05c0-16.328-13.246-29.575-29.574-29.575h-65.722z'
35
- fill='#D25B00'
36
- />
37
- <Path
38
- d='M209.405 432.82c15.086 0 27.324 12.238 27.324 27.336v100.01h42.122c8.43 0 15.264-6.834 15.264-15.264v-84.746c0-15.097-12.239-27.336-27.335-27.336h-57.375z'
39
- fill='#2488BB'
40
- />
41
- <Path
42
- opacity={0.5}
43
- d='M35.846 543.408a8.835 8.835 0 1017.668 0v-88.343c0-6.569 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.834H66.41c-5.89 0-13.567 0-20.614 5.889-6.683 5.586-9.95 13.376-9.95 22.086v82.453z'
44
- fill='#fff'
45
- />
46
- <Path
47
- d='M35.837 460.156v84.489c0 8.57 6.912 15.518 15.483 15.518H278.85c8.43 0 15.264-6.833 15.264-15.263v-84.744c0-15.097-12.239-27.336-27.335-27.336H63.173c-15.097 0-27.336 12.239-27.336 27.336z'
48
- fill='#AAD5EF'
49
- />
50
- <Path
51
- opacity={0.1}
52
- d='M208.151 432.762c15.309 0 27.727 12.418 27.727 27.739l.004 33.137h42.744c8.555 0 15.489-6.934 15.489-15.489l-.003-17.648c0-15.32-12.419-27.739-27.739-27.739h-58.222z'
53
- fill='#D25B00'
54
- />
55
- <Path
56
- opacity={0.3}
57
- d='M73.782 17.1c-1.8.654-4.135 2.151-6.083 4.197-2.014 2.118-2.78 3.928-2.901 4.848-3.966 30.145-7.066 56.336-10.696 87.003-3.112 26.288-9.844 72.335-12.788 92.948-2.944 20.613-2.944 23.442-2.944 35.337 0 22.086 10.364 42.197 10.364 42.197-4.634-5.04-14.077-23.056-15.589-26.678-5.247-12.574-9.599-33.753-7.343-51.809 4.73-37.865 7.788-67.529 10.907-93.864 5.03-41.445 4.877-42.092 8.977-77.441 1.785-15.392 1.08-18.069 13.976-18.069h18.25c-1.451.417-2.836.86-4.13 1.33zM35.846 543.249a8.834 8.834 0 008.834 8.834 8.834 8.834 0 008.834-8.834v-88.343c0-6.57 1.263-10.538 2.59-13.251 1.325-2.713 5.889-7.362 13.25-8.835 0 0-1.158-.003-2.94-.003-13.712 0-13.571.004-20.618 5.893-6.683 5.586-9.95 13.376-9.95 22.086v82.453z'
58
- fill='#fff'
59
- />
60
- </Svg>
61
- )
62
- }
@@ -1,34 +0,0 @@
1
- import { IS_WEB } from '@magmamath/react-native-ui'
2
- import { Animated } from 'react-native'
3
-
4
- export class ModalModel {
5
- private static ANIMATION_DURATION = 200
6
- private static INITIAL_OPACITY = 0
7
- private static createTimingAnimation(
8
- animation: Animated.Value,
9
- toValue: number
10
- ) {
11
- return Animated.timing(animation, {
12
- toValue,
13
- duration: ModalModel.ANIMATION_DURATION,
14
- useNativeDriver: !IS_WEB,
15
- })
16
- }
17
-
18
- public animation
19
- public animatedStyle
20
-
21
- constructor() {
22
- const opacity = new Animated.Value(ModalModel.INITIAL_OPACITY)
23
- const opacityAnimation = ModalModel.createTimingAnimation(opacity, 1)
24
- this.animation = {
25
- show: () => {
26
- opacityAnimation.reset()
27
- opacityAnimation.start()
28
- },
29
- }
30
- this.animatedStyle = {
31
- opacity,
32
- }
33
- }
34
- }
@@ -1,103 +0,0 @@
1
- import React from 'react'
2
- import { View, StyleSheet } from 'react-native'
3
- import { useUnit } from 'effector-react'
4
- import {
5
- Button,
6
- ButtonColor,
7
- ButtonVariant,
8
- COLORS,
9
- SPACING,
10
- Typography,
11
- } from '@magmamath/react-native-ui'
12
-
13
- import { EOAModalContentProps } from '../../types'
14
- import { NoAnswerContent } from './NoAnswerContent'
15
- import { PracticeButton } from '../../ui/PracticeButton'
16
- import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
17
- import { KeyboardKeys } from '../../../../lib/constants'
18
-
19
- export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalContentProps) => {
20
- const popUpData = useUnit(model.$popUpData)
21
-
22
- const { stats, isExam, user } = popUpData ?? {}
23
- const solved = stats?.solvedAmount ?? 0
24
- const total = stats?.problemsAmount ?? 0
25
- const buttonColorScheme = isExam ? ButtonColor.YELLOW : ButtonColor.BLUE
26
-
27
- const practiceButtonVisible = !isExam || !!user?.practiceMode
28
-
29
- const handlePrimaryButtonPress = () => {
30
- isExam ? onPracticePress?.() : model.goToFirstProblemPressed()
31
- model.hidePopUp()
32
- }
33
-
34
- useKeyBoard((event) => {
35
- if (event.key === KeyboardKeys.ENTER) {
36
- practiceButtonVisible ? handlePrimaryButtonPress() : model.hidePopUpAndLeave()
37
- }
38
- })
39
-
40
- return (
41
- <View style={styles.container}>
42
- <View style={styles.textContainer}>
43
- {!!textContent.title && (
44
- <Typography variant="h2" style={styles.title}>
45
- {textContent.title}
46
- </Typography>
47
- )}
48
- {!!textContent.subtitle && practiceButtonVisible && (
49
- <Typography variant="h4" style={styles.subtitle}>
50
- {textContent.subtitle}
51
- </Typography>
52
- )}
53
- </View>
54
- <NoAnswerContent solvedAmount={solved} problemsAmount={total} />
55
- <View style={styles.buttonsContainer}>
56
- <Button
57
- variant={practiceButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
58
- size="large"
59
- colorScheme={popUpData?.isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
60
- style={{ text: { textTransform: 'uppercase' } }}
61
- onPress={model.hidePopUpAndLeave}
62
- >
63
- {textContent.leftButtonText ?? ''}
64
- </Button>
65
-
66
- {practiceButtonVisible && (
67
- <PracticeButton
68
- onPress={handlePrimaryButtonPress}
69
- text={textContent.rightButtonText}
70
- colorScheme={buttonColorScheme}
71
- />
72
- )}
73
- </View>
74
- </View>
75
- )
76
- }
77
-
78
- const styles = StyleSheet.create({
79
- container: {
80
- height: '100%',
81
- gap: SPACING[400],
82
- alignItems: 'center',
83
- justifyContent: 'space-between',
84
- },
85
- buttonsContainer: {
86
- flexDirection: 'row',
87
- alignItems: 'center',
88
- justifyContent: 'flex-end',
89
- gap: SPACING[200],
90
- },
91
- title: {
92
- color: COLORS.NEUTRAL_9,
93
- marginBottom: SPACING[400],
94
- paddingVertical: SPACING[100],
95
- },
96
- subtitle: { color: COLORS.NEUTRAL_7, paddingVertical: SPACING[100] },
97
- textContainer: {
98
- alignItems: 'center',
99
- },
100
- buttonText: {
101
- textTransform: 'uppercase',
102
- },
103
- })
@@ -1,107 +0,0 @@
1
- import React, { useEffect } from 'react'
2
- import { View, StyleSheet, Text } from 'react-native'
3
-
4
- import {
5
- BORDER_RADIUS,
6
- COLORS,
7
- FONT_FAMILY,
8
- IS_MOBILE,
9
- SPACING,
10
- Typography,
11
- } from '@magmamath/react-native-ui'
12
- import Animated, { Easing, useSharedValue, withDelay, withTiming } from 'react-native-reanimated'
13
-
14
- import { EOABadge } from '../../ui/EOABadge'
15
- import { AnimatedCardVariant } from '../../types'
16
-
17
- type NoAnswerContentProps = {
18
- solvedAmount: number
19
- problemsAmount: number
20
- }
21
-
22
- export const NoAnswerContent = ({ solvedAmount, problemsAmount }: NoAnswerContentProps) => {
23
- const opacitySv = useSharedValue(0)
24
-
25
- useEffect(() => {
26
- opacitySv.value = withDelay(
27
- 100,
28
- withTiming(1, {
29
- duration: 300,
30
- easing: Easing.inOut(Easing.ease),
31
- }),
32
- )
33
- }, [])
34
-
35
- return (
36
- <Animated.View style={[styles.container, { opacity: opacitySv }]}>
37
- <View style={styles.content}>
38
- <EOABadge
39
- color={COLORS.NEUTRAL_5}
40
- variant={AnimatedCardVariant.CORRECT_ANSWER}
41
- size={70}
42
- iconSize={45}
43
- />
44
-
45
- <View style={styles.textContainer}>
46
- <Typography variant="h4" style={styles.largeText}>
47
- {solvedAmount}
48
- </Typography>
49
- <Typography style={styles.text}>
50
- <Text style={styles.slash}>{'/'}</Text>
51
- {problemsAmount}
52
- </Typography>
53
- </View>
54
- </View>
55
- </Animated.View>
56
- )
57
- }
58
-
59
- const styles = StyleSheet.create({
60
- container: {
61
- alignSelf: 'center',
62
- paddingHorizontal: SPACING[100],
63
- paddingTop: SPACING[100],
64
- paddingBottom: 38,
65
- marginBottom: SPACING[800],
66
- backgroundColor: COLORS.NEUTRAL_5,
67
- borderRadius: BORDER_RADIUS[400],
68
- },
69
- content: {
70
- flexDirection: 'row',
71
- alignItems: 'center',
72
- justifyContent: 'center',
73
- backgroundColor: '#fff',
74
- borderRadius: BORDER_RADIUS[200],
75
- paddingVertical: SPACING[400],
76
- paddingHorizontal: SPACING[800],
77
- gap: SPACING[500],
78
- },
79
- iconWrapper: {
80
- backgroundColor: COLORS.NEUTRAL_5,
81
- borderRadius: 100,
82
- width: 70,
83
- height: 70,
84
- padding: 8,
85
- justifyContent: 'center',
86
- alignItems: 'center',
87
- },
88
- textContainer: {
89
- flexDirection: 'row',
90
- alignItems: 'flex-end',
91
- },
92
- largeText: {
93
- fontSize: 48,
94
- fontWeight: '700',
95
- fontFamily: FONT_FAMILY.buenosAires,
96
- lineHeight: 48,
97
- marginBottom: IS_MOBILE ? -7 : 0,
98
- color: COLORS.NEUTRAL_5,
99
- },
100
- text: {
101
- fontSize: 16,
102
- fontFamily: FONT_FAMILY.buenosAires,
103
- fontWeight: '700',
104
- color: '#E0E0E0',
105
- },
106
- slash: { paddingRight: 1 },
107
- })