@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,55 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.VARIANT_COLORS = exports.SPRING_CONFIG_STEP_3 = exports.SPRING_CONFIG = exports.SPARKS_ANIMATION_DELAY = exports.OPACITY = exports.MODALS_WITH_BACKGROUND = exports.GOOD_DRAWING_CARD_APPEARENCE_DELAY = exports.CARD_DIMENSIONS = exports.BADGE_PARAMS = exports.ANIMATION_DELAYS = void 0;
7
- var _reactNativeUi = require("@magmamath/react-native-ui");
8
- var _types = require("./types.js");
9
- const SPARKS_ANIMATION_DELAY = exports.SPARKS_ANIMATION_DELAY = 2000;
10
- const GOOD_DRAWING_CARD_APPEARENCE_DELAY = exports.GOOD_DRAWING_CARD_APPEARENCE_DELAY = 1800;
11
- const MODALS_WITH_BACKGROUND = exports.MODALS_WITH_BACKGROUND = [_types.EOAModalVariant.HAS_CORRECT_ANSWERS, _types.EOAModalVariant.HAS_GOOD_DRAWING, _types.EOAModalVariant.EXAM_FINISHED_HAS_CORRECT_ANSWERS];
12
- const VARIANT_COLORS = exports.VARIANT_COLORS = {
13
- [_types.AnimatedCardVariant.CORRECT_ANSWER]: {
14
- initial: _reactNativeUi.COLORS.GREEN_2,
15
- final: _reactNativeUi.COLORS.GREEN_4,
16
- primary: _reactNativeUi.COLORS.PRIMARY_GREEN
17
- },
18
- [_types.AnimatedCardVariant.GOOD_DRAWING]: {
19
- initial: _reactNativeUi.COLORS.ORANGE_2,
20
- final: _reactNativeUi.COLORS.ORANGE_4,
21
- primary: _reactNativeUi.COLORS.PRIMARY_ORANGE
22
- }
23
- };
24
- const ANIMATION_DELAYS = exports.ANIMATION_DELAYS = {
25
- step3: 500,
26
- celebrations: 140
27
- };
28
- const CARD_DIMENSIONS = exports.CARD_DIMENSIONS = {
29
- initialWidth: 85,
30
- finalWidth: 375,
31
- initialHeight: 85,
32
- finalHeight: 175
33
- };
34
- const OPACITY = exports.OPACITY = {
35
- initial: 0,
36
- final: 1
37
- };
38
- const BADGE_PARAMS = exports.BADGE_PARAMS = {
39
- initialTranslateX: -9,
40
- intermediateTranslateX: 230,
41
- finalTranslateX: 40,
42
- initialRotation: -180,
43
- initialScale: 0.5
44
- };
45
- const SPRING_CONFIG = exports.SPRING_CONFIG = {
46
- stiffness: 241,
47
- damping: 18,
48
- mass: 0.75
49
- };
50
- const SPRING_CONFIG_STEP_3 = exports.SPRING_CONFIG_STEP_3 = {
51
- stiffness: 168.8,
52
- damping: 15,
53
- mass: 0.75
54
- };
55
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeUi","require","_types","SPARKS_ANIMATION_DELAY","exports","GOOD_DRAWING_CARD_APPEARENCE_DELAY","MODALS_WITH_BACKGROUND","EOAModalVariant","HAS_CORRECT_ANSWERS","HAS_GOOD_DRAWING","EXAM_FINISHED_HAS_CORRECT_ANSWERS","VARIANT_COLORS","AnimatedCardVariant","CORRECT_ANSWER","initial","COLORS","GREEN_2","final","GREEN_4","primary","PRIMARY_GREEN","GOOD_DRAWING","ORANGE_2","ORANGE_4","PRIMARY_ORANGE","ANIMATION_DELAYS","step3","celebrations","CARD_DIMENSIONS","initialWidth","finalWidth","initialHeight","finalHeight","OPACITY","BADGE_PARAMS","initialTranslateX","intermediateTranslateX","finalTranslateX","initialRotation","initialScale","SPRING_CONFIG","stiffness","damping","mass","SPRING_CONFIG_STEP_3"],"sourceRoot":"../../../../src","sources":["features/endOfAssignment/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,IAAI;AACnC,MAAME,kCAAkC,GAAAD,OAAA,CAAAC,kCAAA,GAAG,IAAI;AAE/C,MAAMC,sBAAsB,GAAAF,OAAA,CAAAE,sBAAA,GAAG,CACpCC,sBAAe,CAACC,mBAAmB,EACnCD,sBAAe,CAACE,gBAAgB,EAChCF,sBAAe,CAACG,iCAAiC,CAClD;AAEM,MAAMC,cAAgG,GAAAP,OAAA,CAAAO,cAAA,GAAG;EAC9G,CAACC,0BAAmB,CAACC,cAAc,GAAG;IACpCC,OAAO,EAAEC,qBAAM,CAACC,OAAO;IACvBC,KAAK,EAAEF,qBAAM,CAACG,OAAO;IACrBC,OAAO,EAAEJ,qBAAM,CAACK;EAClB,CAAC;EACD,CAACR,0BAAmB,CAACS,YAAY,GAAG;IAClCP,OAAO,EAAEC,qBAAM,CAACO,QAAQ;IACxBL,KAAK,EAAEF,qBAAM,CAACQ,QAAQ;IACtBJ,OAAO,EAAEJ,qBAAM,CAACS;EAClB;AACF,CAAC;AAEM,MAAMC,gBAAgB,GAAArB,OAAA,CAAAqB,gBAAA,GAAG;EAC9BC,KAAK,EAAE,GAAG;EACVC,YAAY,EAAE;AAChB,CAAC;AAEM,MAAMC,eAAe,GAAAxB,OAAA,CAAAwB,eAAA,GAAG;EAC7BC,YAAY,EAAE,EAAE;EAChBC,UAAU,EAAE,GAAG;EACfC,aAAa,EAAE,EAAE;EACjBC,WAAW,EAAE;AACf,CAAC;AAEM,MAAMC,OAAO,GAAA7B,OAAA,CAAA6B,OAAA,GAAG;EACrBnB,OAAO,EAAE,CAAC;EACVG,KAAK,EAAE;AACT,CAAC;AAEM,MAAMiB,YAAY,GAAA9B,OAAA,CAAA8B,YAAA,GAAG;EAC1BC,iBAAiB,EAAE,CAAC,CAAC;EACrBC,sBAAsB,EAAE,GAAG;EAC3BC,eAAe,EAAE,EAAE;EACnBC,eAAe,EAAE,CAAC,GAAG;EACrBC,YAAY,EAAE;AAChB,CAAC;AAEM,MAAMC,aAAa,GAAApC,OAAA,CAAAoC,aAAA,GAAG;EAAEC,SAAS,EAAE,GAAG;EAAEC,OAAO,EAAE,EAAE;EAAEC,IAAI,EAAE;AAAK,CAAC;AACjE,MAAMC,oBAAoB,GAAAxC,OAAA,CAAAwC,oBAAA,GAAG;EAAEH,SAAS,EAAE,KAAK;EAAEC,OAAO,EAAE,EAAE;EAAEC,IAAI,EAAE;AAAK,CAAC","ignoreList":[]}
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.shouldDisplayModalBackground = exports.getModalContainerSize = void 0;
7
- var _constants = require("./constants.js");
8
- var _types = require("./types.js");
9
- const getModalContainerSize = modalVariant => {
10
- switch (modalVariant) {
11
- case _types.EOAModalVariant.EXAM_SUBMIT:
12
- case _types.EOAModalVariant.EXAM_SAFE_MODE_SUBMIT:
13
- return {
14
- container: {
15
- width: 600,
16
- height: 384
17
- }
18
- };
19
- case _types.EOAModalVariant.EXAM_PAUSED:
20
- case _types.EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED:
21
- return {
22
- container: {
23
- width: 560,
24
- height: 338
25
- }
26
- };
27
- case _types.EOAModalVariant.EXAM_SAFE_MODE_LEAVE:
28
- return {
29
- container: {
30
- width: 550,
31
- height: 280
32
- }
33
- };
34
- case _types.EOAModalVariant.HAS_GOOD_DRAWING:
35
- return {
36
- container: {
37
- width: 957,
38
- height: 550
39
- }
40
- };
41
- case _types.EOAModalVariant.HAS_CORRECT_ANSWERS:
42
- case _types.EOAModalVariant.EXAM_FINISHED_HAS_CORRECT_ANSWERS:
43
- return {
44
- container: {
45
- width: 957,
46
- height: 550
47
- }
48
- };
49
- default:
50
- return {
51
- container: {
52
- width: 600,
53
- height: 429
54
- }
55
- };
56
- }
57
- };
58
- exports.getModalContainerSize = getModalContainerSize;
59
- const shouldDisplayModalBackground = modalVariant => {
60
- if (!modalVariant) return false;
61
- return _constants.MODALS_WITH_BACKGROUND.includes(modalVariant);
62
- };
63
- exports.shouldDisplayModalBackground = shouldDisplayModalBackground;
64
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_types","getModalContainerSize","modalVariant","EOAModalVariant","EXAM_SUBMIT","EXAM_SAFE_MODE_SUBMIT","container","width","height","EXAM_PAUSED","EXAM_SAFE_MODE_CHEAT_DETECTED","EXAM_SAFE_MODE_LEAVE","HAS_GOOD_DRAWING","HAS_CORRECT_ANSWERS","EXAM_FINISHED_HAS_CORRECT_ANSWERS","exports","shouldDisplayModalBackground","MODALS_WITH_BACKGROUND","includes"],"sourceRoot":"../../../../src","sources":["features/endOfAssignment/helpers.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,qBAAqB,GAAIC,YAA6B,IAAK;EACtE,QAAQA,YAAY;IAClB,KAAKC,sBAAe,CAACC,WAAW;IAChC,KAAKD,sBAAe,CAACE,qBAAqB;MACxC,OAAO;QAAEC,SAAS,EAAE;UAAEC,KAAK,EAAE,GAAG;UAAEC,MAAM,EAAE;QAAI;MAAE,CAAC;IACnD,KAAKL,sBAAe,CAACM,WAAW;IAChC,KAAKN,sBAAe,CAACO,6BAA6B;MAChD,OAAO;QAAEJ,SAAS,EAAE;UAAEC,KAAK,EAAE,GAAG;UAAEC,MAAM,EAAE;QAAI;MAAE,CAAC;IACnD,KAAKL,sBAAe,CAACQ,oBAAoB;MACvC,OAAO;QAAEL,SAAS,EAAE;UAAEC,KAAK,EAAE,GAAG;UAAEC,MAAM,EAAE;QAAI;MAAE,CAAC;IACnD,KAAKL,sBAAe,CAACS,gBAAgB;MACnC,OAAO;QAAEN,SAAS,EAAE;UAAEC,KAAK,EAAE,GAAG;UAAEC,MAAM,EAAE;QAAI;MAAE,CAAC;IACnD,KAAKL,sBAAe,CAACU,mBAAmB;IACxC,KAAKV,sBAAe,CAACW,iCAAiC;MACpD,OAAO;QAAER,SAAS,EAAE;UAAEC,KAAK,EAAE,GAAG;UAAEC,MAAM,EAAE;QAAI;MAAE,CAAC;IACnD;MACE,OAAO;QAAEF,SAAS,EAAE;UAAEC,KAAK,EAAE,GAAG;UAAEC,MAAM,EAAE;QAAI;MAAE,CAAC;EACrD;AACF,CAAC;AAAAO,OAAA,CAAAd,qBAAA,GAAAA,qBAAA;AAEM,MAAMe,4BAA4B,GAAId,YAAoC,IAAK;EACpF,IAAI,CAACA,YAAY,EAAE,OAAO,KAAK;EAE/B,OAAOe,iCAAsB,CAACC,QAAQ,CAAChB,YAAY,CAAC;AACtD,CAAC;AAAAa,OAAA,CAAAC,4BAAA,GAAAA,4BAAA","ignoreList":[]}
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useSparkAnimation = void 0;
7
- var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- const useSparkAnimation = ({
10
- id,
11
- initialDelay,
12
- rotationAngle,
13
- holdDelay,
14
- springConfig,
15
- x,
16
- y,
17
- size
18
- }) => {
19
- const progress = (0, _reactNativeReanimated.useSharedValue)(0);
20
- const rotation = (0, _reactNativeReanimated.useSharedValue)(0);
21
- (0, _reactNativeReanimated.useAnimatedReaction)(() => progress.value, (current, previous) => {
22
- if (typeof previous === 'number' && current < previous * 0.95) {
23
- rotation.value = id === '2' ? -rotationAngle : rotationAngle;
24
- } else {
25
- rotation.value = current * (id === '2' ? -rotationAngle : rotationAngle);
26
- }
27
- }, [rotation, progress]);
28
- (0, _react.useEffect)(() => {
29
- progress.value = (0, _reactNativeReanimated.withDelay)(initialDelay, (0, _reactNativeReanimated.withRepeat)((0, _reactNativeReanimated.withSequence)((0, _reactNativeReanimated.withSpring)(1, springConfig), (0, _reactNativeReanimated.withDelay)(holdDelay, (0, _reactNativeReanimated.withSpring)(0, springConfig))), -1));
30
- }, []);
31
- const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
32
- const opacity = (0, _reactNativeReanimated.interpolate)(progress.value, [0, 1], [0, 1]);
33
- return {
34
- position: 'absolute',
35
- top: y,
36
- left: x,
37
- width: size,
38
- height: size,
39
- opacity,
40
- transform: [{
41
- rotate: `${rotation.value}deg`
42
- }],
43
- zIndex: 10
44
- };
45
- }, [progress, rotation]);
46
- return {
47
- animatedStyle
48
- };
49
- };
50
- exports.useSparkAnimation = useSparkAnimation;
51
- //# sourceMappingURL=useSparkAnimation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","useSparkAnimation","id","initialDelay","rotationAngle","holdDelay","springConfig","x","y","size","progress","useSharedValue","rotation","useAnimatedReaction","value","current","previous","useEffect","withDelay","withRepeat","withSequence","withSpring","animatedStyle","useAnimatedStyle","opacity","interpolate","position","top","left","width","height","transform","rotate","zIndex","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/hooks/useSparkAnimation.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAuBO,MAAME,iBAAiB,GAAGA,CAAC;EAChCC,EAAE;EACFC,YAAY;EACZC,aAAa;EACbC,SAAS;EACTC,YAAY;EACZC,CAAC;EACDC,CAAC;EACDC;AACsB,CAAC,KAAK;EAC5B,MAAMC,QAAQ,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EAClC,MAAMC,QAAQ,GAAG,IAAAD,qCAAc,EAAC,CAAC,CAAC;EAElC,IAAAE,0CAAmB,EACjB,MAAMH,QAAQ,CAACI,KAAK,EACpB,CAACC,OAAO,EAAEC,QAAQ,KAAK;IACrB,IAAI,OAAOA,QAAQ,KAAK,QAAQ,IAAID,OAAO,GAAGC,QAAQ,GAAG,IAAI,EAAE;MAC7DJ,QAAQ,CAACE,KAAK,GAAGZ,EAAE,KAAK,GAAG,GAAG,CAACE,aAAa,GAAGA,aAAa;IAC9D,CAAC,MAAM;MACLQ,QAAQ,CAACE,KAAK,GAAGC,OAAO,IAAIb,EAAE,KAAK,GAAG,GAAG,CAACE,aAAa,GAAGA,aAAa,CAAC;IAC1E;EACF,CAAC,EACD,CAACQ,QAAQ,EAAEF,QAAQ,CACrB,CAAC;EAED,IAAAO,gBAAS,EAAC,MAAM;IACdP,QAAQ,CAACI,KAAK,GAAG,IAAAI,gCAAS,EACxBf,YAAY,EACZ,IAAAgB,iCAAU,EACR,IAAAC,mCAAY,EACV,IAAAC,iCAAU,EAAC,CAAC,EAAEf,YAAY,CAAC,EAC3B,IAAAY,gCAAS,EAACb,SAAS,EAAE,IAAAgB,iCAAU,EAAC,CAAC,EAAEf,YAAY,CAAC,CAClD,CAAC,EACD,CAAC,CACH,CACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMgB,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC3C,MAAMC,OAAO,GAAG,IAAAC,kCAAW,EAACf,QAAQ,CAACI,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,OAAO;MACLY,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAEnB,CAAC;MACNoB,IAAI,EAAErB,CAAC;MACPsB,KAAK,EAAEpB,IAAI;MACXqB,MAAM,EAAErB,IAAI;MACZe,OAAO;MACPO,SAAS,EAAE,CAAC;QAAEC,MAAM,EAAE,GAAGpB,QAAQ,CAACE,KAAK;MAAM,CAAC,CAAC;MAC/CmB,MAAM,EAAE;IACV,CAAC;EACH,CAAC,EAAE,CAACvB,QAAQ,EAAEE,QAAQ,CAAC,CAAC;EAExB,OAAO;IAAEU;EAAc,CAAC;AAC1B,CAAC;AAAAY,OAAA,CAAAjC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- EOAModal: true
8
- };
9
- Object.defineProperty(exports, "EOAModal", {
10
- enumerable: true,
11
- get: function () {
12
- return _EOAModal.EOAModal;
13
- }
14
- });
15
- var _EOAModal = require("./components/EOAModal.js");
16
- var _types = require("./types.js");
17
- Object.keys(_types).forEach(function (key) {
18
- if (key === "default" || key === "__esModule") return;
19
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
20
- if (key in exports && exports[key] === _types[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _types[key];
25
- }
26
- });
27
- });
28
- var _model = require("./model/model.js");
29
- Object.keys(_model).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
32
- if (key in exports && exports[key] === _model[key]) return;
33
- Object.defineProperty(exports, key, {
34
- enumerable: true,
35
- get: function () {
36
- return _model[key];
37
- }
38
- });
39
- });
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_EOAModal","require","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_model"],"sourceRoot":"../../../../src","sources":["features/endOfAssignment/index.ts"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,MAAA,GAAAd,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAW,MAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,MAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,MAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EOAModel = void 0;
7
- var _effector = require("effector");
8
- var _types = require("../types.js");
9
- class EOAModel {
10
- showPopUp = (0, _effector.createEvent)();
11
- hidePopUp = (0, _effector.createEvent)();
12
- practicePressed = (0, _effector.createEvent)();
13
- leavePressed = (0, _effector.createEvent)();
14
- goToFirstProblemPressed = (0, _effector.createEvent)();
15
- recommendationsUpdated = (0, _effector.createEvent)();
16
- popUpTriggered = (0, _effector.createEvent)();
17
- $popUpData = (0, _effector.createStore)(null).on(this.showPopUp, (_, payload) => payload).on(this.recommendationsUpdated, (state, hasRecommendations) => state ? {
18
- ...state,
19
- hasRecommendations
20
- } : state).reset(this.hidePopUp);
21
- $modalVariant = (0, _effector.createStore)(null).on(this.showPopUp, (_, popUpData) => {
22
- if (!popUpData) return null;
23
- const {
24
- isExam,
25
- stats,
26
- examFinished,
27
- eventType,
28
- cheatDetection
29
- } = popUpData;
30
- const solvedAmount = stats?.solvedAmount ?? 0;
31
- const goodDrawingAmount = stats?.goodDrawingAmount ?? 0;
32
- if (!isExam) {
33
- if (solvedAmount === 0) return _types.EOAModalVariant.NO_CORRECT_ANSWERS;
34
- if (solvedAmount > 0 && goodDrawingAmount > 0) return _types.EOAModalVariant.HAS_GOOD_DRAWING;
35
- return _types.EOAModalVariant.HAS_CORRECT_ANSWERS;
36
- }
37
- if (eventType === _types.EOAEventType.EXAM_PAUSED) return _types.EOAModalVariant.EXAM_PAUSED;
38
- if (eventType === _types.EOAEventType.CHEAT_DETECTED) return _types.EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED;
39
- if (eventType === _types.EOAEventType.SUBMIT && !examFinished) {
40
- return cheatDetection ? _types.EOAModalVariant.EXAM_SAFE_MODE_SUBMIT : _types.EOAModalVariant.EXAM_SUBMIT;
41
- }
42
- if (examFinished || eventType === _types.EOAEventType.EXAM_FINISHED) {
43
- return solvedAmount > 0 ? _types.EOAModalVariant.EXAM_FINISHED_HAS_CORRECT_ANSWERS : _types.EOAModalVariant.EXAM_FINISHED_NO_CORRECT_ANSWERS;
44
- }
45
- return _types.EOAModalVariant.EXAM_SAFE_MODE_LEAVE;
46
- }).reset(this.hidePopUp);
47
- hidePopUpAndLeave = () => {
48
- this.leavePressed();
49
- this.hidePopUp();
50
- };
51
- }
52
- exports.EOAModel = EOAModel;
53
- //# sourceMappingURL=model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_effector","require","_types","EOAModel","showPopUp","createEvent","hidePopUp","practicePressed","leavePressed","goToFirstProblemPressed","recommendationsUpdated","popUpTriggered","$popUpData","createStore","on","_","payload","state","hasRecommendations","reset","$modalVariant","popUpData","isExam","stats","examFinished","eventType","cheatDetection","solvedAmount","goodDrawingAmount","EOAModalVariant","NO_CORRECT_ANSWERS","HAS_GOOD_DRAWING","HAS_CORRECT_ANSWERS","EOAEventType","EXAM_PAUSED","CHEAT_DETECTED","EXAM_SAFE_MODE_CHEAT_DETECTED","SUBMIT","EXAM_SAFE_MODE_SUBMIT","EXAM_SUBMIT","EXAM_FINISHED","EXAM_FINISHED_HAS_CORRECT_ANSWERS","EXAM_FINISHED_NO_CORRECT_ANSWERS","EXAM_SAFE_MODE_LEAVE","hidePopUpAndLeave","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,QAAQ,CAAC;EACJC,SAAS,GAAG,IAAAC,qBAAW,EAAe,CAAC;EACvCC,SAAS,GAAG,IAAAD,qBAAW,EAAC,CAAC;EAEzBE,eAAe,GAAG,IAAAF,qBAAW,EAAC,CAAC;EAC/BG,YAAY,GAAG,IAAAH,qBAAW,EAAC,CAAC;EAC5BI,uBAAuB,GAAG,IAAAJ,qBAAW,EAAC,CAAC;EACvCK,sBAAsB,GAAG,IAAAL,qBAAW,EAAU,CAAC;EAC/CM,cAAc,GAAG,IAAAN,qBAAW,EAAe,CAAC;EAE5CO,UAAU,GAAG,IAAAC,qBAAW,EAAsB,IAAI,CAAC,CAChEC,EAAE,CAAC,IAAI,CAACV,SAAS,EAAE,CAACW,CAAC,EAAEC,OAAO,KAAKA,OAAO,CAAC,CAC3CF,EAAE,CAAC,IAAI,CAACJ,sBAAsB,EAAE,CAACO,KAAK,EAAEC,kBAAkB,KAAMD,KAAK,GAAG;IAAE,GAAGA,KAAK;IAAEC;EAAmB,CAAC,GAAGD,KAAM,CAAC,CAClHE,KAAK,CAAC,IAAI,CAACb,SAAS,CAAC;EAENc,aAAa,GAAG,IAAAP,qBAAW,EAAyB,IAAI,CAAC,CACxEC,EAAE,CAAC,IAAI,CAACV,SAAS,EAAE,CAACW,CAAC,EAAEM,SAAS,KAAK;IACpC,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;IAE3B,MAAM;MAAEC,MAAM;MAAEC,KAAK;MAAEC,YAAY;MAAEC,SAAS;MAAEC;IAAe,CAAC,GAAGL,SAAS;IAC5E,MAAMM,YAAY,GAAGJ,KAAK,EAAEI,YAAY,IAAI,CAAC;IAC7C,MAAMC,iBAAiB,GAAGL,KAAK,EAAEK,iBAAiB,IAAI,CAAC;IAEvD,IAAI,CAACN,MAAM,EAAE;MACX,IAAIK,YAAY,KAAK,CAAC,EAAE,OAAOE,sBAAe,CAACC,kBAAkB;MACjE,IAAIH,YAAY,GAAG,CAAC,IAAIC,iBAAiB,GAAG,CAAC,EAAE,OAAOC,sBAAe,CAACE,gBAAgB;MACtF,OAAOF,sBAAe,CAACG,mBAAmB;IAC5C;IAEA,IAAIP,SAAS,KAAKQ,mBAAY,CAACC,WAAW,EAAE,OAAOL,sBAAe,CAACK,WAAW;IAC9E,IAAIT,SAAS,KAAKQ,mBAAY,CAACE,cAAc,EAAE,OAAON,sBAAe,CAACO,6BAA6B;IACnG,IAAIX,SAAS,KAAKQ,mBAAY,CAACI,MAAM,IAAI,CAACb,YAAY,EAAE;MACtD,OAAOE,cAAc,GACjBG,sBAAe,CAACS,qBAAqB,GACrCT,sBAAe,CAACU,WAAW;IACjC;IAEA,IAAIf,YAAY,IAAIC,SAAS,KAAKQ,mBAAY,CAACO,aAAa,EAAE;MAC5D,OAAOb,YAAY,GAAG,CAAC,GACnBE,sBAAe,CAACY,iCAAiC,GACjDZ,sBAAe,CAACa,gCAAgC;IACtD;IAEA,OAAOb,sBAAe,CAACc,oBAAoB;EAC7C,CAAC,CAAC,CACDxB,KAAK,CAAC,IAAI,CAACb,SAAS,CAAC;EAGRsC,iBAAiB,GAAGA,CAAA,KAAM;IACxC,IAAI,CAACpC,YAAY,CAAC,CAAC;IACnB,IAAI,CAACF,SAAS,CAAC,CAAC;EAClB,CAAC;AAEH;AAACuC,OAAA,CAAA1C,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EOAModalVariant = exports.EOAEventType = exports.AnimatedCardVariant = void 0;
7
- let EOAEventType = exports.EOAEventType = /*#__PURE__*/function (EOAEventType) {
8
- EOAEventType["SUBMIT"] = "SUBMIT";
9
- EOAEventType["EXAM_LEAVE"] = "EXAM_LEAVE";
10
- EOAEventType["EXAM_PAUSED"] = "EXAM_PAUSED";
11
- EOAEventType["EXAM_FINISHED"] = "EXAM_FINISHED";
12
- EOAEventType["CHEAT_DETECTED"] = "CHEAT_DETECTED";
13
- return EOAEventType;
14
- }({});
15
- let EOAModalVariant = exports.EOAModalVariant = /*#__PURE__*/function (EOAModalVariant) {
16
- EOAModalVariant["NO_CORRECT_ANSWERS"] = "NO_CORRECT_ANSWERS";
17
- EOAModalVariant["HAS_CORRECT_ANSWERS"] = "HAS_CORRECT_ANSWERS";
18
- EOAModalVariant["HAS_GOOD_DRAWING"] = "HAS_GOOD_DRAWING";
19
- EOAModalVariant["EXAM_PAUSED"] = "EXAM_PAUSED";
20
- EOAModalVariant["EXAM_SUBMIT"] = "EXAM_SUBMIT";
21
- EOAModalVariant["EXAM_SAFE_MODE_SUBMIT"] = "EXAM_SAFE_MODE_SUBMIT";
22
- EOAModalVariant["EXAM_SAFE_MODE_LEAVE"] = "EXAM_SAFE_MODE_LEAVE";
23
- EOAModalVariant["EXAM_SAFE_MODE_CHEAT_DETECTED"] = "EXAM_SAFE_MODE_CHEAT_DETECTED";
24
- EOAModalVariant["EXAM_FINISHED_HAS_CORRECT_ANSWERS"] = "EXAM_FINISHED_HAS_CORRECT_ANSWERS";
25
- EOAModalVariant["EXAM_FINISHED_NO_CORRECT_ANSWERS"] = "EXAM_FINISHED_NO_CORRECT_ANSWERS";
26
- return EOAModalVariant;
27
- }({});
28
- let AnimatedCardVariant = exports.AnimatedCardVariant = /*#__PURE__*/function (AnimatedCardVariant) {
29
- AnimatedCardVariant["GOOD_DRAWING"] = "goodDrawing";
30
- AnimatedCardVariant["CORRECT_ANSWER"] = "correctAnswers";
31
- return AnimatedCardVariant;
32
- }({});
33
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["EOAEventType","exports","EOAModalVariant","AnimatedCardVariant"],"sourceRoot":"../../../../src","sources":["features/endOfAssignment/types.ts"],"mappings":";;;;;;IAEYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAQZE,eAAe,GAAAD,OAAA,CAAAC,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAA,IAgBfC,mBAAmB,GAAAF,OAAA,CAAAE,mBAAA,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA","ignoreList":[]}
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.EOABadge = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
- var _ThumbUpIcon = require("./ThumbUpIcon.js");
11
- var _types = require("../types.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- const EOABadge = ({
15
- variant,
16
- size = 70,
17
- iconSize = 45,
18
- color = _reactNativeUi.COLORS.PRIMARY_GREEN
19
- }) => {
20
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
21
- style: [styles.container, {
22
- width: size,
23
- height: size,
24
- backgroundColor: color
25
- }],
26
- children: variant === _types.AnimatedCardVariant.CORRECT_ANSWER ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.CorrectIcon, {
27
- size: iconSize,
28
- color: _reactNativeUi.COLORS.NEUTRAL_1
29
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ThumbUpIcon.ThumbUpIcon, {
30
- size: iconSize,
31
- color: _reactNativeUi.COLORS.NEUTRAL_1
32
- })
33
- });
34
- };
35
- exports.EOABadge = EOABadge;
36
- const styles = _reactNative.StyleSheet.create({
37
- container: {
38
- justifyContent: 'center',
39
- alignItems: 'center',
40
- borderRadius: 50
41
- }
42
- });
43
- //# sourceMappingURL=EOABadge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_ThumbUpIcon","_types","_jsxRuntime","e","__esModule","default","EOABadge","variant","size","iconSize","color","COLORS","PRIMARY_GREEN","jsx","View","style","styles","container","width","height","backgroundColor","children","AnimatedCardVariant","CORRECT_ANSWER","CorrectIcon","NEUTRAL_1","ThumbUpIcon","exports","StyleSheet","create","justifyContent","alignItems","borderRadius"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/ui/EOABadge.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AASvC,MAAMG,QAAQ,GAAGA,CAAC;EACvBC,OAAO;EACPC,IAAI,GAAG,EAAE;EACTC,QAAQ,GAAG,EAAE;EACbC,KAAK,GAAGC,qBAAM,CAACC;AACF,CAAC,KAAK;EACnB,oBACE,IAAAV,WAAA,CAAAW,GAAA,EAACf,YAAA,CAAAgB,IAAI;IACHC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,KAAK,EAAEV,IAAI;MACXW,MAAM,EAAEX,IAAI;MACZY,eAAe,EAAEV;IACnB,CAAC,CACD;IAAAW,QAAA,EAEDd,OAAO,KAAKe,0BAAmB,CAACC,cAAc,gBAC7C,IAAArB,WAAA,CAAAW,GAAA,EAACd,cAAA,CAAAyB,WAAW;MAAChB,IAAI,EAAEC,QAAS;MAACC,KAAK,EAAEC,qBAAM,CAACc;IAAU,CAAE,CAAC,gBAExD,IAAAvB,WAAA,CAAAW,GAAA,EAACb,YAAA,CAAA0B,WAAW;MAAClB,IAAI,EAAEC,QAAS;MAACC,KAAK,EAAEC,qBAAM,CAACc;IAAU,CAAE;EACxD,CACG,CAAC;AAEX,CAAC;AAAAE,OAAA,CAAArB,QAAA,GAAAA,QAAA;AAED,MAAMU,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PracticeButton = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNativeUi = require("@magmamath/react-native-ui");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- const PracticeButton = ({
12
- onPress,
13
- text = '',
14
- colorScheme = _reactNativeUi.ButtonColor.YELLOW
15
- }) => {
16
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
17
- variant: "primary",
18
- colorScheme: colorScheme,
19
- size: "large",
20
- style: {
21
- text: {
22
- textTransform: 'uppercase'
23
- }
24
- },
25
- onPress: onPress,
26
- children: text
27
- });
28
- };
29
- exports.PracticeButton = PracticeButton;
30
- //# sourceMappingURL=PracticeButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_jsxRuntime","e","__esModule","default","PracticeButton","onPress","text","colorScheme","ButtonColor","YELLOW","jsx","Button","variant","size","style","textTransform","children","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/ui/PracticeButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAAgE,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQzD,MAAMG,cAAc,GAAGA,CAAC;EAC7BC,OAAO;EACPC,IAAI,GAAG,EAAE;EACTC,WAAW,GAAGC,0BAAW,CAACC;AACP,CAAC,KAAK;EACzB,oBACE,IAAAT,WAAA,CAAAU,GAAA,EAACX,cAAA,CAAAY,MAAM;IACLC,OAAO,EAAC,SAAS;IACjBL,WAAW,EAAEA,WAAY;IACzBM,IAAI,EAAC,OAAO;IACZC,KAAK,EAAE;MAAER,IAAI,EAAE;QAAES,aAAa,EAAE;MAAY;IAAE,CAAE;IAChDV,OAAO,EAAEA,OAAQ;IAAAW,QAAA,EAEhBV;EAAI,CACC,CAAC;AAEb,CAAC;AAAAW,OAAA,CAAAb,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.PracticeButtonGroup = 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 _PracticeButton = require("./PracticeButton.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- 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); }
14
- 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; }
15
- const PracticeButtonGroup = ({
16
- textContent,
17
- isPracticeButtonVisible,
18
- onLeftButtonPress,
19
- onRightButtonPress,
20
- isExam
21
- }) => {
22
- const buttonsContainerOpacity = (0, _reactNativeReanimated.useSharedValue)(0);
23
- (0, _react.useEffect)(() => {
24
- buttonsContainerOpacity.value = (0, _reactNativeReanimated.withDelay)(1000, (0, _reactNativeReanimated.withTiming)(1, {
25
- duration: 500
26
- }));
27
- }, []);
28
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
29
- style: [styles.buttonsContainer, {
30
- opacity: buttonsContainerOpacity
31
- }],
32
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
33
- entering: isPracticeButtonVisible ? _reactNativeReanimated.FadeInRight.delay(1000).duration(500).easing(_reactNativeReanimated.Easing.ease) : _reactNativeReanimated.FadeInUp.duration(500),
34
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
35
- variant: isPracticeButtonVisible ? _reactNativeUi.ButtonVariant.TERTIARY : _reactNativeUi.ButtonVariant.PRIMARY,
36
- size: _reactNativeUi.ButtonSize.LARGE,
37
- colorScheme: isExam ? _reactNativeUi.ButtonColor.PURPLE : _reactNativeUi.ButtonColor.BLUE,
38
- style: {
39
- text: {
40
- textTransform: 'uppercase'
41
- }
42
- },
43
- onPress: onLeftButtonPress,
44
- children: textContent.leftButtonText
45
- })
46
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
47
- children: isPracticeButtonVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PracticeButton.PracticeButton, {
48
- onPress: onRightButtonPress,
49
- text: textContent.rightButtonText
50
- })
51
- })]
52
- });
53
- };
54
- exports.PracticeButtonGroup = PracticeButtonGroup;
55
- const styles = _reactNative.StyleSheet.create({
56
- buttonsContainer: {
57
- height: 62,
58
- flexDirection: 'row',
59
- alignItems: 'center',
60
- justifyContent: 'center',
61
- paddingHorizontal: _reactNativeUi.SPACING[300]
62
- }
63
- });
64
- //# sourceMappingURL=PracticeButtonGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeUi","_PracticeButton","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","PracticeButtonGroup","textContent","isPracticeButtonVisible","onLeftButtonPress","onRightButtonPress","isExam","buttonsContainerOpacity","useSharedValue","useEffect","value","withDelay","withTiming","duration","jsxs","View","style","styles","buttonsContainer","opacity","children","jsx","entering","FadeInRight","delay","easing","Easing","ease","FadeInUp","Button","variant","ButtonVariant","TERTIARY","PRIMARY","size","ButtonSize","LARGE","colorScheme","ButtonColor","PURPLE","BLUE","text","textTransform","onPress","leftButtonText","PracticeButton","rightButtonText","exports","StyleSheet","create","height","flexDirection","alignItems","justifyContent","paddingHorizontal","SPACING"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/ui/PracticeButtonGroup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAQA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAAiD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,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,SAAAR,wBAAAQ,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,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAU1C,MAAMW,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,uBAAuB;EACvBC,iBAAiB;EACjBC,kBAAkB;EAClBC;AACwB,CAAC,KAAK;EAC9B,MAAMC,uBAAuB,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EAEjD,IAAAC,gBAAS,EAAC,MAAM;IACdF,uBAAuB,CAACG,KAAK,GAAG,IAAAC,gCAAS,EAAC,IAAI,EAAE,IAAAC,iCAAU,EAAC,CAAC,EAAE;MAAEC,QAAQ,EAAE;IAAI,CAAC,CAAC,CAAC;EACnF,CAAC,EAAE,EAAE,CAAC;EAEN,oBACE,IAAAjC,WAAA,CAAAkC,IAAA,EAACrC,sBAAA,CAAAU,OAAQ,CAAC4B,IAAI;IAACC,KAAK,EAAE,CAACC,MAAM,CAACC,gBAAgB,EAAE;MAAEC,OAAO,EAAEZ;IAAwB,CAAC,CAAE;IAAAa,QAAA,gBACpF,IAAAxC,WAAA,CAAAyC,GAAA,EAAC5C,sBAAA,CAAAU,OAAQ,CAAC4B,IAAI;MACZO,QAAQ,EACNnB,uBAAuB,GACnBoB,kCAAW,CAACC,KAAK,CAAC,IAAI,CAAC,CAACX,QAAQ,CAAC,GAAG,CAAC,CAACY,MAAM,CAACC,6BAAM,CAACC,IAAI,CAAC,GACzDC,+BAAQ,CAACf,QAAQ,CAAC,GAAG,CAC1B;MAAAO,QAAA,eAED,IAAAxC,WAAA,CAAAyC,GAAA,EAAC3C,cAAA,CAAAmD,MAAM;QACLC,OAAO,EAAE3B,uBAAuB,GAAG4B,4BAAa,CAACC,QAAQ,GAAGD,4BAAa,CAACE,OAAQ;QAClFC,IAAI,EAAEC,yBAAU,CAACC,KAAM;QACvBC,WAAW,EAAE/B,MAAM,GAAGgC,0BAAW,CAACC,MAAM,GAAGD,0BAAW,CAACE,IAAK;QAC5DxB,KAAK,EAAE;UAAEyB,IAAI,EAAE;YAAEC,aAAa,EAAE;UAAY;QAAE,CAAE;QAChDC,OAAO,EAAEvC,iBAAkB;QAAAgB,QAAA,EAE1BlB,WAAW,CAAC0C;MAAc,CACrB;IAAC,CACI,CAAC,eAChB,IAAAhE,WAAA,CAAAyC,GAAA,EAAC5C,sBAAA,CAAAU,OAAQ,CAAC4B,IAAI;MAAAK,QAAA,EACXjB,uBAAuB,iBACtB,IAAAvB,WAAA,CAAAyC,GAAA,EAAC1C,eAAA,CAAAkE,cAAc;QAACF,OAAO,EAAEtC,kBAAmB;QAACoC,IAAI,EAAEvC,WAAW,CAAC4C;MAAgB,CAAE;IAClF,CACY,CAAC;EAAA,CACH,CAAC;AAEpB,CAAC;AAAAC,OAAA,CAAA9C,mBAAA,GAAAA,mBAAA;AAED,MAAMgB,MAAM,GAAG+B,uBAAU,CAACC,MAAM,CAAC;EAC/B/B,gBAAgB,EAAE;IAChBgC,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG;EAChC;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SparkIcon = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- 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); }
11
- 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; }
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const SparkIcon = ({
14
- size = 12,
15
- color
16
- }) => {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.default, {
18
- width: size,
19
- height: size,
20
- viewBox: "0 0 22 22",
21
- fill: "none",
22
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
23
- d: "M20.563 12.363c-3.688 1.348-6.782 4.42-8.24 8.244-.505 1.19-2.111 1.19-2.587 0-1.517-3.793-4.61-6.864-8.299-8.18-1.25-.502-1.25-2.352 0-2.79 3.688-1.348 6.782-4.42 8.24-8.244.505-1.19 2.111-1.19 2.587 0 1.517 3.793 4.61 6.864 8.299 8.18 1.25.502 1.25 2.352 0 2.79z",
24
- fill: color
25
- })
26
- });
27
- };
28
- exports.SparkIcon = SparkIcon;
29
- //# sourceMappingURL=SparkIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","_interopRequireWildcard","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SparkIcon","size","color","jsx","width","height","viewBox","fill","children","Path","d","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/ui/SparkIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,eAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA4C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAI,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,SAAAH,wBAAAG,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,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAAA,SAAAd,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAI,UAAA,GAAAJ,CAAA,KAAAK,OAAA,EAAAL,CAAA;AAErC,MAAMmB,SAAS,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC;AAAiB,CAAC,KAAK;EAC5D,oBACE,IAAAvB,WAAA,CAAAwB,GAAA,EAAC1B,eAAA,CAAAS,OAAG;IAACkB,KAAK,EAAEH,IAAK;IAACI,MAAM,EAAEJ,IAAK;IAACK,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eAC7D,IAAA7B,WAAA,CAAAwB,GAAA,EAAC1B,eAAA,CAAAgC,IAAI;MACHC,CAAC,EAAC,0QAA0Q;MAC5QH,IAAI,EAAEL;IAAM,CACb;EAAC,CACC,CAAC;AAEV,CAAC;AAAAS,OAAA,CAAAX,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ThumbUpIcon = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNativeUi = require("@magmamath/react-native-ui");
9
- var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- 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); }
12
- 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; }
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- const ThumbUpIcon = ({
15
- size = 57,
16
- color = _reactNativeUi.COLORS.NEUTRAL_1
17
- }) => {
18
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.default, {
19
- width: size,
20
- height: size,
21
- viewBox: "0 0 57 57",
22
- fill: "none",
23
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
24
- fillRule: "evenodd",
25
- clipRule: "evenodd",
26
- d: "M23.22 49.594c-2.143 0-4.284-.72-6.027-1.862l-.071-.048-.296-.197-.158.319a4.28 4.28 0 01-3.837 2.382H9.466a4.279 4.279 0 01-4.278-4.28V23.306a4.279 4.279 0 014.278-4.279h3.365c1.479 0 2.782.75 3.551 1.89l.19.282.265-.212c5.975-4.77 8.052-10.642 8.495-13.38.277-1.717 1.289-2.983 2.692-3.609 1.329-.593 2.835-.542 4.145-.08 2.702.951 4.96 3.765 4.472 7.79-.403 3.328-1.348 6.402-2.075 8.692l-.129.407h10.805c3.133 0 5.975 2.24 6.322 5.54.239 2.271.405 5.292.016 7.948-.35 2.397-.956 6.096-2.536 9.219-1.62 3.203-4.436 6.08-9.153 6.08h-16.67zm7.662-42.021c-.566-.2-1.025-.15-1.279-.036a.636.636 0 00-.262.201c-.091.12-.15.279-.184.486-.621 3.847-3.536 11.617-11.909 17.265l-.138.093v16.407l.025.058c.363.867 1.115 1.744 2.184 2.445 1.184.777 2.596 1.227 3.902 1.227h16.67c1.36 0 2.483-.376 3.422-1.07.932-.69 1.665-1.681 2.273-2.884 1.263-2.497 1.807-5.619 2.16-8.031.318-2.173.192-4.812-.035-6.981-.12-1.141-1.125-2.071-2.47-2.071h-11.91c-1.994 0-3.56-1.904-2.936-3.938.123-.4.255-.817.393-1.252l.003-.009c.737-2.327 1.627-5.14 2.003-8.242.13-1.066-.08-1.894-.465-2.506a2.835 2.835 0 00-1.447-1.162zM9.466 22.903a.404.404 0 00-.403.403v22.602c0 .224.18.404.403.404h3.365a.403.403 0 00.404-.403V23.306a.404.404 0 00-.404-.404H9.466z",
27
- fill: color
28
- })
29
- });
30
- };
31
- exports.ThumbUpIcon = ThumbUpIcon;
32
- //# sourceMappingURL=ThumbUpIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_reactNativeSvg","_interopRequireWildcard","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ThumbUpIcon","size","color","COLORS","NEUTRAL_1","jsx","width","height","viewBox","fill","children","Path","fillRule","clipRule","d","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/ui/ThumbUpIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,uBAAA,CAAAH,OAAA;AAA4C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,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,SAAAH,wBAAAG,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,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAAA,SAAAf,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAI,UAAA,GAAAJ,CAAA,KAAAK,OAAA,EAAAL,CAAA;AAErC,MAAMmB,WAAW,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAGC,qBAAM,CAACC;AAAqB,CAAC,KAAK;EACjF,oBACE,IAAAzB,WAAA,CAAA0B,GAAA,EAAC5B,eAAA,CAAAS,OAAG;IAACoB,KAAK,EAAEL,IAAK;IAACM,MAAM,EAAEN,IAAK;IAACO,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eAC7D,IAAA/B,WAAA,CAAA0B,GAAA,EAAC5B,eAAA,CAAAkC,IAAI;MACHC,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,itCAAitC;MACntCL,IAAI,EAAEP;IAAM,CACb;EAAC,CACC,CAAC;AAEV,CAAC;AAAAa,OAAA,CAAAf,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.KeyboardKeys = void 0;
7
- let KeyboardKeys = exports.KeyboardKeys = /*#__PURE__*/function (KeyboardKeys) {
8
- KeyboardKeys["ENTER"] = "Enter";
9
- return KeyboardKeys;
10
- }({});
11
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["KeyboardKeys","exports"],"sourceRoot":"../../../src","sources":["lib/constants.ts"],"mappings":";;;;;;IAAYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useKeyDownListener = void 0;
7
- var _react = require("react");
8
- var _constants = require("../../lib/constants.js");
9
- const useKeyDownListener = (callback, overrideKeys = [_constants.KeyboardKeys.ENTER]) => {
10
- const callbackRef = (0, _react.useRef)(callback);
11
- callbackRef.current = callback;
12
- (0, _react.useEffect)(() => {
13
- const eventHandler = event => {
14
- if (overrideKeys.includes(event.key)) {
15
- event.preventDefault();
16
- event.stopPropagation();
17
- }
18
- callbackRef.current(event);
19
- };
20
- document.addEventListener('keydown', eventHandler, true);
21
- return () => {
22
- document.removeEventListener('keydown', eventHandler, true);
23
- };
24
- }, []);
25
- };
26
- exports.useKeyDownListener = useKeyDownListener;
27
- //# sourceMappingURL=useKeyDownListener.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_constants","useKeyDownListener","callback","overrideKeys","KeyboardKeys","ENTER","callbackRef","useRef","current","useEffect","eventHandler","event","includes","key","preventDefault","stopPropagation","document","addEventListener","removeEventListener","exports"],"sourceRoot":"../../../../src","sources":["shared/hooks/useKeyDownListener.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAEO,MAAME,kBAAkB,GAAGA,CAChCC,QAAwC,EACxCC,YAAY,GAAG,CAACC,uBAAY,CAACC,KAAK,CAAC,KAChC;EACH,MAAMC,WAAW,GAAG,IAAAC,aAAM,EAACL,QAAQ,CAAC;EACpCI,WAAW,CAACE,OAAO,GAAGN,QAAQ;EAE9B,IAAAO,gBAAS,EAAC,MAAM;IACd,MAAMC,YAAY,GAAIC,KAAoB,IAAK;MAC7C,IAAIR,YAAY,CAACS,QAAQ,CAACD,KAAK,CAACE,GAAmB,CAAC,EAAE;QACpDF,KAAK,CAACG,cAAc,CAAC,CAAC;QACtBH,KAAK,CAACI,eAAe,CAAC,CAAC;MACzB;MAEAT,WAAW,CAACE,OAAO,CAACG,KAAK,CAAC;IAC5B,CAAC;IAEDK,QAAQ,CAACC,gBAAgB,CAAC,SAAS,EAAEP,YAAY,EAAE,IAAI,CAAC;IACxD,OAAO,MAAM;MACXM,QAAQ,CAACE,mBAAmB,CAAC,SAAS,EAAER,YAAY,EAAE,IAAI,CAAC;IAC7D,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAAS,OAAA,CAAAlB,kBAAA,GAAAA,kBAAA","ignoreList":[]}