@magmamath/students-features 0.6.1-8.rc-3 → 0.6.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 (585) hide show
  1. package/README.md +5 -14
  2. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +2 -6
  3. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  4. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +24 -27
  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 +4 -9
  8. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +5 -18
  10. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  11. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +3 -10
  12. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  13. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +12 -16
  14. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  15. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -13
  16. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  17. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +8 -14
  18. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  19. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +4 -14
  20. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  21. package/dist/commonjs/features/chatbot/components/Chatbot.js +2 -5
  22. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  23. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +1 -2
  24. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  25. package/dist/commonjs/features/chatbot/constants.js +1 -36
  26. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  27. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +0 -8
  28. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  29. package/dist/commonjs/features/chatbot/index.js +0 -7
  30. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  31. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +36 -64
  32. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  33. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +8 -3
  34. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  35. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +0 -9
  36. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  37. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +0 -1
  38. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  39. package/dist/commonjs/features/chatbot/model/translation.js +1 -9
  40. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  41. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  42. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +0 -2
  43. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  44. package/dist/commonjs/features/feedback/model/comments.js +3 -5
  45. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  46. package/dist/commonjs/features/feedback/model/model.js +9 -7
  47. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  48. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +4 -5
  49. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  50. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +9 -12
  51. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  52. package/dist/commonjs/features/problemSelector/constants.js +6 -3
  53. package/dist/commonjs/features/problemSelector/constants.js.map +1 -1
  54. package/dist/commonjs/index.js +0 -36
  55. package/dist/commonjs/index.js.map +1 -1
  56. package/dist/commonjs/lib/effector/createControllerEffect.js.map +1 -1
  57. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  58. package/dist/commonjs/shared/icons/LockIcon.js +31 -0
  59. package/dist/commonjs/shared/icons/LockIcon.js.map +1 -0
  60. package/dist/commonjs/shared/translation/constants.js +1 -5
  61. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  62. package/dist/commonjs/shared/translation/localization/en.json +0 -11
  63. package/dist/commonjs/shared/translation/localization/gb.json +0 -11
  64. package/dist/commonjs/shared/translation/localization/sw.json +0 -11
  65. package/dist/commonjs/shared/translation/types.js +0 -2
  66. package/dist/commonjs/shared/translation/types.js.map +1 -1
  67. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +2 -6
  68. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  69. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +27 -29
  70. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  71. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  72. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +4 -9
  73. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  74. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +5 -18
  75. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  76. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +3 -10
  77. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  78. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +12 -16
  79. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  80. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -13
  81. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  82. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +8 -14
  83. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  84. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +4 -14
  85. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  86. package/dist/module/features/chatbot/components/Chatbot.js +2 -5
  87. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  88. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +3 -3
  89. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  90. package/dist/module/features/chatbot/constants.js +0 -35
  91. package/dist/module/features/chatbot/constants.js.map +1 -1
  92. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -9
  93. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  94. package/dist/module/features/chatbot/index.js +0 -1
  95. package/dist/module/features/chatbot/index.js.map +1 -1
  96. package/dist/module/features/chatbot/model/ChatBotModel.js +37 -65
  97. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  98. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +8 -3
  99. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  100. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +0 -9
  101. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  102. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +0 -1
  103. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  104. package/dist/module/features/chatbot/model/translation.js +1 -9
  105. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  106. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  107. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +1 -3
  108. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  109. package/dist/module/features/feedback/model/comments.js +3 -5
  110. package/dist/module/features/feedback/model/comments.js.map +1 -1
  111. package/dist/module/features/feedback/model/model.js +9 -7
  112. package/dist/module/features/feedback/model/model.js.map +1 -1
  113. package/dist/module/features/formulaSheet/components/FormulaSheet.js +4 -5
  114. package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  115. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +10 -13
  116. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  117. package/dist/module/features/problemSelector/constants.js +5 -2
  118. package/dist/module/features/problemSelector/constants.js.map +1 -1
  119. package/dist/module/index.js +0 -3
  120. package/dist/module/index.js.map +1 -1
  121. package/dist/module/lib/effector/createControllerEffect.js.map +1 -1
  122. package/dist/module/shared/icons/LockIcon.js +23 -0
  123. package/dist/module/shared/icons/LockIcon.js.map +1 -0
  124. package/dist/module/shared/translation/constants.js +1 -5
  125. package/dist/module/shared/translation/constants.js.map +1 -1
  126. package/dist/module/shared/translation/localization/en.json +0 -11
  127. package/dist/module/shared/translation/localization/gb.json +0 -11
  128. package/dist/module/shared/translation/localization/sw.json +0 -11
  129. package/dist/module/shared/translation/types.js +0 -2
  130. package/dist/module/shared/translation/types.js.map +1 -1
  131. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
  132. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  133. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +1 -2
  134. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  135. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -5
  136. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  137. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +1 -6
  138. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  139. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +2 -7
  140. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  141. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
  142. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  143. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +1 -5
  144. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  145. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  146. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  147. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  148. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  149. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -3
  150. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  151. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +3 -4
  152. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  153. package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  154. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +0 -33
  155. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  156. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -4
  157. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  158. package/dist/typescript/commonjs/features/chatbot/index.d.ts +0 -1
  159. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +2 -7
  161. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  162. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +3 -1
  163. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  164. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +0 -5
  165. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  166. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  167. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  168. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +2 -5
  169. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  170. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  171. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  172. package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  173. package/dist/typescript/commonjs/features/problemSelector/constants.d.ts +5 -2
  174. package/dist/typescript/commonjs/features/problemSelector/constants.d.ts.map +1 -1
  175. package/dist/typescript/commonjs/index.d.ts +0 -3
  176. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  177. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +1 -1
  178. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -1
  179. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  180. package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts +4 -0
  181. package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts.map +1 -0
  182. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -99
  183. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  184. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -22
  185. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  186. package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -3
  187. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  188. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +1 -5
  189. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -1
  190. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
  191. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  192. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +1 -2
  193. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  194. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -5
  195. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  196. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +1 -6
  197. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  198. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +2 -7
  199. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  200. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
  201. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  202. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +1 -5
  203. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  204. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  205. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  206. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  207. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  208. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -3
  209. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  210. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +3 -4
  211. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  212. package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  213. package/dist/typescript/module/features/chatbot/constants.d.ts +0 -33
  214. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  215. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -4
  216. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  217. package/dist/typescript/module/features/chatbot/index.d.ts +0 -1
  218. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  219. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +2 -7
  220. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  221. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +3 -1
  222. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  223. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +0 -5
  224. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  225. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  226. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  227. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +2 -5
  228. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  229. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  230. package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  231. package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  232. package/dist/typescript/module/features/problemSelector/constants.d.ts +5 -2
  233. package/dist/typescript/module/features/problemSelector/constants.d.ts.map +1 -1
  234. package/dist/typescript/module/index.d.ts +0 -3
  235. package/dist/typescript/module/index.d.ts.map +1 -1
  236. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +1 -1
  237. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -1
  238. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  239. package/dist/typescript/module/shared/icons/LockIcon.d.ts +4 -0
  240. package/dist/typescript/module/shared/icons/LockIcon.d.ts.map +1 -0
  241. package/dist/typescript/module/shared/translation/constants.d.ts +0 -99
  242. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  243. package/dist/typescript/module/shared/translation/model.d.ts +0 -22
  244. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  245. package/dist/typescript/module/shared/translation/types.d.ts +1 -3
  246. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  247. package/dist/typescript/module/shared/translation/validation.types.d.ts +1 -5
  248. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -1
  249. package/package.json +7 -11
  250. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +0 -6
  251. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +29 -28
  252. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +1 -6
  253. package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +4 -24
  254. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +6 -39
  255. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +3 -11
  256. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +7 -28
  257. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +5 -25
  258. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +13 -24
  259. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +3 -13
  260. package/src/features/chatbot/components/Chatbot.tsx +2 -6
  261. package/src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx +10 -7
  262. package/src/features/chatbot/constants.ts +0 -37
  263. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +1 -11
  264. package/src/features/chatbot/index.ts +0 -1
  265. package/src/features/chatbot/model/ChatBotModel.ts +41 -65
  266. package/src/features/chatbot/model/ChatBotThreadManager.ts +10 -4
  267. package/src/features/chatbot/model/ChatBoxTextManager.ts +0 -11
  268. package/src/features/chatbot/model/DefaultMessageCreator.ts +0 -1
  269. package/src/features/chatbot/model/translation.ts +1 -11
  270. package/src/features/chatbot/types/model.types.ts +2 -5
  271. package/src/features/endOfAssignment/components/Modal/Modal.tsx +0 -3
  272. package/src/features/feedback/model/comments.ts +7 -7
  273. package/src/features/feedback/model/model.ts +6 -6
  274. package/src/features/formulaSheet/components/FormulaSheet.tsx +4 -6
  275. package/src/features/problemSelector/components/ProblemSelectorButton.tsx +10 -17
  276. package/src/features/problemSelector/constants.ts +2 -3
  277. package/src/index.ts +0 -3
  278. package/src/lib/effector/createControllerEffect.ts +41 -41
  279. package/src/lib/helpers/helpers.ts +1 -1
  280. package/src/shared/icons/LockIcon.tsx +16 -0
  281. package/src/shared/translation/constants.ts +0 -4
  282. package/src/shared/translation/localization/en.json +0 -11
  283. package/src/shared/translation/localization/gb.json +0 -11
  284. package/src/shared/translation/localization/sw.json +0 -11
  285. package/src/shared/translation/types.ts +0 -6
  286. package/src/shared/translation/validation.types.ts +1 -9
  287. package/dist/commonjs/features/chatbot/types/style.types.js +0 -12
  288. package/dist/commonjs/features/chatbot/types/style.types.js.map +0 -1
  289. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +0 -29
  290. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
  291. package/dist/commonjs/features/exampleSolution/assets/grid.webp +0 -0
  292. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -104
  293. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
  294. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +0 -44
  295. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +0 -1
  296. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +0 -61
  297. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +0 -1
  298. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +0 -68
  299. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +0 -1
  300. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +0 -101
  301. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +0 -1
  302. package/dist/commonjs/features/exampleSolution/constants.js +0 -13
  303. package/dist/commonjs/features/exampleSolution/constants.js.map +0 -1
  304. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +0 -61
  305. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
  306. package/dist/commonjs/features/exampleSolution/index.js +0 -39
  307. package/dist/commonjs/features/exampleSolution/index.js.map +0 -1
  308. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +0 -24
  309. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
  310. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +0 -32
  311. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
  312. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +0 -18
  313. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
  314. package/dist/commonjs/features/exampleSolution/types.js +0 -6
  315. package/dist/commonjs/features/exampleSolution/types.js.map +0 -1
  316. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js +0 -62
  317. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +0 -1
  318. package/dist/commonjs/features/gifCelebrations/assets/confetti.webp +0 -0
  319. package/dist/commonjs/features/gifCelebrations/assets/gifFallback.gif +0 -0
  320. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +0 -44
  321. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +0 -1
  322. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js +0 -46
  323. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +0 -1
  324. package/dist/commonjs/features/gifCelebrations/components/Gif.js +0 -90
  325. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +0 -1
  326. package/dist/commonjs/features/gifCelebrations/components/Progress.js +0 -96
  327. package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +0 -1
  328. package/dist/commonjs/features/gifCelebrations/constants.js +0 -34
  329. package/dist/commonjs/features/gifCelebrations/constants.js.map +0 -1
  330. package/dist/commonjs/features/gifCelebrations/helpers.js +0 -114
  331. package/dist/commonjs/features/gifCelebrations/helpers.js.map +0 -1
  332. package/dist/commonjs/features/gifCelebrations/index.js +0 -20
  333. package/dist/commonjs/features/gifCelebrations/index.js.map +0 -1
  334. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +0 -136
  335. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +0 -1
  336. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js +0 -27
  337. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js.map +0 -1
  338. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js +0 -30
  339. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js.map +0 -1
  340. package/dist/commonjs/features/gifCelebrations/types/model.types.js +0 -6
  341. package/dist/commonjs/features/gifCelebrations/types/model.types.js.map +0 -1
  342. package/dist/commonjs/lib/effector/ControlledSample.js +0 -40
  343. package/dist/commonjs/lib/effector/ControlledSample.js.map +0 -1
  344. package/dist/commonjs/react-app-env.d.js +0 -2
  345. package/dist/commonjs/react-app-env.d.js.map +0 -1
  346. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js +0 -681
  347. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js.map +0 -1
  348. package/dist/commonjs/shared/icons/LavaIconInGlasses.js +0 -616
  349. package/dist/commonjs/shared/icons/LavaIconInGlasses.js.map +0 -1
  350. package/dist/commonjs/shared/icons/index.js +0 -204
  351. package/dist/commonjs/shared/icons/index.js.map +0 -1
  352. package/dist/commonjs/shared/translation/localization/ca.json +0 -33
  353. package/dist/commonjs/shared/translation/localization/sct.json +0 -33
  354. package/dist/commonjs/types/common.types.js +0 -2
  355. package/dist/commonjs/types/common.types.js.map +0 -1
  356. package/dist/module/features/chatbot/types/style.types.js +0 -8
  357. package/dist/module/features/chatbot/types/style.types.js.map +0 -1
  358. package/dist/module/features/exampleSolution/ExampleSolutionModal.js +0 -23
  359. package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
  360. package/dist/module/features/exampleSolution/assets/grid.webp +0 -0
  361. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -98
  362. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
  363. package/dist/module/features/exampleSolution/components/LavaIcon.js +0 -36
  364. package/dist/module/features/exampleSolution/components/LavaIcon.js.map +0 -1
  365. package/dist/module/features/exampleSolution/components/MessageBlock.js +0 -53
  366. package/dist/module/features/exampleSolution/components/MessageBlock.js.map +0 -1
  367. package/dist/module/features/exampleSolution/components/QuestionSection.js +0 -60
  368. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +0 -1
  369. package/dist/module/features/exampleSolution/components/SolutionSection.js +0 -93
  370. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +0 -1
  371. package/dist/module/features/exampleSolution/constants.js +0 -9
  372. package/dist/module/features/exampleSolution/constants.js.map +0 -1
  373. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +0 -56
  374. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
  375. package/dist/module/features/exampleSolution/index.js +0 -6
  376. package/dist/module/features/exampleSolution/index.js.map +0 -1
  377. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +0 -19
  378. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
  379. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +0 -27
  380. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
  381. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +0 -13
  382. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
  383. package/dist/module/features/exampleSolution/types.js +0 -4
  384. package/dist/module/features/exampleSolution/types.js.map +0 -1
  385. package/dist/module/features/gifCelebrations/GifCelebrations.js +0 -55
  386. package/dist/module/features/gifCelebrations/GifCelebrations.js.map +0 -1
  387. package/dist/module/features/gifCelebrations/assets/confetti.webp +0 -0
  388. package/dist/module/features/gifCelebrations/assets/gifFallback.gif +0 -0
  389. package/dist/module/features/gifCelebrations/components/Backdrop.js +0 -36
  390. package/dist/module/features/gifCelebrations/components/Backdrop.js.map +0 -1
  391. package/dist/module/features/gifCelebrations/components/ContentContainer.js +0 -38
  392. package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +0 -1
  393. package/dist/module/features/gifCelebrations/components/Gif.js +0 -82
  394. package/dist/module/features/gifCelebrations/components/Gif.js.map +0 -1
  395. package/dist/module/features/gifCelebrations/components/Progress.js +0 -88
  396. package/dist/module/features/gifCelebrations/components/Progress.js.map +0 -1
  397. package/dist/module/features/gifCelebrations/constants.js +0 -30
  398. package/dist/module/features/gifCelebrations/constants.js.map +0 -1
  399. package/dist/module/features/gifCelebrations/helpers.js +0 -103
  400. package/dist/module/features/gifCelebrations/helpers.js.map +0 -1
  401. package/dist/module/features/gifCelebrations/index.js +0 -5
  402. package/dist/module/features/gifCelebrations/index.js.map +0 -1
  403. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +0 -131
  404. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +0 -1
  405. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js +0 -22
  406. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js.map +0 -1
  407. package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js +0 -25
  408. package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js.map +0 -1
  409. package/dist/module/features/gifCelebrations/types/model.types.js +0 -4
  410. package/dist/module/features/gifCelebrations/types/model.types.js.map +0 -1
  411. package/dist/module/lib/effector/ControlledSample.js +0 -35
  412. package/dist/module/lib/effector/ControlledSample.js.map +0 -1
  413. package/dist/module/react-app-env.d.js +0 -2
  414. package/dist/module/react-app-env.d.js.map +0 -1
  415. package/dist/module/shared/icons/ExcitedLavaIcon.js +0 -673
  416. package/dist/module/shared/icons/ExcitedLavaIcon.js.map +0 -1
  417. package/dist/module/shared/icons/LavaIconInGlasses.js +0 -608
  418. package/dist/module/shared/icons/LavaIconInGlasses.js.map +0 -1
  419. package/dist/module/shared/icons/index.js +0 -21
  420. package/dist/module/shared/icons/index.js.map +0 -1
  421. package/dist/module/shared/translation/localization/ca.json +0 -33
  422. package/dist/module/shared/translation/localization/sct.json +0 -33
  423. package/dist/module/types/common.types.js +0 -2
  424. package/dist/module/types/common.types.js.map +0 -1
  425. package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts +0 -5
  426. package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts.map +0 -1
  427. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
  428. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
  429. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
  430. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
  431. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +0 -10
  432. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
  433. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +0 -10
  434. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
  435. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +0 -10
  436. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
  437. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +0 -9
  438. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
  439. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +0 -6
  440. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +0 -1
  441. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
  442. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
  443. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +0 -4
  444. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +0 -1
  445. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
  446. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
  447. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
  448. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
  449. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
  450. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
  451. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +0 -27
  452. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +0 -1
  453. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +0 -10
  454. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +0 -1
  455. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +0 -10
  456. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +0 -1
  457. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +0 -10
  458. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +0 -1
  459. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +0 -10
  460. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +0 -1
  461. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +0 -10
  462. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +0 -1
  463. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +0 -26
  464. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +0 -1
  465. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +0 -29
  466. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +0 -1
  467. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts +0 -3
  468. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts.map +0 -1
  469. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +0 -25
  470. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +0 -1
  471. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts +0 -7
  472. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +0 -1
  473. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts +0 -18
  474. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +0 -1
  475. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +0 -45
  476. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +0 -1
  477. package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts +0 -17
  478. package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts.map +0 -1
  479. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts +0 -4
  480. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts.map +0 -1
  481. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts +0 -4
  482. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts.map +0 -1
  483. package/dist/typescript/commonjs/shared/icons/index.d.ts +0 -19
  484. package/dist/typescript/commonjs/shared/icons/index.d.ts.map +0 -1
  485. package/dist/typescript/commonjs/types/common.types.d.ts +0 -5
  486. package/dist/typescript/commonjs/types/common.types.d.ts.map +0 -1
  487. package/dist/typescript/module/features/chatbot/types/style.types.d.ts +0 -5
  488. package/dist/typescript/module/features/chatbot/types/style.types.d.ts.map +0 -1
  489. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
  490. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
  491. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
  492. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
  493. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +0 -10
  494. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
  495. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +0 -10
  496. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
  497. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +0 -10
  498. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
  499. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +0 -9
  500. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
  501. package/dist/typescript/module/features/exampleSolution/constants.d.ts +0 -6
  502. package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +0 -1
  503. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
  504. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
  505. package/dist/typescript/module/features/exampleSolution/index.d.ts +0 -4
  506. package/dist/typescript/module/features/exampleSolution/index.d.ts.map +0 -1
  507. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
  508. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
  509. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
  510. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
  511. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
  512. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
  513. package/dist/typescript/module/features/exampleSolution/types.d.ts +0 -27
  514. package/dist/typescript/module/features/exampleSolution/types.d.ts.map +0 -1
  515. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +0 -10
  516. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +0 -1
  517. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +0 -10
  518. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +0 -1
  519. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +0 -10
  520. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +0 -1
  521. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +0 -10
  522. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +0 -1
  523. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +0 -10
  524. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +0 -1
  525. package/dist/typescript/module/features/gifCelebrations/constants.d.ts +0 -26
  526. package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +0 -1
  527. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +0 -29
  528. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +0 -1
  529. package/dist/typescript/module/features/gifCelebrations/index.d.ts +0 -3
  530. package/dist/typescript/module/features/gifCelebrations/index.d.ts.map +0 -1
  531. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +0 -25
  532. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +0 -1
  533. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts +0 -7
  534. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +0 -1
  535. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts +0 -18
  536. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +0 -1
  537. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +0 -45
  538. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +0 -1
  539. package/dist/typescript/module/lib/effector/ControlledSample.d.ts +0 -17
  540. package/dist/typescript/module/lib/effector/ControlledSample.d.ts.map +0 -1
  541. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts +0 -4
  542. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts.map +0 -1
  543. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts +0 -4
  544. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts.map +0 -1
  545. package/dist/typescript/module/shared/icons/index.d.ts +0 -19
  546. package/dist/typescript/module/shared/icons/index.d.ts.map +0 -1
  547. package/dist/typescript/module/types/common.types.d.ts +0 -5
  548. package/dist/typescript/module/types/common.types.d.ts.map +0 -1
  549. package/src/features/chatbot/types/style.types.ts +0 -4
  550. package/src/features/exampleSolution/ExampleSolutionModal.tsx +0 -23
  551. package/src/features/exampleSolution/assets/grid.webp +0 -0
  552. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -83
  553. package/src/features/exampleSolution/components/LavaIcon.tsx +0 -35
  554. package/src/features/exampleSolution/components/MessageBlock.tsx +0 -67
  555. package/src/features/exampleSolution/components/QuestionSection.tsx +0 -60
  556. package/src/features/exampleSolution/components/SolutionSection.tsx +0 -112
  557. package/src/features/exampleSolution/constants.ts +0 -5
  558. package/src/features/exampleSolution/hooks/useExampleSolution.ts +0 -66
  559. package/src/features/exampleSolution/index.ts +0 -3
  560. package/src/features/exampleSolution/model/ExampleSolution.model.ts +0 -15
  561. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +0 -33
  562. package/src/features/exampleSolution/model/ExampleSolutionCache.ts +0 -20
  563. package/src/features/exampleSolution/types.ts +0 -27
  564. package/src/features/gifCelebrations/GifCelebrations.tsx +0 -75
  565. package/src/features/gifCelebrations/assets/confetti.webp +0 -0
  566. package/src/features/gifCelebrations/assets/gifFallback.gif +0 -0
  567. package/src/features/gifCelebrations/components/Backdrop.tsx +0 -41
  568. package/src/features/gifCelebrations/components/ContentContainer.tsx +0 -44
  569. package/src/features/gifCelebrations/components/Gif.tsx +0 -88
  570. package/src/features/gifCelebrations/components/Progress.tsx +0 -106
  571. package/src/features/gifCelebrations/constants.ts +0 -32
  572. package/src/features/gifCelebrations/helpers.ts +0 -144
  573. package/src/features/gifCelebrations/index.ts +0 -2
  574. package/src/features/gifCelebrations/model/GifCelebrations.model.ts +0 -167
  575. package/src/features/gifCelebrations/model/GifCelebrationsApi.ts +0 -26
  576. package/src/features/gifCelebrations/model/GifCelebrationsCache.ts +0 -41
  577. package/src/features/gifCelebrations/types/model.types.ts +0 -53
  578. package/src/lib/effector/ControlledSample.ts +0 -40
  579. package/src/react-app-env.d.ts +0 -6
  580. package/src/shared/icons/ExcitedLavaIcon.tsx +0 -541
  581. package/src/shared/icons/LavaIconInGlasses.tsx +0 -489
  582. package/src/shared/icons/index.ts +0 -18
  583. package/src/shared/translation/localization/ca.json +0 -33
  584. package/src/shared/translation/localization/sct.json +0 -33
  585. package/src/types/common.types.ts +0 -4
@@ -1,66 +1,33 @@
1
- import React from 'react'
2
- import { Platform, StyleSheet, Text, View } from 'react-native'
3
-
4
1
  import { ConversationMessage } from '../../types/units.types'
5
2
  import { T2SState } from '../../types/t2s.types'
6
- import { ColorScheme } from '../../types/style.types'
7
-
3
+ import { Platform, StyleSheet, Text, View } from 'react-native'
8
4
  import { MessageButtonsBlock } from './MessageButtonsBlock'
9
5
  import { getSpacerSize } from './helpers'
10
- import { MessageVariant } from '../../types/model.types'
6
+ import React from 'react'
11
7
 
12
8
  type MessageContentProps = {
13
9
  text: string
14
10
  message: ConversationMessage
15
11
  t2sState: T2SState
16
- variant: MessageVariant
17
- colorScheme?: ColorScheme
18
- withErrorSpotting?: boolean
19
12
  }
20
13
 
21
- const MessageContentWeb = ({
22
- message,
23
- text,
24
- t2sState,
25
- variant,
26
- colorScheme = ColorScheme.Blue,
27
- withErrorSpotting,
28
- }: MessageContentProps) => {
14
+ const MessageContentWeb = ({ message, text, t2sState }: MessageContentProps) => {
29
15
  return (
30
16
  <Text style={styles.messageText}>
31
17
  {text}
32
- <MessageButtonsBlock
33
- message={message}
34
- t2sState={t2sState}
35
- variant={variant}
36
- colorScheme={colorScheme}
37
- withErrorSpotting={withErrorSpotting}
38
- />
18
+ <MessageButtonsBlock message={message} t2sState={t2sState} />
39
19
  </Text>
40
20
  )
41
21
  }
42
22
 
43
- const MessageContentMobile = ({
44
- message,
45
- text,
46
- t2sState,
47
- variant,
48
- colorScheme = ColorScheme.Blue,
49
- withErrorSpotting,
50
- }: MessageContentProps) => {
23
+ const MessageContentMobile = ({ message, text, t2sState }: MessageContentProps) => {
51
24
  return (
52
25
  <>
53
26
  <Text style={[styles.messageText, styles.mobileMessageText]}>
54
27
  {text}
55
28
  <View style={{ width: getSpacerSize(message, t2sState) }} />
56
29
  </Text>
57
- <MessageButtonsBlock
58
- message={message}
59
- t2sState={t2sState}
60
- variant={variant}
61
- colorScheme={colorScheme}
62
- withErrorSpotting={withErrorSpotting}
63
- />
30
+ <MessageButtonsBlock message={message} t2sState={t2sState} />
64
31
  </>
65
32
  )
66
33
  }
@@ -1,23 +1,15 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
-
5
3
  import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
6
4
  import { ThreeDotsLoader } from '../ThreeDotsLoader/ThreeDotsLoader'
7
- import { CONTROLS_COLORS_MAP } from '../../constants'
8
- import { ColorScheme } from '../../types/style.types'
9
-
10
- type MessageLoaderProps = {
11
- colorScheme?: ColorScheme
12
- }
13
5
 
14
- export const MessageLoader = ({ colorScheme = ColorScheme.Blue }: MessageLoaderProps) => (
6
+ export const MessageLoader = () => (
15
7
  <View style={styles.container}>
16
8
  <View style={styles.icon}>
17
9
  <ChatbotIcon width={60} height={80} />
18
10
  </View>
19
11
  <View style={styles.loader}>
20
- <ThreeDotsLoader backgroundColor={CONTROLS_COLORS_MAP[colorScheme].background} />
12
+ <ThreeDotsLoader />
21
13
  </View>
22
14
  </View>
23
15
  )
@@ -46,6 +38,6 @@ const styles = StyleSheet.create({
46
38
  elevation: 3,
47
39
  borderRadius: 8,
48
40
  borderBottomLeftRadius: 0,
49
- backgroundColor: COLORS.NEUTRAL_3,
41
+ backgroundColor: '#F2F2F4',
50
42
  },
51
43
  })
@@ -1,55 +1,41 @@
1
1
  import React from 'react'
2
2
  import { ActivityIndicator } from 'react-native'
3
- import { Button, COLORS } from '@magmamath/react-native-ui'
4
-
5
3
  import { SpeakerIcon } from '../../../../shared/icons/SpeakerIcon'
6
4
  import { PlayIcon } from '../../../../shared/icons/PlayIcon'
7
5
  import { PauseIcon } from '../../../../shared/icons/PauseIcon'
8
6
  import { AudioStatus, T2SState } from '../../types/t2s.types'
9
7
  import { useChatModel } from '../../context/ChatBotModelContext'
10
8
  import { ConversationMessage } from '../../types/units.types'
11
- import { ColorScheme } from '../../types/style.types'
12
- import { MessageVariant } from '../../types/model.types'
13
- import { CONTROLS_COLORS_MAP, MESSAGE_COLORS_MAP } from '../../constants'
9
+ import { Button, COLORS } from '@magmamath/react-native-ui'
14
10
 
15
11
  type TextToSpeechIconProps = {
16
12
  status: AudioStatus
17
13
  isLoading: boolean
18
14
  isActive: boolean
19
- colorScheme?: ColorScheme
20
15
  }
21
16
 
22
- const TextToSpeechIcon = ({
23
- status,
24
- isActive,
25
- isLoading,
26
- colorScheme = ColorScheme.Blue,
27
- }: TextToSpeechIconProps) => {
17
+ const TextToSpeechIcon = ({ status, isActive, isLoading }: TextToSpeechIconProps) => {
28
18
  if (isLoading && isActive) {
29
- return <ActivityIndicator color={CONTROLS_COLORS_MAP[colorScheme].background} />
19
+ return <ActivityIndicator />
30
20
  }
31
21
 
32
22
  if (!isActive) {
33
- return <SpeakerIcon />
23
+ return <SpeakerIcon color={isActive ? COLORS.PRIMARY_BLUE : undefined} />
34
24
  }
35
25
 
36
26
  if (status === 'playing') return <PauseIcon color={COLORS.NEUTRAL_1} />
37
27
  if (status === 'paused') return <PlayIcon color={COLORS.NEUTRAL_1} />
38
- return <SpeakerIcon />
28
+ return <SpeakerIcon color={isActive ? COLORS.PRIMARY_BLUE : undefined} />
39
29
  }
40
30
 
41
31
  type MessageTextToSpeechProps = {
42
32
  state: T2SState
43
33
  message: ConversationMessage
44
- variant: MessageVariant
45
- colorScheme?: ColorScheme
46
34
  }
47
35
 
48
36
  export const MessageTextToSpeech = ({
49
37
  state: { status, disabled, isActive, isLoading },
50
38
  message,
51
- variant,
52
- colorScheme = ColorScheme.Blue,
53
39
  }: MessageTextToSpeechProps) => {
54
40
  const model = useChatModel()
55
41
 
@@ -65,17 +51,10 @@ export const MessageTextToSpeech = ({
65
51
  disabled={disabled}
66
52
  isActive={isActive}
67
53
  variant={'secondary'}
68
- colorScheme={MESSAGE_COLORS_MAP[colorScheme][variant].icon}
54
+ colorScheme={'blue'}
69
55
  size={'small'}
70
56
  onPress={play}
71
- icon={
72
- <TextToSpeechIcon
73
- isActive={isActive}
74
- isLoading={isLoading}
75
- status={status}
76
- colorScheme={colorScheme}
77
- />
78
- }
57
+ icon={<TextToSpeechIcon isActive={isActive} isLoading={isLoading} status={status} />}
79
58
  />
80
59
  )
81
60
  }
@@ -1,39 +1,20 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
-
4
3
  import { VariantProps } from './ChatMessage'
5
4
  import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
6
- import { ColorScheme } from '../../types/style.types'
7
5
  import { MessageContent } from './MessageContent'
8
- import { MessageVariant } from '../../types/model.types'
9
6
 
10
- export const ReceivedMessage = ({
11
- message,
12
- isTranslated,
13
- t2sState,
14
- withIcon,
15
- colorScheme = ColorScheme.Blue,
16
- withErrorSpotting,
17
- }: VariantProps) => {
7
+ export const ReceivedMessage = ({ message, isTranslated, t2sState }: VariantProps) => {
18
8
  const text = isTranslated ? message.translatedMessage : message.message
19
9
 
20
10
  return (
21
11
  <View style={styles.container}>
22
- {withIcon && (
23
- <View style={styles.icon}>
24
- <ChatbotIcon width={60} height={80} />
25
- </View>
26
- )}
12
+ <View style={styles.icon}>
13
+ <ChatbotIcon width={60} height={80} />
14
+ </View>
27
15
 
28
16
  <View style={styles.message}>
29
- <MessageContent
30
- message={message}
31
- variant={MessageVariant.RECEIVED}
32
- t2sState={t2sState}
33
- text={text ?? ''}
34
- colorScheme={colorScheme}
35
- withErrorSpotting={withErrorSpotting}
36
- />
17
+ <MessageContent message={message} t2sState={t2sState} text={text ?? ''} />
37
18
  </View>
38
19
  </View>
39
20
  )
@@ -46,7 +27,6 @@ const styles = StyleSheet.create({
46
27
  maxWidth: 372,
47
28
  width: 372,
48
29
  alignItems: 'flex-end',
49
- justifyContent: 'flex-end',
50
30
  },
51
31
  icon: {
52
32
  alignSelf: 'flex-end',
@@ -1,41 +1,30 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, Text, View } from 'react-native'
3
- import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
4
-
5
3
  import { VariantProps } from './ChatMessage'
6
- import { MESSAGE_COLORS_MAP } from '../../constants'
7
- import { ColorScheme } from '../../types/style.types'
8
- import { MessageVariant } from '../../types/model.types'
9
4
 
10
- export const SentMessage = React.memo(
11
- ({ message, isTranslated, colorScheme = ColorScheme.Blue }: VariantProps) => {
12
- const text = isTranslated ? message.translatedMessage : message.message
5
+ export const SentMessage = React.memo(({ message, isTranslated }: VariantProps) => {
6
+ const text = isTranslated ? message.translatedMessage : message.message
13
7
 
14
- return (
15
- <View
16
- style={[
17
- styles.container,
18
- { backgroundColor: MESSAGE_COLORS_MAP[colorScheme][MessageVariant.SENT].background },
19
- ]}
20
- >
21
- <Text style={styles.text}>{text}</Text>
22
- </View>
23
- )
24
- },
25
- )
8
+ return (
9
+ <View style={styles.container}>
10
+ <Text style={styles.text}>{text}</Text>
11
+ </View>
12
+ )
13
+ })
26
14
 
27
15
  const styles = StyleSheet.create({
28
16
  container: {
29
17
  alignSelf: 'flex-end',
30
18
  maxWidth: 305,
31
- padding: SPACING[200],
32
- borderRadius: BORDER_RADIUS[200],
19
+ padding: 8,
20
+ borderRadius: 8,
33
21
  borderBottomRightRadius: 0,
22
+ backgroundColor: '#55ABE0',
34
23
  },
35
24
  text: {
36
25
  fontSize: 20,
37
26
  fontWeight: 400,
38
- fontFamily: FONT_FAMILY.buenosAires,
39
- color: COLORS.NEUTRAL_1,
27
+ fontFamily: 'Buenos Aires',
28
+ color: '#FFF',
40
29
  },
41
30
  })
@@ -1,19 +1,16 @@
1
1
  import React, { useRef } from 'react'
2
2
  import { Platform, ScrollView, StyleSheet, useWindowDimensions, View } from 'react-native'
3
3
  import { useStoreMap, useUnit } from 'effector-react'
4
-
5
4
  import { ChatbotModel } from '../../model/ChatBotModel'
6
5
  import { ChatMessage } from '../ChatMessage/ChatMessage'
7
6
  import { MessageLoader } from '../ChatMessage/MessageLoader'
8
7
  import { Alternatives } from '../Alternatives/Alternatives'
9
8
  import { MessageVariant } from '../../types/model.types'
10
- import { ColorScheme } from '../../types/style.types'
11
9
 
12
10
  type ChatbotMessagesProps = {
13
11
  model: ChatbotModel
14
12
  isHintFeedback: boolean
15
13
  isTextToSpeechEnabled: boolean
16
- colorScheme?: ColorScheme
17
14
  }
18
15
 
19
16
  const TOOLBAR_HEIGHT = 140
@@ -26,7 +23,6 @@ export const ChatbotMessages = ({
26
23
  model,
27
24
  isHintFeedback,
28
25
  isTextToSpeechEnabled,
29
- colorScheme = ColorScheme.Blue,
30
26
  }: ChatbotMessagesProps) => {
31
27
  const dimensions = useWindowDimensions()
32
28
  const ref = useRef<ScrollView>(null)
@@ -38,13 +34,11 @@ export const ChatbotMessages = ({
38
34
  const currentPlayingId = useUnit(model.t2s.$currentPlayingId)
39
35
  const isTranslated = useUnit(model.translation.$isTranslated)
40
36
  const audioStatus = useUnit(model.t2s.$status)
41
- const errorSpottingEnabled = useUnit(model.errorSpotting.$isEnabled)
42
-
43
- const messages = useStoreMap(model.$currentChatData, ({ messages }) => messages)
44
- const lastMessageId = messages.at(-1)?.id
45
37
 
46
38
  const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET
47
39
 
40
+ const messages = useStoreMap(model.$currentChatData, ({ messages }) => messages)
41
+
48
42
  const askChatForHelp = (message: string, translatedMessage?: string) => {
49
43
  void model.sendHelpRequestFx({ message, translatedMessage })
50
44
  }
@@ -69,11 +63,8 @@ export const ChatbotMessages = ({
69
63
  <ChatMessage
70
64
  key={message.id}
71
65
  isTranslated={isTranslated}
72
- withIcon={!message.isOwnMessage && message.id === lastMessageId}
73
66
  message={message}
74
67
  variant={message.isOwnMessage ? MessageVariant.SENT : MessageVariant.RECEIVED}
75
- colorScheme={colorScheme}
76
- withErrorSpotting={errorSpottingEnabled && !message.isOwnMessage}
77
68
  t2sState={{
78
69
  isEnabled: isTextToSpeechEnabled && !message.isOwnMessage,
79
70
  isActive: message.id === currentPlayingId,
@@ -84,7 +75,7 @@ export const ChatbotMessages = ({
84
75
  />
85
76
  ))}
86
77
 
87
- {isHelpRequestPending && <MessageLoader colorScheme={colorScheme} />}
78
+ {isHelpRequestPending && <MessageLoader />}
88
79
  </View>
89
80
  )}
90
81
 
@@ -93,7 +84,6 @@ export const ChatbotMessages = ({
93
84
  onPressAlternative={askChatForHelp}
94
85
  hasMessages={messages.length > 1}
95
86
  isHintFeedback={isHintFeedback}
96
- colorScheme={colorScheme}
97
87
  />
98
88
  )}
99
89
  </ScrollView>
@@ -1,12 +1,11 @@
1
- import React, { ComponentType, PropsWithChildren } from 'react'
1
+ import { ComponentType, PropsWithChildren } from 'react'
2
2
  import { useStoreMap, useUnit } from 'effector-react'
3
-
4
3
  import { ChatbotModel } from '../model/ChatBotModel'
5
4
  import { ChatbotMessages } from './ChatMessages/ChatbotMessages'
6
5
  import { ChatControls } from './ChatControls/ChatControls'
7
6
  import { AUDIO_CONFIG, DEFAULT_VOICE } from '../constants'
7
+ import React from 'react'
8
8
  import { ChatBotModelContext } from '../context/ChatBotModelContext'
9
- import { ColorScheme } from '../types/style.types'
10
9
 
11
10
  type ChatbotProps = {
12
11
  model: ChatbotModel
@@ -18,7 +17,6 @@ type ChatbotProps = {
18
17
  }
19
18
  ButtonWrapper: ComponentType<PropsWithChildren>
20
19
  iconSize?: { width: number; height: number } // TODO: use number instead
21
- colorScheme?: ColorScheme
22
20
  }
23
21
 
24
22
  export const Chatbot = ({
@@ -28,7 +26,6 @@ export const Chatbot = ({
28
26
  textToSpeechConfig,
29
27
  ButtonWrapper,
30
28
  iconSize,
31
- colorScheme = ColorScheme.Blue,
32
29
  }: ChatbotProps) => {
33
30
  const alternatives = useUnit(model.$alternatives)
34
31
  const isAvailable = useStoreMap(model.$currentChatData, ({ isAvailable }) => isAvailable)
@@ -45,7 +42,6 @@ export const Chatbot = ({
45
42
  <ChatBotModelContext.Provider value={model}>
46
43
  <ChatbotMessages
47
44
  model={model}
48
- colorScheme={colorScheme}
49
45
  isHintFeedback={isHintFeedback}
50
46
  isTextToSpeechEnabled={isTextToSpeechEnabled}
51
47
  />
@@ -1,8 +1,7 @@
1
- import React, { useEffect, useMemo } from 'react'
1
+ import React from 'react'
2
+ import { useEffect, useMemo } from 'react'
2
3
  import { View, Animated, StyleSheet, Platform } from 'react-native'
3
4
 
4
- import { COLORS } from '@magmamath/react-native-ui'
5
-
6
5
  type ChatLoaderProps = {
7
6
  dotsCount?: number
8
7
  animationDuration?: number
@@ -12,12 +11,12 @@ type ChatLoaderProps = {
12
11
  export const ThreeDotsLoader = ({
13
12
  dotsCount = 3,
14
13
  animationDuration = 250,
15
- backgroundColor = COLORS.PRIMARY_BLUE,
14
+ backgroundColor = '#55ABE0',
16
15
  }: ChatLoaderProps) => {
17
16
  const isWeb = Platform.OS === 'web'
18
17
  const animations = useMemo(
19
18
  () => [...Array(dotsCount)].map(() => new Animated.Value(0)),
20
- [dotsCount],
19
+ [dotsCount]
21
20
  )
22
21
 
23
22
  useEffect(() => {
@@ -34,7 +33,7 @@ export const ThreeDotsLoader = ({
34
33
  duration: animationDuration,
35
34
  useNativeDriver: !isWeb,
36
35
  }),
37
- ]),
36
+ ])
38
37
  )
39
38
 
40
39
  Animated.loop(Animated.parallel(animationsArray)).start()
@@ -51,7 +50,11 @@ export const ThreeDotsLoader = ({
51
50
  return (
52
51
  <Animated.View
53
52
  key={index}
54
- style={[styles.dot, { transform: [{ translateY }] }, { backgroundColor }]}
53
+ style={[
54
+ styles.dot,
55
+ { transform: [{ translateY }] },
56
+ { backgroundColor },
57
+ ]}
55
58
  />
56
59
  )
57
60
  })}
@@ -1,7 +1,4 @@
1
- import { ButtonColor, COLORS } from '@magmamath/react-native-ui'
2
1
  import { Platform } from 'react-native'
3
- import { MessageVariant } from './types/model.types'
4
- import { ColorScheme } from './types/style.types'
5
2
 
6
3
  export const AUDIO_CONFIG = {
7
4
  audioEncoding: 'LINEAR16',
@@ -39,37 +36,3 @@ export const KATEX_REPLACEMENTS = {
39
36
  export const KATEX_REPLACEMENTS_REVERSE = {
40
37
  __KATEX_DOLLAR_SYMBOL__: '$',
41
38
  } as const
42
-
43
- export const MESSAGE_COLORS_MAP = {
44
- [ColorScheme.Blue]: {
45
- [MessageVariant.RECEIVED]: {
46
- background: COLORS.NEUTRAL_3,
47
- icon: ButtonColor.BLUE,
48
- },
49
- [MessageVariant.SENT]: {
50
- background: COLORS.PRIMARY_BLUE,
51
- icon: ButtonColor.BLUE,
52
- },
53
- },
54
- [ColorScheme.Yellow]: {
55
- [MessageVariant.RECEIVED]: {
56
- background: COLORS.NEUTRAL_3,
57
- icon: ButtonColor.YELLOW,
58
- },
59
- [MessageVariant.SENT]: {
60
- background: COLORS.PRIMARY_YELLOW,
61
- icon: ButtonColor.YELLOW,
62
- },
63
- },
64
- }
65
-
66
- export const CONTROLS_COLORS_MAP = {
67
- [ColorScheme.Blue]: {
68
- hover: COLORS.PRIMARY_BLUE,
69
- background: COLORS.PRIMARY_BLUE,
70
- },
71
- [ColorScheme.Yellow]: {
72
- hover: COLORS.PRIMARY_YELLOW,
73
- background: COLORS.PRIMARY_YELLOW,
74
- },
75
- }
@@ -1,5 +1,5 @@
1
1
  import { ChatbotAPI } from '../model/ChatbotApi'
2
- import { createEvent, createStore, sample, createEffect, Store, restore } from 'effector'
2
+ import { createEvent, createStore, sample, createEffect, Store } from 'effector'
3
3
  import { ChatItem, ConversationMessage } from '../types/units.types'
4
4
  import { ChatbotContext } from '../types/model.types'
5
5
 
@@ -35,9 +35,7 @@ export class ErrorSpottingModel {
35
35
  public readonly errorSpottingPressed = createEvent<ErrorSpottingPressedProps>()
36
36
  private readonly activeDataChanged = createEvent<ActiveErrorSpottingData | null>()
37
37
  public readonly spottingHidden = createEvent()
38
- public readonly setIsEnabled = createEvent<boolean>()
39
38
 
40
- public readonly $isEnabled = restore(this.setIsEnabled, false)
41
39
  public readonly $validationKey = createStore<string | null>(null)
42
40
  public readonly $activeData = createStore<ActiveErrorSpottingData | null>(null)
43
41
  .on(this.activeDataChanged, (_, payload) => payload)
@@ -149,12 +147,4 @@ export class ErrorSpottingModel {
149
147
  this.activeDataChanged(null)
150
148
  this.abortPendingRequest()
151
149
  }
152
-
153
- public enable() {
154
- this.setIsEnabled(true)
155
- }
156
-
157
- public disable() {
158
- this.setIsEnabled(false)
159
- }
160
150
  }
@@ -10,4 +10,3 @@ export type { PostMessageResponse } from './types/api.types'
10
10
  export { DefaultMessagesCreator } from './model/DefaultMessageCreator'
11
11
  export type { ChatAnswer } from './types/units.types'
12
12
  export type { ConversationMessage } from './types/units.types'
13
- export { ColorScheme } from './types/style.types'