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

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 (590) 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/formulaSheet/components/FormulaSheetModal.js +2 -1
  51. package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
  52. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +9 -12
  53. package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  54. package/dist/commonjs/features/problemSelector/constants.js +6 -3
  55. package/dist/commonjs/features/problemSelector/constants.js.map +1 -1
  56. package/dist/commonjs/index.js +0 -36
  57. package/dist/commonjs/index.js.map +1 -1
  58. package/dist/commonjs/lib/effector/createControllerEffect.js.map +1 -1
  59. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  60. package/dist/commonjs/shared/icons/LockIcon.js +31 -0
  61. package/dist/commonjs/shared/icons/LockIcon.js.map +1 -0
  62. package/dist/commonjs/shared/translation/constants.js +1 -5
  63. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  64. package/dist/commonjs/shared/translation/localization/en.json +1 -12
  65. package/dist/commonjs/shared/translation/localization/gb.json +1 -12
  66. package/dist/commonjs/shared/translation/localization/sw.json +0 -11
  67. package/dist/commonjs/shared/translation/types.js +0 -2
  68. package/dist/commonjs/shared/translation/types.js.map +1 -1
  69. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +2 -6
  70. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  71. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +27 -29
  72. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -1
  73. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  74. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +4 -9
  75. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  76. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +5 -18
  77. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  78. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +3 -10
  79. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  80. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +12 -16
  81. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  82. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -13
  83. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  84. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +8 -14
  85. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  86. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +4 -14
  87. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  88. package/dist/module/features/chatbot/components/Chatbot.js +2 -5
  89. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  90. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +3 -3
  91. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -1
  92. package/dist/module/features/chatbot/constants.js +0 -35
  93. package/dist/module/features/chatbot/constants.js.map +1 -1
  94. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +1 -9
  95. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +1 -1
  96. package/dist/module/features/chatbot/index.js +0 -1
  97. package/dist/module/features/chatbot/index.js.map +1 -1
  98. package/dist/module/features/chatbot/model/ChatBotModel.js +37 -65
  99. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  100. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +8 -3
  101. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  102. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +0 -9
  103. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  104. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +0 -1
  105. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  106. package/dist/module/features/chatbot/model/translation.js +1 -9
  107. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  108. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  109. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +1 -3
  110. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -1
  111. package/dist/module/features/feedback/model/comments.js +3 -5
  112. package/dist/module/features/feedback/model/comments.js.map +1 -1
  113. package/dist/module/features/feedback/model/model.js +9 -7
  114. package/dist/module/features/feedback/model/model.js.map +1 -1
  115. package/dist/module/features/formulaSheet/components/FormulaSheet.js +4 -5
  116. package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  117. package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +2 -1
  118. package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
  119. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +10 -13
  120. package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
  121. package/dist/module/features/problemSelector/constants.js +5 -2
  122. package/dist/module/features/problemSelector/constants.js.map +1 -1
  123. package/dist/module/index.js +0 -3
  124. package/dist/module/index.js.map +1 -1
  125. package/dist/module/lib/effector/createControllerEffect.js.map +1 -1
  126. package/dist/module/shared/icons/LockIcon.js +23 -0
  127. package/dist/module/shared/icons/LockIcon.js.map +1 -0
  128. package/dist/module/shared/translation/constants.js +1 -5
  129. package/dist/module/shared/translation/constants.js.map +1 -1
  130. package/dist/module/shared/translation/localization/en.json +1 -12
  131. package/dist/module/shared/translation/localization/gb.json +1 -12
  132. package/dist/module/shared/translation/localization/sw.json +0 -11
  133. package/dist/module/shared/translation/types.js +0 -2
  134. package/dist/module/shared/translation/types.js.map +1 -1
  135. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
  136. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  137. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +1 -2
  138. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  139. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -5
  140. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  141. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +1 -6
  142. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  143. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +2 -7
  144. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  145. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
  146. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  147. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +1 -5
  148. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  149. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  150. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  151. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  152. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  153. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -3
  154. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  155. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +3 -4
  156. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  157. package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  158. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +0 -33
  159. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -4
  161. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  162. package/dist/typescript/commonjs/features/chatbot/index.d.ts +0 -1
  163. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  164. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +2 -7
  165. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  166. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +3 -1
  167. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  168. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +0 -5
  169. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  170. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  171. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  172. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +2 -5
  173. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  174. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  175. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  176. package/dist/typescript/commonjs/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  177. package/dist/typescript/commonjs/features/problemSelector/constants.d.ts +5 -2
  178. package/dist/typescript/commonjs/features/problemSelector/constants.d.ts.map +1 -1
  179. package/dist/typescript/commonjs/index.d.ts +0 -3
  180. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  181. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +1 -1
  182. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -1
  183. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  184. package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts +4 -0
  185. package/dist/typescript/commonjs/shared/icons/LockIcon.d.ts.map +1 -0
  186. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -99
  187. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  188. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -22
  189. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  190. package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -3
  191. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  192. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +1 -5
  193. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -1
  194. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -3
  195. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  196. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +1 -2
  197. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -1
  198. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +1 -5
  199. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  200. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +1 -6
  201. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  202. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +2 -7
  203. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  204. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
  205. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  206. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +1 -5
  207. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  208. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  209. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  210. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  211. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  212. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -3
  213. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  214. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +3 -4
  215. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  216. package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -1
  217. package/dist/typescript/module/features/chatbot/constants.d.ts +0 -33
  218. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  219. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -4
  220. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +1 -1
  221. package/dist/typescript/module/features/chatbot/index.d.ts +0 -1
  222. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  223. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +2 -7
  224. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  225. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +3 -1
  226. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  227. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +0 -5
  228. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  229. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  230. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  231. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +2 -5
  232. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  233. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -1
  234. package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  235. package/dist/typescript/module/features/problemSelector/components/ProblemSelectorButton.d.ts.map +1 -1
  236. package/dist/typescript/module/features/problemSelector/constants.d.ts +5 -2
  237. package/dist/typescript/module/features/problemSelector/constants.d.ts.map +1 -1
  238. package/dist/typescript/module/index.d.ts +0 -3
  239. package/dist/typescript/module/index.d.ts.map +1 -1
  240. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +1 -1
  241. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -1
  242. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  243. package/dist/typescript/module/shared/icons/LockIcon.d.ts +4 -0
  244. package/dist/typescript/module/shared/icons/LockIcon.d.ts.map +1 -0
  245. package/dist/typescript/module/shared/translation/constants.d.ts +0 -99
  246. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  247. package/dist/typescript/module/shared/translation/model.d.ts +0 -22
  248. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  249. package/dist/typescript/module/shared/translation/types.d.ts +1 -3
  250. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  251. package/dist/typescript/module/shared/translation/validation.types.d.ts +1 -5
  252. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -1
  253. package/package.json +7 -11
  254. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +0 -6
  255. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +29 -28
  256. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +1 -6
  257. package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +4 -24
  258. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +6 -39
  259. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +3 -11
  260. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +7 -28
  261. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +5 -25
  262. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +13 -24
  263. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +3 -13
  264. package/src/features/chatbot/components/Chatbot.tsx +2 -6
  265. package/src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx +10 -7
  266. package/src/features/chatbot/constants.ts +0 -37
  267. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +1 -11
  268. package/src/features/chatbot/index.ts +0 -1
  269. package/src/features/chatbot/model/ChatBotModel.ts +41 -65
  270. package/src/features/chatbot/model/ChatBotThreadManager.ts +10 -4
  271. package/src/features/chatbot/model/ChatBoxTextManager.ts +0 -11
  272. package/src/features/chatbot/model/DefaultMessageCreator.ts +0 -1
  273. package/src/features/chatbot/model/translation.ts +1 -11
  274. package/src/features/chatbot/types/model.types.ts +2 -5
  275. package/src/features/endOfAssignment/components/Modal/Modal.tsx +0 -3
  276. package/src/features/feedback/model/comments.ts +7 -7
  277. package/src/features/feedback/model/model.ts +6 -6
  278. package/src/features/formulaSheet/components/FormulaSheet.tsx +4 -6
  279. package/src/features/formulaSheet/components/FormulaSheetModal.tsx +2 -2
  280. package/src/features/problemSelector/components/ProblemSelectorButton.tsx +10 -17
  281. package/src/features/problemSelector/constants.ts +2 -3
  282. package/src/index.ts +0 -3
  283. package/src/lib/effector/createControllerEffect.ts +41 -41
  284. package/src/lib/helpers/helpers.ts +1 -1
  285. package/src/shared/icons/LockIcon.tsx +16 -0
  286. package/src/shared/translation/constants.ts +0 -4
  287. package/src/shared/translation/localization/en.json +1 -12
  288. package/src/shared/translation/localization/gb.json +1 -12
  289. package/src/shared/translation/localization/sw.json +0 -11
  290. package/src/shared/translation/types.ts +0 -6
  291. package/src/shared/translation/validation.types.ts +1 -9
  292. package/dist/commonjs/features/chatbot/types/style.types.js +0 -12
  293. package/dist/commonjs/features/chatbot/types/style.types.js.map +0 -1
  294. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +0 -29
  295. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
  296. package/dist/commonjs/features/exampleSolution/assets/grid.webp +0 -0
  297. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -104
  298. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
  299. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +0 -44
  300. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +0 -1
  301. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +0 -61
  302. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +0 -1
  303. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +0 -68
  304. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +0 -1
  305. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +0 -101
  306. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +0 -1
  307. package/dist/commonjs/features/exampleSolution/constants.js +0 -13
  308. package/dist/commonjs/features/exampleSolution/constants.js.map +0 -1
  309. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +0 -61
  310. package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
  311. package/dist/commonjs/features/exampleSolution/index.js +0 -39
  312. package/dist/commonjs/features/exampleSolution/index.js.map +0 -1
  313. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +0 -24
  314. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
  315. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +0 -32
  316. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
  317. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +0 -18
  318. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
  319. package/dist/commonjs/features/exampleSolution/types.js +0 -6
  320. package/dist/commonjs/features/exampleSolution/types.js.map +0 -1
  321. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js +0 -62
  322. package/dist/commonjs/features/gifCelebrations/GifCelebrations.js.map +0 -1
  323. package/dist/commonjs/features/gifCelebrations/assets/confetti.webp +0 -0
  324. package/dist/commonjs/features/gifCelebrations/assets/gifFallback.gif +0 -0
  325. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js +0 -44
  326. package/dist/commonjs/features/gifCelebrations/components/Backdrop.js.map +0 -1
  327. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js +0 -46
  328. package/dist/commonjs/features/gifCelebrations/components/ContentContainer.js.map +0 -1
  329. package/dist/commonjs/features/gifCelebrations/components/Gif.js +0 -90
  330. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +0 -1
  331. package/dist/commonjs/features/gifCelebrations/components/Progress.js +0 -96
  332. package/dist/commonjs/features/gifCelebrations/components/Progress.js.map +0 -1
  333. package/dist/commonjs/features/gifCelebrations/constants.js +0 -34
  334. package/dist/commonjs/features/gifCelebrations/constants.js.map +0 -1
  335. package/dist/commonjs/features/gifCelebrations/helpers.js +0 -114
  336. package/dist/commonjs/features/gifCelebrations/helpers.js.map +0 -1
  337. package/dist/commonjs/features/gifCelebrations/index.js +0 -20
  338. package/dist/commonjs/features/gifCelebrations/index.js.map +0 -1
  339. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js +0 -136
  340. package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +0 -1
  341. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js +0 -27
  342. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsApi.js.map +0 -1
  343. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js +0 -30
  344. package/dist/commonjs/features/gifCelebrations/model/GifCelebrationsCache.js.map +0 -1
  345. package/dist/commonjs/features/gifCelebrations/types/model.types.js +0 -6
  346. package/dist/commonjs/features/gifCelebrations/types/model.types.js.map +0 -1
  347. package/dist/commonjs/lib/effector/ControlledSample.js +0 -40
  348. package/dist/commonjs/lib/effector/ControlledSample.js.map +0 -1
  349. package/dist/commonjs/react-app-env.d.js +0 -2
  350. package/dist/commonjs/react-app-env.d.js.map +0 -1
  351. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js +0 -681
  352. package/dist/commonjs/shared/icons/ExcitedLavaIcon.js.map +0 -1
  353. package/dist/commonjs/shared/icons/LavaIconInGlasses.js +0 -616
  354. package/dist/commonjs/shared/icons/LavaIconInGlasses.js.map +0 -1
  355. package/dist/commonjs/shared/icons/index.js +0 -204
  356. package/dist/commonjs/shared/icons/index.js.map +0 -1
  357. package/dist/commonjs/shared/translation/localization/ca.json +0 -33
  358. package/dist/commonjs/shared/translation/localization/sct.json +0 -33
  359. package/dist/commonjs/types/common.types.js +0 -2
  360. package/dist/commonjs/types/common.types.js.map +0 -1
  361. package/dist/module/features/chatbot/types/style.types.js +0 -8
  362. package/dist/module/features/chatbot/types/style.types.js.map +0 -1
  363. package/dist/module/features/exampleSolution/ExampleSolutionModal.js +0 -23
  364. package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
  365. package/dist/module/features/exampleSolution/assets/grid.webp +0 -0
  366. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -98
  367. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
  368. package/dist/module/features/exampleSolution/components/LavaIcon.js +0 -36
  369. package/dist/module/features/exampleSolution/components/LavaIcon.js.map +0 -1
  370. package/dist/module/features/exampleSolution/components/MessageBlock.js +0 -53
  371. package/dist/module/features/exampleSolution/components/MessageBlock.js.map +0 -1
  372. package/dist/module/features/exampleSolution/components/QuestionSection.js +0 -60
  373. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +0 -1
  374. package/dist/module/features/exampleSolution/components/SolutionSection.js +0 -93
  375. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +0 -1
  376. package/dist/module/features/exampleSolution/constants.js +0 -9
  377. package/dist/module/features/exampleSolution/constants.js.map +0 -1
  378. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +0 -56
  379. package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
  380. package/dist/module/features/exampleSolution/index.js +0 -6
  381. package/dist/module/features/exampleSolution/index.js.map +0 -1
  382. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +0 -19
  383. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
  384. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +0 -27
  385. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
  386. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +0 -13
  387. package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
  388. package/dist/module/features/exampleSolution/types.js +0 -4
  389. package/dist/module/features/exampleSolution/types.js.map +0 -1
  390. package/dist/module/features/gifCelebrations/GifCelebrations.js +0 -55
  391. package/dist/module/features/gifCelebrations/GifCelebrations.js.map +0 -1
  392. package/dist/module/features/gifCelebrations/assets/confetti.webp +0 -0
  393. package/dist/module/features/gifCelebrations/assets/gifFallback.gif +0 -0
  394. package/dist/module/features/gifCelebrations/components/Backdrop.js +0 -36
  395. package/dist/module/features/gifCelebrations/components/Backdrop.js.map +0 -1
  396. package/dist/module/features/gifCelebrations/components/ContentContainer.js +0 -38
  397. package/dist/module/features/gifCelebrations/components/ContentContainer.js.map +0 -1
  398. package/dist/module/features/gifCelebrations/components/Gif.js +0 -82
  399. package/dist/module/features/gifCelebrations/components/Gif.js.map +0 -1
  400. package/dist/module/features/gifCelebrations/components/Progress.js +0 -88
  401. package/dist/module/features/gifCelebrations/components/Progress.js.map +0 -1
  402. package/dist/module/features/gifCelebrations/constants.js +0 -30
  403. package/dist/module/features/gifCelebrations/constants.js.map +0 -1
  404. package/dist/module/features/gifCelebrations/helpers.js +0 -103
  405. package/dist/module/features/gifCelebrations/helpers.js.map +0 -1
  406. package/dist/module/features/gifCelebrations/index.js +0 -5
  407. package/dist/module/features/gifCelebrations/index.js.map +0 -1
  408. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js +0 -131
  409. package/dist/module/features/gifCelebrations/model/GifCelebrations.model.js.map +0 -1
  410. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js +0 -22
  411. package/dist/module/features/gifCelebrations/model/GifCelebrationsApi.js.map +0 -1
  412. package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js +0 -25
  413. package/dist/module/features/gifCelebrations/model/GifCelebrationsCache.js.map +0 -1
  414. package/dist/module/features/gifCelebrations/types/model.types.js +0 -4
  415. package/dist/module/features/gifCelebrations/types/model.types.js.map +0 -1
  416. package/dist/module/lib/effector/ControlledSample.js +0 -35
  417. package/dist/module/lib/effector/ControlledSample.js.map +0 -1
  418. package/dist/module/react-app-env.d.js +0 -2
  419. package/dist/module/react-app-env.d.js.map +0 -1
  420. package/dist/module/shared/icons/ExcitedLavaIcon.js +0 -673
  421. package/dist/module/shared/icons/ExcitedLavaIcon.js.map +0 -1
  422. package/dist/module/shared/icons/LavaIconInGlasses.js +0 -608
  423. package/dist/module/shared/icons/LavaIconInGlasses.js.map +0 -1
  424. package/dist/module/shared/icons/index.js +0 -21
  425. package/dist/module/shared/icons/index.js.map +0 -1
  426. package/dist/module/shared/translation/localization/ca.json +0 -33
  427. package/dist/module/shared/translation/localization/sct.json +0 -33
  428. package/dist/module/types/common.types.js +0 -2
  429. package/dist/module/types/common.types.js.map +0 -1
  430. package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts +0 -5
  431. package/dist/typescript/commonjs/features/chatbot/types/style.types.d.ts.map +0 -1
  432. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
  433. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
  434. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
  435. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
  436. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +0 -10
  437. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
  438. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +0 -10
  439. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
  440. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +0 -10
  441. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
  442. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +0 -9
  443. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
  444. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +0 -6
  445. package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +0 -1
  446. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
  447. package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
  448. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +0 -4
  449. package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +0 -1
  450. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
  451. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
  452. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
  453. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
  454. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
  455. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
  456. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +0 -27
  457. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +0 -1
  458. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts +0 -10
  459. package/dist/typescript/commonjs/features/gifCelebrations/GifCelebrations.d.ts.map +0 -1
  460. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts +0 -10
  461. package/dist/typescript/commonjs/features/gifCelebrations/components/Backdrop.d.ts.map +0 -1
  462. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts +0 -10
  463. package/dist/typescript/commonjs/features/gifCelebrations/components/ContentContainer.d.ts.map +0 -1
  464. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts +0 -10
  465. package/dist/typescript/commonjs/features/gifCelebrations/components/Gif.d.ts.map +0 -1
  466. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts +0 -10
  467. package/dist/typescript/commonjs/features/gifCelebrations/components/Progress.d.ts.map +0 -1
  468. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts +0 -26
  469. package/dist/typescript/commonjs/features/gifCelebrations/constants.d.ts.map +0 -1
  470. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +0 -29
  471. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +0 -1
  472. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts +0 -3
  473. package/dist/typescript/commonjs/features/gifCelebrations/index.d.ts.map +0 -1
  474. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts +0 -25
  475. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +0 -1
  476. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts +0 -7
  477. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +0 -1
  478. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts +0 -18
  479. package/dist/typescript/commonjs/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +0 -1
  480. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts +0 -45
  481. package/dist/typescript/commonjs/features/gifCelebrations/types/model.types.d.ts.map +0 -1
  482. package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts +0 -17
  483. package/dist/typescript/commonjs/lib/effector/ControlledSample.d.ts.map +0 -1
  484. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts +0 -4
  485. package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts.map +0 -1
  486. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts +0 -4
  487. package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts.map +0 -1
  488. package/dist/typescript/commonjs/shared/icons/index.d.ts +0 -19
  489. package/dist/typescript/commonjs/shared/icons/index.d.ts.map +0 -1
  490. package/dist/typescript/commonjs/types/common.types.d.ts +0 -5
  491. package/dist/typescript/commonjs/types/common.types.d.ts.map +0 -1
  492. package/dist/typescript/module/features/chatbot/types/style.types.d.ts +0 -5
  493. package/dist/typescript/module/features/chatbot/types/style.types.d.ts.map +0 -1
  494. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
  495. package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
  496. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
  497. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
  498. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +0 -10
  499. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +0 -1
  500. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +0 -10
  501. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +0 -1
  502. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +0 -10
  503. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
  504. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +0 -9
  505. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
  506. package/dist/typescript/module/features/exampleSolution/constants.d.ts +0 -6
  507. package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +0 -1
  508. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
  509. package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
  510. package/dist/typescript/module/features/exampleSolution/index.d.ts +0 -4
  511. package/dist/typescript/module/features/exampleSolution/index.d.ts.map +0 -1
  512. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
  513. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
  514. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
  515. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
  516. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
  517. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
  518. package/dist/typescript/module/features/exampleSolution/types.d.ts +0 -27
  519. package/dist/typescript/module/features/exampleSolution/types.d.ts.map +0 -1
  520. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts +0 -10
  521. package/dist/typescript/module/features/gifCelebrations/GifCelebrations.d.ts.map +0 -1
  522. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts +0 -10
  523. package/dist/typescript/module/features/gifCelebrations/components/Backdrop.d.ts.map +0 -1
  524. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts +0 -10
  525. package/dist/typescript/module/features/gifCelebrations/components/ContentContainer.d.ts.map +0 -1
  526. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts +0 -10
  527. package/dist/typescript/module/features/gifCelebrations/components/Gif.d.ts.map +0 -1
  528. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts +0 -10
  529. package/dist/typescript/module/features/gifCelebrations/components/Progress.d.ts.map +0 -1
  530. package/dist/typescript/module/features/gifCelebrations/constants.d.ts +0 -26
  531. package/dist/typescript/module/features/gifCelebrations/constants.d.ts.map +0 -1
  532. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +0 -29
  533. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +0 -1
  534. package/dist/typescript/module/features/gifCelebrations/index.d.ts +0 -3
  535. package/dist/typescript/module/features/gifCelebrations/index.d.ts.map +0 -1
  536. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts +0 -25
  537. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrations.model.d.ts.map +0 -1
  538. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts +0 -7
  539. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsApi.d.ts.map +0 -1
  540. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts +0 -18
  541. package/dist/typescript/module/features/gifCelebrations/model/GifCelebrationsCache.d.ts.map +0 -1
  542. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts +0 -45
  543. package/dist/typescript/module/features/gifCelebrations/types/model.types.d.ts.map +0 -1
  544. package/dist/typescript/module/lib/effector/ControlledSample.d.ts +0 -17
  545. package/dist/typescript/module/lib/effector/ControlledSample.d.ts.map +0 -1
  546. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts +0 -4
  547. package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts.map +0 -1
  548. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts +0 -4
  549. package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts.map +0 -1
  550. package/dist/typescript/module/shared/icons/index.d.ts +0 -19
  551. package/dist/typescript/module/shared/icons/index.d.ts.map +0 -1
  552. package/dist/typescript/module/types/common.types.d.ts +0 -5
  553. package/dist/typescript/module/types/common.types.d.ts.map +0 -1
  554. package/src/features/chatbot/types/style.types.ts +0 -4
  555. package/src/features/exampleSolution/ExampleSolutionModal.tsx +0 -23
  556. package/src/features/exampleSolution/assets/grid.webp +0 -0
  557. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -83
  558. package/src/features/exampleSolution/components/LavaIcon.tsx +0 -35
  559. package/src/features/exampleSolution/components/MessageBlock.tsx +0 -67
  560. package/src/features/exampleSolution/components/QuestionSection.tsx +0 -60
  561. package/src/features/exampleSolution/components/SolutionSection.tsx +0 -112
  562. package/src/features/exampleSolution/constants.ts +0 -5
  563. package/src/features/exampleSolution/hooks/useExampleSolution.ts +0 -66
  564. package/src/features/exampleSolution/index.ts +0 -3
  565. package/src/features/exampleSolution/model/ExampleSolution.model.ts +0 -15
  566. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +0 -33
  567. package/src/features/exampleSolution/model/ExampleSolutionCache.ts +0 -20
  568. package/src/features/exampleSolution/types.ts +0 -27
  569. package/src/features/gifCelebrations/GifCelebrations.tsx +0 -75
  570. package/src/features/gifCelebrations/assets/confetti.webp +0 -0
  571. package/src/features/gifCelebrations/assets/gifFallback.gif +0 -0
  572. package/src/features/gifCelebrations/components/Backdrop.tsx +0 -41
  573. package/src/features/gifCelebrations/components/ContentContainer.tsx +0 -44
  574. package/src/features/gifCelebrations/components/Gif.tsx +0 -88
  575. package/src/features/gifCelebrations/components/Progress.tsx +0 -106
  576. package/src/features/gifCelebrations/constants.ts +0 -32
  577. package/src/features/gifCelebrations/helpers.ts +0 -144
  578. package/src/features/gifCelebrations/index.ts +0 -2
  579. package/src/features/gifCelebrations/model/GifCelebrations.model.ts +0 -167
  580. package/src/features/gifCelebrations/model/GifCelebrationsApi.ts +0 -26
  581. package/src/features/gifCelebrations/model/GifCelebrationsCache.ts +0 -41
  582. package/src/features/gifCelebrations/types/model.types.ts +0 -53
  583. package/src/lib/effector/ControlledSample.ts +0 -40
  584. package/src/react-app-env.d.ts +0 -6
  585. package/src/shared/icons/ExcitedLavaIcon.tsx +0 -541
  586. package/src/shared/icons/LavaIconInGlasses.tsx +0 -489
  587. package/src/shared/icons/index.ts +0 -18
  588. package/src/shared/translation/localization/ca.json +0 -33
  589. package/src/shared/translation/localization/sct.json +0 -33
  590. package/src/types/common.types.ts +0 -4
@@ -3,22 +3,17 @@
3
3
  import React from 'react';
4
4
  import { StyleSheet, View } from 'react-native';
5
5
  import { ChatbotIcon } from "../../../../shared/icons/ChatbotIcon.js";
6
- import { ColorScheme } from "../../types/style.types.js";
7
6
  import { MessageContent } from "./MessageContent.js";
8
- import { MessageVariant } from "../../types/model.types.js";
9
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
8
  export const ReceivedMessage = ({
11
9
  message,
12
10
  isTranslated,
13
- t2sState,
14
- withIcon,
15
- colorScheme = ColorScheme.Blue,
16
- withErrorSpotting
11
+ t2sState
17
12
  }) => {
18
13
  const text = isTranslated ? message.translatedMessage : message.message;
19
14
  return /*#__PURE__*/_jsxs(View, {
20
15
  style: styles.container,
21
- children: [withIcon && /*#__PURE__*/_jsx(View, {
16
+ children: [/*#__PURE__*/_jsx(View, {
22
17
  style: styles.icon,
23
18
  children: /*#__PURE__*/_jsx(ChatbotIcon, {
24
19
  width: 60,
@@ -28,11 +23,8 @@ export const ReceivedMessage = ({
28
23
  style: styles.message,
29
24
  children: /*#__PURE__*/_jsx(MessageContent, {
30
25
  message: message,
31
- variant: MessageVariant.RECEIVED,
32
26
  t2sState: t2sState,
33
- text: text ?? '',
34
- colorScheme: colorScheme,
35
- withErrorSpotting: withErrorSpotting
27
+ text: text ?? ''
36
28
  })
37
29
  })]
38
30
  });
@@ -43,8 +35,7 @@ const styles = StyleSheet.create({
43
35
  flexDirection: 'row',
44
36
  maxWidth: 372,
45
37
  width: 372,
46
- alignItems: 'flex-end',
47
- justifyContent: 'flex-end'
38
+ alignItems: 'flex-end'
48
39
  },
49
40
  icon: {
50
41
  alignSelf: 'flex-end',
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","ChatbotIcon","ColorScheme","MessageContent","MessageVariant","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","isTranslated","t2sState","withIcon","colorScheme","Blue","withErrorSpotting","text","translatedMessage","style","styles","container","children","icon","width","height","variant","RECEIVED","create","flex","flexDirection","maxWidth","alignItems","justifyContent","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAG/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,OAAO;EACPC,YAAY;EACZC,QAAQ;EACRC,QAAQ;EACRC,WAAW,GAAGZ,WAAW,CAACa,IAAI;EAC9BC;AACY,CAAC,KAAK;EAClB,MAAMC,IAAI,GAAGN,YAAY,GAAGD,OAAO,CAACQ,iBAAiB,GAAGR,OAAO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C;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","View","ChatbotIcon","MessageContent","jsx","_jsx","jsxs","_jsxs","ReceivedMessage","message","isTranslated","t2sState","text","translatedMessage","style","styles","container","children","icon","width","height","create","flex","flexDirection","maxWidth","alignItems","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,cAAc,QAAQ,qBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjD,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC;AAAuB,CAAC,KAAK;EACpF,MAAMC,IAAI,GAAGF,YAAY,GAAGD,OAAO,CAACI,iBAAiB,GAAGJ,OAAO,CAACA,OAAO;EAEvE,oBACEF,KAAA,CAACN,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BZ,IAAA,CAACJ,IAAI;MAACa,KAAK,EAAEC,MAAM,CAACG,IAAK;MAAAD,QAAA,eACvBZ,IAAA,CAACH,WAAW;QAACiB,KAAK,EAAE,EAAG;QAACC,MAAM,EAAE;MAAG,CAAE;IAAC,CAClC,CAAC,eAEPf,IAAA,CAACJ,IAAI;MAACa,KAAK,EAAEC,MAAM,CAACN,OAAQ;MAAAQ,QAAA,eAC1BZ,IAAA,CAACF,cAAc;QAACM,OAAO,EAAEA,OAAQ;QAACE,QAAQ,EAAEA,QAAS;QAACC,IAAI,EAAEA,IAAI,IAAI;MAAG,CAAE;IAAC,CACtE,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGf,UAAU,CAACqB,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbL,KAAK,EAAE,GAAG;IACVM,UAAU,EAAE;EACd,CAAC;EACDP,IAAI,EAAE;IACJQ,SAAS,EAAE,UAAU;IACrBC,WAAW,EAAE;EACf,CAAC;EACDlB,OAAO,EAAE;IACPa,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,GAAG;IACbI,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEX,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCW,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,21 +2,14 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { StyleSheet, Text, View } from 'react-native';
5
- import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui';
6
- import { MESSAGE_COLORS_MAP } from "../../constants.js";
7
- import { ColorScheme } from "../../types/style.types.js";
8
- import { MessageVariant } from "../../types/model.types.js";
9
5
  import { jsx as _jsx } from "react/jsx-runtime";
10
6
  export const SentMessage = /*#__PURE__*/React.memo(({
11
7
  message,
12
- isTranslated,
13
- colorScheme = ColorScheme.Blue
8
+ isTranslated
14
9
  }) => {
15
10
  const text = isTranslated ? message.translatedMessage : message.message;
16
11
  return /*#__PURE__*/_jsx(View, {
17
- style: [styles.container, {
18
- backgroundColor: MESSAGE_COLORS_MAP[colorScheme][MessageVariant.SENT].background
19
- }],
12
+ style: styles.container,
20
13
  children: /*#__PURE__*/_jsx(Text, {
21
14
  style: styles.text,
22
15
  children: text
@@ -27,15 +20,16 @@ const styles = StyleSheet.create({
27
20
  container: {
28
21
  alignSelf: 'flex-end',
29
22
  maxWidth: 305,
30
- padding: SPACING[200],
31
- borderRadius: BORDER_RADIUS[200],
32
- borderBottomRightRadius: 0
23
+ padding: 8,
24
+ borderRadius: 8,
25
+ borderBottomRightRadius: 0,
26
+ backgroundColor: '#55ABE0'
33
27
  },
34
28
  text: {
35
29
  fontSize: 20,
36
30
  fontWeight: 400,
37
- fontFamily: FONT_FAMILY.buenosAires,
38
- color: COLORS.NEUTRAL_1
31
+ fontFamily: 'Buenos Aires',
32
+ color: '#FFF'
39
33
  }
40
34
  });
41
35
  //# sourceMappingURL=SentMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","MESSAGE_COLORS_MAP","ColorScheme","MessageVariant","jsx","_jsx","SentMessage","memo","message","isTranslated","colorScheme","Blue","text","translatedMessage","style","styles","container","backgroundColor","SENT","background","children","create","alignSelf","maxWidth","padding","borderRadius","borderBottomRightRadius","fontSize","fontWeight","fontFamily","buenosAires","color","NEUTRAL_1"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/SentMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,MAAM,EAAEC,WAAW,EAAEC,OAAO,QAAQ,4BAA4B;AAGxF,SAASC,kBAAkB,QAAQ,oBAAiB;AACpD,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAExD,OAAO,MAAMC,WAAW,gBAAGb,KAAK,CAACc,IAAI,CACnC,CAAC;EAAEC,OAAO;EAAEC,YAAY;EAAEC,WAAW,GAAGR,WAAW,CAACS;AAAmB,CAAC,KAAK;EAC3E,MAAMC,IAAI,GAAGH,YAAY,GAAGD,OAAO,CAACK,iBAAiB,GAAGL,OAAO,CAACA,OAAO;EAEvE,oBACEH,IAAA,CAACT,IAAI;IACHkB,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAEhB,kBAAkB,CAACS,WAAW,CAAC,CAACP,cAAc,CAACe,IAAI,CAAC,CAACC;IAAW,CAAC,CACpF;IAAAC,QAAA,eAEFf,IAAA,CAACV,IAAI;MAACmB,KAAK,EAAEC,MAAM,CAACH,IAAK;MAAAQ,QAAA,EAAER;IAAI,CAAO;EAAC,CACnC,CAAC;AAEX,CACF,CAAC;AAED,MAAMG,MAAM,GAAGrB,UAAU,CAAC2B,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,SAAS,EAAE,UAAU;IACrBC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAExB,OAAO,CAAC,GAAG,CAAC;IACrByB,YAAY,EAAE5B,aAAa,CAAC,GAAG,CAAC;IAChC6B,uBAAuB,EAAE;EAC3B,CAAC;EACDd,IAAI,EAAE;IACJe,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE9B,WAAW,CAAC+B,WAAW;IACnCC,KAAK,EAAEjC,MAAM,CAACkC;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","Text","View","jsx","_jsx","SentMessage","memo","message","isTranslated","text","translatedMessage","style","styles","container","children","create","alignSelf","maxWidth","padding","borderRadius","borderBottomRightRadius","backgroundColor","fontSize","fontWeight","fontFamily","color"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/SentMessage.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGrD,OAAO,MAAMC,WAAW,gBAAGN,KAAK,CAACO,IAAI,CAAC,CAAC;EAAEC,OAAO;EAAEC;AAA2B,CAAC,KAAK;EACjF,MAAMC,IAAI,GAAGD,YAAY,GAAGD,OAAO,CAACG,iBAAiB,GAAGH,OAAO,CAACA,OAAO;EAEvE,oBACEH,IAAA,CAACF,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BV,IAAA,CAACH,IAAI;MAACU,KAAK,EAAEC,MAAM,CAACH,IAAK;MAAAK,QAAA,EAAEL;IAAI,CAAO;EAAC,CACnC,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMG,MAAM,GAAGZ,UAAU,CAACe,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,SAAS,EAAE,UAAU;IACrBC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE,CAAC;IACfC,uBAAuB,EAAE,CAAC;IAC1BC,eAAe,EAAE;EACnB,CAAC;EACDZ,IAAI,EAAE;IACJa,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
@@ -7,7 +7,6 @@ import { ChatMessage } from "../ChatMessage/ChatMessage.js";
7
7
  import { MessageLoader } from "../ChatMessage/MessageLoader.js";
8
8
  import { Alternatives } from "../Alternatives/Alternatives.js";
9
9
  import { MessageVariant } from "../../types/model.types.js";
10
- import { ColorScheme } from "../../types/style.types.js";
11
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  const TOOLBAR_HEIGHT = 140;
13
12
  const BOTTOM_OFFSET = Platform.select({
@@ -17,8 +16,7 @@ const BOTTOM_OFFSET = Platform.select({
17
16
  export const ChatbotMessages = ({
18
17
  model,
19
18
  isHintFeedback,
20
- isTextToSpeechEnabled,
21
- colorScheme = ColorScheme.Blue
19
+ isTextToSpeechEnabled
22
20
  }) => {
23
21
  const dimensions = useWindowDimensions();
24
22
  const ref = useRef(null);
@@ -28,12 +26,10 @@ export const ChatbotMessages = ({
28
26
  const currentPlayingId = useUnit(model.t2s.$currentPlayingId);
29
27
  const isTranslated = useUnit(model.translation.$isTranslated);
30
28
  const audioStatus = useUnit(model.t2s.$status);
31
- const errorSpottingEnabled = useUnit(model.errorSpotting.$isEnabled);
29
+ const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET;
32
30
  const messages = useStoreMap(model.$currentChatData, ({
33
31
  messages
34
32
  }) => messages);
35
- const lastMessageId = messages.at(-1)?.id;
36
- const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET;
37
33
  const askChatForHelp = (message, translatedMessage) => {
38
34
  void model.sendHelpRequestFx({
39
35
  message,
@@ -58,11 +54,8 @@ export const ChatbotMessages = ({
58
54
  style: styles.gap,
59
55
  children: [messages.map(message => /*#__PURE__*/_jsx(ChatMessage, {
60
56
  isTranslated: isTranslated,
61
- withIcon: !message.isOwnMessage && message.id === lastMessageId,
62
57
  message: message,
63
58
  variant: message.isOwnMessage ? MessageVariant.SENT : MessageVariant.RECEIVED,
64
- colorScheme: colorScheme,
65
- withErrorSpotting: errorSpottingEnabled && !message.isOwnMessage,
66
59
  t2sState: {
67
60
  isEnabled: isTextToSpeechEnabled && !message.isOwnMessage,
68
61
  isActive: message.id === currentPlayingId,
@@ -70,14 +63,11 @@ export const ChatbotMessages = ({
70
63
  status: audioStatus,
71
64
  disabled: isTextToSpeechPending
72
65
  }
73
- }, message.id)), isHelpRequestPending && /*#__PURE__*/_jsx(MessageLoader, {
74
- colorScheme: colorScheme
75
- })]
66
+ }, message.id)), isHelpRequestPending && /*#__PURE__*/_jsx(MessageLoader, {})]
76
67
  }), !isHelpRequestPending && isOpen && /*#__PURE__*/_jsx(Alternatives, {
77
68
  onPressAlternative: askChatForHelp,
78
69
  hasMessages: messages.length > 1,
79
- isHintFeedback: isHintFeedback,
80
- colorScheme: colorScheme
70
+ isHintFeedback: isHintFeedback
81
71
  })]
82
72
  })
83
73
  });
@@ -1 +1 @@
1
- {"version":3,"names":["React","useRef","Platform","ScrollView","StyleSheet","useWindowDimensions","View","useStoreMap","useUnit","ChatMessage","MessageLoader","Alternatives","MessageVariant","ColorScheme","jsx","_jsx","jsxs","_jsxs","TOOLBAR_HEIGHT","BOTTOM_OFFSET","select","web","default","ChatbotMessages","model","isHintFeedback","isTextToSpeechEnabled","colorScheme","Blue","dimensions","ref","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","errorSpottingEnabled","errorSpotting","$isEnabled","messages","$currentChatData","lastMessageId","at","id","MAX_HEIGHT","height","askChatForHelp","message","translatedMessage","style","styles","container","maxHeight","children","bounces","contentContainerStyle","list","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","map","withIcon","isOwnMessage","variant","SENT","RECEIVED","withErrorSpotting","t2sState","isEnabled","isActive","isLoading","status","disabled","onPressAlternative","hasMessages","length","create","flex","alignItems","width","paddingVertical","paddingRight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AAC1F,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAGrD,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,aAAa,QAAQ,iCAA8B;AAC5D,SAASC,YAAY,QAAQ,iCAA8B;AAC3D,SAASC,cAAc,QAAQ,4BAAyB;AACxD,SAASC,WAAW,Q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qB,IAAI,CAACgC,OAAO,CAACkB,YAAY;YACzDO,QAAQ,EAAEzB,OAAO,CAACJ,EAAE,KAAKf,gBAAgB;YACzC6C,SAAS,EAAEhD,qBAAqB;YAChCiD,MAAM,EAAExC,WAAW;YACnByC,QAAQ,EAAElD;UACZ;QAAE,GAbGsB,OAAO,CAACJ,EAcd,CACF,CAAC,EAEDrB,oBAAoB,iBAAIlB,IAAA,CAACL,aAAa;UAACiB,WAAW,EAAEA;QAAY,CAAE,CAAC;MAAA,CAChE,CACP,EAEA,CAACM,oBAAoB,IAAIF,MAAM,iBAC9BhB,IAAA,CAACJ,YAAY;QACX4E,kBAAkB,EAAE9B,cAAe;QACnC+B,WAAW,EAAEtC,QAAQ,CAACuC,MAAM,GAAG,CAAE;QACjChE,cAAc,EAAEA,cAAe;QAC/BE,WAAW,EAAEA;MAAY,CAC1B,CACF;IAAA,CACS;EAAC,CACT,CAAC;AAEX,CAAC;AAED,MAAMkC,MAAM,GAAGzD,UAAU,CAACsF,MAAM,CAAC;EAC/B5B,SAAS,EAAE;IACT6B,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,UAAU;IACtBC,KAAK,EAAE,GAAG;IACVrC,MAAM,EAAE;EACV,CAAC;EACDW,IAAI,EAAE;IACJyB,UAAU,EAAE,UAAU;IACtBE,eAAe,EAAE,CAAC;IAClBC,YAAY,EAAE;EAChB,CAAC;EACDtB,GAAG,EAAE;IACHkB,IAAI,EAAE,CAAC;IACPlB,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useRef","Platform","ScrollView","StyleSheet","useWindowDimensions","View","useStoreMap","useUnit","ChatMessage","MessageLoader","Alternatives","MessageVariant","jsx","_jsx","jsxs","_jsxs","TOOLBAR_HEIGHT","BOTTOM_OFFSET","select","web","default","ChatbotMessages","model","isHintFeedback","isTextToSpeechEnabled","dimensions","ref","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","MAX_HEIGHT","height","messages","$currentChatData","askChatForHelp","message","translatedMessage","style","styles","container","maxHeight","children","bounces","contentContainerStyle","list","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","map","variant","isOwnMessage","SENT","RECEIVED","t2sState","isEnabled","isActive","id","isLoading","status","disabled","onPressAlternative","hasMessages","length","create","flex","alignItems","width","paddingVertical","paddingRight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAEC,IAAI,QAAQ,cAAc;AAC1F,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAErD,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,aAAa,QAAQ,iCAA8B;AAC5D,SAASC,YAAY,QAAQ,iCAA8B;AAC3D,SAASC,cAAc,QAAQ,4BAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQxD,MAAMC,cAAc,GAAG,GAAG;AAC1B,MAAMC,aAAa,GAAGhB,QAAQ,CAACiB,MAAM,CAAC;EACpCC,GAAG,EAAE,GAAG;EACRC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,KAAK;EACLC,cAAc;EACdC;AACoB,CAAC,KAAK;EAC1B,MAAMC,UAAU,GAAGrB,mBAAmB,CAAC,CAAC;EACxC,MAAMsB,GAAG,GAAG1B,MAAM,CAAa,IAAI,CAAC;EACpC,MAAM2B,MAAM,GAAGpB,OAAO,CAACe,KAAK,CAACM,OAAO,CAAC;EAErC,MAAMC,oBAAoB,GAAGtB,OAAO,CAACe,KAAK,CAACQ,iBAAiB,CAACC,OAAO,C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
 
3
- import React from 'react';
4
3
  import { useStoreMap, useUnit } from 'effector-react';
5
4
  import { ChatbotMessages } from "./ChatMessages/ChatbotMessages.js";
6
5
  import { ChatControls } from "./ChatControls/ChatControls.js";
6
+ import React from 'react';
7
7
  import { ChatBotModelContext } from "../context/ChatBotModelContext.js";
8
- import { ColorScheme } from "../types/style.types.js";
9
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  export const Chatbot = ({
11
10
  model,
@@ -13,8 +12,7 @@ export const Chatbot = ({
13
12
  isTextToSpeechEnabled = false,
14
13
  textToSpeechConfig,
15
14
  ButtonWrapper,
16
- iconSize,
17
- colorScheme = ColorScheme.Blue
15
+ iconSize
18
16
  }) => {
19
17
  const alternatives = useUnit(model.$alternatives);
20
18
  const isAvailable = useStoreMap(model.$currentChatData, ({
@@ -30,7 +28,6 @@ export const Chatbot = ({
30
28
  value: model,
31
29
  children: [/*#__PURE__*/_jsx(ChatbotMessages, {
32
30
  model: model,
33
- colorScheme: colorScheme,
34
31
  isHintFeedback: isHintFeedback,
35
32
  isTextToSpeechEnabled: isTextToSpeechEnabled
36
33
  }), /*#__PURE__*/_jsx(ChatControls, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useStoreMap","useUnit","ChatbotMessages","ChatControls","ChatBotModelContext","ColorScheme","jsx","_jsx","jsxs","_jsxs","Chatbot","model","isHintFeedback","isTextToSpeechEnabled","textToSpeechConfig","ButtonWrapper","iconSize","colorScheme","Blue","alternatives","$alternatives","isAvailable","$currentChatData","t2s","setAudioConfig","openChat","setIsOpen","closeChat","chatAccess","Provider","value","children","onPressChatIcon","onPressClose"],"sourceRoot":"../../../../../src","sources":["features/chatbot/components/Chatbot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA4C,OAAO;AAC/D,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAGrD,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,YAAY,QAAQ,gCAA6B;AAE1D,SA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EnC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useStoreMap","useUnit","ChatbotMessages","ChatControls","React","ChatBotModelContext","jsx","_jsx","jsxs","_jsxs","Chatbot","model","isHintFeedback","isTextToSpeechEnabled","textToSpeechConfig","ButtonWrapper","iconSize","alternatives","$alternatives","isAvailable","$currentChatData","t2s","setAudioConfig","openChat","setIsOpen","closeChat","chatAccess","Provider","value","children","onPressChatIcon","onPressClose"],"sourceRoot":"../../../../../src","sources":["features/chatbot/components/Chatbot.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AAErD,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,YAAY,QAAQ,gCAA6B;AAE1D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,QAAQ,mCAAgC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAcpE,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACtBC,KAAK;EACLC,cAAc;EACdC,qBAAqB,GAAG,KAAK;EAC7BC,kBAAkB;EAClBC,aAAa;EACbC;AACY,CAAC,KAAK;EAClB,MAAMC,YAAY,GAAGhB,OAAO,CAACU,KAAK,CAACO,aAAa,CAAC;EACjD,MAAMC,WAAW,GAAGnB,WAAW,CAACW,KAAK,CAACS,gBAAgB,EAAE,CAAC;IAAED;EAAY,CAAC,KAAKA,WAAW,CAAC;EACzFR,KAAK,CAACU,GAAG,CAACC,cAAc,CAACR,kBAAkB,IAAI,IAAI,CAAC;EAEpD,MAAMS,QAAQ,GAAGA,CAAA,KAAMZ,KAAK,CAACa,SAAS,CAAC,IAAI,CAAC;EAC5C,MAAMC,SAAS,GAAGA,CAAA,KAAMd,KAAK,CAACa,SAAS,CAAC,KAAK,CAAC;EAE9C,IAAI,CAACL,WAAW,IAAIF,YAAY,EAAES,UAAU,KAAK,KAAK,EAAE;IACtD,OAAO,IAAI;EACb;EAEA,oBACEjB,KAAA,CAACJ,mBAAmB,CAACsB,QAAQ;IAACC,KAAK,EAAEjB,KAAM;IAAAkB,QAAA,gBACzCtB,IAAA,CAACL,eAAe;MACdS,KAAK,EAAEA,KAAM;MACbC,cAAc,EAAEA,cAAe;MAC/BC,qBAAqB,EAAEA;IAAsB,CAC9C,CAAC,eAEFN,IAAA,CAACJ,YAAY;MACXQ,KAAK,EAAEA,KAAM;MACbmB,eAAe,EAAEP,QAAS;MAC1BQ,YAAY,EAAEN,SAAU;MACxBV,aAAa,EAAEA,aAAc;MAC7BC,QAAQ,EAAEA;IAAS,CACpB,CAAC;EAAA,CAC0B,CAAC;AAEnC,CAAC","ignoreList":[]}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
 
3
- import React, { useEffect, useMemo } from 'react';
3
+ import React from 'react';
4
+ import { useEffect, useMemo } from 'react';
4
5
  import { View, Animated, StyleSheet, Platform } from 'react-native';
5
- import { COLORS } from '@magmamath/react-native-ui';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  export const ThreeDotsLoader = ({
8
8
  dotsCount = 3,
9
9
  animationDuration = 250,
10
- backgroundColor = COLORS.PRIMARY_BLUE
10
+ backgroundColor = '#55ABE0'
11
11
  }) => {
12
12
  const isWeb = Platform.OS === 'web';
13
13
  const animations = useMemo(() => [...Array(dotsCount)].map(() => new Animated.Value(0)), [dotsCount]);
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useMemo","View","Animated","StyleSheet","Platform","COLORS","jsx","_jsx","ThreeDotsLoader","dotsCount","animationDuration","backgroundColor","PRIMARY_BLUE","isWeb","OS","animations","Array","map","Value","animationsArray","anim","index","sequence","timing","toValue","duration","useNativeDriver","delay","loop","parallel","start","style","styles","container","children","translateY","interpolate","inputRange","outputRange","dot","transform","create","flexDirection","justifyContent","alignItems","borderRadius","height","width","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK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,iBAAiB,CAAC,CAAC;EAEnC,oBACEH,IAAA,CAACN,IAAI;IAAC8B,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,EAC3BnB,UAAU,CAACE,GAAG,CAAC,CAACG,IAAI,EAAEC,KAAK,KAAK;MAC/B,MAAMc,UAAU,GAAGf,IAAI,CAACgB,WAAW,CAAC;QAClCC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAClBC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;MACrB,CAAC,CAAC;MAEF,oBACE/B,IAAA,CAACL,QAAQ,CAACD,IAAI;QAEZ8B,KAAK,EAAE,CAACC,MAAM,CAACO,GAAG,EAAE;UAAEC,SAAS,EAAE,CAAC;YAAEL;UAAW,CAAC;QAAE,CAAC,EAAE;UAAExB;QAAgB,CAAC;MAAE,GADrEU,KAEN,CAAC;IAEN,CAAC;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAG7B,UAAU,CAACsC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDL,GAAG,EAAE;IACHM,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","View","Animated","StyleSheet","Platform","jsx","_jsx","ThreeDotsLoader","dotsCount","animationDuration","backgroundColor","isWeb","OS","animations","Array","map","Value","animationsArray","anim","index","sequence","timing","toValue","duration","useNativeDriver","delay","loop","parallel","start","style","styles","container","children","translateY","interpolate","inputRange","outputRange","dot","transform","create","flexDirection","justifyContent","alignItems","borderRadius","height","width","marginHorizontal"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx"],"mappings":";;AAAA,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nC,oBACEH,IAAA,CAACL,IAAI;IAAC4B,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,EAC3BnB,UAAU,CAACE,GAAG,CAAC,CAACG,IAAI,EAAEC,KAAK,KAAK;MAC/B,MAAMc,UAAU,GAAGf,IAAI,CAACgB,WAAW,CAAC;QAClCC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAClBC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;MACrB,CAAC,CAAC;MAEF,oBACE9B,IAAA,CAACJ,QAAQ,CAACD,IAAI;QAEZ4B,KAAK,EAAE,CACLC,MAAM,CAACO,GAAG,EACV;UAAEC,SAAS,EAAE,CAAC;YAAEL;UAAW,CAAC;QAAE,CAAC,EAC/B;UAAEvB;QAAgB,CAAC;MACnB,GALGS,KAMN,CAAC;IAEN,CAAC;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAG3B,UAAU,CAACoC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDL,GAAG,EAAE;IACHM,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { ButtonColor, COLORS } from '@magmamath/react-native-ui';
4
3
  import { Platform } from 'react-native';
5
- import { MessageVariant } from "./types/model.types.js";
6
- import { ColorScheme } from "./types/style.types.js";
7
4
  export const AUDIO_CONFIG = {
8
5
  audioEncoding: 'LINEAR16',
9
6
  pitch: 0,
@@ -36,36 +33,4 @@ export const KATEX_REPLACEMENTS = {
36
33
  export const KATEX_REPLACEMENTS_REVERSE = {
37
34
  __KATEX_DOLLAR_SYMBOL__: '$'
38
35
  };
39
- export const MESSAGE_COLORS_MAP = {
40
- [ColorScheme.Blue]: {
41
- [MessageVariant.RECEIVED]: {
42
- background: COLORS.NEUTRAL_3,
43
- icon: ButtonColor.BLUE
44
- },
45
- [MessageVariant.SENT]: {
46
- background: COLORS.PRIMARY_BLUE,
47
- icon: ButtonColor.BLUE
48
- }
49
- },
50
- [ColorScheme.Yellow]: {
51
- [MessageVariant.RECEIVED]: {
52
- background: COLORS.NEUTRAL_3,
53
- icon: ButtonColor.YELLOW
54
- },
55
- [MessageVariant.SENT]: {
56
- background: COLORS.PRIMARY_YELLOW,
57
- icon: ButtonColor.YELLOW
58
- }
59
- }
60
- };
61
- export const CONTROLS_COLORS_MAP = {
62
- [ColorScheme.Blue]: {
63
- hover: COLORS.PRIMARY_BLUE,
64
- background: COLORS.PRIMARY_BLUE
65
- },
66
- [ColorScheme.Yellow]: {
67
- hover: COLORS.PRIMARY_YELLOW,
68
- background: COLORS.PRIMARY_YELLOW
69
- }
70
- };
71
36
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ButtonColor","COLORS","Platform","MessageVariant","ColorScheme","AUDIO_CONFIG","audioEncoding","pitch","speakingRate","DEFAULT_VOICE","languageCode","name","TEXT_TO_SPEECH_CONFIG","select","ios","audioConfig","voice","default","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","__KATEX_DOLLAR_SYMBOL__","MESSAGE_COLORS_MAP","Blue","RECEIVED","background","NEUTRAL_3","icon","BLUE","SENT","PRIMARY_BLUE","Yellow","YELLOW","PRIMARY_YELLOW","CONTROLS_COLORS_MAP","hover"],"sourceRoot":"../../../../src","sources":["features/chatbot/constants.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,MAAM,QAAQ,4BAA4B;AAChE,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,cAAc,QAAQ,wBAAqB;AACpD,SAASC,WAAW,QAAQ,wBAAqB;AAEjD,OAAO,MAAMC,YAAY,GAAG;EAC1BC,aAAa,EAAE,UAA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AAC+B;IACpB;EACF;AACF,CAAC;AAED,OAAO,MAAME,mBAAmB,GAAG;EACjC,CAAC7B,WAAW,CAACkB,IAAI,GAAG;IAClBY,KAAK,EAAEjC,MAAM,CAAC4B,YAAY;IAC1BL,UAAU,EAAEvB,MAAM,CAAC4B;EACrB,CAAC;EACD,CAACzB,WAAW,CAAC0B,MAAM,GAAG;IACpBI,KAAK,EAAEjC,MAAM,CAAC+B,cAAc;IAC5BR,UAAU,EAAEvB,MAAM,CAAC+B;EACrB;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Platform","AUDIO_CONFIG","audioEncoding","pitch","speakingRate","DEFAULT_VOICE","languageCode","name","TEXT_TO_SPEECH_CONFIG","select","ios","audioConfig","voice","default","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","__KATEX_DOLLAR_SYMBOL__"],"sourceRoot":"../../../../src","sources":["features/chatbot/constants.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,YAAY,GAAG;EAC1BC,aAAa,EAAE,UAAU;EACzBC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,aAAa,GAAG;EAC3BC,YAAY,EAAE,OAAO;EACrBC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAGR,QAAQ,CAACS,MAAM,CAAC;EACnDC,GAAG,EAAE;IACHC,WAAW,EAAE;MACXT,aAAa,EAAE,KAAK;MACpBC,KAAK,EAAE,GAAG;MACVC,YAAY,EAAE;IAChB,CAAC;IACDQ,KAAK,EAAE;MACLN,YAAY,EAAE,OAAO;MACrBC,IAAI,EAAE;IACR;EACF,CAAC;EACDM,OAAO,EAAE;IACPF,WAAW,EAAEV,YAAY;IACzBW,KAAK,EAAEP;EACT;AACF,CAAC,CAAC;AAEF,OAAO,MAAMS,kBAAkB,GAAG;EAChC,KAAK,EAAE;AACT,CAAU;AAEV,OAAO,MAAMC,0BAA0B,GAAG;EACxCC,uBAAuB,EAAE;AAC3B,CAAU","ignoreList":[]}
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- import { createEvent, createStore, sample, createEffect, restore } from 'effector';
3
+ import { createEvent, createStore, sample, createEffect } from 'effector';
4
4
  const AUTO_CLOSE_TIMEOUT = 5000;
5
5
  export class ErrorSpottingModel {
6
6
  errorSpottingPressed = createEvent();
7
7
  activeDataChanged = createEvent();
8
8
  spottingHidden = createEvent();
9
- setIsEnabled = createEvent();
10
- $isEnabled = restore(this.setIsEnabled, false);
11
9
  $validationKey = createStore(null);
12
10
  $activeData = createStore(null).on(this.activeDataChanged, (_, payload) => payload).on(this.spottingHidden, state => {
13
11
  if (state) return {
@@ -123,11 +121,5 @@ export class ErrorSpottingModel {
123
121
  this.activeDataChanged(null);
124
122
  this.abortPendingRequest();
125
123
  }
126
- enable() {
127
- this.setIsEnabled(true);
128
- }
129
- disable() {
130
- this.setIsEnabled(false);
131
- }
132
124
  }
133
125
  //# sourceMappingURL=ErrorSpottingModel.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createEvent","createStore","sample","createEffect","restore","AUTO_CLOSE_TIMEOUT","ErrorSpottingModel","errorSpottingPressed","activeDataChanged","spottingHidden","setIsEnabled","$isEnabled","$validationKey","$activeData","on","_","payload","state","isActive","isDisabled","validationKey","closeTimeout","constructor","api","$currentChatData","$currentChatContext","$isLoading","spotErrorFx","pending","currentThread","strokesValidationKey","clock","doneData","source","chatData","activeSpotting","fn","result","key","currentKey","strokesIds","highlightedStrokeIds","target","context","message","Error","strokes","problemDescription","problem","correctAnswer","problemAnswer","userAnswer","answer","hint","then","scheduleClose","watch","spotting","clearTimeout","setTimeout","bindStrokesValidation","$store","abortPendingRequest","isPending","getState","controller","abort","reset","enable","disable"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingModel.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,WAAW,EAAEC,MAAM,EAAE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G,IAAI;IAC1B,CAAC,EAAEhB,kBAAkB,CAAC;EACxB;EAEOuD,qBAAqBA,CAACC,MAA4B,EAAE;IACzD3D,MAAM,CAAC;MACL+B,MAAM,EAAE4B,MAAM;MACdnB,MAAM,EAAE,IAAI,CAAC9B;IACf,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEOkD,mBAAmBA,CAAA,EAAG;IAC3B,MAAMC,SAAS,GAAG,IAAI,CAACxC,GAAG,CAACI,WAAW,CAACC,OAAO,CAACoC,QAAQ,CAAC,CAAC;IACzD,IAAID,SAAS,EAAE,IAAI,CAACxC,GAAG,CAACI,WAAW,CAACsC,UAAU,CAACC,KAAK,CAAC,CAAC;EACxD;EAEOC,KAAKA,CAAA,EAAG;IACb,IAAI,CAAC3D,iBAAiB,CAAC,IAAI,CAAC;IAC5B,IAAI,CAACsD,mBAAmB,CAAC,CAAC;EAC5B;EAEOM,MAAMA,CAAA,EAAG;IACd,IAAI,CAAC1D,YAAY,CAAC,IAAI,CAAC;EACzB;EAEO2D,OAAOA,CAAA,EAAG;IACf,IAAI,CAAC3D,YAAY,CAAC,KAAK,CAAC;EAC1B;AACF","ignoreList":[]}
1
+ {"version":3,"names":["createEvent","createStore","sample","createEffect","AUTO_CLOSE_TIMEOUT","ErrorSpottingModel","errorSpottingPressed","activeDataChanged","spottingHidden","$validationKey","$activeData","on","_","payload","state","isActive","isDisabled","validationKey","closeTimeout","constructor","api","$currentChatData","$currentChatContext","$isLoading","spotErrorFx","pending","currentThread","strokesValidationKey","clock","doneData","source","chatData","activeSpotting","fn","result","key","currentKey","strokesIds","highlightedStrokeIds","target","context","message","Error","strokes","problemDescription","problem","correctAnswer","problemAnswer","userAnswer","answer","hint","then","scheduleClose","watch","spotting","clearTimeout","setTimeout","bindStrokesValidation","$store","abortPendingRequest","isPending","getState","controller","abort","reset"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingModel.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,W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M,CAAC;MACL4B,MAAM,EAAE4B,MAAM;MACdnB,MAAM,EAAE,IAAI,CAAC9B;IACf,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEOkD,mBAAmBA,CAAA,EAAG;IAC3B,MAAMC,SAAS,GAAG,IAAI,CAACxC,GAAG,CAACI,WAAW,CAACC,OAAO,CAACoC,QAAQ,CAAC,CAAC;IACzD,IAAID,SAAS,EAAE,IAAI,CAACxC,GAAG,CAACI,WAAW,CAACsC,UAAU,CAACC,KAAK,CAAC,CAAC;EACxD;EAEOC,KAAKA,CAAA,EAAG;IACb,IAAI,CAACzD,iBAAiB,CAAC,IAAI,CAAC;IAC5B,IAAI,CAACoD,mBAAmB,CAAC,CAAC;EAC5B;AACF","ignoreList":[]}
@@ -5,5 +5,4 @@ export { ChatbotModel } from "./model/ChatBotModel.js";
5
5
  export { AudioStatus } from "./types/t2s.types.js";
6
6
  export { MessageVariant } from "./types/model.types.js";
7
7
  export { DefaultMessagesCreator } from "./model/DefaultMessageCreator.js";
8
- export { ColorScheme } from "./types/style.types.js";
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Chatbot","ChatbotModel","AudioStatus","MessageVariant","DefaultMessagesCreator","ColorScheme"],"sourceRoot":"../../../../src","sources":["features/chatbot/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAsB;AAC9C,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,WAAW,QAA4B,sBAAmB;AACnE,SACEC,cAAc,QAGT,wBAAqB;AAE5B,SAASC,sBAAsB,QAAQ,kCAA+B;AAGtE,SAASC,WAAW,QAAQ,wBAAqB","ignoreList":[]}
1
+ {"version":3,"names":["Chatbot","ChatbotModel","AudioStatus","MessageVariant","DefaultMessagesCreator"],"sourceRoot":"../../../../src","sources":["features/chatbot/index.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAsB;AAC9C,SAASC,YAAY,QAAQ,yBAAsB;AACnD,SAASC,WAAW,QAA4B,sBAAmB;AACnE,SACEC,cAAc,QAGT,wBAAqB;AAE5B,SAASC,sBAAsB,QAAQ,kCAA+B","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { attach, combine, createEffect, createEvent, restore, sample } from 'effector';
3
+ import { attach, combine, createEffect, createEvent, createStore, restore, sample } from 'effector';
4
4
  import { ChatbotAPI } from "./ChatbotApi.js";
5
5
  import { ChatbotTranslation } from "./translation.js";
6
6
  import { ChatTextToSpeechModel } from "./t2s.js";
@@ -10,16 +10,13 @@ import { ChatsCacheModel, defaultChatData } from "./ChatsCacheModel.js";
10
10
  import { ErrorSpottingModel } from "../errorSpotting/ErrorSpottingModel.js";
11
11
  import { withEvent } from "../../../lib/effector/withEvent.js";
12
12
  import { ChatBotTextManager } from "./ChatBoxTextManager.js";
13
- import { ControlledSample } from "../../../lib/effector/ControlledSample.js";
14
13
  export class ChatbotModel {
15
14
  textManager = new ChatBotTextManager();
16
15
  defaultMessages = this.textManager.messages;
17
16
  threadManager = new ChatBotThreadManager({
18
17
  messages: this.defaultMessages
19
18
  });
20
- setCurrentKey = createEvent();
21
- $currentKey = restore(this.setCurrentKey, '');
22
- unbindCurrentKey = null;
19
+ $currentKey = createStore('');
23
20
  resetAlternatives = createEvent();
24
21
  setAlternatives = createEvent();
25
22
  setIsOpen = createEvent();
@@ -116,38 +113,6 @@ export class ChatbotModel {
116
113
  target: this.$isOpen
117
114
  });
118
115
  }
119
- this.startConversation = attach({
120
- source: {
121
- currentChatData: this.$currentChatData,
122
- alternatives: this.$alternatives
123
- },
124
- mapParams: (props, source) => ({
125
- ...props,
126
- ...source
127
- }),
128
- effect: createEffect(({
129
- currentChatData,
130
- alternatives,
131
- initOnly
132
- }) => {
133
- const {
134
- key,
135
- messages
136
- } = currentChatData;
137
- if (!alternatives?.chatAccess) return;
138
- if (messages.length) {
139
- if (initOnly) return;
140
- return this.reinitConversation({
141
- key
142
- });
143
- }
144
- this.cache.add(key, {
145
- messages: [this.defaultMessages.start],
146
- isAvailable: true,
147
- currentThread: null
148
- });
149
- })
150
- });
151
116
  }
152
117
  createSendHelpRequestFx() {
153
118
  const effect = attach({
@@ -213,26 +178,20 @@ export class ChatbotModel {
213
178
  return effect;
214
179
  }
215
180
  bindKey($store) {
216
- this.unbindCurrentKey?.();
217
- this.unbindCurrentKey = $store.watch(value => {
218
- this.setCurrentKey(value);
219
- this.threadManager.setCurrentKey(value);
181
+ sample({
182
+ source: $store,
183
+ target: this.$currentKey
220
184
  });
221
- const initialValue = $store.getState();
222
- this.setCurrentKey(initialValue);
223
- this.threadManager.setCurrentKey(initialValue);
185
+ this.threadManager.bindKeyStore($store);
224
186
  return this;
225
187
  }
226
- bindExternalTranslationState($isTranslated) {
227
- if (!this.externalTranslationStateSync) {
228
- this.externalTranslationStateSync = new ControlledSample({
229
- clock: [this.$currentKey.updates, this.startConversation.done],
230
- source: $isTranslated,
231
- filter: flag => flag,
232
- target: this.translation.translateAllMessagesFx,
233
- isActiveDefault: true
234
- });
235
- }
188
+ bindExternalTranslationState($store) {
189
+ sample({
190
+ source: $store,
191
+ clock: [this.$currentKey.updates, this.startConversation.done],
192
+ filter: isTranslated => !!isTranslated,
193
+ target: this.translation.translateAllMessagesFx
194
+ });
236
195
  return this;
237
196
  }
238
197
  setUpT2S(config) {
@@ -245,6 +204,30 @@ export class ChatbotModel {
245
204
  return this;
246
205
  }
247
206
  sendHelpRequestFx = this.createSendHelpRequestFx();
207
+ startConversation = attach({
208
+ source: this.$currentChatData,
209
+ mapParams: (props, source) => ({
210
+ ...props,
211
+ ...source
212
+ }),
213
+ effect: createEffect(({
214
+ key,
215
+ messages,
216
+ initOnly
217
+ }) => {
218
+ if (messages.length) {
219
+ if (initOnly) return;
220
+ return this.reinitConversation({
221
+ key
222
+ });
223
+ }
224
+ this.cache.add(key, {
225
+ messages: [this.defaultMessages.start],
226
+ isAvailable: true,
227
+ currentThread: null
228
+ });
229
+ })
230
+ });
248
231
  setHintMessage({
249
232
  key,
250
233
  ...message
@@ -294,16 +277,5 @@ export class ChatbotModel {
294
277
  this.threadManager.reset();
295
278
  this.errorSpotting.reset();
296
279
  });
297
- unbindKey() {
298
- this.unbindCurrentKey?.();
299
- this.unbindCurrentKey = null;
300
- this.setCurrentKey('');
301
- this.threadManager.setCurrentKey('');
302
- return this;
303
- }
304
- unbindExternalTranslationState() {
305
- this.externalTranslationStateSync?.disable();
306
- return this;
307
- }
308
280
  }
309
281
  //# sourceMappingURL=ChatBotModel.js.map