@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
package/README.md CHANGED
@@ -10,28 +10,19 @@ npm install @magmamath/students-features
10
10
 
11
11
  ## Usage
12
12
 
13
+
13
14
  ```js
14
- import { multiply } from '@magmamath/students-features'
15
+ import { multiply } from '@magmamath/students-features';
15
16
 
16
17
  // ...
17
18
 
18
- const result = await multiply(3, 7)
19
+ const result = await multiply(3, 7);
19
20
  ```
20
21
 
21
- ## Publishing to npm
22
-
23
- 1. For release candidates, use:
24
22
 
25
- ```bash
26
- npm publish --tag rc
27
- ```
23
+ ## Contributing
28
24
 
29
- This will not override the latest tag (used by default installs).
30
-
31
- 2. For stable production releases, use:
32
- ```bash
33
- npm publish
34
- ```
25
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
35
26
 
36
27
  ## License
37
28
 
@@ -9,15 +9,12 @@ var _reactNative = require("react-native");
9
9
  var _effectorReact = require("effector-react");
10
10
  var _HelpRequestOption = require("./HelpRequestOption.js");
11
11
  var _ChatBotModelContext = require("../../context/ChatBotModelContext.js");
12
- var _styleTypes = require("../../types/style.types.js");
13
- var _constants = require("../../constants.js");
14
12
  var _jsxRuntime = require("react/jsx-runtime");
15
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
14
  const Alternatives = ({
17
15
  onPressAlternative,
18
16
  hasMessages,
19
- isHintFeedback,
20
- colorScheme = _styleTypes.ColorScheme.Blue
17
+ isHintFeedback
21
18
  }) => {
22
19
  const model = (0, _ChatBotModelContext.useChatModel)();
23
20
  const isTranslated = (0, _effectorReact.useUnit)(model.translation.$isTranslated);
@@ -42,8 +39,7 @@ const Alternatives = ({
42
39
  }, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_HelpRequestOption.HelpRequestOption, {
43
40
  onPress: () => onPressAlternative(text, translatedText),
44
41
  message: isTranslated ? translatedText : text,
45
- disabled: isTranslationPending,
46
- hoverColor: _constants.CONTROLS_COLORS_MAP[colorScheme].hover
42
+ disabled: isTranslationPending
47
43
  }, index))
48
44
  });
49
45
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_HelpRequestOption","_ChatBotModelContext","_styleTypes","_constants","_jsxRuntime","e","__esModule","default","Alternatives","onPressAlternative","hasMessages","isHintFeedback","colorScheme","ColorScheme","Blue","model","useChatModel","isTranslated","useUnit","translation","$isTranslated","alternatives","$alternatives","isTranslationPending","translateAllMessagesFx","pending","lastMessageOptions","useStoreMap","$currentChatData","messages","lastMessage","at","options","hints","jsx","View","style","styles","container","children","map","text","translatedText","index","HelpRequestOption","onPress","message","disabled","hoverColor","CONTROLS_COLORS_MAP","hover","exports","StyleSheet","create","flex","width","marginVertical","gap"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/Alternatives.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAAqD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAS9C,MAAMG,YAAY,GAAGA,CAAC;EAC3BC,kBAAkB;EAClBC,WA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AIyB,cAAc,GAAcD,IAAK;MAC1DM,QAAQ,EAAExB,oBAAqB;MAC/ByB,UAAU,EAAEC,8BAAmB,CAACrC,WAAW,CAAC,CAACsC;IAAM,GAJ9CP,KAKN,CACF;EAAC,CACE,CAAC;AAEX,CAAC;AAAAQ,OAAA,CAAA3C,YAAA,GAAAA,YAAA;AAED,MAAM6B,MAAM,GAAGe,uBAAU,CAACC,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,GAAG;IACVC,cAAc,EAAE,CAAC;IACjBC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_HelpRequestOption","_ChatBotModelContext","_jsxRuntime","e","__esModule","default","Alternatives","onPressAlternative","hasMessages","isHintFeedback","model","useChatModel","isTranslated","useUnit","translation","$isTranslated","alternatives","$alternatives","isTranslationPending","translateAllMessagesFx","pending","lastMessageOptions","useStoreMap","$currentChatData","messages","lastMessage","at","options","hints","jsx","View","style","styles","container","children","map","text","translatedText","index","HelpRequestOption","onPress","message","disabled","exports","StyleSheet","create","flex","width","marginVertical","gap"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/Alternatives.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAAgE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQzD,MAAMG,YAAY,GAAGA,CAAC;EAC3BC,kBAAkB;EAClBC,WAAW;EACXC;AACiB,CAAC,KAAK;EACvB,M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,CACF;EAAC,CACE,CAAC;AAEX,CAAC;AAAAK,OAAA,CAAArC,YAAA,GAAAA,YAAA;AAED,MAAM0B,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,GAAG;IACVC,cAAc,EAAE,CAAC;IACjBC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
@@ -6,57 +6,53 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.HelpRequestOption = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
9
  var _ArrowRightIcon = require("../../../../shared/icons/ArrowRightIcon.js");
11
10
  var _jsxRuntime = require("react/jsx-runtime");
12
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ const transitionColor = (isHovered, value) => _reactNative.Animated.timing(value, {
14
+ toValue: isHovered ? 1 : 0,
15
+ duration: 200,
16
+ useNativeDriver: _reactNative.Platform.OS !== 'web'
17
+ }).start();
14
18
  const HelpRequestOption = ({
15
19
  onPress,
16
20
  message,
17
- disabled = false,
18
- hoverColor = _reactNativeUi.COLORS.PRIMARY_BLUE
21
+ disabled = false
19
22
  }) => {
20
23
  const [isHovered, setIsHovered] = (0, _react.useState)(false);
21
- const hoverAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
22
- const backgroundColor = hoverAnim.interpolate({
24
+ const backgroundColor = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
25
+ const backgroundInterpolation = backgroundColor.interpolate({
23
26
  inputRange: [0, 1],
24
- outputRange: [_reactNativeUi.COLORS.NEUTRAL_1, hoverColor]
27
+ outputRange: ['#FFFFFF', '#55ABE0']
25
28
  });
26
- const textColor = hoverAnim.interpolate({
29
+ const textColor = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
30
+ const textInterpolation = textColor.interpolate({
27
31
  inputRange: [0, 1],
28
- outputRange: [_reactNativeUi.COLORS.NEUTRAL_10, _reactNativeUi.COLORS.NEUTRAL_1]
32
+ outputRange: ['#33334D', '#FFFFFF']
29
33
  });
30
34
  (0, _react.useEffect)(() => {
31
- _reactNative.Animated.timing(hoverAnim, {
32
- toValue: isHovered ? 1 : 0,
33
- duration: 200,
34
- useNativeDriver: false
35
- }).start();
36
- }, [isHovered, hoverAnim]);
35
+ transitionColor(isHovered, backgroundColor);
36
+ transitionColor(isHovered, textColor);
37
+ }, [isHovered]);
37
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
38
39
  onHoverIn: () => setIsHovered(true),
39
40
  onHoverOut: () => setIsHovered(false),
40
41
  onPress: onPress,
41
42
  style: styles.button,
42
43
  disabled: disabled,
43
- accessibilityState: {
44
- disabled
45
- },
46
- accessibilityRole: "button",
47
44
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
48
45
  style: [styles.textWrapper, {
49
- backgroundColor,
50
- borderColor: backgroundColor
46
+ backgroundColor: backgroundInterpolation
51
47
  }],
52
48
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.Text, {
53
49
  numberOfLines: 1,
54
50
  style: [styles.text, {
55
- color: textColor
51
+ color: textInterpolation
56
52
  }],
57
53
  children: message
58
54
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ArrowRightIcon.ArrowRightIcon, {
59
- color: isHovered ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_10
55
+ color: isHovered ? '#FFFFFF' : '#33334D'
60
56
  })]
61
57
  })
62
58
  });
@@ -72,8 +68,8 @@ const styles = _reactNative.StyleSheet.create({
72
68
  text: {
73
69
  fontSize: 20,
74
70
  fontWeight: 400,
75
- fontFamily: _reactNativeUi.FONT_FAMILY.buenosAires,
76
- color: _reactNativeUi.COLORS.NEUTRAL_10
71
+ fontFamily: 'Buenos Aires',
72
+ color: '#33334D'
77
73
  },
78
74
  textWrapper: {
79
75
  flex: 1,
@@ -81,10 +77,11 @@ const styles = _reactNative.StyleSheet.create({
81
77
  alignItems: 'center',
82
78
  justifyContent: 'space-between',
83
79
  maxWidth: 305,
84
- paddingHorizontal: _reactNativeUi.SPACING[400],
85
- paddingVertical: _reactNativeUi.SPACING[200],
80
+ paddingHorizontal: 16,
81
+ paddingVertical: 8,
86
82
  borderWidth: 1,
87
83
  borderRadius: 48,
84
+ borderColor: '#55ABE0',
88
85
  elevation: 3,
89
86
  shadowColor: '#333',
90
87
  shadowOffset: {
@@ -93,7 +90,7 @@ const styles = _reactNative.StyleSheet.create({
93
90
  },
94
91
  shadowOpacity: 0.25,
95
92
  shadowRadius: 3,
96
- backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1
93
+ backgroundColor: '#FFFFFF'
97
94
  }
98
95
  });
99
96
  //# sourceMappingURL=HelpRequestOption.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_ArrowRightIcon","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HelpRequestOption","onPress","message","disabled","hoverColor","COLORS","PRIMARY_BLUE","isHovered","setIsHovered","useState","hoverAnim","useRef","Animated","Value","current","backgroundColor","interpolate","inputRange","outputRange","NEUTRAL_1","textColor","NEUTRAL_10","useEffect","timing","toValue","duration","useNativeDriver","start","jsx","Pressable","onHoverIn","onHoverOut","style","styles","button","accessibilityState","accessibilityRole","children","jsxs","View","textWrapper","borderColor","Text","numberOfLines","text","color","ArrowRightIcon","exports","StyleSheet","create","flexDirection","alignItems","justifyContent","width","fontSize","fontWeight","fontFamily","FONT_FAMILY","buenosAires","flex","maxWidth","paddingHorizontal","SPACING","paddingVertical","borderWidth","borderRadius","elevation","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAAwE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA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B,OAAA,CAAA/C,iBAAA,GAAAA,iBAAA;AAED,MAAMiC,MAAM,GAAGe,uBAAU,CAACC,MAAM,CAAC;EAC/Bf,MAAM,EAAE;IACNgB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,KAAK,EAAE;EACT,CAAC;EACDT,IAAI,EAAE;IACJU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAEC,0BAAW,CAACC,WAAW;IACnCb,KAAK,EAAExC,qBAAM,CAACgB;EAChB,CAAC;EACDmB,WAAW,EAAE;IACXmB,IAAI,EAAE,CAAC;IACPT,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BQ,QAAQ,EAAE,GAAG;IACbC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,eAAe,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC7BE,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEf,KAAK,EAAE,CAAC;MAAEgB,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfxD,eAAe,EAAEV,qBAAM,CAACc;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_ArrowRightIcon","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","transitionColor","isHovered","value","Animated","timing","toValue","duration","useNativeDriver","Platform","OS","start","HelpRequestOption","onPress","message","disabled","setIsHovered","useState","backgroundColor","useRef","Value","current","backgroundInterpolation","interpolate","inputRange","outputRange","textColor","textInterpolation","useEffect","jsx","Pressable","onHoverIn","onHoverOut","style","styles","button","children","jsxs","View","textWrapper","Text","numberOfLines","text","color","ArrowRightIcon","exports","StyleSheet","create","flexDirection","alignItems","justifyContent","width","fontSize","fontWeight","fontFamily","flex","maxWidth","paddingHorizontal","paddingVertical","borderWidth","borderRadius","borderColor","elevation","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/HelpRequestOption.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAAwE,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CA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a,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,KAAK,EAAE;EACT,CAAC;EACDT,IAAI,EAAE;IACJU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BX,KAAK,EAAE;EACT,CAAC;EACDJ,WAAW,EAAE;IACXgB,IAAI,EAAE,CAAC;IACPP,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BM,QAAQ,EAAE,GAAG;IACbC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,SAAS;IACtBC,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEc,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfjD,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_ReceivedMessage","_SentMessage","_modelTypes","_jsxRuntime","e","__esModule","default","variantsMap","MessageVariant","SENT","SentMessage","RECEIVED","ReceivedMessage","ChatMessage","variant","props","Component","jsx","exports"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAAwD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAgBxD,MAAMG,WAAgE,GAAG;EACvE,CAACC,0BAAc,CAACC,IAAI,GAAGC,wBAAW;EAClC,CAACF,0BAAc,CAACG,QAAQ,GAAGC;AAC7B,CAAC;AAEM,MAAMC,WAAW,GAAGA,CAAC;EAAEC,OAAO;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACtE,MAAMC,SAAS,GAAGT,WAAW,CAACO,OAAO,CAAC;EACtC,oBAAO,IAAAX,WAAA,CAAAc,GAAA,EAACD,SAAS;IAAA,GAAKD;EAAK,CAAG,CAAC;AACjC,CAAC;AAAAG,OAAA,CAAAL,WAAA,GAAAA,WAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_ReceivedMessage","_SentMessage","_modelTypes","_jsxRuntime","e","__esModule","default","variantsMap","MessageVariant","SENT","SentMessage","RECEIVED","ReceivedMessage","ChatMessage","variant","props","Component","jsx","exports"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ChatMessage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AAAwD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAYxD,MAAMG,WAAgE,GAAG;EACvE,CAACC,0BAAc,CAACC,IAAI,GAAGC,wBAAW;EAClC,CAACF,0BAAc,CAACG,QAAQ,GAAGC;AAC7B,CAAC;AAEM,MAAMC,WAAW,GAAGA,CAAC;EAAEC,OAAO;EAAE,GAAGC;AAAwB,CAAC,KAAK;EACtE,MAAMC,SAAS,GAAGT,WAAW,CAACO,OAAO,CAAC;EACtC,oBAAO,IAAAX,WAAA,CAAAc,GAAA,EAACD,SAAS;IAAA,GAAKD;EAAK,CAAG,CAAC;AACjC,CAAC;AAAAG,OAAA,CAAAL,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -6,28 +6,23 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.MessageButtonsBlock = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
9
  var _ErrorSpottingButton = require("../../errorSpotting/ErrorSpottingButton.js");
11
10
  var _MessageTextToSpeech = require("./MessageTextToSpeech.js");
11
+ var _reactNativeUi = require("@magmamath/react-native-ui");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
14
  const MessageButtonsBlock = ({
15
15
  t2sState,
16
- message,
17
- variant,
18
- colorScheme,
19
- withErrorSpotting
16
+ message
20
17
  }) => {
21
18
  if (!t2sState.isEnabled && !message.isInitial) return null;
22
19
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
23
20
  style: styles.container,
24
- children: [withErrorSpotting && !!message.isInitial && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorSpottingButton.ErrorSpottingButton, {
21
+ children: [!!message.isInitial && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorSpottingButton.ErrorSpottingButton, {
25
22
  contextMessage: message
26
23
  }), t2sState.isEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageTextToSpeech.MessageTextToSpeech, {
27
24
  state: t2sState,
28
- message: message,
29
- variant: variant,
30
- colorScheme: colorScheme
25
+ message: message
31
26
  })]
32
27
  });
33
28
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_ErrorSpottingButton","_MessageTextToSpeech","_jsxRuntime","e","__esModule","default","MessageButtonsBlock","t2sState","message","variant","colorScheme","withErrorSpotting","isEnabled","isInitial","jsxs","View","style","styles","container","children","jsx","ErrorSpottingButton","contextMessage","MessageTextToSpeech","state","exports","StyleSheet","create","flexDirection","gap","marginLeft","IS_WEB","float","position","bottom","right"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAA2D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAepD,MAAMG,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,oBACE,IAAAX,WAAA,CAAAY,IAAA,EAAChB,YAAA,CAAAiB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,GAC3BR,iBAAiB,IAAI,CAAC,CAACH,OAAO,CAACK,SAAS,iBAAI,IAAAX,WAAA,CAAAkB,GAAA,EAACpB,oBAAA,CAAAqB,mBAAmB;MAACC,cAAc,EAAEd;IAAQ,CAAE,CAAC,EAC5FD,QAAQ,CAACK,SAAS,iBACjB,IAAAV,WAAA,CAAAkB,GAAA,EAACnB,oBAAA,CAAAsB,mBAAmB;MAClBC,KAAK,EAAEjB,QAAS;MAChBC,OAAO,EAAEA,OAAQ;MACjBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA;IAAY,CAC1B,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAAAe,OAAA,CAAAnB,mBAAA,GAAAA,mBAAA;AAED,MAAMW,MAAM,GAAGS,uBAAU,CAACC,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,CAAC;IACNC,UAAU,EAAE,MAAM;IAClB,IAAIC,qBAAM,GACN;MAAEC,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","_interopRequireDefault","require","_reactNative","_ErrorSpottingButton","_MessageTextToSpeech","_reactNativeUi","_jsxRuntime","e","__esModule","default","MessageButtonsBlock","t2sState","message","isEnabled","isInitial","jsxs","View","style","styles","container","children","jsx","ErrorSpottingButton","contextMessage","MessageTextToSpeech","state","exports","StyleSheet","create","flexDirection","gap","marginLeft","IS_WEB","float","position","bottom","right"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AAEA,IAAAI,cAAA,GAAAJ,OAAA;AAAmD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ5C,MAAMG,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAkC,CAAC,KAAK;EACtF,IAAI,CAACD,QAAQ,CAACE,SAAS,IAAI,CAACD,OAAO,CAACE,SAAS,EAAE,OAAO,IAAI;EAE1D,oBACE,IAAAR,WAAA,CAAAS,IAAA,EAACb,YAAA,CAAAc,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,GAC3B,CAAC,CAACR,OAAO,CAACE,SAAS,iBAAI,IAAAR,WAAA,CAAAe,GAAA,EAAClB,oBAAA,CAAAmB,mBAAmB;MAACC,cAAc,EAAEX;IAAQ,CAAE,CAAC,EACvED,QAAQ,CAACE,SAAS,iBAAI,IAAAP,WAAA,CAAAe,GAAA,EAACjB,oBAAA,CAAAoB,mBAAmB;MAACC,KAAK,EAAEd,QAAS;MAACC,OAAO,EAAEA;IAAQ,CAAE,CAAC;EAAA,CAC7E,CAAC;AAEX,CAAC;AAAAc,OAAA,CAAAhB,mBAAA,GAAAA,mBAAA;AAED,MAAMQ,MAAM,GAAGS,uBAAU,CAACC,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,aAAa,EAAE,KAAK;IACpBC,GAAG,EAAE,CAAC;IACNC,UAAU,EAAE,MAAM;IAClB,IAAIC,qBAAM,GACN;MAAEC,KAAK,EAAE;IAAQ,CAAC,GAClB;MACEC,QAAQ,EAAE,UAAU;MACpBC,MAAM,EAAE,CAAC;MACTC,KAAK,EAAE;IACT,CAAC;EACP;AACF,CAAC,CAAC","ignoreList":[]}
@@ -4,39 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MessageContent = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
7
  var _reactNative = require("react-native");
9
- var _styleTypes = require("../../types/style.types.js");
10
8
  var _MessageButtonsBlock = require("./MessageButtonsBlock.js");
11
9
  var _helpers = require("./helpers.js");
10
+ var _react = _interopRequireDefault(require("react"));
12
11
  var _jsxRuntime = require("react/jsx-runtime");
13
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
13
  const MessageContentWeb = ({
15
14
  message,
16
15
  text,
17
- t2sState,
18
- variant,
19
- colorScheme = _styleTypes.ColorScheme.Blue,
20
- withErrorSpotting
16
+ t2sState
21
17
  }) => {
22
18
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
23
19
  style: styles.messageText,
24
20
  children: [text, /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageButtonsBlock.MessageButtonsBlock, {
25
21
  message: message,
26
- t2sState: t2sState,
27
- variant: variant,
28
- colorScheme: colorScheme,
29
- withErrorSpotting: withErrorSpotting
22
+ t2sState: t2sState
30
23
  })]
31
24
  });
32
25
  };
33
26
  const MessageContentMobile = ({
34
27
  message,
35
28
  text,
36
- t2sState,
37
- variant,
38
- colorScheme = _styleTypes.ColorScheme.Blue,
39
- withErrorSpotting
29
+ t2sState
40
30
  }) => {
41
31
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
42
32
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
@@ -48,10 +38,7 @@ const MessageContentMobile = ({
48
38
  })]
49
39
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageButtonsBlock.MessageButtonsBlock, {
50
40
  message: message,
51
- t2sState: t2sState,
52
- variant: variant,
53
- colorScheme: colorScheme,
54
- withErrorSpotting: withErrorSpotting
41
+ t2sState: t2sState
55
42
  })]
56
43
  });
57
44
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_styleTypes","_MessageButtonsBlock","_helpers","_jsxRuntime","e","__esModule","default","MessageContentWeb","message","text","t2sState","variant","colorScheme","ColorScheme","Blue","withErrorSpotting","jsxs","Text","style","styles","messageText","children","jsx","MessageButtonsBlock","MessageContentMobile","Fragment","mobileMessageText","View","width","getSpacerSize","MessageContent","exports","Platform","select","web","StyleSheet","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,W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AEU,KAAK,EAAE,IAAAC,sBAAa,EAACrB,OAAO,EAAEE,QAAQ;QAAE;MAAE,CAAE,CAAC;IAAA,CACxD,CAAC,eACP,IAAAP,WAAA,CAAAmB,GAAA,EAACrB,oBAAA,CAAAsB,mBAAmB;MAClBf,OAAO,EAAEA,OAAQ;MACjBE,QAAQ,EAAEA,QAAS;MACnBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA,WAAY;MACzBG,iBAAiB,EAAEA;IAAkB,CACtC,CAAC;EAAA,CACF,CAAC;AAEP,CAAC;AAEM,MAAMe,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,qBAAQ,CAACC,MAAM,CAAC;EAC5CC,GAAG,EAAE3B,iBAAiB;EACtBD,OAAO,EAAEkB;AACX,CAAC,CAAC;AAEF,MAAML,MAAM,GAAGgB,uBAAU,CAACC,MAAM,CAAC;EAC/BhB,WAAW,EAAE;IACXiB,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE,SAAS;IAChBb,KAAK,EAAE;EACT,CAAC;EACDF,iBAAiB,EAAE;IACjBgB,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_MessageButtonsBlock","_helpers","_react","_interopRequireDefault","_jsxRuntime","e","__esModule","default","MessageContentWeb","message","text","t2sState","jsxs","Text","style","styles","messageText","children","jsx","MessageButtonsBlock","MessageContentMobile","Fragment","mobileMessageText","View","width","getSpacerSize","MessageContent","exports","Platform","select","web","StyleSheet","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,M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,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,qBAAQ,CAACC,MAAM,CAAC;EAC5CC,GAAG,EAAEtB,iBAAiB;EACtBD,OAAO,EAAEa;AACX,CAAC,CAAC;AAEF,MAAML,MAAM,GAAGgB,uBAAU,CAACC,MAAM,CAAC;EAC/BhB,WAAW,EAAE;IACXiB,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE,SAAS;IAChBb,KAAK,EAAE;EACT,CAAC;EACDF,iBAAiB,EAAE;IACjBgB,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -6,16 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.MessageLoader = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
9
  var _ChatbotIcon = require("../../../../shared/icons/ChatbotIcon.js");
11
10
  var _ThreeDotsLoader = require("../ThreeDotsLoader/ThreeDotsLoader.js");
12
- var _constants = require("../../constants.js");
13
- var _styleTypes = require("../../types/style.types.js");
14
11
  var _jsxRuntime = require("react/jsx-runtime");
15
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- const MessageLoader = ({
17
- colorScheme = _styleTypes.ColorScheme.Blue
18
- }) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
13
+ const MessageLoader = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
19
14
  style: styles.container,
20
15
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
21
16
  style: styles.icon,
@@ -25,9 +20,7 @@ const MessageLoader = ({
25
20
  })
26
21
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
27
22
  style: styles.loader,
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ThreeDotsLoader.ThreeDotsLoader, {
29
- backgroundColor: _constants.CONTROLS_COLORS_MAP[colorScheme].background
30
- })
23
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ThreeDotsLoader.ThreeDotsLoader, {})
31
24
  })]
32
25
  });
33
26
  exports.MessageLoader = MessageLoader;
@@ -58,7 +51,7 @@ const styles = _reactNative.StyleSheet.create({
58
51
  elevation: 3,
59
52
  borderRadius: 8,
60
53
  borderBottomLeftRadius: 0,
61
- backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3
54
+ backgroundColor: '#F2F2F4'
62
55
  }
63
56
  });
64
57
  //# sourceMappingURL=MessageLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_ChatbotIcon","_ThreeDotsLoader","_constants","_styleTypes","_jsxRuntime","e","__esModule","default","MessageLoader","colorScheme","ColorScheme","Blue","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","loader","ThreeDotsLoader","backgroundColor","CONTROLS_COLORS_MAP","background","exports","StyleSheet","create","flexDirection","alignItems","alignSelf","marginRight","flex","maxWidth","padding","paddingTop","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","COLORS","NEUTRAL_3"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageLoader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAAqD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAA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AAEC,MAAM,EAAE;IAAE,CAAC;IACrCmB,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBpB,eAAe,EAAEqB,qBAAM,CAACC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_ThreeDotsLoader","_jsxRuntime","e","__esModule","default","MessageLoader","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","loader","ThreeDotsLoader","exports","StyleSheet","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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAAoE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7D,MAAMG,aAAa,GAAGA,CAAA,kBAC3B,IAAAJ,WAAA,CAAAK,IAAA,EAACR,YAAA,CAAAS,IAAI;EAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;EAAAC,QAAA,gBAC5B,IAAAV,WAAA,CAAAW,GAAA,EAACd,YAAA,CAAAS,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACI,IAAK;IAAAF,QAAA,eACvB,IAAAV,WAAA,CAAAW,GAAA,EAACb,YAAA,CAAAe,WAAW;MAACC,KAAK,EAAE,EAAG;MAACC,MAAM,EAAE;IAAG,CAAE;EAAC,CAClC,CAAC,eACP,IAAAf,WAAA,CAAAW,GAAA,EAACd,YAAA,CAAAS,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACQ,MAAO;IAAAN,QAAA,eACzB,IAAAV,WAAA,CAAAW,GAAA,EAACZ,gBAAA,CAAAkB,eAAe,IAAE;EAAC,CACf,CAAC;AAAA,CACH,CACP;AAAAC,OAAA,CAAAd,aAAA,GAAAA,aAAA;AAED,MAAMI,MAAM,GAAGW,uBAAU,CAACC,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,aAAa,EAAE,KAAK;IACpBP,KAAK,EAAE,GAAG;IACVQ,UAAU,EAAE;EACd,CAAC;EACDV,IAAI,EAAE;IACJW,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACDR,MAAM,EAAE;IACNS,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;MAAEhB,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCgB,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":[]}
@@ -6,28 +6,25 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.MessageTextToSpeech = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
9
  var _SpeakerIcon = require("../../../../shared/icons/SpeakerIcon.js");
11
10
  var _PlayIcon = require("../../../../shared/icons/PlayIcon.js");
12
11
  var _PauseIcon = require("../../../../shared/icons/PauseIcon.js");
13
12
  var _ChatBotModelContext = require("../../context/ChatBotModelContext.js");
14
- var _styleTypes = require("../../types/style.types.js");
15
- var _constants = require("../../constants.js");
13
+ var _reactNativeUi = require("@magmamath/react-native-ui");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
16
  const TextToSpeechIcon = ({
19
17
  status,
20
18
  isActive,
21
- isLoading,
22
- colorScheme = _styleTypes.ColorScheme.Blue
19
+ isLoading
23
20
  }) => {
24
21
  if (isLoading && isActive) {
25
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
26
- color: _constants.CONTROLS_COLORS_MAP[colorScheme].background
27
- });
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {});
28
23
  }
29
24
  if (!isActive) {
30
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeakerIcon.SpeakerIcon, {});
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeakerIcon.SpeakerIcon, {
26
+ color: isActive ? _reactNativeUi.COLORS.PRIMARY_BLUE : undefined
27
+ });
31
28
  }
32
29
  if (status === 'playing') return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PauseIcon.PauseIcon, {
33
30
  color: _reactNativeUi.COLORS.NEUTRAL_1
@@ -35,7 +32,9 @@ const TextToSpeechIcon = ({
35
32
  if (status === 'paused') return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PlayIcon.PlayIcon, {
36
33
  color: _reactNativeUi.COLORS.NEUTRAL_1
37
34
  });
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeakerIcon.SpeakerIcon, {});
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SpeakerIcon.SpeakerIcon, {
36
+ color: isActive ? _reactNativeUi.COLORS.PRIMARY_BLUE : undefined
37
+ });
39
38
  };
40
39
  const MessageTextToSpeech = ({
41
40
  state: {
@@ -44,9 +43,7 @@ const MessageTextToSpeech = ({
44
43
  isActive,
45
44
  isLoading
46
45
  },
47
- message,
48
- variant,
49
- colorScheme = _styleTypes.ColorScheme.Blue
46
+ message
50
47
  }) => {
51
48
  const model = (0, _ChatBotModelContext.useChatModel)();
52
49
  function play() {
@@ -59,14 +56,13 @@ const MessageTextToSpeech = ({
59
56
  disabled: disabled,
60
57
  isActive: isActive,
61
58
  variant: 'secondary',
62
- colorScheme: _constants.MESSAGE_COLORS_MAP[colorScheme][variant].icon,
59
+ colorScheme: 'blue',
63
60
  size: 'small',
64
61
  onPress: play,
65
62
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(TextToSpeechIcon, {
66
63
  isActive: isActive,
67
64
  isLoading: isLoading,
68
- status: status,
69
- colorScheme: colorScheme
65
+ status: status
70
66
  })
71
67
  });
72
68
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_SpeakerIcon","_PlayIcon","_PauseIcon","_ChatBotModelContext","_styleTypes","_constants","_jsxRuntime","e","__esModule","default","TextToSpeechIcon","status","isActive","isLoading","colorScheme","ColorScheme","Blue","jsx","ActivityIndicator","color","CONTROLS_COLORS_MAP","background","SpeakerIcon","PauseIcon","COLORS","NEUTRAL_1","PlayIcon","MessageTextToSpeech","state","disabled","message","variant","model","useChatModel","play","t2s","isTranslated","translation","$isTranslated","getState","Button","MESSAGE_COLORS_MAP","icon","size","onPress","exports"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAEA,IAAAM,oBAAA,GAAAN,OAAA;AAEA,I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GAAG,IAAAC,iCAAY,EAAC,CAAC;EAE5B,SAASC,IAAIA,CAAA,EAAG;IACd,KAAKF,KAAK,CAACG,GAAG,CAACD,IAAI,CAAC;MAClBE,YAAY,EAAEJ,KAAK,CAACK,WAAW,CAACC,aAAa,CAACC,QAAQ,CAAC,CAAC;MACxDT;IACF,CAAC,CAAC;EACJ;EAEA,oBACE,IAAAxB,WAAA,CAAAW,GAAA,EAAClB,cAAA,CAAAyC,MAAM;IACLX,QAAQ,EAAEA,QAAS;IACnBjB,QAAQ,EAAEA,QAAS;IACnBmB,OAAO,EAAE,WAAY;IACrBjB,WAAW,EAAE2B,6BAAkB,CAAC3B,WAAW,CAAC,CAACiB,OAAO,CAAC,CAACW,IAAK;IAC3DC,IAAI,EAAE,OAAQ;IACdC,OAAO,EAAEV,IAAK;IACdQ,IAAI,eACF,IAAApC,WAAA,CAAAW,GAAA,EAACP,gBAAgB;MACfE,QAAQ,EAAEA,QAAS;MACnBC,SAAS,EAAEA,SAAU;MACrBF,MAAM,EAAEA,MAAO;MACfG,WAAW,EAAEA;IAAY,CAC1B;EACF,CACF,CAAC;AAEN,CAAC;AAAA+B,OAAA,CAAAlB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_SpeakerIcon","_PlayIcon","_PauseIcon","_ChatBotModelContext","_reactNativeUi","_jsxRuntime","e","__esModule","default","TextToSpeechIcon","status","isActive","isLoading","jsx","ActivityIndicator","SpeakerIcon","color","COLORS","PRIMARY_BLUE","undefined","PauseIcon","NEUTRAL_1","PlayIcon","MessageTextToSpeech","state","disabled","message","model","useChatModel","play","t2s","isTranslated","translation","$isTranslated","getState","Button","variant","colorScheme","size","onPress","icon","exports"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,O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AM;IAAEe,QAAQ;IAAEd,QAAQ;IAAEC;EAAU,CAAC;EAChDc;AACwB,CAAC,KAAK;EAC9B,MAAMC,KAAK,GAAG,IAAAC,iCAAY,EAAC,CAAC;EAE5B,SAASC,IAAIA,CAAA,EAAG;IACd,KAAKF,KAAK,CAACG,GAAG,CAACD,IAAI,CAAC;MAClBE,YAAY,EAAEJ,KAAK,CAACK,WAAW,CAACC,aAAa,CAACC,QAAQ,CAAC,CAAC;MACxDR;IACF,CAAC,CAAC;EACJ;EAEA,oBACE,IAAArB,WAAA,CAAAQ,GAAA,EAACT,cAAA,CAAA+B,MAAM;IACLV,QAAQ,EAAEA,QAAS;IACnBd,QAAQ,EAAEA,QAAS;IACnByB,OAAO,EAAE,WAAY;IACrBC,WAAW,EAAE,MAAO;IACpBC,IAAI,EAAE,OAAQ;IACdC,OAAO,EAAEV,IAAK;IACdW,IAAI,eAAE,IAAAnC,WAAA,CAAAQ,GAAA,EAACJ,gBAAgB;MAACE,QAAQ,EAAEA,QAAS;MAACC,SAAS,EAAEA,SAAU;MAACF,MAAM,EAAEA;IAAO,CAAE;EAAE,CACtF,CAAC;AAEN,CAAC;AAAA+B,OAAA,CAAAlB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -7,23 +7,18 @@ exports.ReceivedMessage = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _ChatbotIcon = require("../../../../shared/icons/ChatbotIcon.js");
10
- var _styleTypes = require("../../types/style.types.js");
11
10
  var _MessageContent = require("./MessageContent.js");
12
- var _modelTypes = require("../../types/model.types.js");
13
11
  var _jsxRuntime = require("react/jsx-runtime");
14
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
13
  const ReceivedMessage = ({
16
14
  message,
17
15
  isTranslated,
18
- t2sState,
19
- withIcon,
20
- colorScheme = _styleTypes.ColorScheme.Blue,
21
- withErrorSpotting
16
+ t2sState
22
17
  }) => {
23
18
  const text = isTranslated ? message.translatedMessage : message.message;
24
19
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
25
20
  style: styles.container,
26
- children: [withIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
21
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
27
22
  style: styles.icon,
28
23
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
29
24
  width: 60,
@@ -33,11 +28,8 @@ const ReceivedMessage = ({
33
28
  style: styles.message,
34
29
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageContent.MessageContent, {
35
30
  message: message,
36
- variant: _modelTypes.MessageVariant.RECEIVED,
37
31
  t2sState: t2sState,
38
- text: text ?? '',
39
- colorScheme: colorScheme,
40
- withErrorSpotting: withErrorSpotting
32
+ text: text ?? ''
41
33
  })
42
34
  })]
43
35
  });
@@ -49,8 +41,7 @@ const styles = _reactNative.StyleSheet.create({
49
41
  flexDirection: 'row',
50
42
  maxWidth: 372,
51
43
  width: 372,
52
- alignItems: 'flex-end',
53
- justifyContent: 'flex-end'
44
+ alignItems: 'flex-end'
54
45
  },
55
46
  icon: {
56
47
  alignSelf: 'flex-end',
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_styleTypes","_MessageContent","_modelTypes","_jsxRuntime","e","__esModule","default","ReceivedMessage","message","isTranslated","t2sState","withIcon","colorScheme","ColorScheme","Blue","withErrorSpotting","text","translatedMessage","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","MessageContent","variant","MessageVariant","RECEIVED","exports","StyleSheet","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":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EAAEA,QAAS;QACnBM,IAAI,EAAEA,IAAI,IAAI,EAAG;QACjBJ,WAAW,EAAEA,WAAY;QACzBG,iBAAiB,EAAEA;MAAkB,CACtC;IAAC,CACE,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAAAkB,OAAA,CAAA1B,eAAA,GAAAA,eAAA;AAED,MAAMc,MAAM,GAAGa,uBAAU,CAACC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbX,KAAK,EAAE,GAAG;IACVY,UAAU,EAAE,UAAU;IACtBC,cAAc,EAAE;EAClB,CAAC;EACDf,IAAI,EAAE;IACJgB,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACDlC,OAAO,EAAE;IACP4B,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbK,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAElB,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCkB,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","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_MessageContent","_jsxRuntime","e","__esModule","default","ReceivedMessage","message","isTranslated","t2sState","text","translatedMessage","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","MessageContent","exports","StyleSheet","create","flex","flexDirection","maxWidth","alignItems","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot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,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbR,KAAK,EAAE,GAAG;IACVS,UAAU,EAAE;EACd,CAAC;EACDX,IAAI,EAAE;IACJY,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACDzB,OAAO,EAAE;IACPoB,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbI,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,MAAM;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":[]}
@@ -6,22 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.SentMessage = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
- var _constants = require("../../constants.js");
11
- var _styleTypes = require("../../types/style.types.js");
12
- var _modelTypes = require("../../types/model.types.js");
13
9
  var _jsxRuntime = require("react/jsx-runtime");
14
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
11
  const SentMessage = exports.SentMessage = /*#__PURE__*/_react.default.memo(({
16
12
  message,
17
- isTranslated,
18
- colorScheme = _styleTypes.ColorScheme.Blue
13
+ isTranslated
19
14
  }) => {
20
15
  const text = isTranslated ? message.translatedMessage : message.message;
21
16
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
22
- style: [styles.container, {
23
- backgroundColor: _constants.MESSAGE_COLORS_MAP[colorScheme][_modelTypes.MessageVariant.SENT].background
24
- }],
17
+ style: styles.container,
25
18
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
26
19
  style: styles.text,
27
20
  children: text
@@ -32,15 +25,16 @@ const styles = _reactNative.StyleSheet.create({
32
25
  container: {
33
26
  alignSelf: 'flex-end',
34
27
  maxWidth: 305,
35
- padding: _reactNativeUi.SPACING[200],
36
- borderRadius: _reactNativeUi.BORDER_RADIUS[200],
37
- borderBottomRightRadius: 0
28
+ padding: 8,
29
+ borderRadius: 8,
30
+ borderBottomRightRadius: 0,
31
+ backgroundColor: '#55ABE0'
38
32
  },
39
33
  text: {
40
34
  fontSize: 20,
41
35
  fontWeight: 400,
42
- fontFamily: _reactNativeUi.FONT_FAMILY.buenosAires,
43
- color: _reactNativeUi.COLORS.NEUTRAL_1
36
+ fontFamily: 'Buenos Aires',
37
+ color: '#FFF'
44
38
  }
45
39
  });
46
40
  //# sourceMappingURL=SentMessage.js.map