@magmamath/students-features 1.3.2-rc.5 → 1.3.3-rc.1

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 (313) hide show
  1. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +1 -2
  2. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +4 -2
  4. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  5. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -3
  6. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  7. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +4 -8
  8. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  9. package/dist/commonjs/features/keyboard/constants/groups/index.js +0 -11
  10. package/dist/commonjs/features/keyboard/constants/groups/index.js.map +1 -1
  11. package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js +0 -2
  12. package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js.map +1 -1
  13. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +2 -8
  14. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  15. package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js +1 -86
  16. package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
  17. package/dist/commonjs/features/keyboard/constants/keys/text.constants.js +9 -9
  18. package/dist/commonjs/features/keyboard/constants/keys/units.constants.js +1 -2
  19. package/dist/commonjs/features/keyboard/constants/keys/units.constants.js.map +1 -1
  20. package/dist/commonjs/features/keyboard/types/types.js +0 -1
  21. package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
  22. package/dist/commonjs/index.js +23 -38
  23. package/dist/commonjs/index.js.map +1 -1
  24. package/dist/commonjs/locales/schema.json +1 -0
  25. package/dist/commonjs/shared/icons/keyboard/AngleIcon.js +3 -4
  26. package/dist/commonjs/shared/icons/keyboard/AngleIcon.js.map +1 -1
  27. package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js +8 -12
  28. package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
  29. package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js +6 -11
  30. package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
  31. package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js +8 -12
  32. package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
  33. package/dist/commonjs/shared/translation/constants.js +2 -17
  34. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  35. package/dist/commonjs/shared/translation/helpers.js +8 -38
  36. package/dist/commonjs/shared/translation/helpers.js.map +1 -1
  37. package/dist/commonjs/shared/translation/hooks.js +7 -15
  38. package/dist/commonjs/shared/translation/hooks.js.map +1 -1
  39. package/dist/commonjs/shared/translation/index.js +0 -25
  40. package/dist/commonjs/shared/translation/index.js.map +1 -1
  41. package/dist/commonjs/shared/translation/types.js +0 -4
  42. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -2
  43. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  44. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +3 -2
  45. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  46. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +3 -4
  47. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  48. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +5 -9
  49. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  50. package/dist/module/features/keyboard/constants/groups/index.js +0 -1
  51. package/dist/module/features/keyboard/constants/groups/index.js.map +1 -1
  52. package/dist/module/features/keyboard/constants/keyboard.helpers.js +1 -3
  53. package/dist/module/features/keyboard/constants/keyboard.helpers.js.map +1 -1
  54. package/dist/module/features/keyboard/constants/keyboardLayouts.js +2 -8
  55. package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  56. package/dist/module/features/keyboard/constants/keys/geometry.constants.js +1 -86
  57. package/dist/module/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
  58. package/dist/module/features/keyboard/constants/keys/text.constants.js +9 -9
  59. package/dist/module/features/keyboard/constants/keys/units.constants.js +1 -2
  60. package/dist/module/features/keyboard/constants/keys/units.constants.js.map +1 -1
  61. package/dist/module/features/keyboard/types/types.js +0 -1
  62. package/dist/module/features/keyboard/types/types.js.map +1 -1
  63. package/dist/module/index.js +0 -1
  64. package/dist/module/index.js.map +1 -1
  65. package/dist/module/locales/schema.json +1 -0
  66. package/dist/module/shared/icons/keyboard/AngleIcon.js +3 -4
  67. package/dist/module/shared/icons/keyboard/AngleIcon.js.map +1 -1
  68. package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js +9 -13
  69. package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
  70. package/dist/module/shared/icons/keyboard/LineSegmentIcon.js +7 -12
  71. package/dist/module/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
  72. package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js +9 -13
  73. package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
  74. package/dist/module/shared/translation/constants.js +1 -15
  75. package/dist/module/shared/translation/constants.js.map +1 -1
  76. package/dist/module/shared/translation/helpers.js +6 -33
  77. package/dist/module/shared/translation/helpers.js.map +1 -1
  78. package/dist/module/shared/translation/hooks.js +7 -14
  79. package/dist/module/shared/translation/hooks.js.map +1 -1
  80. package/dist/module/shared/translation/index.js +2 -3
  81. package/dist/module/shared/translation/index.js.map +1 -1
  82. package/dist/module/shared/translation/types.js +0 -2
  83. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -2
  84. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  85. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  86. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  87. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  88. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  89. package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts +0 -1
  90. package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts.map +1 -1
  91. package/dist/typescript/commonjs/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
  92. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +0 -5
  93. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  94. package/dist/typescript/commonjs/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
  95. package/dist/typescript/commonjs/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +0 -1
  97. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/index.d.ts +0 -1
  99. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +1 -1
  101. package/dist/typescript/commonjs/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
  102. package/dist/typescript/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
  103. package/dist/typescript/commonjs/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
  104. package/dist/typescript/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
  105. package/dist/typescript/commonjs/shared/translation/constants.d.ts +1 -368
  106. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  107. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +1 -5
  108. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
  109. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +1 -3
  110. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
  111. package/dist/typescript/commonjs/shared/translation/index.d.ts +3 -3
  112. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
  113. package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -4
  114. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  115. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -2
  116. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  117. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  118. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  119. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  120. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  121. package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts +0 -1
  122. package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts.map +1 -1
  123. package/dist/typescript/module/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
  124. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +0 -5
  125. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  126. package/dist/typescript/module/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
  127. package/dist/typescript/module/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
  128. package/dist/typescript/module/features/keyboard/types/types.d.ts +0 -1
  129. package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
  130. package/dist/typescript/module/index.d.ts +0 -1
  131. package/dist/typescript/module/index.d.ts.map +1 -1
  132. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +1 -1
  133. package/dist/typescript/module/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
  134. package/dist/typescript/module/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
  135. package/dist/typescript/module/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
  136. package/dist/typescript/module/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
  137. package/dist/typescript/module/shared/translation/constants.d.ts +1 -368
  138. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  139. package/dist/typescript/module/shared/translation/helpers.d.ts +1 -5
  140. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
  141. package/dist/typescript/module/shared/translation/hooks.d.ts +1 -3
  142. package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
  143. package/dist/typescript/module/shared/translation/index.d.ts +3 -3
  144. package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
  145. package/dist/typescript/module/shared/translation/types.d.ts +1 -4
  146. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  147. package/package.json +18 -13
  148. package/src/features/chatbot/model/ChatBoxTextManager.ts +3 -5
  149. package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
  150. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +3 -4
  151. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +5 -9
  152. package/src/features/keyboard/constants/groups/index.ts +0 -1
  153. package/src/features/keyboard/constants/keyboard.helpers.ts +0 -3
  154. package/src/features/keyboard/constants/keyboardLayouts.ts +2 -8
  155. package/src/features/keyboard/constants/keys/geometry.constants.tsx +1 -61
  156. package/src/features/keyboard/constants/keys/text.constants.tsx +9 -9
  157. package/src/features/keyboard/constants/keys/units.constants.tsx +0 -1
  158. package/src/features/keyboard/types/types.ts +0 -1
  159. package/src/index.ts +0 -1
  160. package/src/locales/schema.json +1 -0
  161. package/src/shared/icons/keyboard/AngleIcon.tsx +2 -4
  162. package/src/shared/icons/keyboard/BidirectionalSegmentIcon.tsx +8 -5
  163. package/src/shared/icons/keyboard/LineSegmentIcon.tsx +7 -6
  164. package/src/shared/icons/keyboard/RightDirectedSegmentIcon.tsx +8 -5
  165. package/src/shared/translation/constants.ts +1 -16
  166. package/src/shared/translation/helpers.ts +5 -45
  167. package/src/shared/translation/hooks.ts +6 -22
  168. package/src/shared/translation/index.ts +3 -3
  169. package/src/shared/translation/types.ts +1 -20
  170. package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js +0 -85
  171. package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +0 -1
  172. package/dist/commonjs/features/keyboard/components/GeometryLayout/helpers.js +0 -41
  173. package/dist/commonjs/features/keyboard/components/GeometryLayout/helpers.js.map +0 -1
  174. package/dist/commonjs/features/keyboard/components/GeometryLayout/types.js +0 -12
  175. package/dist/commonjs/features/keyboard/components/GeometryLayout/types.js.map +0 -1
  176. package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js +0 -11
  177. package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js.map +0 -1
  178. package/dist/commonjs/lib/types/keys.js +0 -2
  179. package/dist/commonjs/lib/types/keys.js.map +0 -1
  180. package/dist/commonjs/shared/icons/GeometryIcon.js +0 -32
  181. package/dist/commonjs/shared/icons/GeometryIcon.js.map +0 -1
  182. package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js +0 -30
  183. package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js.map +0 -1
  184. package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js +0 -29
  185. package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js.map +0 -1
  186. package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js +0 -29
  187. package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js.map +0 -1
  188. package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js +0 -29
  189. package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js.map +0 -1
  190. package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js +0 -42
  191. package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js.map +0 -1
  192. package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js +0 -32
  193. package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js.map +0 -1
  194. package/dist/commonjs/shared/translation/localization/ca.json +0 -61
  195. package/dist/commonjs/shared/translation/localization/de.json +0 -61
  196. package/dist/commonjs/shared/translation/localization/en.json +0 -61
  197. package/dist/commonjs/shared/translation/localization/gb.json +0 -61
  198. package/dist/commonjs/shared/translation/localization/sct.json +0 -61
  199. package/dist/commonjs/shared/translation/localization/sw.json +0 -61
  200. package/dist/commonjs/shared/translation/model.js +0 -15
  201. package/dist/commonjs/shared/translation/model.js.map +0 -1
  202. package/dist/commonjs/shared/translation/validation.types.js +0 -6
  203. package/dist/commonjs/shared/translation/validation.types.js.map +0 -1
  204. package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js +0 -78
  205. package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +0 -1
  206. package/dist/module/features/keyboard/components/GeometryLayout/helpers.js +0 -36
  207. package/dist/module/features/keyboard/components/GeometryLayout/helpers.js.map +0 -1
  208. package/dist/module/features/keyboard/components/GeometryLayout/types.js +0 -8
  209. package/dist/module/features/keyboard/components/GeometryLayout/types.js.map +0 -1
  210. package/dist/module/features/keyboard/constants/groups/geometry.constants.js +0 -7
  211. package/dist/module/features/keyboard/constants/groups/geometry.constants.js.map +0 -1
  212. package/dist/module/lib/types/keys.js +0 -2
  213. package/dist/module/lib/types/keys.js.map +0 -1
  214. package/dist/module/shared/icons/GeometryIcon.js +0 -24
  215. package/dist/module/shared/icons/GeometryIcon.js.map +0 -1
  216. package/dist/module/shared/icons/keyboard/ImpliesIcon.js +0 -22
  217. package/dist/module/shared/icons/keyboard/ImpliesIcon.js.map +0 -1
  218. package/dist/module/shared/icons/keyboard/LetterAIcon.js +0 -21
  219. package/dist/module/shared/icons/keyboard/LetterAIcon.js.map +0 -1
  220. package/dist/module/shared/icons/keyboard/LetterBIcon.js +0 -21
  221. package/dist/module/shared/icons/keyboard/LetterBIcon.js.map +0 -1
  222. package/dist/module/shared/icons/keyboard/LetterCIcon.js +0 -21
  223. package/dist/module/shared/icons/keyboard/LetterCIcon.js.map +0 -1
  224. package/dist/module/shared/icons/keyboard/ThereforeIcon.js +0 -34
  225. package/dist/module/shared/icons/keyboard/ThereforeIcon.js.map +0 -1
  226. package/dist/module/shared/icons/keyboard/TriangleIcon.js +0 -24
  227. package/dist/module/shared/icons/keyboard/TriangleIcon.js.map +0 -1
  228. package/dist/module/shared/translation/localization/ca.json +0 -61
  229. package/dist/module/shared/translation/localization/de.json +0 -61
  230. package/dist/module/shared/translation/localization/en.json +0 -61
  231. package/dist/module/shared/translation/localization/gb.json +0 -61
  232. package/dist/module/shared/translation/localization/sct.json +0 -61
  233. package/dist/module/shared/translation/localization/sw.json +0 -61
  234. package/dist/module/shared/translation/model.js +0 -11
  235. package/dist/module/shared/translation/model.js.map +0 -1
  236. package/dist/module/shared/translation/validation.types.js +0 -4
  237. package/dist/module/shared/translation/validation.types.js.map +0 -1
  238. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +0 -4
  239. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +0 -1
  240. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/helpers.d.ts +0 -14
  241. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/helpers.d.ts.map +0 -1
  242. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/types.d.ts +0 -5
  243. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/types.d.ts.map +0 -1
  244. package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts +0 -3
  245. package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts.map +0 -1
  246. package/dist/typescript/commonjs/lib/types/keys.d.ts +0 -8
  247. package/dist/typescript/commonjs/lib/types/keys.d.ts.map +0 -1
  248. package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts +0 -4
  249. package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts.map +0 -1
  250. package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts +0 -4
  251. package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts.map +0 -1
  252. package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts +0 -4
  253. package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts.map +0 -1
  254. package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts +0 -4
  255. package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts.map +0 -1
  256. package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts +0 -4
  257. package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts.map +0 -1
  258. package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts +0 -4
  259. package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts.map +0 -1
  260. package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts +0 -4
  261. package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts.map +0 -1
  262. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -125
  263. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +0 -1
  264. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +0 -21
  265. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +0 -1
  266. package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +0 -4
  267. package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +0 -1
  268. package/dist/typescript/module/features/keyboard/components/GeometryLayout/helpers.d.ts +0 -14
  269. package/dist/typescript/module/features/keyboard/components/GeometryLayout/helpers.d.ts.map +0 -1
  270. package/dist/typescript/module/features/keyboard/components/GeometryLayout/types.d.ts +0 -5
  271. package/dist/typescript/module/features/keyboard/components/GeometryLayout/types.d.ts.map +0 -1
  272. package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts +0 -3
  273. package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts.map +0 -1
  274. package/dist/typescript/module/lib/types/keys.d.ts +0 -8
  275. package/dist/typescript/module/lib/types/keys.d.ts.map +0 -1
  276. package/dist/typescript/module/shared/icons/GeometryIcon.d.ts +0 -4
  277. package/dist/typescript/module/shared/icons/GeometryIcon.d.ts.map +0 -1
  278. package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts +0 -4
  279. package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts.map +0 -1
  280. package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts +0 -4
  281. package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts.map +0 -1
  282. package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts +0 -4
  283. package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts.map +0 -1
  284. package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts +0 -4
  285. package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts.map +0 -1
  286. package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts +0 -4
  287. package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts.map +0 -1
  288. package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts +0 -4
  289. package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts.map +0 -1
  290. package/dist/typescript/module/shared/translation/model.d.ts +0 -125
  291. package/dist/typescript/module/shared/translation/model.d.ts.map +0 -1
  292. package/dist/typescript/module/shared/translation/validation.types.d.ts +0 -21
  293. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +0 -1
  294. package/src/features/keyboard/components/GeometryLayout/GeometryLayout.tsx +0 -82
  295. package/src/features/keyboard/components/GeometryLayout/helpers.tsx +0 -46
  296. package/src/features/keyboard/components/GeometryLayout/types.ts +0 -4
  297. package/src/features/keyboard/constants/groups/geometry.constants.ts +0 -25
  298. package/src/lib/types/keys.ts +0 -18
  299. package/src/shared/icons/GeometryIcon.tsx +0 -18
  300. package/src/shared/icons/keyboard/ImpliesIcon.tsx +0 -16
  301. package/src/shared/icons/keyboard/LetterAIcon.tsx +0 -14
  302. package/src/shared/icons/keyboard/LetterBIcon.tsx +0 -14
  303. package/src/shared/icons/keyboard/LetterCIcon.tsx +0 -14
  304. package/src/shared/icons/keyboard/ThereforeIcon.tsx +0 -15
  305. package/src/shared/icons/keyboard/TriangleIcon.tsx +0 -18
  306. package/src/shared/translation/localization/ca.json +0 -61
  307. package/src/shared/translation/localization/de.json +0 -61
  308. package/src/shared/translation/localization/en.json +0 -61
  309. package/src/shared/translation/localization/gb.json +0 -61
  310. package/src/shared/translation/localization/sct.json +0 -61
  311. package/src/shared/translation/localization/sw.json +0 -61
  312. package/src/shared/translation/model.ts +0 -16
  313. package/src/shared/translation/validation.types.ts +0 -34
@@ -1,369 +1,2 @@
1
- export declare const LOCALIZATION_CONFIGS: {
2
- "en-SE": {
3
- locale: string;
4
- "teacherFeedback.noComments": string;
5
- "time.justNow": string;
6
- "time.minuteAgo": string;
7
- "time.minutesAgo": string;
8
- "time.hourAgo": string;
9
- "time.hoursAgo": string;
10
- "time.dayAgo": string;
11
- "time.daysAgo": string;
12
- "time.monthAgo": string;
13
- "time.monthsAgo": string;
14
- "time.yearAgo": string;
15
- "time.yearsAgo": string;
16
- chat: {
17
- anotherHint: string;
18
- getHint: string;
19
- needHint: string;
20
- giveHintOpenChat: string;
21
- answerAgain: string;
22
- errorMessage: string;
23
- howCanIHelp: string;
24
- showError: string;
25
- inputPlaceholder: string;
26
- };
27
- gifCelebrations: {
28
- greatStart: string;
29
- onTheWay: string;
30
- almostThere: string;
31
- };
32
- exampleSolution: {
33
- exampleSolution: string;
34
- letMeThink: string;
35
- aha: string;
36
- errorMessage: string;
37
- };
38
- keyboard: {
39
- length: string;
40
- area: string;
41
- volume: string;
42
- weight: string;
43
- time: string;
44
- };
45
- voice: {
46
- deleteRecording: string;
47
- youWontBeAbleToRecover: string;
48
- recordingDeleted: string;
49
- delete: string;
50
- cancel: string;
51
- noMicrophoneAccess: string;
52
- noMicrophoneAccessBySystem: string;
53
- noMicrophoneFound: string;
54
- uploadFailed: string;
55
- redoRecording: string;
56
- redo: string;
57
- thisWillRemoveRecording: string;
58
- transcriptions: string;
59
- attempt: string;
60
- transcriptNotAvailable: string;
61
- };
62
- };
63
- "en-GB": {
64
- locale: string;
65
- "teacherFeedback.noComments": string;
66
- "time.justNow": string;
67
- "time.minuteAgo": string;
68
- "time.minutesAgo": string;
69
- "time.hourAgo": string;
70
- "time.hoursAgo": string;
71
- "time.dayAgo": string;
72
- "time.daysAgo": string;
73
- "time.monthAgo": string;
74
- "time.monthsAgo": string;
75
- "time.yearAgo": string;
76
- "time.yearsAgo": string;
77
- chat: {
78
- anotherHint: string;
79
- getHint: string;
80
- needHint: string;
81
- giveHintOpenChat: string;
82
- answerAgain: string;
83
- errorMessage: string;
84
- howCanIHelp: string;
85
- showError: string;
86
- inputPlaceholder: string;
87
- };
88
- gifCelebrations: {
89
- greatStart: string;
90
- onTheWay: string;
91
- almostThere: string;
92
- };
93
- exampleSolution: {
94
- exampleSolution: string;
95
- letMeThink: string;
96
- aha: string;
97
- errorMessage: string;
98
- };
99
- keyboard: {
100
- length: string;
101
- area: string;
102
- volume: string;
103
- weight: string;
104
- time: string;
105
- };
106
- voice: {
107
- deleteRecording: string;
108
- youWontBeAbleToRecover: string;
109
- recordingDeleted: string;
110
- delete: string;
111
- cancel: string;
112
- noMicrophoneAccess: string;
113
- noMicrophoneAccessBySystem: string;
114
- noMicrophoneFound: string;
115
- uploadFailed: string;
116
- redoRecording: string;
117
- redo: string;
118
- thisWillRemoveRecording: string;
119
- transcriptions: string;
120
- attempt: string;
121
- transcriptNotAvailable: string;
122
- };
123
- };
124
- "sv-SE": {
125
- locale: string;
126
- "teacherFeedback.noComments": string;
127
- "time.justNow": string;
128
- "time.minuteAgo": string;
129
- "time.minutesAgo": string;
130
- "time.hourAgo": string;
131
- "time.hoursAgo": string;
132
- "time.dayAgo": string;
133
- "time.daysAgo": string;
134
- "time.monthAgo": string;
135
- "time.monthsAgo": string;
136
- "time.yearAgo": string;
137
- "time.yearsAgo": string;
138
- chat: {
139
- anotherHint: string;
140
- getHint: string;
141
- needHint: string;
142
- giveHintOpenChat: string;
143
- answerAgain: string;
144
- errorMessage: string;
145
- howCanIHelp: string;
146
- showError: string;
147
- inputPlaceholder: string;
148
- };
149
- gifCelebrations: {
150
- greatStart: string;
151
- onTheWay: string;
152
- almostThere: string;
153
- };
154
- exampleSolution: {
155
- exampleSolution: string;
156
- letMeThink: string;
157
- aha: string;
158
- errorMessage: string;
159
- };
160
- keyboard: {
161
- length: string;
162
- area: string;
163
- volume: string;
164
- weight: string;
165
- time: string;
166
- };
167
- voice: {
168
- deleteRecording: string;
169
- youWontBeAbleToRecover: string;
170
- recordingDeleted: string;
171
- delete: string;
172
- cancel: string;
173
- noMicrophoneAccess: string;
174
- noMicrophoneAccessBySystem: string;
175
- noMicrophoneFound: string;
176
- uploadFailed: string;
177
- redoRecording: string;
178
- redo: string;
179
- thisWillRemoveRecording: string;
180
- transcriptions: string;
181
- attempt: string;
182
- transcriptNotAvailable: string;
183
- };
184
- };
185
- "en-CA": {
186
- locale: string;
187
- "teacherFeedback.noComments": string;
188
- "time.justNow": string;
189
- "time.minuteAgo": string;
190
- "time.minutesAgo": string;
191
- "time.hourAgo": string;
192
- "time.hoursAgo": string;
193
- "time.dayAgo": string;
194
- "time.daysAgo": string;
195
- "time.monthAgo": string;
196
- "time.monthsAgo": string;
197
- "time.yearAgo": string;
198
- "time.yearsAgo": string;
199
- chat: {
200
- anotherHint: string;
201
- getHint: string;
202
- needHint: string;
203
- giveHintOpenChat: string;
204
- answerAgain: string;
205
- errorMessage: string;
206
- howCanIHelp: string;
207
- showError: string;
208
- inputPlaceholder: string;
209
- };
210
- gifCelebrations: {
211
- greatStart: string;
212
- onTheWay: string;
213
- almostThere: string;
214
- };
215
- exampleSolution: {
216
- exampleSolution: string;
217
- letMeThink: string;
218
- aha: string;
219
- errorMessage: string;
220
- };
221
- keyboard: {
222
- length: string;
223
- area: string;
224
- volume: string;
225
- weight: string;
226
- time: string;
227
- };
228
- voice: {
229
- deleteRecording: string;
230
- youWontBeAbleToRecover: string;
231
- recordingDeleted: string;
232
- delete: string;
233
- cancel: string;
234
- noMicrophoneAccess: string;
235
- noMicrophoneAccessBySystem: string;
236
- noMicrophoneFound: string;
237
- uploadFailed: string;
238
- redoRecording: string;
239
- redo: string;
240
- thisWillRemoveRecording: string;
241
- transcriptions: string;
242
- attempt: string;
243
- transcriptNotAvailable: string;
244
- };
245
- };
246
- "en-SCT": {
247
- locale: string;
248
- "teacherFeedback.noComments": string;
249
- "time.justNow": string;
250
- "time.minuteAgo": string;
251
- "time.minutesAgo": string;
252
- "time.hourAgo": string;
253
- "time.hoursAgo": string;
254
- "time.dayAgo": string;
255
- "time.daysAgo": string;
256
- "time.monthAgo": string;
257
- "time.monthsAgo": string;
258
- "time.yearAgo": string;
259
- "time.yearsAgo": string;
260
- chat: {
261
- anotherHint: string;
262
- getHint: string;
263
- needHint: string;
264
- giveHintOpenChat: string;
265
- answerAgain: string;
266
- errorMessage: string;
267
- howCanIHelp: string;
268
- showError: string;
269
- inputPlaceholder: string;
270
- };
271
- gifCelebrations: {
272
- greatStart: string;
273
- onTheWay: string;
274
- almostThere: string;
275
- };
276
- exampleSolution: {
277
- exampleSolution: string;
278
- letMeThink: string;
279
- aha: string;
280
- errorMessage: string;
281
- };
282
- keyboard: {
283
- length: string;
284
- area: string;
285
- volume: string;
286
- weight: string;
287
- time: string;
288
- };
289
- voice: {
290
- deleteRecording: string;
291
- youWontBeAbleToRecover: string;
292
- recordingDeleted: string;
293
- delete: string;
294
- cancel: string;
295
- noMicrophoneAccess: string;
296
- noMicrophoneAccessBySystem: string;
297
- noMicrophoneFound: string;
298
- uploadFailed: string;
299
- redoRecording: string;
300
- redo: string;
301
- thisWillRemoveRecording: string;
302
- transcriptions: string;
303
- attempt: string;
304
- transcriptNotAvailable: string;
305
- };
306
- };
307
- "de-DE": {
308
- locale: string;
309
- "teacherFeedback.noComments": string;
310
- "time.justNow": string;
311
- "time.minuteAgo": string;
312
- "time.minutesAgo": string;
313
- "time.hourAgo": string;
314
- "time.hoursAgo": string;
315
- "time.dayAgo": string;
316
- "time.daysAgo": string;
317
- "time.monthAgo": string;
318
- "time.monthsAgo": string;
319
- "time.yearAgo": string;
320
- "time.yearsAgo": string;
321
- chat: {
322
- anotherHint: string;
323
- getHint: string;
324
- needHint: string;
325
- giveHintOpenChat: string;
326
- answerAgain: string;
327
- errorMessage: string;
328
- howCanIHelp: string;
329
- showError: string;
330
- inputPlaceholder: string;
331
- };
332
- gifCelebrations: {
333
- greatStart: string;
334
- onTheWay: string;
335
- almostThere: string;
336
- };
337
- exampleSolution: {
338
- exampleSolution: string;
339
- letMeThink: string;
340
- aha: string;
341
- errorMessage: string;
342
- };
343
- keyboard: {
344
- length: string;
345
- area: string;
346
- volume: string;
347
- weight: string;
348
- time: string;
349
- };
350
- voice: {
351
- deleteRecording: string;
352
- youWontBeAbleToRecover: string;
353
- recordingDeleted: string;
354
- delete: string;
355
- cancel: string;
356
- noMicrophoneAccess: string;
357
- noMicrophoneAccessBySystem: string;
358
- noMicrophoneFound: string;
359
- uploadFailed: string;
360
- redoRecording: string;
361
- redo: string;
362
- thisWillRemoveRecording: string;
363
- transcriptions: string;
364
- attempt: string;
365
- transcriptNotAvailable: string;
366
- };
367
- };
368
- };
1
+ export declare const NAMESPACE = "students-features";
369
2
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sBAAsB,CAAA"}
@@ -1,7 +1,3 @@
1
- import { LOCALIZATION_CONFIGS } from './constants';
2
- import { GetText, TranslationKeys, Translations } from './types';
3
- export declare function getTranslation(config: Translations, key: TranslationKeys): string;
4
- export declare const getSubstitutedString: (str: string, substitutions?: Record<string, string>) => string;
1
+ import { GetText } from './types';
5
2
  export declare const getText: GetText;
6
- export declare const setFeaturesLocalization: (generator: ((config: typeof LOCALIZATION_CONFIGS) => Translations) | Translations) => void;
7
3
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEhE,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,eAAe,UAexE;AAED,eAAO,MAAM,oBAAoB,QAAS,MAAM,kBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAWtF,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,OAMrB,CAAA;AAED,eAAO,MAAM,uBAAuB,cACvB,CAAC,CAAC,MAAM,EAAE,OAAO,oBAAoB,KAAK,YAAY,CAAC,GAAG,YAAY,SAGlF,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,eAAO,MAAM,OAAO,EAAE,OAErB,CAAA"}
@@ -1,5 +1,3 @@
1
- import { GetText, Translations } from './types';
2
- import { LOCALIZATION_CONFIGS } from './constants';
1
+ import { GetText } from './types';
3
2
  export declare const useText: () => GetText;
4
- export declare const useFeaturesLocalization: (generator: ((config: typeof LOCALIZATION_CONFIGS) => Translations) | Translations) => void;
5
3
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,OAAO,QAAO,OAS1B,CAAA;AAED,eAAO,MAAM,uBAAuB,cACvB,CAAC,CAAC,MAAM,EAAE,OAAO,oBAAoB,KAAK,YAAY,CAAC,GAAG,YAAY,SAKlF,CAAA"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/hooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEjC,eAAO,MAAM,OAAO,QAAO,OAG1B,CAAA"}
@@ -1,4 +1,4 @@
1
- export { useFeaturesLocalization, useText } from './hooks';
2
- export { setFeaturesLocalization, getText as t } from './helpers';
3
- export { $localization, setLocalization } from './model';
1
+ export { useText } from './hooks';
2
+ export { getText as t } from './helpers';
3
+ export type { TranslationKeys, GetText } from './types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAC1D,OAAO,EAAE,uBAAuB,EAAE,OAAO,IAAI,CAAC,EAAE,MAAM,WAAW,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,CAAC,EAAE,MAAM,WAAW,CAAA;AACxC,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,6 +1,3 @@
1
- import enTranslations from './localization/en.json';
2
- import { RetrieveKeys } from '../../lib/types/keys';
3
- export type Translations = typeof enTranslations;
4
- export type TranslationKeys = RetrieveKeys<Translations>;
1
+ export type TranslationKeys = string;
5
2
  export type GetText = (key: TranslationKeys, args?: Record<string, string> | null) => string;
6
3
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAA;AAOnD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAA;AAChD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAA;AACpC,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmamath/students-features",
3
- "version": "1.3.2-rc.5",
3
+ "version": "1.3.3-rc.1",
4
4
  "description": "Magmamath features library",
5
5
  "source": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -15,32 +15,37 @@
15
15
  "scripts": {
16
16
  "clean": "del-cli dist",
17
17
  "prepare": "bob build",
18
- "release": "release-it"
18
+ "release": "release-it",
19
+ "pull-translations": "node scripts/pullTranslations.mjs"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "@magmamath/frontend-config": "1.1.0",
22
23
  "@magmamath/react-native-ui": "*",
24
+ "@react-native-masked-view/masked-view": "*",
23
25
  "effector": "^23.2.3",
24
26
  "effector-react": "^23.2.1",
27
+ "expo": ">=52.0.47",
28
+ "expo-audio": "^1.1.1",
29
+ "i18next": ">=22",
25
30
  "patronum": "^2.3.0",
26
31
  "react": "*",
32
+ "react-i18next": ">=11",
27
33
  "react-native": "*",
28
34
  "react-native-gesture-handler": "*",
35
+ "react-native-linear-gradient": "*",
29
36
  "react-native-modalfy": "*",
30
37
  "react-native-reanimated": ">=0.3.16",
31
- "react-native-svg": "^15.10.0",
32
- "expo-audio": "^1.1.1",
33
- "expo": ">=52.0.47",
34
- "@react-native-masked-view/masked-view": "*",
35
- "react-native-linear-gradient": "*"
38
+ "react-native-svg": "^15.10.0"
36
39
  },
37
40
  "devDependencies": {
38
- "@magmamath/react-native-ui": "0.4.83",
39
41
  "@magmamath/frontend-config": "1.1.0",
42
+ "@magmamath/react-native-ui": "0.4.83",
43
+ "@react-native-masked-view/masked-view": "^0.3.2",
40
44
  "@react-native/eslint-config": "^0.73.1",
41
45
  "@release-it/conventional-changelog": "^9.0.2",
42
46
  "@types/jest": "^29.5.5",
43
47
  "@types/react": "^18.2.44",
48
+ "axios": "^1.13.5",
44
49
  "del-cli": "^5.1.0",
45
50
  "effector": "^23.2.3",
46
51
  "effector-react": "^23.2.1",
@@ -49,21 +54,21 @@
49
54
  "eslint-plugin-prettier": "^5.0.1",
50
55
  "expo": "^52.0.47",
51
56
  "expo-audio": "^1.1.1",
57
+ "i18next": "^22.5.1",
52
58
  "jest": "^29.7.0",
53
- "prettier": "^3.0.3",
54
59
  "patronum": "^2.3.0",
60
+ "prettier": "^3.0.3",
55
61
  "react": "18.3.1",
62
+ "react-i18next": "^11.3.4",
56
63
  "react-native": "0.76.3",
57
64
  "react-native-builder-bob": "^0.33.3",
58
65
  "react-native-gesture-handler": "^2.28.0",
66
+ "react-native-linear-gradient": "^2.8.3",
59
67
  "react-native-modalfy": "^3.7.0",
60
68
  "react-native-reanimated": "^3.17.2",
61
69
  "react-native-svg": "^15.10.0",
62
70
  "release-it": "^17.10.0",
63
- "typescript": "^5.2.2",
64
- "axios": "^1.13.5",
65
- "@react-native-masked-view/masked-view": "^0.3.2",
66
- "react-native-linear-gradient": "^2.8.3"
71
+ "typescript": "^5.2.2"
67
72
  },
68
73
  "resolutions": {
69
74
  "@types/react": "^18.2.44"
@@ -1,13 +1,11 @@
1
1
  import { DefaultMessagesCreator } from './DefaultMessageCreator'
2
- import { TranslationKeys } from '../../../shared/translation/types'
3
2
  import { getText } from '../../../shared/translation/helpers'
4
3
  import { ChatbotMessages } from '../types/model.types'
5
- import { $localization } from '../../../shared/translation'
6
4
 
7
5
  export class ChatBotTextManager {
8
- private readonly messagesCreator = new DefaultMessagesCreator<TranslationKeys>({
6
+ private readonly messagesCreator = new DefaultMessagesCreator<string>({
9
7
  textGetter: getText,
10
- }).bindToLanguageChanged($localization.updates)
8
+ }).bindToLanguageChanged()
11
9
 
12
10
  public readonly messages: ChatbotMessages = {
13
11
  error: this.messagesCreator.createMessage('chat.errorMessage', {
@@ -21,7 +19,7 @@ export class ChatBotTextManager {
21
19
  private readonly defaultMessages = { ...this.messages }
22
20
 
23
21
  public update(
24
- cb: (manager: DefaultMessagesCreator<TranslationKeys>) => Partial<ChatbotMessages>,
22
+ cb: (manager: DefaultMessagesCreator<string>) => Partial<ChatbotMessages>,
25
23
  ) {
26
24
  Object.assign(this.messages, cb(this.messagesCreator))
27
25
  }
@@ -1,5 +1,5 @@
1
+ import i18next from 'i18next'
1
2
  import { PostMessageResponse } from '../types/api.types'
2
- import { Event } from 'effector'
3
3
  import { ChatAnswer } from '../types/units.types'
4
4
 
5
5
  type ChatMessage = Omit<PostMessageResponse, 'threadId'> & {
@@ -45,8 +45,8 @@ export class DefaultMessagesCreator<K extends string> {
45
45
  return option
46
46
  }
47
47
 
48
- public bindToLanguageChanged(event: Event<unknown>) {
49
- event.watch(() => {
48
+ public bindToLanguageChanged() {
49
+ i18next.on('languageChanged', () => {
50
50
  this.list.forEach((key, chatMessage) => {
51
51
  if ('message' in chatMessage) {
52
52
  chatMessage.message = this.getter(key)
@@ -1,8 +1,7 @@
1
1
  import { StyleSheet, View } from 'react-native'
2
2
  import React from 'react'
3
3
  import { COLORS, HeadingVariants, IS_WEB, SPACING, Typography } from '@magmamath/react-native-ui'
4
- import { useUnit } from 'effector-react'
5
- import { $localization } from '../../../shared/translation'
4
+ import { useText } from '../../../shared/translation'
6
5
  import { ExampleSolutionModalParams } from '../types'
7
6
  import { QuestionSection } from './QuestionSection'
8
7
  import { SolutionSection } from './SolutionSection'
@@ -18,7 +17,7 @@ export const ExampleSolutionModalContent = ({
18
17
  params: { model, payload, cacheKey },
19
18
  }: ExampleSolutionModalContentProps) => {
20
19
  const { result, status } = useExampleSolution({ model, payload, cacheKey })
21
- const localization = useUnit($localization)
20
+ const t = useText()
22
21
 
23
22
  return (
24
23
  <View
@@ -28,7 +27,7 @@ export const ExampleSolutionModalContent = ({
28
27
  ]}
29
28
  >
30
29
  <Typography align="center" variant={HeadingVariants.H2} style={{ color: COLORS.NEUTRAL_9 }}>
31
- {localization.exampleSolution.exampleSolution}
30
+ {t('exampleSolution.exampleSolution')}
32
31
  </Typography>
33
32
  <View style={styles.content}>
34
33
  <QuestionSection
@@ -1,7 +1,7 @@
1
1
  import { createControllerEffect } from './../../../lib/effector/createControllerEffect'
2
2
  import { ExampleSolutionApiRequests, ExampleSolutionErrorHandler } from '../types'
3
- import { $localization } from '../../../shared/translation'
4
- import { createEffect, sample, attach, StoreValue } from 'effector'
3
+ import { getText } from '../../../shared/translation/helpers'
4
+ import { createEffect, sample } from 'effector'
5
5
 
6
6
  type ExampleSolutionApiProps = {
7
7
  api: ExampleSolutionApiRequests
@@ -12,13 +12,9 @@ export class ExampleSolutionsApi {
12
12
  public readonly generateExampleSolutionFx
13
13
  public readonly errorHandlerFx?: ExampleSolutionErrorHandler
14
14
 
15
- public readonly errorHandlingFx = attach({
16
- source: $localization,
17
- effect: createEffect((localization: StoreValue<typeof $localization>) => {
18
- if (!this.errorHandlerFx) return
19
- const errorMessage = localization.exampleSolution.errorMessage
20
- this.errorHandlerFx(errorMessage)
21
- }),
15
+ public readonly errorHandlingFx = createEffect(() => {
16
+ if (!this.errorHandlerFx) return
17
+ this.errorHandlerFx(getText('exampleSolution.errorMessage'))
22
18
  })
23
19
 
24
20
  constructor({ api, errorHandler }: ExampleSolutionApiProps) {
@@ -3,7 +3,6 @@ export * from './basic.constants'
3
3
  export * from './basicPlus.constants'
4
4
  export * from './basicPlusPlus.constants'
5
5
  export * from './currency.constants'
6
- export * from './geometry.constants'
7
6
  export * from './numpad.constants'
8
7
  export * from './time.constants'
9
8
  export * from './underlined.constants'
@@ -18,7 +18,6 @@ import {
18
18
  KEYBOARD_BASIC_PLUS,
19
19
  KEYBOARD_BASIC_PLUS_PLUS,
20
20
  KEYBOARD_CURRENCY,
21
- KEYBOARD_GEOMETRY,
22
21
  KEYBOARD_LENGTH,
23
22
  KEYBOARD_NUMPAD,
24
23
  KEYBOARD_TIME,
@@ -45,7 +44,6 @@ const PRESET_DOT_MIXED: KeyboardPresetConfig = {
45
44
  [KeyboardType.BasicPlusPlusMobile]: KEYBOARD_BASIC_PLUS_PLUS.MOBILE_DOT,
46
45
  [KeyboardType.BasicUnits]: { keys: KEYBOARD_LENGTH.MIXED.keys[0] },
47
46
  [KeyboardType.AlgebraAdvanced]: KEYBOARD_ALGEBRA,
48
- [KeyboardType.Geometry]: KEYBOARD_GEOMETRY,
49
47
  [KeyboardType.Numpad]: KEYBOARD_NUMPAD.DOT,
50
48
  [KeyboardType.Underlined]: KEYBOARD_UNDERLINED,
51
49
  },
@@ -67,7 +65,6 @@ const PRESET_COMMA_METRIC: KeyboardPresetConfig = {
67
65
  [KeyboardType.BasicPlusPlusMobile]: KEYBOARD_BASIC_PLUS_PLUS.MOBILE_COMMA,
68
66
  [KeyboardType.BasicUnits]: { keys: KEYBOARD_LENGTH.METRIC.keys[0] },
69
67
  [KeyboardType.AlgebraAdvanced]: KEYBOARD_ALGEBRA,
70
- [KeyboardType.Geometry]: KEYBOARD_GEOMETRY,
71
68
  [KeyboardType.Numpad]: KEYBOARD_NUMPAD.COMMA,
72
69
  [KeyboardType.Underlined]: KEYBOARD_UNDERLINED,
73
70
  },