@magmamath/students-features 0.6.14-rc.2 → 0.6.14-rc.21

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 (274) 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/ChatInput/ChatInput.js +74 -0
  4. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -0
  5. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +144 -0
  6. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -0
  7. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +135 -0
  8. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +1 -0
  9. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +77 -0
  10. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +1 -0
  11. package/dist/commonjs/features/chatbot/components/{Alternatives/InputButton.js → ChatInput/freeText/SendMessageButton.js} +26 -17
  12. package/dist/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +1 -0
  13. package/dist/commonjs/features/chatbot/components/Chatbot.js +2 -2
  14. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  15. package/dist/commonjs/features/chatbot/constants.js +2 -1
  16. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  17. package/dist/commonjs/features/chatbot/index.js +7 -0
  18. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  19. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +44 -8
  20. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  21. package/dist/commonjs/features/chatbot/model/ChatBotTextInput.js +16 -0
  22. package/dist/commonjs/features/chatbot/model/ChatBotTextInput.js.map +1 -0
  23. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +44 -11
  24. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  25. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  26. package/dist/commonjs/features/chatbot/types/types.js +2 -0
  27. package/dist/commonjs/features/chatbot/types/types.js.map +1 -0
  28. package/dist/commonjs/features/chatbot/types/units.types.js +10 -0
  29. package/dist/commonjs/features/chatbot/types/units.types.js.map +1 -1
  30. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +1 -3
  31. package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +1 -1
  32. package/dist/commonjs/features/exampleSolution/assets/grid.webp +0 -0
  33. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +18 -11
  34. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  35. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +7 -7
  36. package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -1
  37. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +55 -29
  38. package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -1
  39. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +3 -1
  40. package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +1 -1
  41. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js +5 -4
  42. package/dist/commonjs/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  43. package/dist/commonjs/shared/hooks/useKeyDownListener.js +3 -2
  44. package/dist/commonjs/shared/hooks/useKeyDownListener.js.map +1 -1
  45. package/dist/commonjs/shared/translation/localization/ca.json +2 -1
  46. package/dist/commonjs/shared/translation/localization/en.json +3 -2
  47. package/dist/commonjs/shared/translation/localization/gb.json +2 -1
  48. package/dist/commonjs/shared/translation/localization/sct.json +2 -1
  49. package/dist/commonjs/shared/translation/localization/sw.json +3 -2
  50. package/dist/module/features/chatbot/components/{ChatMessages/ChatbotMessages.js → Chat/Chat.js} +6 -13
  51. package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -0
  52. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +67 -0
  53. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -0
  54. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +138 -0
  55. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -0
  56. package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js +128 -0
  57. package/dist/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.js.map +1 -0
  58. package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js +71 -0
  59. package/dist/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.js.map +1 -0
  60. package/dist/module/features/chatbot/components/{Alternatives/InputButton.js → ChatInput/freeText/SendMessageButton.js} +25 -16
  61. package/dist/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.js.map +1 -0
  62. package/dist/module/features/chatbot/components/Chatbot.js +2 -2
  63. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  64. package/dist/module/features/chatbot/constants.js +1 -0
  65. package/dist/module/features/chatbot/constants.js.map +1 -1
  66. package/dist/module/features/chatbot/index.js +1 -0
  67. package/dist/module/features/chatbot/index.js.map +1 -1
  68. package/dist/module/features/chatbot/model/ChatBotModel.js +44 -8
  69. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  70. package/dist/module/features/chatbot/model/ChatBotTextInput.js +11 -0
  71. package/dist/module/features/chatbot/model/ChatBotTextInput.js.map +1 -0
  72. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +44 -11
  73. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  74. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  75. package/dist/module/features/chatbot/types/types.js +2 -0
  76. package/dist/module/features/chatbot/types/types.js.map +1 -0
  77. package/dist/module/features/chatbot/types/units.types.js +6 -0
  78. package/dist/module/features/chatbot/types/units.types.js.map +1 -1
  79. package/dist/module/features/exampleSolution/ExampleSolutionModal.js +1 -3
  80. package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +1 -1
  81. package/dist/module/features/exampleSolution/assets/grid.webp +0 -0
  82. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +19 -12
  83. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  84. package/dist/module/features/exampleSolution/components/QuestionSection.js +9 -9
  85. package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -1
  86. package/dist/module/features/exampleSolution/components/SolutionSection.js +57 -31
  87. package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -1
  88. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +3 -1
  89. package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +1 -1
  90. package/dist/module/features/formulaSheet/components/FormulaSheet.js +5 -4
  91. package/dist/module/features/formulaSheet/components/FormulaSheet.js.map +1 -1
  92. package/dist/module/shared/hooks/useKeyDownListener.js +3 -2
  93. package/dist/module/shared/hooks/useKeyDownListener.js.map +1 -1
  94. package/dist/module/shared/translation/localization/ca.json +2 -1
  95. package/dist/module/shared/translation/localization/en.json +3 -2
  96. package/dist/module/shared/translation/localization/gb.json +2 -1
  97. package/dist/module/shared/translation/localization/sct.json +2 -1
  98. package/dist/module/shared/translation/localization/sw.json +3 -2
  99. package/dist/typescript/commonjs/features/chatbot/components/{ChatMessages/ChatbotMessages.d.ts → Chat/Chat.d.ts} +3 -3
  100. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -0
  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/{module/features/chatbot/components/Alternatives/InputButton.d.ts → commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts} +2 -2
  110. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +1 -0
  111. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +2 -0
  112. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  113. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +1 -0
  114. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  115. package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -0
  116. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  117. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +5 -6
  118. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  119. package/dist/typescript/commonjs/features/chatbot/model/ChatBotTextInput.d.ts +8 -0
  120. package/dist/typescript/commonjs/features/chatbot/model/ChatBotTextInput.d.ts.map +1 -0
  121. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +3 -2
  122. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  123. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +1 -1
  124. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  125. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +23 -1
  126. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  127. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +11 -2
  128. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  129. package/dist/typescript/commonjs/features/chatbot/types/types.d.ts +1 -0
  130. package/dist/typescript/commonjs/features/chatbot/types/types.d.ts.map +1 -0
  131. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +5 -0
  132. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
  133. package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -1
  134. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +5 -1
  135. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  136. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +2 -1
  137. package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
  138. package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
  139. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +3 -2
  140. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -1
  141. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +2 -1
  142. package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +1 -1
  143. package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts +1 -1
  145. package/dist/typescript/commonjs/shared/hooks/useKeyDownListener.d.ts.map +1 -1
  146. package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts +1 -1
  147. package/dist/typescript/commonjs/shared/hooks/useKeyboard.d.ts.map +1 -1
  148. package/dist/typescript/commonjs/shared/translation/constants.d.ts +5 -0
  149. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  150. package/dist/typescript/commonjs/shared/translation/model.d.ts +2 -0
  151. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  152. package/dist/typescript/module/features/chatbot/components/{ChatMessages/ChatbotMessages.d.ts → Chat/Chat.d.ts} +3 -3
  153. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -0
  154. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts +9 -0
  155. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -0
  156. package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts +16 -0
  157. package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -0
  158. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts +16 -0
  159. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/ChatTextInput.d.ts.map +1 -0
  160. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts +11 -0
  161. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.d.ts.map +1 -0
  162. package/dist/typescript/{commonjs/features/chatbot/components/Alternatives/InputButton.d.ts → module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts} +2 -2
  163. package/dist/typescript/module/features/chatbot/components/ChatInput/freeText/SendMessageButton.d.ts.map +1 -0
  164. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +2 -0
  165. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  166. package/dist/typescript/module/features/chatbot/constants.d.ts +1 -0
  167. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  168. package/dist/typescript/module/features/chatbot/index.d.ts +1 -0
  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/module/features/chatbot/model/translation.d.ts +1 -1
  177. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  178. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +23 -1
  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 +11 -2
  181. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  182. package/dist/typescript/module/features/chatbot/types/types.d.ts +1 -0
  183. package/dist/typescript/module/features/chatbot/types/types.d.ts.map +1 -0
  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/ExampleSolutionModal.d.ts.map +1 -1
  187. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +5 -1
  188. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  189. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +2 -1
  190. package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -1
  191. package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -1
  192. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +3 -2
  193. package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -1
  194. package/dist/typescript/module/features/exampleSolution/types.d.ts +2 -1
  195. package/dist/typescript/module/features/exampleSolution/types.d.ts.map +1 -1
  196. package/dist/typescript/module/features/formulaSheet/components/FormulaSheet.d.ts.map +1 -1
  197. package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts +1 -1
  198. package/dist/typescript/module/shared/hooks/useKeyDownListener.d.ts.map +1 -1
  199. package/dist/typescript/module/shared/hooks/useKeyboard.d.ts +1 -1
  200. package/dist/typescript/module/shared/hooks/useKeyboard.d.ts.map +1 -1
  201. package/dist/typescript/module/shared/translation/constants.d.ts +5 -0
  202. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  203. package/dist/typescript/module/shared/translation/model.d.ts +2 -0
  204. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  205. package/package.json +2 -2
  206. package/src/features/chatbot/components/{ChatMessages/ChatbotMessages.tsx → Chat/Chat.tsx} +12 -17
  207. package/src/features/chatbot/components/ChatInput/ChatInput.tsx +83 -0
  208. package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +156 -0
  209. package/src/features/chatbot/components/ChatInput/freeText/ChatTextInput.tsx +153 -0
  210. package/src/features/chatbot/components/ChatInput/freeText/FreeTextInputBlock.tsx +83 -0
  211. package/src/features/chatbot/components/{Alternatives/InputButton.tsx → ChatInput/freeText/SendMessageButton.tsx} +37 -16
  212. package/src/features/chatbot/components/Chatbot.tsx +4 -2
  213. package/src/features/chatbot/constants.ts +3 -0
  214. package/src/features/chatbot/index.ts +2 -0
  215. package/src/features/chatbot/model/ChatBotModel.ts +67 -33
  216. package/src/features/chatbot/model/ChatBotTextInput.ts +10 -0
  217. package/src/features/chatbot/model/ChatBotThreadManager.ts +35 -9
  218. package/src/features/chatbot/model/translation.ts +1 -1
  219. package/src/features/chatbot/types/api.types.ts +25 -1
  220. package/src/features/chatbot/types/model.types.ts +16 -1
  221. package/src/features/chatbot/types/types.ts +0 -0
  222. package/src/features/chatbot/types/units.types.ts +6 -0
  223. package/src/features/exampleSolution/ExampleSolutionModal.tsx +1 -7
  224. package/src/features/exampleSolution/assets/grid.webp +0 -0
  225. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +24 -12
  226. package/src/features/exampleSolution/components/QuestionSection.tsx +11 -7
  227. package/src/features/exampleSolution/components/SolutionSection.tsx +72 -29
  228. package/src/features/exampleSolution/model/ExampleSolution.model.ts +5 -2
  229. package/src/features/exampleSolution/types.ts +2 -1
  230. package/src/features/formulaSheet/components/FormulaSheet.tsx +6 -4
  231. package/src/shared/hooks/useKeyDownListener.ts +3 -1
  232. package/src/shared/translation/localization/ca.json +2 -1
  233. package/src/shared/translation/localization/en.json +3 -2
  234. package/src/shared/translation/localization/gb.json +2 -1
  235. package/src/shared/translation/localization/sct.json +2 -1
  236. package/src/shared/translation/localization/sw.json +3 -2
  237. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +0 -111
  238. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +0 -1
  239. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +0 -208
  240. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +0 -1
  241. package/dist/commonjs/features/chatbot/components/Alternatives/InputButton.js.map +0 -1
  242. package/dist/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.js +0 -157
  243. package/dist/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.js.map +0 -1
  244. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +0 -1
  245. package/dist/commonjs/features/exampleSolution/assets/grid.png +0 -0
  246. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +0 -105
  247. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +0 -1
  248. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +0 -200
  249. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +0 -1
  250. package/dist/module/features/chatbot/components/Alternatives/InputButton.js.map +0 -1
  251. package/dist/module/features/chatbot/components/Alternatives/InputWithHintRow.js +0 -150
  252. package/dist/module/features/chatbot/components/Alternatives/InputWithHintRow.js.map +0 -1
  253. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +0 -1
  254. package/dist/module/features/exampleSolution/assets/grid.png +0 -0
  255. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +0 -11
  256. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +0 -1
  257. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +0 -13
  258. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +0 -1
  259. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputButton.d.ts.map +0 -1
  260. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.d.ts +0 -11
  261. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/InputWithHintRow.d.ts.map +0 -1
  262. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +0 -1
  263. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +0 -11
  264. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +0 -1
  265. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +0 -13
  266. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +0 -1
  267. package/dist/typescript/module/features/chatbot/components/Alternatives/InputButton.d.ts.map +0 -1
  268. package/dist/typescript/module/features/chatbot/components/Alternatives/InputWithHintRow.d.ts +0 -11
  269. package/dist/typescript/module/features/chatbot/components/Alternatives/InputWithHintRow.d.ts.map +0 -1
  270. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +0 -1
  271. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +0 -135
  272. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +0 -214
  273. package/src/features/chatbot/components/Alternatives/InputWithHintRow.tsx +0 -160
  274. package/src/features/exampleSolution/assets/grid.png +0 -0
@@ -9,19 +9,39 @@ export type AlternativesOptions = {
9
9
  };
10
10
  export type GetAlternativesResponse = {
11
11
  chatAccess?: boolean;
12
+ isOpenChatEnabled?: boolean;
13
+ version: string;
12
14
  options: AlternativesOptions;
13
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;
28
+ };
14
29
  export type PostMessagePayload = {
15
30
  language: string;
16
31
  problemAnswer: string[];
32
+ problemDescription: string;
17
33
  answer?: string | string[];
18
- problem: string;
34
+ answerOptions?: string[];
19
35
  imageAltText?: string;
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
43
  endMessage?: boolean;
44
+ conversationId?: string | null;
25
45
  threadId: string;
26
46
  };
27
47
  export type GoogleTranslatePayload = {
@@ -61,10 +81,12 @@ export type ChatHintPayload = {
61
81
  previousHint?: string;
62
82
  language: string;
63
83
  imageAltText?: string;
84
+ imageCdnId?: string;
64
85
  drawBoardText?: string;
65
86
  };
66
87
  export type ChatHintResponse = {
67
88
  message: string;
89
+ conversationId?: string | null;
68
90
  };
69
91
  export type ErrorSpottingPayload = {
70
92
  strokes: FullStrokeData[];
@@ -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;A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AG;IACjC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,UAAU,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,7 +1,7 @@
1
1
  import type { Store } from 'effector';
2
- import { ChatHintPayload, ChatHintResponse, ErrorSpottingPayload, ErrorSpottingResponse, GetAlternativesPayload, GetAlternativesResponse, GoogleText2SpeechPayload, GoogleText2SpeechResponse, GoogleTranslatePayload, GoogleTranslateResponse, PostMessagePayload, PostMessageResponse } from './api.types';
2
+ import { ChatHintPayload, ChatHintResponse, ErrorSpottingPayload, ErrorSpottingResponse, GetAlternativesPayload, GetAlternativesResponse, GoogleText2SpeechPayload, GoogleText2SpeechResponse, GoogleTranslatePayload, GoogleTranslateResponse, PostMessagePayload, PostMessageResponse, SendMessagePayload, SendMessageResponse } from './api.types';
3
3
  import { ExtendWithOptional } from '../../../lib/helpers/types';
4
- import { ChatAnswer, ConversationMessage, FullStrokeData } from './units.types';
4
+ import { ChatAnswer, ChatItem, ConversationMessage, FullStrokeData } from './units.types';
5
5
  export type ChatbotMessages = {
6
6
  error: ConversationMessage;
7
7
  start: ConversationMessage;
@@ -10,6 +10,7 @@ export type ChatbotMessages = {
10
10
  };
11
11
  export type ChatbotApiRequests = {
12
12
  getAlternatives: (props: GetAlternativesPayload) => Promise<GetAlternativesResponse>;
13
+ sendMessage: (props: SendMessagePayload) => Promise<SendMessageResponse>;
13
14
  postMessage: (props: PostMessagePayload) => Promise<PostMessageResponse>;
14
15
  postTranslateText: (props: GoogleTranslatePayload) => Promise<GoogleTranslateResponse>;
15
16
  postTextToSpeech: (props: GoogleText2SpeechPayload) => Promise<GoogleText2SpeechResponse>;
@@ -29,10 +30,13 @@ export type ChatbotModelProps = {
29
30
  export type SendHelpParams = {
30
31
  message: string;
31
32
  translatedMessage?: string;
33
+ isFreeText?: boolean;
32
34
  };
33
35
  export type SendHelpProps = SendHelpParams & {
34
36
  key: string;
35
37
  context: ChatbotContext | null;
38
+ cache: Record<string, ChatItem>;
39
+ isFreeText?: boolean;
36
40
  };
37
41
  export type SetHintMessageProps = {
38
42
  key: string;
@@ -74,8 +78,13 @@ export type ChatbotContext = {
74
78
  problem: string;
75
79
  problemAnswer: string[];
76
80
  answer?: string | string[];
81
+ answerOptions?: string[];
77
82
  translationTargetLanguage: string;
78
83
  imageDescription?: string;
84
+ imageCdnId?: string;
85
+ };
86
+ export type ReinitConversationProps = {
87
+ key: string;
79
88
  };
80
89
  export {};
81
90
  //# sourceMappingURL=model.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/model.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,UAAU,EAAE,mBAAmB,CAAA;IAC/B,iBAAiB,EAAE,UAAU,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,EAAE,CAAC,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M,MAAM,uBAAuB,GAAG;IACpC,eAAe,EAAE;QACf,GAAG,EAAE,MAAM,CAAA;QACX,QAAQ,EAAE,mBAAmB,EAAE,CAAA;KAChC,CAAA;IACD,YAAY,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAA;CAC9C,GAAG,sBAAsB,CAAA;AAE1B,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,EACrC,mBAAmB,CACpB,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,qBAAqB,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACnE,UAAU,IAAI,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA"}
1
+ {"version":3,"file":"model.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/model.types.ts"],"names":[],"mapp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ACrC,mBAAmB,CACpB,CAAA;AAED,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,qBAAqB,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAC3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACnE,UAAU,IAAI,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/types.ts"],"names":[],"mappings":""}
@@ -30,5 +30,10 @@ export type ChatItem = {
30
30
  messages: ConversationMessage[];
31
31
  isAvailable: boolean;
32
32
  currentThread: IThreadItem | null;
33
+ conversationId?: string | null;
33
34
  };
35
+ export declare enum ChatInputMode {
36
+ FreeText = 1,
37
+ Option = 2
38
+ }
34
39
  //# sourceMappingURL=units.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"units.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/units.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,mBAAmB,EAAE,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;CAClC,CAAA"}
1
+ {"version":3,"file":"units.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/types/units.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;CACZ,CAAA;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,mBAAmB,EAAE,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,oBAAY,aAAa;IACvB,QAAQ,IAAI;IACZ,MAAM,IAAI;CACX"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleSolutionModal.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/ExampleSolutionModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE;QACL,UAAU,EAAE,MAAM,IAAI,CAAA;QACtB,MAAM,EAAE,0BAA0B,CAAA;KACnC,CAAA;CACF,CAAA;AAED,eAAO,MAAM,oBAAoB,uCAE9B,kCAAkC,sBAcpC,CAAA"}
1
+ {"version":3,"file":"ExampleSolutionModal.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/ExampleSolutionModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE;QACL,UAAU,EAAE,MAAM,IAAI,CAAA;QACtB,MAAM,EAAE,0BAA0B,CAAA;KACnC,CAAA;CACF,CAAA;AAED,eAAO,MAAM,oBAAoB,uCAE9B,kCAAkC,sBAQpC,CAAA"}
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ExampleSolutionModalParams } from '../types';
3
- export declare const ExampleSolutionModalContent: ({ model, payload, cacheKey, }: ExampleSolutionModalParams) => React.JSX.Element;
3
+ type ExampleSolutionModalContentProps = {
4
+ params: ExampleSolutionModalParams;
5
+ };
6
+ export declare const ExampleSolutionModalContent: ({ params: { model, payload, cacheKey }, }: ExampleSolutionModalContentProps) => React.JSX.Element;
7
+ export {};
4
8
  //# sourceMappingURL=ExampleSolutionModalContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,eAAO,MAAM,2BAA2B,kCAIrC,0BAA0B,sBAiB5B,CAAA"}
1
+ {"version":3,"file":"ExampleSolutionModalContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAKrD,KAAK,gCAAgC,GAAG;IACtC,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAA;AAID,eAAO,MAAM,2BAA2B,8CAErC,gCAAgC,sBA0BlC,CAAA"}
@@ -3,7 +3,8 @@ import { ExampleSolutionStatuses } from '../constants';
3
3
  type QuestionSectionProps = {
4
4
  question?: string;
5
5
  status: ExampleSolutionStatuses;
6
+ renderKatexComponent: (katexString: string) => React.ReactNode;
6
7
  };
7
- export declare const QuestionSection: ({ question, status }: QuestionSectionProps) => React.JSX.Element;
8
+ export declare const QuestionSection: ({ question, status, renderKatexComponent, }: QuestionSectionProps) => React.JSX.Element;
8
9
  export {};
9
10
  //# sourceMappingURL=QuestionSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionSection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/QuestionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,eAAe,yBAA0B,oBAAoB,sBAazE,CAAA"}
1
+ {"version":3,"file":"QuestionSection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/QuestionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,uBAAuB,CAAA;IAC/B,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;CAC/D,CAAA;AAED,eAAO,MAAM,eAAe,gDAIzB,oBAAoB,sBAWtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SolutionSection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/SolutionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAGtD,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAID,eAAO,MAAM,eAAe,uBAAwB,oBAAoB,sBAsBvE,CAAA"}
1
+ {"version":3,"file":"SolutionSection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/components/SolutionSection.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAGtD,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAWD,eAAO,MAAM,eAAe,uBAAwB,oBAAoB,sBAiDvE,CAAA"}
@@ -1,9 +1,10 @@
1
- import { GifCelebrationsModelProps } from '../types';
1
+ import { ExampleSolutionModelProps } from '../types';
2
2
  import { ExampleSolutionsApi } from './ExampleSolutionApi';
3
3
  import { ExampleSolutionCache } from './ExampleSolutionCache';
4
4
  export declare class ExampleSolutionModel {
5
5
  readonly api: ExampleSolutionsApi;
6
6
  readonly cache: ExampleSolutionCache;
7
- constructor({ api, errorHandler }: GifCelebrationsModelProps);
7
+ readonly renderKatexComponent: (katexString: string) => React.ReactNode;
8
+ constructor({ api, errorHandler, renderKatexComponent }: ExampleSolutionModelProps);
8
9
  }
9
10
  //# sourceMappingURL=ExampleSolution.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleSolution.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolution.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,qBAAa,oBAAoB;IAC/B,SAAgB,GAAG,sBAAA;IACnB,SAAgB,KAAK,uBAA6B;gBAEtC,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,yBAAyB;CAG7D"}
1
+ {"version":3,"file":"ExampleSolution.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/exampleSolution/model/ExampleSolution.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,qBAAa,oBAAoB;IAC/B,SAAgB,GAAG,sBAAA;IACnB,SAAgB,KAAK,uBAA6B;IAElD,SAAgB,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;gBAElE,EAAE,GAAG,EAAE,YAAY,EAAE,oBAAoB,EAAE,EAAE,yBAAyB;CAInF"}
@@ -14,9 +14,10 @@ export type ExampleSolutionApiRequests = {
14
14
  generateExampleSolution: (body: ExampleSolutionPayload) => Promise<ExampleSolutionResponse>;
15
15
  };
16
16
  export type ExampleSolutionErrorHandler = (errorMessage: string) => void;
17
- export type GifCelebrationsModelProps = {
17
+ export type ExampleSolutionModelProps = {
18
18
  api: ExampleSolutionApiRequests;
19
19
  errorHandler?: ExampleSolutionErrorHandler;
20
+ renderKatexComponent: (katexString: string) => React.ReactNode;
20
21
  };
21
22
  export type ExampleSolutionModalParams = {
22
23
  cacheKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEpE,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,uBAAuB,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;CAC5F,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,0BAA0B,CAAA;IAC/B,YAAY,CAAC,EAAE,2BAA2B,CAAA;CAC3C,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,sBAAsB,CAAA;IAC/B,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/exampleSolution/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEpE,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,uBAAuB,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;CAC5F,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,0BAA0B,CAAA;IAC/B,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;CAC/D,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,sBAAsB,CAAA;IAC/B,KAAK,EAAE,oBAAoB,CAAA;CAC5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormulaSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/components/FormulaSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAa,MAAM,OAAO,CAAA;AAE/D,OAAO,EAEL,WAAW,EACX,UAAU,EAIV,SAAS,EACT,WAAW,EACX,WAAW,EACZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGlD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,iBAAiB,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAA;IACzC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,YAAY,4FAkDxB,CAAA"}
1
+ {"version":3,"file":"FormulaSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/features/formulaSheet/components/FormulaSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,SAAS,EAAa,MAAM,OAAO,CAAA;AAE/D,OAAO,EAEL,WAAW,EACX,UAAU,EAIV,SAAS,EACT,WAAW,EACX,WAAW,EACZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGlD,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,iBAAiB,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAA;IACzC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,YAAY,4FAoDxB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { KeyboardKeys } from '../../lib/constants';
2
- export declare const useKeyDownListener: (callback: (event: KeyboardEvent) => void, overrideKeys?: KeyboardKeys[]) => void;
2
+ export declare const useKeyDownListener: (callback: (event: KeyboardEvent) => void, enabled?: boolean, overrideKeys?: KeyboardKeys[]) => void;
3
3
  //# sourceMappingURL=useKeyDownListener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyDownListener.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyDownListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,eAAO,MAAM,kBAAkB,aACnB,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,wCAqBzC,CAAA"}
1
+ {"version":3,"file":"useKeyDownListener.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyDownListener.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,eAAO,MAAM,kBAAkB,aACnB,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,2DAuBzC,CAAA"}
@@ -7,5 +7,5 @@
7
7
  * - On web (default), it returns the `useKeyDownListener` hook, which allows you
8
8
  * to register a callback that is triggered on keydown events.
9
9
  */
10
- export declare const useKeyBoard: (callback: (event: KeyboardEvent) => void, overrideKeys?: import("../../lib/constants").KeyboardKeys[]) => void;
10
+ export declare const useKeyBoard: (callback: (event: KeyboardEvent) => void, enabled?: boolean, overrideKeys?: import("../../lib/constants").KeyboardKeys[]) => void;
11
11
  //# sourceMappingURL=useKeyboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyboard.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,iHAGtB,CAAC"}
1
+ {"version":3,"file":"useKeyboard.d.ts","sourceRoot":"","sources":["../../../../../src/shared/hooks/useKeyboard.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,oIAGtB,CAAC"}
@@ -19,6 +19,7 @@ export declare const LOCALIZATION_CONFIGS: {
19
19
  errorMessage: string;
20
20
  howCanIHelp: string;
21
21
  showError: string;
22
+ inputPlaceholder: string;
22
23
  };
23
24
  gifCelebrations: {
24
25
  greatStart: string;
@@ -52,6 +53,7 @@ export declare const LOCALIZATION_CONFIGS: {
52
53
  errorMessage: string;
53
54
  howCanIHelp: string;
54
55
  showError: string;
56
+ inputPlaceholder: string;
55
57
  };
56
58
  gifCelebrations: {
57
59
  greatStart: string;
@@ -85,6 +87,7 @@ export declare const LOCALIZATION_CONFIGS: {
85
87
  errorMessage: string;
86
88
  howCanIHelp: string;
87
89
  showError: string;
90
+ inputPlaceholder: string;
88
91
  };
89
92
  gifCelebrations: {
90
93
  greatStart: string;
@@ -118,6 +121,7 @@ export declare const LOCALIZATION_CONFIGS: {
118
121
  errorMessage: string;
119
122
  howCanIHelp: string;
120
123
  showError: string;
124
+ inputPlaceholder: string;
121
125
  };
122
126
  gifCelebrations: {
123
127
  greatStart: string;
@@ -151,6 +155,7 @@ export declare const LOCALIZATION_CONFIGS: {
151
155
  errorMessage: string;
152
156
  howCanIHelp: string;
153
157
  showError: string;
158
+ inputPlaceholder: string;
154
159
  };
155
160
  gifCelebrations: {
156
161
  greatStart: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
@@ -20,6 +20,7 @@ export declare const setLocalization: import("effector").EventCallable<{
20
20
  errorMessage: string;
21
21
  howCanIHelp: string;
22
22
  showError: string;
23
+ inputPlaceholder: string;
23
24
  };
24
25
  gifCelebrations: {
25
26
  greatStart: string;
@@ -53,6 +54,7 @@ export declare const $localization: import("effector").StoreWritable<{
53
54
  errorMessage: string;
54
55
  howCanIHelp: string;
55
56
  showError: string;
57
+ inputPlaceholder: string;
56
58
  };
57
59
  gifCelebrations: {
58
60
  greatStart: string;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
@@ -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 ChatbotProps = {
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, }: ChatbotProps) => 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,YAAY,GAAG;IAClB,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,YAAY,sBAmEd,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,KAAsB,MAAM,OAAO,CAAA;AAK1C,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,6BAqDhB,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,KAAmB,MAAM,OAAO,CAAA;AAEvC,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,sBAsEpB,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;AAOxD,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,sBAkDzB,CAAA"}
@@ -5,6 +5,6 @@ type HelpRequestOptionProps = {
5
5
  disabled: boolean;
6
6
  colorScheme?: ColorScheme;
7
7
  };
8
- export declare const InputButton: ({ onPress, disabled, colorScheme, }: HelpRequestOptionProps) => React.JSX.Element;
8
+ export declare const SendMessageButton: ({ onPress, disabled, colorScheme, }: HelpRequestOptionProps) => React.JSX.Element;
9
9
  export {};
10
- //# sourceMappingURL=InputButton.d.ts.map
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"}
@@ -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,6 +11,7 @@ type ChatbotProps = {
10
11
  voice: typeof DEFAULT_VOICE;
11
12
  audioConfig: typeof AUDIO_CONFIG;
12
13
  };
14
+ inputMode?: ChatInputMode;
13
15
  ButtonWrapper: ComponentType<PropsWithChildren>;
14
16
  iconSize?: {
15
17
  width: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Chatbot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chatbot/components/Chatbot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,YAAY,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE;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d,CAAA"}
@@ -61,4 +61,5 @@ export declare const CONTROLS_COLORS_MAP: {
61
61
  background: "#ffae22";
62
62
  };
63
63
  };
64
+ export declare const HOVER_ANIMATION_DURATION = 200;
64
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;;;;;;;;;;;;;;;;;;;;;;;;;CAyB9B,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"}
@@ -5,6 +5,7 @@ export { MessageVariant, type ChatbotModelProps, type IChatDrawBoardAdapter, } f
5
5
  export type { PostMessageResponse } from './types/api.types';
6
6
  export { DefaultMessagesCreator } from './model/DefaultMessageCreator';
7
7
  export type { ChatAnswer } from './types/units.types';
8
+ export { ChatInputMode } from './types/units.types';
8
9
  export type { ConversationMessage } from './types/units.types';
9
10
  export { ColorScheme } from './types/style.types';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -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;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,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
5
  import { ChatbotTranslation } from './translation';
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,13 +16,14 @@ 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;
24
23
  private externalTranslationStateSync?;
25
24
  readonly resetAlternatives: import("effector").EventCallable<void>;
26
25
  readonly setAlternatives: import("effector").EventCallable<GetAlternativesResponse | null>;
27
- readonly $alternatives: Store<GetAlternativesResponse | null>;
26
+ readonly $alternatives: import("effector").StoreWritable<GetAlternativesResponse | null>;
28
27
  readonly setIsOpen: import("effector").EventCallable<boolean>;
29
28
  readonly toggleOpen: import("effector").EventCallable<void>;
30
29
  readonly $isOpen: import("effector").StoreWritable<boolean>;
@@ -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;AAGzD,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;CAC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IAK9D,SAAgB,kBAAkB,YAAa,uBAAuB,UAGrE;IAEM,WAAW,CAAC,GAAG,EAAE,MAAM;IAMvB,SAAS,+CAkBd;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"}