@magmamath/students-features 0.10.0 → 0.11.0-rc.10

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 (538) 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 +229 -45
  5. package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
  6. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +39 -0
  7. package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -0
  8. package/dist/commonjs/features/chatbot/components/Chat/GradientFade.js +44 -0
  9. package/dist/commonjs/features/chatbot/components/Chat/GradientFade.js.map +1 -0
  10. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +46 -54
  11. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  12. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +1 -1
  13. package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  14. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +2 -2
  15. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  16. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +1 -1
  17. package/dist/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.js +41 -0
  18. package/dist/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.js.map +1 -0
  19. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  20. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +16 -4
  21. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  22. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +14 -34
  23. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  24. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +20 -15
  25. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  26. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +1 -1
  27. package/dist/commonjs/features/chatbot/components/Chatbot.js +30 -7
  28. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  29. package/dist/commonjs/features/chatbot/constants.js +2 -1
  30. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  31. package/dist/commonjs/features/chatbot/helpers/ttsHighlight.js +29 -0
  32. package/dist/commonjs/features/chatbot/helpers/ttsHighlight.js.map +1 -0
  33. package/dist/commonjs/features/chatbot/helpers.js +19 -2
  34. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  35. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  36. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +65 -17
  37. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  38. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js +2 -2
  39. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  40. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +2 -1
  41. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  42. package/dist/commonjs/features/chatbot/model/ChatTTSHighlightModel.js +56 -0
  43. package/dist/commonjs/features/chatbot/model/ChatTTSHighlightModel.js.map +1 -0
  44. package/dist/commonjs/features/chatbot/model/ChatTTSModel.js +154 -0
  45. package/dist/commonjs/features/chatbot/model/ChatTTSModel.js.map +1 -0
  46. package/dist/commonjs/features/chatbot/model/ChatbotApi.js +1 -1
  47. package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -1
  48. package/dist/commonjs/features/chatbot/model/ChatbotTranslation.js +1 -1
  49. package/dist/commonjs/features/chatbot/model/ChatbotTranslation.js.map +1 -1
  50. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +9 -0
  51. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +1 -1
  52. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  53. package/dist/commonjs/features/chatbot/types/t2s.types.js.map +1 -1
  54. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  55. package/dist/commonjs/features/feedback/model/sockets.js +8 -5
  56. package/dist/commonjs/features/feedback/model/sockets.js.map +1 -1
  57. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -2
  58. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  59. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
  60. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  61. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
  62. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
  63. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -2
  64. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  65. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
  66. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
  67. package/dist/commonjs/features/keyboard/components/Keyboard.js +4 -2
  68. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  69. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +1 -6
  70. package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  71. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
  72. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +3 -1
  73. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  74. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +27 -6
  75. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  76. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +9 -1
  77. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  78. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js +1 -0
  79. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js.map +1 -1
  80. package/dist/commonjs/features/keyboard/constants/constants.js +1 -1
  81. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +2 -1
  82. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  83. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +20 -4
  84. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  85. package/dist/commonjs/features/keyboard/helpers.js +7 -0
  86. package/dist/commonjs/features/keyboard/helpers.js.map +1 -1
  87. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +20 -3
  88. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  89. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +6 -3
  90. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  91. package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js +34 -0
  92. package/dist/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -0
  93. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js +77 -0
  94. package/dist/commonjs/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -0
  95. package/dist/commonjs/features/openEnded/index.js +48 -0
  96. package/dist/commonjs/features/openEnded/index.js.map +1 -0
  97. package/dist/commonjs/features/openEnded/oe.helpers.js +26 -0
  98. package/dist/commonjs/features/openEnded/oe.helpers.js.map +1 -0
  99. package/dist/commonjs/features/openEnded/oe.types.js +14 -0
  100. package/dist/commonjs/features/openEnded/oe.types.js.map +1 -0
  101. package/dist/commonjs/index.js +13 -1
  102. package/dist/commonjs/index.js.map +1 -1
  103. package/dist/commonjs/lib/components/ConditionalWrapper.js +23 -0
  104. package/dist/commonjs/lib/components/ConditionalWrapper.js.map +1 -0
  105. package/dist/commonjs/shared/common.constants.js +9 -0
  106. package/dist/commonjs/shared/common.constants.js.map +1 -0
  107. package/dist/commonjs/shared/icons/TimeIcon.js +37 -0
  108. package/dist/commonjs/shared/icons/TimeIcon.js.map +1 -0
  109. package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
  110. package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
  111. package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +32 -0
  112. package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +1 -0
  113. package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +32 -0
  114. package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +1 -0
  115. package/dist/commonjs/shared/translation/localization/ca.json +4 -2
  116. package/dist/commonjs/shared/translation/localization/de.json +4 -2
  117. package/dist/commonjs/shared/translation/localization/en.json +4 -2
  118. package/dist/commonjs/shared/translation/localization/gb.json +4 -2
  119. package/dist/commonjs/shared/translation/localization/sct.json +4 -2
  120. package/dist/commonjs/shared/translation/localization/sw.json +4 -2
  121. package/dist/commonjs/types/common.types.js +4 -0
  122. package/dist/module/features/celebrations/helpers.js +4 -1
  123. package/dist/module/features/celebrations/helpers.js.map +1 -1
  124. package/dist/module/features/chatbot/TTS_HIGHLIGHTING.md +120 -0
  125. package/dist/module/features/chatbot/components/Chat/Chat.js +231 -47
  126. package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
  127. package/dist/module/features/chatbot/components/Chat/CloseButton.js +33 -0
  128. package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -0
  129. package/dist/module/features/chatbot/components/Chat/GradientFade.js +39 -0
  130. package/dist/module/features/chatbot/components/Chat/GradientFade.js.map +1 -0
  131. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +46 -55
  132. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
  133. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +1 -1
  134. package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
  135. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +2 -2
  136. package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
  137. package/dist/module/features/chatbot/components/ChatInput/FreeText/SendMessageButton.js +1 -1
  138. package/dist/module/features/chatbot/components/ChatMessage/AnimatedMessage.js +34 -0
  139. package/dist/module/features/chatbot/components/ChatMessage/AnimatedMessage.js.map +1 -0
  140. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  141. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +16 -4
  142. package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
  143. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +17 -36
  144. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
  145. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +19 -14
  146. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  147. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +1 -1
  148. package/dist/module/features/chatbot/components/Chatbot.js +28 -6
  149. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  150. package/dist/module/features/chatbot/constants.js +1 -0
  151. package/dist/module/features/chatbot/constants.js.map +1 -1
  152. package/dist/module/features/chatbot/helpers/ttsHighlight.js +23 -0
  153. package/dist/module/features/chatbot/helpers/ttsHighlight.js.map +1 -0
  154. package/dist/module/features/chatbot/helpers.js +19 -2
  155. package/dist/module/features/chatbot/helpers.js.map +1 -1
  156. package/dist/module/features/chatbot/index.js.map +1 -1
  157. package/dist/module/features/chatbot/model/ChatBotModel.js +65 -17
  158. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  159. package/dist/module/features/chatbot/model/ChatBotThreadManager.js +2 -2
  160. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +1 -1
  161. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +2 -1
  162. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  163. package/dist/module/features/chatbot/model/ChatTTSHighlightModel.js +52 -0
  164. package/dist/module/features/chatbot/model/ChatTTSHighlightModel.js.map +1 -0
  165. package/dist/module/features/chatbot/model/ChatTTSModel.js +149 -0
  166. package/dist/module/features/chatbot/model/ChatTTSModel.js.map +1 -0
  167. package/dist/module/features/chatbot/model/ChatbotApi.js +1 -1
  168. package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -1
  169. package/dist/module/features/chatbot/model/ChatbotTranslation.js +1 -1
  170. package/dist/module/features/chatbot/model/ChatbotTranslation.js.map +1 -1
  171. package/dist/module/features/chatbot/model/ChatsCacheModel.js +9 -0
  172. package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +1 -1
  173. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  174. package/dist/module/features/chatbot/types/t2s.types.js.map +1 -1
  175. package/dist/module/features/feedback/model/model.js.map +1 -1
  176. package/dist/module/features/feedback/model/sockets.js +8 -5
  177. package/dist/module/features/feedback/model/sockets.js.map +1 -1
  178. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +3 -3
  179. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  180. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
  181. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  182. package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
  183. package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
  184. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -2
  185. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
  186. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
  187. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
  188. package/dist/module/features/keyboard/components/Keyboard.js +4 -2
  189. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  190. package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  191. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +2 -7
  192. package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -1
  193. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
  194. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +2 -1
  195. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  196. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +27 -6
  197. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  198. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +9 -1
  199. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  200. package/dist/module/features/keyboard/components/UnitsLayout/types.js +1 -0
  201. package/dist/module/features/keyboard/components/UnitsLayout/types.js.map +1 -1
  202. package/dist/module/features/keyboard/constants/constants.js +1 -1
  203. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +3 -2
  204. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  205. package/dist/module/features/keyboard/constants/keyboardLayouts.js +19 -4
  206. package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  207. package/dist/module/features/keyboard/helpers.js +5 -0
  208. package/dist/module/features/keyboard/helpers.js.map +1 -1
  209. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +20 -3
  210. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  211. package/dist/module/features/keyboard/types/MathKeysGroups/units.js +6 -3
  212. package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  213. package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js +28 -0
  214. package/dist/module/features/openEnded/components/OpenEndedAttemptsLimit.js.map +1 -0
  215. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js +71 -0
  216. package/dist/module/features/openEnded/components/OpenEndedScoreLabel.js.map +1 -0
  217. package/dist/module/features/openEnded/index.js +7 -0
  218. package/dist/module/features/openEnded/index.js.map +1 -0
  219. package/dist/module/features/openEnded/oe.helpers.js +21 -0
  220. package/dist/module/features/openEnded/oe.helpers.js.map +1 -0
  221. package/dist/module/features/openEnded/oe.types.js +10 -0
  222. package/dist/module/features/openEnded/oe.types.js.map +1 -0
  223. package/dist/module/index.js +1 -0
  224. package/dist/module/index.js.map +1 -1
  225. package/dist/module/lib/components/ConditionalWrapper.js +17 -0
  226. package/dist/module/lib/components/ConditionalWrapper.js.map +1 -0
  227. package/dist/module/shared/common.constants.js +5 -0
  228. package/dist/module/shared/common.constants.js.map +1 -0
  229. package/dist/module/shared/icons/TimeIcon.js +29 -0
  230. package/dist/module/shared/icons/TimeIcon.js.map +1 -0
  231. package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
  232. package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
  233. package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +24 -0
  234. package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +1 -0
  235. package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +24 -0
  236. package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +1 -0
  237. package/dist/module/shared/translation/localization/ca.json +4 -2
  238. package/dist/module/shared/translation/localization/de.json +4 -2
  239. package/dist/module/shared/translation/localization/en.json +4 -2
  240. package/dist/module/shared/translation/localization/gb.json +4 -2
  241. package/dist/module/shared/translation/localization/sct.json +4 -2
  242. package/dist/module/shared/translation/localization/sw.json +4 -2
  243. package/dist/module/types/common.types.js +2 -0
  244. package/dist/typescript/commonjs/features/celebrations/helpers.d.ts.map +1 -1
  245. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts +7 -2
  246. package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
  247. package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts +7 -0
  248. package/dist/typescript/commonjs/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -0
  249. package/dist/typescript/commonjs/features/chatbot/components/Chat/GradientFade.d.ts +10 -0
  250. package/dist/typescript/commonjs/features/chatbot/components/Chat/GradientFade.d.ts.map +1 -0
  251. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts +3 -2
  252. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  253. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  254. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.d.ts +7 -0
  255. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.d.ts.map +1 -0
  256. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +4 -2
  257. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  258. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts +4 -2
  259. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  260. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +2 -3
  261. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  262. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  263. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  264. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +5 -1
  265. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  266. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +1 -0
  267. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  268. package/dist/typescript/commonjs/features/chatbot/helpers/ttsHighlight.d.ts +8 -0
  269. package/dist/typescript/commonjs/features/chatbot/helpers/ttsHighlight.d.ts.map +1 -0
  270. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  271. package/dist/typescript/commonjs/features/chatbot/index.d.ts +3 -2
  272. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  273. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +6 -3
  274. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  275. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts +4 -3
  276. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  277. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  278. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSHighlightModel.d.ts +25 -0
  279. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSHighlightModel.d.ts.map +1 -0
  280. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSModel.d.ts +38 -0
  281. package/dist/typescript/commonjs/features/chatbot/model/ChatTTSModel.d.ts.map +1 -0
  282. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +1 -0
  283. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -1
  284. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +28 -16
  285. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  286. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +15 -11
  287. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  288. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts +25 -0
  289. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts.map +1 -1
  290. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +1 -0
  291. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/features/feedback/model/model.d.ts +4 -1
  293. package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/features/feedback/model/sockets.d.ts.map +1 -1
  295. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  296. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
  297. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  298. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +2 -1
  300. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  301. package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  302. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -0
  303. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  304. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +4 -7
  305. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  306. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +1 -0
  307. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  308. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts +7 -1
  309. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
  310. package/dist/typescript/commonjs/features/keyboard/constants/constants.d.ts +1 -1
  311. package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  312. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +4 -0
  313. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  314. package/dist/typescript/commonjs/features/keyboard/helpers.d.ts +1 -0
  315. package/dist/typescript/commonjs/features/keyboard/helpers.d.ts.map +1 -1
  316. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +10 -0
  317. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  318. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +36 -0
  319. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  320. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts +7 -0
  321. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -0
  322. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts +12 -0
  323. package/dist/typescript/commonjs/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -0
  324. package/dist/typescript/commonjs/features/openEnded/index.d.ts +5 -0
  325. package/dist/typescript/commonjs/features/openEnded/index.d.ts.map +1 -0
  326. package/dist/typescript/commonjs/features/openEnded/oe.helpers.d.ts +13 -0
  327. package/dist/typescript/commonjs/features/openEnded/oe.helpers.d.ts.map +1 -0
  328. package/dist/typescript/commonjs/features/openEnded/oe.types.d.ts +7 -0
  329. package/dist/typescript/commonjs/features/openEnded/oe.types.d.ts.map +1 -0
  330. package/dist/typescript/commonjs/index.d.ts +1 -0
  331. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  332. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +9 -0
  333. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts.map +1 -0
  334. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +1 -1
  335. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -1
  336. package/dist/typescript/commonjs/shared/common.constants.d.ts +2 -0
  337. package/dist/typescript/commonjs/shared/common.constants.d.ts.map +1 -0
  338. package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts +4 -0
  339. package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +4 -0
  341. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +1 -0
  342. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +4 -0
  343. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/shared/translation/constants.d.ts +12 -0
  345. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  346. package/dist/typescript/commonjs/shared/translation/model.d.ts +4 -0
  347. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  348. package/dist/typescript/commonjs/types/common.types.d.ts +2 -0
  349. package/dist/typescript/commonjs/types/common.types.d.ts.map +1 -1
  350. package/dist/typescript/module/features/celebrations/helpers.d.ts.map +1 -1
  351. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts +7 -2
  352. package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
  353. package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts +7 -0
  354. package/dist/typescript/module/features/chatbot/components/Chat/CloseButton.d.ts.map +1 -0
  355. package/dist/typescript/module/features/chatbot/components/Chat/GradientFade.d.ts +10 -0
  356. package/dist/typescript/module/features/chatbot/components/Chat/GradientFade.d.ts.map +1 -0
  357. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts +3 -2
  358. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
  359. package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
  360. package/dist/typescript/module/features/chatbot/components/ChatMessage/AnimatedMessage.d.ts +7 -0
  361. package/dist/typescript/module/features/chatbot/components/ChatMessage/AnimatedMessage.d.ts.map +1 -0
  362. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +4 -2
  363. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  364. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts +4 -2
  365. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
  366. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +2 -3
  367. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -1
  368. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  369. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  370. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +5 -1
  371. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  372. package/dist/typescript/module/features/chatbot/constants.d.ts +1 -0
  373. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  374. package/dist/typescript/module/features/chatbot/helpers/ttsHighlight.d.ts +8 -0
  375. package/dist/typescript/module/features/chatbot/helpers/ttsHighlight.d.ts.map +1 -0
  376. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  377. package/dist/typescript/module/features/chatbot/index.d.ts +3 -2
  378. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  379. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +6 -3
  380. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  381. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts +4 -3
  382. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +1 -1
  383. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  384. package/dist/typescript/module/features/chatbot/model/ChatTTSHighlightModel.d.ts +25 -0
  385. package/dist/typescript/module/features/chatbot/model/ChatTTSHighlightModel.d.ts.map +1 -0
  386. package/dist/typescript/module/features/chatbot/model/ChatTTSModel.d.ts +38 -0
  387. package/dist/typescript/module/features/chatbot/model/ChatTTSModel.d.ts.map +1 -0
  388. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +1 -0
  389. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +1 -1
  390. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +28 -16
  391. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  392. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +15 -11
  393. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  394. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts +25 -0
  395. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts.map +1 -1
  396. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +1 -0
  397. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +1 -1
  398. package/dist/typescript/module/features/feedback/model/model.d.ts +4 -1
  399. package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -1
  400. package/dist/typescript/module/features/feedback/model/sockets.d.ts.map +1 -1
  401. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  402. package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
  403. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
  404. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
  405. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +2 -1
  406. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  407. package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -1
  408. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -0
  409. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  410. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +4 -7
  411. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  412. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +1 -0
  413. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  414. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts +7 -1
  415. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
  416. package/dist/typescript/module/features/keyboard/constants/constants.d.ts +1 -1
  417. package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  418. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +4 -0
  419. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  420. package/dist/typescript/module/features/keyboard/helpers.d.ts +1 -0
  421. package/dist/typescript/module/features/keyboard/helpers.d.ts.map +1 -1
  422. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +10 -0
  423. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  424. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +36 -0
  425. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  426. package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts +7 -0
  427. package/dist/typescript/module/features/openEnded/components/OpenEndedAttemptsLimit.d.ts.map +1 -0
  428. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts +12 -0
  429. package/dist/typescript/module/features/openEnded/components/OpenEndedScoreLabel.d.ts.map +1 -0
  430. package/dist/typescript/module/features/openEnded/index.d.ts +5 -0
  431. package/dist/typescript/module/features/openEnded/index.d.ts.map +1 -0
  432. package/dist/typescript/module/features/openEnded/oe.helpers.d.ts +13 -0
  433. package/dist/typescript/module/features/openEnded/oe.helpers.d.ts.map +1 -0
  434. package/dist/typescript/module/features/openEnded/oe.types.d.ts +7 -0
  435. package/dist/typescript/module/features/openEnded/oe.types.d.ts.map +1 -0
  436. package/dist/typescript/module/index.d.ts +1 -0
  437. package/dist/typescript/module/index.d.ts.map +1 -1
  438. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +9 -0
  439. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts.map +1 -0
  440. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +1 -1
  441. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -1
  442. package/dist/typescript/module/shared/common.constants.d.ts +2 -0
  443. package/dist/typescript/module/shared/common.constants.d.ts.map +1 -0
  444. package/dist/typescript/module/shared/icons/TimeIcon.d.ts +4 -0
  445. package/dist/typescript/module/shared/icons/TimeIcon.d.ts.map +1 -0
  446. package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +4 -0
  447. package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +1 -0
  448. package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +4 -0
  449. package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +1 -0
  450. package/dist/typescript/module/shared/translation/constants.d.ts +12 -0
  451. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  452. package/dist/typescript/module/shared/translation/model.d.ts +4 -0
  453. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  454. package/dist/typescript/module/types/common.types.d.ts +2 -0
  455. package/dist/typescript/module/types/common.types.d.ts.map +1 -1
  456. package/package.json +3 -1
  457. package/src/features/celebrations/helpers.ts +35 -33
  458. package/src/features/chatbot/TTS_HIGHLIGHTING.md +120 -0
  459. package/src/features/chatbot/components/Chat/Chat.tsx +301 -57
  460. package/src/features/chatbot/components/Chat/CloseButton.tsx +31 -0
  461. package/src/features/chatbot/components/Chat/GradientFade.tsx +43 -0
  462. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +47 -60
  463. package/src/features/chatbot/components/ChatInput/ChatInput.tsx +2 -1
  464. package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +2 -2
  465. package/src/features/chatbot/components/ChatInput/FreeText/SendMessageButton.tsx +1 -1
  466. package/src/features/chatbot/components/ChatMessage/AnimatedMessage.tsx +30 -0
  467. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +4 -2
  468. package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +25 -3
  469. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +17 -33
  470. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +17 -12
  471. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +1 -1
  472. package/src/features/chatbot/components/Chatbot.tsx +30 -3
  473. package/src/features/chatbot/constants.ts +2 -0
  474. package/src/features/chatbot/helpers/ttsHighlight.ts +25 -0
  475. package/src/features/chatbot/helpers.ts +14 -1
  476. package/src/features/chatbot/index.ts +17 -2
  477. package/src/features/chatbot/model/ChatBotModel.ts +74 -16
  478. package/src/features/chatbot/model/ChatBotThreadManager.ts +12 -4
  479. package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -0
  480. package/src/features/chatbot/model/ChatTTSHighlightModel.ts +64 -0
  481. package/src/features/chatbot/model/ChatTTSModel.ts +168 -0
  482. package/src/features/chatbot/model/ChatbotApi.ts +1 -1
  483. package/src/features/chatbot/model/ChatbotTranslation.ts +1 -1
  484. package/src/features/chatbot/model/ChatsCacheModel.ts +11 -0
  485. package/src/features/chatbot/types/api.types.ts +25 -19
  486. package/src/features/chatbot/types/model.types.ts +24 -12
  487. package/src/features/chatbot/types/t2s.types.ts +33 -0
  488. package/src/features/chatbot/types/units.types.ts +1 -0
  489. package/src/features/feedback/model/model.ts +4 -1
  490. package/src/features/feedback/model/sockets.ts +8 -6
  491. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +4 -3
  492. package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +2 -2
  493. package/src/features/keyboard/components/BasicPlusLayout/keyboardGroups.ts +27 -17
  494. package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +3 -2
  495. package/src/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.ts +30 -24
  496. package/src/features/keyboard/components/Keyboard.tsx +14 -4
  497. package/src/features/keyboard/components/KeysList/KeysList.tsx +1 -1
  498. package/src/features/keyboard/components/MainLayout/MainLayout.tsx +2 -6
  499. package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +1 -1
  500. package/src/features/keyboard/components/UnitsLayout/helpers.tsx +3 -0
  501. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +36 -22
  502. package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +11 -0
  503. package/src/features/keyboard/components/UnitsLayout/types.ts +7 -0
  504. package/src/features/keyboard/constants/constants.ts +1 -1
  505. package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +2 -0
  506. package/src/features/keyboard/constants/keyboardLayouts.ts +18 -1
  507. package/src/features/keyboard/helpers.ts +6 -0
  508. package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +15 -3
  509. package/src/features/keyboard/types/MathKeysGroups/units.tsx +3 -0
  510. package/src/features/openEnded/components/OpenEndedAttemptsLimit.tsx +26 -0
  511. package/src/features/openEnded/components/OpenEndedScoreLabel.tsx +81 -0
  512. package/src/features/openEnded/index.ts +4 -0
  513. package/src/features/openEnded/oe.helpers.ts +31 -0
  514. package/src/features/openEnded/oe.types.ts +6 -0
  515. package/src/index.ts +1 -0
  516. package/src/lib/components/ConditionalWrapper.tsx +15 -0
  517. package/src/lib/effector/createControllerEffect.ts +1 -1
  518. package/src/shared/common.constants.ts +3 -0
  519. package/src/shared/icons/TimeIcon.tsx +23 -0
  520. package/src/shared/icons/keyboard/CDotIcon/CDotIcon.tsx +2 -2
  521. package/src/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.tsx +18 -0
  522. package/src/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.tsx +18 -0
  523. package/src/shared/translation/localization/ca.json +4 -2
  524. package/src/shared/translation/localization/de.json +4 -2
  525. package/src/shared/translation/localization/en.json +4 -2
  526. package/src/shared/translation/localization/gb.json +4 -2
  527. package/src/shared/translation/localization/sct.json +4 -2
  528. package/src/shared/translation/localization/sw.json +4 -2
  529. package/src/types/common.types.ts +4 -0
  530. package/dist/commonjs/features/chatbot/model/t2s.js +0 -107
  531. package/dist/commonjs/features/chatbot/model/t2s.js.map +0 -1
  532. package/dist/module/features/chatbot/model/t2s.js +0 -102
  533. package/dist/module/features/chatbot/model/t2s.js.map +0 -1
  534. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +0 -34
  535. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +0 -1
  536. package/dist/typescript/module/features/chatbot/model/t2s.d.ts +0 -34
  537. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +0 -1
  538. package/src/features/chatbot/model/t2s.ts +0 -123
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  MATH_AREA_UNITS,
3
3
  MATH_LENGTH_UNITS,
4
+ MATH_TIME_UNITS,
4
5
  MATH_VOLUME_UNITS,
5
6
  MATH_WEIGHT_UNITS,
6
7
  } from '../../types/MathKeysGroups/units'
@@ -10,6 +11,7 @@ import { VolumeIcon } from '../../../../shared/icons/VolumeIcon'
10
11
  import { WeightIcon } from '../../../../shared/icons/WeightIcon'
11
12
  import { KeyboardUnitsGroupType, UnitKeyboardGroups } from './types'
12
13
  import { MathEntryKeyboardGroupId } from '../../types/keyboardGroupIds'
14
+ import { TimeIcon } from '../../../../shared/icons/TimeIcon'
13
15
 
14
16
  export const MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
15
17
  id: MathEntryKeyboardGroupId.LENGTH_UNITS_SW,
@@ -171,6 +173,11 @@ export const MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
171
173
  ],
172
174
  }
173
175
 
176
+ export const MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
177
+ id: MathEntryKeyboardGroupId.TIME_SW,
178
+ keys: [[MATH_TIME_UNITS.S, MATH_TIME_UNITS.M, MATH_TIME_UNITS.H]],
179
+ }
180
+
174
181
  export const MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS: UnitKeyboardGroups = {
175
182
  id: MathEntryKeyboardGroupId.WEIGHT_UNITS_US,
176
183
  keys: [
@@ -199,4 +206,8 @@ export const UNITS_KEYBOARD_GROUPS = new Map([
199
206
  KeyboardUnitsGroupType.WEIGHT,
200
207
  { keys: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS.keys, icon: WeightIcon },
201
208
  ],
209
+ [
210
+ KeyboardUnitsGroupType.TIME,
211
+ { keys: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS.keys, icon: TimeIcon },
212
+ ],
202
213
  ])
@@ -1,4 +1,5 @@
1
1
  import { KeyboardGroup, KeyboardKey } from '@magmamath/students-features'
2
+ import { TabOptionProps } from '@magmamath/react-native-ui'
2
3
 
3
4
  export enum SelectedLayout {
4
5
  ALGEBRA = 'algebra',
@@ -10,8 +11,14 @@ export enum KeyboardUnitsGroupType {
10
11
  AREA = 'area',
11
12
  VOLUME = 'volume',
12
13
  WEIGHT = 'weight',
14
+ TIME = 'time',
13
15
  }
14
16
 
15
17
  export type UnitKeyboardGroups = {
16
18
  keys: KeyboardKey[][]
17
19
  } & Omit<KeyboardGroup, 'keys'>
20
+
21
+ export type UnitTab = Omit<TabOptionProps, 'key'> & {
22
+ key: KeyboardUnitsGroupType
23
+ minBreakpoint?: number
24
+ }
@@ -5,4 +5,4 @@ export const DEFAULT_KEY_ICON_PROPS = {
5
5
  color: COLORS.NEUTRAL_9,
6
6
  } as const
7
7
 
8
- export const MOBILE_LAYOUT_WIDTH = 1280
8
+ export const MOBILE_LAYOUT_WIDTH = 1200
@@ -31,6 +31,7 @@ import {
31
31
  MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
32
32
  MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
33
33
  MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
34
+ MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
34
35
  MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
35
36
  MATH_ENTRY_VOLUME_UNITS_UK_KEYBOARD_GROUPS,
36
37
  MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
@@ -70,6 +71,7 @@ function createKeyboardUnitsLocale(
70
71
  [KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
71
72
  [KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
72
73
  [KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS,
74
+ [KeyboardUnitsGroupType.TIME]: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
73
75
  }
74
76
  return { ...base, ...overrides }
75
77
  }
@@ -7,6 +7,7 @@ import { CurrencyBasicLayout } from '../components/BasicLayout/CurrencyBasicLayo
7
7
  import { UnitsLayout } from '../components/UnitsLayout/UnitsLayout'
8
8
  import { BasicPlusPlusLayout } from '../components/BasicPlusPlusLayout/BasicPlusPlusLayout'
9
9
  import { MyScriptMathCharacterTypes } from '../../../types/characterTypes'
10
+ import { MOBILE_LAYOUT_WIDTH } from './constants'
10
11
 
11
12
  export const KEYBOARD_LAYOUTS = {
12
13
  [KeyboardType.AlgebraAdvanced]: {
@@ -18,10 +19,12 @@ export const KEYBOARD_LAYOUTS = {
18
19
  MyScriptMathCharacterTypes.ALGEBRA_GREEK,
19
20
  MyScriptMathCharacterTypes.GENERAL_MATH,
20
21
  ],
22
+ mobileBreakpoint: 1300,
21
23
  },
22
24
  [KeyboardType.Basic]: {
23
25
  Component: BasicLayout,
24
26
  characterTypes: [MyScriptMathCharacterTypes.NUMBERS_WHOLE],
27
+ mobileBreakpoint: 990,
25
28
  },
26
29
  [KeyboardType.BasicPlus]: {
27
30
  Component: BasicPlusLayout,
@@ -32,6 +35,7 @@ export const KEYBOARD_LAYOUTS = {
32
35
  MyScriptMathCharacterTypes.NUMBERS_AND_MULTIPLICATION,
33
36
  MyScriptMathCharacterTypes.OPERATORS,
34
37
  MyScriptMathCharacterTypes.PERCENT,
38
+ MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
35
39
  ],
36
40
  },
37
41
  [KeyboardType.BasicTime]: {
@@ -54,8 +58,8 @@ export const KEYBOARD_LAYOUTS = {
54
58
  characterTypes: [
55
59
  MyScriptMathCharacterTypes.GEOM_ANGLES,
56
60
  MyScriptMathCharacterTypes.GEOM_COORDINATE,
57
- MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
58
61
  ],
62
+ mobileBreakpoint: 1220,
59
63
  },
60
64
  }
61
65
 
@@ -72,6 +76,19 @@ export function getLayoutByCharType(charType?: number) {
72
76
  return AlgebraLayout
73
77
  }
74
78
 
79
+ export function getMobileBreakpointByCharType(charType?: number) {
80
+ if (!charType) {
81
+ return KEYBOARD_LAYOUTS[KeyboardType.AlgebraAdvanced].mobileBreakpoint
82
+ }
83
+
84
+ for (const layout of Object.values(KEYBOARD_LAYOUTS)) {
85
+ if (layout.characterTypes.includes(charType)) {
86
+ return 'mobileBreakpoint' in layout ? layout.mobileBreakpoint : MOBILE_LAYOUT_WIDTH
87
+ }
88
+ }
89
+ return KEYBOARD_LAYOUTS[KeyboardType.AlgebraAdvanced].mobileBreakpoint
90
+ }
91
+
75
92
  export function isBasicPlusPlusLayout(charType?: number) {
76
93
  if (!charType) {
77
94
  return true
@@ -3,6 +3,7 @@ import { KeyboardGroup, KeyboardType } from './types/types'
3
3
  import { Locale } from '../../shared/translation/types'
4
4
  import { MATH_ENTRY_ALGEBRA_KEYBOARD_GROUP } from './components/AlgebraLayout/keyboardGroups'
5
5
  import { IS_WEB } from '@magmamath/react-native-ui'
6
+ import { getMobileBreakpointByCharType } from './constants/keyboardLayouts'
6
7
 
7
8
  export function getKeyboardGroup(locale: Locale, type: KeyboardType): KeyboardGroup {
8
9
  return KEYBOARD_GROUPS_BY_LOCALE[locale]?.[type] ?? MATH_ENTRY_ALGEBRA_KEYBOARD_GROUP
@@ -16,3 +17,8 @@ export const getIsIpadOrIphoneDevice = () => {
16
17
  const isIpadOS = navigator?.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform)
17
18
  return isIOS || isIpadOS
18
19
  }
20
+
21
+ export const isMobileWidth = (width: number, characterType?: number) => {
22
+ const layoutWidth = getMobileBreakpointByCharType(characterType)
23
+ return width <= layoutWidth
24
+ }
@@ -42,6 +42,8 @@ import { EqualsIcon } from '../../../../shared/icons/keyboard/EqualsIcon/EqualsI
42
42
  import { AbsoluteValueIcon } from '../../../../shared/icons/keyboard/AbsoluteValueIcon/AbsoluteValueIcon'
43
43
  import { IntervalIcon } from '../../../../shared/icons/keyboard/IntervalIcon/IntervalIcon'
44
44
  import { createMathKeysGroup } from './helpers'
45
+ import { RoundBracketLeftIcon } from '../../../../shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon'
46
+ import { RoundBracketRightIcon } from '../../../../shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon'
45
47
 
46
48
  export const MATH_BASIC_OPERATORS = createMathKeysGroup({
47
49
  ADDITION: {
@@ -110,7 +112,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
110
112
  },
111
113
  COMMA: {
112
114
  icon: <CommaIcon {...DEFAULT_KEY_ICON_PROPS} size={22} />,
113
- mathliveValue: ',',
115
+ mathliveValue: '{,}',
114
116
  katexValue: ',',
115
117
  },
116
118
  COLON: {
@@ -119,7 +121,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
119
121
  katexValue: ':',
120
122
  },
121
123
  C_DOT: {
122
- icon: <CDotIcon {...DEFAULT_KEY_ICON_PROPS} />,
124
+ icon: <CDotIcon {...DEFAULT_KEY_ICON_PROPS} size={6} />,
123
125
  mathliveValue: '\\cdot',
124
126
  katexValue: '⋅',
125
127
  },
@@ -251,6 +253,16 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
251
253
  mathliveValue: '$\\left(#@\\right)$',
252
254
  katexValue: '( )',
253
255
  },
256
+ ROUND_BRACKET_RIGHT: {
257
+ icon: <RoundBracketRightIcon {...DEFAULT_KEY_ICON_PROPS} />,
258
+ mathliveValue: ')',
259
+ katexValue: ')',
260
+ },
261
+ ROUND_BRACKET_LEFT: {
262
+ icon: <RoundBracketLeftIcon {...DEFAULT_KEY_ICON_PROPS} />,
263
+ mathliveValue: '(',
264
+ katexValue: '(',
265
+ },
254
266
  ORDERED_PAIR: {
255
267
  icon: <OrderedPairIcon {...DEFAULT_KEY_ICON_PROPS} size={20} extraColor={COLORS.NEUTRAL_6} />,
256
268
  mathliveValue: '$\\left(\\placeholder{},\\placeholder{}\\right)$',
@@ -263,7 +275,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
263
275
  },
264
276
  INTERVAL: {
265
277
  icon: <IntervalIcon {...DEFAULT_KEY_ICON_PROPS} />,
266
- mathliveValue: '$\\left[, \\right]$',
278
+ mathliveValue: '$\\left[\\placeholder{},\\placeholder{}\\right]$',
267
279
  katexValue: '[ , ]',
268
280
  },
269
281
  })
@@ -427,16 +427,19 @@ export const MATH_TIME_UNITS = createMathKeysGroup({
427
427
  label: 's',
428
428
  mathliveValue: '\\mathrm{s}',
429
429
  katexValue: 's',
430
+ style: STYLE_PRESETS.LARGE,
430
431
  },
431
432
  M: {
432
433
  label: 'min',
433
434
  mathliveValue: '$\\mathrm{min}',
434
435
  katexValue: 'min',
436
+ style: STYLE_PRESETS.LARGE,
435
437
  },
436
438
  H: {
437
439
  label: 'h',
438
440
  mathliveValue: '\\mathrm{h}',
439
441
  katexValue: 'h',
442
+ style: STYLE_PRESETS.LARGE,
440
443
  },
441
444
  DAY: {
442
445
  label: 'day',
@@ -0,0 +1,26 @@
1
+ import React from 'react'
2
+ import { View, StyleSheet, Text } from 'react-native'
3
+ import { SPACING, BORDER_RADIUS, COLORS } from '@magmamath/react-native-ui'
4
+
5
+ type OEAttemptsLimitProps = {
6
+ text: string
7
+ }
8
+
9
+ export const OpenEndedAttemptsLimit = ({ text }: OEAttemptsLimitProps) => (
10
+ <View style={styles.container}>
11
+ <Text style={styles.text}>{text}</Text>
12
+ </View>
13
+ )
14
+
15
+ const styles = StyleSheet.create({
16
+ container: {
17
+ paddingVertical: SPACING[50],
18
+ paddingHorizontal: SPACING[200],
19
+ borderRadius: BORDER_RADIUS[300],
20
+ backgroundColor: COLORS.PRIMARY_RED,
21
+ },
22
+ text: {
23
+ fontSize: 14,
24
+ color: COLORS.NEUTRAL_1,
25
+ },
26
+ })
@@ -0,0 +1,81 @@
1
+ import React from 'react'
2
+ import { View, StyleSheet } from 'react-native'
3
+ import {
4
+ Typography,
5
+ HeadingVariants,
6
+ SPACING,
7
+ BORDER_RADIUS,
8
+ COLORS,
9
+ } from '@magmamath/react-native-ui'
10
+ import { getScoreLabelColor } from '../oe.helpers'
11
+ import { OpenEndedScoreLabelVariant } from '../oe.types'
12
+ import { isWeb } from '../../../shared/common.constants'
13
+
14
+ type OpenEndedScoreLabelProps = {
15
+ label: string
16
+ score: number | null
17
+ maxScore: number
18
+ disabled: boolean
19
+ variant: OpenEndedScoreLabelVariant
20
+ }
21
+
22
+ const SCORE_WIDTH = {
23
+ DEFAULT: isWeb ? 20 : 26,
24
+ LARGE: isWeb ? 26 : 30,
25
+ } as const
26
+
27
+ export const OpenEndedScoreLabel = ({
28
+ label,
29
+ score,
30
+ maxScore,
31
+ disabled,
32
+ variant,
33
+ }: OpenEndedScoreLabelProps) => {
34
+ const colors = getScoreLabelColor({ variant, disabled })
35
+ const scoreContainerWidth =
36
+ score !== null && score >= 10 ? SCORE_WIDTH.LARGE : SCORE_WIDTH.DEFAULT
37
+
38
+ return (
39
+ <View style={styles.container}>
40
+ <View style={[styles.score, { width: scoreContainerWidth }]}>
41
+ <Typography
42
+ variant={HeadingVariants.H3}
43
+ style={[styles.scoreText, { color: colors.score }]}
44
+ >
45
+ {score}
46
+ </Typography>
47
+ </View>
48
+ <Typography
49
+ variant={HeadingVariants.H3}
50
+ style={[styles.maxScoreText, { color: colors.maxScore }]}
51
+ >
52
+ / {maxScore} {label}
53
+ </Typography>
54
+ </View>
55
+ )
56
+ }
57
+
58
+ const styles = StyleSheet.create({
59
+ container: {
60
+ alignItems: 'center',
61
+ flexDirection: 'row',
62
+ },
63
+ score: {
64
+ flexDirection: 'row',
65
+ alignItems: 'center',
66
+ justifyContent: 'center',
67
+ height: 32,
68
+ borderWidth: 1,
69
+ borderRadius: BORDER_RADIUS[200],
70
+ borderColor: COLORS.NEUTRAL_5,
71
+ paddingVertical: isWeb ? SPACING[50] : 0,
72
+ paddingHorizontal: SPACING[100],
73
+ backgroundColor: COLORS.NEUTRAL_1,
74
+ },
75
+ scoreText: {
76
+ textAlign: 'center',
77
+ },
78
+ maxScoreText: {
79
+ marginLeft: SPACING[200],
80
+ },
81
+ })
@@ -0,0 +1,4 @@
1
+ export * from './oe.helpers'
2
+ export * from './oe.types'
3
+ export { OpenEndedScoreLabel } from './components/OpenEndedScoreLabel'
4
+ export { OpenEndedAttemptsLimit } from './components/OpenEndedAttemptsLimit'
@@ -0,0 +1,31 @@
1
+ import { COLORS } from '@magmamath/react-native-ui'
2
+ import { ColorValue } from '../../types/common.types'
3
+ import { OpenEndedScoreLabelVariant } from './oe.types'
4
+
5
+ type GetScoreLabelColorProps = {
6
+ variant: OpenEndedScoreLabelVariant
7
+ disabled: boolean
8
+ }
9
+
10
+ type ScoreLabelColors = {
11
+ score: ColorValue
12
+ maxScore: ColorValue
13
+ }
14
+
15
+ const scoreVariantToColor = (variant: OpenEndedScoreLabelVariant): ColorValue => {
16
+ const colors: Record<OpenEndedScoreLabelVariant, ColorValue> = {
17
+ [OpenEndedScoreLabelVariant.CORRECT]: COLORS.PRIMARY_YELLOW,
18
+ [OpenEndedScoreLabelVariant.FIRST_ATTEMPT]: COLORS.PRIMARY_GREEN,
19
+ [OpenEndedScoreLabelVariant.WRONG]: COLORS.PRIMARY_RED,
20
+ [OpenEndedScoreLabelVariant.DEFAULT]: COLORS.PRIMARY_BLUE,
21
+ }
22
+ return colors[variant] ?? COLORS.PRIMARY_BLUE
23
+ }
24
+
25
+ export const getScoreLabelColor = ({
26
+ variant,
27
+ disabled,
28
+ }: GetScoreLabelColorProps): ScoreLabelColors => ({
29
+ score: disabled ? COLORS.NEUTRAL_6 : COLORS.NEUTRAL_9,
30
+ maxScore: disabled ? COLORS.NEUTRAL_6 : scoreVariantToColor(variant),
31
+ })
@@ -0,0 +1,6 @@
1
+ export enum OpenEndedScoreLabelVariant {
2
+ CORRECT = 'CORRECT',
3
+ FIRST_ATTEMPT = 'FIRST_ATTEMPT',
4
+ WRONG = 'WRONG',
5
+ DEFAULT = 'DEFAULT',
6
+ }
package/src/index.ts CHANGED
@@ -9,4 +9,5 @@ export * from './features/problemSelector'
9
9
  export * from './features/gifCelebrations'
10
10
  export * from './features/exampleSolution'
11
11
  export * from './features/keyboard'
12
+ export * from './features/openEnded'
12
13
  export * from './shared/icons'
@@ -0,0 +1,15 @@
1
+ import React, { ComponentType, PropsWithChildren, ReactNode } from 'react'
2
+
3
+ type ConditionalWrapperProps = {
4
+ children: ReactNode
5
+ withWrapper?: boolean
6
+ Wrapper?: ComponentType<PropsWithChildren>
7
+ }
8
+
9
+ export const ConditionalWrapper = ({ withWrapper, Wrapper, children }: ConditionalWrapperProps) => {
10
+ if (withWrapper && Wrapper) {
11
+ return <Wrapper>{children}</Wrapper>
12
+ }
13
+
14
+ return children
15
+ }
@@ -14,7 +14,7 @@ type ControlledRequestProps<P> = {
14
14
  abortAfter?: number
15
15
  }
16
16
 
17
- type RequestOptionalConfig = { signal?: AbortSignal }
17
+ export type RequestOptionalConfig = { signal?: AbortSignal }
18
18
 
19
19
  export function controlledRequest<R = void, P = void>(
20
20
  request: (props: P, config?: RequestOptionalConfig) => Promise<R>,
@@ -0,0 +1,3 @@
1
+ import { Platform } from 'react-native'
2
+
3
+ export const isWeb = Platform.OS === 'web'
@@ -0,0 +1,23 @@
1
+ import { COLORS } from '@magmamath/react-native-ui'
2
+ import { IconProps } from './icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+ import React from 'react'
5
+
6
+ export const TimeIcon = ({ size = 20, color = COLORS.NEUTRAL_9 }: IconProps) => {
7
+ return (
8
+ <Svg width={size} height={size} viewBox="0 0 17 17" fill="none">
9
+ <Path
10
+ fillRule="evenodd"
11
+ clipRule="evenodd"
12
+ d="M7.84 1.5C4.33851 1.5 1.5 4.33851 1.5 7.84C1.5 11.3415 4.33851 14.18 7.84 14.18C11.3415 14.18 14.18 11.3415 14.18 7.84C14.18 4.33851 11.3415 1.5 7.84 1.5ZM0 7.84C0 3.51009 3.51009 0 7.84 0C12.1699 0 15.68 3.51009 15.68 7.84C15.68 12.1699 12.1699 15.68 7.84 15.68C3.51009 15.68 0 12.1699 0 7.84Z"
13
+ fill={color}
14
+ />
15
+ <Path
16
+ fillRule="evenodd"
17
+ clipRule="evenodd"
18
+ d="M7.83999 3.0826C8.2542 3.0826 8.58999 3.41839 8.58999 3.8326V7.8033L10.4859 9.42838C10.8004 9.69794 10.8368 10.1714 10.5673 10.4859C10.2977 10.8004 9.82421 10.8368 9.50972 10.5673L7.57539 8.90926C7.2673 8.64519 7.08999 8.25967 7.08999 7.85389V3.8326C7.08999 3.41839 7.42578 3.0826 7.83999 3.0826Z"
19
+ fill={color}
20
+ />
21
+ </Svg>
22
+ )
23
+ }
@@ -4,8 +4,8 @@ import Svg, { Circle } from 'react-native-svg'
4
4
 
5
5
  export const CDotIcon = ({ size = 20, color }: IconProps) => {
6
6
  return (
7
- <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
8
- <Circle cx="8.00001" cy="8.00001" r="2.00001" fill={color} />
7
+ <Svg width={size} height={size} viewBox="0 0 6 6" fill="none">
8
+ <Circle cx="3.00001" cy="3.00001" r="3.00001" fill={color} />
9
9
  </Svg>
10
10
  )
11
11
  }
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+ import { IconProps } from '../../icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ const ASPECT_RATIO = 5 / 14
6
+
7
+ export const RoundBracketLeftIcon = ({ size = 20, color }: IconProps) => {
8
+ return (
9
+ <Svg width={size * ASPECT_RATIO} height={size} viewBox="0 0 5 14" fill="none">
10
+ <Path
11
+ fillRule="evenodd"
12
+ clipRule="evenodd"
13
+ d="M3.90533 0.21967C4.19823 0.512563 4.19823 0.987437 3.90533 1.28033C0.67361 4.51206 0.736927 10.001 3.8631 12.6806C4.17759 12.9501 4.21401 13.4236 3.94445 13.7381C3.67488 14.0526 3.20141 14.089 2.88691 13.8194C-0.986916 10.499 -0.923598 3.98794 2.84467 0.21967C3.13757 -0.0732233 3.61244 -0.0732233 3.90533 0.21967Z"
14
+ fill={color}
15
+ />
16
+ </Svg>
17
+ )
18
+ }
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+ import { IconProps } from '../../icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ const ASPECT_RATIO = 5 / 14
6
+
7
+ export const RoundBracketRightIcon = ({ size = 20, color }: IconProps) => {
8
+ return (
9
+ <Svg width={size * ASPECT_RATIO} height={size} viewBox="0 0 5 14" fill="none">
10
+ <Path
11
+ fillRule="evenodd"
12
+ clipRule="evenodd"
13
+ d="M0.219696 0.21967C-0.0731974 0.512563 -0.0731974 0.987437 0.219696 1.28033C3.45142 4.51206 3.3881 10.001 0.261932 12.6806C-0.0525622 12.9501 -0.0889835 13.4236 0.180583 13.7381C0.45015 14.0526 0.923625 14.089 1.23812 13.8194C5.11195 10.499 5.04863 3.98794 1.28036 0.21967C0.987463 -0.0732233 0.512589 -0.0732233 0.219696 0.21967Z"
14
+ fill={color}
15
+ />
16
+ </Svg>
17
+ )
18
+ }
@@ -20,7 +20,8 @@
20
20
  "errorMessage": "Something went wrong! Try again",
21
21
  "howCanIHelp": "Hi! Do you want help?",
22
22
  "showError": "Show error",
23
- "inputPlaceholder": "Type..."
23
+ "inputPlaceholder": "Type...",
24
+ "wantHelp": "Want some help?"
24
25
  },
25
26
  "gifCelebrations": {
26
27
  "greatStart": "Great start!",
@@ -37,6 +38,7 @@
37
38
  "length": "Length",
38
39
  "area": "Area",
39
40
  "volume": "Volume",
40
- "weight": "Weight"
41
+ "weight": "Weight",
42
+ "time": "Time"
41
43
  }
42
44
  }
@@ -20,7 +20,8 @@
20
20
  "errorMessage": "Etwas ist schiefgelaufen! Versuch es erneut",
21
21
  "howCanIHelp": "Hi! Möchtest du Hilfe?",
22
22
  "showError": "Fehler anzeigen",
23
- "inputPlaceholder": "Tippe..."
23
+ "inputPlaceholder": "Tippe...",
24
+ "wantHelp": "Brauchst du Hilfe?"
24
25
  },
25
26
  "gifCelebrations": {
26
27
  "greatStart": "Toller Start!",
@@ -37,6 +38,7 @@
37
38
  "length": "Länge",
38
39
  "area": "Fläche",
39
40
  "volume": "Volumen",
40
- "weight": "Gewicht"
41
+ "weight": "Gewicht",
42
+ "time": "Zeit"
41
43
  }
42
44
  }
@@ -20,7 +20,8 @@
20
20
  "errorMessage": "Something went wrong! Try again",
21
21
  "howCanIHelp": "Hi! Do you want help?",
22
22
  "showError": "Show error",
23
- "inputPlaceholder": "Type..."
23
+ "inputPlaceholder": "Type...",
24
+ "wantHelp": "Want some help?"
24
25
  },
25
26
  "gifCelebrations": {
26
27
  "greatStart": "Great start!",
@@ -37,6 +38,7 @@
37
38
  "length": "Length",
38
39
  "area": "Area",
39
40
  "volume": "Volume",
40
- "weight": "Weight"
41
+ "weight": "Weight",
42
+ "time": "Time"
41
43
  }
42
44
  }
@@ -20,7 +20,8 @@
20
20
  "errorMessage": "Something went wrong! Try again",
21
21
  "howCanIHelp": "Hi! Do you want help?",
22
22
  "showError": "Show error",
23
- "inputPlaceholder": "Type..."
23
+ "inputPlaceholder": "Type...",
24
+ "wantHelp": "Want some help?"
24
25
  },
25
26
  "gifCelebrations": {
26
27
  "greatStart": "Great start!",
@@ -37,6 +38,7 @@
37
38
  "length": "Length",
38
39
  "area": "Area",
39
40
  "volume": "Volume",
40
- "weight": "Weight"
41
+ "weight": "Weight",
42
+ "time": "Time"
41
43
  }
42
44
  }
@@ -20,7 +20,8 @@
20
20
  "errorMessage": "Something went wrong! Try again",
21
21
  "howCanIHelp": "Hi! Do you want help?",
22
22
  "showError": "Show error",
23
- "inputPlaceholder": "Type..."
23
+ "inputPlaceholder": "Type...",
24
+ "wantHelp": "Want some help?"
24
25
  },
25
26
  "gifCelebrations": {
26
27
  "greatStart": "Great start!",
@@ -37,6 +38,7 @@
37
38
  "length": "Length",
38
39
  "area": "Area",
39
40
  "volume": "Volume",
40
- "weight": "Weight"
41
+ "weight": "Weight",
42
+ "time": "Time"
41
43
  }
42
44
  }
@@ -20,7 +20,8 @@
20
20
  "errorMessage": "Något gick snett! Försök igen",
21
21
  "howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
22
22
  "showError": "Visa fel",
23
- "inputPlaceholder": "Skriv..."
23
+ "inputPlaceholder": "Skriv...",
24
+ "wantHelp": "Vill du ha hjälp?"
24
25
  },
25
26
  "gifCelebrations": {
26
27
  "greatStart": "Bra start!",
@@ -37,6 +38,7 @@
37
38
  "length": "Längd",
38
39
  "area": "Area",
39
40
  "volume": "Volym",
40
- "weight": "Vikt"
41
+ "weight": "Vikt",
42
+ "time": "Tid"
41
43
  }
42
44
  }
@@ -1,4 +1,8 @@
1
+ import { COLORS } from '@magmamath/react-native-ui'
2
+
1
3
  export type Size = {
2
4
  width: number
3
5
  height: number
4
6
  }
7
+
8
+ export type ColorValue = (typeof COLORS)[keyof typeof COLORS]