@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,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SolutionSection = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
11
+ var _constants = require("../constants.js");
12
+ var _grid = _interopRequireDefault(require("../assets/grid.png"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ 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); }
15
+ 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; }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ const gridImagePath = !_reactNativeUi.IS_WEB ? _reactNative.Image.resolveAssetSource(_grid.default).uri : _grid.default;
18
+ const SolutionSection = ({
19
+ answer,
20
+ status
21
+ }) => {
22
+ const shouldShowAnswer = answer && (status === _constants.ExampleSolutionStatuses.DONE_DATA || status === _constants.ExampleSolutionStatuses.CACHE);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
24
+ style: styles.container,
25
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
26
+ source: {
27
+ uri: gridImagePath
28
+ },
29
+ style: [styles.gridImage, _reactNativeUi.IS_WEB && styles.gridImageWeb]
30
+ }), shouldShowAnswer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.ScrollView, {
31
+ style: styles.solutionScroll,
32
+ contentContainerStyle: styles.solutionScrollContent,
33
+ entering: status === 'cache' ? undefined : _reactNativeReanimated.FadeIn.delay(1000).duration(500),
34
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
35
+ style: styles.solutionText,
36
+ children: answer
37
+ })
38
+ })]
39
+ });
40
+ };
41
+ exports.SolutionSection = SolutionSection;
42
+ const styles = _reactNative.StyleSheet.create({
43
+ container: {
44
+ width: 351,
45
+ overflow: 'hidden',
46
+ borderRadius: 8,
47
+ borderWidth: 1,
48
+ borderColor: _reactNativeUi.COLORS.NEUTRAL_5
49
+ },
50
+ gridImage: {
51
+ width: '100%',
52
+ height: '100%',
53
+ resizeMode: 'cover',
54
+ aspectRatio: 28 / 8
55
+ },
56
+ gridImageWeb: {
57
+ transform: [{
58
+ scale: 3.5
59
+ }]
60
+ },
61
+ solutionScroll: {
62
+ position: 'absolute',
63
+ width: '100%',
64
+ height: '100%'
65
+ },
66
+ solutionScrollContent: {
67
+ paddingHorizontal: _reactNativeUi.SPACING[800],
68
+ paddingVertical: _reactNativeUi.SPACING[400]
69
+ },
70
+ solutionText: {
71
+ fontFamily: 'PlaypenSans-Light',
72
+ fontSize: 22
73
+ }
74
+ });
75
+ //# sourceMappingURL=SolutionSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativeUi","_reactNativeReanimated","_interopRequireWildcard","_constants","_grid","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","gridImagePath","IS_WEB","Image","resolveAssetSource","gridImage","uri","SolutionSection","answer","status","shouldShowAnswer","ExampleSolutionStatuses","DONE_DATA","CACHE","jsxs","View","style","styles","container","children","jsx","source","gridImageWeb","ScrollView","solutionScroll","contentContainerStyle","solutionScrollContent","entering","undefined","FadeIn","delay","duration","Text","solutionText","exports","StyleSheet","create","width","overflow","borderRadius","borderWidth","borderColor","COLORS","NEUTRAL_5","height","resizeMode","aspectRatio","transform","scale","position","paddingHorizontal","SPACING","paddingVertical","fontFamily","fontSize"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/SolutionSection.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAL,sBAAA,CAAAF,OAAA;AAA0C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAA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BC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAEC,qBAAM,CAACC;EACtB,CAAC;EACDtC,SAAS,EAAE;IACTgC,KAAK,EAAE,MAAM;IACbO,MAAM,EAAE,MAAM;IACdC,UAAU,EAAE,OAAO;IACnBC,WAAW,EAAE,EAAE,GAAG;EACpB,CAAC;EACDxB,YAAY,EAAE;IACZyB,SAAS,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAI,CAAC;EAC5B,CAAC;EACDxB,cAAc,EAAE;IACdyB,QAAQ,EAAE,UAAU;IACpBZ,KAAK,EAAE,MAAM;IACbO,MAAM,EAAE;EACV,CAAC;EACDlB,qBAAqB,EAAE;IACrBwB,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,eAAe,EAAED,sBAAO,CAAC,GAAG;EAC9B,CAAC;EACDlB,YAAY,EAAE;IACZoB,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,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExampleSolutionStatuses = void 0;
7
+ let ExampleSolutionStatuses = exports.ExampleSolutionStatuses = /*#__PURE__*/function (ExampleSolutionStatuses) {
8
+ ExampleSolutionStatuses["LOADING"] = "loading";
9
+ ExampleSolutionStatuses["DONE_DATA"] = "doneData";
10
+ ExampleSolutionStatuses["CACHE"] = "cache";
11
+ return ExampleSolutionStatuses;
12
+ }({});
13
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ExampleSolutionStatuses","exports"],"sourceRoot":"../../../../src","sources":["features/exampleSolution/constants.ts"],"mappings":";;;;;;IAAkBA,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA","ignoreList":[]}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useExampleSolution = void 0;
7
+ var _react = require("react");
8
+ var _effectorReact = require("effector-react");
9
+ var _constants = require("../constants.js");
10
+ const ANIMATION_DELAY = 600;
11
+ const useExampleSolution = ({
12
+ model,
13
+ payload,
14
+ problemId
15
+ }) => {
16
+ const exampleSolutionsCache = (0, _effectorReact.useUnit)(model.cache.$state);
17
+ const [result, setResult] = (0, _react.useState)(null);
18
+ const [status, setStatus] = (0, _react.useState)(_constants.ExampleSolutionStatuses.LOADING);
19
+ (0, _react.useEffect)(() => {
20
+ const fetchExampleSolution = async () => {
21
+ try {
22
+ if (exampleSolutionsCache[problemId]) {
23
+ setResult(exampleSolutionsCache[problemId]);
24
+ setStatus(_constants.ExampleSolutionStatuses.CACHE);
25
+ return;
26
+ }
27
+ const startTime = Date.now();
28
+ const response = await model.api.generateExampleSolutionFx(payload);
29
+ setResult(response);
30
+ model.cache.addExampleSolution({
31
+ problemId,
32
+ response
33
+ });
34
+ const elapsedTime = Date.now() - startTime;
35
+ if (elapsedTime >= ANIMATION_DELAY) {
36
+ setStatus(_constants.ExampleSolutionStatuses.DONE_DATA);
37
+ } else {
38
+ setTimeout(() => {
39
+ setStatus(_constants.ExampleSolutionStatuses.DONE_DATA);
40
+ }, ANIMATION_DELAY);
41
+ }
42
+ } catch (error) {
43
+ console.error('Failed to fetch example solution:', error);
44
+ }
45
+ };
46
+ fetchExampleSolution();
47
+ }, []);
48
+ return {
49
+ result,
50
+ status
51
+ };
52
+ };
53
+ exports.useExampleSolution = useExampleSolution;
54
+ //# sourceMappingURL=useExampleSolution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_effectorReact","_constants","ANIMATION_DELAY","useExampleSolution","model","payload","problemId","exampleSolutionsCache","useUnit","cache","$state","result","setResult","useState","status","setStatus","ExampleSolutionStatuses","LOADING","useEffect","fetchExampleSolution","CACHE","startTime","Date","now","response","api","generateExampleSolutionFx","addExampleSolution","elapsedTime","DONE_DATA","setTimeout","error","console","exports"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/hooks/useExampleSolution.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAGA,IAAAE,UAAA,GAAAF,OAAA;AAEA,MAAMG,eAAe,GAAG,GAAG;AAapB,MAAMC,kBAAkB,GAAGA,CAAC;EACjCC,KAAK;EACLC,OAAO;EACPC;AACwB,CAAC,KAA+B;EACxD,MAAMC,qBAAqB,GAAG,IAAAC,sBAAO,EAACJ,KAAK,CAACK,KAAK,CAACC,MAAM,CAAC;EACzD,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG,IAAAC,eAAQ,EAAiC,IAAI,CAAC;EAC1E,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG,IAAAF,eAAQ,EAA0BG,kCAAuB,CAACC,OAAO,CAAC;EAE9F,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,oBAAoB,GAAG,MAAAA,CAAA,KAAY;MACvC,IAAI;QACF,IAAIZ,qBAAqB,CAACD,SAAS,CAAC,EAAE;UACpCM,SAAS,CAACL,qBAAqB,CAACD,SAAS,CAAC,CAAC;UAC3CS,SAAS,CAACC,kCAAuB,CAACI,KAAK,CAAC;UACxC;QACF;QAEA,MAAMC,SAAS,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC;QAC5B,MAAMC,QAAQ,GAAG,MAAMpB,KAAK,CAACqB,GAAG,CAACC,yBAAyB,CAACrB,OAAO,CAAC;QAEnEO,SAAS,CAACY,QAAQ,CAAC;QACnBpB,KAAK,CAACK,KAAK,CAACkB,kBAAkB,CAAC;UAAErB,SAAS;UAAEkB;QAAS,CAAC,CAAC;QAEvD,MAAMI,WAAW,GAAGN,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGF,SAAS;QAC1C,IAAIO,WAAW,IAAI1B,eAAe,EAAE;UAClCa,SAAS,CAACC,kCAAuB,CAACa,SAAS,CAAC;QAC9C,CAAC,MAAM;UACLC,UAAU,CAAC,MAAM;YACff,SAAS,CAACC,kCAAuB,CAACa,SAAS,CAAC;UAC9C,CAAC,EAAE3B,eAAe,CAAC;QACrB;MACF,CAAC,CAAC,OAAO6B,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;IACLR,MAAM;IACNG;EACF,CAAC;AACH,CAAC;AAAAmB,OAAA,CAAA9B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ExampleSolutionModal = require("./ExampleSolutionModal.js");
7
+ Object.keys(_ExampleSolutionModal).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ExampleSolutionModal[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ExampleSolutionModal[key];
14
+ }
15
+ });
16
+ });
17
+ var _ExampleSolutionModel = require("./model/ExampleSolution.model.js");
18
+ Object.keys(_ExampleSolutionModel).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _ExampleSolutionModel[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _ExampleSolutionModel[key];
25
+ }
26
+ });
27
+ });
28
+ var _types = require("./types.js");
29
+ Object.keys(_types).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _types[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _types[key];
36
+ }
37
+ });
38
+ });
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ExampleSolutionModal","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ExampleSolutionModel","_types"],"sourceRoot":"../../../../src","sources":["features/exampleSolution/index.ts"],"mappings":";;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,qBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,qBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,qBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,qBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,qBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,qBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,qBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExampleSolutionModel = void 0;
7
+ var _ExampleSolutionApi = require("./ExampleSolutionApi.js");
8
+ var _ExampleSolutionCache = require("./ExampleSolutionCache.js");
9
+ class ExampleSolutionModel {
10
+ cache = new _ExampleSolutionCache.ExampleSolutionCache();
11
+ constructor({
12
+ api,
13
+ errorHandler
14
+ }) {
15
+ this.api = new _ExampleSolutionApi.ExampleSolutionsApi({
16
+ api,
17
+ errorHandler
18
+ });
19
+ }
20
+ }
21
+ exports.ExampleSolutionModel = ExampleSolutionModel;
22
+ //# sourceMappingURL=ExampleSolution.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ExampleSolutionApi","require","_ExampleSolutionCache","ExampleSolutionModel","cache","ExampleSolutionCache","constructor","api","errorHandler","ExampleSolutionsApi","exports"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolution.model.ts"],"mappings":";;;;;;AACA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAEO,MAAME,oBAAoB,CAAC;EAEhBC,KAAK,GAAG,IAAIC,0CAAoB,CAAC,CAAC;EAElDC,WAAWA,CAAC;IAAEC,GAAG;IAAEC;EAAwC,CAAC,EAAE;IAC5D,IAAI,CAACD,GAAG,GAAG,IAAIE,uCAAmB,CAAC;MAAEF,GAAG;MAAEC;IAAa,CAAC,CAAC;EAC3D;AACF;AAACE,OAAA,CAAAP,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExampleSolutionsApi = void 0;
7
+ var _createControllerEffect = require("./../../../lib/effector/createControllerEffect.js");
8
+ var _index = require("../../../shared/translation/index.js");
9
+ class ExampleSolutionsApi {
10
+ constructor({
11
+ api,
12
+ errorHandler
13
+ }) {
14
+ this.generateExampleSolutionFx = (0, _createControllerEffect.createControllerEffect)(api.generateExampleSolution);
15
+ this.generateExampleSolutionFx.fail.watch(() => {
16
+ if (errorHandler) {
17
+ const errorMessage = _index.$localization.getState().exampleSolution.errorMessage;
18
+ errorHandler(errorMessage);
19
+ }
20
+ });
21
+ }
22
+ }
23
+ exports.ExampleSolutionsApi = ExampleSolutionsApi;
24
+ //# sourceMappingURL=ExampleSolutionApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_createControllerEffect","require","_index","ExampleSolutionsApi","constructor","api","errorHandler","generateExampleSolutionFx","createControllerEffect","generateExampleSolution","fail","watch","errorMessage","$localization","getState","exampleSolution","exports"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolutionApi.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAOO,MAAME,mBAAmB,CAAC;EAG/BC,WAAWA,CAAC;IAAEC,GAAG;IAAEC;EAAsC,CAAC,EAAE;IAC1D,IAAI,CAACC,yBAAyB,GAAG,IAAAC,8CAAsB,EAACH,GAAG,CAACI,uBAAuB,CAAC;IAEpF,IAAI,CAACF,yBAAyB,CAACG,IAAI,CAACC,KAAK,CAAC,MAAM;MAC9C,IAAIL,YAAY,EAAE;QAChB,MAAMM,YAAY,GAAGC,oBAAa,CAACC,QAAQ,CAAC,CAAC,CAACC,eAAe,CAACH,YAAY;QAC1EN,YAAY,CAACM,YAAY,CAAC;MAC5B;IACF,CAAC,CAAC;EACJ;AACF;AAACI,OAAA,CAAAb,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExampleSolutionCache = void 0;
7
+ var _effector = require("effector");
8
+ class ExampleSolutionCache {
9
+ resetState = (0, _effector.createEvent)();
10
+ addExampleSolution = (0, _effector.createEvent)();
11
+ $state = (0, _effector.createStore)({}).reset(this.resetState).on(this.addExampleSolution, (state, exampleSolution) => {
12
+ return {
13
+ ...state,
14
+ [exampleSolution.problemId]: exampleSolution.response
15
+ };
16
+ });
17
+ }
18
+ exports.ExampleSolutionCache = ExampleSolutionCache;
19
+ //# sourceMappingURL=ExampleSolutionCache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_effector","require","ExampleSolutionCache","resetState","createEvent","addExampleSolution","$state","createStore","reset","on","state","exampleSolution","problemId","response","exports"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolutionCache.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAQO,MAAMC,oBAAoB,CAAC;EAChBC,UAAU,GAAG,IAAAC,qBAAW,EAAC,CAAC;EAC1BC,kBAAkB,GAAG,IAAAD,qBAAW,EAAqB,CAAC;EACtDE,MAAM,GAAG,IAAAC,qBAAW,EAA0C,CAAC,CAAC,CAAC,CAC9EC,KAAK,CAAC,IAAI,CAACL,UAAU,CAAC,CACtBM,EAAE,CAAC,IAAI,CAACJ,kBAAkB,EAAE,CAACK,KAAK,EAAEC,eAAe,KAAK;IACvD,OAAO;MACL,GAAGD,KAAK;MACR,CAACC,eAAe,CAACC,SAAS,GAAGD,eAAe,CAACE;IAC/C,CAAC;EACH,CAAC,CAAC;AACN;AAACC,OAAA,CAAAZ,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/exampleSolution/types.ts"],"mappings":"","ignoreList":[]}
@@ -30,13 +30,12 @@ class TeacherCommentsModel {
30
30
  })
31
31
  })).on(this.add, (state, {
32
32
  assignmentId,
33
- problemId,
34
33
  comment,
35
34
  isRead
36
35
  }) => (0, _helpers.updateCommentsState)({
37
36
  state,
38
37
  assignmentId,
39
- problemId,
38
+ problemId: comment.problemId,
40
39
  fn: data => ({
41
40
  comments: [...data.comments, comment],
42
41
  unreadMessagesCount: isRead ? data.unreadMessagesCount : data.unreadMessagesCount + 1
@@ -83,7 +82,10 @@ class TeacherCommentsModel {
83
82
  },
84
83
  filter: ({
85
84
  isOpen
86
- }) => isOpen,
85
+ }, {
86
+ problemId,
87
+ comment
88
+ }) => isOpen && comment.problemId === problemId,
87
89
  fn: (_, {
88
90
  comment
89
91
  }) => ({
@@ -1 +1 @@
1
- {"version":3,"names":["_effector","require","_helpers","_helpers2","_studentsFeatures","TeacherCommentsModel","setNoCommentsMessage","createEvent","setAllCommentsRead","add","delete","setData","$data","restore","on","state","assignmentId","problemId","updateCommentsState","fn","data","comments","map","comment","isRead","unreadMessagesCount","commentId","commentToDelete","find","_id","filteredComments","filter","length","undefined","noCommentsMessage","exerciseId","constructor","api","$isOpen","sample","clock","source","isOpen","_","ids","target","updateCommentStatusSeenFx","deletedMessage","hasNoMessages","get","EMPTY_COMMENT","content","getText","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/comments.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAOO,MAAMI,oBAAoB,CAAC;EACfC,oBAAoB,GAAG,IAAAC,qBAAW,EAAiB,CAAC;EACrDC,kBAAkB,GAAG,IAAAD,qBAAW,EAAU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B,MAAM,EAAER,GAAG,CAACS;IACd,CAAC,CAAC;;IAEF;IACA,IAAAP,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAAC9B,MAAM;MAClB+B,MAAM,EAAE;QAAEC,MAAM,EAAEJ,OAAO;QAAEvB,KAAK,EAAE,IAAI,CAACH;MAAM,CAAC;MAC9CmB,MAAM,EAAEA,CAAC;QAAEW,MAAM;QAAE3B;MAAM,CAAC,EAAEgC,cAAc,KAAK;QAC7C,MAAMC,aAAa,GAAG,CAACjC,KAAK,EAAEkC,GAAG,CAACF,cAAc,CAAC/B,YAAY,CAAC,GAAG+B,cAAc,CAAC9B,SAAS,CAAC,EACtFI,QAAQ,CAACW,MAAM;QACnB,OAAOU,MAAM,IAAIM,aAAa;MAChC,CAAC;MACD7B,EAAE,EAAEA,CAACwB,CAAC,EAAE;QAAE3B,YAAY;QAAEC;MAAU,CAAC,MAAsB;QACvD,GAAGiC,+BAAa;QAChBf,UAAU,EAAEnB,YAAY;QACxBC,SAAS;QACTkC,OAAO,EAAE,IAAAC,iBAAO,EAAC,4BAA4B;MAC/C,CAAC,CAAC;MACFP,MAAM,EAAE,IAAI,CAACvC;IACf,CAAC,CAAC;EACJ;AACF;AAAC+C,OAAA,CAAAhD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_effector","require","_helpers","_helpers2","_studentsFeatures","TeacherCommentsModel","setNoCommentsMessage","createEvent","setAllCommentsRead","add","delete","setData","$data","restore","on","state","assignmentId","problemId","updateCommentsState","fn","data","comments","map","comment","isRead","unreadMessagesCount","commentId","commentToDelete","find","_id","filteredComments","filter","length","undefined","noCommentsMessage","exerciseId","constructor","api","$isOpen","sample","clock","source","isOpen","_","ids","target","updateCommentStatusSeenFx","deletedMessage","hasNoMessages","get","EMPTY_COMMENT","content","getText","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/comments.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA,IAAA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AAEJ;MAAQ,CAAC;MAC3BP,MAAM,EAAEA,CAAC;QAAEW;MAAO,CAAC,EAAE;QAAEzB,SAAS;QAAEM;MAAQ,CAAC,KAAKmB,MAAM,IAAInB,OAAO,CAACN,SAAS,KAAKA,SAAS;MACzFE,EAAE,EAAEA,CAACwB,CAAC,EAAE;QAAEpB;MAAQ,CAAC,MAAM;QACvBqB,GAAG,EAAE,CAACrB,OAAO,CAACM,GAAG;MACnB,CAAC,CAAC;MACFgB,MAAM,EAAER,GAAG,CAACS;IACd,CAAC,CAAC;;IAEF;IACA,IAAAP,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAAC9B,MAAM;MAClB+B,MAAM,EAAE;QAAEC,MAAM,EAAEJ,OAAO;QAAEvB,KAAK,EAAE,IAAI,CAACH;MAAM,CAAC;MAC9CmB,MAAM,EAAEA,CAAC;QAAEW,MAAM;QAAE3B;MAAM,CAAC,EAAEgC,cAAc,KAAK;QAC7C,MAAMC,aAAa,GAAG,CAACjC,KAAK,EAAEkC,GAAG,CAACF,cAAc,CAAC/B,YAAY,CAAC,GAAG+B,cAAc,CAAC9B,SAAS,CAAC,EACtFI,QAAQ,CAACW,MAAM;QACnB,OAAOU,MAAM,IAAIM,aAAa;MAChC,CAAC;MACD7B,EAAE,EAAEA,CAACwB,CAAC,EAAE;QAAE3B,YAAY;QAAEC;MAAU,CAAC,MAAsB;QACvD,GAAGiC,+BAAa;QAChBf,UAAU,EAAEnB,YAAY;QACxBC,SAAS;QACTkC,OAAO,EAAE,IAAAC,iBAAO,EAAC,4BAA4B;MAC/C,CAAC,CAAC;MACFP,MAAM,EAAE,IAAI,CAACvC;IACf,CAAC,CAAC;EACJ;AACF;AAAC+C,OAAA,CAAAhD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -52,7 +52,7 @@ class TeacherFeedbackModel {
52
52
  fn: ({
53
53
  assignmentId,
54
54
  problemId
55
- }, comment) => ({
55
+ }) => ({
56
56
  assignmentId,
57
57
  problemId,
58
58
  commentId: _constants.EMPTY_COMMENT_ID
@@ -101,13 +101,8 @@ class TeacherFeedbackModel {
101
101
  });
102
102
  (0, _effector.sample)({
103
103
  clock: this.sockets.commentDeleted,
104
- source: {
105
- assignmentId: credits.$assignmentId
106
- },
107
- fn: ({
108
- assignmentId
109
- }, comment) => ({
110
- assignmentId,
104
+ fn: comment => ({
105
+ assignmentId: comment.exerciseId,
111
106
  problemId: comment.problemId,
112
107
  commentId: comment._id
113
108
  }),
@@ -120,6 +115,9 @@ class TeacherFeedbackModel {
120
115
  problemId: credits.$problemId,
121
116
  isOpen: this.$isOpen
122
117
  },
118
+ filter: ({
119
+ assignmentId
120
+ }, comment) => assignmentId === comment.exerciseId,
123
121
  fn: ({
124
122
  assignmentId,
125
123
  problemId,
@@ -127,7 +125,7 @@ class TeacherFeedbackModel {
127
125
  }, comment) => ({
128
126
  comment,
129
127
  assignmentId,
130
- problemId: comment.problemId,
128
+ problemId,
131
129
  isRead: isOpen && comment.problemId === problemId
132
130
  }),
133
131
  target: this.comments.add
@@ -1 +1 @@
1
- {"version":3,"names":["_effector","require","_api","_sockets","_comments","_helpers","_constants","TeacherFeedbackModel","setIsOpen","createEvent","$isOpen","restore","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","TeacherFeedbackAPI","sockets","TeacherFeedbackSockets","comments","TeacherCommentsModel","sample","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","EMPTY_COMMENT_ID","comment","commentId","delete","findCommentsByCredits","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","generateCommentsMap","id","setData","commentDeleted","commentAdded","add","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAA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QACPV,YAAY;QACZE,SAAS,EAAEQ,OAAO,CAACR,SAAS;QAC5Bc,MAAM,EAAEZ,MAAM,IAAIM,OAAO,CAACR,SAAS,KAAKA;MAC1C,CAAC,CAAC;MACFN,MAAM,EAAE,IAAI,CAACN,QAAQ,CAACyC;IACxB,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAAxD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_effector","require","_api","_sockets","_comments","_helpers","_constants","TeacherFeedbackModel","setIsOpen","createEvent","$isOpen","restore","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","TeacherFeedbackAPI","sockets","TeacherFeedbackSockets","comments","TeacherCommentsModel","sample","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","EMPTY_COMMENT_ID","commentId","delete","findCommentsByCredits","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","generateCommentsMap","id","setData","commentDeleted","comment","exerciseId","commentAdded","add","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AAcO,MAAMM,oBAAoB,CAAC;EAIhBC,SAAS,GAAG,IAAAC,qBAAW,EAAU,CAAC;EAClCC,OAAO,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACH,SAAS,EAAE,KAAK,CAAC;EAExCI,0BAA0B,GAAG,IAAAH,qBAAW,EAAU,CAAC;EACnDI,wBAAwB,GAAG,IAAAF,iBAAO,EAAC,IAAI,CAACC,0BAA0B,EAAE,IAAI,CAAC;EAEzFE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IAAAC,4BAAmB,EAACF,MAAM,CAACG,EAAE,EAAEF,MAAM,CAAC;MAClE5B,MAAM,EAAE,IAAI,CAACN,QAAQ,CAACqC;IACxB,CAAC,CAAC;IAEF,IAAAnC,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACL,OAAO,CAACwC,cAAc;MAClCjC,EAAE,EAAGkC,OAAO,KAAM;QAChB7B,YAAY,EAAE6B,OAAO,CAACC,UAAU;QAChC5B,SAAS,EAAE2B,OAAO,CAAC3B,SAAS;QAC5BQ,SAAS,EAAEmB,OAAO,CAACrB;MACrB,CAAC,CAAC;MACFZ,MAAM,EAAE,IAAI,CAACN,QAAQ,CAACqB;IACxB,CAAC,CAAC;IAEF,IAAAnB,gBAAM,EAAC;MACLC,KAAK,EAAE,IAAI,CAACL,OAAO,CAAC2C,YAAY;MAChClC,MAAM,EAAE;QACNG,YAAY,EAAEd,OAAO,CAACe,aAAa;QACnCC,SAAS,EAAEhB,OAAO,CAACQ,UAAU;QAC7BU,MAAM,EAAE,IAAI,CAACzB;MACf,CAAC;MACDwB,MAAM,EAAEA,CAAC;QAAEH;MAAa,CAAC,EAAE6B,OAAO,KAAK7B,YAAY,KAAK6B,OAAO,CAACC,UAAU;MAC1EnC,EAAE,EAAEA,CAAC;QAAEK,YAAY;QAAEE,SAAS;QAAEE;MAAO,CAAC,EAAEyB,OAAO,MAAM;QACrDA,OAAO;QACP7B,YAAY;QACZE,SAAS;QACTa,MAAM,EAAEX,MAAM,IAAIyB,OAAO,CAAC3B,SAAS,KAAKA;MAC1C,CAAC,CAAC;MACFN,MAAM,EAAE,IAAI,CAACN,QAAQ,CAAC0C;IACxB,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAAzD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GifCelebrations = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _Gif = require("./components/Gif.js");
9
+ var _Progress = require("./components/Progress.js");
10
+ var _ContentContainer = require("./components/ContentContainer.js");
11
+ var _Backdrop = require("./components/Backdrop.js");
12
+ var _reactNativeReanimated = require("react-native-reanimated");
13
+ var _effectorReact = require("effector-react");
14
+ var _constants = require("./constants.js");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ 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); }
17
+ 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; }
18
+ const GifCelebrations = ({
19
+ model,
20
+ TextComponent
21
+ }) => {
22
+ const [problemsAmount, resolvedProblemsAmount, activeGif] = (0, _effectorReact.useUnit)([model.$problemsAmount, model.$resolvedProblemsAmount, model.$activeGif]);
23
+ const completedPercent = resolvedProblemsAmount && problemsAmount && Math.round(resolvedProblemsAmount / problemsAmount * 100);
24
+ const progress = (0, _reactNativeReanimated.useSharedValue)(0);
25
+ const stopAnimation = () => {
26
+ model.stop();
27
+ progress.value = 0;
28
+ };
29
+ const playAnimation = () => {
30
+ progress.value = (0, _reactNativeReanimated.withSequence)((0, _reactNativeReanimated.withTiming)(1, {
31
+ duration: _constants.ANIMATION_DURATION,
32
+ easing: _reactNativeReanimated.Easing.bezier(0.52, 0.16, 0.26, 0.77)
33
+ }), (0, _reactNativeReanimated.withTiming)(2, {
34
+ duration: _constants.ANIMATION_DURATION,
35
+ easing: _reactNativeReanimated.Easing.bezier(0.71, 0.09, 0.49, 0.89)
36
+ }, () => (0, _reactNativeReanimated.runOnJS)(stopAnimation)()));
37
+ };
38
+ (0, _react.useEffect)(() => {
39
+ if (activeGif) {
40
+ playAnimation();
41
+ }
42
+ }, [activeGif]);
43
+ if (!activeGif) {
44
+ return null;
45
+ }
46
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Backdrop.Backdrop, {
47
+ progress: progress,
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ContentContainer.ContentContainer, {
49
+ progress: progress,
50
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Gif.Gif, {
51
+ gifObject: activeGif,
52
+ getCachePathMethod: model.cache.getCachePathMethod,
53
+ TextComponent: TextComponent
54
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Progress.Progress, {
55
+ progress: progress,
56
+ completedPercent: completedPercent
57
+ })]
58
+ })
59
+ });
60
+ };
61
+ exports.GifCelebrations = GifCelebrations;
62
+ //# sourceMappingURL=GifCelebrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_Gif","_Progress","_ContentContainer","_Backdrop","_reactNativeReanimated","_effectorReact","_constants","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","GifCelebrations","model","TextComponent","problemsAmount","resolvedProblemsAmount","activeGif","useUnit","$problemsAmount","$resolvedProblemsAmount","$activeGif","completedPercent","Math","round","progress","useSharedValue","stopAnimation","stop","value","playAnimation","withSequence","withTiming","duration","ANIMATION_DURATION","easing","Easing","bezier","runOnJS","useEffect","jsx","Backdrop","children","jsxs","ContentContainer","Gif","gifObject","getCachePathMethod","cache","Progress","exports"],"sourceRoot":"../../../../src","sources":["features/gifCelebrations/GifCelebrations.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,O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,aAAa,CAAC,CAAC;IACjB;EACF,CAAC,EAAE,CAACb,SAAS,CAAC,CAAC;EAEf,IAAI,CAACA,SAAS,EAAE;IACd,OAAO,IAAI;EACb;EAEA,oBACE,IAAA1B,WAAA,CAAAiD,GAAA,EAACrD,SAAA,CAAAsD,QAAQ;IAAChB,QAAQ,EAAEA,QAAS;IAAAiB,QAAA,eAC3B,IAAAnD,WAAA,CAAAoD,IAAA,EAACzD,iBAAA,CAAA0D,gBAAgB;MAACnB,QAAQ,EAAEA,QAAS;MAAAiB,QAAA,gBACnC,IAAAnD,WAAA,CAAAiD,GAAA,EAACxD,IAAA,CAAA6D,GAAG;QACFC,SAAS,EAAE7B,SAAU;QACrB8B,kBAAkB,EAAElC,KAAK,CAACmC,KAAK,CAACD,kBAAmB;QACnDjC,aAAa,EAAEA;MAAc,CAC9B,CAAC,eACF,IAAAvB,WAAA,CAAAiD,GAAA,EAACvD,SAAA,CAAAgE,QAAQ;QAACxB,QAAQ,EAAEA,QAAS;QAACH,gBAAgB,EAAEA;MAAiB,CAAE,CAAC;IAAA,CACpD;EAAC,CACX,CAAC;AAEf,CAAC;AAAA4B,OAAA,CAAAtC,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Backdrop = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
+ var _constants = require("../constants.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ 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); }
13
+ 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; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ const Backdrop = ({
16
+ children,
17
+ progress
18
+ }) => {
19
+ const {
20
+ width,
21
+ height
22
+ } = (0, _reactNative.useWindowDimensions)();
23
+ const backdropAnimatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
24
+ backgroundColor: (0, _reactNativeReanimated.interpolateColor)(progress.value, [0, 1, 2], [_constants.BACKDROP_COLOR.INITIAL, _constants.BACKDROP_COLOR.FINAL, _constants.BACKDROP_COLOR.INITIAL])
25
+ }), [progress]);
26
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
27
+ style: [styles.backdrop, {
28
+ width,
29
+ height
30
+ }, backdropAnimatedStyle],
31
+ children: children
32
+ });
33
+ };
34
+ exports.Backdrop = Backdrop;
35
+ const styles = _reactNative.StyleSheet.create({
36
+ backdrop: {
37
+ position: 'absolute',
38
+ zIndex: 10100,
39
+ justifyContent: 'center',
40
+ alignItems: 'center',
41
+ backgroundColor: 'rgba(51, 51, 51, 0.33);'
42
+ }
43
+ });
44
+ //# sourceMappingURL=Backdrop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativeReanimated","_interopRequireWildcard","_constants","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Backdrop","children","progress","width","height","useWindowDimensions","backdropAnimatedStyle","useAnimatedStyle","backgroundColor","interpolateColor","value","BACKDROP_COLOR","INITIAL","FINAL","jsx","View","style","styles","backdrop","exports","StyleSheet","create","position","zIndex","justifyContent","alignItems"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/components/Backdrop.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAA6C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,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,SAAAJ,wBAAAI,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,CAA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}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ContentContainer = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
11
+ var _constants = require("../constants.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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ const ContentContainer = ({
17
+ children,
18
+ progress
19
+ }) => {
20
+ const {
21
+ width
22
+ } = (0, _reactNative.useWindowDimensions)();
23
+ const RIGHT_POSITION = width / 2 + _constants.CONTENT_CONTAINER.CONTAINER_WIDTH / 2 + _constants.CONTENT_CONTAINER.ROTATION_PADDING;
24
+ const LEFT_POSITION = -RIGHT_POSITION - _constants.CONTENT_CONTAINER.ROTATION_PADDING;
25
+ const animatedStyles = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
26
+ transform: [{
27
+ translateX: (0, _reactNativeReanimated.interpolate)(progress.value, [0, 1, 2], [LEFT_POSITION, 0, RIGHT_POSITION])
28
+ }, {
29
+ rotate: `${(0, _reactNativeReanimated.interpolate)(progress.value, [0, 1, 2], [-_constants.CONTENT_CONTAINER.ANGLE, 0, _constants.CONTENT_CONTAINER.ANGLE])}deg`
30
+ }]
31
+ }), [progress, RIGHT_POSITION, LEFT_POSITION]);
32
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
33
+ style: [styles.container, animatedStyles],
34
+ children: children
35
+ });
36
+ };
37
+ exports.ContentContainer = ContentContainer;
38
+ const styles = _reactNative.StyleSheet.create({
39
+ container: {
40
+ width: _constants.CONTENT_CONTAINER.CONTAINER_WIDTH,
41
+ alignItems: 'center',
42
+ gap: _reactNativeUi.SPACING[800],
43
+ position: 'absolute'
44
+ }
45
+ });
46
+ //# sourceMappingURL=ContentContainer.js.map