@magmamath/students-features 0.6.0 → 0.6.1-2.rc-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (594) hide show
  1. package/README.md +14 -5
  2. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +6 -2
  3. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  4. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +27 -24
  5. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  6. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  7. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +9 -4
  8. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +18 -5
  10. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  11. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +10 -3
  12. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  13. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +16 -12
  14. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  15. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +13 -4
  16. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  17. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +14 -8
  18. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  19. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +14 -4
  20. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  21. package/dist/commonjs/features/chatbot/components/Chatbot.js +5 -2
  22. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  23. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +2 -1
  24. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  25. package/dist/commonjs/features/chatbot/constants.js +36 -1
  26. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  27. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +8 -0
  28. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  29. package/dist/commonjs/features/chatbot/index.js +7 -0
  30. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  31. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +67 -39
  32. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  33. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +3 -8
  34. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  35. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +12 -1
  36. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  37. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +4 -2
  38. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  39. package/dist/commonjs/features/chatbot/model/constants.js.map +1 -1
  40. package/dist/commonjs/features/chatbot/model/translation.js +9 -1
  41. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  42. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  43. package/dist/commonjs/features/chatbot/types/style.types.js +12 -0
  44. package/dist/commonjs/features/chatbot/types/style.types.js.map +1 -0
  45. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +2 -0
  46. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  47. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +31 -0
  48. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +1 -0
  49. package/dist/commonjs/features/exampleSolution/assets/grid.png +0 -0
  50. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +97 -0
  51. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -0
  52. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +43 -0
  53. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +1 -0
  54. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +61 -0
  55. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +1 -0
  56. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +68 -0
  57. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -0
  58. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +75 -0
  59. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -0
  60. package/dist/commonjs/features/exampleSolution/components/index.js +2 -0
  61. package/dist/commonjs/features/exampleSolution/components/index.js.map +1 -0
  62. package/dist/commonjs/features/exampleSolution/constants.js +13 -0
  63. package/dist/commonjs/features/exampleSolution/constants.js.map +1 -0
  64. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +54 -0
  65. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +1 -0
  66. package/dist/commonjs/features/exampleSolution/index.js +39 -0
  67. package/dist/commonjs/features/exampleSolution/index.js.map +1 -0
  68. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +22 -0
  69. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +1 -0
  70. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +24 -0
  71. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -0
  72. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +19 -0
  73. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +1 -0
  74. package/dist/commonjs/features/exampleSolution/types.js +6 -0
  75. package/dist/commonjs/features/exampleSolution/types.js.map +1 -0
  76. package/dist/commonjs/features/feedback/model/comments.js +5 -3
  77. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  78. package/dist/commonjs/features/feedback/model/model.js +7 -9
  79. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  80. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js +62 -0
  81. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +1 -0
  82. package/dist/commonjs/features/gifCelebrations/assets/confetti.webp +0 -0
  83. package/dist/commonjs/features/gifCelebrations/assets/gifFallback.gif +0 -0
  84. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +44 -0
  85. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +1 -0
  86. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js +46 -0
  87. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +1 -0
  88. package/dist/commonjs/features/gifCelebrations/components/Gif.js +90 -0
  89. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -0
  90. package/dist/commonjs/features/gifCelebrations/components/Progress.js +96 -0
  91. package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +1 -0
  92. package/dist/commonjs/features/gifCelebrations/constants.js +34 -0
  93. package/dist/commonjs/features/gifCelebrations/constants.js.map +1 -0
  94. package/dist/commonjs/features/gifCelebrations/helpers.js +114 -0
  95. package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -0
  96. package/dist/commonjs/features/gifCelebrations/index.js +20 -0
  97. package/dist/commonjs/features/gifCelebrations/index.js.map +1 -0
  98. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +136 -0
  99. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
  100. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js +27 -0
  101. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js.map +1 -0
  102. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js +30 -0
  103. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js.map +1 -0
  104. package/dist/commonjs/features/gifCelebrations/types/model.types.js +6 -0
  105. package/dist/commonjs/features/gifCelebrations/types/model.types.js.map +1 -0
  106. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +12 -9
  107. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  108. package/dist/commonjs/features/problemSelector/constants.js +3 -6
  109. package/dist/commonjs/features/problemSelector/constants.js.map +1 -1
  110. package/dist/commonjs/index.js +36 -0
  111. package/dist/commonjs/index.js.map +1 -1
  112. package/dist/commonjs/lib/effector/ControlledSample.js +40 -0
  113. package/dist/commonjs/lib/effector/ControlledSample.js.map +1 -0
  114. package/dist/commonjs/lib/effector/createControllerEffect.js.map +1 -1
  115. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  116. package/dist/commonjs/react-app-env.d.js +2 -0
  117. package/dist/commonjs/react-app-env.d.js.map +1 -0
  118. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js +681 -0
  119. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js.map +1 -0
  120. package/dist/commonjs/shared/icons/LavaIconInGlasses.js +616 -0
  121. package/dist/commonjs/shared/icons/LavaIconInGlasses.js.map +1 -0
  122. package/dist/commonjs/shared/icons/index.js +204 -0
  123. package/dist/commonjs/shared/icons/index.js.map +1 -0
  124. package/dist/commonjs/shared/translation/constants.js +5 -1
  125. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  126. package/dist/commonjs/shared/translation/localization/ca.json +33 -0
  127. package/dist/commonjs/shared/translation/localization/en.json +13 -1
  128. package/dist/commonjs/shared/translation/localization/gb.json +13 -1
  129. package/dist/commonjs/shared/translation/localization/sct.json +33 -0
  130. package/dist/commonjs/shared/translation/localization/sw.json +13 -1
  131. package/dist/commonjs/shared/translation/types.js +2 -0
  132. package/dist/commonjs/shared/translation/types.js.map +1 -1
  133. package/dist/commonjs/types/common.types.js +2 -0
  134. package/dist/commonjs/types/common.types.js.map +1 -0
  135. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +6 -2
  136. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  137. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +29 -27
  138. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  139. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  140. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +9 -4
  141. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  142. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +18 -5
  143. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  144. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +10 -3
  145. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  146. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +16 -12
  147. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  148. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +13 -4
  149. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  150. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +14 -8
  151. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  152. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +14 -4
  153. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  154. package/dist/module/features/chatbot/components/Chatbot.js +5 -2
  155. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  156. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +3 -3
  157. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  158. package/dist/module/features/chatbot/constants.js +35 -0
  159. package/dist/module/features/chatbot/constants.js.map +1 -1
  160. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +9 -1
  161. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  162. package/dist/module/features/chatbot/index.js +1 -0
  163. package/dist/module/features/chatbot/index.js.map +1 -1
  164. package/dist/module/features/chatbot/model/ChatBotModel.js +68 -40
  165. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  166. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +3 -8
  167. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  168. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +12 -1
  169. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  170. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +4 -2
  171. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  172. package/dist/module/features/chatbot/model/constants.js.map +1 -1
  173. package/dist/module/features/chatbot/model/translation.js +9 -1
  174. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  175. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  176. package/dist/module/features/chatbot/types/style.types.js +8 -0
  177. package/dist/module/features/chatbot/types/style.types.js.map +1 -0
  178. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +3 -1
  179. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  180. package/dist/module/features/exampleSolution/ExampleSolutionModal.js +25 -0
  181. package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +1 -0
  182. package/dist/module/features/exampleSolution/assets/grid.png +0 -0
  183. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +91 -0
  184. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -0
  185. package/dist/module/features/exampleSolution/components/LavaIcon.js +35 -0
  186. package/dist/module/features/exampleSolution/components/LavaIcon.js.map +1 -0
  187. package/dist/module/features/exampleSolution/components/MessageBlock.js +53 -0
  188. package/dist/module/features/exampleSolution/components/MessageBlock.js.map +1 -0
  189. package/dist/module/features/exampleSolution/components/QuestionSection.js +60 -0
  190. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -0
  191. package/dist/module/features/exampleSolution/components/SolutionSection.js +67 -0
  192. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -0
  193. package/dist/module/features/exampleSolution/components/index.js +2 -0
  194. package/dist/module/features/exampleSolution/components/index.js.map +1 -0
  195. package/dist/module/features/exampleSolution/constants.js +9 -0
  196. package/dist/module/features/exampleSolution/constants.js.map +1 -0
  197. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +49 -0
  198. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +1 -0
  199. package/dist/module/features/exampleSolution/index.js +6 -0
  200. package/dist/module/features/exampleSolution/index.js.map +1 -0
  201. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +17 -0
  202. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +1 -0
  203. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +19 -0
  204. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -0
  205. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +14 -0
  206. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +1 -0
  207. package/dist/module/features/exampleSolution/types.js +4 -0
  208. package/dist/module/features/exampleSolution/types.js.map +1 -0
  209. package/dist/module/features/feedback/model/comments.js +5 -3
  210. package/dist/module/features/feedback/model/comments.js.map +1 -1
  211. package/dist/module/features/feedback/model/model.js +7 -9
  212. package/dist/module/features/feedback/model/model.js.map +1 -1
  213. package/dist/module/features/gifCelebrations/GifCelebrations.js +55 -0
  214. package/dist/module/features/gifCelebrations/GifCelebrations.js.map +1 -0
  215. package/dist/module/features/gifCelebrations/assets/confetti.webp +0 -0
  216. package/dist/module/features/gifCelebrations/assets/gifFallback.gif +0 -0
  217. package/dist/module/features/gifCelebrations/components/Backdrop.js +36 -0
  218. package/dist/module/features/gifCelebrations/components/Backdrop.js.map +1 -0
  219. package/dist/module/features/gifCelebrations/components/ContentContainer.js +38 -0
  220. package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +1 -0
  221. package/dist/module/features/gifCelebrations/components/Gif.js +82 -0
  222. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -0
  223. package/dist/module/features/gifCelebrations/components/Progress.js +88 -0
  224. package/dist/module/features/gifCelebrations/components/Progress.js.map +1 -0
  225. package/dist/module/features/gifCelebrations/constants.js +30 -0
  226. package/dist/module/features/gifCelebrations/constants.js.map +1 -0
  227. package/dist/module/features/gifCelebrations/helpers.js +103 -0
  228. package/dist/module/features/gifCelebrations/helpers.js.map +1 -0
  229. package/dist/module/features/gifCelebrations/index.js +5 -0
  230. package/dist/module/features/gifCelebrations/index.js.map +1 -0
  231. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +131 -0
  232. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
  233. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js +22 -0
  234. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js.map +1 -0
  235. package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js +25 -0
  236. package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js.map +1 -0
  237. package/dist/module/features/gifCelebrations/types/model.types.js +4 -0
  238. package/dist/module/features/gifCelebrations/types/model.types.js.map +1 -0
  239. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +13 -10
  240. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  241. package/dist/module/features/problemSelector/constants.js +2 -5
  242. package/dist/module/features/problemSelector/constants.js.map +1 -1
  243. package/dist/module/index.js +3 -0
  244. package/dist/module/index.js.map +1 -1
  245. package/dist/module/lib/effector/ControlledSample.js +35 -0
  246. package/dist/module/lib/effector/ControlledSample.js.map +1 -0
  247. package/dist/module/lib/effector/createControllerEffect.js.map +1 -1
  248. package/dist/module/react-app-env.d.js +2 -0
  249. package/dist/module/react-app-env.d.js.map +1 -0
  250. package/dist/module/shared/icons/ExcitedLavaIcon.js +673 -0
  251. package/dist/module/shared/icons/ExcitedLavaIcon.js.map +1 -0
  252. package/dist/module/shared/icons/LavaIconInGlasses.js +608 -0
  253. package/dist/module/shared/icons/LavaIconInGlasses.js.map +1 -0
  254. package/dist/module/shared/icons/index.js +21 -0
  255. package/dist/module/shared/icons/index.js.map +1 -0
  256. package/dist/module/shared/translation/constants.js +5 -1
  257. package/dist/module/shared/translation/constants.js.map +1 -1
  258. package/dist/module/shared/translation/localization/ca.json +33 -0
  259. package/dist/module/shared/translation/localization/en.json +13 -1
  260. package/dist/module/shared/translation/localization/gb.json +13 -1
  261. package/dist/module/shared/translation/localization/sct.json +33 -0
  262. package/dist/module/shared/translation/localization/sw.json +13 -1
  263. package/dist/module/shared/translation/types.js +2 -0
  264. package/dist/module/shared/translation/types.js.map +1 -1
  265. package/dist/module/types/common.types.js +2 -0
  266. package/dist/module/types/common.types.js.map +1 -0
  267. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +3 -1
  268. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  269. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +2 -1
  270. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  271. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +5 -1
  272. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  273. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +6 -1
  274. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  275. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +7 -2
  276. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  277. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +6 -1
  278. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  279. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +5 -1
  280. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  281. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  282. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  283. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  284. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  285. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +3 -1
  286. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  287. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +4 -3
  288. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  289. package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  290. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +33 -0
  291. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +4 -0
  293. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -0
  295. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  296. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +7 -2
  297. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  298. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +1 -3
  299. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  300. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +5 -0
  301. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  302. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
  303. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  304. package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
  305. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  306. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +5 -2
  307. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  308. package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts +5 -0
  309. package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts.map +1 -0
  310. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +11 -0
  312. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -0
  313. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +11 -0
  314. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -0
  315. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +10 -0
  316. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
  317. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +10 -0
  318. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
  319. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +9 -0
  320. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -0
  321. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +9 -0
  322. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -0
  323. package/dist/typescript/commonjs/features/exampleSolution/components/index.d.ts +1 -0
  324. package/dist/typescript/commonjs/features/exampleSolution/components/index.d.ts.map +1 -0
  325. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +6 -0
  326. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +1 -0
  327. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +15 -0
  328. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +1 -0
  329. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +4 -0
  330. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +1 -0
  331. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +9 -0
  332. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -0
  333. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +11 -0
  334. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -0
  335. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +12 -0
  336. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +1 -0
  337. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +25 -0
  338. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +1 -0
  339. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +10 -0
  340. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +1 -0
  341. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +10 -0
  342. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +1 -0
  343. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +10 -0
  344. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -0
  345. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +10 -0
  346. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +1 -0
  347. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +10 -0
  348. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +1 -0
  349. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +26 -0
  350. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +1 -0
  351. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +29 -0
  352. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -0
  353. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts +3 -0
  354. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts.map +1 -0
  355. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +25 -0
  356. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -0
  357. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts +7 -0
  358. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +1 -0
  359. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts +18 -0
  360. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +1 -0
  361. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +45 -0
  362. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +1 -0
  363. package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  364. package/dist/typescript/commonjs/features/problemSelector/constants.d.ts +2 -5
  365. package/dist/typescript/commonjs/features/problemSelector/constants.d.ts.map +1 -1
  366. package/dist/typescript/commonjs/index.d.ts +3 -0
  367. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  368. package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts +17 -0
  369. package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts.map +1 -0
  370. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +1 -1
  371. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -1
  372. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  373. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts +4 -0
  374. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts.map +1 -0
  375. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts +4 -0
  376. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts.map +1 -0
  377. package/dist/typescript/commonjs/shared/icons/index.d.ts +19 -0
  378. package/dist/typescript/commonjs/shared/icons/index.d.ts.map +1 -0
  379. package/dist/typescript/commonjs/shared/translation/constants.d.ts +102 -0
  380. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  381. package/dist/typescript/commonjs/shared/translation/model.d.ts +24 -0
  382. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  383. package/dist/typescript/commonjs/shared/translation/types.d.ts +3 -1
  384. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  385. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +5 -1
  386. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -1
  387. package/dist/typescript/commonjs/types/common.types.d.ts +5 -0
  388. package/dist/typescript/commonjs/types/common.types.d.ts.map +1 -0
  389. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +3 -1
  390. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  391. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +2 -1
  392. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  393. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +5 -1
  394. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  395. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +6 -1
  396. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  397. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +7 -2
  398. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  399. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +6 -1
  400. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  401. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +5 -1
  402. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  403. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  404. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  405. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  406. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  407. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +3 -1
  408. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  409. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +4 -3
  410. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  411. package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  412. package/dist/typescript/module/features/chatbot/constants.d.ts +33 -0
  413. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  414. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +4 -0
  415. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  416. package/dist/typescript/module/features/chatbot/index.d.ts +1 -0
  417. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  418. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +7 -2
  419. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  420. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +1 -3
  421. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  422. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +5 -0
  423. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  424. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
  425. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  426. package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
  427. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  428. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +5 -2
  429. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  430. package/dist/typescript/module/features/chatbot/types/style.types.d.ts +5 -0
  431. package/dist/typescript/module/features/chatbot/types/style.types.d.ts.map +1 -0
  432. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  433. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +11 -0
  434. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -0
  435. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +11 -0
  436. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -0
  437. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +10 -0
  438. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
  439. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +10 -0
  440. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
  441. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +9 -0
  442. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -0
  443. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +9 -0
  444. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -0
  445. package/dist/typescript/module/features/exampleSolution/components/index.d.ts +1 -0
  446. package/dist/typescript/module/features/exampleSolution/components/index.d.ts.map +1 -0
  447. package/dist/typescript/module/features/exampleSolution/constants.d.ts +6 -0
  448. package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +1 -0
  449. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +15 -0
  450. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +1 -0
  451. package/dist/typescript/module/features/exampleSolution/index.d.ts +4 -0
  452. package/dist/typescript/module/features/exampleSolution/index.d.ts.map +1 -0
  453. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +9 -0
  454. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -0
  455. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +11 -0
  456. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -0
  457. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +12 -0
  458. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +1 -0
  459. package/dist/typescript/module/features/exampleSolution/types.d.ts +25 -0
  460. package/dist/typescript/module/features/exampleSolution/types.d.ts.map +1 -0
  461. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +10 -0
  462. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +1 -0
  463. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +10 -0
  464. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +1 -0
  465. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +10 -0
  466. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +1 -0
  467. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +10 -0
  468. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +1 -0
  469. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +10 -0
  470. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +1 -0
  471. package/dist/typescript/module/features/gifCelebrations/constants.d.ts +26 -0
  472. package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +1 -0
  473. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +29 -0
  474. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -0
  475. package/dist/typescript/module/features/gifCelebrations/index.d.ts +3 -0
  476. package/dist/typescript/module/features/gifCelebrations/index.d.ts.map +1 -0
  477. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +25 -0
  478. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +1 -0
  479. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts +7 -0
  480. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +1 -0
  481. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts +18 -0
  482. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +1 -0
  483. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +45 -0
  484. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +1 -0
  485. package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  486. package/dist/typescript/module/features/problemSelector/constants.d.ts +2 -5
  487. package/dist/typescript/module/features/problemSelector/constants.d.ts.map +1 -1
  488. package/dist/typescript/module/index.d.ts +3 -0
  489. package/dist/typescript/module/index.d.ts.map +1 -1
  490. package/dist/typescript/module/lib/effector/ControlledSample.d.ts +17 -0
  491. package/dist/typescript/module/lib/effector/ControlledSample.d.ts.map +1 -0
  492. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +1 -1
  493. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -1
  494. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  495. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts +4 -0
  496. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts.map +1 -0
  497. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts +4 -0
  498. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts.map +1 -0
  499. package/dist/typescript/module/shared/icons/index.d.ts +19 -0
  500. package/dist/typescript/module/shared/icons/index.d.ts.map +1 -0
  501. package/dist/typescript/module/shared/translation/constants.d.ts +102 -0
  502. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  503. package/dist/typescript/module/shared/translation/model.d.ts +24 -0
  504. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  505. package/dist/typescript/module/shared/translation/types.d.ts +3 -1
  506. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  507. package/dist/typescript/module/shared/translation/validation.types.d.ts +5 -1
  508. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -1
  509. package/dist/typescript/module/types/common.types.d.ts +5 -0
  510. package/dist/typescript/module/types/common.types.d.ts.map +1 -0
  511. package/package.json +11 -7
  512. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +6 -0
  513. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +28 -29
  514. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +6 -1
  515. package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +24 -4
  516. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +39 -6
  517. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +11 -3
  518. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +28 -7
  519. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +25 -5
  520. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +24 -13
  521. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +13 -3
  522. package/src/features/chatbot/components/Chatbot.tsx +6 -2
  523. package/src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx +7 -10
  524. package/src/features/chatbot/constants.ts +37 -0
  525. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +11 -1
  526. package/src/features/chatbot/index.ts +1 -0
  527. package/src/features/chatbot/model/ChatBotModel.ts +66 -42
  528. package/src/features/chatbot/model/ChatBotThreadManager.ts +4 -10
  529. package/src/features/chatbot/model/ChatBoxTextManager.ts +14 -1
  530. package/src/features/chatbot/model/DefaultMessageCreator.ts +4 -2
  531. package/src/features/chatbot/model/constants.ts +0 -2
  532. package/src/features/chatbot/model/translation.ts +11 -1
  533. package/src/features/chatbot/types/model.types.ts +5 -2
  534. package/src/features/chatbot/types/style.types.ts +4 -0
  535. package/src/features/endOfAssignment/components/Modal/Modal.tsx +3 -0
  536. package/src/features/exampleSolution/ExampleSolutionModal.tsx +29 -0
  537. package/src/features/exampleSolution/assets/grid.png +0 -0
  538. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +78 -0
  539. package/src/features/exampleSolution/components/LavaIcon.tsx +33 -0
  540. package/src/features/exampleSolution/components/MessageBlock.tsx +67 -0
  541. package/src/features/exampleSolution/components/QuestionSection.tsx +56 -0
  542. package/src/features/exampleSolution/components/SolutionSection.tsx +69 -0
  543. package/src/features/exampleSolution/components/index.ts +0 -0
  544. package/src/features/exampleSolution/constants.ts +5 -0
  545. package/src/features/exampleSolution/hooks/useExampleSolution.ts +64 -0
  546. package/src/features/exampleSolution/index.ts +3 -0
  547. package/src/features/exampleSolution/model/ExampleSolution.model.ts +12 -0
  548. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +23 -0
  549. package/src/features/exampleSolution/model/ExampleSolutionCache.ts +20 -0
  550. package/src/features/exampleSolution/types.ts +25 -0
  551. package/src/features/feedback/model/comments.ts +7 -7
  552. package/src/features/feedback/model/model.ts +6 -6
  553. package/src/features/gifCelebrations/GifCelebrations.tsx +75 -0
  554. package/src/features/gifCelebrations/assets/confetti.webp +0 -0
  555. package/src/features/gifCelebrations/assets/gifFallback.gif +0 -0
  556. package/src/features/gifCelebrations/components/Backdrop.tsx +41 -0
  557. package/src/features/gifCelebrations/components/ContentContainer.tsx +44 -0
  558. package/src/features/gifCelebrations/components/Gif.tsx +88 -0
  559. package/src/features/gifCelebrations/components/Progress.tsx +106 -0
  560. package/src/features/gifCelebrations/constants.ts +32 -0
  561. package/src/features/gifCelebrations/helpers.ts +144 -0
  562. package/src/features/gifCelebrations/index.ts +2 -0
  563. package/src/features/gifCelebrations/model/GifCelebrations.model.ts +167 -0
  564. package/src/features/gifCelebrations/model/GifCelebrationsApi.ts +26 -0
  565. package/src/features/gifCelebrations/model/GifCelebrationsCache.ts +41 -0
  566. package/src/features/gifCelebrations/types/model.types.ts +53 -0
  567. package/src/features/problemSelector/components/ProblemSelectorButton.tsx +17 -10
  568. package/src/features/problemSelector/constants.ts +3 -2
  569. package/src/index.ts +3 -0
  570. package/src/lib/effector/ControlledSample.ts +40 -0
  571. package/src/lib/effector/createControllerEffect.ts +41 -41
  572. package/src/lib/helpers/helpers.ts +1 -1
  573. package/src/react-app-env.d.ts +6 -0
  574. package/src/shared/icons/ExcitedLavaIcon.tsx +541 -0
  575. package/src/shared/icons/LavaIconInGlasses.tsx +489 -0
  576. package/src/shared/icons/index.ts +18 -0
  577. package/src/shared/translation/constants.ts +4 -0
  578. package/src/shared/translation/localization/ca.json +33 -0
  579. package/src/shared/translation/localization/en.json +13 -1
  580. package/src/shared/translation/localization/gb.json +13 -1
  581. package/src/shared/translation/localization/sct.json +33 -0
  582. package/src/shared/translation/localization/sw.json +13 -1
  583. package/src/shared/translation/types.ts +6 -0
  584. package/src/shared/translation/validation.types.ts +9 -1
  585. package/src/types/common.types.ts +4 -0
  586. package/dist/commonjs/shared/icons/LockIcon.js +0 -31
  587. package/dist/commonjs/shared/icons/LockIcon.js.map +0 -1
  588. package/dist/module/shared/icons/LockIcon.js +0 -23
  589. package/dist/module/shared/icons/LockIcon.js.map +0 -1
  590. package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts +0 -4
  591. package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts.map +0 -1
  592. package/dist/typescript/module/shared/icons/LockIcon.d.ts +0 -4
  593. package/dist/typescript/module/shared/icons/LockIcon.d.ts.map +0 -1
  594. package/src/shared/icons/LockIcon.tsx +0 -16
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import React from 'react';
5
+ import { COLORS, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui';
6
+ import { useUnit } from 'effector-react';
7
+ import { $localization } from "../../../shared/translation/index.js";
8
+ import { MessageBlock } from "./MessageBlock.js";
9
+ import { LavaIcon } from "./LavaIcon.js";
10
+ import { QuestionSection } from "./QuestionSection.js";
11
+ import { SolutionSection } from "./SolutionSection.js";
12
+ import { useExampleSolution } from "../hooks/useExampleSolution.js";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ export const ExampleSolutionModalContent = ({
15
+ model,
16
+ payload,
17
+ problemId
18
+ }) => {
19
+ const {
20
+ result,
21
+ status
22
+ } = useExampleSolution({
23
+ model,
24
+ payload,
25
+ problemId
26
+ });
27
+ const localisation = useUnit($localization);
28
+ return /*#__PURE__*/_jsxs(View, {
29
+ style: styles.container,
30
+ children: [/*#__PURE__*/_jsx(Typography, {
31
+ align: "center",
32
+ variant: HeadingVariants.H2,
33
+ style: {
34
+ color: COLORS.NEUTRAL_9
35
+ },
36
+ children: localisation.exampleSolution.exampleSolution
37
+ }), /*#__PURE__*/_jsxs(View, {
38
+ style: styles.content,
39
+ children: [/*#__PURE__*/_jsx(QuestionSection, {
40
+ status: status,
41
+ question: result?.question
42
+ }), /*#__PURE__*/_jsx(SolutionSection, {
43
+ status: status,
44
+ answer: result?.answer
45
+ })]
46
+ }), /*#__PURE__*/_jsx(MessageBlock, {
47
+ status: status,
48
+ style: styles.messageBlock
49
+ }), /*#__PURE__*/_jsx(LavaIcon, {
50
+ status: status,
51
+ style: styles.lavaIconContainer
52
+ })]
53
+ });
54
+ };
55
+ const styles = StyleSheet.create({
56
+ container: {
57
+ width: 532,
58
+ height: 369
59
+ },
60
+ content: {
61
+ flex: 1,
62
+ flexDirection: 'row',
63
+ marginTop: SPACING[400],
64
+ gap: SPACING[400]
65
+ },
66
+ solutionContainer: {
67
+ width: 351,
68
+ overflow: 'hidden',
69
+ borderRadius: 8,
70
+ borderWidth: 1,
71
+ borderColor: COLORS.NEUTRAL_5
72
+ },
73
+ lavaIconContainer: {
74
+ position: 'absolute',
75
+ bottom: -54,
76
+ right: -50
77
+ },
78
+ loaderContainer: {
79
+ paddingTop: 34,
80
+ position: 'absolute',
81
+ width: '100%',
82
+ height: '100%',
83
+ backgroundColor: COLORS.NEUTRAL_1
84
+ },
85
+ messageBlock: {
86
+ position: 'absolute',
87
+ right: 38,
88
+ bottom: -22
89
+ }
90
+ });
91
+ //# sourceMappingURL=ExampleSolutionModalContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","React","COLORS","HeadingVariants","SPACING","Typography","useUnit","$localization","MessageBlock","LavaIcon","QuestionSection","SolutionSection","useExampleSolution","jsx","_jsx","jsxs","_jsxs","ExampleSolutionModalContent","model","payload","problemId","result","status","localisation","style","styles","container","children","align","variant","H2","color","NEUTRAL_9","exampleSolution","content","question","answer","messageBlock","lavaIconContainer","create","width","height","flex","flexDirection","marginTop","gap","solutionContainer","overflow","borderRadius","borderWidth","borderColor","NEUTRAL_5","position","bottom","right","loaderContainer","paddingTop","backgroundColor","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,eAAe,EAAEC,OAAO,EAAEC,UAAU,QAAQ,4BAA4B;AACzF,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,aAAa,QAAQ,sCAA6B;AAC3D,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,QAAQ,QAAQ,eAAY;AAGrC,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,kBAAkB,QAAQ,gCAA6B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQhE,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC,KAAK;EACLC,OAAO;EACPC;AACgC,CAAC,KAAK;EACtC,MAAM;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGV,kBAAkB,CAAC;IAAEM,KAAK;IAAEC,OAAO;IAAEC;EAAU,CAAC,CAAC;EAC5E,MAAMG,YAAY,GAAGjB,OAAO,CAACC,aAAa,CAAC;EAE3C,oBACES,KAAA,CAAChB,IAAI;IAACwB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5Bb,IAAA,CAACT,UAAU;MAACuB,KAAK,EAAC,QAAQ;MAACC,OAAO,EAAE1B,eAAe,CAAC2B,EAAG;MAACN,KAAK,EAAE;QAAEO,KAAK,EAAE7B,MAAM,CAAC8B;MAAU,CAAE;MAAAL,Q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UAAU;IACpBZ,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdgB,eAAe,EAAEvD,MAAM,CAACwD;EAC1B,CAAC;EACDrB,YAAY,EAAE;IACZe,QAAQ,EAAE,UAAU;IACpBE,KAAK,EAAE,EAAE;IACTD,MAAM,EAAE,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { ExcitedLavaIcon } from "../../../shared/icons/ExcitedLavaIcon.js";
5
+ import { LavaIconInGlasses } from "../../../shared/icons/index.js";
6
+ import Animated, { FadeIn, useAnimatedStyle, withTiming } from 'react-native-reanimated';
7
+ import { ExampleSolutionStatuses } from "../constants.js";
8
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export const LavaIcon = ({
10
+ status,
11
+ style
12
+ }) => {
13
+ const opacityAnimation = useAnimatedStyle(() => {
14
+ return {
15
+ opacity: withTiming(status === ExampleSolutionStatuses.LOADING ? 1 : 0, {
16
+ duration: 500
17
+ })
18
+ };
19
+ }, [status]);
20
+ return /*#__PURE__*/_jsxs(_Fragment, {
21
+ children: [/*#__PURE__*/_jsx(Animated.View, {
22
+ style: [style, opacityAnimation],
23
+ children: /*#__PURE__*/_jsx(LavaIconInGlasses, {
24
+ height: 112
25
+ })
26
+ }), status !== ExampleSolutionStatuses.LOADING && /*#__PURE__*/_jsx(Animated.View, {
27
+ style: style,
28
+ entering: FadeIn,
29
+ children: /*#__PURE__*/_jsx(ExcitedLavaIcon, {
30
+ height: 112
31
+ })
32
+ })]
33
+ });
34
+ };
35
+ //# sourceMappingURL=LavaIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ExcitedLavaIcon","LavaIconInGlasses","Animated","FadeIn","useAnimatedStyle","withTiming","ExampleSolutionStatuses","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","LavaIcon","status","style","opacityAnimation","opacity","LOADING","duration","children","View","height","entering"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/LavaIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,0CAAuC;AACvE,SAASC,iBAAiB,QAAQ,gCAAuB;AACzD,OAAOC,QAAQ,IAAIC,MAAM,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,yBAAyB;AAExF,SAASC,uBAAuB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAOtD,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAqB,CAAC,KAAK;EAC5D,MAAMC,gBAAgB,GAAGZ,gBAAgB,CAAC,MAAM;IAC9C,OAAO;MACLa,OAAO,EAAEZ,UAAU,CAACS,MAAM,KAAKR,uBAAuB,CAACY,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE;QAAEC,QAAQ,EAAE;MAAI,CAAC;IAC3F,CAAC;EACH,CAAC,EAAE,CAACL,MAAM,CAAC,CAAC;EAEZ,oBACEF,KAAA,CAAAF,SAAA;IAAAU,QAAA,gBACEZ,IAAA,CAACN,QAAQ,CAACmB,IAAI;MAACN,KAAK,EAAE,CAACA,KAAK,EAAEC,gBAAgB,CAAE;MAAAI,QAAA,eAC9CZ,IAAA,CAACP,iBAAiB;QAACqB,MAAM,EAAE;MAAI,CAAE;IAAC,CACrB,CAAC,EAEfR,MAAM,KAAKR,uBAAuB,CAACY,OAAO,iBACzCV,IAAA,CAACN,QAAQ,CAACmB,IAAI;MAACN,KAAK,EAAEA,KAAM;MAACQ,QAAQ,EAAEpB,MAAO;MAAAiB,QAAA,eAC5CZ,IAAA,CAACR,eAAe;QAACsB,MAAM,EAAE;MAAI,CAAE;IAAC,CACnB,CAChB;EAAA,CACD,CAAC;AAEP,CAAC","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import React from 'react';
5
+ import { COLORS, SPACING, Typography } from '@magmamath/react-native-ui';
6
+ import { useUnit } from 'effector-react';
7
+ import { $localization } from "../../../shared/translation/index.js";
8
+ import Animated, { LinearTransition, useAnimatedStyle, withDelay, withTiming } from 'react-native-reanimated';
9
+ import { ExampleSolutionStatuses } from "../constants.js";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ export const MessageBlock = ({
12
+ status,
13
+ style
14
+ }) => {
15
+ const localisation = useUnit($localization);
16
+ const opacityAnimation = useAnimatedStyle(() => {
17
+ return {
18
+ opacity: withDelay(2000, withTiming(status === ExampleSolutionStatuses.LOADING ? 1 : 0, {
19
+ duration: 350
20
+ }))
21
+ };
22
+ }, [status]);
23
+ if (status === ExampleSolutionStatuses.CACHE) return null;
24
+ return /*#__PURE__*/_jsx(Animated.View, {
25
+ layout: LinearTransition.duration(250),
26
+ style: [styles.container, opacityAnimation, style],
27
+ children: /*#__PURE__*/_jsx(Typography, {
28
+ variant: 'small',
29
+ numberOfLines: 1,
30
+ children: status === ExampleSolutionStatuses.LOADING ? localisation.exampleSolution.letMeThink : localisation.exampleSolution.aha
31
+ })
32
+ });
33
+ };
34
+ const styles = StyleSheet.create({
35
+ container: {
36
+ padding: SPACING[200],
37
+ backgroundColor: COLORS.NEUTRAL_3,
38
+ height: 44,
39
+ borderRadius: 12,
40
+ borderBottomRightRadius: 2,
41
+ borderWidth: StyleSheet.hairlineWidth,
42
+ borderColor: COLORS.NEUTRAL_5,
43
+ shadowColor: COLORS.NEUTRAL_10,
44
+ shadowOffset: {
45
+ width: 0,
46
+ height: 1
47
+ },
48
+ shadowOpacity: 0.2,
49
+ shadowRadius: 1,
50
+ elevation: 3
51
+ }
52
+ });
53
+ //# sourceMappingURL=MessageBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","React","COLORS","SPACING","Typography","useUnit","$localization","Animated","LinearTransition","useAnimatedStyle","withDelay","withTiming","ExampleSolutionStatuses","jsx","_jsx","MessageBlock","status","style","localisation","opacityAnimation","opacity","LOADING","duration","CACHE","View","layout","styles","container","children","variant","numberOfLines","exampleSolution","letMeThink","aha","create","padding","backgroundColor","NEUTRAL_3","height","borderRadius","borderBottomRightRadius","borderWidth","hairlineWidth","borderColor","NEUTRAL_5","shadowColor","NEUTRAL_10","shadowOffset","width","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/MessageBlock.tsx"],"mappings":";;AAAA,SAAoBA,UAAU,QAAmB,cAAc;AAC/D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,OAAO,EAAEC,UAAU,QAAQ,4BAA4B;AACxE,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,aAAa,QAAQ,sCAA6B;AAC3D,OAAOC,QAAQ,IACbC,gBAAgB,EAChBC,gBAAgB,EAChBC,SAAS,EACTC,UAAU,QACL,yBAAyB;AAChC,SAASC,uBAAuB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOtD,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAyB,CAAC,KAAK;EACpE,MAAMC,YAAY,GAAGb,OAAO,CAACC,aAAa,CAAC;EAE3C,MAAMa,gBAAgB,GAAGV,gBAAgB,CAAC,MAAM;IAC9C,OAAO;MACLW,OAAO,EAAEV,SAAS,CAChB,IAAI,EACJC,UAAU,CAACK,MAAM,KAAKJ,uBAAuB,CAACS,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE;QAAEC,QAAQ,EAAE;MAAI,CAAC,CAClF;IACF,CAAC;EACH,CAAC,EAAE,CAACN,MAAM,CAAC,CAAC;EAEZ,IAAIA,MAAM,KAAKJ,uBAAuB,CAACW,KAAK,EAAE,OAAO,IAAI;EAEzD,oBACET,IAAA,CAACP,QAAQ,CAACiB,IAAI;IACZC,MAAM,EAAEjB,gBAAgB,CAACc,QAAQ,CAAC,GAAG,CAAE;IACvCL,KAAK,EAAE,CAACS,MAAM,CAACC,SAAS,EAAER,gBAAgB,EAAEF,KAAK,CAAE;IAAAW,QAAA,eAEnDd,IAAA,CAACV,UAAU;MAACyB,OAAO,EAAE,OAAQ;MAACC,aAAa,EAAE,CAAE;MAAAF,QAAA,EAC5CZ,MAAM,KAAKJ,uBAAuB,CAACS,OAAO,GACvCH,YAAY,CAACa,eAAe,CAACC,UAAU,GACvCd,YAAY,CAACa,eAAe,CAACE;IAAG,CAC1B;EAAC,CACA,CAAC;AAEpB,CAAC;AAED,MAAMP,MAAM,GAAG1B,UAAU,CAACkC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,OAAO,EAAEhC,OAAO,CAAC,GAAG,CAAC;IACrBiC,eAAe,EAAElC,MAAM,CAACmC,SAAS;IACjCC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBC,uBAAuB,EAAE,CAAC;IAC1BC,WAAW,EAAEzC,UAAU,CAAC0C,aAAa;IACrCC,WAAW,EAAEzC,MAAM,CAAC0C,SAAS;IAE7BC,WAAW,EAAE3C,MAAM,CAAC4C,UAAU;IAC9BC,YAAY,EAAE;MACZC,KAAK,EAAE,CAAC;MACRV,MAAM,EAAE;IACV,CAAC;IACDW,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IAEfC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View, ScrollView } from 'react-native';
4
+ import React from 'react';
5
+ import { COLORS, Loader, LoaderColor, SPACING, Typography } from '@magmamath/react-native-ui';
6
+ import Animated, { FadeOut } from 'react-native-reanimated';
7
+ import { ExampleSolutionStatuses } from "../constants.js";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export const QuestionSection = ({
10
+ question,
11
+ status
12
+ }) => {
13
+ return /*#__PURE__*/_jsxs(View, {
14
+ style: styles.container,
15
+ children: [/*#__PURE__*/_jsx(ScrollView, {
16
+ style: styles.scrollView,
17
+ children: /*#__PURE__*/_jsx(Typography, {
18
+ children: question
19
+ })
20
+ }), status === ExampleSolutionStatuses.LOADING && /*#__PURE__*/_jsx(Animated.View, {
21
+ exiting: FadeOut,
22
+ style: styles.loaderContainer,
23
+ children: /*#__PURE__*/_jsx(Loader, {
24
+ size: "large",
25
+ color: LoaderColor.BLUE
26
+ })
27
+ })]
28
+ });
29
+ };
30
+ const styles = StyleSheet.create({
31
+ container: {
32
+ flex: 1
33
+ },
34
+ scrollView: {
35
+ flex: 1
36
+ },
37
+ loaderContainer: {
38
+ paddingTop: 34,
39
+ position: 'absolute',
40
+ width: '100%',
41
+ height: '100%',
42
+ backgroundColor: COLORS.NEUTRAL_1,
43
+ justifyContent: 'flex-start',
44
+ alignItems: 'center'
45
+ },
46
+ errorContainer: {
47
+ position: 'absolute',
48
+ width: '100%',
49
+ height: '100%',
50
+ backgroundColor: COLORS.NEUTRAL_1,
51
+ justifyContent: 'center',
52
+ alignItems: 'center',
53
+ padding: SPACING[400]
54
+ },
55
+ errorText: {
56
+ color: COLORS.PRIMARY_RED,
57
+ textAlign: 'center'
58
+ }
59
+ });
60
+ //# sourceMappingURL=QuestionSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","ScrollView","React","COLORS","Loader","LoaderColor","SPACING","Typography","Animated","FadeOut","ExampleSolutionStatuses","jsx","_jsx","jsxs","_jsxs","QuestionSection","question","status","style","styles","container","children","scrollView","LOADING","exiting","loaderContainer","size","color","BLUE","create","flex","paddingTop","position","width","height","backgroundColor","NEUTRAL_1","justifyContent","alignItems","errorContainer","padding","errorText","PRIMARY_RED","textAlign"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/QuestionSection.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC3D,OAAOC,KAAK,MAA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ACDC,cAAc,EAAE;IACdP,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,eAAe,EAAEhC,MAAM,CAACiC,SAAS;IACjCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBE,OAAO,EAAElC,OAAO,CAAC,GAAG;EACtB,CAAC;EACDmC,SAAS,EAAE;IACTd,KAAK,EAAExB,MAAM,CAACuC,WAAW;IACzBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View, Image, Text } from 'react-native';
4
+ import React from 'react';
5
+ import { COLORS, IS_WEB, SPACING } from '@magmamath/react-native-ui';
6
+ import Animated, { FadeIn } from 'react-native-reanimated';
7
+ import { ExampleSolutionStatuses } from "../constants.js";
8
+ import gridImage from '../assets/grid.png';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ const gridImagePath = !IS_WEB ? Image.resolveAssetSource(gridImage).uri : gridImage;
11
+ export const SolutionSection = ({
12
+ answer,
13
+ status
14
+ }) => {
15
+ const shouldShowAnswer = answer && (status === ExampleSolutionStatuses.DONE_DATA || status === ExampleSolutionStatuses.CACHE);
16
+ return /*#__PURE__*/_jsxs(View, {
17
+ style: styles.container,
18
+ children: [/*#__PURE__*/_jsx(Image, {
19
+ source: {
20
+ uri: gridImagePath
21
+ },
22
+ style: [styles.gridImage, IS_WEB && styles.gridImageWeb]
23
+ }), shouldShowAnswer && /*#__PURE__*/_jsx(Animated.ScrollView, {
24
+ style: styles.solutionScroll,
25
+ contentContainerStyle: styles.solutionScrollContent,
26
+ entering: status === 'cache' ? undefined : FadeIn.delay(1000).duration(500),
27
+ children: /*#__PURE__*/_jsx(Text, {
28
+ style: styles.solutionText,
29
+ children: answer
30
+ })
31
+ })]
32
+ });
33
+ };
34
+ const styles = StyleSheet.create({
35
+ container: {
36
+ width: 351,
37
+ overflow: 'hidden',
38
+ borderRadius: 8,
39
+ borderWidth: 1,
40
+ borderColor: COLORS.NEUTRAL_5
41
+ },
42
+ gridImage: {
43
+ width: '100%',
44
+ height: '100%',
45
+ resizeMode: 'cover',
46
+ aspectRatio: 28 / 8
47
+ },
48
+ gridImageWeb: {
49
+ transform: [{
50
+ scale: 3.5
51
+ }]
52
+ },
53
+ solutionScroll: {
54
+ position: 'absolute',
55
+ width: '100%',
56
+ height: '100%'
57
+ },
58
+ solutionScrollContent: {
59
+ paddingHorizontal: SPACING[800],
60
+ paddingVertical: SPACING[400]
61
+ },
62
+ solutionText: {
63
+ fontFamily: 'PlaypenSans-Light',
64
+ fontSize: 22
65
+ }
66
+ });
67
+ //# sourceMappingURL=SolutionSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","Image","Text","React","COLORS","IS_WEB","SPACING","Animated","FadeIn","ExampleSolutionStatuses","gridImage","jsx","_jsx","jsxs","_jsxs","gridImagePath","resolveAssetSource","uri","SolutionSection","answer","status","shouldShowAnswer","DONE_DATA","CACHE","style","styles","container","children","source","gridImageWeb","ScrollView","solutionScroll","contentContainerStyle","solutionScrollContent","entering","undefined","delay","duration","solutionText","create","width","overflow","borderRadius","borderWidth","borderColor","NEUTRAL_5","height","resizeMode","aspectRatio","transform","scale","position","paddingHorizontal","paddingVertical","fontFamily","fontSize"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/SolutionSection.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AACpE,OAAOC,QAAQ,IAAIC,MAAM,QAAQ,yBAAyB;AAC1D,SAASC,uBAAuB,QAAQ,iBAAc;AACtD,OAAOC,SAAS,MAAM,oBAAoB;AAAA,SAAAC,GAAA,IAAAC,IAAA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AAM,CAACyC;EACtB,CAAC;EACDnC,SAAS,EAAE;IACT8B,KAAK,EAAE,MAAM;IACbM,MAAM,EAAE,MAAM;IACdC,UAAU,EAAE,OAAO;IACnBC,WAAW,EAAE,EAAE,GAAG;EACpB,CAAC;EACDnB,YAAY,EAAE;IACZoB,SAAS,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAI,CAAC;EAC5B,CAAC;EACDnB,cAAc,EAAE;IACdoB,QAAQ,EAAE,UAAU;IACpBX,KAAK,EAAE,MAAM;IACbM,MAAM,EAAE;EACV,CAAC;EACDb,qBAAqB,EAAE;IACrBmB,iBAAiB,EAAE9C,OAAO,CAAC,GAAG,CAAC;IAC/B+C,eAAe,EAAE/C,OAAO,CAAC,GAAG;EAC9B,CAAC;EACDgC,YAAY,EAAE;IACZgB,UAAU,EAAE,mBAAmB;IAC/BC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/index.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export let ExampleSolutionStatuses = /*#__PURE__*/function (ExampleSolutionStatuses) {
4
+ ExampleSolutionStatuses["LOADING"] = "loading";
5
+ ExampleSolutionStatuses["DONE_DATA"] = "doneData";
6
+ ExampleSolutionStatuses["CACHE"] = "cache";
7
+ return ExampleSolutionStatuses;
8
+ }({});
9
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ExampleSolutionStatuses"],"sourceRoot":"../../../../src","sources":["features/exampleSolution/constants.ts"],"mappings":";;AAAA,WAAkBA,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ import { useEffect, useState } from 'react';
4
+ import { useUnit } from 'effector-react';
5
+ import { ExampleSolutionStatuses } from "../constants.js";
6
+ const ANIMATION_DELAY = 600;
7
+ export const useExampleSolution = ({
8
+ model,
9
+ payload,
10
+ problemId
11
+ }) => {
12
+ const exampleSolutionsCache = useUnit(model.cache.$state);
13
+ const [result, setResult] = useState(null);
14
+ const [status, setStatus] = useState(ExampleSolutionStatuses.LOADING);
15
+ useEffect(() => {
16
+ const fetchExampleSolution = async () => {
17
+ try {
18
+ if (exampleSolutionsCache[problemId]) {
19
+ setResult(exampleSolutionsCache[problemId]);
20
+ setStatus(ExampleSolutionStatuses.CACHE);
21
+ return;
22
+ }
23
+ const startTime = Date.now();
24
+ const response = await model.api.generateExampleSolutionFx(payload);
25
+ setResult(response);
26
+ model.cache.addExampleSolution({
27
+ problemId,
28
+ response
29
+ });
30
+ const elapsedTime = Date.now() - startTime;
31
+ if (elapsedTime >= ANIMATION_DELAY) {
32
+ setStatus(ExampleSolutionStatuses.DONE_DATA);
33
+ } else {
34
+ setTimeout(() => {
35
+ setStatus(ExampleSolutionStatuses.DONE_DATA);
36
+ }, ANIMATION_DELAY);
37
+ }
38
+ } catch (error) {
39
+ console.error('Failed to fetch example solution:', error);
40
+ }
41
+ };
42
+ fetchExampleSolution();
43
+ }, []);
44
+ return {
45
+ result,
46
+ status
47
+ };
48
+ };
49
+ //# sourceMappingURL=useExampleSolution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","useState","useUnit","ExampleSolutionStatuses","ANIMATION_DELAY","useExampleSolution","model","payload","problemId","exampleSolutionsCache","cache","$state","result","setResult","status","setStatus","LOADING","fetchExampleSolution","CACHE","startTime","Date","now","response","api","generateExampleSolutionFx","addExampleSolution","elapsedTime","DONE_DATA","setTimeout","error","console"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/hooks/useExampleSolution.ts"],"mappings":";;AAAA,SAASA,SAAS,EAA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C,CAAC,EAAEvB,eAAe,CAAC;QACrB;MACF,CAAC,CAAC,OAAOyB,KAAK,EAAE;QACdC,OAAO,CAACD,KAAK,CAAC,mCAAmC,EAAEA,KAAK,CAAC;MAC3D;IACF,CAAC;IAEDZ,oBAAoB,CAAC,CAAC;EACxB,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLL,MAAM;IACNE;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export * from "./ExampleSolutionModal.js";
4
+ export * from "./model/ExampleSolution.model.js";
5
+ export * from "./types.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/exampleSolution/index.ts"],"mappings":";;AAAA,cAAc,2BAAwB;AACtC,cAAc,kCAA+B;AAC7C,cAAc,YAAS","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ import { ExampleSolutionsApi } from "./ExampleSolutionApi.js";
4
+ import { ExampleSolutionCache } from "./ExampleSolutionCache.js";
5
+ export class ExampleSolutionModel {
6
+ cache = new ExampleSolutionCache();
7
+ constructor({
8
+ api,
9
+ errorHandler
10
+ }) {
11
+ this.api = new ExampleSolutionsApi({
12
+ api,
13
+ errorHandler
14
+ });
15
+ }
16
+ }
17
+ //# sourceMappingURL=ExampleSolution.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ExampleSolutionsApi","ExampleSolutionCache","ExampleSolutionModel","cache","constructor","api","errorHandler"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolution.model.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,yBAAsB;AAC1D,SAASC,oBAAoB,QAAQ,2BAAwB;AAE7D,OAAO,MAAMC,oBAAoB,CAAC;EAEhBC,KAAK,GAAG,IAAIF,oBAAoB,CAAC,CAAC;EAElDG,WAAWA,CAAC;IAAEC,GAAG;IAAEC;EAAwC,CAAC,EAAE;IAC5D,IAAI,CAACD,GAAG,GAAG,IAAIL,mBAAmB,CAAC;MAAEK,GAAG;MAAEC;IAAa,CAAC,CAAC;EAC3D;AACF","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import { createControllerEffect } from "./../../../lib/effector/createControllerEffect.js";
4
+ import { $localization } from "../../../shared/translation/index.js";
5
+ export class ExampleSolutionsApi {
6
+ constructor({
7
+ api,
8
+ errorHandler
9
+ }) {
10
+ this.generateExampleSolutionFx = createControllerEffect(api.generateExampleSolution);
11
+ this.generateExampleSolutionFx.fail.watch(() => {
12
+ if (errorHandler) {
13
+ const errorMessage = $localization.getState().exampleSolution.errorMessage;
14
+ errorHandler(errorMessage);
15
+ }
16
+ });
17
+ }
18
+ }
19
+ //# sourceMappingURL=ExampleSolutionApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createControllerEffect","$localization","ExampleSolutionsApi","constructor","api","errorHandler","generateExampleSolutionFx","generateExampleSolution","fail","watch","errorMessage","getState","exampleSolution"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolutionApi.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,mDAAgD;AAEvF,SAASC,aAAa,QAAQ,sCAA6B;AAO3D,OAAO,MAAMC,mBAAmB,CAAC;EAG/BC,WAAWA,CAAC;IAAEC,GAAG;IAAEC;EAAsC,CAAC,EAAE;IAC1D,IAAI,CAACC,yBAAyB,GAAGN,sBAAsB,CAACI,GAAG,CAACG,uBAAuB,CAAC;IAEpF,IAAI,CAACD,yBAAyB,CAACE,IAAI,CAACC,KAAK,CAAC,MAAM;MAC9C,IAAIJ,YAAY,EAAE;QAChB,MAAMK,YAAY,GAAGT,aAAa,CAACU,QAAQ,CAAC,CAAC,CAACC,eAAe,CAACF,YAAY;QAC1EL,YAAY,CAACK,YAAY,CAAC;MAC5B;IACF,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import { createEvent, createStore } from 'effector';
4
+ export class ExampleSolutionCache {
5
+ resetState = createEvent();
6
+ addExampleSolution = createEvent();
7
+ $state = createStore({}).reset(this.resetState).on(this.addExampleSolution, (state, exampleSolution) => {
8
+ return {
9
+ ...state,
10
+ [exampleSolution.problemId]: exampleSolution.response
11
+ };
12
+ });
13
+ }
14
+ //# sourceMappingURL=ExampleSolutionCache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEvent","createStore","ExampleSolutionCache","resetState","addExampleSolution","$state","reset","on","state","exampleSolution","problemId","response"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolutionCache.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,UAAU;AAQnD,OAAO,MAAMC,oBAAoB,CAAC;EAChBC,UAAU,GAAGH,WAAW,CAAC,CAAC;EAC1BI,kBAAkB,GAAGJ,WAAW,CAAqB,CAAC;EACtDK,MAAM,GAAGJ,WAAW,CAA0C,CAAC,CAAC,CAAC,CAC9EK,KAAK,CAAC,IAAI,CAACH,UAAU,CAAC,CACtBI,EAAE,CAAC,IAAI,CAACH,kBAAkB,EAAE,CAACI,KAAK,EAAEC,eAAe,KAAK;IACvD,OAAO;MACL,GAAGD,KAAK;MACR,CAACC,eAAe,CAACC,SAAS,GAAGD,eAAe,CAACE;IAC/C,CAAC;EACH,CAAC,CAAC;AACN","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/exampleSolution/types.ts"],"mappings":"","ignoreList":[]}
@@ -26,13 +26,12 @@ export class TeacherCommentsModel {
26
26
  })
27
27
  })).on(this.add, (state, {
28
28
  assignmentId,
29
- problemId,
30
29
  comment,
31
30
  isRead
32
31
  }) => updateCommentsState({
33
32
  state,
34
33
  assignmentId,
35
- problemId,
34
+ problemId: comment.problemId,
36
35
  fn: data => ({
37
36
  comments: [...data.comments, comment],
38
37
  unreadMessagesCount: isRead ? data.unreadMessagesCount : data.unreadMessagesCount + 1
@@ -79,7 +78,10 @@ export class TeacherCommentsModel {
79
78
  },
80
79
  filter: ({
81
80
  isOpen
82
- }) => isOpen,
81
+ }, {
82
+ problemId,
83
+ comment
84
+ }) => isOpen && comment.problemId === problemId,
83
85
  fn: (_, {
84
86
  comment
85
87
  }) => ({
@@ -1 +1 @@
1
- {"version":3,"names":["createEvent","restore","sample","updateCommentsState","getText","EMPTY_COMMENT","TeacherCommentsModel","setNoCommentsMessage","setAllCommentsRead","add","delete","setData","$data","on","state","assignmentId","problemId","fn","data","comments","map","comment","isRead","unreadMessagesCount","commentId","commentToDelete","find","_id","filteredComments","filter","length","undefined","noCommentsMessage","exerciseId","constructor","api","$isOpen","clock","source","isOpen","_","ids","target","updateCommentStatusSeenFx","deletedMessage","hasNoMessages","get","content"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/comments.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAe,UAAU;AAG9D,SAASC,mBAAmB,QAAQ,eAAY;AAChD,SAASC,OAAO,QAAQ,wCAAqC;AAC7D,SAASC,aAAa,QAAQ,8BAA8B;AAO5D,OAAO,MAAMC,oBAAoB,CAAC;EACfC,oBAAoB,GAAGP,WAAW,CAAiB,CAAC;EACrDQ,kBAAkB,GAAGR,WAAW,CAAU,CAAC;EAC3CS,GAAG,GAAGT,WAAW,CAAkB,CAAC;EACpCU,MAAM,GAAGV,WAAW,CAAqB,CAAC;EAE1CW,OAAO,GAAGX,WAAW,CAAc,CAAC;EACpCY,KAAK,GAAGX,OAAO,CAAqB,IAAI,CAACU,OAAO,EAAE,IAAI,CAAC,CACpEE,EAAE,CAAC,IAAI,CAACL,kBAAkB,EAAE,CAACM,KAAK,EAAE;IAAEC,YAAY;IAAEC;EAAU,CAAC,KAC9Db,mBAAmB,CAAC;I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GAAG6B,cAAc,CAAC5B,SAAS,CAAC,EACtFG,QAAQ,CAACW,MAAM;QACnB,OAAOS,MAAM,IAAIM,aAAa;MAChC,CAAC;MACD5B,EAAE,EAAEA,CAACuB,CAAC,EAAE;QAAEzB,YAAY;QAAEC;MAAU,CAAC,MAAsB;QACvD,GAAGX,aAAa;QAChB4B,UAAU,EAAElB,YAAY;QACxBC,SAAS;QACT+B,OAAO,EAAE3C,OAAO,CAAC,4BAA4B;MAC/C,CAAC,CAAC;MACFsC,MAAM,EAAE,IAAI,CAACnC;IACf,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
1
+ {"version":3,"names":["createEvent","restore","sample","updateCommentsState","getText","EMPTY_COMMENT","TeacherCommentsModel","setNoCommentsMessage","setAllCommentsRead","add","delete","setData","$data","on","state","assignmentId","problemId","fn","data","comments","map","comment","isRead","unreadMessagesCount","commentId","commentToDelete","find","_id","filteredComments","filter","length","undefined","noCommentsMessage","exerciseId","constructor","api","$isOpen","clock","source","isOpen","_","ids","target","updateCommentStatusSeenFx","deletedMessage","hasNoMessages","get","content"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/comments.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAe,UAAU;AAG9D,SAASC,mBAAmB,QAAQ,eAAY;AAChD,SAASC,OAAO,QAAQ,wCAAqC;AAC7D,SAASC,aAAa,QAAQ,8BAA8B;AAO5D,OAAO,MAAMC,oBAAoB,CAAC;EACfC,oBAAoB,GAAGP,WAAW,CAAiB,CAAC;EACrDQ,kBAAkB,GAAGR,WAAW,CAAU,CAAC;EAC3CS,GAAG,GAAGT,WAAW,CAAkB,CAAC;EACpCU,MAAM,GAAGV,WAAW,CAAqB,CAAC;EAE1CW,OAAO,GAAGX,WAAW,CAAc,CAAC;EACpCY,KAAK,GAAGX,OAAO,CAAqB,IAAI,CAACU,OAAO,EAAE,IAAI,CAAC,CACpEE,EAAE,CAAC,IAAI,CAACL,kBAAkB,EAA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C;MAC9CiB,MAAM,EAAEA,CAAC;QAAEU,MAAM;QAAEzB;MAAM,CAAC,EAAE8B,cAAc,KAAK;QAC7C,MAAMC,aAAa,GAAG,CAAC/B,KAAK,EAAEgC,GAAG,CAACF,cAAc,CAAC7B,YAAY,CAAC,GAAG6B,cAAc,CAAC5B,SAAS,CAAC,EACtFG,QAAQ,CAACW,MAAM;QACnB,OAAOS,MAAM,IAAIM,aAAa;MAChC,CAAC;MACD5B,EAAE,EAAEA,CAACuB,CAAC,EAAE;QAAEzB,YAAY;QAAEC;MAAU,CAAC,MAAsB;QACvD,GAAGX,aAAa;QAChB4B,UAAU,EAAElB,YAAY;QACxBC,SAAS;QACT+B,OAAO,EAAE3C,OAAO,CAAC,4BAA4B;MAC/C,CAAC,CAAC;MACFsC,MAAM,EAAE,IAAI,CAACnC;IACf,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
@@ -48,7 +48,7 @@ export class TeacherFeedbackModel {
48
48
  fn: ({
49
49
  assignmentId,
50
50
  problemId
51
- }, comment) => ({
51
+ }) => ({
52
52
  assignmentId,
53
53
  problemId,
54
54
  commentId: EMPTY_COMMENT_ID
@@ -97,13 +97,8 @@ export class TeacherFeedbackModel {
97
97
  });
98
98
  sample({
99
99
  clock: this.sockets.commentDeleted,
100
- source: {
101
- assignmentId: credits.$assignmentId
102
- },
103
- fn: ({
104
- assignmentId
105
- }, comment) => ({
106
- assignmentId,
100
+ fn: comment => ({
101
+ assignmentId: comment.exerciseId,
107
102
  problemId: comment.problemId,
108
103
  commentId: comment._id
109
104
  }),
@@ -116,6 +111,9 @@ export class TeacherFeedbackModel {
116
111
  problemId: credits.$problemId,
117
112
  isOpen: this.$isOpen
118
113
  },
114
+ filter: ({
115
+ assignmentId
116
+ }, comment) => assignmentId === comment.exerciseId,
119
117
  fn: ({
120
118
  assignmentId,
121
119
  problemId,
@@ -123,7 +121,7 @@ export class TeacherFeedbackModel {
123
121
  }, comment) => ({
124
122
  comment,
125
123
  assignmentId,
126
- problemId: comment.problemId,
124
+ problemId,
127
125
  isRead: isOpen && comment.problemId === problemId
128
126
  }),
129
127
  target: this.comments.add
@@ -1 +1 @@
1
- {"version":3,"names":["createEvent","restore","sample","TeacherFeedbackAPI","TeacherFeedbackSockets","TeacherCommentsModel","findCommentsByCredits","generateCommentsMap","EMPTY_COMMENT_ID","TeacherFeedbackModel","setIsOpen","$isOpen","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","sockets","comments","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","comment","commentId","delete","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","id","setData","commentDeleted","commentAdded","add"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAe,UAAU;AAC9D,SAASC,kBAAkB,QAAQ,UAAO;AAC1C,SAASC,sBAAsB,QAAQ,cAAW;AAClD,SAASC,oBAAoB,QAAQ,eAAY;AACjD,SAASC,qBAAqB,EAAEC,mBAAmB,QAAQ,eAAY;AAEvE,SAASC,gBAAgB,QAAQ,iBAAc;AAc/C,OAAO,MAAMC,oBAAoB,CAAC;EAIhBC,SAAS,GAAGV,WAAW,CAAU,CAAC;EAClCW,OAAO,GAAGV,OAAO,CAAC,IAAI,CAACS,SAAS,EAAE,KAAK,CAAC;EAExCE,0BAA0B,GAAGZ,WAAW,CAAU,CAAC;EACnDa,wBAAwB,GAAGZ,OAAO,CAAC,IAAI,CAACW,0BAA0B,EAAE,IAAI,CAAC;EAEzFE,WAAWA,CAAC;IAAEC,GAAG;IAAEC,MAAM;IAAEC;EAAmC,CAAC,EAAE;IAC/D,IAAI,CAACF,GAAG,GAAG,IAAIZ,kBAAkB,CAACY,GAAG,CAAC;IACtC,IAAI,CAACG,OAAO,GAAG,IAAId,sBAAsB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QAAEG,YAAY,EAAEV,OAAO,CAACW;MAAc,CAAC;MAC/CN,EAAE,EAAEA,CAAC;QAAEK;MAAa,CAAC,EAAES,OAAO,MAAM;QAClCT,YAAY;QACZE,SAAS,EAAEO,OAAO,CAACP,SAAS;QAC5BQ,SAAS,EAAED,OAAO,CAACD;MACrB,CAAC,CAAC;MACFZ,MAAM,EAAE,IAAI,CAACJ,QAAQ,CAACmB;IACxB,CAAC,CAAC;IAEFpC,MAAM,CAAC;MACLkB,KAAK,EAAE,IAAI,CAACF,OAAO,CAACoC,YAAY;MAChC9B,MAAM,EAAE;QACNG,YAAY,EAAEV,OAAO,CAACW,aAAa;QACnCC,SAAS,EAAEZ,OAAO,CAACI,UAAU;QAC7BU,MAAM,EAAE,IAAI,CAACpB;MACf,CAAC;MACDW,EAAE,EAAEA,CAAC;QAAEK,YAAY;QAAEE,SAAS;QAAEE;MAAO,CAAC,EAAEK,OAAO,MAAM;QACrDA,OAAO;QACPT,YAAY;QACZE,SAAS,EAAEO,OAAO,CAACP,SAAS;QAC5BY,MAAM,EAAEV,MAAM,IAAIK,OAAO,CAACP,SAAS,KAAKA;MAC1C,CAAC,CAAC;MACFN,MAAM,EAAE,IAAI,CAACJ,QAAQ,CAACoC;IACxB,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
1
+ {"version":3,"names":["createEvent","restore","sample","TeacherFeedbackAPI","TeacherFeedbackSockets","TeacherCommentsModel","findCommentsByCredits","generateCommentsMap","EMPTY_COMMENT_ID","TeacherFeedbackModel","setIsOpen","$isOpen","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","sockets","comments","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","commentId","delete","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","id","setData","commentDeleted","comment","exerciseId","commentAdded","add"],"sourceRoot":"../../../../../src","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