@magmamath/students-features 0.7.1 → 0.8.0-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 (254) hide show
  1. package/dist/commonjs/features/chatbot/components/{ChatMessages/ChatbotMessages.js → Chat/Chat.js} +8 -15
  2. package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -0
  3. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +1 -1
  4. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +74 -0
  6. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -0
  7. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +144 -0
  8. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -0
  9. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +138 -0
  10. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +1 -0
  11. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +66 -0
  12. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +1 -0
  13. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.js +106 -0
  14. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +1 -0
  15. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +7 -4
  16. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  17. package/dist/commonjs/features/chatbot/components/Chatbot.js +2 -2
  18. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  19. package/dist/commonjs/features/chatbot/constants.js +6 -1
  20. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  21. package/dist/commonjs/features/chatbot/helpers.js +75 -1
  22. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  23. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  24. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +49 -11
  25. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  26. package/dist/commonjs/features/chatbot/model/ChatBotTextInput.js +16 -0
  27. package/dist/commonjs/features/chatbot/model/ChatBotTextInput.js.map +1 -0
  28. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +11 -19
  29. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  30. package/dist/commonjs/features/chatbot/model/{translation.js → ChatbotTranslation.js} +29 -1
  31. package/dist/commonjs/features/chatbot/model/ChatbotTranslation.js.map +1 -0
  32. package/dist/commonjs/features/chatbot/types/model.types.js +6 -1
  33. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  34. package/dist/commonjs/features/chatbot/types/units.types.js +10 -0
  35. package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -1
  36. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +8 -0
  37. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  38. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +44 -0
  39. package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +1 -0
  40. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +61 -0
  41. package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +1 -0
  42. package/dist/commonjs/shared/hooks/useKeyDownListener.js +3 -2
  43. package/dist/commonjs/shared/hooks/useKeyDownListener.js.map +1 -1
  44. package/dist/commonjs/shared/translation/localization/ca.json +3 -2
  45. package/dist/commonjs/shared/translation/localization/en.json +3 -2
  46. package/dist/commonjs/shared/translation/localization/gb.json +3 -2
  47. package/dist/commonjs/shared/translation/localization/sct.json +3 -2
  48. package/dist/commonjs/shared/translation/localization/sw.json +3 -2
  49. package/dist/module/features/chatbot/components/{ChatMessages/ChatbotMessages.js → Chat/Chat.js} +6 -13
  50. package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -0
  51. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +1 -1
  52. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  53. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +67 -0
  54. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -0
  55. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +138 -0
  56. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -0
  57. package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +131 -0
  58. package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +1 -0
  59. package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +60 -0
  60. package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +1 -0
  61. package/dist/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.js +98 -0
  62. package/dist/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +1 -0
  63. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +7 -4
  64. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  65. package/dist/module/features/chatbot/components/Chatbot.js +2 -2
  66. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  67. package/dist/module/features/chatbot/constants.js +5 -0
  68. package/dist/module/features/chatbot/constants.js.map +1 -1
  69. package/dist/module/features/chatbot/helpers.js +71 -0
  70. package/dist/module/features/chatbot/helpers.js.map +1 -1
  71. package/dist/module/features/chatbot/index.js.map +1 -1
  72. package/dist/module/features/chatbot/model/ChatBotModel.js +49 -11
  73. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  74. package/dist/module/features/chatbot/model/ChatBotTextInput.js +11 -0
  75. package/dist/module/features/chatbot/model/ChatBotTextInput.js.map +1 -0
  76. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +11 -19
  77. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  78. package/dist/module/features/chatbot/model/{translation.js → ChatbotTranslation.js} +29 -1
  79. package/dist/module/features/chatbot/model/ChatbotTranslation.js.map +1 -0
  80. package/dist/module/features/chatbot/types/model.types.js +5 -0
  81. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  82. package/dist/module/features/chatbot/types/units.types.js +6 -0
  83. package/dist/module/features/chatbot/types/units.types.js.map +1 -1
  84. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +8 -0
  85. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  86. package/dist/module/features/exampleSolution/components/LavaIcon.js +36 -0
  87. package/dist/module/features/exampleSolution/components/LavaIcon.js.map +1 -0
  88. package/dist/module/features/exampleSolution/components/MessageBlock.js +53 -0
  89. package/dist/module/features/exampleSolution/components/MessageBlock.js.map +1 -0
  90. package/dist/module/shared/hooks/useKeyDownListener.js +3 -2
  91. package/dist/module/shared/hooks/useKeyDownListener.js.map +1 -1
  92. package/dist/module/shared/translation/localization/ca.json +3 -2
  93. package/dist/module/shared/translation/localization/en.json +3 -2
  94. package/dist/module/shared/translation/localization/gb.json +3 -2
  95. package/dist/module/shared/translation/localization/sct.json +3 -2
  96. package/dist/module/shared/translation/localization/sw.json +3 -2
  97. package/dist/typescript/{module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts → commonjs/features/chatbot/components/Chat/Chat.d.ts} +3 -3
  98. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -0
  99. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts +1 -1
  100. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  101. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts +9 -0
  102. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -0
  103. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts +16 -0
  104. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -0
  105. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +16 -0
  106. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +1 -0
  107. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +11 -0
  108. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +1 -0
  109. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts +10 -0
  110. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +1 -0
  111. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  112. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +3 -1
  113. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  114. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +5 -0
  115. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  116. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts +5 -0
  117. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  118. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  119. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +5 -6
  120. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  121. package/dist/typescript/commonjs/features/chatbot/model/ChatBotTextInput.d.ts +8 -0
  122. package/dist/typescript/commonjs/features/chatbot/model/ChatBotTextInput.d.ts.map +1 -0
  123. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +3 -2
  124. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  125. package/dist/typescript/{module/features/chatbot/model/translation.d.ts → commonjs/features/chatbot/model/ChatbotTranslation.d.ts} +3 -2
  126. package/dist/typescript/commonjs/features/chatbot/model/ChatbotTranslation.d.ts.map +1 -0
  127. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +28 -6
  128. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  129. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +28 -3
  130. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  131. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +5 -0
  132. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
  133. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +5 -0
  134. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
  135. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  136. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +10 -0
  137. package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
  138. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +10 -0
  139. package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
  140. package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts +1 -1
  141. package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts.map +1 -1
  142. package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts +1 -1
  143. package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/shared/translation/constants.d.ts +5 -0
  145. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  146. package/dist/typescript/commonjs/shared/translation/model.d.ts +2 -0
  147. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  148. package/dist/typescript/{commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts → module/features/chatbot/components/Chat/Chat.d.ts} +3 -3
  149. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -0
  150. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts +1 -1
  151. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  152. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts +9 -0
  153. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -0
  154. package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts +16 -0
  155. package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -0
  156. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +16 -0
  157. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +1 -0
  158. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +11 -0
  159. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +1 -0
  160. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts +10 -0
  161. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +1 -0
  162. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  163. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +3 -1
  164. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  165. package/dist/typescript/module/features/chatbot/constants.d.ts +5 -0
  166. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  167. package/dist/typescript/module/features/chatbot/helpers.d.ts +5 -0
  168. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  169. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  170. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +5 -6
  171. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  172. package/dist/typescript/module/features/chatbot/model/ChatBotTextInput.d.ts +8 -0
  173. package/dist/typescript/module/features/chatbot/model/ChatBotTextInput.d.ts.map +1 -0
  174. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +3 -2
  175. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  176. package/dist/typescript/{commonjs/features/chatbot/model/translation.d.ts → module/features/chatbot/model/ChatbotTranslation.d.ts} +3 -2
  177. package/dist/typescript/module/features/chatbot/model/ChatbotTranslation.d.ts.map +1 -0
  178. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +28 -6
  179. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  180. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +28 -3
  181. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  182. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +5 -0
  183. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
  184. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +5 -0
  185. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
  186. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  187. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +10 -0
  188. package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
  189. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +10 -0
  190. package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
  191. package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts +1 -1
  192. package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts.map +1 -1
  193. package/dist/typescript/module/shared/hooks/useKeyboard.d.ts +1 -1
  194. package/dist/typescript/module/shared/hooks/useKeyboard.d.ts.map +1 -1
  195. package/dist/typescript/module/shared/translation/constants.d.ts +5 -0
  196. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  197. package/dist/typescript/module/shared/translation/model.d.ts +2 -0
  198. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  199. package/package.json +1 -1
  200. package/src/features/chatbot/components/{ChatMessages/ChatbotMessages.tsx → Chat/Chat.tsx} +13 -18
  201. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +2 -2
  202. package/src/features/chatbot/components/ChatInput/ChatInput.tsx +88 -0
  203. package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +156 -0
  204. package/src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx +156 -0
  205. package/src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx +71 -0
  206. package/src/features/chatbot/components/ChatInput/freeText/SendMessageButton.tsx +111 -0
  207. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +6 -2
  208. package/src/features/chatbot/components/Chatbot.tsx +5 -3
  209. package/src/features/chatbot/constants.ts +7 -0
  210. package/src/features/chatbot/helpers.ts +70 -1
  211. package/src/features/chatbot/index.ts +1 -0
  212. package/src/features/chatbot/model/ChatBotModel.ts +82 -37
  213. package/src/features/chatbot/model/ChatBotTextInput.ts +10 -0
  214. package/src/features/chatbot/model/ChatBotThreadManager.ts +17 -19
  215. package/src/features/chatbot/model/{translation.ts → ChatbotTranslation.ts} +32 -2
  216. package/src/features/chatbot/types/api.types.ts +31 -6
  217. package/src/features/chatbot/types/model.types.ts +35 -2
  218. package/src/features/chatbot/types/translation.types.ts +6 -0
  219. package/src/features/chatbot/types/units.types.ts +6 -0
  220. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +4 -0
  221. package/src/features/exampleSolution/components/LavaIcon.tsx +35 -0
  222. package/src/features/exampleSolution/components/MessageBlock.tsx +67 -0
  223. package/src/shared/hooks/useKeyDownListener.ts +3 -1
  224. package/src/shared/translation/localization/ca.json +3 -2
  225. package/src/shared/translation/localization/en.json +3 -2
  226. package/src/shared/translation/localization/gb.json +3 -2
  227. package/src/shared/translation/localization/sct.json +3 -2
  228. package/src/shared/translation/localization/sw.json +3 -2
  229. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +0 -59
  230. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +0 -1
  231. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +0 -99
  232. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +0 -1
  233. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +0 -1
  234. package/dist/commonjs/features/chatbot/model/translation.js.map +0 -1
  235. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +0 -53
  236. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +0 -1
  237. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +0 -92
  238. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +0 -1
  239. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +0 -1
  240. package/dist/module/features/chatbot/model/translation.js.map +0 -1
  241. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +0 -11
  242. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +0 -1
  243. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +0 -10
  244. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +0 -1
  245. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +0 -1
  246. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +0 -1
  247. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +0 -11
  248. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +0 -1
  249. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +0 -10
  250. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +0 -1
  251. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +0 -1
  252. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +0 -1
  253. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +0 -60
  254. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +0 -91
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","ExcitedLavaIcon","LavaIconInGlasses","Animated","FadeIn","useAnimatedStyle","withTiming","ExampleSolutionStatuses","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","LAVA_ICON_HEIGHT","LavaIcon","status","style","opacityAnimation","opacity","LOADING","duration","children","View","height","entering"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/LavaIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,0CAAuC;AACvE,SAASC,iBAAiB,QAAQ,gCAAuB;AACzD,OAAOC,QAAQ,IAAIC,MAAM,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,yBAAyB;AAExF,SAASC,uBAAuB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtD,MAAMC,gBAAgB,GAAG,GAAG;AAO5B,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAqB,CAAC,KAAK;EAC5D,MAAMC,gBAAgB,GAAGb,gBAAgB,CAAC,MAAM;IAC9C,OAAO;MACLc,OAAO,EAAEb,UAAU,CAACU,MAAM,KAAKT,uBAAuB,CAACa,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE;QAAEC,QAAQ,EAAE;MAAI,CAAC;IAC3F,CAAC;EACH,CAAC,EAAE,CAACL,MAAM,CAAC,CAAC;EAEZ,oBACEH,KAAA,CAAAF,SAAA;IAAAW,QAAA,gBACEb,IAAA,CAACN,QAAQ,CAACoB,IAAI;MAACN,KAAK,EAAE,CAACA,KAAK,EAAEC,gBAAgB,CAAE;MAAAI,QAAA,eAC9Cb,IAAA,CAACP,iBAAiB;QAACsB,MAAM,EAAE;MAAI,CAAE;IAAC,CACrB,CAAC,EAEfR,MAAM,KAAKT,uBAAuB,CAACa,OAAO,iBACzCX,IAAA,CAACN,QAAQ,CAACoB,IAAI;MAACN,KAAK,EAAEA,KAAM;MAACQ,QAAQ,EAAErB,MAAO;MAAAkB,QAAA,eAC5Cb,IAAA,CAACR,eAAe;QAACuB,MAAM,EAAEV;MAAiB,CAAE;IAAC,CAChC,CAChB;EAAA,CACD,CAAC;AAEP,CAAC","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import React from 'react';
5
+ import { COLORS, SPACING, Typography } from '@magmamath/react-native-ui';
6
+ import { useUnit } from 'effector-react';
7
+ import { $localization } from "../../../shared/translation/index.js";
8
+ import Animated, { LinearTransition, useAnimatedStyle, withDelay, withTiming } from 'react-native-reanimated';
9
+ import { ExampleSolutionStatuses } from "../constants.js";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ export const MessageBlock = ({
12
+ status,
13
+ style
14
+ }) => {
15
+ const localization = useUnit($localization);
16
+ const opacityAnimation = useAnimatedStyle(() => {
17
+ return {
18
+ opacity: withDelay(2000, withTiming(status === ExampleSolutionStatuses.LOADING ? 1 : 0, {
19
+ duration: 350
20
+ }))
21
+ };
22
+ }, [status]);
23
+ if (status === ExampleSolutionStatuses.CACHE) return null;
24
+ return /*#__PURE__*/_jsx(Animated.View, {
25
+ layout: LinearTransition.duration(250),
26
+ style: [styles.container, opacityAnimation, style],
27
+ children: /*#__PURE__*/_jsx(Typography, {
28
+ variant: 'small',
29
+ numberOfLines: 1,
30
+ children: status === ExampleSolutionStatuses.LOADING ? localization.exampleSolution.letMeThink : localization.exampleSolution.aha
31
+ })
32
+ });
33
+ };
34
+ const styles = StyleSheet.create({
35
+ container: {
36
+ padding: SPACING[200],
37
+ backgroundColor: COLORS.NEUTRAL_3,
38
+ height: 44,
39
+ borderRadius: 12,
40
+ borderBottomRightRadius: 2,
41
+ borderWidth: StyleSheet.hairlineWidth,
42
+ borderColor: COLORS.NEUTRAL_5,
43
+ shadowColor: COLORS.NEUTRAL_10,
44
+ shadowOffset: {
45
+ width: 0,
46
+ height: 1
47
+ },
48
+ shadowOpacity: 0.2,
49
+ shadowRadius: 1,
50
+ elevation: 3
51
+ }
52
+ });
53
+ //# sourceMappingURL=MessageBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","React","COLORS","SPACING","Typography","useUnit","$localization","Animated","LinearTransition","useAnimatedStyle","withDelay","withTiming","ExampleSolutionStatuses","jsx","_jsx","MessageBlock","status","style","localization","opacityAnimation","opacity","LOADING","duration","CACHE","View","layout","styles","container","children","variant","numberOfLines","exampleSolution","letMeThink","aha","create","padding","backgroundColor","NEUTRAL_3","height","borderRadius","borderBottomRightRadius","borderWidth","hairlineWidth","borderColor","NEUTRAL_5","shadowColor","NEUTRAL_10","shadowOffset","width","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/MessageBlock.tsx"],"mappings":";;AAAA,SAAoBA,UAAU,QAAmB,cAAc;AAC/D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,OAAO,EAAEC,UAAU,QAAQ,4BAA4B;AACxE,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,aAAa,QAAQ,sCAA6B;AAC3D,OAAOC,QAAQ,IACbC,gBAAgB,EAChBC,gBAAgB,EAChBC,SAAS,EACTC,UAAU,QACL,yBAAyB;AAChC,SAASC,uBAAuB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOtD,OAAO,MAAMC,YAAY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,MAAM,CAAC4C,UAAU;IAC9BC,YAAY,EAAE;MACZC,KAAK,EAAE,CAAC;MACRV,MAAM,EAAE;IACV,CAAC;IACDW,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IAEfC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,10 +2,11 @@
2
2
 
3
3
  import { useEffect, useRef } from 'react';
4
4
  import { KeyboardKeys } from "../../lib/constants.js";
5
- export const useKeyDownListener = (callback, overrideKeys = [KeyboardKeys.ENTER]) => {
5
+ export const useKeyDownListener = (callback, enabled = true, overrideKeys = [KeyboardKeys.ENTER]) => {
6
6
  const callbackRef = useRef(callback);
7
7
  callbackRef.current = callback;
8
8
  useEffect(() => {
9
+ if (!enabled) return;
9
10
  const eventHandler = event => {
10
11
  if (overrideKeys.includes(event.key)) {
11
12
  event.preventDefault();
@@ -17,6 +18,6 @@ export const useKeyDownListener = (callback, overrideKeys = [KeyboardKeys.ENTER]
17
18
  return () => {
18
19
  document.removeEventListener('keydown', eventHandler, true);
19
20
  };
20
- }, []);
21
+ }, [enabled]);
21
22
  };
22
23
  //# sourceMappingURL=useKeyDownListener.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useRef","KeyboardKeys","useKeyDownListener","callback","overrideKeys","ENTER","callbackRef","current","eventHandler","event","includes","key","preventDefault","stopPropagation","document","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["shared/hooks/useKeyDownListener.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,SAASC,YAAY,QAAQ,wBAAqB;AAElD,OAAO,MAAMC,kBAAkB,GAAGA,CAChCC,QAAwC,EACxCC,YAAY,GAAG,CAACH,YAAY,CAACI,KAAK,CAAC,KAChC;EACH,MAAMC,WAAW,GAAGN,MAAM,CAACG,QAAQ,CAAC;EACpCG,WAAW,CAACC,OAAO,GAAGJ,QAAQ;EAE9BJ,SAAS,CAAC,MAAM;IACd,MAAMS,YAAY,GAAIC,KAAoB,IAAK;MAC7C,IAAIL,YAAY,CAACM,QAAQ,CAACD,KAAK,CAACE,GAAmB,CAAC,EAAE;QACpDF,KAAK,CAACG,cAAc,CAAC,CAAC;QACtBH,KAAK,CAACI,eAAe,CAAC,CAAC;MACzB;MAEAP,WAAW,CAACC,OAAO,CAACE,KAAK,CAAC;IAC5B,CAAC;IAEDK,QAAQ,CAACC,gBAAgB,CAAC,SAAS,EAAEP,YAAY,EAAE,IAAI,CAAC;IACxD,OAAO,MAAM;MACXM,QAAQ,CAACE,mBAAmB,CAAC,SAAS,EAAER,YAAY,EAAE,IAAI,CAAC;IAC7D,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useEffect","useRef","KeyboardKeys","useKeyDownListener","callback","enabled","overrideKeys","ENTER","callbackRef","current","eventHandler","event","includes","key","preventDefault","stopPropagation","document","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["shared/hooks/useKeyDownListener.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,SAASC,YAAY,QAAQ,wBAAqB;AAElD,OAAO,MAAMC,kBAAkB,GAAGA,CAChCC,QAAwC,EACxCC,OAAO,GAAG,IAAI,EACdC,YAAY,GAAG,CAACJ,YAAY,CAACK,KAAK,CAAC,KAChC;EACH,MAAMC,WAAW,GAAGP,MAAM,CAACG,QAAQ,CAAC;EACpCI,WAAW,CAACC,OAAO,GAAGL,QAAQ;EAE9BJ,SAAS,CAAC,MAAM;IACd,IAAI,CAACK,OAAO,EAAE;IACd,MAAMK,YAAY,GAAIC,KAAoB,IAAK;MAC7C,IAAIL,YAAY,CAACM,QAAQ,CAACD,KAAK,CAACE,GAAmB,CAAC,EAAE;QACpDF,KAAK,CAACG,cAAc,CAAC,CAAC;QACtBH,KAAK,CAACI,eAAe,CAAC,CAAC;MACzB;MAEAP,WAAW,CAACC,OAAO,CAACE,KAAK,CAAC;IAC5B,CAAC;IAEDK,QAAQ,CAACC,gBAAgB,CAAC,SAAS,EAAEP,YAAY,EAAE,IAAI,CAAC;IACxD,OAAO,MAAM;MACXM,QAAQ,CAACE,mBAAmB,CAAC,SAAS,EAAER,YAAY,EAAE,IAAI,CAAC;IAC7D,CAAC;EACH,CAAC,EAAE,CAACL,OAAO,CAAC,CAAC;AACf,CAAC","ignoreList":[]}
@@ -13,11 +13,12 @@
13
13
  "time.yearsAgo": "years ago",
14
14
  "chat": {
15
15
  "anotherHint": "Give me another hint",
16
- "giveHint": "Give me a hint",
16
+ "giveHint": "I need a hint",
17
17
  "answerAgain": "Answer again to get another hint!",
18
18
  "errorMessage": "Something went wrong! Try again",
19
19
  "howCanIHelp": "Hi! Do you want help?",
20
- "showError": "Show error"
20
+ "showError": "Show error",
21
+ "inputPlaceholder": "Type..."
21
22
  },
22
23
  "gifCelebrations": {
23
24
  "greatStart": "Great start!",
@@ -13,11 +13,12 @@
13
13
  "time.yearsAgo": "years ago",
14
14
  "chat": {
15
15
  "anotherHint": "Give me another hint",
16
- "giveHint": "Give me a hint",
16
+ "giveHint": "I need a hint",
17
17
  "answerAgain": "Answer again to get another hint!",
18
18
  "errorMessage": "Something went wrong! Try again",
19
19
  "howCanIHelp": "Hi! Do you want help?",
20
- "showError": "Show error"
20
+ "showError": "Show error",
21
+ "inputPlaceholder": "Type..."
21
22
  },
22
23
  "gifCelebrations": {
23
24
  "greatStart": "Great start!",
@@ -13,11 +13,12 @@
13
13
  "time.yearsAgo": "years ago",
14
14
  "chat": {
15
15
  "anotherHint": "Give me another hint",
16
- "giveHint": "Give me a hint",
16
+ "giveHint": "I need a hint",
17
17
  "answerAgain": "Answer again to get another hint!",
18
18
  "errorMessage": "Something went wrong! Try again",
19
19
  "howCanIHelp": "Hi! Do you want help?",
20
- "showError": "Show error"
20
+ "showError": "Show error",
21
+ "inputPlaceholder": "Type..."
21
22
  },
22
23
  "gifCelebrations": {
23
24
  "greatStart": "Great start!",
@@ -13,11 +13,12 @@
13
13
  "time.yearsAgo": "years ago",
14
14
  "chat": {
15
15
  "anotherHint": "Give me another hint",
16
- "giveHint": "Give me a hint",
16
+ "giveHint": "I need a hint",
17
17
  "answerAgain": "Answer again to get another hint!",
18
18
  "errorMessage": "Something went wrong! Try again",
19
19
  "howCanIHelp": "Hi! Do you want help?",
20
- "showError": "Show error"
20
+ "showError": "Show error",
21
+ "inputPlaceholder": "Type..."
21
22
  },
22
23
  "gifCelebrations": {
23
24
  "greatStart": "Great start!",
@@ -13,11 +13,12 @@
13
13
  "time.yearsAgo": "år sedan",
14
14
  "chat": {
15
15
  "anotherHint": "Ge mig en ledtråd",
16
- "giveHint": "Ge mig en ledtråd",
16
+ "giveHint": "Ge ledtråd",
17
17
  "answerAgain": "Svara igen för att få en till ledtråd!",
18
18
  "errorMessage": "Något gick snett! Försök igen",
19
19
  "howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
20
- "showError": "Visa fel"
20
+ "showError": "Visa fel",
21
+ "inputPlaceholder": "Skriv..."
21
22
  },
22
23
  "gifCelebrations": {
23
24
  "greatStart": "Bra start!",
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { ChatbotModel } from '../../model/ChatBotModel';
3
3
  import { ColorScheme } from '../../types/style.types';
4
- type ChatbotMessagesProps = {
4
+ type ChatProps = {
5
5
  model: ChatbotModel;
6
6
  isHintFeedback: boolean;
7
7
  isTextToSpeechEnabled: boolean;
8
8
  colorScheme?: ColorScheme;
9
9
  };
10
- export declare const ChatbotMessages: ({ model, isHintFeedback, isTextToSpeechEnabled, colorScheme, }: ChatbotMessagesProps) => React.JSX.Element;
10
+ export declare const Chat: ({ model, isHintFeedback, isTextToSpeechEnabled, colorScheme, }: ChatProps) => React.JSX.Element;
11
11
  export {};
12
- //# sourceMappingURL=ChatbotMessages.d.ts.map
12
+ //# sourceMappingURL=Chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAIrC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAKvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQrD,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,IAAI,mEAKd,SAAS,sBAmEX,CAAA"}
@@ -5,7 +5,7 @@ type ChatControlsProps = {
5
5
  model: ChatbotModel;
6
6
  onPressChatIcon: () => void;
7
7
  onPressClose: () => void;
8
- ButtonWrapper: ComponentType<PropsWithChildren>;
8
+ ButtonWrapper?: ComponentType<PropsWithChildren>;
9
9
  iconSize?: {
10
10
  width: number;
11
11
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ChatControls.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatControls/ChatControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAWxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIvD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,YAAY,CAAA;IACnB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAC/C,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,YAAY,uEAMtB,iBAAiB,sBAkDnB,CAAA"}
1
+ {"version":3,"file":"ChatControls.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatControls/ChatControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAWxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIvD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,YAAY,CAAA;IACnB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,YAAY,uEAMtB,iBAAiB,sBAkDnB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ColorScheme } from '../../types/style.types';
3
+ export type ChatInputProps = {
4
+ hasMessages: boolean;
5
+ isHintFeedback: boolean;
6
+ colorScheme?: ColorScheme;
7
+ };
8
+ export declare const ChatInput: ({ isHintFeedback, hasMessages, colorScheme, }: ChatInputProps) => React.JSX.Element | null;
9
+ //# sourceMappingURL=ChatInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAKnD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAIrD,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,SAAS,kDAInB,cAAc,6BA0DhB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ColorScheme } from '@magmamath/students-features';
3
+ export declare enum HintButtonVariant {
4
+ Default = "default",
5
+ Short = "short"
6
+ }
7
+ type RequestHintButtonProps = {
8
+ onPress: () => void;
9
+ label: string;
10
+ disabled: boolean;
11
+ colorScheme?: ColorScheme;
12
+ variant: HintButtonVariant;
13
+ };
14
+ export declare const RequestHintButton: React.MemoExoticComponent<({ onPress, label, disabled, colorScheme, variant, }: RequestHintButtonProps) => React.JSX.Element>;
15
+ export {};
16
+ //# sourceMappingURL=RequestHintButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestHintButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatInput/RequestHintButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAe,MAAM,OAAO,CAAA;AAenC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAG1D,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAYD,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,EAAE,iBAAiB,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,iBAAiB,kFAOzB,sBAAsB,uBA0E1B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';
3
+ import { ColorScheme } from '@magmamath/students-features';
4
+ type ChatTextInputProps = {
5
+ value: string;
6
+ onSubmit: () => void;
7
+ submitDisabled?: boolean;
8
+ onChangeText?: (text: string) => void;
9
+ onBlur?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void;
10
+ onFocus?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void;
11
+ placeholder?: string;
12
+ colorScheme?: ColorScheme;
13
+ };
14
+ export declare const ChatTextInput: ({ value, submitDisabled, onSubmit, onChangeText, onBlur, onFocus, colorScheme, placeholder, }: ChatTextInputProps) => React.JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=ChatTextInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatTextInput.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAE/C,OAAO,EACL,oBAAoB,EAIpB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAW1D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAA;IACnE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAA;IACpE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,kGASvB,kBAAkB,sBAyEpB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ColorScheme } from '../../../types/style.types';
3
+ type FreeTextInputBlockProps = {
4
+ optionLabel: string;
5
+ disabled: boolean;
6
+ onOptionPress: () => void;
7
+ colorScheme?: ColorScheme;
8
+ };
9
+ export declare const FreeTextInputBlock: ({ optionLabel, onOptionPress, disabled, colorScheme, }: FreeTextInputBlockProps) => React.JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=FreeTextInputBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FreeTextInputBlock.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMxD,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,2DAK5B,uBAAuB,sBAuCzB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { ColorScheme } from '@magmamath/students-features';
3
+ type SendMessageButtonProps = {
4
+ onPress: () => void;
5
+ disabled: boolean;
6
+ colorScheme?: ColorScheme;
7
+ };
8
+ export declare const SendMessageButton: ({ onPress, disabled, colorScheme, }: SendMessageButtonProps) => React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=SendMessageButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendMessageButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/chatbot/components/ChatInput/freeText/SendMessageButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAG1D,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,wCAI3B,sBAAsB,sBAwDxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,oBAAwC,kBAAkB,sBASnF,CAAA"}
1
+ {"version":3,"file":"MessageLoader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chatbot/components/ChatMessage/MessageLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGrD,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,aAAa,oBAAwC,kBAAkB,sBASnF,CAAA"}
@@ -2,6 +2,7 @@ import React, { ComponentType, PropsWithChildren } from 'react';
2
2
  import { ChatbotModel } from '../model/ChatBotModel';
3
3
  import { AUDIO_CONFIG, DEFAULT_VOICE } from '../constants';
4
4
  import { ColorScheme } from '../types/style.types';
5
+ import { ChatInputMode } from '../types/units.types';
5
6
  type ChatbotProps = {
6
7
  model: ChatbotModel;
7
8
  isHintFeedback: boolean;
@@ -10,7 +11,8 @@ type ChatbotProps = {
10
11
  voice: typeof DEFAULT_VOICE;
11
12
  audioConfig: typeof AUDIO_CONFIG;
12
13
  };
13
- ButtonWrapper: ComponentType<PropsWithChildren>;
14
+ inputMode?: ChatInputMode;
15
+ ButtonWrapper?: ComponentType<PropsWithChildren>;
14
16
  iconSize?: {
15
17
  width: number;
16
18
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Chatbot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/components/Chat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E,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE;QACnB,KAAK,EAAE,OAAO,aAAa,CAAA;QAC3B,WAAW,EAAE,OAAO,YAAY,CAAA;KACjC,CAAA;IACD,SAAS,CAAC,EAAE,aAAa,CAAA;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAChD,QAAQ,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,OAAO,gHAQjB,YAAY,6BA8Bd,CAAA"}
@@ -29,20 +29,24 @@ export declare const MESSAGE_COLORS_MAP: {
29
29
  blue: {
30
30
  received: {
31
31
  background: "#f2f2f4";
32
+ border: "#f2f2f4";
32
33
  icon: ButtonColor;
33
34
  };
34
35
  sent: {
35
36
  background: "#55abe0";
37
+ border: "#55abe0";
36
38
  icon: ButtonColor;
37
39
  };
38
40
  };
39
41
  yellow: {
40
42
  received: {
41
43
  background: "#f2f2f4";
44
+ border: "#f2f2f4";
42
45
  icon: ButtonColor;
43
46
  };
44
47
  sent: {
45
48
  background: "#ffae22";
49
+ border: "#ffae22";
46
50
  icon: ButtonColor;
47
51
  };
48
52
  };
@@ -57,4 +61,5 @@ export declare const CONTROLS_COLORS_MAP: {
57
61
  background: "#ffae22";
58
62
  };
59
63
  };
64
+ export declare const HOVER_ANIMATION_DURATION = 200;
60
65
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAU,MAAM,4BAA4B,CAAA;AAKhE,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;CAgBhC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;CAErB,CAAA;AAEV,eAAO,MAAM,0BAA0B;;CAE7B,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;CAS/B,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAU,MAAM,4BAA4B,CAAA;AAMhE,eAAO,MAAM,YAAY;;;;CAIxB,CAAA;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAA;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;CAgBhC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;CAErB,CAAA;AAEV,eAAO,MAAM,0BAA0B;;CAE7B,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB9B,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;CAS/B,CAAA;AAED,eAAO,MAAM,wBAAwB,MAAM,CAAA"}
@@ -1,3 +1,8 @@
1
+ import { GetAlternativesResponse, PostMessagePayload } from './types/api.types';
2
+ import { ThreadItem } from './model/ThreadItem';
3
+ import { ChatRequestPayload } from './types/model.types';
1
4
  export declare const decodeHTMLEntities: (input: string) => string;
2
5
  export declare const replaceKatexSyntax: (texts: string[], reverse?: boolean) => string[];
6
+ export declare const transformAlternatives: (payload: GetAlternativesResponse | null) => GetAlternativesResponse | null;
7
+ export declare function prepareChatRequestPayload(payload: PostMessagePayload, threadItem: ThreadItem): ChatRequestPayload;
3
8
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/helpers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAE/C,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAW,MAAM,EAAE,gCAWjD,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAmB,MAAM,qBAAqB,CAAA;AAEzE,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAE/C,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAW,MAAM,EAAE,gCAWjD,CAAA;AAED,eAAO,MAAM,qBAAqB,YAAa,uBAAuB,GAAG,IAAI,mCAgB5E,CAAA;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,UAAU,GACrB,kBAAkB,CA0CpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,EACL,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/chatbot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,EACL,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,15 +1,13 @@
1
1
  import { type Store } from 'effector';
2
- import { ChatbotContext, ChatbotModelProps, IChatDrawBoardAdapter, SendHelpParams, SetHintMessageProps, StartConversationProps } from '../types/model.types';
2
+ import { ChatbotContext, ChatbotModelProps, IChatDrawBoardAdapter, ReinitConversationProps, SendHelpParams, SetHintMessageProps, StartConversationProps } from '../types/model.types';
3
3
  import { GetAlternativesResponse } from '../types/api.types';
4
4
  import { ChatbotAPI } from './ChatbotApi';
5
- import { ChatbotTranslation } from './translation';
5
+ import { ChatbotTranslation } from './ChatbotTranslation';
6
6
  import { ChatTextToSpeechModel, T2SConfig } from './t2s';
7
7
  import { ChatBotThreadManager } from './ChatBotThreadManager';
8
8
  import { ErrorSpottingModel } from '../errorSpotting/ErrorSpottingModel';
9
+ import { ChatBotTextInput } from './ChatBotTextInput';
9
10
  import { ChatBotTextManager } from './ChatBoxTextManager';
10
- type ReinitConversationProps = {
11
- key: string;
12
- };
13
11
  export declare class ChatbotModel {
14
12
  readonly textManager: ChatBotTextManager;
15
13
  private readonly defaultMessages;
@@ -18,6 +16,7 @@ export declare class ChatbotModel {
18
16
  readonly translation: ChatbotTranslation;
19
17
  readonly t2s: ChatTextToSpeechModel;
20
18
  readonly errorSpotting: ErrorSpottingModel;
19
+ readonly textInput: ChatBotTextInput;
21
20
  private readonly setCurrentKey;
22
21
  readonly $currentKey: import("effector").StoreWritable<string>;
23
22
  private unbindCurrentKey;
@@ -41,6 +40,7 @@ export declare class ChatbotModel {
41
40
  messages: import("..").ConversationMessage[];
42
41
  isAvailable: boolean;
43
42
  currentThread: import("../types/units.types").IThreadItem | null;
43
+ conversationId?: string | null;
44
44
  }>;
45
45
  constructor({ api, $key, threadMessagesLimit, settings }: ChatbotModelProps);
46
46
  private createSendHelpRequestFx;
@@ -58,5 +58,4 @@ export declare class ChatbotModel {
58
58
  unbindKey(): this;
59
59
  unbindExternalTranslationState(): this;
60
60
  }
61
- export {};
62
61
  //# sourceMappingURL=ChatBotModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBotModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+D,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAClG,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EAEd,mBAAmB,EAEnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA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wEAAA;IACjC,SAAgB,iBAAiB,yDAAiC;IAE3D,cAAc,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,mBAAmB;IAK9D,SAAgB,kBAAkB,YAAa,uBAAuB,UAGrE;IAEM,WAAW,CAAC,GAAG,EAAE,MAAM;IAMvB,SAAS,+CAiBd;IAEF,SAAgB,KAAK,yCAMnB;IAEK,SAAS;IAST,8BAA8B;CAItC"}
@@ -0,0 +1,8 @@
1
+ export declare class ChatBotTextInput {
2
+ readonly setValue: import("effector").EventCallable<string>;
3
+ readonly setIsFocused: import("effector").EventCallable<boolean>;
4
+ readonly reset: import("effector").EventCallable<void>;
5
+ readonly $value: import("effector").StoreWritable<string>;
6
+ readonly $isFocused: import("effector").StoreWritable<boolean>;
7
+ }
8
+ //# sourceMappingURL=ChatBotTextInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatBotTextInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotTextInput.ts"],"names":[],"mappings":"AAEA,qBAAa,gBAAgB;IAC3B,SAAgB,QAAQ,2CAAwB;IAChD,SAAgB,YAAY,4CAAyB;IACrD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,MAAM,2CAA+C;IACrE,SAAgB,UAAU,4CAAsD;CACjF"}
@@ -1,8 +1,9 @@
1
1
  import { ThreadItem } from './ThreadItem';
2
- import { ChatHintPayload, ChatHintResponse, PostMessagePayload, PostMessageResponse } from '../types/api.types';
2
+ import { ChatHintPayload, ChatHintResponse, PostMessagePayload, PostMessageResponse, SendMessagePayload, SendMessageResponse } from '../types/api.types';
3
3
  import { ChatbotMessages, IChatDrawBoardAdapter } from '../types/model.types';
4
4
  type ThreadManagerApi = {
5
5
  getHint: (props: ChatHintPayload) => Promise<ChatHintResponse>;
6
+ sendMessage: (props: SendMessagePayload) => Promise<SendMessageResponse>;
6
7
  };
7
8
  type ChatBotThreadManagerProps = {
8
9
  messagesLimit?: number;
@@ -20,7 +21,7 @@ export declare class ChatBotThreadManager {
20
21
  constructor({ drawBoardAdapter, api, messagesLimit, messages, }: ChatBotThreadManagerProps);
21
22
  private getThreadItem;
22
23
  setDrawBoardAdapter(adapter: IChatDrawBoardAdapter): void;
23
- readonly postMessage: ({ problemAnswer, problem, answer, language, imageAltText, imageCdnId, }: PostMessagePayload) => Promise<PostMessageResponse>;
24
+ readonly postMessage: (payload: PostMessagePayload) => Promise<PostMessageResponse>;
24
25
  get(key: string): ThreadItem | undefined;
25
26
  reset(key?: string): void;
26
27
  setMessagesLimit(limit: number): void;
@@ -1 +1 @@
1
- {"version":3,"file":"ChatBotThreadManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotThreadManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAG7E,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAA;CAC/D,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IACxC,QAAQ,EAAE,eAAe,CAAA;IACzB,GAAG,CAAC,EAAE,gBAAgB,CAAA;CACvB,CAAA;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,GAAG,CAAgC;IAC3C,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IAExD,OAAO,CAAC,aAAa,CAAA;IACrB,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;gBAEb,EACjB,gBAAgB,EAChB,GAAG,EACH,aAA6D,EAC7D,QAAQ,GACT,EAAE,yBAAyB;YAOd,aAAa;IAkBpB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB;IAIzD,SAAgB,WAAW,4EAOxB,kBAAkB,KAAG,OAAO,CAAC,mBAAmB,CAAC,CA+BnD;IAEM,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM;IAQlB,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAI9B,MAAM,CAAC,GAAG,EAAE,gBAAgB;IAK5B,aAAa,CAAC,GAAG,EAAE,MAAM;CAGjC"}
1
+ {"version":3,"file":"ChatBotThreadManager.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatBotThreadManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,eAAe,EAAmB,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAI9F,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC9D,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACzE,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IACxC,QAAQ,EAAE,eAAe,CAAA;IACzB,GAAG,CAAC,EAAE,gBAAgB,CAAA;CACvB,CAAA;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,GAAG,CAAgC;IAC3C,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IAExD,OAAO,CAAC,aAAa,CAAA;IACrB,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;gBAEb,EACjB,gBAAgB,EAChB,GAAG,EACH,aAA6D,EAC7D,QAAQ,GACT,EAAE,yBAAyB;YAOd,aAAa;IAkBpB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB;IAIzD,SAAgB,WAAW,YAChB,kBAAkB,KAC1B,OAAO,CAAC,mBAAmB,CAAC,CA8B9B;IAEM,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM;IAQlB,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAI9B,MAAM,CAAC,GAAG,EAAE,gBAAgB;IAK5B,aAAa,CAAC,GAAG,EAAE,MAAM;CAGjC"}
@@ -1,9 +1,9 @@
1
1
  import { EventCallable, Store } from 'effector';
2
2
  import { ChatbotContext, ChatbotMessages } from '../types/model.types';
3
3
  import { GetAlternativesResponse } from '../types/api.types';
4
+ import { ConversationMessage } from '../types/units.types';
4
5
  import { ChatbotAPI } from './ChatbotApi';
5
6
  import { ChatsCacheModel } from './ChatsCacheModel';
6
- import { ConversationMessage } from '../types/units.types';
7
7
  type ChatbotTranslationProps = {
8
8
  api: ChatbotAPI;
9
9
  $key: Store<string>;
@@ -24,6 +24,7 @@ export declare class ChatbotTranslation {
24
24
  readonly setIsTranslated: EventCallable<boolean>;
25
25
  readonly $isTranslated: import("effector").StoreWritable<boolean>;
26
26
  readonly translateAllMessagesFx: import("effector").Effect<void, ConversationMessage[], Error>;
27
+ readonly translateSingleMessageFx: import("effector").Effect<string, string, Error>;
27
28
  readonly applyTranslationFx: import("effector").Effect<ConversationMessage[], ConversationMessage[], Error>;
28
29
  constructor({ api, $key, defaultMessages, alternativesModel, $context, chats, }: ChatbotTranslationProps);
29
30
  private translateRequest;
@@ -33,4 +34,4 @@ export declare class ChatbotTranslation {
33
34
  reset(): void;
34
35
  }
35
36
  export {};
36
- //# sourceMappingURL=translation.d.ts.map
37
+ //# sourceMappingURL=ChatbotTranslation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatbotTranslation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/model/ChatbotTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,aAAa,EAAmB,KAAK,EAAE,MAAM,UAAU,CAAA;AAQnG,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAMzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,UAAU,CAAA;IACf,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACnB,eAAe,EAAE,eAAe,CAAA;IAChC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACtC,iBAAiB,EAAE;QACjB,GAAG,EAAE,aAAa,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;QAClD,MAAM,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;KAC9C,CAAA;IACD,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAA;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAA;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAA;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAA;IAElC,QAAQ,CAAC,eAAe,yBAAyB;IACjD,QAAQ,CAAC,aAAa,4CAAuC;IAE7D,SAAgB,sBAAsB,gEAAA;IACtC,SAAgB,wBAAwB,mDAAA;IACxC,SAAgB,kBAAkB,iFAAA;gBAEtB,EACV,GAAG,EACH,IAAI,EACJ,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,KAAK,GACN,EAAE,uBAAuB;YAuEZ,gBAAgB;IAmB9B,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAyDhC;IAED,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CA4BnC;IAEM,KAAK;CAGb"}
@@ -3,26 +3,47 @@ export type GetAlternativesPayload = {
3
3
  municipalityId: string;
4
4
  assignmentClassGrade: number;
5
5
  } | null;
6
+ export type AlternativesOptions = {
7
+ default: ChatAnswer[];
8
+ hints: ChatAnswer[];
9
+ };
6
10
  export type GetAlternativesResponse = {
7
11
  chatAccess?: boolean;
8
- options: {
9
- default: ChatAnswer[];
10
- hints: ChatAnswer[];
11
- };
12
+ isOpenChatEnabled?: boolean;
13
+ version: string;
14
+ options: AlternativesOptions;
15
+ };
16
+ export type SendMessagePayload = {
17
+ problemDescription?: string;
18
+ correctAnswer?: string | string[];
19
+ answerOptions?: string[];
20
+ altText?: string;
21
+ language?: string;
22
+ message: string;
23
+ conversationId?: string;
24
+ };
25
+ export type SendMessageResponse = {
26
+ message: string;
27
+ conversationId?: string | null;
12
28
  };
13
29
  export type PostMessagePayload = {
14
30
  language: string;
15
31
  problemAnswer: string[];
32
+ problemDescription: string;
16
33
  answer?: string | string[];
17
- problem: string;
34
+ answerOptions?: string[];
18
35
  imageAltText?: string;
19
36
  imageCdnId?: string;
37
+ freeTextMessage?: string;
38
+ conversationId?: string | null;
20
39
  };
21
40
  export type PostMessageResponse = {
22
41
  message: string;
23
42
  options: ChatAnswer[];
24
- endMessage?: boolean;
25
43
  threadId: string;
44
+ endMessage?: boolean;
45
+ conversationId?: string | null;
46
+ errorStrokeIds?: string[];
26
47
  };
27
48
  export type GoogleTranslatePayload = {
28
49
  text: string[];
@@ -66,6 +87,7 @@ export type ChatHintPayload = {
66
87
  };
67
88
  export type ChatHintResponse = {
68
89
  message: string;
90
+ conversationId?: string | null;
69
91
  errorStrokeIds?: string[];
70
92
  };
71
93
  export type ErrorSpottingPayload = {
@@ -1 +1 @@
1
- {"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/api.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAElE,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,GAAG,IAAI,CAAA;AAER,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE;QACP,OAAO,EAAE,UAAU,EAAE,CAAA;QACrB,KAAK,EAAE,UAAU,EAAE,CAAA;KACpB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA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,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAC/B,CAAA"}
1
+ {"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/api.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAElE,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,GAAG,IAAI,CAAA;AAER,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,mBAAmB,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE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