@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
@@ -1 +1 @@
1
- {"version":3,"names":["React","ReceivedMessage","SentMessage","MessageVariant","jsx","_jsx","variantsMap","SENT","RECEIVED","ChatMessage","variant","props","Component"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAyB,OAAO;AAC5C,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,WAAW,QAAQ,kBAAe;AAE3C,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAYxD,MAAMC,WAAgE,GAAG;EACvE,CAACH,cAAc,CAACI,IAAI,GAAGL,WAAW;EAClC,CAACC,cAAc,CAACK,QAAQ,GAAGP;AAC7B,CAAC;AAED,OAAO,MAAMQ,WAAW,GAAGA,CAAC;EAAEC,OAAO;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACtE,MAAMC,SAAS,GAAGN,WAAW,CAACI,OAAO,CAAC;EACtC,oBAAOL,IAAA,CAACO,SAAS;IAAA,GAAKD;EAAK,CAAG,CAAC;AACjC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","ReceivedMessage","SentMessage","MessageVariant","jsx","_jsx","variantsMap","SENT","RECEIVED","ChatMessage","variant","props","Component"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAyB,OAAO;AAE5C,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,WAAW,QAAQ,kBAAe;AAE3C,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAgBxD,MAAMC,WAAgE,GAAG;EACvE,CAACH,cAAc,CAACI,IAAI,GAAGL,WAAW;EAClC,CAACC,cAAc,CAACK,QAAQ,GAAGP;AAC7B,CAAC;AAED,OAAO,MAAMQ,WAAW,GAAGA,CAAC;EAAEC,OAAO;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACtE,MAAMC,SAAS,GAAGN,WAAW,CAACI,OAAO,CAAC;EACtC,oBAAOL,IAAA,CAACO,SAAS;IAAA,GAAKD;EAAK,CAAG,CAAC;AACjC,CAAC","ignoreList":[]}
@@ -2,22 +2,27 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { StyleSheet, View } from 'react-native';
5
+ import { IS_WEB } from '@magmamath/react-native-ui';
5
6
  import { ErrorSpottingButton } from "../../errorSpotting/ErrorSpottingButton.js";
6
7
  import { MessageTextToSpeech } from "./MessageTextToSpeech.js";
7
- import { IS_WEB } from '@magmamath/react-native-ui';
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  export const MessageButtonsBlock = ({
10
10
  t2sState,
11
- message
11
+ message,
12
+ variant,
13
+ colorScheme,
14
+ withErrorSpotting
12
15
  }) => {
13
16
  if (!t2sState.isEnabled && !message.isInitial) return null;
14
17
  return /*#__PURE__*/_jsxs(View, {
15
18
  style: styles.container,
16
- children: [!!message.isInitial && /*#__PURE__*/_jsx(ErrorSpottingButton, {
19
+ children: [withErrorSpotting && !!message.isInitial && /*#__PURE__*/_jsx(ErrorSpottingButton, {
17
20
  contextMessage: message
18
21
  }), t2sState.isEnabled && /*#__PURE__*/_jsx(MessageTextToSpeech, {
19
22
  state: t2sState,
20
- message: message
23
+ message: message,
24
+ variant: variant,
25
+ colorScheme: colorScheme
21
26
  })]
22
27
  });
23
28
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","ErrorSpottingButton","MessageTextToSpeech","IS_WEB","jsx","_jsx","jsxs","_jsxs","MessageButtonsBlock","t2sState","message","isEnabled","isInitial","style","styles","container","children","contextMessage","state","create","flexDirection","gap","marginLeft","float","position","bottom","right"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,mBAAmB,QAAQ,4CAAyC;AAC7E,SAASC,mBAAmB,QAAQ,0BAAuB;AAE3D,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQnD,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAkC,CAAC,KAAK;EACtF,IAAI,CAACD,QAAQ,CAACE,SAAS,IAAI,CAACD,OAAO,CAACE,SAAS,EAAE,OAAO,IAAI;EAE1D,oBACEL,KAAA,CAACP,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,GAC3B,CAAC,CAACN,OAAO,CAACE,SAAS,iBAAIP,IAAA,CAACJ,mBAAmB;MAACgB,cAAc,EAAEP;IAAQ,CAAE,CAAC,EACvED,QAAQ,CAACE,SAAS,iBAAIN,IAAA,CAACH,mBAAmB;MAACgB,KAAK,EAAET,QAAS;MAACC,OAAO,EAAEA;IAAQ,CAAE,CAAC;EAAA,CAC7E,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGf,UAAU,CAACoB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,CAAC;IACNC,UAAU,EAAE,MAAM;IAClB,IAAInB,MAAM,GACN;MAAEoB,KAAK,EAAE;IAAQ,CAAC,GAClB;MACEC,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT,CAAC;EACP;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","View","IS_WEB","ErrorSpottingButton","MessageTextToSpeech","jsx","_jsx","jsxs","_jsxs","MessageButtonsBlock","t2sState","message","variant","colorScheme","withErrorSpotting","isEnabled","isInitial","style","styles","container","children","contextMessage","state","create","flexDirection","gap","marginLeft","float","position","bottom","right"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,MAAM,QAAQ,4BAA4B;AAEnD,SAASC,mBAAmB,QAAQ,4CAAyC;AAC7E,SAASC,mBAAmB,QAAQ,0BAAuB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAe3D,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,QAAQ;EACRC,OAAO;EACPC,OAAO;EACPC,WAAW;EACXC;AACwB,CAAC,KAAK;EAC9B,IAAI,CAACJ,QAAQ,CAACK,SAAS,IAAI,CAACJ,OAAO,CAACK,SAAS,EAAE,OAAO,IAAI;EAE1D,oBACER,KAAA,CAACP,IAAI;IAACgB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,GAC3BN,iBAAiB,IAAI,CAAC,CAACH,OAAO,CAACK,SAAS,iBAAIV,IAAA,CAACH,mBAAmB;MAACkB,cAAc,EAAEV;IAAQ,CAAE,CAAC,EAC5FD,QAAQ,CAACK,SAAS,iBACjBT,IAAA,CAACF,mBAAmB;MAClBkB,KAAK,EAAEZ,QAAS;MAChBC,OAAO,EAAEA,OAAQ;MACjBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA;IAAY,CAC1B,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAGlB,UAAU,CAACuB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,CAAC;IACNC,UAAU,EAAE,MAAM;IAClB,IAAIxB,MAAM,GACN;MAAEyB,KAAK,EAAE;IAAQ,CAAC,GAClB;MACEC,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT,CAAC;EACP;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,27 +1,37 @@
1
1
  "use strict";
2
2
 
3
+ import React from 'react';
3
4
  import { Platform, StyleSheet, Text, View } from 'react-native';
5
+ import { ColorScheme } from "../../types/style.types.js";
4
6
  import { MessageButtonsBlock } from "./MessageButtonsBlock.js";
5
7
  import { getSpacerSize } from "./helpers.js";
6
- import React from 'react';
7
8
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
9
  const MessageContentWeb = ({
9
10
  message,
10
11
  text,
11
- t2sState
12
+ t2sState,
13
+ variant,
14
+ colorScheme = ColorScheme.Blue,
15
+ withErrorSpotting
12
16
  }) => {
13
17
  return /*#__PURE__*/_jsxs(Text, {
14
18
  style: styles.messageText,
15
19
  children: [text, /*#__PURE__*/_jsx(MessageButtonsBlock, {
16
20
  message: message,
17
- t2sState: t2sState
21
+ t2sState: t2sState,
22
+ variant: variant,
23
+ colorScheme: colorScheme,
24
+ withErrorSpotting: withErrorSpotting
18
25
  })]
19
26
  });
20
27
  };
21
28
  const MessageContentMobile = ({
22
29
  message,
23
30
  text,
24
- t2sState
31
+ t2sState,
32
+ variant,
33
+ colorScheme = ColorScheme.Blue,
34
+ withErrorSpotting
25
35
  }) => {
26
36
  return /*#__PURE__*/_jsxs(_Fragment, {
27
37
  children: [/*#__PURE__*/_jsxs(Text, {
@@ -33,7 +43,10 @@ const MessageContentMobile = ({
33
43
  })]
34
44
  }), /*#__PURE__*/_jsx(MessageButtonsBlock, {
35
45
  message: message,
36
- t2sState: t2sState
46
+ t2sState: t2sState,
47
+ variant: variant,
48
+ colorScheme: colorScheme,
49
+ withErrorSpotting: withErrorSpotting
37
50
  })]
38
51
  });
39
52
  };
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","StyleSheet","Text","View","MessageButtonsBlock","getSpacerSize","React","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MessageContentWeb","message","text","t2sState","style","styles","messageText","children","MessageContentMobile","mobileMessageText","width","MessageContent","select","web","default","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;AAEA,SAASA,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC/D,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,cAAW;AACzC,OAAOC,KAAK,MAAM,OAAO;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAQzB,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,OAAO;EAAEC,IAAI;EAAEC;AAA8B,CAAC,KAAK;EAC9E,oBACEN,KAAA,CAACR,IAAI;IAACe,KAAK,EAAEC,MAAM,CAACC,WAAY;IAAAC,QAAA,GAC7BL,IAAI,eACLP,IAAA,CAACJ,mBAAmB;MAACU,OAAO,EAAEA,OAAQ;MAACE,QAAQ,EAAEA;IAAS,CAAE,CAAC;EAAA,CACzD,CAAC;AAEX,CAAC;AAED,MAAMK,oBAAoB,GAAGA,CAAC;EAAEP,OAAO;EAAEC,IAAI;EAAEC;AAA8B,CAAC,KAAK;EACjF,oBACEN,KAAA,CAAAE,SAAA;IAAAQ,QAAA,gBACEV,KAAA,CAACR,IAAI;MAACe,KAAK,EAAE,CAACC,MAAM,CAACC,WAAW,EAAED,MAAM,CAACI,iBAAiB,CAAE;MAAAF,QAAA,GACzDL,IAAI,eACLP,IAAA,CAACL,IAAI;QAACc,KAAK,EAAE;UAAEM,KAAK,EAAElB,aAAa,CAACS,OAAO,EAAEE,QAAQ;QAAE;MAAE,CAAE,CAAC;IAAA,CACxD,CAAC,eACPR,IAAA,CAACJ,mBAAmB;MAACU,OAAO,EAAEA,OAAQ;MAACE,QAAQ,EAAEA;IAAS,CAAE,CAAC;EAAA,CAC7D,CAAC;AAEP,CAAC;AAED,OAAO,MAAMQ,cAAc,GAAGxB,QAAQ,CAACyB,MAAM,CAAC;EAC5CC,GAAG,EAAEb,iBAAiB;EACtBc,OAAO,EAAEN;AACX,CAAC,CAAC;AAEF,MAAMH,MAAM,GAAGjB,UAAU,CAAC2B,MAAM,CAAC;EAC/BT,WAAW,EAAE;IACXU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE,SAAS;IAChBV,KAAK,EAAE;EACT,CAAC;EACDD,iBAAiB,EAAE;IACjBY,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Platform","StyleSheet","Text","View","ColorScheme","MessageButtonsBlock","getSpacerSize","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MessageContentWeb","message","text","t2sState","variant","colorScheme","Blue","withErrorSpotting","style","styles","messageText","children","MessageContentMobile","mobileMessageText","width","MessageContent","select","web","default","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAI/D,SAASC,WAAW,QAAQ,4BAAyB;AAErD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,cAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAYzC,MAAMC,iBAAiB,GAAGA,CAAC;EACzBC,OAAO;EACPC,IAAI;EACJC,QAAQ;EACRC,OAAO;EACPC,WAAW,GAAGd,WAAW,CAACe,IAAI;EAC9BC;AACmB,CAAC,KAAK;EACzB,oBACEV,KAAA,CAACR,IAAI;IAACmB,KAAK,EAAEC,MAAM,CAACC,WAAY;IAAAC,QAAA,GAC7BT,IAAI,eACLP,IAAA,CAACH,mBAAmB;MAClBS,OAAO,EAAEA,OAAQ;MACjBE,QAAQ,EAAEA,QAAS;MACnBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA,WAAY;MACzBE,iBAAiB,EAAEA;IAAkB,CACtC,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAED,MAAMK,oBAAoB,GAAGA,CAAC;EAC5BX,OAAO;EACPC,IAAI;EACJC,QAAQ;EACRC,OAAO;EACPC,WAAW,GAAGd,WAAW,CAACe,IAAI;EAC9BC;AACmB,CAAC,KAAK;EACzB,oBACEV,KAAA,CAAAE,SAAA;IAAAY,QAAA,gBACEd,KAAA,CAACR,IAAI;MAACmB,KAAK,EAAE,CAACC,MAAM,CAACC,WAAW,EAAED,MAAM,CAACI,iBAAiB,CAAE;MAAAF,QAAA,GACzDT,IAAI,eACLP,IAAA,CAACL,IAAI;QAACkB,KAAK,EAAE;UAAEM,KAAK,EAAErB,aAAa,CAACQ,OAAO,EAAEE,QAAQ;QAAE;MAAE,CAAE,CAAC;IAAA,CACxD,CAAC,eACPR,IAAA,CAACH,mBAAmB;MAClBS,OAAO,EAAEA,OAAQ;MACjBE,QAAQ,EAAEA,QAAS;MACnBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA,WAAY;MACzBE,iBAAiB,EAAEA;IAAkB,CACtC,CAAC;EAAA,CACF,CAAC;AAEP,CAAC;AAED,OAAO,MAAMQ,cAAc,GAAG5B,QAAQ,CAAC6B,MAAM,CAAC;EAC5CC,GAAG,EAAEjB,iBAAiB;EACtBkB,OAAO,EAAEN;AACX,CAAC,CAAC;AAEF,MAAMH,MAAM,GAAGrB,UAAU,CAAC+B,MAAM,CAAC;EAC/BT,WAAW,EAAE;IACXU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE,SAAS;IAChBV,KAAK,EAAE;EACT,CAAC;EACDD,iBAAiB,EAAE;IACjBY,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,10 +2,15 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { StyleSheet, View } from 'react-native';
5
+ import { COLORS } from '@magmamath/react-native-ui';
5
6
  import { ChatbotIcon } from "../../../../shared/icons/ChatbotIcon.js";
6
7
  import { ThreeDotsLoader } from "../ThreeDotsLoader/ThreeDotsLoader.js";
8
+ import { CONTROLS_COLORS_MAP } from "../../constants.js";
9
+ import { ColorScheme } from "../../types/style.types.js";
7
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
- export const MessageLoader = () => /*#__PURE__*/_jsxs(View, {
11
+ export const MessageLoader = ({
12
+ colorScheme = ColorScheme.Blue
13
+ }) => /*#__PURE__*/_jsxs(View, {
9
14
  style: styles.container,
10
15
  children: [/*#__PURE__*/_jsx(View, {
11
16
  style: styles.icon,
@@ -15,7 +20,9 @@ export const MessageLoader = () => /*#__PURE__*/_jsxs(View, {
15
20
  })
16
21
  }), /*#__PURE__*/_jsx(View, {
17
22
  style: styles.loader,
18
- children: /*#__PURE__*/_jsx(ThreeDotsLoader, {})
23
+ children: /*#__PURE__*/_jsx(ThreeDotsLoader, {
24
+ backgroundColor: CONTROLS_COLORS_MAP[colorScheme].background
25
+ })
19
26
  })]
20
27
  });
21
28
  const styles = StyleSheet.create({
@@ -45,7 +52,7 @@ const styles = StyleSheet.create({
45
52
  elevation: 3,
46
53
  borderRadius: 8,
47
54
  borderBottomLeftRadius: 0,
48
- backgroundColor: '#F2F2F4'
55
+ backgroundColor: COLORS.NEUTRAL_3
49
56
  }
50
57
  });
51
58
  //# sourceMappingURL=MessageLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","ChatbotIcon","ThreeDotsLoader","jsx","_jsx","jsxs","_jsxs","MessageLoader","style","styles","container","children","icon","width","height","loader","create","flexDirection","alignItems","alignSelf","marginRight","flex","maxWidth","padding","paddingTop","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,eAAe,QAAQ,uCAAoC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEpE,OAAO,MAAMC,aAAa,GAAGA,CAAA,kBAC3BD,KAAA,CAACN,IAAI;EAACQ,KAAK,EAAEC,MAAM,CAACC,SAAU;EAAAC,QAAA,gBAC5BP,IAAA,CAACJ,IAAI;IAACQ,KAAK,EAAEC,MAAM,CAACG,IAAK;IAAAD,QAAA,eACvBP,IAAA,CAACH,WAAW;MAACY,KAAK,EAAE,EAAG;MAACC,MAAM,EAAE;IAAG,CAAE;EAAC,CAClC,CAAC,eACPV,IAAA,CAACJ,IAAI;IAACQ,KAAK,EAAEC,MAAM,CAACM,MAAO;IAAAJ,QAAA,eACzBP,IAAA,CAACF,eAAe,IAAE;EAAC,CACf,CAAC;AAAA,CACH,CACP;AAED,MAAMO,MAAM,GAAGV,UAAU,CAACiB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,aAAa,EAAE,KAAK;IACpBJ,KAAK,EAAE,GAAG;IACVK,UAAU,EAAE;EACd,CAAC;EACDN,IAAI,EAAE;IACJO,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACDL,MAAM,EAAE;IACNM,IAAI,EAAE,CAAC;IACPJ,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBI,QAAQ,EAAE,EAAE;IACZC,OAAO,EAAE,CAAC;IACVC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCa,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","View","COLORS","ChatbotIcon","ThreeDotsLoader","CONTROLS_COLORS_MAP","ColorScheme","jsx","_jsx","jsxs","_jsxs","MessageLoader","colorScheme","Blue","style","styles","container","children","icon","width","height","loader","backgroundColor","background","create","flexDirection","alignItems","alignSelf","marginRight","flex","maxWidth","padding","paddingTop","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","NEUTRAL_3"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageLoader.tsx"],"mappings":";;AAAA,OAA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IACdC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;MAAEf,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCe,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBjB,eAAe,EAAEpB,MAAM,CAACsC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,24 +2,27 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { ActivityIndicator } from 'react-native';
5
+ import { Button, COLORS } from '@magmamath/react-native-ui';
5
6
  import { SpeakerIcon } from "../../../../shared/icons/SpeakerIcon.js";
6
7
  import { PlayIcon } from "../../../../shared/icons/PlayIcon.js";
7
8
  import { PauseIcon } from "../../../../shared/icons/PauseIcon.js";
8
9
  import { useChatModel } from "../../context/ChatBotModelContext.js";
9
- import { Button, COLORS } from '@magmamath/react-native-ui';
10
+ import { ColorScheme } from "../../types/style.types.js";
11
+ import { CONTROLS_COLORS_MAP, MESSAGE_COLORS_MAP } from "../../constants.js";
10
12
  import { jsx as _jsx } from "react/jsx-runtime";
11
13
  const TextToSpeechIcon = ({
12
14
  status,
13
15
  isActive,
14
- isLoading
16
+ isLoading,
17
+ colorScheme = ColorScheme.Blue
15
18
  }) => {
16
19
  if (isLoading && isActive) {
17
- return /*#__PURE__*/_jsx(ActivityIndicator, {});
20
+ return /*#__PURE__*/_jsx(ActivityIndicator, {
21
+ color: CONTROLS_COLORS_MAP[colorScheme].background
22
+ });
18
23
  }
19
24
  if (!isActive) {
20
- return /*#__PURE__*/_jsx(SpeakerIcon, {
21
- color: isActive ? COLORS.PRIMARY_BLUE : undefined
22
- });
25
+ return /*#__PURE__*/_jsx(SpeakerIcon, {});
23
26
  }
24
27
  if (status === 'playing') return /*#__PURE__*/_jsx(PauseIcon, {
25
28
  color: COLORS.NEUTRAL_1
@@ -27,9 +30,7 @@ const TextToSpeechIcon = ({
27
30
  if (status === 'paused') return /*#__PURE__*/_jsx(PlayIcon, {
28
31
  color: COLORS.NEUTRAL_1
29
32
  });
30
- return /*#__PURE__*/_jsx(SpeakerIcon, {
31
- color: isActive ? COLORS.PRIMARY_BLUE : undefined
32
- });
33
+ return /*#__PURE__*/_jsx(SpeakerIcon, {});
33
34
  };
34
35
  export const MessageTextToSpeech = ({
35
36
  state: {
@@ -38,7 +39,9 @@ export const MessageTextToSpeech = ({
38
39
  isActive,
39
40
  isLoading
40
41
  },
41
- message
42
+ message,
43
+ variant,
44
+ colorScheme = ColorScheme.Blue
42
45
  }) => {
43
46
  const model = useChatModel();
44
47
  function play() {
@@ -51,13 +54,14 @@ export const MessageTextToSpeech = ({
51
54
  disabled: disabled,
52
55
  isActive: isActive,
53
56
  variant: 'secondary',
54
- colorScheme: 'blue',
57
+ colorScheme: MESSAGE_COLORS_MAP[colorScheme][variant].icon,
55
58
  size: 'small',
56
59
  onPress: play,
57
60
  icon: /*#__PURE__*/_jsx(TextToSpeechIcon, {
58
61
  isActive: isActive,
59
62
  isLoading: isLoading,
60
- status: status
63
+ status: status,
64
+ colorScheme: colorScheme
61
65
  })
62
66
  });
63
67
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","ActivityIndicator","SpeakerIcon","PlayIcon","PauseIcon","useChatModel","Button","COLORS","jsx","_jsx","TextToSpeechIcon","status","isActive","isLoading","color","PRIMARY_BLUE","undefined","NEUTRAL_1","MessageTextToSpeech","state","disabled","message","model","play","t2s","isTranslated","translation","$isTranslated","getState","variant","colorScheme","size","onPress","icon"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,QAAQ,QAAQ,sCAAmC;AAC5D,SAASC,SAAS,QAAQ,uCAAoC;AAE9D,SA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R,QAAQ,EAAEA,QAAS;IACnBiB,OAAO,EAAE,WAAY;IACrBC,WAAW,EAAE,MAAO;IACpBC,IAAI,EAAE,OAAQ;IACdC,OAAO,EAAET,IAAK;IACdU,IAAI,eAAExB,IAAA,CAACC,gBAAgB;MAACE,QAAQ,EAAEA,QAAS;MAACC,SAAS,EAAEA,SAAU;MAACF,MAAM,EAAEA;IAAO,CAAE;EAAE,CACtF,CAAC;AAEN,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","ActivityIndicator","Button","COLORS","SpeakerIcon","PlayIcon","PauseIcon","useChatModel","ColorScheme","CONTROLS_COLORS_MAP","MESSAGE_COLORS_MAP","jsx","_jsx","TextToSpeechIcon","status","isActive","isLoading","colorScheme","Blue","color","background","NEUTRAL_1","MessageTextToSpeech","state","disabled","message","variant","model","play","t2s","isTranslated","translation","$isTranslated","getState","icon","size","onPress"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,MAAM,EAAEC,MAAM,QAAQ,4BAA4B;AAE3D,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,QAAQ,QAAQ,sCAAmC;AAC5D,SAASC,SAAS,QAAQ,uCAAoC;AAE9D,SAASC,YAAY,QAAQ,sCAAmC;AAEhE,SAASC,WAAW,QAAQ,4BAAyB;AAErD,SAASC,mBAAmB,EAAEC,kBAAkB,QAAQ,oBAAiB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AASzE,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,WAAW,GAAGT,WAAW,CAACU;AACL,CAAC,KAAK;EAC3B,IAAIF,SAAS,IAAID,QAAQ,EAAE;IACzB,oBAAOH,IAAA,CAACX,iBAAiB;MAACkB,KAAK,EAAEV,mBAAmB,CAACQ,WAAW,CA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F,CAAC;AAEN,CAAC","ignoreList":[]}
@@ -3,17 +3,22 @@
3
3
  import React from 'react';
4
4
  import { StyleSheet, View } from 'react-native';
5
5
  import { ChatbotIcon } from "../../../../shared/icons/ChatbotIcon.js";
6
+ import { ColorScheme } from "../../types/style.types.js";
6
7
  import { MessageContent } from "./MessageContent.js";
8
+ import { MessageVariant } from "../../types/model.types.js";
7
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
10
  export const ReceivedMessage = ({
9
11
  message,
10
12
  isTranslated,
11
- t2sState
13
+ t2sState,
14
+ withIcon,
15
+ colorScheme = ColorScheme.Blue,
16
+ withErrorSpotting
12
17
  }) => {
13
18
  const text = isTranslated ? message.translatedMessage : message.message;
14
19
  return /*#__PURE__*/_jsxs(View, {
15
20
  style: styles.container,
16
- children: [/*#__PURE__*/_jsx(View, {
21
+ children: [withIcon && /*#__PURE__*/_jsx(View, {
17
22
  style: styles.icon,
18
23
  children: /*#__PURE__*/_jsx(ChatbotIcon, {
19
24
  width: 60,
@@ -23,8 +28,11 @@ export const ReceivedMessage = ({
23
28
  style: styles.message,
24
29
  children: /*#__PURE__*/_jsx(MessageContent, {
25
30
  message: message,
31
+ variant: MessageVariant.RECEIVED,
26
32
  t2sState: t2sState,
27
- text: text ?? ''
33
+ text: text ?? '',
34
+ colorScheme: colorScheme,
35
+ withErrorSpotting: withErrorSpotting
28
36
  })
29
37
  })]
30
38
  });
@@ -35,7 +43,8 @@ const styles = StyleSheet.create({
35
43
  flexDirection: 'row',
36
44
  maxWidth: 372,
37
45
  width: 372,
38
- alignItems: 'flex-end'
46
+ alignItems: 'flex-end',
47
+ justifyContent: 'flex-end'
39
48
  },
40
49
  icon: {
41
50
  alignSelf: 'flex-end',
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","ChatbotIcon","MessageContent","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","isTranslated","t2sState","text","translatedMessage","style","styles","container","children","icon","width","height","create","flex","flexDirection","maxWidth","alignItems","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,cAAc,QAAQ,qBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC;AAAuB,CAAC,KAAK;EACpF,MAAMC,IAAI,GAAGF,YAAY,GAAGD,OAAO,CAACI,iBAAiB,GAAGJ,OAAO,CAACA,OAAO;EAEvE,oBACEF,KAAA,CAACN,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BZ,IAAA,CAACJ,IAAI;MAACa,KAAK,EAAEC,MAAM,CAACG,IAAK;MAAAD,QAAA,eACvBZ,IAAA,CAACH,WAAW;QAACiB,KAAK,EAAE,EAAG;QAACC,MAAM,EAAE;MAAG,CAAE;IAAC,CAClC,CAAC,eAEPf,IAAA,CAACJ,IAAI;MAACa,KAAK,EAAEC,MAAM,CAACN,OAAQ;MAAAQ,QAAA,eAC1BZ,IAAA,CAACF,cAAc;QAACM,OAAO,EAAEA,OAAQ;QAACE,QAAQ,EAAEA,QAAS;QAACC,IAAI,EAAEA,IAAI,IAAI;MAAG,CAAE;IAAC,CACtE,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGf,UAAU,CAACqB,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbL,KAAK,EAAE,GAAG;IACVM,UAAU,EAAE;EACd,CAAC;EACDP,IAAI,EAAE;IACJQ,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACDlB,OAAO,EAAE;IACPa,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbI,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEX,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCW,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","View","ChatbotIcon","ColorScheme","MessageContent","MessageVariant","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","isTranslated","t2sState","withIcon","colorScheme","Blue","withErrorSpotting","text","translatedMessage","style","styles","container","children","icon","width","height","variant","RECEIVED","create","flex","flexDirection","maxWidth","alignItems","justifyContent","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,OAAO;EACPC,YAAY;EACZC,QAAQ;E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;IACnBC,YAAY,EAAE;MAAEd,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCc,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,14 +2,21 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { StyleSheet, Text, View } from 'react-native';
5
+ import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui';
6
+ import { MESSAGE_COLORS_MAP } from "../../constants.js";
7
+ import { ColorScheme } from "../../types/style.types.js";
8
+ import { MessageVariant } from "../../types/model.types.js";
5
9
  import { jsx as _jsx } from "react/jsx-runtime";
6
10
  export const SentMessage = /*#__PURE__*/React.memo(({
7
11
  message,
8
- isTranslated
12
+ isTranslated,
13
+ colorScheme = ColorScheme.Blue
9
14
  }) => {
10
15
  const text = isTranslated ? message.translatedMessage : message.message;
11
16
  return /*#__PURE__*/_jsx(View, {
12
- style: styles.container,
17
+ style: [styles.container, {
18
+ backgroundColor: MESSAGE_COLORS_MAP[colorScheme][MessageVariant.SENT].background
19
+ }],
13
20
  children: /*#__PURE__*/_jsx(Text, {
14
21
  style: styles.text,
15
22
  children: text
@@ -20,16 +27,15 @@ const styles = StyleSheet.create({
20
27
  container: {
21
28
  alignSelf: 'flex-end',
22
29
  maxWidth: 305,
23
- padding: 8,
24
- borderRadius: 8,
25
- borderBottomRightRadius: 0,
26
- backgroundColor: '#55ABE0'
30
+ padding: SPACING[200],
31
+ borderRadius: BORDER_RADIUS[200],
32
+ borderBottomRightRadius: 0
27
33
  },
28
34
  text: {
29
35
  fontSize: 20,
30
36
  fontWeight: 400,
31
- fontFamily: 'Buenos Aires',
32
- color: '#FFF'
37
+ fontFamily: FONT_FAMILY.buenosAires,
38
+ color: COLORS.NEUTRAL_1
33
39
  }
34
40
  });
35
41
  //# sourceMappingURL=SentMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","Text","View","jsx","_jsx","SentMessage","memo","message","isTranslated","text","translatedMessage","style","styles","container","children","create","alignSelf","maxWidth","padding","borderRadius","borderBottomRightRadius","backgroundColor","fontSize","fontWeight","fontFamily","color"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/SentMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGrD,OAAO,MAAMC,WAAW,gBAAGN,KAAK,CAACO,IAAI,CAAC,CAAC;EAAEC,OAAO;EAAEC;AAA2B,CAAC,KAAK;EACjF,MAAMC,IAAI,GAAGD,YAAY,GAAGD,OAAO,CAACG,iBAAiB,GAAGH,OAAO,CAACA,OAAO;EAEvE,oBACEH,IAAA,CAACF,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BV,IAAA,CAACH,IAAI;MAACU,KAAK,EAAEC,MAAM,CAACH,IAAK;MAAAK,QAAA,EAAEL;IAAI,CAAO;EAAC,CACnC,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMG,MAAM,GAAGZ,UAAU,CAACe,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,SAAS,EAAE,UAAU;IACrBC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE,CAAC;IACfC,uBAAuB,EAAE,CAAC;IAC1BC,eAAe,EAAE;EACnB,CAAC;EACDZ,IAAI,EAAE;IACJa,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","MESSAGE_COLORS_MAP","ColorScheme","MessageVariant","jsx","_jsx","SentMessage","memo","message","isTranslated","colorScheme","Blue","text","translatedMessage","style","styles","container","backgroundColor","SENT","background","children","create","alignSelf","maxWidth","padding","borderRadius","borderBottomRightRadius","fontSize","fontWeight","fontFamily","buenosAires","color","NEUTRAL_1"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/SentMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,MAAM,EAAEC,WAAW,EAAEC,OAAO,QAAQ,4BAA4B;AAGxF,SAASC,kBAAkB,QAAQ,oBAAiB;AACpD,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAExD,OAAO,MAAMC,WAAW,gBAAGb,KAAK,CAACc,IAAI,CACnC,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC,WAAW,GAAGR,WAAW,CAACS;AAAmB,CAAC,KAAK;EAC3E,MAAMC,IAAI,GAAGH,YAAY,GAAGD,OAAO,CAACK,iBAAiB,GAAGL,OAAO,CAACA,OAAO;EAEvE,oBACEH,IAAA,CAACT,IAAI;IACHkB,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAEhB,kBAAkB,CAACS,WAAW,CAAC,CAACP,cAAc,CAACe,IAAI,CAAC,CAACC;IAAW,CAAC,CACpF;IAAAC,QAAA,eAEFf,IAAA,CAACV,IAAI;MAACmB,KAAK,EAAEC,MAAM,CAACH,IAAK;MAAAQ,QAAA,EAAER;IAAI,CAAO;EAAC,CACnC,CAAC;AAEX,CACF,CAAC;AAED,MAAMG,MAAM,GAAGrB,UAAU,CAAC2B,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,SAAS,EAAE,UAAU;IACrBC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAExB,OAAO,CAAC,GAAG,CAAC;IACrByB,YAAY,EAAE5B,aAAa,CAAC,GAAG,CAAC;IAChC6B,uBAAuB,EAAE;EAC3B,CAAC;EACDd,IAAI,EAAE;IACJe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE9B,WAAW,CAAC+B,WAAW;IACnCC,KAAK,EAAEjC,MAAM,CAACkC;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -7,6 +7,7 @@ import { ChatMessage } from "../ChatMessage/ChatMessage.js";
7
7
  import { MessageLoader } from "../ChatMessage/MessageLoader.js";
8
8
  import { Alternatives } from "../Alternatives/Alternatives.js";
9
9
  import { MessageVariant } from "../../types/model.types.js";
10
+ import { ColorScheme } from "../../types/style.types.js";
10
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
12
  const TOOLBAR_HEIGHT = 140;
12
13
  const BOTTOM_OFFSET = Platform.select({
@@ -16,7 +17,8 @@ const BOTTOM_OFFSET = Platform.select({
16
17
  export const ChatbotMessages = ({
17
18
  model,
18
19
  isHintFeedback,
19
- isTextToSpeechEnabled
20
+ isTextToSpeechEnabled,
21
+ colorScheme = ColorScheme.Blue
20
22
  }) => {
21
23
  const dimensions = useWindowDimensions();
22
24
  const ref = useRef(null);
@@ -26,10 +28,12 @@ export const ChatbotMessages = ({
26
28
  const currentPlayingId = useUnit(model.t2s.$currentPlayingId);
27
29
  const isTranslated = useUnit(model.translation.$isTranslated);
28
30
  const audioStatus = useUnit(model.t2s.$status);
29
- const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET;
31
+ const errorSpottingEnabled = useUnit(model.errorSpotting.$isEnabled);
30
32
  const messages = useStoreMap(model.$currentChatData, ({
31
33
  messages
32
34
  }) => messages);
35
+ const lastMessageId = messages.at(-1)?.id;
36
+ const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET;
33
37
  const askChatForHelp = (message, translatedMessage) => {
34
38
  void model.sendHelpRequestFx({
35
39
  message,
@@ -54,8 +58,11 @@ export const ChatbotMessages = ({
54
58
  style: styles.gap,
55
59
  children: [messages.map(message => /*#__PURE__*/_jsx(ChatMessage, {
56
60
  isTranslated: isTranslated,
61
+ withIcon: !message.isOwnMessage && message.id === lastMessageId,
57
62
  message: message,
58
63
  variant: message.isOwnMessage ? MessageVariant.SENT : MessageVariant.RECEIVED,
64
+ colorScheme: colorScheme,
65
+ withErrorSpotting: errorSpottingEnabled && !message.isOwnMessage,
59
66
  t2sState: {
60
67
  isEnabled: isTextToSpeechEnabled && !message.isOwnMessage,
61
68
  isActive: message.id === currentPlayingId,
@@ -63,11 +70,14 @@ export const ChatbotMessages = ({
63
70
  status: audioStatus,
64
71
  disabled: isTextToSpeechPending
65
72
  }
66
- }, message.id)), isHelpRequestPending && /*#__PURE__*/_jsx(MessageLoader, {})]
73
+ }, message.id)), isHelpRequestPending && /*#__PURE__*/_jsx(MessageLoader, {
74
+ colorScheme: colorScheme
75
+ })]
67
76
  }), !isHelpRequestPending && isOpen && /*#__PURE__*/_jsx(Alternatives, {
68
77
  onPressAlternative: askChatForHelp,
69
78
  hasMessages: messages.length > 1,
70
- isHintFeedback: isHintFeedback
79
+ isHintFeedback: isHintFeedback,
80
+ colorScheme: colorScheme
71
81
  })]
72
82
  })
73
83
  });
@@ -1 +1 @@
1
- {"version":3,"names":["React","useRef","Platform","ScrollView","StyleSheet","useWindowDimensions","View","useStoreMap","useUnit","ChatMessage","MessageLoader","Alternatives","MessageVariant","jsx","_jsx","jsxs","_jsxs","TOOLBAR_HEIGHT","BOTTOM_OFFSET","select","web","default","ChatbotMessages","model","isHintFeedback","isTextToSpeechEnabled","dimensions","ref","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","MAX_HEIGHT","height","messages","$currentChatData","askChatForHelp","message","translatedMessage","style","styles","container","maxHeight","children","bounces","contentContainerStyle","list","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","map","variant","isOwnMessage","SENT","RECEIVED","t2sState","isEnabled","isActive","id","isLoading","status","disabled","onPressAlternative","hasMessages","length","create","flex","alignItems","width","paddingVertical","paddingRight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AAC1F,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAErD,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,aAAa,QAAQ,iCAA8B;AAC5D,SAASC,YAAY,QAAQ,iCAA8B;AAC3D,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQxD,MAAMC,cAAc,GAAG,GAAG;AAC1B,MAAMC,aAAa,GAAGhB,QAAQ,CAACiB,MAAM,CAAC;EACpCC,GAAG,EAAE,GAAG;EACRC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,KAAK;EACLC,cAAc;EACdC;AACoB,CAAC,KAAK;EAC1B,MAAMC,UAAU,GAAGrB,mBAAmB,CAAC,CAAC;EACxC,MAAMsB,GAAG,GAAG1B,MAAM,CAAa,IAAI,CAAC;EACpC,MAAM2B,MAAM,GAAGpB,OAAO,CAACe,KAAK,CAACM,OAAO,CAAC;EAErC,MAAMC,oBAAoB,GAAGtB,OAAO,CAACe,KAAK,CAACQ,iBAAiB,CAACC,OAAO,CAAC;EACrE,MAAMC,qBAAqB,GAAGzB,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mB,GAAG,CAAEhB,OAAO,iBACpBnC,IAAA,CAACL,WAAW;UAEV8B,YAAY,EAAEA,YAAa;UAC3BU,OAAO,EAAEA,OAAQ;UACjBiB,OAAO,EAAEjB,OAAO,CAACkB,YAAY,GAAGvD,cAAc,CAACwD,IAAI,GAAGxD,cAAc,CAACyD,QAAS;UAC9EC,QAAQ,EAAE;YACRC,SAAS,EAAE9C,qBAAqB,IAAI,CAACwB,OAAO,CAACkB,YAAY;YACzDK,QAAQ,EAAEvB,OAAO,CAACwB,EAAE,KAAKrC,gBAAgB;YACzCsC,SAAS,EAAEzC,qBAAqB;YAChC0C,MAAM,EAAEjC,WAAW;YACnBkC,QAAQ,EAAE3C;UACZ;QAAE,GAVGgB,OAAO,CAACwB,EAWd,CACF,CAAC,EAED3C,oBAAoB,iBAAIhB,IAAA,CAACJ,aAAa,IAAE,CAAC;MAAA,CACtC,CACP,EAEA,CAACoB,oBAAoB,IAAIF,MAAM,iBAC9Bd,IAAA,CAACH,YAAY;QACXkE,kBAAkB,EAAE7B,cAAe;QACnC8B,WAAW,EAAEhC,QAAQ,CAACiC,MAAM,GAAG,CAAE;QACjCvD,cAAc,EAAEA;MAAe,CAChC,CACF;IAAA,CACS;EAAC,CACT,CAAC;AAEX,CAAC;AAED,MAAM4B,MAAM,GAAGhD,UAAU,CAAC4E,MAAM,CAAC;EAC/B3B,SAAS,EAAE;IACT4B,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,UAAU;IACtBC,KAAK,EAAE,GAAG;IACVtC,MAAM,EAAE;EACV,CAAC;EACDa,IAAI,EAAE;IACJwB,UAAU,EAAE,UAAU;IACtBE,eAAe,EAAE,CAAC;IAClBC,YAAY,EAAE;EAChB,CAAC;EACDrB,GAAG,EAAE;IACHiB,IAAI,EAAE,CAAC;IACPjB,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useRef","Platform","ScrollView","StyleSheet","useWindowDimensions","View","useStoreMap","useUnit","ChatMessage","MessageLoader","Alternatives","MessageVariant","ColorScheme","jsx","_jsx","jsxs","_jsxs","TOOLBAR_HEIGHT","BOTTOM_OFFSET","select","web","default","ChatbotMessages","model","isHintFeedback","isTextToSpeechEnabled","colorScheme","Blue","dimensions","ref","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","errorSpottingEnabled","errorSpotting","$isEnabled","messages","$currentChatData","lastMessageId","at","id","MAX_HEIGHT","height","askChatForHelp","message","translatedMessage","style","styles","container","maxHeight","children","bounces","contentContainerStyle","list","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","map","withIcon","isOwnMessage","variant","SENT","RECEIVED","withErrorSpotting","t2sState","isEnabled","isActive","isLoading","status","disabled","onPressAlternative","hasMessages","length","create","flex","alignItems","width","paddingVertical","paddingRight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AAC1F,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAGrD,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,aAAa,QAAQ,iCAA8B;AAC5D,SAASC,YAAY,QAAQ,iCAA8B;AAC3D,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,WAAW,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AASrD,MAAMC,cAAc,GAAG,GAAG;AAC1B,MAAMC,aAAa,GAAGjB,QAAQ,CAACkB,MAAM,CAAC;EACpCC,GAAG,EAAE,GAAG;EACRC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,MAAM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AoB,iBAAIlB,IAAA,CAACL,aAAa;UAACiB,WAAW,EAAEA;QAAY,CAAE,CAAC;MAAA,CAChE,CACP,EAEA,CAACM,oBAAoB,IAAIF,MAAM,iBAC9BhB,IAAA,CAACJ,YAAY;QACX4E,kBAAkB,EAAE9B,cAAe;QACnC+B,WAAW,EAAEtC,QAAQ,CAACuC,MAAM,GAAG,CAAE;QACjChE,cAAc,EAAEA,cAAe;QAC/BE,WAAW,EAAEA;MAAY,CAC1B,CACF;IAAA,CACS;EAAC,CACT,CAAC;AAEX,CAAC;AAED,MAAMkC,MAAM,GAAGzD,UAAU,CAACsF,MAAM,CAAC;EAC/B5B,SAAS,EAAE;IACT6B,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,UAAU;IACtBC,KAAK,EAAE,GAAG;IACVrC,MAAM,EAAE;EACV,CAAC;EACDW,IAAI,EAAE;IACJyB,UAAU,EAAE,UAAU;IACtBE,eAAe,EAAE,CAAC;IAClBC,YAAY,EAAE;EAChB,CAAC;EACDtB,GAAG,EAAE;IACHkB,IAAI,EAAE,CAAC;IACPlB,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ import React from 'react';
3
4
  import { useStoreMap, useUnit } from 'effector-react';
4
5
  import { ChatbotMessages } from "./ChatMessages/ChatbotMessages.js";
5
6
  import { ChatControls } from "./ChatControls/ChatControls.js";
6
- import React from 'react';
7
7
  import { ChatBotModelContext } from "../context/ChatBotModelContext.js";
8
+ import { ColorScheme } from "../types/style.types.js";
8
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
10
  export const Chatbot = ({
10
11
  model,
@@ -12,7 +13,8 @@ export const Chatbot = ({
12
13
  isTextToSpeechEnabled = false,
13
14
  textToSpeechConfig,
14
15
  ButtonWrapper,
15
- iconSize
16
+ iconSize,
17
+ colorScheme = ColorScheme.Blue
16
18
  }) => {
17
19
  const alternatives = useUnit(model.$alternatives);
18
20
  const isAvailable = useStoreMap(model.$currentChatData, ({
@@ -28,6 +30,7 @@ export const Chatbot = ({
28
30
  value: model,
29
31
  children: [/*#__PURE__*/_jsx(ChatbotMessages, {
30
32
  model: model,
33
+ colorScheme: colorScheme,
31
34
  isHintFeedback: isHintFeedback,
32
35
  isTextToSpeechEnabled: isTextToSpeechEnabled
33
36
  }), /*#__PURE__*/_jsx(ChatControls, {
@@ -1 +1 @@
1
- {"version":3,"names":["useStoreMap","useUnit","ChatbotMessages","ChatControls","React","ChatBotModelContext","jsx","_jsx","jsxs","_jsxs","Chatbot","model","isHintFeedback","isTextToSpeechEnabled","textToSpeechConfig","ButtonWrapper","iconSize","alternatives","$alternatives","isAvailable","$currentChatData","t2s","setAudioConfig","openChat","setIsOpen","closeChat","chatAccess","Provider","value","children","onPressChatIcon","onPressClose"],"sourceRoot":"../../../../../src","sources":["features/chatbot/components/Chatbot.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAErD,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,YAAY,QAAQ,gCAA6B;AAE1D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,QAAQ,mCAAgC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAcpE,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACtBC,KAAK;EACLC,cAAc;EACdC,qBAAqB,GAAG,KAAK;EAC7BC,kBAAkB;EAClBC,aAAa;EACbC;AACY,CAAC,KAAK;EAClB,MAAMC,YAAY,GAAGhB,OAAO,CAACU,KAAK,CAACO,aAAa,CAAC;EACjD,MAAMC,WAAW,GAAGnB,WAAW,CAACW,KAAK,CAACS,gBAAgB,EAAE,CAAC;IAAED;EAAY,CAAC,KAAKA,WAAW,CAAC;EACzFR,KAAK,CAACU,GAAG,CAACC,cAAc,CAACR,kBAAkB,IAAI,IAAI,CAAC;EAEpD,MAAMS,QAAQ,GAAGA,CAAA,KAAMZ,KAAK,CAACa,SAAS,CAAC,IAAI,CAAC;EAC5C,MAAMC,SAAS,GAAGA,CAAA,KAAMd,KAAK,CAACa,SAAS,CAAC,KAAK,CAAC;EAE9C,IAAI,CAACL,WAAW,IAAIF,YAAY,EAAES,UAAU,KAAK,KAAK,EAAE;IACtD,OAAO,IAAI;EACb;EAEA,oBACEjB,KAAA,CAACJ,mBAAmB,CAACsB,QAAQ;IAACC,KAAK,EAAEjB,KAAM;IAAAkB,QAAA,gBACzCtB,IAAA,CAACL,eAAe;MACdS,KAAK,EAAEA,KAAM;MACbC,cAAc,EAAEA,cAAe;MAC/BC,qBAAqB,EAAEA;IAAsB,CAC9C,CAAC,eAEFN,IAAA,CAACJ,YAAY;MACXQ,KAAK,EAAEA,KAAM;MACbmB,eAAe,EAAEP,QAAS;MAC1BQ,YAAY,EAAEN,SAAU;MACxBV,aAAa,EAAEA,aAAc;MAC7BC,QAAQ,EAAEA;IAAS,CACpB,CAAC;EAAA,CAC0B,CAAC;AAEnC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useStoreMap","useUnit","ChatbotMessages","ChatControls","ChatBotModelContext","ColorScheme","jsx","_jsx","jsxs","_jsxs","Chatbot","model","isHintFeedback","isTextToSpeechEnabled","textToSpeechConfig","ButtonWrapper","iconSize","colorScheme","Blue","alternatives","$alternatives","isAvailable","$currentChatData","t2s","setAudioConfig","openChat","setIsOpen","closeChat","chatAccess","Provider","value","children","onPressChatIcon","onPressClose"],"sourceRoot":"../../../../../src","sources":["features/chatbot/components/Chatbot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA4C,OAAO;AAC/D,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAGrD,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,YAAY,QAAQ,gCAA6B;AAE1D,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,WAAW,QAAQ,yBAAsB;AAAA,SAAAC,GAAA,IAAAC,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useMemo } from 'react';
3
+ import React, { useEffect, useMemo } from 'react';
5
4
  import { View, Animated, StyleSheet, Platform } from 'react-native';
5
+ import { COLORS } from '@magmamath/react-native-ui';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  export const ThreeDotsLoader = ({
8
8
  dotsCount = 3,
9
9
  animationDuration = 250,
10
- backgroundColor = '#55ABE0'
10
+ backgroundColor = COLORS.PRIMARY_BLUE
11
11
  }) => {
12
12
  const isWeb = Platform.OS === 'web';
13
13
  const animations = useMemo(() => [...Array(dotsCount)].map(() => new Animated.Value(0)), [dotsCount]);
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useMemo","View","Animated","StyleSheet","Platform","jsx","_jsx","ThreeDotsLoader","dotsCount","animationDuration","backgroundColor","isWeb","OS","animations","Array","map","Value","animationsArray","anim","index","sequence","timing","toValue","duration","useNativeDriver","delay","loop","parallel","start","style","styles","container","children","translateY","interpolate","inputRange","outputRange","dot","transform","create","flexDirection","justifyContent","alignItems","borderRadius","height","width","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAC1C,SAASC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAQnE,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,SAAS,GAAG,CAAC;EACbC,iBAAiB,GAAG,GAAG;EACvBC,eAAe,GAAG;AACH,CAAC,KAAK;EACrB,MAAMC,KAAK,GAAGP,QAAQ,CAACQ,EAAE,KAAK,KAAK;EACnC,MAAMC,UAAU,GAAGb,OAAO,CACxB,MAAM,CAAC,GAAGc,KAAK,CAACN,SAAS,CAAC,CAAC,CAACO,GAAG,CAAC,MAAM,IAAIb,QAAQ,CAACc,KAAK,CA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GALGS,KAMN,CAAC;IAEN,CAAC;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAG3B,UAAU,CAACoC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDL,GAAG,EAAE;IACHM,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","View","Animated","StyleSheet","Platform","COLORS","jsx","_jsx","ThreeDotsLoader","dotsCount","animationDuration","backgroundColor","PRIMARY_BLUE","isWeb","OS","animations","Array","map","Value","animationsArray","anim","index","sequence","timing","toValue","duration","useNativeDriver","delay","loop","parallel","start","style","styles","container","children","translateY","interpolate","inputRange","outputRange","dot","transform","create","flexDirection","justifyContent","alignItems","borderRadius","height","width","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAASC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAEnE,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAQnD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,SAAS,GAAG,CAAC;EACbC,iBAAiB,GAAG,GAAG;EACvBC,eAAe,GAAGN,MAAM,CAACO;AACV,CAAC,KAAK;EACrB,MAAMC,KAAK,GAAGT,QAAQ,CAACU,EAAE,KAAK,KAAK;EACnC,MAAMC,UAAU,GAAGf,OAAO,CACxB,MAAM,CAAC,GAAGgB,KAAK,CAACP,SAAS,CAAC,CAAC,CAACQ,GAAG,CAAC,MAAM,I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AAE;UAAExB;QAAgB,CAAC;MAAE,GADrEU,KAEN,CAAC;IAEN,CAAC;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAG7B,UAAU,CAACsC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDL,GAAG,EAAE;IACHM,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
 
3
+ import { ButtonColor, COLORS } from '@magmamath/react-native-ui';
3
4
  import { Platform } from 'react-native';
5
+ import { MessageVariant } from "./types/model.types.js";
6
+ import { ColorScheme } from "./types/style.types.js";
4
7
  export const AUDIO_CONFIG = {
5
8
  audioEncoding: 'LINEAR16',
6
9
  pitch: 0,
@@ -33,4 +36,36 @@ export const KATEX_REPLACEMENTS = {
33
36
  export const KATEX_REPLACEMENTS_REVERSE = {
34
37
  __KATEX_DOLLAR_SYMBOL__: '$'
35
38
  };
39
+ export const MESSAGE_COLORS_MAP = {
40
+ [ColorScheme.Blue]: {
41
+ [MessageVariant.RECEIVED]: {
42
+ background: COLORS.NEUTRAL_3,
43
+ icon: ButtonColor.BLUE
44
+ },
45
+ [MessageVariant.SENT]: {
46
+ background: COLORS.PRIMARY_BLUE,
47
+ icon: ButtonColor.BLUE
48
+ }
49
+ },
50
+ [ColorScheme.Yellow]: {
51
+ [MessageVariant.RECEIVED]: {
52
+ background: COLORS.NEUTRAL_3,
53
+ icon: ButtonColor.YELLOW
54
+ },
55
+ [MessageVariant.SENT]: {
56
+ background: COLORS.PRIMARY_YELLOW,
57
+ icon: ButtonColor.YELLOW
58
+ }
59
+ }
60
+ };
61
+ export const CONTROLS_COLORS_MAP = {
62
+ [ColorScheme.Blue]: {
63
+ hover: COLORS.PRIMARY_BLUE,
64
+ background: COLORS.PRIMARY_BLUE
65
+ },
66
+ [ColorScheme.Yellow]: {
67
+ hover: COLORS.PRIMARY_YELLOW,
68
+ background: COLORS.PRIMARY_YELLOW
69
+ }
70
+ };
36
71
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","AUDIO_CONFIG","audioEncoding","pitch","speakingRate","DEFAULT_VOICE","languageCode","name","TEXT_TO_SPEECH_CONFIG","select","ios","audioConfig","voice","default","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","__KATEX_DOLLAR_SYMBOL__"],"sourceRoot":"../../../../src","sources":["features/chatbot/constants.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,YAAY,GAAG;EAC1BC,aAAa,EAAE,UAAU;EACzBC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,aAAa,GAAG;EAC3BC,YAAY,EAAE,OAAO;EACrBC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAGR,QAAQ,CAACS,MAAM,CAAC;EACnDC,GAAG,EAAE;IACHC,WAAW,EAAE;MACXT,aAAa,EAAE,KAAK;MACpBC,KAAK,EAAE,GAAG;MACVC,YAAY,EAAE;IAChB,CAAC;IACDQ,KAAK,EAAE;MACLN,YAAY,EAAE,OAAO;MACrBC,IAAI,EAAE;IACR;EACF,CAAC;EACDM,OAAO,EAAE;IACPF,WAAW,EAAEV,YAAY;IACzBW,KAAK,EAAEP;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMS,kBAAkB,GAAG;EAChC,KAAK,EAAE;AACT,CAAU;AAEV,OAAO,MAAMC,0BAA0B,GAAG;EACxCC,uBAAuB,EAAE;AAC3B,CAAU","ignoreList":[]}
1
+ {"version":3,"names":["ButtonColor","COLORS","Platform","MessageVariant","ColorScheme","AUDIO_CONFIG","audioEncoding","pitch","speakingRate","DEFAULT_VOICE","languageCode","name","TEXT_TO_SPEECH_CONFIG","select","ios","audioConfig","voice","default","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","__KATEX_DOLLAR_SYMBOL__","MESSAGE_COLORS_MAP","Blue","RECEIVED","background","NEUTRAL_3","icon","BLUE","SENT","PRIMARY_BLUE","Yellow","YELLOW","PRIMARY_YELLOW","CONTROLS_COLORS_MAP","hover"],"sourceRoot":"../../../../src","sources":["features/chatbot/constants.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,MAAM,QAAQ,4BAA4B;AAChE,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,cAAc,QAAQ,wBAAqB;AACpD,SAASC,WAAW,QAAQ,wBAAqB;AAEjD,OAAO,MAAMC,YAAY,GAAG;EAC1BC,aAAa,EAAE,UAAU;EACzBC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,aAAa,GAAG;EAC3BC,YAAY,EAAE,OAAO;EACrBC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAGV,QAAQ,CAACW,MAAM,CAAC;EACnDC,GAAG,EAAE;IACHC,WAAW,EAAE;MACXT,aAAa,EAAE,KAAK;MACpBC,KAAK,EAAE,GAAG;MACVC,YAAY,EAAE;IAChB,CAAC;IACDQ,KAAK,EAAE;MACLN,YAAY,EAAE,OAAO;MACrBC,IAAI,EAAE;IACR;EACF,CAAC;EACDM,OAAO,EAAE;IACPF,WAAW,EAAEV,YAAY;IACzBW,KAAK,EAAEP;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMS,kBAAkB,GAAG;EAChC,KAAK,EAAE;AACT,CAAU;AAEV,OAAO,MAAMC,0BAA0B,GAAG;EACxCC,uBAAuB,EAAE;AAC3B,CAAU;AAEV,OAAO,MAAMC,kBAAkB,GAAG;EAChC,CAACjB,WAAW,CAACkB,IAAI,GAAG;IAClB,CAACnB,cAAc,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