@magmamath/students-features 0.10.0 → 0.11.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 (508) hide show
  1. package/dist/commonjs/features/celebrations/helpers.js +4 -1
  2. package/dist/commonjs/features/celebrations/helpers.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/TTS_HIGHLIGHTING.md +120 -0
  4. package/dist/commonjs/features/chatbot/components/Chat/Chat.js +66 -30
  5. package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
  6. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +61 -0
  7. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -0
  8. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +44 -54
  9. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  10. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +3 -1
  11. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  12. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +2 -2
  13. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  14. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +1 -1
  15. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  16. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +16 -4
  17. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  18. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +12 -20
  19. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  20. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +13 -8
  21. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  22. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +1 -1
  23. package/dist/commonjs/features/chatbot/components/Chatbot.js +29 -7
  24. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  25. package/dist/commonjs/features/chatbot/constants.js +2 -1
  26. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  27. package/dist/commonjs/features/chatbot/helpers/ttsHighlight.js +29 -0
  28. package/dist/commonjs/features/chatbot/helpers/ttsHighlight.js.map +1 -0
  29. package/dist/commonjs/features/chatbot/helpers.js +19 -2
  30. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  31. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  32. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +59 -17
  33. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  34. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +2 -2
  35. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  36. package/dist/commonjs/features/chatbot/model/ChatTTSHighlightModel.js +56 -0
  37. package/dist/commonjs/features/chatbot/model/ChatTTSHighlightModel.js.map +1 -0
  38. package/dist/commonjs/features/chatbot/model/ChatTTSModel.js +154 -0
  39. package/dist/commonjs/features/chatbot/model/ChatTTSModel.js.map +1 -0
  40. package/dist/commonjs/features/chatbot/model/ChatbotApi.js +1 -1
  41. package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -1
  42. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +9 -0
  43. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +1 -1
  44. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  45. package/dist/commonjs/features/chatbot/types/t2s.types.js.map +1 -1
  46. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  47. package/dist/commonjs/features/feedback/model/sockets.js +8 -5
  48. package/dist/commonjs/features/feedback/model/sockets.js.map +1 -1
  49. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -2
  50. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  51. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
  52. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  53. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
  54. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
  55. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -2
  56. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  57. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
  58. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
  59. package/dist/commonjs/features/keyboard/components/Keyboard.js +4 -2
  60. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  61. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +1 -6
  62. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  63. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
  64. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +3 -1
  65. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  66. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +27 -6
  67. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  68. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +9 -1
  69. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  70. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js +1 -0
  71. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js.map +1 -1
  72. package/dist/commonjs/features/keyboard/constants/constants.js +1 -1
  73. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +2 -1
  74. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  75. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +20 -4
  76. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  77. package/dist/commonjs/features/keyboard/helpers.js +7 -0
  78. package/dist/commonjs/features/keyboard/helpers.js.map +1 -1
  79. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +20 -3
  80. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  81. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +6 -3
  82. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  83. package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js +34 -0
  84. package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -0
  85. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +77 -0
  86. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -0
  87. package/dist/commonjs/features/openEnded/index.js +48 -0
  88. package/dist/commonjs/features/openEnded/index.js.map +1 -0
  89. package/dist/commonjs/features/openEnded/oe.helpers.js +26 -0
  90. package/dist/commonjs/features/openEnded/oe.helpers.js.map +1 -0
  91. package/dist/commonjs/features/openEnded/oe.types.js +14 -0
  92. package/dist/commonjs/features/openEnded/oe.types.js.map +1 -0
  93. package/dist/commonjs/index.js +13 -1
  94. package/dist/commonjs/index.js.map +1 -1
  95. package/dist/commonjs/lib/components/ConditionalWrapper.js +23 -0
  96. package/dist/commonjs/lib/components/ConditionalWrapper.js.map +1 -0
  97. package/dist/commonjs/shared/common.constants.js +9 -0
  98. package/dist/commonjs/shared/common.constants.js.map +1 -0
  99. package/dist/commonjs/shared/icons/TimeIcon.js +37 -0
  100. package/dist/commonjs/shared/icons/TimeIcon.js.map +1 -0
  101. package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
  102. package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
  103. package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +32 -0
  104. package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +1 -0
  105. package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +32 -0
  106. package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +1 -0
  107. package/dist/commonjs/shared/translation/localization/ca.json +2 -1
  108. package/dist/commonjs/shared/translation/localization/de.json +2 -1
  109. package/dist/commonjs/shared/translation/localization/en.json +2 -1
  110. package/dist/commonjs/shared/translation/localization/gb.json +2 -1
  111. package/dist/commonjs/shared/translation/localization/sct.json +2 -1
  112. package/dist/commonjs/shared/translation/localization/sw.json +2 -1
  113. package/dist/commonjs/types/common.types.js +4 -0
  114. package/dist/module/features/celebrations/helpers.js +4 -1
  115. package/dist/module/features/celebrations/helpers.js.map +1 -1
  116. package/dist/module/features/chatbot/TTS_HIGHLIGHTING.md +120 -0
  117. package/dist/module/features/chatbot/components/Chat/Chat.js +66 -30
  118. package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
  119. package/dist/module/features/chatbot/components/Chat/CloseButton.js +55 -0
  120. package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -0
  121. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +44 -55
  122. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  123. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +3 -1
  124. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  125. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +2 -2
  126. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  127. package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +1 -1
  128. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  129. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +16 -4
  130. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  131. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +12 -20
  132. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  133. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +13 -8
  134. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  135. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +1 -1
  136. package/dist/module/features/chatbot/components/Chatbot.js +27 -6
  137. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  138. package/dist/module/features/chatbot/constants.js +1 -0
  139. package/dist/module/features/chatbot/constants.js.map +1 -1
  140. package/dist/module/features/chatbot/helpers/ttsHighlight.js +23 -0
  141. package/dist/module/features/chatbot/helpers/ttsHighlight.js.map +1 -0
  142. package/dist/module/features/chatbot/helpers.js +19 -2
  143. package/dist/module/features/chatbot/helpers.js.map +1 -1
  144. package/dist/module/features/chatbot/index.js.map +1 -1
  145. package/dist/module/features/chatbot/model/ChatBotModel.js +59 -17
  146. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  147. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +2 -2
  148. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  149. package/dist/module/features/chatbot/model/ChatTTSHighlightModel.js +52 -0
  150. package/dist/module/features/chatbot/model/ChatTTSHighlightModel.js.map +1 -0
  151. package/dist/module/features/chatbot/model/ChatTTSModel.js +149 -0
  152. package/dist/module/features/chatbot/model/ChatTTSModel.js.map +1 -0
  153. package/dist/module/features/chatbot/model/ChatbotApi.js +1 -1
  154. package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -1
  155. package/dist/module/features/chatbot/model/ChatsCacheModel.js +9 -0
  156. package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +1 -1
  157. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  158. package/dist/module/features/chatbot/types/t2s.types.js.map +1 -1
  159. package/dist/module/features/feedback/model/model.js.map +1 -1
  160. package/dist/module/features/feedback/model/sockets.js +8 -5
  161. package/dist/module/features/feedback/model/sockets.js.map +1 -1
  162. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +3 -3
  163. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  164. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
  165. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  166. package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
  167. package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
  168. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -2
  169. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  170. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
  171. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
  172. package/dist/module/features/keyboard/components/Keyboard.js +4 -2
  173. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  174. package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  175. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +2 -7
  176. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  177. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
  178. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +2 -1
  179. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  180. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +27 -6
  181. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  182. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +9 -1
  183. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  184. package/dist/module/features/keyboard/components/UnitsLayout/types.js +1 -0
  185. package/dist/module/features/keyboard/components/UnitsLayout/types.js.map +1 -1
  186. package/dist/module/features/keyboard/constants/constants.js +1 -1
  187. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +3 -2
  188. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  189. package/dist/module/features/keyboard/constants/keyboardLayouts.js +19 -4
  190. package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  191. package/dist/module/features/keyboard/helpers.js +5 -0
  192. package/dist/module/features/keyboard/helpers.js.map +1 -1
  193. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +20 -3
  194. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  195. package/dist/module/features/keyboard/types/MathKeysGroups/units.js +6 -3
  196. package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  197. package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js +28 -0
  198. package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -0
  199. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +71 -0
  200. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -0
  201. package/dist/module/features/openEnded/index.js +7 -0
  202. package/dist/module/features/openEnded/index.js.map +1 -0
  203. package/dist/module/features/openEnded/oe.helpers.js +21 -0
  204. package/dist/module/features/openEnded/oe.helpers.js.map +1 -0
  205. package/dist/module/features/openEnded/oe.types.js +10 -0
  206. package/dist/module/features/openEnded/oe.types.js.map +1 -0
  207. package/dist/module/index.js +1 -0
  208. package/dist/module/index.js.map +1 -1
  209. package/dist/module/lib/components/ConditionalWrapper.js +17 -0
  210. package/dist/module/lib/components/ConditionalWrapper.js.map +1 -0
  211. package/dist/module/shared/common.constants.js +5 -0
  212. package/dist/module/shared/common.constants.js.map +1 -0
  213. package/dist/module/shared/icons/TimeIcon.js +29 -0
  214. package/dist/module/shared/icons/TimeIcon.js.map +1 -0
  215. package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
  216. package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
  217. package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +24 -0
  218. package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +1 -0
  219. package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +24 -0
  220. package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +1 -0
  221. package/dist/module/shared/translation/localization/ca.json +2 -1
  222. package/dist/module/shared/translation/localization/de.json +2 -1
  223. package/dist/module/shared/translation/localization/en.json +2 -1
  224. package/dist/module/shared/translation/localization/gb.json +2 -1
  225. package/dist/module/shared/translation/localization/sct.json +2 -1
  226. package/dist/module/shared/translation/localization/sw.json +2 -1
  227. package/dist/module/types/common.types.js +2 -0
  228. package/dist/typescript/commonjs/features/celebrations/helpers.d.ts.map +1 -1
  229. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts +7 -2
  230. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
  231. package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts +7 -0
  232. package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -0
  233. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts +3 -2
  234. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  235. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  236. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +3 -1
  237. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  238. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +4 -2
  239. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  240. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
  241. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  242. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  243. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  244. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +4 -1
  245. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  246. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +1 -0
  247. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  248. package/dist/typescript/commonjs/features/chatbot/helpers/ttsHighlight.d.ts +8 -0
  249. package/dist/typescript/commonjs/features/chatbot/helpers/ttsHighlight.d.ts.map +1 -0
  250. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  251. package/dist/typescript/commonjs/features/chatbot/index.d.ts +3 -2
  252. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  253. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +6 -3
  254. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  255. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +4 -3
  256. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  257. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSHighlightModel.d.ts +25 -0
  258. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSHighlightModel.d.ts.map +1 -0
  259. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSModel.d.ts +38 -0
  260. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSModel.d.ts.map +1 -0
  261. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +1 -0
  262. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -1
  263. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +28 -16
  264. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  265. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +14 -11
  266. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  267. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts +25 -0
  268. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts.map +1 -1
  269. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +1 -0
  270. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
  271. package/dist/typescript/commonjs/features/feedback/model/model.d.ts +4 -1
  272. package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -1
  273. package/dist/typescript/commonjs/features/feedback/model/sockets.d.ts.map +1 -1
  274. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  275. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
  276. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  277. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
  278. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +2 -1
  279. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  280. package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  281. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -0
  282. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  283. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +4 -7
  284. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  285. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +1 -0
  286. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  287. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts +7 -1
  288. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
  289. package/dist/typescript/commonjs/features/keyboard/constants/constants.d.ts +1 -1
  290. package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  291. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +4 -0
  292. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  293. package/dist/typescript/commonjs/features/keyboard/helpers.d.ts +1 -0
  294. package/dist/typescript/commonjs/features/keyboard/helpers.d.ts.map +1 -1
  295. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +10 -0
  296. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  297. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +36 -0
  298. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts +7 -0
  300. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -0
  301. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts +12 -0
  302. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -0
  303. package/dist/typescript/commonjs/features/openEnded/index.d.ts +5 -0
  304. package/dist/typescript/commonjs/features/openEnded/index.d.ts.map +1 -0
  305. package/dist/typescript/commonjs/features/openEnded/oe.helpers.d.ts +13 -0
  306. package/dist/typescript/commonjs/features/openEnded/oe.helpers.d.ts.map +1 -0
  307. package/dist/typescript/commonjs/features/openEnded/oe.types.d.ts +7 -0
  308. package/dist/typescript/commonjs/features/openEnded/oe.types.d.ts.map +1 -0
  309. package/dist/typescript/commonjs/index.d.ts +1 -0
  310. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +9 -0
  312. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts.map +1 -0
  313. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +1 -1
  314. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -1
  315. package/dist/typescript/commonjs/shared/common.constants.d.ts +2 -0
  316. package/dist/typescript/commonjs/shared/common.constants.d.ts.map +1 -0
  317. package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts +4 -0
  318. package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts.map +1 -0
  319. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +4 -0
  320. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +1 -0
  321. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +4 -0
  322. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +1 -0
  323. package/dist/typescript/commonjs/shared/translation/constants.d.ts +6 -0
  324. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  325. package/dist/typescript/commonjs/shared/translation/model.d.ts +2 -0
  326. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  327. package/dist/typescript/commonjs/types/common.types.d.ts +2 -0
  328. package/dist/typescript/commonjs/types/common.types.d.ts.map +1 -1
  329. package/dist/typescript/module/features/celebrations/helpers.d.ts.map +1 -1
  330. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts +7 -2
  331. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
  332. package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts +7 -0
  333. package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -0
  334. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts +3 -2
  335. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  336. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  337. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +3 -1
  338. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  339. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +4 -2
  340. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  341. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +1 -6
  342. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  343. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  344. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  345. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +4 -1
  346. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  347. package/dist/typescript/module/features/chatbot/constants.d.ts +1 -0
  348. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  349. package/dist/typescript/module/features/chatbot/helpers/ttsHighlight.d.ts +8 -0
  350. package/dist/typescript/module/features/chatbot/helpers/ttsHighlight.d.ts.map +1 -0
  351. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  352. package/dist/typescript/module/features/chatbot/index.d.ts +3 -2
  353. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  354. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +6 -3
  355. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  356. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +4 -3
  357. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  358. package/dist/typescript/module/features/chatbot/model/ChatTTSHighlightModel.d.ts +25 -0
  359. package/dist/typescript/module/features/chatbot/model/ChatTTSHighlightModel.d.ts.map +1 -0
  360. package/dist/typescript/module/features/chatbot/model/ChatTTSModel.d.ts +38 -0
  361. package/dist/typescript/module/features/chatbot/model/ChatTTSModel.d.ts.map +1 -0
  362. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +1 -0
  363. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -1
  364. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +28 -16
  365. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  366. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +14 -11
  367. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  368. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts +25 -0
  369. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts.map +1 -1
  370. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +1 -0
  371. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
  372. package/dist/typescript/module/features/feedback/model/model.d.ts +4 -1
  373. package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -1
  374. package/dist/typescript/module/features/feedback/model/sockets.d.ts.map +1 -1
  375. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  376. package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
  377. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  378. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
  379. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +2 -1
  380. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  381. package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  382. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -0
  383. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  384. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +4 -7
  385. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  386. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +1 -0
  387. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  388. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts +7 -1
  389. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
  390. package/dist/typescript/module/features/keyboard/constants/constants.d.ts +1 -1
  391. package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  392. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +4 -0
  393. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  394. package/dist/typescript/module/features/keyboard/helpers.d.ts +1 -0
  395. package/dist/typescript/module/features/keyboard/helpers.d.ts.map +1 -1
  396. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +10 -0
  397. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  398. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +36 -0
  399. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  400. package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts +7 -0
  401. package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -0
  402. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts +12 -0
  403. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -0
  404. package/dist/typescript/module/features/openEnded/index.d.ts +5 -0
  405. package/dist/typescript/module/features/openEnded/index.d.ts.map +1 -0
  406. package/dist/typescript/module/features/openEnded/oe.helpers.d.ts +13 -0
  407. package/dist/typescript/module/features/openEnded/oe.helpers.d.ts.map +1 -0
  408. package/dist/typescript/module/features/openEnded/oe.types.d.ts +7 -0
  409. package/dist/typescript/module/features/openEnded/oe.types.d.ts.map +1 -0
  410. package/dist/typescript/module/index.d.ts +1 -0
  411. package/dist/typescript/module/index.d.ts.map +1 -1
  412. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +9 -0
  413. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts.map +1 -0
  414. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +1 -1
  415. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -1
  416. package/dist/typescript/module/shared/common.constants.d.ts +2 -0
  417. package/dist/typescript/module/shared/common.constants.d.ts.map +1 -0
  418. package/dist/typescript/module/shared/icons/TimeIcon.d.ts +4 -0
  419. package/dist/typescript/module/shared/icons/TimeIcon.d.ts.map +1 -0
  420. package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +4 -0
  421. package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +1 -0
  422. package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +4 -0
  423. package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +1 -0
  424. package/dist/typescript/module/shared/translation/constants.d.ts +6 -0
  425. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  426. package/dist/typescript/module/shared/translation/model.d.ts +2 -0
  427. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  428. package/dist/typescript/module/types/common.types.d.ts +2 -0
  429. package/dist/typescript/module/types/common.types.d.ts.map +1 -1
  430. package/package.json +1 -1
  431. package/src/features/celebrations/helpers.ts +35 -33
  432. package/src/features/chatbot/TTS_HIGHLIGHTING.md +120 -0
  433. package/src/features/chatbot/components/Chat/Chat.tsx +76 -33
  434. package/src/features/chatbot/components/Chat/CloseButton.tsx +60 -0
  435. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +45 -60
  436. package/src/features/chatbot/components/ChatInput/ChatInput.tsx +3 -1
  437. package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +2 -2
  438. package/src/features/chatbot/components/ChatInput/FreeText/SendMessageButton.tsx +1 -1
  439. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +3 -1
  440. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +25 -3
  441. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +9 -21
  442. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +11 -6
  443. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +1 -1
  444. package/src/features/chatbot/components/Chatbot.tsx +28 -3
  445. package/src/features/chatbot/constants.ts +2 -0
  446. package/src/features/chatbot/helpers/ttsHighlight.ts +25 -0
  447. package/src/features/chatbot/helpers.ts +14 -1
  448. package/src/features/chatbot/index.ts +17 -2
  449. package/src/features/chatbot/model/ChatBotModel.ts +67 -16
  450. package/src/features/chatbot/model/ChatBotThreadManager.ts +12 -4
  451. package/src/features/chatbot/model/ChatTTSHighlightModel.ts +64 -0
  452. package/src/features/chatbot/model/ChatTTSModel.ts +168 -0
  453. package/src/features/chatbot/model/ChatbotApi.ts +1 -1
  454. package/src/features/chatbot/model/ChatsCacheModel.ts +11 -0
  455. package/src/features/chatbot/types/api.types.ts +25 -19
  456. package/src/features/chatbot/types/model.types.ts +23 -12
  457. package/src/features/chatbot/types/t2s.types.ts +33 -0
  458. package/src/features/chatbot/types/units.types.ts +1 -0
  459. package/src/features/feedback/model/model.ts +4 -1
  460. package/src/features/feedback/model/sockets.ts +8 -6
  461. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +4 -3
  462. package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +2 -2
  463. package/src/features/keyboard/components/BasicPlusLayout/keyboardGroups.ts +27 -17
  464. package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +3 -2
  465. package/src/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.ts +30 -24
  466. package/src/features/keyboard/components/Keyboard.tsx +14 -4
  467. package/src/features/keyboard/components/KeysList/KeysList.tsx +1 -1
  468. package/src/features/keyboard/components/MainLayout/MainLayout.tsx +2 -6
  469. package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +1 -1
  470. package/src/features/keyboard/components/UnitsLayout/helpers.tsx +3 -0
  471. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +36 -22
  472. package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +11 -0
  473. package/src/features/keyboard/components/UnitsLayout/types.ts +7 -0
  474. package/src/features/keyboard/constants/constants.ts +1 -1
  475. package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +2 -0
  476. package/src/features/keyboard/constants/keyboardLayouts.ts +18 -1
  477. package/src/features/keyboard/helpers.ts +6 -0
  478. package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +15 -3
  479. package/src/features/keyboard/types/MathKeysGroups/units.tsx +3 -0
  480. package/src/features/openEnded/components/OpenEndedAttemptsLimit.tsx +26 -0
  481. package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +81 -0
  482. package/src/features/openEnded/index.ts +4 -0
  483. package/src/features/openEnded/oe.helpers.ts +31 -0
  484. package/src/features/openEnded/oe.types.ts +6 -0
  485. package/src/index.ts +1 -0
  486. package/src/lib/components/ConditionalWrapper.tsx +15 -0
  487. package/src/lib/effector/createControllerEffect.ts +1 -1
  488. package/src/shared/common.constants.ts +3 -0
  489. package/src/shared/icons/TimeIcon.tsx +23 -0
  490. package/src/shared/icons/keyboard/CDotIcon/CDotIcon.tsx +2 -2
  491. package/src/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.tsx +18 -0
  492. package/src/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.tsx +18 -0
  493. package/src/shared/translation/localization/ca.json +2 -1
  494. package/src/shared/translation/localization/de.json +2 -1
  495. package/src/shared/translation/localization/en.json +2 -1
  496. package/src/shared/translation/localization/gb.json +2 -1
  497. package/src/shared/translation/localization/sct.json +2 -1
  498. package/src/shared/translation/localization/sw.json +2 -1
  499. package/src/types/common.types.ts +4 -0
  500. package/dist/commonjs/features/chatbot/model/t2s.js +0 -107
  501. package/dist/commonjs/features/chatbot/model/t2s.js.map +0 -1
  502. package/dist/module/features/chatbot/model/t2s.js +0 -102
  503. package/dist/module/features/chatbot/model/t2s.js.map +0 -1
  504. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +0 -34
  505. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +0 -1
  506. package/dist/typescript/module/features/chatbot/model/t2s.d.ts +0 -34
  507. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +0 -1
  508. package/src/features/chatbot/model/t2s.ts +0 -123
@@ -1,23 +1,18 @@
1
- import React from 'react'
1
+ import React, { useEffect, useState } from 'react'
2
2
  import { ComponentType, PropsWithChildren } from 'react'
3
3
  import { Pressable, StyleSheet, View } from 'react-native'
4
- import {
5
- Button,
6
- ButtonColor,
7
- ButtonSize,
8
- ButtonStates,
9
- ButtonVariant,
10
- COLORS,
11
- } from '@magmamath/react-native-ui'
4
+ import { Button, ButtonColor, ButtonSize, ButtonVariant } from '@magmamath/react-native-ui'
12
5
  import { useUnit } from 'effector-react'
13
6
  import { ChatbotModel } from '../../model/ChatBotModel'
14
7
  import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
15
- import { CloseIcon } from '../../../../shared/icons/CloseIcon'
8
+
9
+ const HELP_BUTTON_TIMEOUT_MS = 5000
16
10
 
17
11
  type ChatControlsProps = {
18
12
  model: ChatbotModel
19
13
  onPressChatIcon: () => void
20
- onPressClose: () => void
14
+ onPressHelpButton?: () => void
15
+ withHelpButton?: boolean
21
16
  ButtonWrapper?: ComponentType<PropsWithChildren>
22
17
  iconSize?: { width: number; height: number }
23
18
  }
@@ -25,56 +20,46 @@ type ChatControlsProps = {
25
20
  export const ChatControls = ({
26
21
  model,
27
22
  onPressChatIcon,
28
- onPressClose,
23
+ onPressHelpButton,
24
+ withHelpButton = false,
29
25
  ButtonWrapper = React.Fragment,
30
- iconSize = { width: 80, height: 100 },
26
+ iconSize = { width: 70, height: 90 },
31
27
  }: ChatControlsProps) => {
32
28
  const isOpen = useUnit(model.$isOpen)
29
+ const [isHelpButtonVisible, setIsHelpButtonVisible] = useState(withHelpButton)
30
+
31
+ useEffect(() => {
32
+ const timeoutId = setTimeout(() => setIsHelpButtonVisible(false), HELP_BUTTON_TIMEOUT_MS)
33
+ return () => {
34
+ clearTimeout(timeoutId)
35
+ setIsHelpButtonVisible(false)
36
+ }
37
+ }, [withHelpButton])
38
+
33
39
  if (isOpen) {
34
- return (
35
- <View style={styles.container}>
36
- <Button
37
- onPress={onPressClose}
38
- style={{
39
- button: styles.buttonClose,
40
- }}
41
- variant={ButtonVariant.PRIMARY}
42
- size={ButtonSize.LARGE}
43
- colorScheme={ButtonColor.WHITE}
44
- raiseLevel={5}
45
- customColorScheme={{
46
- [ButtonStates.DEFAULT]: {
47
- backgroundColor: COLORS.NEUTRAL_1,
48
- borderColor: COLORS.NEUTRAL_5,
49
- raiseColor: COLORS.NEUTRAL_5,
50
- color: COLORS.NEUTRAL_10,
51
- },
52
- [ButtonStates.PRESSED]: {
53
- backgroundColor: COLORS.NEUTRAL_4,
54
- borderColor: COLORS.NEUTRAL_5,
55
- raiseColor: COLORS.NEUTRAL_5,
56
- color: COLORS.NEUTRAL_1,
57
- },
58
- [ButtonStates.HOVER]: {
59
- backgroundColor: COLORS.NEUTRAL_3,
60
- borderColor: COLORS.NEUTRAL_5,
61
- raiseColor: COLORS.NEUTRAL_5,
62
- color: COLORS.NEUTRAL_10,
63
- },
64
- }}
65
- >
66
- <CloseIcon />
67
- </Button>
68
- </View>
69
- )
40
+ return null
70
41
  }
71
42
 
72
43
  return (
73
44
  <View style={styles.container}>
74
45
  <ButtonWrapper>
75
- <Pressable onPress={onPressChatIcon}>
76
- <ChatbotIcon width={iconSize?.width} height={iconSize?.height} />
77
- </Pressable>
46
+ <View style={styles.closedWrapper}>
47
+ <Pressable onPress={onPressChatIcon}>
48
+ <ChatbotIcon width={iconSize?.width} height={iconSize?.height} />
49
+ </Pressable>
50
+ {isHelpButtonVisible && (
51
+ <Button
52
+ variant={ButtonVariant.PRIMARY}
53
+ colorScheme={ButtonColor.WHITE}
54
+ size={ButtonSize.MEDIUM}
55
+ raiseLevel={3}
56
+ onPress={onPressHelpButton}
57
+ style={{ text: styles.helpButtonText }}
58
+ >
59
+ Want some help?
60
+ </Button>
61
+ )}
62
+ </View>
78
63
  </ButtonWrapper>
79
64
  </View>
80
65
  )
@@ -86,15 +71,15 @@ const styles = StyleSheet.create({
86
71
  justifyContent: 'flex-end',
87
72
  flexDirection: 'row',
88
73
  maxHeight: 100,
89
- gap: 8,
74
+ gap: 2,
90
75
  paddingBottom: 5,
91
76
  },
92
- buttonClose: {
93
- width: 50,
94
- height: 50,
95
- borderRadius: 50,
96
- paddingHorizontal: 0,
97
- borderWidth: 1.5,
98
- borderColor: COLORS.NEUTRAL_5,
77
+ closedWrapper: {
78
+ flexDirection: 'row',
79
+ alignItems: 'flex-end',
80
+ gap: 8,
81
+ },
82
+ helpButtonText: {
83
+ textTransform: 'uppercase',
99
84
  },
100
85
  })
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback, useMemo } from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
+ import { SPACING } from '@magmamath/react-native-ui'
3
4
  import { useStoreMap, useUnit } from 'effector-react'
4
5
  import { useChatModel } from '../../context/ChatBotModelContext'
5
6
  import { ColorScheme } from '../../types/style.types'
@@ -82,6 +83,7 @@ const styles = StyleSheet.create({
82
83
  width: 305,
83
84
  alignItems: 'center',
84
85
  justifyContent: 'center',
85
- marginVertical: 8,
86
+ marginVertical: SPACING['200'],
87
+ marginLeft: 6,
86
88
  },
87
89
  })
@@ -107,7 +107,7 @@ export const ChatTextInput = ({
107
107
  onBlur={handleOnBlur}
108
108
  onFocus={handleOnFocus}
109
109
  placeholder={placeholder}
110
- placeholderTextColor={COLORS.NEUTRAL_6}
110
+ placeholderTextColor={COLORS.NEUTRAL_5}
111
111
  style={styles.input}
112
112
  />
113
113
  <SendMessageButton
@@ -124,10 +124,10 @@ const styles = StyleSheet.create({
124
124
  position: 'relative',
125
125
  width: '100%',
126
126
  alignItems: 'flex-end',
127
- height: 52,
128
127
  justifyContent: 'center',
129
128
  },
130
129
  inputWrapper: {
130
+ height: 52,
131
131
  position: 'absolute',
132
132
  zIndex: 1,
133
133
  left: 0,
@@ -82,7 +82,7 @@ const styles = StyleSheet.create({
82
82
  button: {
83
83
  flexDirection: 'row',
84
84
  justifyContent: 'flex-end',
85
- height: 44,
85
+ height: 43,
86
86
  width: 44,
87
87
  },
88
88
  iconContainer: {
@@ -2,7 +2,7 @@ import React, { ComponentType } from 'react'
2
2
 
3
3
  import { ReceivedMessage } from './ReceivedMessage'
4
4
  import { SentMessage } from './SentMessage'
5
- import { T2SState } from '../../types/t2s.types'
5
+ import { TTSHighlightRenderer, T2SState } from '../../types/t2s.types'
6
6
  import { MessageVariant } from '../../types/model.types'
7
7
  import { ConversationMessage } from '../../types/units.types'
8
8
  import { ColorScheme } from '../../types/style.types'
@@ -15,6 +15,8 @@ type ChatMessageProps = {
15
15
  withErrorSpotting?: boolean
16
16
  withIcon?: boolean
17
17
  colorScheme?: ColorScheme
18
+ highlightedWordIndex?: number
19
+ TTSHighlightRenderer?: TTSHighlightRenderer
18
20
  }
19
21
 
20
22
  export type VariantProps = Omit<ChatMessageProps, 'variant'>
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import { Platform, StyleSheet, Text, View } from 'react-native'
3
3
 
4
4
  import { ConversationMessage } from '../../types/units.types'
5
- import { T2SState } from '../../types/t2s.types'
5
+ import { TTSHighlightRenderer, T2SState } from '../../types/t2s.types'
6
6
  import { ColorScheme } from '../../types/style.types'
7
7
 
8
8
  import { MessageButtonsBlock } from './MessageButtonsBlock'
@@ -16,6 +16,8 @@ type MessageContentProps = {
16
16
  variant: MessageVariant
17
17
  colorScheme?: ColorScheme
18
18
  withErrorSpotting?: boolean
19
+ highlightedWordIndex?: number
20
+ TTSHighlightRenderer?: TTSHighlightRenderer
19
21
  }
20
22
 
21
23
  const MessageContentWeb = ({
@@ -25,10 +27,20 @@ const MessageContentWeb = ({
25
27
  variant,
26
28
  colorScheme = ColorScheme.Blue,
27
29
  withErrorSpotting,
30
+ highlightedWordIndex,
31
+ TTSHighlightRenderer: TTSHighlightComponent,
28
32
  }: MessageContentProps) => {
29
33
  return (
30
34
  <Text style={styles.messageText}>
31
- {text}
35
+ {TTSHighlightComponent ? (
36
+ <TTSHighlightComponent
37
+ text={text}
38
+ highlightedIndex={highlightedWordIndex ?? -1}
39
+ colorScheme={colorScheme}
40
+ />
41
+ ) : (
42
+ text
43
+ )}
32
44
  <MessageButtonsBlock
33
45
  message={message}
34
46
  t2sState={t2sState}
@@ -47,11 +59,21 @@ const MessageContentMobile = ({
47
59
  variant,
48
60
  colorScheme = ColorScheme.Blue,
49
61
  withErrorSpotting,
62
+ highlightedWordIndex,
63
+ TTSHighlightRenderer: TTSHighlightComponent,
50
64
  }: MessageContentProps) => {
51
65
  return (
52
66
  <>
53
67
  <Text style={[styles.messageText, styles.mobileMessageText]}>
54
- {text}
68
+ {TTSHighlightComponent ? (
69
+ <TTSHighlightComponent
70
+ text={text}
71
+ highlightedIndex={highlightedWordIndex ?? -1}
72
+ colorScheme={colorScheme}
73
+ />
74
+ ) : (
75
+ text
76
+ )}
55
77
  <View style={{ width: getSpacerSize(message, t2sState) }} />
56
78
  </Text>
57
79
  <MessageButtonsBlock
@@ -1,54 +1,42 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
- import { COLORS } from '@magmamath/react-native-ui'
4
-
5
- import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
6
- import { ThreeDotsLoader } from '../ThreeDotsLoader/ThreeDotsLoader'
7
- import { CONTROLS_COLORS_MAP } from '../../constants'
8
- import { ColorScheme } from '../../types/style.types'
9
3
  import { LavaIconInGlasses } from '@magmamath/students-features'
4
+ import { BORDER_RADIUS, COLORS, Loader, LoaderColor } from '@magmamath/react-native-ui'
10
5
 
11
- type MessageLoaderProps = {
12
- colorScheme?: ColorScheme
13
- }
14
-
15
- export const MessageLoader = ({ colorScheme = ColorScheme.Blue }: MessageLoaderProps) => (
6
+ export const MessageLoader = () => (
16
7
  <View style={styles.container}>
17
8
  <View style={styles.icon}>
18
- <LavaIconInGlasses width={60} height={80} />
9
+ <LavaIconInGlasses width={53} height={73} />
19
10
  </View>
20
11
  <View style={styles.loader}>
21
- <ThreeDotsLoader backgroundColor={CONTROLS_COLORS_MAP[colorScheme].background} />
12
+ <Loader color={LoaderColor.GRAY} />
22
13
  </View>
23
14
  </View>
24
15
  )
25
16
 
26
17
  const styles = StyleSheet.create({
27
18
  container: {
19
+ flex: 1,
28
20
  flexDirection: 'row',
29
- width: 327,
21
+ width: 365,
30
22
  alignItems: 'flex-end',
31
- paddingLeft:70
32
23
  },
33
24
  icon: {
34
- position: 'absolute',
35
- zIndex:1,
36
25
  alignSelf: 'flex-end',
37
- left: 0
26
+ marginRight: 8,
38
27
  },
39
28
  loader: {
40
29
  flex: 1,
41
30
  flexDirection: 'row',
42
31
  alignItems: 'flex-start',
43
- maxWidth: 70,
32
+ maxWidth: 62,
44
33
  padding: 8,
45
- paddingTop: 15,
46
34
  shadowColor: '#333333',
47
35
  shadowOffset: { width: 0, height: 1 },
48
36
  shadowOpacity: 0.25,
49
37
  shadowRadius: 3,
50
38
  elevation: 3,
51
- borderRadius: 8,
39
+ borderRadius: BORDER_RADIUS['300'],
52
40
  borderBottomLeftRadius: 0,
53
41
  backgroundColor: COLORS.NEUTRAL_3,
54
42
  },
@@ -1,11 +1,12 @@
1
1
  import React from 'react'
2
2
  import { StyleSheet, View } from 'react-native'
3
+ import { BORDER_RADIUS } from '@magmamath/react-native-ui'
3
4
 
4
- import { VariantProps } from './ChatMessage'
5
5
  import { ChatbotIcon } from '../../../../shared/icons/ChatbotIcon'
6
6
  import { ColorScheme } from '../../types/style.types'
7
- import { MessageContent } from './MessageContent'
8
7
  import { MessageVariant } from '../../types/model.types'
8
+ import { VariantProps } from './ChatMessage'
9
+ import { MessageContent } from './MessageContent'
9
10
 
10
11
  export const ReceivedMessage = ({
11
12
  message,
@@ -14,6 +15,8 @@ export const ReceivedMessage = ({
14
15
  withIcon,
15
16
  colorScheme = ColorScheme.Blue,
16
17
  withErrorSpotting,
18
+ highlightedWordIndex,
19
+ TTSHighlightRenderer,
17
20
  }: VariantProps) => {
18
21
  const text = isTranslated ? message.translatedMessage : message.message
19
22
 
@@ -21,7 +24,7 @@ export const ReceivedMessage = ({
21
24
  <View style={styles.container}>
22
25
  {withIcon && (
23
26
  <View style={styles.icon}>
24
- <ChatbotIcon width={60} height={80} />
27
+ <ChatbotIcon width={53} height={73} />
25
28
  </View>
26
29
  )}
27
30
 
@@ -33,6 +36,8 @@ export const ReceivedMessage = ({
33
36
  text={text ?? ''}
34
37
  colorScheme={colorScheme}
35
38
  withErrorSpotting={withErrorSpotting}
39
+ highlightedWordIndex={highlightedWordIndex}
40
+ TTSHighlightRenderer={TTSHighlightRenderer}
36
41
  />
37
42
  </View>
38
43
  </View>
@@ -43,8 +48,8 @@ const styles = StyleSheet.create({
43
48
  container: {
44
49
  flex: 1,
45
50
  flexDirection: 'row',
46
- maxWidth: 372,
47
- width: 372,
51
+ maxWidth: 365,
52
+ width: 365,
48
53
  alignItems: 'flex-end',
49
54
  justifyContent: 'flex-end',
50
55
  },
@@ -62,7 +67,7 @@ const styles = StyleSheet.create({
62
67
  shadowOpacity: 0.25,
63
68
  shadowRadius: 3,
64
69
  elevation: 3,
65
- borderRadius: 8,
70
+ borderRadius: BORDER_RADIUS[300],
66
71
  borderBottomLeftRadius: 0,
67
72
  backgroundColor: '#F2F2F4',
68
73
  },
@@ -29,7 +29,7 @@ const styles = StyleSheet.create({
29
29
  alignSelf: 'flex-end',
30
30
  maxWidth: 305,
31
31
  padding: SPACING[200],
32
- borderRadius: BORDER_RADIUS[200],
32
+ borderRadius: BORDER_RADIUS[300],
33
33
  borderBottomRightRadius: 0,
34
34
  },
35
35
  text: {
@@ -1,4 +1,4 @@
1
- import React, { ComponentType, PropsWithChildren } from 'react'
1
+ import React, { ComponentType, PropsWithChildren, useCallback } from 'react'
2
2
  import { useStoreMap, useUnit } from 'effector-react'
3
3
 
4
4
  import { ChatbotModel } from '../model/ChatBotModel'
@@ -7,6 +7,7 @@ import { ChatControls } from './ChatControls/ChatControls'
7
7
  import { AUDIO_CONFIG, DEFAULT_VOICE } from '../constants'
8
8
  import { ChatBotModelContext } from '../context/ChatBotModelContext'
9
9
  import { ColorScheme } from '../types/style.types'
10
+ import { TTSHighlightRenderer } from '../types/t2s.types'
10
11
 
11
12
  type ChatbotProps = {
12
13
  model: ChatbotModel
@@ -18,25 +19,44 @@ type ChatbotProps = {
18
19
  }
19
20
  ButtonWrapper?: ComponentType<PropsWithChildren>
20
21
  iconSize?: { width: number; height: number } // TODO: use number instead
22
+ isInputDisabled?: boolean
21
23
  colorScheme?: ColorScheme
24
+ TTSHighlightRenderer?: TTSHighlightRenderer
22
25
  }
23
26
 
24
27
  export const Chatbot = ({
25
28
  model,
26
29
  isHintFeedback,
27
30
  isTextToSpeechEnabled = false,
31
+ isInputDisabled,
28
32
  textToSpeechConfig,
29
33
  ButtonWrapper,
30
34
  iconSize,
31
35
  colorScheme = ColorScheme.Blue,
36
+ TTSHighlightRenderer,
32
37
  }: ChatbotProps) => {
38
+ const alternatives = useUnit(model.$alternatives)
33
39
  const isChatAllowed = useUnit(model.$chatAccess)
34
40
  const isAvailable = useStoreMap(model.$currentChatData, ({ isAvailable }) => isAvailable)
41
+ const hasBeenOpened = useStoreMap(model.$currentChatData, ({ hasBeenOpened }) => hasBeenOpened)
42
+
35
43
  model.t2s.setAudioConfig(textToSpeechConfig ?? null)
36
44
 
37
45
  const openChat = () => model.setIsOpen(true)
38
46
  const closeChat = () => model.setIsOpen(false)
39
47
 
48
+ const sendHelpRequest = useCallback(() => {
49
+ const option = alternatives?.options.default[0]
50
+ if (!option) return
51
+
52
+ model.setIsOpen(true)
53
+ void model.sendHelpRequestFx({
54
+ message: option.text,
55
+ translatedMessage: option.translatedText,
56
+ skipOwnMessage: true,
57
+ })
58
+ }, [alternatives])
59
+
40
60
  if (!isAvailable || !isChatAllowed) {
41
61
  return null
42
62
  }
@@ -48,14 +68,19 @@ export const Chatbot = ({
48
68
  colorScheme={colorScheme}
49
69
  isHintFeedback={isHintFeedback}
50
70
  isTextToSpeechEnabled={isTextToSpeechEnabled}
71
+ isInputDisabled={isInputDisabled}
72
+ MessageWrapper={ButtonWrapper}
73
+ TTSHighlightRenderer={TTSHighlightRenderer}
74
+ onPressClose={closeChat}
51
75
  />
52
76
 
53
77
  <ChatControls
54
78
  model={model}
55
79
  onPressChatIcon={openChat}
56
- onPressClose={closeChat}
57
- ButtonWrapper={ButtonWrapper}
80
+ onPressHelpButton={sendHelpRequest}
58
81
  iconSize={iconSize}
82
+ ButtonWrapper={isInputDisabled ? undefined : ButtonWrapper}
83
+ withHelpButton={!isInputDisabled && !hasBeenOpened}
59
84
  />
60
85
  </ChatBotModelContext.Provider>
61
86
  )
@@ -80,3 +80,5 @@ export const CONTROLS_COLORS_MAP = {
80
80
  }
81
81
 
82
82
  export const HOVER_ANIMATION_DURATION = 200
83
+
84
+ export const WORD_MARK_REGEX = /^w_(\d+)$/
@@ -0,0 +1,25 @@
1
+ import { Timepoint } from '../types/api.types'
2
+
3
+ const escapeXml = (str: string): string =>
4
+ str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
5
+
6
+ /**
7
+ * Converts plain text to SSML with word marks for TTS highlighting.
8
+ * "Hello world" -> '<speak><mark name="w_0"/>Hello <mark name="w_1"/>world</speak>'
9
+ */
10
+ export const textToSSML = (text: string): string => {
11
+ const words = text.split(/\s+/).filter(Boolean)
12
+ if (words.length === 0) return '<speak></speak>'
13
+
14
+ const ssmlParts = words.map((word, i) => `<mark name="w_${i}"/>${escapeXml(word)}`)
15
+ return `<speak>${ssmlParts.join(' ')}</speak>`
16
+ }
17
+
18
+ export const findCurrentMark = (timepoints: Timepoint[], time: number): string | undefined => {
19
+ for (let i = timepoints.length - 1; i >= 0; i--) {
20
+ if (timepoints[i].timeSeconds <= time) {
21
+ return timepoints[i].markName
22
+ }
23
+ }
24
+ return undefined
25
+ }
@@ -58,17 +58,27 @@ export function prepareChatRequestPayload(
58
58
  conversationId,
59
59
  freeTextMessage,
60
60
  problemDescription,
61
+ problemStandards,
61
62
  problemAnswer,
62
63
  language,
63
64
  imageCdnId,
64
65
  imageAltText,
65
66
  answerOptions,
66
67
  answer,
68
+ chatHistory,
67
69
  } = payload
68
70
 
69
71
  if (freeTextMessage) {
70
72
  return conversationId
71
- ? { type: ChatRequestType.FREETEXT, data: { conversationId, message: freeTextMessage } }
73
+ ? {
74
+ type: ChatRequestType.FREETEXT,
75
+ data: {
76
+ conversationId,
77
+ message: freeTextMessage,
78
+ ...(chatHistory && { chatHistory }),
79
+ ...(!!problemStandards?.length && { problemStandards }),
80
+ },
81
+ }
72
82
  : {
73
83
  type: ChatRequestType.FREETEXT,
74
84
  data: {
@@ -76,8 +86,10 @@ export function prepareChatRequestPayload(
76
86
  correctAnswer: problemAnswer,
77
87
  problemDescription,
78
88
  language,
89
+ ...(chatHistory && { chatHistory }),
79
90
  ...(imageCdnId && { imageCdnId }),
80
91
  ...(imageAltText && { altText: imageAltText }),
92
+ ...(!!problemStandards?.length && { problemStandards }),
81
93
  ...(!!answerOptions?.length && { answerOptions }),
82
94
  },
83
95
  }
@@ -93,6 +105,7 @@ export function prepareChatRequestPayload(
93
105
  language,
94
106
  ...(imageCdnId && { imageCdnId }),
95
107
  ...(imageAltText && { altText: imageAltText }),
108
+ ...(!!problemStandards?.length && { problemStandards }),
96
109
  },
97
110
  }
98
111
  }
@@ -1,12 +1,27 @@
1
1
  export { Chatbot } from './components/Chatbot'
2
2
  export { ChatbotModel } from './model/ChatBotModel'
3
- export { AudioStatus, type AudioProvider } from './types/t2s.types'
3
+ export {
4
+ AudioStatus,
5
+ type AudioProvider,
6
+ type TTSHighlightRenderer,
7
+ type TTSHighlightRendererProps,
8
+ } from './types/t2s.types'
4
9
  export {
5
10
  MessageVariant,
6
11
  type ChatbotModelProps,
7
12
  type IChatDrawBoardAdapter,
8
13
  } from './types/model.types'
9
- export type { PostMessageResponse } from './types/api.types'
14
+ export type { RequestOptionalConfig } from '../../lib/effector/createControllerEffect'
15
+ export type {
16
+ ChatHintPayload,
17
+ ChatHintResponse,
18
+ ChatHistory,
19
+ GetAlternativesResponse,
20
+ GetAlternativesPayload,
21
+ SendMessagePayload,
22
+ SendMessageResponse,
23
+ PostMessageResponse,
24
+ } from './types/api.types'
10
25
  export { DefaultMessagesCreator } from './model/DefaultMessageCreator'
11
26
  export type { ChatAnswer } from './types/units.types'
12
27
  export type { ConversationMessage } from './types/units.types'