@magmamath/students-features 1.3.3-rc.1 → 1.3.3-rc.3

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 (177) 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 +2 -2
  8. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  9. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -2
  10. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  11. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +2 -2
  12. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  13. package/dist/commonjs/features/feedback/components/EmptyComment.js +2 -2
  14. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
  15. package/dist/commonjs/features/feedback/model/comments.js +2 -2
  16. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  17. package/dist/commonjs/features/gifCelebrations/components/Gif.js +2 -2
  18. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -1
  19. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +2 -2
  20. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  21. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +2 -2
  22. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  23. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +2 -2
  24. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  25. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +2 -2
  26. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  27. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +2 -2
  28. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  29. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +2 -2
  30. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  31. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +2 -2
  32. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  33. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +2 -2
  34. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  35. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +7 -7
  36. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  37. package/dist/commonjs/lib/helpers/helpers.js +12 -12
  38. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  39. package/dist/commonjs/shared/translation/i18n.d.js +5 -0
  40. package/dist/commonjs/shared/translation/i18n.d.js.map +1 -0
  41. package/dist/commonjs/shared/translation/i18n.js +26 -0
  42. package/dist/commonjs/shared/translation/i18n.js.map +1 -0
  43. package/dist/commonjs/shared/translation/react-i18next.d.js +5 -0
  44. package/dist/commonjs/shared/translation/react-i18next.d.js.map +1 -0
  45. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
  46. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  47. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +1 -1
  48. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  49. package/dist/module/features/chatbot/helpers.js +1 -1
  50. package/dist/module/features/chatbot/helpers.js.map +1 -1
  51. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -1
  52. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  53. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +1 -1
  54. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  55. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +1 -1
  56. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  57. package/dist/module/features/feedback/components/EmptyComment.js +1 -1
  58. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  59. package/dist/module/features/feedback/model/comments.js +1 -1
  60. package/dist/module/features/feedback/model/comments.js.map +1 -1
  61. package/dist/module/features/gifCelebrations/components/Gif.js +1 -1
  62. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
  63. package/dist/module/features/keyboard/components/Numpad/Numpad.js +1 -1
  64. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  65. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +1 -1
  66. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  67. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +1 -1
  68. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  69. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +1 -1
  70. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  71. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +1 -1
  72. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  73. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -1
  74. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  75. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +1 -1
  76. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  77. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +1 -1
  78. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  79. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +1 -1
  80. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  81. package/dist/module/lib/helpers/helpers.js +1 -1
  82. package/dist/module/lib/helpers/helpers.js.map +1 -1
  83. package/dist/module/shared/translation/i18n.d.js +5 -0
  84. package/dist/module/shared/translation/i18n.d.js.map +1 -0
  85. package/dist/module/shared/translation/{hooks.js → i18n.js} +10 -3
  86. package/dist/module/shared/translation/i18n.js.map +1 -0
  87. package/dist/module/shared/translation/react-i18next.d.js +5 -0
  88. package/dist/module/shared/translation/react-i18next.d.js.map +1 -0
  89. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +2 -1
  90. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  91. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  92. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +1 -1
  93. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
  94. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
  95. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/shared/translation/i18n.d.ts +7 -0
  97. package/dist/typescript/commonjs/shared/translation/i18n.d.ts.map +1 -0
  98. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +2 -1
  99. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  100. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  101. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +1 -1
  102. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
  103. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
  104. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  105. package/dist/typescript/module/shared/translation/i18n.d.ts +7 -0
  106. package/dist/typescript/module/shared/translation/i18n.d.ts.map +1 -0
  107. package/package.json +16 -16
  108. package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -1
  109. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +1 -1
  110. package/src/features/chatbot/helpers.ts +1 -1
  111. package/src/features/chatbot/model/ChatBoxTextManager.ts +3 -3
  112. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +1 -1
  113. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +1 -1
  114. package/src/features/feedback/components/EmptyComment.tsx +1 -1
  115. package/src/features/feedback/model/comments.ts +1 -1
  116. package/src/features/gifCelebrations/components/Gif.tsx +1 -1
  117. package/src/features/gifCelebrations/helpers.ts +1 -1
  118. package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -1
  119. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +1 -1
  120. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +1 -1
  121. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +1 -1
  122. package/src/features/voice/recording/components/VoiceRecordButton.tsx +1 -1
  123. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +2 -2
  124. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +1 -1
  125. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +1 -1
  126. package/src/features/voice/recording/model/VoiceRecord.model.ts +1 -1
  127. package/src/lib/helpers/helpers.ts +1 -1
  128. package/src/shared/translation/i18n.d.ts +21 -0
  129. package/src/shared/translation/i18n.ts +17 -0
  130. package/src/shared/translation/react-i18next.d.ts +21 -0
  131. package/dist/commonjs/locales/schema.json +0 -1
  132. package/dist/commonjs/shared/translation/constants.js +0 -8
  133. package/dist/commonjs/shared/translation/constants.js.map +0 -1
  134. package/dist/commonjs/shared/translation/helpers.js +0 -17
  135. package/dist/commonjs/shared/translation/helpers.js.map +0 -1
  136. package/dist/commonjs/shared/translation/hooks.js +0 -17
  137. package/dist/commonjs/shared/translation/hooks.js.map +0 -1
  138. package/dist/commonjs/shared/translation/index.js +0 -20
  139. package/dist/commonjs/shared/translation/index.js.map +0 -1
  140. package/dist/commonjs/shared/translation/types.js +0 -2
  141. package/dist/commonjs/shared/translation/types.js.map +0 -1
  142. package/dist/module/locales/schema.json +0 -1
  143. package/dist/module/shared/translation/constants.js +0 -4
  144. package/dist/module/shared/translation/constants.js.map +0 -1
  145. package/dist/module/shared/translation/helpers.js +0 -11
  146. package/dist/module/shared/translation/helpers.js.map +0 -1
  147. package/dist/module/shared/translation/hooks.js.map +0 -1
  148. package/dist/module/shared/translation/index.js +0 -5
  149. package/dist/module/shared/translation/index.js.map +0 -1
  150. package/dist/module/shared/translation/types.js +0 -2
  151. package/dist/module/shared/translation/types.js.map +0 -1
  152. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -2
  153. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +0 -1
  154. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +0 -3
  155. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +0 -1
  156. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +0 -3
  157. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +0 -1
  158. package/dist/typescript/commonjs/shared/translation/index.d.ts +0 -4
  159. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +0 -1
  160. package/dist/typescript/commonjs/shared/translation/types.d.ts +0 -3
  161. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +0 -1
  162. package/dist/typescript/module/shared/translation/constants.d.ts +0 -2
  163. package/dist/typescript/module/shared/translation/constants.d.ts.map +0 -1
  164. package/dist/typescript/module/shared/translation/helpers.d.ts +0 -3
  165. package/dist/typescript/module/shared/translation/helpers.d.ts.map +0 -1
  166. package/dist/typescript/module/shared/translation/hooks.d.ts +0 -3
  167. package/dist/typescript/module/shared/translation/hooks.d.ts.map +0 -1
  168. package/dist/typescript/module/shared/translation/index.d.ts +0 -4
  169. package/dist/typescript/module/shared/translation/index.d.ts.map +0 -1
  170. package/dist/typescript/module/shared/translation/types.d.ts +0 -3
  171. package/dist/typescript/module/shared/translation/types.d.ts.map +0 -1
  172. package/src/locales/schema.json +0 -1
  173. package/src/shared/translation/constants.ts +0 -1
  174. package/src/shared/translation/helpers.ts +0 -7
  175. package/src/shared/translation/hooks.ts +0 -9
  176. package/src/shared/translation/index.ts +0 -3
  177. package/src/shared/translation/types.ts +0 -2
@@ -1,9 +0,0 @@
1
- import { useCallback } from 'react'
2
- import { useTranslation } from 'react-i18next'
3
- import { NAMESPACE } from './constants'
4
- import { GetText } from './types'
5
-
6
- export const useText = (): GetText => {
7
- const { t } = useTranslation(NAMESPACE)
8
- return useCallback<GetText>((key, args = null) => t(key, args ?? undefined), [t])
9
- }
@@ -1,3 +0,0 @@
1
- export { useText } from './hooks'
2
- export { getText as t } from './helpers'
3
- export type { TranslationKeys, GetText } from './types'
@@ -1,2 +0,0 @@
1
- export type TranslationKeys = string
2
- export type GetText = (key: TranslationKeys, args?: Record<string, string> | null) => string