@magmamath/students-features 0.5.0 → 0.5.1-rc-0

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 (414) hide show
  1. package/dist/commonjs/features/celebrations/config.js +4 -4
  2. package/dist/commonjs/features/celebrations/config.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +1 -2
  4. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  6. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +47 -30
  7. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  8. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +42 -22
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  10. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +14 -11
  11. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  12. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +32 -17
  13. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  14. package/dist/commonjs/features/chatbot/components/Chatbot.js +7 -5
  15. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  16. package/dist/commonjs/features/chatbot/index.js +7 -0
  17. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  18. package/dist/commonjs/features/chatbot/model/{ChatBotThreadManager.js → ChatBotMessageHandler.js} +22 -44
  19. package/dist/commonjs/features/chatbot/model/ChatBotMessageHandler.js.map +1 -0
  20. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +125 -146
  21. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  22. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +12 -12
  23. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  24. package/dist/commonjs/features/chatbot/model/ThreadItem.js +8 -16
  25. package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
  26. package/dist/commonjs/features/chatbot/model/{ChatbotApi.js → api.js} +1 -2
  27. package/dist/commonjs/features/chatbot/model/api.js.map +1 -0
  28. package/dist/commonjs/features/chatbot/model/constants.js.map +1 -1
  29. package/dist/commonjs/features/chatbot/model/messagesHelper.js +7 -7
  30. package/dist/commonjs/features/chatbot/model/messagesHelper.js.map +1 -1
  31. package/dist/commonjs/features/chatbot/model/t2s.js +13 -18
  32. package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
  33. package/dist/commonjs/features/chatbot/model/translation.helpers.js.map +1 -1
  34. package/dist/commonjs/features/chatbot/model/translation.js +19 -28
  35. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  36. package/dist/commonjs/features/chatbot/types/api.types.js +0 -4
  37. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  38. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +2 -4
  39. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +1 -1
  40. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  41. package/dist/commonjs/index.js.map +1 -1
  42. package/dist/commonjs/lib/effector/createEntityFieldStore.js +0 -4
  43. package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -1
  44. package/{src/shared/translation → dist/commonjs/lib}/localization/en.json +1 -8
  45. package/dist/{module/shared/translation → commonjs/lib}/localization/gb.json +1 -8
  46. package/dist/commonjs/{shared/translation → lib}/localization/sw.json +1 -8
  47. package/dist/commonjs/shared/icons/icon.types.js +0 -4
  48. package/dist/commonjs/shared/translation/constants.js +3 -3
  49. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  50. package/dist/commonjs/shared/translation/helpers.js +6 -22
  51. package/dist/commonjs/shared/translation/helpers.js.map +1 -1
  52. package/dist/commonjs/shared/translation/hooks.js +5 -3
  53. package/dist/commonjs/shared/translation/hooks.js.map +1 -1
  54. package/dist/commonjs/shared/translation/model.js +1 -1
  55. package/dist/commonjs/shared/translation/model.js.map +1 -1
  56. package/dist/commonjs/shared/translation/types.js +1 -1
  57. package/dist/commonjs/shared/translation/types.js.map +1 -1
  58. package/dist/module/features/celebrations/config.js +4 -4
  59. package/dist/module/features/celebrations/config.js.map +1 -1
  60. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +1 -2
  61. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
  62. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  63. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +48 -31
  64. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  65. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +43 -23
  66. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  67. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +13 -11
  68. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
  69. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +32 -17
  70. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  71. package/dist/module/features/chatbot/components/Chatbot.js +8 -6
  72. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  73. package/dist/module/features/chatbot/index.js +1 -0
  74. package/dist/module/features/chatbot/index.js.map +1 -1
  75. package/dist/module/features/chatbot/model/{ChatBotThreadManager.js → ChatBotMessageHandler.js} +20 -42
  76. package/dist/module/features/chatbot/model/ChatBotMessageHandler.js.map +1 -0
  77. package/dist/module/features/chatbot/model/ChatBotModel.js +126 -147
  78. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  79. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +12 -12
  80. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  81. package/dist/module/features/chatbot/model/ThreadItem.js +8 -16
  82. package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
  83. package/dist/module/features/chatbot/model/{ChatbotApi.js → api.js} +1 -2
  84. package/dist/module/features/chatbot/model/api.js.map +1 -0
  85. package/dist/module/features/chatbot/model/constants.js.map +1 -1
  86. package/dist/module/features/chatbot/model/messagesHelper.js +7 -7
  87. package/dist/module/features/chatbot/model/messagesHelper.js.map +1 -1
  88. package/dist/module/features/chatbot/model/t2s.js +14 -19
  89. package/dist/module/features/chatbot/model/t2s.js.map +1 -1
  90. package/dist/module/features/chatbot/model/translation.helpers.js.map +1 -1
  91. package/dist/module/features/chatbot/model/translation.js +19 -28
  92. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  93. package/dist/module/features/chatbot/types/api.types.js +0 -2
  94. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  95. package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +2 -4
  96. package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +1 -1
  97. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  98. package/dist/module/index.js.map +1 -1
  99. package/dist/module/lib/effector/createEntityFieldStore.js +0 -4
  100. package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -1
  101. package/dist/module/{shared/translation → lib}/localization/en.json +1 -8
  102. package/dist/{commonjs/shared/translation → module/lib}/localization/gb.json +1 -8
  103. package/dist/module/{shared/translation → lib}/localization/sw.json +1 -8
  104. package/dist/module/shared/icons/icon.types.js +0 -2
  105. package/dist/module/shared/translation/constants.js +3 -3
  106. package/dist/module/shared/translation/constants.js.map +1 -1
  107. package/dist/module/shared/translation/helpers.js +5 -19
  108. package/dist/module/shared/translation/helpers.js.map +1 -1
  109. package/dist/module/shared/translation/hooks.js +6 -4
  110. package/dist/module/shared/translation/hooks.js.map +1 -1
  111. package/dist/module/shared/translation/model.js +1 -1
  112. package/dist/module/shared/translation/model.js.map +1 -1
  113. package/dist/module/shared/translation/types.js +0 -2
  114. package/dist/module/shared/translation/types.js.map +1 -1
  115. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +3 -1
  116. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  117. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +10 -7
  118. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  119. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +7 -5
  120. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  121. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  122. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  123. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  124. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  125. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +10 -2
  126. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  127. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +5 -2
  128. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  129. package/dist/typescript/commonjs/features/chatbot/index.d.ts +3 -4
  130. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  131. package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts +31 -0
  132. package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts.map +1 -0
  133. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +18 -24
  134. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  135. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +3 -5
  136. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  137. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +7 -13
  138. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  139. package/dist/typescript/commonjs/features/chatbot/model/{ChatbotApi.d.ts → api.d.ts} +3 -4
  140. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +1 -0
  141. package/dist/typescript/commonjs/features/chatbot/model/constants.d.ts.map +1 -1
  142. package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts +5 -7
  143. package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +6 -16
  145. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
  146. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +9 -8
  147. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  148. package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts +1 -2
  149. package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts.map +1 -1
  150. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +11 -12
  151. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  152. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +24 -19
  153. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  154. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts +7 -9
  155. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts.map +1 -1
  156. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +2 -3
  157. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
  158. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +1 -1
  159. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/index.d.ts +1 -0
  161. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  162. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts +0 -2
  163. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -1
  164. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts +0 -2
  165. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts.map +1 -1
  166. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -21
  167. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  168. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +2 -3
  169. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
  170. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +2 -2
  171. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
  172. package/dist/typescript/commonjs/shared/translation/index.d.ts +1 -0
  173. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
  174. package/dist/typescript/commonjs/shared/translation/model.d.ts +3 -43
  175. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  176. package/dist/typescript/commonjs/shared/translation/types.d.ts +4 -4
  177. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  178. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +3 -1
  179. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
  180. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +10 -7
  181. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  182. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +7 -5
  183. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  184. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  185. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  186. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +1 -1
  187. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
  188. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +10 -2
  189. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  190. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +5 -2
  191. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  192. package/dist/typescript/module/features/chatbot/index.d.ts +3 -4
  193. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  194. package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts +31 -0
  195. package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts.map +1 -0
  196. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +18 -24
  197. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  198. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +3 -5
  199. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  200. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +7 -13
  201. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  202. package/dist/typescript/module/features/chatbot/model/{ChatbotApi.d.ts → api.d.ts} +3 -4
  203. package/dist/typescript/module/features/chatbot/model/api.d.ts.map +1 -0
  204. package/dist/typescript/module/features/chatbot/model/constants.d.ts.map +1 -1
  205. package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts +5 -7
  206. package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts.map +1 -1
  207. package/dist/typescript/module/features/chatbot/model/t2s.d.ts +6 -16
  208. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
  209. package/dist/typescript/module/features/chatbot/model/translation.d.ts +9 -8
  210. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  211. package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts +1 -2
  212. package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts.map +1 -1
  213. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +11 -12
  214. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  215. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +24 -19
  216. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  217. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts +7 -9
  218. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts.map +1 -1
  219. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +2 -3
  220. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
  221. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +1 -1
  222. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  223. package/dist/typescript/module/index.d.ts +1 -0
  224. package/dist/typescript/module/index.d.ts.map +1 -1
  225. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts +0 -2
  226. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -1
  227. package/dist/typescript/module/shared/icons/icon.types.d.ts +0 -2
  228. package/dist/typescript/module/shared/icons/icon.types.d.ts.map +1 -1
  229. package/dist/typescript/module/shared/translation/constants.d.ts +0 -21
  230. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  231. package/dist/typescript/module/shared/translation/helpers.d.ts +2 -3
  232. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
  233. package/dist/typescript/module/shared/translation/hooks.d.ts +2 -2
  234. package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
  235. package/dist/typescript/module/shared/translation/index.d.ts +1 -0
  236. package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
  237. package/dist/typescript/module/shared/translation/model.d.ts +3 -43
  238. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  239. package/dist/typescript/module/shared/translation/types.d.ts +4 -4
  240. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  241. package/package.json +2 -2
  242. package/src/features/celebrations/config.ts +4 -4
  243. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +4 -2
  244. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +10 -7
  245. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +51 -34
  246. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +40 -15
  247. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +10 -9
  248. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +34 -17
  249. package/src/features/chatbot/components/Chatbot.tsx +11 -5
  250. package/src/features/chatbot/index.ts +4 -3
  251. package/src/features/chatbot/model/{ChatBotThreadManager.ts → ChatBotMessageHandler.ts} +27 -53
  252. package/src/features/chatbot/model/ChatBotModel.ts +149 -151
  253. package/src/features/chatbot/model/DefaultMessageCreator.ts +16 -17
  254. package/src/features/chatbot/model/ThreadItem.ts +10 -15
  255. package/src/features/chatbot/model/{ChatbotApi.ts → api.ts} +2 -5
  256. package/src/features/chatbot/model/constants.ts +0 -2
  257. package/src/features/chatbot/model/messagesHelper.ts +7 -12
  258. package/src/features/chatbot/model/t2s.ts +13 -28
  259. package/src/features/chatbot/model/translation.helpers.ts +1 -2
  260. package/src/features/chatbot/model/translation.ts +24 -34
  261. package/src/features/chatbot/types/api.types.ts +12 -12
  262. package/src/features/chatbot/types/model.types.ts +32 -31
  263. package/src/features/chatbot/types/t2s.types.ts +15 -18
  264. package/src/features/chatbot/types/translation.types.ts +2 -3
  265. package/src/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.tsx +2 -3
  266. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +1 -0
  267. package/src/index.ts +1 -0
  268. package/src/lib/effector/createEntityFieldStore.ts +1 -9
  269. package/{dist/commonjs/shared/translation → src/lib}/localization/en.json +1 -8
  270. package/src/{shared/translation → lib}/localization/gb.json +1 -8
  271. package/src/{shared/translation → lib}/localization/sw.json +1 -8
  272. package/src/shared/icons/icon.types.ts +6 -9
  273. package/src/shared/translation/constants.ts +3 -3
  274. package/src/shared/translation/helpers.ts +9 -22
  275. package/src/shared/translation/hooks.ts +16 -12
  276. package/src/shared/translation/index.ts +1 -0
  277. package/src/shared/translation/model.ts +8 -8
  278. package/src/shared/translation/types.ts +8 -11
  279. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +0 -44
  280. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +0 -1
  281. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +0 -62
  282. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +0 -1
  283. package/dist/commonjs/features/chatbot/components/ChatMessage/helpers.js +0 -13
  284. package/dist/commonjs/features/chatbot/components/ChatMessage/helpers.js.map +0 -1
  285. package/dist/commonjs/features/chatbot/context/ChatBotModelContext.js +0 -17
  286. package/dist/commonjs/features/chatbot/context/ChatBotModelContext.js.map +0 -1
  287. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -57
  288. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +0 -1
  289. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +0 -130
  290. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +0 -1
  291. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +0 -1
  292. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +0 -22
  293. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +0 -1
  294. package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +0 -1
  295. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +0 -110
  296. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +0 -1
  297. package/dist/commonjs/features/chatbot/types/units.types.js +0 -2
  298. package/dist/commonjs/features/chatbot/types/units.types.js.map +0 -1
  299. package/dist/commonjs/lib/effector/withEvent.js +0 -13
  300. package/dist/commonjs/lib/effector/withEvent.js.map +0 -1
  301. package/dist/commonjs/lib/types/keys.js +0 -2
  302. package/dist/commonjs/lib/types/keys.js.map +0 -1
  303. package/dist/commonjs/shared/icons/HighlighterIcon.js +0 -36
  304. package/dist/commonjs/shared/icons/HighlighterIcon.js.map +0 -1
  305. package/dist/commonjs/shared/icons/StopIcon.js +0 -33
  306. package/dist/commonjs/shared/icons/StopIcon.js.map +0 -1
  307. package/dist/commonjs/shared/translation/validation.types.js +0 -6
  308. package/dist/commonjs/shared/translation/validation.types.js.map +0 -1
  309. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js +0 -38
  310. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +0 -1
  311. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +0 -57
  312. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +0 -1
  313. package/dist/module/features/chatbot/components/ChatMessage/helpers.js +0 -9
  314. package/dist/module/features/chatbot/components/ChatMessage/helpers.js.map +0 -1
  315. package/dist/module/features/chatbot/context/ChatBotModelContext.js +0 -12
  316. package/dist/module/features/chatbot/context/ChatBotModelContext.js.map +0 -1
  317. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -51
  318. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +0 -1
  319. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +0 -125
  320. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +0 -1
  321. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +0 -1
  322. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +0 -17
  323. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +0 -1
  324. package/dist/module/features/chatbot/model/ChatbotApi.js.map +0 -1
  325. package/dist/module/features/chatbot/model/ChatsCacheModel.js +0 -104
  326. package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +0 -1
  327. package/dist/module/features/chatbot/types/units.types.js +0 -2
  328. package/dist/module/features/chatbot/types/units.types.js.map +0 -1
  329. package/dist/module/lib/effector/withEvent.js +0 -9
  330. package/dist/module/lib/effector/withEvent.js.map +0 -1
  331. package/dist/module/lib/types/keys.js +0 -2
  332. package/dist/module/lib/types/keys.js.map +0 -1
  333. package/dist/module/shared/icons/HighlighterIcon.js +0 -29
  334. package/dist/module/shared/icons/HighlighterIcon.js.map +0 -1
  335. package/dist/module/shared/icons/StopIcon.js +0 -26
  336. package/dist/module/shared/icons/StopIcon.js.map +0 -1
  337. package/dist/module/shared/translation/validation.types.js +0 -4
  338. package/dist/module/shared/translation/validation.types.js.map +0 -1
  339. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +0 -10
  340. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +0 -1
  341. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +0 -11
  342. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +0 -1
  343. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/helpers.d.ts +0 -4
  344. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/helpers.d.ts.map +0 -1
  345. package/dist/typescript/commonjs/features/chatbot/context/ChatBotModelContext.d.ts +0 -4
  346. package/dist/typescript/commonjs/features/chatbot/context/ChatBotModelContext.d.ts.map +0 -1
  347. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +0 -8
  348. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +0 -1
  349. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -35
  350. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +0 -1
  351. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +0 -33
  352. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +0 -1
  353. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +0 -6
  354. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +0 -1
  355. package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +0 -1
  356. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +0 -27
  357. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +0 -1
  358. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +0 -34
  359. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +0 -1
  360. package/dist/typescript/commonjs/lib/effector/withEvent.d.ts +0 -2
  361. package/dist/typescript/commonjs/lib/effector/withEvent.d.ts.map +0 -1
  362. package/dist/typescript/commonjs/lib/types/keys.d.ts +0 -8
  363. package/dist/typescript/commonjs/lib/types/keys.d.ts.map +0 -1
  364. package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts +0 -4
  365. package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts.map +0 -1
  366. package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts +0 -4
  367. package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts.map +0 -1
  368. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +0 -17
  369. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +0 -1
  370. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts +0 -10
  371. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +0 -1
  372. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +0 -11
  373. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +0 -1
  374. package/dist/typescript/module/features/chatbot/components/ChatMessage/helpers.d.ts +0 -4
  375. package/dist/typescript/module/features/chatbot/components/ChatMessage/helpers.d.ts.map +0 -1
  376. package/dist/typescript/module/features/chatbot/context/ChatBotModelContext.d.ts +0 -4
  377. package/dist/typescript/module/features/chatbot/context/ChatBotModelContext.d.ts.map +0 -1
  378. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +0 -8
  379. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +0 -1
  380. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -35
  381. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +0 -1
  382. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +0 -33
  383. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +0 -1
  384. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +0 -6
  385. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +0 -1
  386. package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +0 -1
  387. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +0 -27
  388. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +0 -1
  389. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +0 -34
  390. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +0 -1
  391. package/dist/typescript/module/lib/effector/withEvent.d.ts +0 -2
  392. package/dist/typescript/module/lib/effector/withEvent.d.ts.map +0 -1
  393. package/dist/typescript/module/lib/types/keys.d.ts +0 -8
  394. package/dist/typescript/module/lib/types/keys.d.ts.map +0 -1
  395. package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts +0 -4
  396. package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts.map +0 -1
  397. package/dist/typescript/module/shared/icons/StopIcon.d.ts +0 -4
  398. package/dist/typescript/module/shared/icons/StopIcon.d.ts.map +0 -1
  399. package/dist/typescript/module/shared/translation/validation.types.d.ts +0 -17
  400. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +0 -1
  401. package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +0 -38
  402. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +0 -52
  403. package/src/features/chatbot/components/ChatMessage/helpers.ts +0 -9
  404. package/src/features/chatbot/context/ChatBotModelContext.ts +0 -14
  405. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +0 -53
  406. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +0 -150
  407. package/src/features/chatbot/model/ChatBoxTextManager.ts +0 -18
  408. package/src/features/chatbot/model/ChatsCacheModel.ts +0 -95
  409. package/src/features/chatbot/types/units.types.ts +0 -37
  410. package/src/lib/effector/withEvent.ts +0 -7
  411. package/src/lib/types/keys.ts +0 -18
  412. package/src/shared/icons/HighlighterIcon.tsx +0 -21
  413. package/src/shared/icons/StopIcon.tsx +0 -17
  414. package/src/shared/translation/validation.types.ts +0 -26
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MessageButtonsBlock = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _ErrorSpottingButton = require("../../errorSpotting/ErrorSpottingButton.js");
10
- var _MessageTextToSpeech = require("./MessageTextToSpeech.js");
11
- var _reactNativeUi = require("@magmamath/react-native-ui");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- const MessageButtonsBlock = ({
15
- t2sState,
16
- message
17
- }) => {
18
- if (!t2sState.isEnabled && !message.isInitial) return null;
19
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
20
- style: styles.container,
21
- children: [!!message.isInitial && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ErrorSpottingButton.ErrorSpottingButton, {
22
- contextMessage: message
23
- }), t2sState.isEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageTextToSpeech.MessageTextToSpeech, {
24
- state: t2sState,
25
- message: message
26
- })]
27
- });
28
- };
29
- exports.MessageButtonsBlock = MessageButtonsBlock;
30
- const styles = _reactNative.StyleSheet.create({
31
- container: {
32
- flexDirection: 'row',
33
- gap: 8,
34
- marginLeft: 'auto',
35
- ...(_reactNativeUi.IS_WEB ? {
36
- float: 'right'
37
- } : {
38
- position: 'absolute',
39
- bottom: 8,
40
- right: 8
41
- })
42
- }
43
- });
44
- //# sourceMappingURL=MessageButtonsBlock.js.map
@@ -1 +0,0 @@
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":[]}
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MessageContent = void 0;
7
- var _reactNative = require("react-native");
8
- var _MessageButtonsBlock = require("./MessageButtonsBlock.js");
9
- var _helpers = require("./helpers.js");
10
- var _react = _interopRequireDefault(require("react"));
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const MessageContentWeb = ({
14
- message,
15
- text,
16
- t2sState
17
- }) => {
18
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
19
- style: styles.messageText,
20
- children: [text, /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageButtonsBlock.MessageButtonsBlock, {
21
- message: message,
22
- t2sState: t2sState
23
- })]
24
- });
25
- };
26
- const MessageContentMobile = ({
27
- message,
28
- text,
29
- t2sState
30
- }) => {
31
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
32
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
33
- style: [styles.messageText, styles.mobileMessageText],
34
- children: [text, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
35
- style: {
36
- width: (0, _helpers.getSpacerSize)(message, t2sState)
37
- }
38
- })]
39
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageButtonsBlock.MessageButtonsBlock, {
40
- message: message,
41
- t2sState: t2sState
42
- })]
43
- });
44
- };
45
- const MessageContent = exports.MessageContent = _reactNative.Platform.select({
46
- web: MessageContentWeb,
47
- default: MessageContentMobile
48
- });
49
- const styles = _reactNative.StyleSheet.create({
50
- messageText: {
51
- flex: 1,
52
- fontSize: 20,
53
- fontWeight: 400,
54
- fontFamily: 'Buenos Aires',
55
- color: '#33334D',
56
- width: '100%'
57
- },
58
- mobileMessageText: {
59
- lineHeight: 27
60
- }
61
- });
62
- //# sourceMappingURL=MessageContent.js.map
@@ -1 +0,0 @@
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,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAyB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQzB,MAAMG,iBAAiB,GAAGA,CAAC;EAAEC,OAAO;EAAEC,IAAI;EAAEC;AAA8B,CAAC,KAAK;EAC9E,oBACE,IAAAP,WAAA,CAAAQ,IAAA,EAACd,YAAA,CAAAe,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,WAAY;IAAAC,QAAA,GAC7BP,IAAI,eACL,IAAAN,WAAA,CAAAc,GAAA,EAAClB,oBAAA,CAAAmB,mBAAmB;MAACV,OAAO,EAAEA,OAAQ;MAACE,QAAQ,EAAEA;IAAS,CAAE,CAAC;EAAA,CACzD,CAAC;AAEX,CAAC;AAED,MAAMS,oBAAoB,GAAGA,CAAC;EAAEX,OAAO;EAAEC,IAAI;EAAEC;AAA8B,CAAC,KAAK;EACjF,oBACE,IAAAP,WAAA,CAAAQ,IAAA,EAAAR,WAAA,CAAAiB,QAAA;IAAAJ,QAAA,gBACE,IAAAb,WAAA,CAAAQ,IAAA,EAACd,YAAA,CAAAe,IAAI;MAACC,KAAK,EAAE,CAACC,MAAM,CAACC,WAAW,EAAED,MAAM,CAACO,iBAAiB,CAAE;MAAAL,QAAA,GACzDP,IAAI,eACL,IAAAN,WAAA,CAAAc,GAAA,EAACpB,YAAA,CAAAyB,IAAI;QAACT,KAAK,EAAE;UAAEU,KAAK,EAAE,IAAAC,sBAAa,EAAChB,OAAO,EAAEE,QAAQ;QAAE;MAAE,CAAE,CAAC;IAAA,CACxD,CAAC,eACP,IAAAP,WAAA,CAAAc,GAAA,EAAClB,oBAAA,CAAAmB,mBAAmB;MAACV,OAAO,EAAEA,OAAQ;MAACE,QAAQ,EAAEA;IAAS,CAAE,CAAC;EAAA,CAC7D,CAAC;AAEP,CAAC;AAEM,MAAMe,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":[]}
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSpacerSize = getSpacerSize;
7
- function getSpacerSize(message, t2sState) {
8
- if (!t2sState.isEnabled && !message.isInitial) return 0;
9
- if (t2sState.isEnabled && message.isInitial) return 164;
10
- if (t2sState.isEnabled) return 34;
11
- return 133;
12
- }
13
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getSpacerSize","message","t2sState","isEnabled","isInitial"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/helpers.ts"],"mappings":";;;;;;AAGO,SAASA,aAAaA,CAACC,OAA4B,EAAEC,QAAkB,EAAE;EAC9E,IAAI,CAACA,QAAQ,CAACC,SAAS,IAAI,CAACF,OAAO,CAACG,SAAS,EAAE,OAAO,CAAC;EACvD,IAAIF,QAAQ,CAACC,SAAS,IAAIF,OAAO,CAACG,SAAS,EAAE,OAAO,GAAG;EACvD,IAAIF,QAAQ,CAACC,SAAS,EAAE,OAAO,EAAE;EACjC,OAAO,GAAG;AACZ","ignoreList":[]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ChatBotModelContext = void 0;
7
- exports.useChatModel = useChatModel;
8
- var _react = require("react");
9
- const ChatBotModelContext = exports.ChatBotModelContext = /*#__PURE__*/(0, _react.createContext)(null);
10
- function useChatModel() {
11
- const model = (0, _react.useContext)(ChatBotModelContext);
12
- if (!model) {
13
- throw new Error('Something went wrong, you are probably trying to use component that is supposed to be inside ChatBotContext.Provider');
14
- }
15
- return model;
16
- }
17
- //# sourceMappingURL=ChatBotModelContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","ChatBotModelContext","exports","createContext","useChatModel","model","useContext","Error"],"sourceRoot":"../../../../../src","sources":["features/chatbot/context/ChatBotModelContext.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGO,MAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAG,IAAAE,oBAAa,EAAsB,IAAI,CAAC;AAEpE,SAASC,YAAYA,CAAA,EAAG;EAC7B,MAAMC,KAAK,GAAG,IAAAC,iBAAU,EAACL,mBAAmB,CAAC;EAC7C,IAAI,CAACI,KAAK,EAAE;IACV,MAAM,IAAIE,KAAK,CACb,sHACF,CAAC;EACH;EACA,OAAOF,KAAK;AACd","ignoreList":[]}
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ErrorSpottingButton = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNativeUi = require("@magmamath/react-native-ui");
9
- var _ChatBotModelContext = require("../context/ChatBotModelContext.js");
10
- var _effectorReact = require("effector-react");
11
- var _reactNative = require("react-native");
12
- var _HighlighterIcon = require("../../../shared/icons/HighlighterIcon.js");
13
- var _index = require("../../../shared/translation/index.js");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- const ErrorSpottingButton = ({
17
- contextMessage
18
- }) => {
19
- const t = (0, _index.useText)();
20
- const model = (0, _ChatBotModelContext.useChatModel)();
21
- const activeErrorSpotting = (0, _effectorReact.useUnit)(model.errorSpotting.$activeData);
22
- const validationKey = (0, _effectorReact.useUnit)(model.errorSpotting.$validationKey);
23
- const isLoading = (0, _effectorReact.useUnit)(model.errorSpotting.$isLoading);
24
- const currentThread = (0, _effectorReact.useStoreMap)(model.$currentChatData, chatData => chatData.currentThread);
25
- const threadId = contextMessage.threadId;
26
- if (!currentThread?.strokes || threadId && currentThread.id !== threadId) {
27
- return null;
28
- }
29
- const isActive = !!activeErrorSpotting?.isActive;
30
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
31
- style: buttonStyles,
32
- disabled: validationKey !== currentThread.strokesValidationKey,
33
- isActive: isActive,
34
- isLoading: isLoading,
35
- variant: 'secondary',
36
- colorScheme: 'blue',
37
- size: 'small',
38
- onPress: () => {
39
- if (isLoading) return;
40
- model.errorSpotting.errorSpottingPressed({
41
- message: contextMessage
42
- });
43
- },
44
- icon: isActive ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.StopIcon, {
45
- color: _reactNativeUi.COLORS.NEUTRAL_1
46
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_HighlighterIcon.HighlighterIcon, {}),
47
- children: t('chat.showError')
48
- });
49
- };
50
- exports.ErrorSpottingButton = ErrorSpottingButton;
51
- const buttonStyles = _reactNative.StyleSheet.create({
52
- text: {
53
- textTransform: 'uppercase',
54
- paddingTop: 0.5
55
- }
56
- });
57
- //# sourceMappingURL=ErrorSpottingButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_ChatBotModelContext","_effectorReact","_reactNative","_HighlighterIcon","_index","_jsxRuntime","e","__esModule","default","ErrorSpottingButton","contextMessage","t","useText","model","useChatModel","activeErrorSpotting","useUnit","errorSpotting","$activeData","validationKey","$validationKey","isLoading","$isLoading","currentThread","useStoreMap","$currentChatData","chatData","threadId","strokes","id","isActive","jsx","Button","style","buttonStyles","disabled","strokesValidationKey","variant","colorScheme","size","onPress","errorSpottingPressed","message","icon","StopIcon","color","COLORS","NEUTRAL_1","HighlighterIcon","children","exports","StyleSheet","create","text","textTransform","paddingTop"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAAqD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM9C,MAAMG,mBAAmB,GAAGA,CAAC;EAAEC;AAAyC,CAAC,KAAK;EACnF,MAAMC,CAAC,GAAG,IAAAC,cAAO,EAAC,CAAC;EACnB,MAAMC,KAAK,GAAG,IAAAC,iCAAY,EAAC,CAAC;EAC5B,MAAMC,mBAAmB,GAAG,IAAAC,sBAAO,EAACH,KAAK,CAACI,aAAa,CAACC,WAAW,CAAC;EACpE,MAAMC,aAAa,GAAG,IAAAH,sBAAO,EAACH,KAAK,CAACI,aAAa,CAACG,cAAc,CAAC;EACjE,MAAMC,SAAS,GAAG,IAAAL,sBAAO,E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AE;IACJC,aAAa,EAAE,WAAW;IAC1BC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,130 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ErrorSpottingModel = void 0;
7
- var _effector = require("effector");
8
- const AUTO_CLOSE_TIMEOUT = 5000;
9
- class ErrorSpottingModel {
10
- errorSpottingPressed = (0, _effector.createEvent)();
11
- activeDataChanged = (0, _effector.createEvent)();
12
- spottingHidden = (0, _effector.createEvent)();
13
- $validationKey = (0, _effector.createStore)(null);
14
- $activeData = (0, _effector.createStore)(null).on(this.activeDataChanged, (_, payload) => payload).on(this.spottingHidden, state => {
15
- if (state) return {
16
- ...state,
17
- isActive: false
18
- };
19
- return null;
20
- }).on(this.$validationKey, (state, payload) => {
21
- if (!state || payload === null) return state;
22
- const isDisabled = payload !== state.validationKey;
23
- return {
24
- ...state,
25
- isDisabled,
26
- isActive: isDisabled ? false : state.isActive
27
- };
28
- });
29
- closeTimeout = null;
30
- constructor({
31
- api,
32
- $currentChatData,
33
- $currentChatContext
34
- }) {
35
- this.api = api;
36
- this.$isLoading = api.spotErrorFx.pending;
37
- this.$activeData.on($currentChatData, (state, payload) => {
38
- if (!state || state.validationKey !== payload.currentThread?.strokesValidationKey) return null;
39
- });
40
- (0, _effector.sample)({
41
- clock: api.spotErrorFx.doneData,
42
- source: {
43
- chatData: $currentChatData,
44
- activeSpotting: this.$activeData,
45
- validationKey: this.$validationKey
46
- },
47
- fn: (source, result) => {
48
- const key = source.chatData.currentThread?.strokesValidationKey || null;
49
- const currentKey = source.validationKey;
50
- const isDisabled = !!currentKey && currentKey !== key;
51
- return {
52
- validationKey: key,
53
- strokesIds: result.highlightedStrokeIds,
54
- isActive: !isDisabled,
55
- isDisabled
56
- };
57
- },
58
- target: this.$activeData
59
- });
60
- (0, _effector.sample)({
61
- clock: this.errorSpottingPressed,
62
- source: {
63
- context: $currentChatContext,
64
- chatData: $currentChatData,
65
- activeSpotting: this.$activeData
66
- },
67
- fn: (source, {
68
- message
69
- }) => ({
70
- ...source,
71
- message
72
- }),
73
- target: (0, _effector.createEffect)(({
74
- chatData,
75
- activeSpotting,
76
- message,
77
- context
78
- }) => {
79
- if (!context) throw new Error('Trying to use error spotting in chat without context');
80
- if (!chatData.currentThread?.strokes) return;
81
- if (!activeSpotting) {
82
- return this.api.spotErrorFx({
83
- strokes: chatData.currentThread.strokes,
84
- problemDescription: context.problem,
85
- correctAnswer: context.problemAnswer,
86
- userAnswer: context.answer ?? '',
87
- hint: message.message
88
- }).then(() => {
89
- this.scheduleClose();
90
- });
91
- }
92
- this.activeDataChanged({
93
- ...activeSpotting,
94
- isActive: !activeSpotting.isActive
95
- });
96
- this.scheduleClose();
97
- })
98
- });
99
- this.activeDataChanged.watch(spotting => {
100
- if ((!spotting || !spotting.isActive) && this.closeTimeout) {
101
- clearTimeout(this.closeTimeout);
102
- this.closeTimeout = null;
103
- }
104
- });
105
- }
106
- scheduleClose() {
107
- if (this.closeTimeout) clearTimeout(this.closeTimeout);
108
- this.closeTimeout = setTimeout(() => {
109
- this.spottingHidden();
110
- this.closeTimeout = null;
111
- }, AUTO_CLOSE_TIMEOUT);
112
- }
113
- bindStrokesValidation($store) {
114
- (0, _effector.sample)({
115
- source: $store,
116
- target: this.$validationKey
117
- });
118
- return this;
119
- }
120
- abortPendingRequest() {
121
- const isPending = this.api.spotErrorFx.pending.getState();
122
- if (isPending) this.api.spotErrorFx.controller.abort();
123
- }
124
- reset() {
125
- this.activeDataChanged(null);
126
- this.abortPendingRequest();
127
- }
128
- }
129
- exports.ErrorSpottingModel = ErrorSpottingModel;
130
- //# sourceMappingURL=ErrorSpottingModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_effector","require","AUTO_CLOSE_TIMEOUT","ErrorSpottingModel","errorSpottingPressed","createEvent","activeDataChanged","spottingHidden","$validationKey","createStore","$activeData","on","_","payload","state","isActive","isDisabled","validationKey","closeTimeout","constructor","api","$currentChatData","$currentChatContext","$isLoading","spotErrorFx","pending","currentThread","strokesValidationKey","sample","clock","doneData","source","chatData","activeSpotting","fn","result","key","currentKey","strokesIds","highlightedStrokeIds","target","context","message","createEffect","Error","strokes","problemDescription","problem","correctAnswer","problemAnswer","userAnswer","answer","hint","then","scheduleClose","watch","spotting","clearTimeout","setTimeout","bindStrokesValidation","$store","abortPendingRequest","isPending","getState","controller","abort","reset","exports"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingModel.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAwBA,MAAMC,kBAAkB,GAAG,IAAI;AAMxB,MAAMC,kBAAkB,CAAC;EAGdC,oBAAoB,GAAG,IAAAC,qBAAW,EAA4B,CAAC;EAC9DC,iBAAiB,GAAG,IAAAD,qBAAW,EAAiC,CAAC;EAClEE,cAAc,GAAG,IAAAF,qBAAW,EAAC,CAAC;EAE9BG,cAAc,GAAG,IAAAC,qBAAW,EAAgB,IAAI,CAAC;EACjDC,WAAW,GAAG,IAAAD,qBAAW,EAAiC,IAAI,CAAC,CAC5EE,EAAE,CAAC,IAAI,CAACL,iBAAiB,EAAE,CAACM,CAAC,EAAEC,OAAO,KAAKA,OAAO,CAAC,CACnDF,EAAE,CAAC,IAAI,CAACJ,cAAc,EAAGO,KAAK,IAAK;IAClC,IAAIA,KAAK,EAAE,OAAO;MAAE,GAAGA,KAAK;MAAEC,QAAQ,EAAE;IAAM,CAAC;IAC/C,OAAO,IAAI;EACb,CAAC,CAAC,CACDJ,EAAE,CAAC,IAAI,CAACH,cAAc,EAAE,CAACM,KAAK,EAAED,OAAO,KAAK;IAC3C,IAAI,CAACC,KAAK,IAAID,OAAO,KAAK,IAAI,EAAE,OAAOC,KAAK;IAC5C,MAAME,UAAU,GAAGH,OAAO,KAAKC,KAAK,CAACG,aAAa;IAClD,OAAO;MAAE,GAAGH,KAAK;MAAEE,UAAU;MAAED,QAAQ,EAA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AC/B,IAAI,CAACA,YAAY,GAAG,IAAI;MAC1B;IACF,CAAC,CAAC;EACJ;EAEQoC,aAAaA,CAAA,EAAG;IACtB,IAAI,IAAI,CAACpC,YAAY,EAAEuC,YAAY,CAAC,IAAI,CAACvC,YAAY,CAAC;IACtD,IAAI,CAACA,YAAY,GAAGwC,UAAU,CAAC,MAAM;MACnC,IAAI,CAACnD,cAAc,CAAC,CAAC;MACrB,IAAI,CAACW,YAAY,GAAG,IAAI;IAC1B,CAAC,EAAEhB,kBAAkB,CAAC;EACxB;EAEOyD,qBAAqBA,CAACC,MAA4B,EAAE;IACzD,IAAAhC,gBAAM,EAAC;MACLG,MAAM,EAAE6B,MAAM;MACdpB,MAAM,EAAE,IAAI,CAAChC;IACf,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEOqD,mBAAmBA,CAAA,EAAG;IAC3B,MAAMC,SAAS,GAAG,IAAI,CAAC1C,GAAG,CAACI,WAAW,CAACC,OAAO,CAACsC,QAAQ,CAAC,CAAC;IACzD,IAAID,SAAS,EAAE,IAAI,CAAC1C,GAAG,CAACI,WAAW,CAACwC,UAAU,CAACC,KAAK,CAAC,CAAC;EACxD;EAEOC,KAAKA,CAAA,EAAG;IACb,IAAI,CAAC5D,iBAAiB,CAAC,IAAI,CAAC;IAC5B,IAAI,CAACuD,mBAAmB,CAAC,CAAC;EAC5B;AACF;AAACM,OAAA,CAAAhE,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ThreadItem","require","_constants","ChatBotThreadManager","api","drawBoardAdapter","threads","Map","currentKey","currentBinding","constructor","messagesLimit","CHAT_BOT_MODEL_DEFAULTS","THREAD_MESSAGES_LIMIT","messages","defaultMessages","bindKeyStore","$store","watch","value","getThreadItem","key","threadItem","get","ThreadItem","set","result","getVisibleStrokes","strokes","validationKey","setDrawBoardAdapter","adapter","postMessage","problemAnswer","problem","answer","language","imageAltText","Error","getHint","getNextHintProps","correctAnswer","problemDescription","userAnswer","history","push","message","nextOptions","length","anotherHintOption","options","endMessage","threadId","id","reset","delete","clear","setMessagesLimit","limit","setApi","exports"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatBotThreadManager.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AASA,IAAAC,UAAA,GAAAD,OAAA;AAaO,MAAME,oBAAoB,CAAC;EACxBC,GAAG,GAA4B,IAAI;EACnCC,gBAAgB,GAAiC,IAAI;EAC5CC,OAAO,GAAG,IAAIC,GAAG,CAAqB,CAAC;EAGhDC,UAAU,GAAG,EAAE;EACfC,cAAc,GAAwB,IAAI;EAI3CC,WAAWA,CAAC;IACjBL,gBAAgB;IAChBD,GAAG;IACHO,aAAa,GAAGC,kCAAuB,CAACC,qBAAqB;IAC7DC;EACyB,CAAC,EAAE;IAC5B,IAAIV,GAAG,EAAE,IAAI,CAACA,GAAG,GAAGA,GAAG;IACvB,IAAI,CAACC,gBAAgB,GAAGA,gBAAgB,IAAI,IAAI;IAChD,IAAI,CAACM,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACI,eAAe,GAAGD,QAAQ;EACjC;EAEOE,YAAYA,CAACC,MAAqB,EAAE;IACzC,IAAI,CAACR,cAAc,GAAG,CAAC;IACvB,IAAI,CAACA,cAAc,GAAGQ,MAAM,CAACC,KAAK,CAAEC,KAAK,IAAK;MAC5C,IAAI,CAACX,UAAU,GAAGW,KAAK;IACzB,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEA,MAAcC,aAAaA,CAAA,EAAG;IAC5B,MAAMC,GAAG,GAAG,IAAI,CAACb,UAAU;IAC3B,IAAIc,UAAU,GAAG,IAAI,CAAChB,OAAO,CAACiB,GAAG,CAACF,GAAG,CAAC;IACtC,IAAIC,UAAU,EAAE,OAAOA,UAAU;IACjC,IAAI,CAAC,IAAI,CAACjB,gBAAgB,EAAE;MAC1BiB,UAAU,GAAG,IAAIE,sBAAU,CAAC,CAAC;MAC7B,IAAI,CAA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a,GAAG,CAAC,IAAI,CAACI,eAAe,CAACkC,iBAAiB,CAAC,GAAG,EAAE;IAEhG,OAAO;MACLH,OAAO,EAAEpB,MAAM,CAACoB,OAAO;MACvBI,OAAO,EAAEH,WAAW;MACpBI,UAAU,EAAE,CAACJ,WAAW,CAACC,MAAM;MAC/BI,QAAQ,EAAE9B,UAAU,CAAC+B;IACvB,CAAC;EACH,CAAC;EAEM9B,GAAGA,CAACF,GAAW,EAAE;IACtB,OAAO,IAAI,CAACf,OAAO,CAACiB,GAAG,CAACF,GAAG,CAAC;EAC9B;EAEOiC,KAAKA,CAACjC,GAAY,EAAE;IACzB,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;MAC3B,IAAI,CAACf,OAAO,CAACiD,MAAM,CAAClC,GAAG,CAAC;MACxB;IACF;IACA,IAAI,CAACf,OAAO,CAACkD,KAAK,CAAC,CAAC;EACtB;EAEOC,gBAAgBA,CAACC,KAAa,EAAE;IACrC,IAAI,CAAC/C,aAAa,GAAG+C,KAAK;EAC5B;EAEOC,MAAMA,CAACvD,GAAqB,EAAE;IACnC,IAAI,CAACA,GAAG,GAAGA,GAAG;IACd,OAAO,IAAI;EACb;AACF;AAACwD,OAAA,CAAAzD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ChatBotTextManager = void 0;
7
- var _DefaultMessageCreator = require("./DefaultMessageCreator.js");
8
- var _helpers = require("../../../shared/translation/helpers.js");
9
- var _index = require("../../../shared/translation/index.js");
10
- class ChatBotTextManager {
11
- messagesCreator = new _DefaultMessageCreator.DefaultMessagesCreator({
12
- textGetter: _helpers.getText
13
- }).bindToLanguageChanged(_index.$localization.updates);
14
- messages = {
15
- error: this.messagesCreator.createMessage('chat.errorMessage'),
16
- start: this.messagesCreator.createMessage('chat.howCanIHelp'),
17
- endMessage: this.messagesCreator.createMessage('chat.answerAgain'),
18
- anotherHintOption: this.messagesCreator.createOption('chat.anotherHint')
19
- };
20
- }
21
- exports.ChatBotTextManager = ChatBotTextManager;
22
- //# sourceMappingURL=ChatBoxTextManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_DefaultMessageCreator","require","_helpers","_index","ChatBotTextManager","messagesCreator","DefaultMessagesCreator","textGetter","getText","bindToLanguageChanged","$localization","updates","messages","error","createMessage","start","endMessage","anotherHintOption","createOption","exports"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatBoxTextManager.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAEO,MAAMG,kBAAkB,CAAC;EACbC,eAAe,GAAG,IAAIC,6CAAsB,CAAkB;IAC7EC,UAAU,EAAEC;EACd,CAAC,CAAC,CAACC,qBAAqB,CAACC,oBAAa,CAACC,OAAO,CAAC;EAE/BC,QAAQ,GAAoB;IAC1CC,KAAK,EAAE,IAAI,CAACR,eAAe,CAACS,aAAa,CAAC,mBAAmB,CAAC;IAC9DC,KAAK,EAAE,IAAI,CAACV,eAAe,CAACS,aAAa,CAAC,kBAAkB,CAAC;IAC7DE,UAAU,EAAE,IAAI,CAACX,eAAe,CAACS,aAAa,CAAC,kBAAkB,CAAC;IAClEG,iBAAiB,EAAE,IAAI,CAACZ,eAAe,CAACa,YAAY,CAAC,kBAAkB;EACzE,CAAC;AACH;AAACC,OAAA,CAAAf,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_effector","require","_index","_helpers","ChatbotAPI","constructor","api","spotErrorFx","createControllerEffect","spotError","postMessageFx","postMessage","getAlternativesFx","createEffect","getAlternatives","translateTextFx","payload","response","postTranslateText","text","replaceKatexSyntax","data","translations","map","translation","translatedText","textToSpeechTextFx","postTextToSpeech","exports"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatbotApi.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAEO,MAAMG,UAAU,CAAC;EAQtBC,WAAWA,CAACC,GAAuB,EAAE;IACnC,IAAI,CAACC,WAAW,GAAG,IAAAC,6BAAsB,EAACF,GAAG,CAACG,SAAS,CAAC;IACxD,IAAI,CAACC,aAAa,GAAG,IAAAF,6BAAsB,EAACF,GAAG,CAACK,WAAW,CAAC;IAC5D,IAAI,CAACC,iBAAiB,GAAG,IAAAC,sBAAY,EAACP,GAAG,CAACQ,eAAe,CAAC;IAC1D,IAAI,CAACC,eAAe,GAAG,IAAAF,sBAAY,EACjC,MAAOG,OAA+B,IAAuC;MAC3E,MAAMC,QAAQ,GAAG,MAAMX,GAAG,CAACY,iBAAiB,CAAC;QAC3C,GAAGF,OAAO;QACVG,IAAI,EAAE,IAAAC,2BAAkB,EAACJ,OAAO,CAACG,IAAI;MACvC,CAAC,CAAC;MAEF,OAAO;QACL,GAAGF,QAAQ;QACXI,IAAI,EAAE;UACJ,GAAGJ,QAAQ,CAACI,IAAI;UAChBC,YAAY,EAAEL,QAAQ,CAACI,IAAI,CAACC,YAAY,CAACC,GAAG,CAAEC,WAAW,KAAM;YAC7D,GAAGA,WAAW;YACdC,cAAc,EAAE,IAAAL,2BAAkB,EAAC,CAACI,WAAW,CAACC,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;UAC1E,CAAC,CAAC;QACJ;MACF,CAAC;IACH,CACF,CAAC;IACD,IAAI,CAACC,kBAAkB,GAAG,IAAAb,sBAAY,EAACP,GAAG,CAACqB,gBAAgB,CAAC;EAC9D;AACF;AAACC,OAAA,CAAAxB,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -1,110 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ChatsCacheModel = void 0;
7
- exports.defaultChatData = defaultChatData;
8
- var _effector = require("effector");
9
- var _index = require("../../../lib/effector/index.js");
10
- function defaultChatData(props = {}) {
11
- return {
12
- messages: [],
13
- isAvailable: false,
14
- currentThread: null,
15
- ...props
16
- };
17
- }
18
- class ChatsCacheModel {
19
- update = (0, _effector.createEvent)();
20
- cache = (0, _index.createEntityFieldStore)().on(this.update, (state, {
21
- key,
22
- data
23
- }) => {
24
- const currentData = state[key] ?? defaultChatData();
25
- return {
26
- ...state,
27
- [key]: {
28
- ...currentData,
29
- ...data
30
- }
31
- };
32
- });
33
- $data = this.cache.$state;
34
- reset = this.cache.reset;
35
- disableChat(key) {
36
- this.cache.setField({
37
- key,
38
- fn: current => current ? {
39
- ...current,
40
- isAvailable: false
41
- } : defaultChatData({
42
- isAvailable: false
43
- })
44
- });
45
- }
46
- reinitChatThread(key, {
47
- initialOption
48
- }) {
49
- this.cache.setField({
50
- key,
51
- fn: current => {
52
- if (!current || current.messages.length <= 1) return;
53
- const copy = [...current.messages];
54
- while (copy.at(-1)?.endMessage) {
55
- copy.pop();
56
- }
57
- const lastMessage = copy.at(-1);
58
- if (!lastMessage) return;
59
- copy.splice(copy.length - 1, 1, {
60
- ...lastMessage,
61
- options: [initialOption]
62
- });
63
- return {
64
- ...current,
65
- messages: copy
66
- };
67
- }
68
- });
69
- }
70
- setSingleMessage(key, message) {
71
- this.cache.setField({
72
- key,
73
- fn: current => {
74
- if (!current || current.messages.length > 1) return;
75
- return {
76
- ...current,
77
- messages: [message]
78
- };
79
- }
80
- });
81
- }
82
- addMessages(key, {
83
- messages,
84
- thread = null
85
- }) {
86
- this.cache.setField({
87
- key,
88
- fn: current => {
89
- if (!current) return defaultChatData({
90
- messages,
91
- currentThread: thread
92
- });
93
- const result = {
94
- ...current,
95
- messages: [...current.messages, ...messages]
96
- };
97
- if (thread) result.currentThread = thread;
98
- return result;
99
- }
100
- });
101
- }
102
- add(key, data) {
103
- this.cache.setField({
104
- key,
105
- data
106
- });
107
- }
108
- }
109
- exports.ChatsCacheModel = ChatsCacheModel;
110
- //# sourceMappingURL=ChatsCacheModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_effector","require","_index","defaultChatData","props","messages","isAvailable","currentThread","ChatsCacheModel","update","createEvent","cache","createEntityFieldStore","on","state","key","data","currentData","$data","$state","reset","disableChat","setField","fn","current","reinitChatThread","initialOption","length","copy","at","endMessage","pop","lastMessage","splice","options","setSingleMessage","message","addMessages","thread","result","add","exports"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatsCacheModel.ts"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAkBO,SAASE,eAAeA,CAACC,KAAwB,GAAG,CAAC,CAAC,EAAY;EACvE,OAAO;IACLC,QAAQ,EAAE,EAAE;IACZC,WAAW,EAAE,KAAK;IAClBC,aAAa,EAAE,IAAI;IACnB,GAAGH;EACL,CAAC;AACH;AAEO,MAAMI,eAAe,CAAC;EACXC,MAAM,GAAG,IAAAC,qBAAW,EAAc,CAAC;EAClCC,KAAK,GAAG,IAAAC,6BAAsB,EAAW,CAAC,CAACC,EAAE,CAC5D,IAAI,CAACJ,MAAM,EACX,CAACK,KAAK,EAAE;IAAEC,GAAG;IAAEC;EAAK,CAAC,KAAK;IACxB,MAAMC,WAAW,GAAGH,KAAK,CAACC,GAAG,CAAC,IAAIZ,eAAe,CAAC,CAAC;IACnD,OAAO;MAAE,GAAGW,KAAK;MAAE,CAACC,GAAG,GAAG;QAAE,GAAGE,WAAW;QAAE,GAAGD;MAAK;IAAE,CAAC;EACzD,CACF,CAAC;EAEeE,KAAK,GAAG,IAAI,CAACP,KAAK,CAACQ,MAAM;EACzBC,KAAK,GAAG,IAAI,CAACT,KAAK,CAACS,KAAK;EAEjCC,WAAWA,CAACN,GAAW,EAAE;IAC9B,IAAI,CAACJ,KAAK,CAACW,QAAQ,CAAC;MAClBP,GAAG;MACHQ,EAAE,EAAGC,OAAO,I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AC;EACJ;EAEOC,WAAWA,CAACtB,GAAW,EAAE;IAAEV,QAAQ;IAAEiC,MAAM,GAAG;EAAuB,CAAC,EAAE;IAC7E,IAAI,CAAC3B,KAAK,CAACW,QAAQ,CAAC;MAClBP,GAAG;MACHQ,EAAE,EAAGC,OAAO,IAAK;QACf,IAAI,CAACA,OAAO,EAAE,OAAOrB,eAAe,CAAC;UAAEE,QAAQ;UAAEE,aAAa,EAAE+B;QAAO,CAAC,CAAC;QACzE,MAAMC,MAAM,GAAG;UAAE,GAAGf,OAAO;UAAEnB,QAAQ,EAAE,CAAC,GAAGmB,OAAO,CAACnB,QAAQ,EAAE,GAAGA,QAAQ;QAAE,CAAC;QAC3E,IAAIiC,MAAM,EAAEC,MAAM,CAAChC,aAAa,GAAG+B,MAAM;QACzC,OAAOC,MAAM;MACf;IACF,CAAC,CAAC;EACJ;EAEOC,GAAGA,CAACzB,GAAW,EAAEC,IAAc,EAAE;IACtC,IAAI,CAACL,KAAK,CAACW,QAAQ,CAAC;MAAEP,GAAG;MAAEC;IAAK,CAAC,CAAC;EACpC;AACF;AAACyB,OAAA,CAAAjC,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=units.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["features/chatbot/types/units.types.ts"],"mappings":"","ignoreList":[]}
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.withEvent = withEvent;
7
- var _effector = require("effector");
8
- function withEvent(cb) {
9
- const event = (0, _effector.createEvent)();
10
- event.watch(cb);
11
- return event;
12
- }
13
- //# sourceMappingURL=withEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_effector","require","withEvent","cb","event","createEvent","watch"],"sourceRoot":"../../../../src","sources":["lib/effector/withEvent.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEO,SAASC,SAASA,CAAWC,EAAsB,EAAE;EAC1D,MAAMC,KAAK,GAAG,IAAAC,qBAAW,EAAI,CAAC;EAC9BD,KAAK,CAACE,KAAK,CAACH,EAAE,CAAC;EACf,OAAOC,KAAK;AACd","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=keys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["lib/types/keys.ts"],"mappings":"","ignoreList":[]}
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.HighlighterIcon = HighlighterIcon;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
- var _jsxRuntime = require("react/jsx-runtime");
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); }
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
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- function HighlighterIcon({
15
- size = 17,
16
- color = _reactNativeUi.COLORS.NEUTRAL_9,
17
- style
18
- }) {
19
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
20
- style: style,
21
- width: size,
22
- height: size,
23
- viewBox: "0 0 17 17",
24
- fill: "none",
25
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
26
- d: "M6.02 1.557a.596.596 0 011.108 0l.42 1.067c.06.153.182.275.336.335l1.066.42a.596.596 0 010 1.109l-1.066.42a.596.596 0 00-.336.336l-.42 1.066a.596.596 0 01-1.109 0L5.6 5.244a.596.596 0 00-.336-.336l-1.066-.42a.596.596 0 010-1.108l1.066-.42a.596.596 0 00.336-.336l.42-1.067z",
27
- fill: color
28
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
29
- fillRule: "evenodd",
30
- clipRule: "evenodd",
31
- d: "M8.843 3.338l-.974.73-2.11 1.583.26.66a.596.596 0 001.109 0l.42-1.067a.596.596 0 01.336-.336l1.066-.42a.596.596 0 000-1.108l-.107-.042zm.67-.502c.497.346.665.964.506 1.495l.476-.357 2.868 2.868-3.636 4.849-4.08-4.08.38-.286a1.316 1.316 0 01-.705-.74l-.185-.468-.898.674a.95.95 0 00-.33 1.065 1.75 1.75 0 00-.2.53l-.602 3.016-1.752 1.752a.95.95 0 00.297 1.545l1.83.784a1.35 1.35 0 001.487-.286l.966-.966 3.016-.604c.187-.037.366-.105.53-.199a.95.95 0 001.065-.33l5.445-7.26a2.25 2.25 0 00-.209-2.94L14.44 1.554a2.25 2.25 0 00-2.941-.209l-1.986 1.49zm3.866-.22a.75.75 0 00-.98-.07l-.692.519 2.565 2.565.52-.692a.75.75 0 00-.07-.98l-1.343-1.342zM3.797 12.832l-.807.808.99.425.525-.525-.708-.707zm2.015-.107l2.357-.47-3.086-3.087-.471 2.357 1.2 1.2z",
32
- fill: color
33
- })]
34
- });
35
- }
36
- //# sourceMappingURL=HighlighterIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","_interopRequireWildcard","_reactNativeUi","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HighlighterIcon","size","color","COLORS","NEUTRAL_9","style","jsxs","width","height","viewBox","fill","children","jsx","Path","d","fillRule","clipRule"],"sourceRoot":"../../../../src","sources":["shared/icons/HighlighterIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAAmD,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,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAA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