@magmamath/students-features 1.3.3-rc.2 → 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 (170) 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/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
  44. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  45. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +1 -1
  46. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  47. package/dist/module/features/chatbot/helpers.js +1 -1
  48. package/dist/module/features/chatbot/helpers.js.map +1 -1
  49. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -1
  50. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  51. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +1 -1
  52. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  53. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +1 -1
  54. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  55. package/dist/module/features/feedback/components/EmptyComment.js +1 -1
  56. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  57. package/dist/module/features/feedback/model/comments.js +1 -1
  58. package/dist/module/features/feedback/model/comments.js.map +1 -1
  59. package/dist/module/features/gifCelebrations/components/Gif.js +1 -1
  60. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
  61. package/dist/module/features/keyboard/components/Numpad/Numpad.js +1 -1
  62. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  63. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +1 -1
  64. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  65. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +1 -1
  66. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  67. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +1 -1
  68. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  69. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +1 -1
  70. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  71. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -1
  72. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  73. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +1 -1
  74. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  75. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +1 -1
  76. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  77. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +1 -1
  78. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  79. package/dist/module/lib/helpers/helpers.js +1 -1
  80. package/dist/module/lib/helpers/helpers.js.map +1 -1
  81. package/dist/module/shared/translation/i18n.d.js +5 -0
  82. package/dist/module/shared/translation/i18n.d.js.map +1 -0
  83. package/dist/module/shared/translation/{hooks.js → i18n.js} +10 -3
  84. package/dist/module/shared/translation/i18n.js.map +1 -0
  85. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
  86. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.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/gifCelebrations/helpers.d.ts +1 -1
  89. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
  90. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
  91. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  92. package/dist/typescript/commonjs/shared/translation/{types.d.ts → i18n.d.ts} +5 -3
  93. package/dist/typescript/commonjs/shared/translation/i18n.d.ts.map +1 -0
  94. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
  95. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  96. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  97. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +1 -1
  98. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
  99. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
  100. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  101. package/dist/typescript/module/shared/translation/{types.d.ts → i18n.d.ts} +5 -3
  102. package/dist/typescript/module/shared/translation/i18n.d.ts.map +1 -0
  103. package/package.json +1 -1
  104. package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -1
  105. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +1 -1
  106. package/src/features/chatbot/helpers.ts +1 -1
  107. package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -2
  108. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +1 -1
  109. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +1 -1
  110. package/src/features/feedback/components/EmptyComment.tsx +1 -1
  111. package/src/features/feedback/model/comments.ts +1 -1
  112. package/src/features/gifCelebrations/components/Gif.tsx +1 -1
  113. package/src/features/gifCelebrations/helpers.ts +1 -1
  114. package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -1
  115. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +1 -1
  116. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +1 -1
  117. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +1 -1
  118. package/src/features/voice/recording/components/VoiceRecordButton.tsx +1 -1
  119. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +2 -2
  120. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +1 -1
  121. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +1 -1
  122. package/src/features/voice/recording/model/VoiceRecord.model.ts +1 -1
  123. package/src/lib/helpers/helpers.ts +1 -1
  124. package/src/shared/translation/i18n.d.ts +21 -0
  125. package/src/shared/translation/i18n.ts +17 -0
  126. package/dist/commonjs/shared/translation/constants.js +0 -8
  127. package/dist/commonjs/shared/translation/constants.js.map +0 -1
  128. package/dist/commonjs/shared/translation/helpers.js +0 -17
  129. package/dist/commonjs/shared/translation/helpers.js.map +0 -1
  130. package/dist/commonjs/shared/translation/hooks.js +0 -17
  131. package/dist/commonjs/shared/translation/hooks.js.map +0 -1
  132. package/dist/commonjs/shared/translation/index.js +0 -20
  133. package/dist/commonjs/shared/translation/index.js.map +0 -1
  134. package/dist/commonjs/shared/translation/schema.json +0 -66
  135. package/dist/commonjs/shared/translation/types.js +0 -6
  136. package/dist/commonjs/shared/translation/types.js.map +0 -1
  137. package/dist/module/shared/translation/constants.js +0 -4
  138. package/dist/module/shared/translation/constants.js.map +0 -1
  139. package/dist/module/shared/translation/helpers.js +0 -11
  140. package/dist/module/shared/translation/helpers.js.map +0 -1
  141. package/dist/module/shared/translation/hooks.js.map +0 -1
  142. package/dist/module/shared/translation/index.js +0 -5
  143. package/dist/module/shared/translation/index.js.map +0 -1
  144. package/dist/module/shared/translation/schema.json +0 -66
  145. package/dist/module/shared/translation/types.js +0 -4
  146. package/dist/module/shared/translation/types.js.map +0 -1
  147. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -2
  148. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +0 -1
  149. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +0 -3
  150. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +0 -1
  151. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +0 -3
  152. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +0 -1
  153. package/dist/typescript/commonjs/shared/translation/index.d.ts +0 -4
  154. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +0 -1
  155. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +0 -1
  156. package/dist/typescript/module/shared/translation/constants.d.ts +0 -2
  157. package/dist/typescript/module/shared/translation/constants.d.ts.map +0 -1
  158. package/dist/typescript/module/shared/translation/helpers.d.ts +0 -3
  159. package/dist/typescript/module/shared/translation/helpers.d.ts.map +0 -1
  160. package/dist/typescript/module/shared/translation/hooks.d.ts +0 -3
  161. package/dist/typescript/module/shared/translation/hooks.d.ts.map +0 -1
  162. package/dist/typescript/module/shared/translation/index.d.ts +0 -4
  163. package/dist/typescript/module/shared/translation/index.d.ts.map +0 -1
  164. package/dist/typescript/module/shared/translation/types.d.ts.map +0 -1
  165. package/src/shared/translation/constants.ts +0 -1
  166. package/src/shared/translation/helpers.ts +0 -7
  167. package/src/shared/translation/hooks.ts +0 -9
  168. package/src/shared/translation/index.ts +0 -3
  169. package/src/shared/translation/schema.json +0 -66
  170. package/src/shared/translation/types.ts +0 -5
@@ -1,66 +0,0 @@
1
- {
2
- "chat": {
3
- "anotherHint": "Give me another hint",
4
- "answerAgain": "Answer again to get another hint!",
5
- "errorMessage": "Something went wrong! Try again",
6
- "getHint": "Get a hint",
7
- "giveHint": "I need a hint",
8
- "giveHintOpenChat": "I need a hint",
9
- "howCanIHelp": "Hi! Do you want help?",
10
- "inputPlaceholder": "Type...",
11
- "needHint": "I need a hint",
12
- "showError": "Show error"
13
- },
14
- "exampleSolution": {
15
- "aha": "Aha!",
16
- "errorMessage": "Something went wrong with generating an example solution",
17
- "exampleSolution": "Example solution",
18
- "letMeThink": "Let me think..."
19
- },
20
- "gifCelebrations": {
21
- "almostThere": "Almost there",
22
- "greatStart": "Great start!",
23
- "onTheWay": "On the way!"
24
- },
25
- "keyboard": {
26
- "area": "Area",
27
- "length": "Length",
28
- "time": "Time",
29
- "volume": "Volume",
30
- "weight": "Weight"
31
- },
32
- "locale": "en-SE",
33
- "teacherFeedback": {
34
- "noComments": "No comments yet"
35
- },
36
- "time": {
37
- "dayAgo": "day ago",
38
- "daysAgo": "{{count}} days ago",
39
- "hourAgo": "hour ago",
40
- "hoursAgo": "{{count}} hours ago",
41
- "justNow": "just now",
42
- "minuteAgo": "minute ago",
43
- "minutesAgo": "{{count}} minutes ago",
44
- "monthAgo": "month ago",
45
- "monthsAgo": "{{count}} months ago",
46
- "yearAgo": "year ago",
47
- "yearsAgo": "{{count}} years ago"
48
- },
49
- "voice": {
50
- "attempt": "Attempt '{{'number'}}'",
51
- "cancel": "Cancel",
52
- "delete": "Delete",
53
- "deleteRecording": "Delete recording?",
54
- "noMicrophoneAccess": "No microphone access.",
55
- "noMicrophoneAccessBySystem": "Microphone access denied by system settings.",
56
- "noMicrophoneFound": "No microphone found.",
57
- "recordingDeleted": "Recording successfully deleted.",
58
- "redo": "Redo",
59
- "redoRecording": "Redo recording?",
60
- "thisWillRemoveRecording": "This will remove your previous recording.",
61
- "transcriptions": "Transcriptions",
62
- "transcriptNotAvailable": "Transcript not available",
63
- "uploadFailed": "Upload failed. Please try again.",
64
- "youWontBeAbleToRecover": "You won't be able to recover this file once it's gone."
65
- }
66
- }
@@ -1,5 +0,0 @@
1
- import { TFuncKey } from 'i18next'
2
- import { NAMESPACE } from './constants'
3
-
4
- export type TranslationKeys = TFuncKey<typeof NAMESPACE>
5
- export type GetText = (key: TranslationKeys, args?: Record<string, string> | null) => string