@magmamath/students-features 1.3.14 → 1.3.16-rc.22

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 (348) hide show
  1. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -2
  2. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -2
  4. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/helpers.js +3 -3
  6. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  7. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +3 -4
  8. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  9. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +4 -2
  10. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  11. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +3 -4
  12. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  13. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +4 -8
  14. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  15. package/dist/commonjs/features/feedback/components/EmptyComment.js +2 -2
  16. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
  17. package/dist/commonjs/features/feedback/model/comments.js +2 -2
  18. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  19. package/dist/commonjs/features/gifCelebrations/components/Gif.js +2 -2
  20. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -1
  21. package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -1
  22. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +2 -2
  23. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  24. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +2 -2
  25. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  26. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +1 -1
  27. package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -1
  28. package/dist/commonjs/features/pmProgress/components/header/NextUp.js +7 -11
  29. package/dist/commonjs/features/pmProgress/components/header/NextUp.js.map +1 -1
  30. package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +2 -2
  31. package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +1 -1
  32. package/dist/commonjs/features/pmProgress/components/header/StartButton.js +2 -2
  33. package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -1
  34. package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +1 -1
  35. package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +1 -1
  36. package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +2 -2
  37. package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -1
  38. package/dist/commonjs/features/pmProgress/components/list/Fluency.js +2 -2
  39. package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -1
  40. package/dist/commonjs/features/pmProgress/components/list/ListCard.js +2 -2
  41. package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -1
  42. package/dist/commonjs/features/pmProgress/components/list/ListItem.js +2 -2
  43. package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -1
  44. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +1 -1
  45. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -1
  46. package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +2 -2
  47. package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -1
  48. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +2 -2
  49. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
  50. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +8 -3
  51. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -1
  52. package/dist/commonjs/features/pmProgress/hooks/useNextUpDomain.js +42 -0
  53. package/dist/commonjs/features/pmProgress/hooks/useNextUpDomain.js.map +1 -0
  54. package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +18 -16
  55. package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +1 -1
  56. package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +1 -1
  57. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +11 -7
  58. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
  59. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +2 -2
  60. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  61. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +2 -2
  62. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  63. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +2 -2
  64. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  65. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +2 -2
  66. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  67. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +2 -2
  68. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  69. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +2 -2
  70. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  71. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +7 -7
  72. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  73. package/dist/commonjs/i18n/i18n.js +19 -0
  74. package/dist/commonjs/i18n/i18n.js.map +1 -0
  75. package/dist/commonjs/i18n/i18next.d.js +5 -0
  76. package/dist/commonjs/i18n/i18next.d.js.map +1 -0
  77. package/dist/commonjs/index.js +26 -41
  78. package/dist/commonjs/index.js.map +1 -1
  79. package/dist/commonjs/lib/helpers/helpers.js +12 -12
  80. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  81. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
  82. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  83. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +1 -1
  84. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  85. package/dist/module/features/chatbot/helpers.js +1 -1
  86. package/dist/module/features/chatbot/helpers.js.map +1 -1
  87. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +2 -3
  88. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  89. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +3 -2
  90. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  91. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +3 -4
  92. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  93. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +5 -9
  94. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  95. package/dist/module/features/feedback/components/EmptyComment.js +1 -1
  96. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  97. package/dist/module/features/feedback/model/comments.js +1 -1
  98. package/dist/module/features/feedback/model/comments.js.map +1 -1
  99. package/dist/module/features/gifCelebrations/components/Gif.js +1 -1
  100. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
  101. package/dist/module/features/gifCelebrations/helpers.js.map +1 -1
  102. package/dist/module/features/keyboard/components/Numpad/Numpad.js +1 -1
  103. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  104. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +1 -1
  105. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  106. package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +1 -1
  107. package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -1
  108. package/dist/module/features/pmProgress/components/header/NextUp.js +7 -11
  109. package/dist/module/features/pmProgress/components/header/NextUp.js.map +1 -1
  110. package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +2 -2
  111. package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +1 -1
  112. package/dist/module/features/pmProgress/components/header/StartButton.js +1 -1
  113. package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -1
  114. package/dist/module/features/pmProgress/components/insights/PmInsights.js +1 -1
  115. package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +1 -1
  116. package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +2 -3
  117. package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -1
  118. package/dist/module/features/pmProgress/components/list/Fluency.js +1 -1
  119. package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -1
  120. package/dist/module/features/pmProgress/components/list/ListCard.js +2 -2
  121. package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -1
  122. package/dist/module/features/pmProgress/components/list/ListItem.js +2 -2
  123. package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -1
  124. package/dist/module/features/pmProgress/components/list/PmDomainList.js +1 -1
  125. package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -1
  126. package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +1 -1
  127. package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -1
  128. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +2 -2
  129. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
  130. package/dist/module/features/pmProgress/components/standard/StandardTag.js +8 -3
  131. package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -1
  132. package/dist/module/features/pmProgress/hooks/useNextUpDomain.js +37 -0
  133. package/dist/module/features/pmProgress/hooks/useNextUpDomain.js.map +1 -0
  134. package/dist/module/features/pmProgress/model/PmTreeModel.js +20 -18
  135. package/dist/module/features/pmProgress/model/PmTreeModel.js.map +1 -1
  136. package/dist/module/features/pmProgress/shared/pmProgress.constants.js +1 -1
  137. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +3 -1
  138. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
  139. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +1 -1
  140. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  141. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +1 -1
  142. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  143. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +1 -1
  144. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  145. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -1
  146. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  147. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +1 -1
  148. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  149. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +1 -1
  150. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  151. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +1 -1
  152. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  153. package/dist/module/i18n/i18n.js +12 -0
  154. package/dist/module/i18n/i18n.js.map +1 -0
  155. package/dist/module/i18n/i18next.d.js +5 -0
  156. package/dist/module/i18n/i18next.d.js.map +1 -0
  157. package/dist/module/index.js +0 -1
  158. package/dist/module/index.js.map +1 -1
  159. package/dist/module/lib/helpers/helpers.js +1 -1
  160. package/dist/module/lib/helpers/helpers.js.map +1 -1
  161. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +2 -2
  162. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  163. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  164. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  165. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  166. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  167. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +2 -2
  168. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
  169. package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts.map +1 -1
  170. package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +1 -1
  171. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +1 -1
  172. package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -1
  173. package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -1
  174. package/dist/typescript/commonjs/features/pmProgress/hooks/useNextUpDomain.d.ts +5 -0
  175. package/dist/typescript/commonjs/features/pmProgress/hooks/useNextUpDomain.d.ts.map +1 -0
  176. package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +3 -3
  177. package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +1 -1
  178. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +1 -1
  179. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -1
  180. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +5 -1
  181. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  182. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  183. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +2 -2
  184. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  185. package/dist/typescript/commonjs/i18n/i18n.d.ts +8 -0
  186. package/dist/typescript/commonjs/i18n/i18n.d.ts.map +1 -0
  187. package/dist/typescript/commonjs/index.d.ts +0 -1
  188. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  189. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +2 -2
  190. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  191. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
  192. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  193. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  194. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  195. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +2 -2
  196. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
  197. package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts.map +1 -1
  198. package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +1 -1
  199. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +1 -1
  200. package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -1
  201. package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -1
  202. package/dist/typescript/module/features/pmProgress/hooks/useNextUpDomain.d.ts +5 -0
  203. package/dist/typescript/module/features/pmProgress/hooks/useNextUpDomain.d.ts.map +1 -0
  204. package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +3 -3
  205. package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +1 -1
  206. package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +1 -1
  207. package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -1
  208. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +5 -1
  209. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  210. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
  211. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +2 -2
  212. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  213. package/dist/typescript/module/i18n/i18n.d.ts +8 -0
  214. package/dist/typescript/module/i18n/i18n.d.ts.map +1 -0
  215. package/dist/typescript/module/index.d.ts +0 -1
  216. package/dist/typescript/module/index.d.ts.map +1 -1
  217. package/package.json +11 -6
  218. package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -1
  219. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +1 -1
  220. package/src/features/chatbot/helpers.ts +1 -1
  221. package/src/features/chatbot/model/ChatBoxTextManager.ts +4 -8
  222. package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
  223. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +3 -4
  224. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +5 -9
  225. package/src/features/feedback/components/EmptyComment.tsx +1 -1
  226. package/src/features/feedback/model/comments.ts +1 -1
  227. package/src/features/gifCelebrations/components/Gif.tsx +1 -1
  228. package/src/features/gifCelebrations/helpers.ts +2 -2
  229. package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -1
  230. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +1 -1
  231. package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +1 -1
  232. package/src/features/pmProgress/components/header/NextUp.tsx +7 -14
  233. package/src/features/pmProgress/components/header/PmProgressHeader.tsx +2 -2
  234. package/src/features/pmProgress/components/header/StartButton.tsx +1 -1
  235. package/src/features/pmProgress/components/insights/PmInsights.tsx +1 -1
  236. package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +2 -2
  237. package/src/features/pmProgress/components/list/Fluency.tsx +1 -1
  238. package/src/features/pmProgress/components/list/ListCard.tsx +3 -2
  239. package/src/features/pmProgress/components/list/ListItem.tsx +2 -2
  240. package/src/features/pmProgress/components/list/PmDomainList.tsx +1 -1
  241. package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +4 -12
  242. package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +2 -2
  243. package/src/features/pmProgress/components/standard/StandardTag.tsx +4 -3
  244. package/src/features/pmProgress/hooks/useNextUpDomain.ts +31 -0
  245. package/src/features/pmProgress/model/PmTreeModel.ts +26 -17
  246. package/src/features/pmProgress/shared/pmProgress.constants.ts +1 -1
  247. package/src/features/pmProgress/shared/pmProgress.helpers.ts +13 -2
  248. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +1 -1
  249. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +1 -1
  250. package/src/features/voice/recording/components/VoiceRecordButton.tsx +1 -1
  251. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +2 -3
  252. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +1 -1
  253. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +1 -1
  254. package/src/features/voice/recording/model/VoiceRecord.model.ts +1 -1
  255. package/{dist/commonjs/shared/translation/localization/en.json → src/i18n/.generated/schema.json} +67 -62
  256. package/src/i18n/i18n.ts +13 -0
  257. package/src/i18n/i18next.d.ts +20 -0
  258. package/src/index.ts +0 -1
  259. package/src/lib/helpers/helpers.ts +1 -1
  260. package/dist/commonjs/lib/types/keys.js +0 -2
  261. package/dist/commonjs/lib/types/keys.js.map +0 -1
  262. package/dist/commonjs/shared/translation/constants.js +0 -23
  263. package/dist/commonjs/shared/translation/constants.js.map +0 -1
  264. package/dist/commonjs/shared/translation/helpers.js +0 -47
  265. package/dist/commonjs/shared/translation/helpers.js.map +0 -1
  266. package/dist/commonjs/shared/translation/hooks.js +0 -25
  267. package/dist/commonjs/shared/translation/hooks.js.map +0 -1
  268. package/dist/commonjs/shared/translation/index.js +0 -45
  269. package/dist/commonjs/shared/translation/index.js.map +0 -1
  270. package/dist/commonjs/shared/translation/localization/ca.json +0 -85
  271. package/dist/commonjs/shared/translation/localization/de.json +0 -85
  272. package/dist/commonjs/shared/translation/localization/gb.json +0 -85
  273. package/dist/commonjs/shared/translation/localization/sct.json +0 -85
  274. package/dist/commonjs/shared/translation/localization/sw.json +0 -85
  275. package/dist/commonjs/shared/translation/model.js +0 -15
  276. package/dist/commonjs/shared/translation/model.js.map +0 -1
  277. package/dist/commonjs/shared/translation/types.js +0 -6
  278. package/dist/commonjs/shared/translation/types.js.map +0 -1
  279. package/dist/commonjs/shared/translation/validation.types.js +0 -6
  280. package/dist/commonjs/shared/translation/validation.types.js.map +0 -1
  281. package/dist/module/lib/types/keys.js +0 -2
  282. package/dist/module/lib/types/keys.js.map +0 -1
  283. package/dist/module/shared/translation/constants.js +0 -18
  284. package/dist/module/shared/translation/constants.js.map +0 -1
  285. package/dist/module/shared/translation/helpers.js +0 -38
  286. package/dist/module/shared/translation/helpers.js.map +0 -1
  287. package/dist/module/shared/translation/hooks.js +0 -19
  288. package/dist/module/shared/translation/hooks.js.map +0 -1
  289. package/dist/module/shared/translation/index.js +0 -6
  290. package/dist/module/shared/translation/index.js.map +0 -1
  291. package/dist/module/shared/translation/localization/ca.json +0 -85
  292. package/dist/module/shared/translation/localization/de.json +0 -85
  293. package/dist/module/shared/translation/localization/en.json +0 -85
  294. package/dist/module/shared/translation/localization/gb.json +0 -85
  295. package/dist/module/shared/translation/localization/sct.json +0 -85
  296. package/dist/module/shared/translation/localization/sw.json +0 -85
  297. package/dist/module/shared/translation/model.js +0 -11
  298. package/dist/module/shared/translation/model.js.map +0 -1
  299. package/dist/module/shared/translation/types.js +0 -4
  300. package/dist/module/shared/translation/types.js.map +0 -1
  301. package/dist/module/shared/translation/validation.types.js +0 -4
  302. package/dist/module/shared/translation/validation.types.js.map +0 -1
  303. package/dist/typescript/commonjs/lib/types/keys.d.ts +0 -8
  304. package/dist/typescript/commonjs/lib/types/keys.d.ts.map +0 -1
  305. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -513
  306. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +0 -1
  307. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +0 -7
  308. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +0 -1
  309. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +0 -5
  310. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +0 -1
  311. package/dist/typescript/commonjs/shared/translation/index.d.ts +0 -4
  312. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +0 -1
  313. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -173
  314. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +0 -1
  315. package/dist/typescript/commonjs/shared/translation/types.d.ts +0 -6
  316. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +0 -1
  317. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +0 -21
  318. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +0 -1
  319. package/dist/typescript/module/lib/types/keys.d.ts +0 -8
  320. package/dist/typescript/module/lib/types/keys.d.ts.map +0 -1
  321. package/dist/typescript/module/shared/translation/constants.d.ts +0 -513
  322. package/dist/typescript/module/shared/translation/constants.d.ts.map +0 -1
  323. package/dist/typescript/module/shared/translation/helpers.d.ts +0 -7
  324. package/dist/typescript/module/shared/translation/helpers.d.ts.map +0 -1
  325. package/dist/typescript/module/shared/translation/hooks.d.ts +0 -5
  326. package/dist/typescript/module/shared/translation/hooks.d.ts.map +0 -1
  327. package/dist/typescript/module/shared/translation/index.d.ts +0 -4
  328. package/dist/typescript/module/shared/translation/index.d.ts.map +0 -1
  329. package/dist/typescript/module/shared/translation/model.d.ts +0 -173
  330. package/dist/typescript/module/shared/translation/model.d.ts.map +0 -1
  331. package/dist/typescript/module/shared/translation/types.d.ts +0 -6
  332. package/dist/typescript/module/shared/translation/types.d.ts.map +0 -1
  333. package/dist/typescript/module/shared/translation/validation.types.d.ts +0 -21
  334. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +0 -1
  335. package/src/lib/types/keys.ts +0 -18
  336. package/src/shared/translation/constants.ts +0 -16
  337. package/src/shared/translation/helpers.ts +0 -47
  338. package/src/shared/translation/hooks.ts +0 -25
  339. package/src/shared/translation/index.ts +0 -3
  340. package/src/shared/translation/localization/ca.json +0 -85
  341. package/src/shared/translation/localization/de.json +0 -85
  342. package/src/shared/translation/localization/en.json +0 -85
  343. package/src/shared/translation/localization/gb.json +0 -85
  344. package/src/shared/translation/localization/sct.json +0 -85
  345. package/src/shared/translation/localization/sw.json +0 -85
  346. package/src/shared/translation/model.ts +0 -16
  347. package/src/shared/translation/types.ts +0 -21
  348. package/src/shared/translation/validation.types.ts +0 -34
@@ -1,85 +0,0 @@
1
- {
2
- "locale": "en-SCT",
3
- "teacherFeedback.noComments": "No comments yet",
4
- "time.justNow": "just now",
5
- "time.minuteAgo": "minute ago",
6
- "time.minutesAgo": "{{count}} minutes ago",
7
- "time.hourAgo": "hour ago",
8
- "time.hoursAgo": "{{count}} hours ago",
9
- "time.dayAgo": "day ago",
10
- "time.daysAgo": "{{count}} days ago",
11
- "time.monthAgo": "month ago",
12
- "time.monthsAgo": "{{count}} months ago",
13
- "time.yearAgo": "year ago",
14
- "time.yearsAgo": "{{count}} years ago",
15
- "chat": {
16
- "anotherHint": "Give me another hint",
17
- "getHint": "Get a hint",
18
- "needHint": "I need a hint",
19
- "giveHintOpenChat": "I need a hint",
20
- "answerAgain": "Answer again to get another hint!",
21
- "errorMessage": "Something went wrong! Try again",
22
- "howCanIHelp": "Hi! Do you want help?",
23
- "showError": "Show error",
24
- "inputPlaceholder": "Type..."
25
- },
26
- "gifCelebrations": {
27
- "greatStart": "Great start!",
28
- "onTheWay": "On the way!",
29
- "almostThere": "Almost there"
30
- },
31
- "exampleSolution": {
32
- "exampleSolution": "Example solution",
33
- "letMeThink": "Let me think...",
34
- "aha": "Aha!",
35
- "errorMessage": "Something went wrong with generating an example solution"
36
- },
37
- "keyboard": {
38
- "length": "Length",
39
- "area": "Area",
40
- "volume": "Volume",
41
- "weight": "Weight",
42
- "time": "Time"
43
- },
44
- "voice": {
45
- "deleteRecording": "Delete recording?",
46
- "youWontBeAbleToRecover": "You won't be able to recover this file once it's gone.",
47
- "recordingDeleted": "Recording successfully deleted.",
48
- "delete": "Delete",
49
- "cancel": "Cancel",
50
- "noMicrophoneAccess": "No microphone access.",
51
- "noMicrophoneAccessBySystem": "Microphone access denied by system settings.",
52
- "noMicrophoneFound": "No microphone found.",
53
- "uploadFailed": "Upload failed. Please try again.",
54
- "redoRecording": "Redo recording?",
55
- "redo": "Redo",
56
- "thisWillRemoveRecording": "This will remove your previous recording.",
57
- "transcriptions": "Transcriptions",
58
- "attempt": "Attempt {{number}}",
59
- "transcriptNotAvailable": "Transcript not available"
60
- },
61
- "pmProgress": {
62
- "title": "Practice & Progress",
63
- "startButton": "START",
64
- "nextUp": "Next up!",
65
- "teacherRecs": "Teacher recommendations",
66
- "practiceButton": "PRACTICE",
67
- "stars": "Practice stars",
68
- "time": "Practice time",
69
- "thisWeek": "This week",
70
- "lastWeek": "Last week",
71
- "allTime": "All time",
72
- "fluency": "Fluency",
73
- "andMore": "and {{count}} more...",
74
- "skillsLeft": "skills left",
75
- "skillLeft": "skill left",
76
- "grade": "Year",
77
- "gradeK": "R",
78
- "gradeOther": "Other",
79
- "loading": "Loading...",
80
- "allLockedTitle": "All years are locked",
81
- "allLockedSubtitle": "Your teacher has locked all years.\nAsk them to unlock years so you can start practising.",
82
- "initErrorTitle": "Something went wrong",
83
- "initErrorSubtitle": "We couldn't load your progress.\nPlease try again later."
84
- }
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "locale": "sv-SE",
3
- "teacherFeedback.noComments": "Inga kommentarer än",
4
- "time.justNow": "alldeles nyss",
5
- "time.minuteAgo": "minut sedan",
6
- "time.minutesAgo": "{{count}} minuter sedan",
7
- "time.hourAgo": "timme sedan",
8
- "time.hoursAgo": "{{count}} timmar sedan",
9
- "time.dayAgo": "dag sedan",
10
- "time.daysAgo": "{{count}} dagar sedan",
11
- "time.monthAgo": "månad sedan",
12
- "time.monthsAgo": "{{count}} månader sedan",
13
- "time.yearAgo": "år sedan",
14
- "time.yearsAgo": "{{count}} år sedan",
15
- "chat": {
16
- "anotherHint": "Ge mig en till ledtråd",
17
- "getHint": "Få en ledtråd",
18
- "needHint": "Ge mig en ledtråd",
19
- "giveHintOpenChat": "Ge ledtråd",
20
- "answerAgain": "Svara igen för att få en till ledtråd!",
21
- "errorMessage": "Något gick snett! Försök igen",
22
- "howCanIHelp": "Hej! Hur kan jag hjälpa dig?",
23
- "showError": "Visa fel",
24
- "inputPlaceholder": "Skriv..."
25
- },
26
- "gifCelebrations": {
27
- "greatStart": "Bra start!",
28
- "onTheWay": "På god väg!",
29
- "almostThere": "Nästan där"
30
- },
31
- "exampleSolution": {
32
- "exampleSolution": "Lösningsexempel",
33
- "letMeThink": "Låt mig tänka...",
34
- "aha": "Aha!",
35
- "errorMessage": "Något gick snett med att generera en exempellösning"
36
- },
37
- "keyboard": {
38
- "length": "Längd",
39
- "area": "Area",
40
- "volume": "Volym",
41
- "weight": "Vikt",
42
- "time": "Tid"
43
- },
44
- "voice": {
45
- "deleteRecording": "Radera inspelningen?",
46
- "youWontBeAbleToRecover": "Du kommer inte att kunna återställa filen när den väl är borta.",
47
- "recordingDeleted": "Inspelningen raderad.",
48
- "delete": "Radera",
49
- "cancel": "Avbryt",
50
- "noMicrophoneAccess": "Ingen mikrofonåtkomst.",
51
- "noMicrophoneAccessBySystem": "Mikrofonåtkomst nekad av systeminställningar.",
52
- "noMicrophoneFound": "Ingen mikrofon hittades.",
53
- "uploadFailed": "Uppladdning misslyckades. Försök igen.",
54
- "redoRecording": "Spela in igen?",
55
- "redo": "Gör om",
56
- "thisWillRemoveRecording": "Detta tar bort inspelningen.",
57
- "transcriptions": "Transkriptioner",
58
- "attempt": "Försök {{number}}",
59
- "transcriptNotAvailable": "Transkript inte tillgängligt"
60
- },
61
- "pmProgress": {
62
- "title": "Träna",
63
- "startButton": "STARTA",
64
- "nextUp": "Nästa!",
65
- "teacherRecs": "Lärarens rekommendationer",
66
- "practiceButton": "TRÄNA",
67
- "stars": "Stjärnor",
68
- "time": "Träningstid",
69
- "thisWeek": "Denna vecka",
70
- "lastWeek": "Förra veckan",
71
- "allTime": "Totalt",
72
- "fluency": "Räknefärdighet",
73
- "andMore": "och {{count}} till...",
74
- "skillsLeft": "Förmågor kvar",
75
- "skillLeft": "Förmåga kvar",
76
- "grade": "Årskurs",
77
- "gradeK": "F",
78
- "gradeOther": "Övrigt",
79
- "loading": "Laddar...",
80
- "allLockedTitle": "Alla årskurser är låsta",
81
- "allLockedSubtitle": "Din lärare har låst alla årskurser.\nBe dem att låsa upp så att du kan börja träna.",
82
- "initErrorTitle": "Något gick fel",
83
- "initErrorSubtitle": "Vi kunde inte ladda dina framsteg.\nFörsök igen senare."
84
- }
85
- }
@@ -1,16 +0,0 @@
1
- import { createEvent, createStore } from 'effector'
2
- import { Translations } from './types'
3
- import { LOCALIZATION_CONFIGS } from './constants'
4
- import { Locale } from '@magmamath/frontend-config'
5
-
6
- export const setLocalization = createEvent<
7
- Translations | ((config: typeof LOCALIZATION_CONFIGS) => Translations)
8
- >()
9
-
10
- export const $localization = createStore<Translations>(LOCALIZATION_CONFIGS[Locale.US]).on(
11
- setLocalization,
12
- (state, payload) => {
13
- if (typeof payload === 'function') return payload(LOCALIZATION_CONFIGS)
14
- return payload
15
- },
16
- )
@@ -1,21 +0,0 @@
1
- import enTranslations from './localization/en.json'
2
- import swTranslations from './localization/sw.json'
3
- import gbTranslations from './localization/gb.json'
4
- import caTranslations from './localization/ca.json'
5
- import sctTranslations from './localization/sct.json'
6
- import deTranslations from './localization/de.json'
7
-
8
- import { RetrieveKeys } from '../../lib/types/keys'
9
- import { ISValidTranslation } from './validation.types'
10
-
11
- export type Translations = typeof enTranslations
12
- export type TranslationKeys = RetrieveKeys<Translations>
13
- export type GetText = (key: TranslationKeys, args?: Record<string, string> | null) => string
14
-
15
- // Validation of translations, do not remove
16
- type ISValidEN = ISValidTranslation<Translations>
17
- type ISValidSW = ISValidTranslation<typeof swTranslations>
18
- type ISValidGB = ISValidTranslation<typeof gbTranslations>
19
- type ISValidCA = ISValidTranslation<typeof caTranslations>
20
- type ISValidSCT = ISValidTranslation<typeof sctTranslations>
21
- type ISValidDE = ISValidTranslation<typeof deTranslations>
@@ -1,34 +0,0 @@
1
- import enTranslations from './localization/en.json'
2
- import swTranslations from './localization/sw.json'
3
- import gbTranslations from './localization/gb.json'
4
- import caTranslations from './localization/ca.json'
5
- import sctTranslations from './localization/sct.json'
6
-
7
- type Extends<T, U> = T extends U ? true : false
8
-
9
- type ExtendsAll<Candidate, Types extends unknown[]> = Types extends [infer Head, ...infer Tail]
10
- ? Extends<Candidate, Head> extends true
11
- ? ExtendsAll<Candidate, Tail>
12
- : false
13
- : true
14
-
15
- type FindDominantType<Types extends unknown[]> = Types extends [
16
- infer First,
17
- ...infer Rest extends unknown[],
18
- ]
19
- ? ExtendsAll<First, Rest> extends true
20
- ? First
21
- : FindDominantType<Rest>
22
- : never
23
-
24
- type DominantTranslation = FindDominantType<
25
- [
26
- typeof enTranslations,
27
- typeof swTranslations,
28
- typeof gbTranslations,
29
- typeof caTranslations,
30
- typeof sctTranslations,
31
- ]
32
- >
33
-
34
- export type ISValidTranslation<T extends DominantTranslation> = T