@magmamath/students-features 1.3.23-rc.8 → 1.3.23

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 (330) hide show
  1. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +1 -0
  2. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +1 -1
  3. package/dist/commonjs/features/pmProgress/components/header/StartButton.js +10 -1
  4. package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -1
  5. package/dist/commonjs/features/pmProgress/components/list/{ListCard.js → DomainCard.js} +10 -22
  6. package/dist/commonjs/features/pmProgress/components/list/DomainCard.js.map +1 -0
  7. package/dist/commonjs/features/pmProgress/components/list/Fluency.js +3 -3
  8. package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -1
  9. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +3 -3
  10. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -1
  11. package/dist/commonjs/features/pmProgress/components/list/{ListItem.js → StandardItem.js} +5 -5
  12. package/dist/commonjs/features/pmProgress/components/list/StandardItem.js.map +1 -0
  13. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +7 -4
  14. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
  15. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +1 -8
  16. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -1
  17. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +1 -1
  18. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
  19. package/dist/commonjs/features/voice/index.js +4 -4
  20. package/dist/commonjs/features/voice/index.js.map +1 -1
  21. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +245 -0
  22. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
  23. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +109 -0
  24. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
  25. package/dist/commonjs/features/voice/playing/hooks/{useVoiceTranscription.js → useVoiceTranscriptionsDropdown.js} +4 -4
  26. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
  27. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +34 -0
  28. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
  29. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js +4 -15
  30. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +1 -1
  31. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +2 -6
  32. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
  33. package/dist/commonjs/features/voice/playing/model/{VoiceTranscription.model.js → VoiceTranscriptionsDropdown.model.js} +4 -4
  34. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
  35. package/dist/commonjs/features/voice/types.js +1 -6
  36. package/dist/commonjs/features/voice/types.js.map +1 -1
  37. package/dist/commonjs/index.js +0 -12
  38. package/dist/commonjs/index.js.map +1 -1
  39. package/dist/module/features/pmProgress/components/chart/chart.helpers.js +1 -0
  40. package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +1 -1
  41. package/dist/module/features/pmProgress/components/header/StartButton.js +10 -1
  42. package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -1
  43. package/dist/module/features/pmProgress/components/list/{ListCard.js → DomainCard.js} +8 -20
  44. package/dist/module/features/pmProgress/components/list/DomainCard.js.map +1 -0
  45. package/dist/module/features/pmProgress/components/list/Fluency.js +3 -3
  46. package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -1
  47. package/dist/module/features/pmProgress/components/list/PmDomainList.js +3 -3
  48. package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -1
  49. package/dist/module/features/pmProgress/components/list/{ListItem.js → StandardItem.js} +3 -3
  50. package/dist/module/features/pmProgress/components/list/StandardItem.js.map +1 -0
  51. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +7 -4
  52. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
  53. package/dist/module/features/pmProgress/components/standard/StandardTag.js +2 -9
  54. package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -1
  55. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +1 -1
  56. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
  57. package/dist/module/features/voice/index.js +1 -1
  58. package/dist/module/features/voice/index.js.map +1 -1
  59. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +238 -0
  60. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
  61. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +103 -0
  62. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
  63. package/dist/module/features/voice/playing/hooks/{useVoiceTranscription.js → useVoiceTranscriptionsDropdown.js} +2 -2
  64. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
  65. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +29 -0
  66. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
  67. package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js +4 -15
  68. package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +1 -1
  69. package/dist/module/features/voice/playing/model/VoicePlayer.model.js +2 -6
  70. package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
  71. package/dist/module/features/voice/playing/model/{VoiceTranscription.model.js → VoiceTranscriptionsDropdown.model.js} +2 -2
  72. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
  73. package/dist/module/features/voice/types.js +0 -5
  74. package/dist/module/features/voice/types.js.map +1 -1
  75. package/dist/module/index.js +0 -1
  76. package/dist/module/index.js.map +1 -1
  77. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
  78. package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
  79. package/dist/typescript/commonjs/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
  80. package/dist/typescript/commonjs/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
  81. package/dist/typescript/commonjs/features/pmProgress/components/list/StandardItem.d.ts +13 -0
  82. package/dist/typescript/commonjs/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
  83. package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
  84. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  85. package/dist/typescript/commonjs/features/voice/index.d.ts +1 -1
  86. package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -1
  87. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
  88. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  89. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  90. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  91. package/dist/typescript/commonjs/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
  92. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  93. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  94. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  95. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
  96. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
  97. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  98. package/dist/typescript/commonjs/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
  99. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  100. package/dist/typescript/commonjs/features/voice/types.d.ts +1 -9
  101. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
  102. package/dist/typescript/commonjs/index.d.ts +0 -1
  103. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  104. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
  105. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
  106. package/dist/typescript/module/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
  107. package/dist/typescript/module/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
  108. package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts +13 -0
  109. package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
  110. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
  111. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  112. package/dist/typescript/module/features/voice/index.d.ts +1 -1
  113. package/dist/typescript/module/features/voice/index.d.ts.map +1 -1
  114. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
  115. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  116. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  117. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  118. package/dist/typescript/module/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
  119. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  120. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  121. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  122. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
  123. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
  124. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  125. package/dist/typescript/module/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
  126. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  127. package/dist/typescript/module/features/voice/types.d.ts +1 -9
  128. package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
  129. package/dist/typescript/module/index.d.ts +0 -1
  130. package/dist/typescript/module/index.d.ts.map +1 -1
  131. package/package.json +1 -1
  132. package/src/features/pmProgress/components/chart/chart.helpers.ts +1 -0
  133. package/src/features/pmProgress/components/header/StartButton.tsx +11 -1
  134. package/src/features/pmProgress/components/list/{ListCard.tsx → DomainCard.tsx} +12 -19
  135. package/src/features/pmProgress/components/list/Fluency.tsx +3 -3
  136. package/src/features/pmProgress/components/list/PmDomainList.tsx +3 -3
  137. package/src/features/pmProgress/components/list/{ListItem.tsx → StandardItem.tsx} +4 -4
  138. package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +8 -4
  139. package/src/features/pmProgress/components/standard/StandardTag.tsx +2 -6
  140. package/src/features/pmProgress/shared/pmProgress.helpers.ts +1 -2
  141. package/src/features/voice/index.ts +1 -1
  142. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +296 -0
  143. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +128 -0
  144. package/src/features/voice/playing/hooks/{useVoiceTranscription.ts → useVoiceTranscriptionsDropdown.ts} +2 -2
  145. package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +40 -0
  146. package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +5 -8
  147. package/src/features/voice/playing/model/VoicePlayer.model.ts +2 -7
  148. package/src/features/voice/playing/model/{VoiceTranscription.model.ts → VoiceTranscriptionsDropdown.model.ts} +2 -2
  149. package/src/features/voice/types.ts +0 -15
  150. package/src/index.ts +0 -1
  151. package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
  152. package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
  153. package/dist/commonjs/features/translation/constants.js +0 -11
  154. package/dist/commonjs/features/translation/constants.js.map +0 -1
  155. package/dist/commonjs/features/translation/helpers.js +0 -60
  156. package/dist/commonjs/features/translation/helpers.js.map +0 -1
  157. package/dist/commonjs/features/translation/index.js +0 -105
  158. package/dist/commonjs/features/translation/index.js.map +0 -1
  159. package/dist/commonjs/features/translation/model/TranslationModel.js +0 -122
  160. package/dist/commonjs/features/translation/model/TranslationModel.js.map +0 -1
  161. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js +0 -142
  162. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js.map +0 -1
  163. package/dist/commonjs/features/translation/model/TranslationService.js +0 -112
  164. package/dist/commonjs/features/translation/model/TranslationService.js.map +0 -1
  165. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js +0 -314
  166. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js.map +0 -1
  167. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js +0 -43
  168. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
  169. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js +0 -203
  170. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js.map +0 -1
  171. package/dist/commonjs/features/translation/providers/google.types.js +0 -2
  172. package/dist/commonjs/features/translation/providers/google.types.js.map +0 -1
  173. package/dist/commonjs/features/translation/providers/translation.interface.js +0 -35
  174. package/dist/commonjs/features/translation/providers/translation.interface.js.map +0 -1
  175. package/dist/commonjs/features/translation/types.js +0 -2
  176. package/dist/commonjs/features/translation/types.js.map +0 -1
  177. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js +0 -44
  178. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
  179. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js +0 -131
  180. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js.map +0 -1
  181. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -66
  182. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
  183. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -59
  184. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
  185. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
  186. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -37
  187. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
  188. package/dist/commonjs/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
  189. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -62
  190. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
  191. package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
  192. package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
  193. package/dist/module/features/translation/constants.js +0 -7
  194. package/dist/module/features/translation/constants.js.map +0 -1
  195. package/dist/module/features/translation/helpers.js +0 -53
  196. package/dist/module/features/translation/helpers.js.map +0 -1
  197. package/dist/module/features/translation/index.js +0 -12
  198. package/dist/module/features/translation/index.js.map +0 -1
  199. package/dist/module/features/translation/model/TranslationModel.js +0 -117
  200. package/dist/module/features/translation/model/TranslationModel.js.map +0 -1
  201. package/dist/module/features/translation/model/TranslationPreprocessor.js +0 -137
  202. package/dist/module/features/translation/model/TranslationPreprocessor.js.map +0 -1
  203. package/dist/module/features/translation/model/TranslationService.js +0 -107
  204. package/dist/module/features/translation/model/TranslationService.js.map +0 -1
  205. package/dist/module/features/translation/preserve/wordsToPreserve.js +0 -310
  206. package/dist/module/features/translation/preserve/wordsToPreserve.js.map +0 -1
  207. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js +0 -38
  208. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
  209. package/dist/module/features/translation/providers/google/supportedLanguages.js +0 -199
  210. package/dist/module/features/translation/providers/google/supportedLanguages.js.map +0 -1
  211. package/dist/module/features/translation/providers/google.types.js +0 -2
  212. package/dist/module/features/translation/providers/google.types.js.map +0 -1
  213. package/dist/module/features/translation/providers/translation.interface.js +0 -30
  214. package/dist/module/features/translation/providers/translation.interface.js.map +0 -1
  215. package/dist/module/features/translation/types.js +0 -2
  216. package/dist/module/features/translation/types.js.map +0 -1
  217. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js +0 -38
  218. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
  219. package/dist/module/features/voice/playing/components/VoiceTranscription.js +0 -123
  220. package/dist/module/features/voice/playing/components/VoiceTranscription.js.map +0 -1
  221. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -58
  222. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
  223. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -51
  224. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
  225. package/dist/module/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
  226. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -32
  227. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
  228. package/dist/module/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
  229. package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -57
  230. package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
  231. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  232. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +0 -13
  233. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  234. package/dist/typescript/commonjs/features/translation/constants.d.ts +0 -5
  235. package/dist/typescript/commonjs/features/translation/constants.d.ts.map +0 -1
  236. package/dist/typescript/commonjs/features/translation/helpers.d.ts +0 -9
  237. package/dist/typescript/commonjs/features/translation/helpers.d.ts.map +0 -1
  238. package/dist/typescript/commonjs/features/translation/index.d.ts +0 -12
  239. package/dist/typescript/commonjs/features/translation/index.d.ts.map +0 -1
  240. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts +0 -33
  241. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts.map +0 -1
  242. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts +0 -34
  243. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
  244. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts +0 -40
  245. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts.map +0 -1
  246. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts +0 -3
  247. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
  248. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -16
  249. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
  250. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts +0 -197
  251. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
  252. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts +0 -15
  253. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts.map +0 -1
  254. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts +0 -23
  255. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts.map +0 -1
  256. package/dist/typescript/commonjs/features/translation/types.d.ts +0 -27
  257. package/dist/typescript/commonjs/features/translation/types.d.ts.map +0 -1
  258. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
  259. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
  260. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
  261. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
  262. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
  263. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
  264. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
  265. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
  266. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
  267. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
  268. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
  269. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
  270. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
  271. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
  272. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  273. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +0 -13
  274. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  275. package/dist/typescript/module/features/translation/constants.d.ts +0 -5
  276. package/dist/typescript/module/features/translation/constants.d.ts.map +0 -1
  277. package/dist/typescript/module/features/translation/helpers.d.ts +0 -9
  278. package/dist/typescript/module/features/translation/helpers.d.ts.map +0 -1
  279. package/dist/typescript/module/features/translation/index.d.ts +0 -12
  280. package/dist/typescript/module/features/translation/index.d.ts.map +0 -1
  281. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts +0 -33
  282. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts.map +0 -1
  283. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts +0 -34
  284. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
  285. package/dist/typescript/module/features/translation/model/TranslationService.d.ts +0 -40
  286. package/dist/typescript/module/features/translation/model/TranslationService.d.ts.map +0 -1
  287. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts +0 -3
  288. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
  289. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -16
  290. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
  291. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts +0 -197
  292. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
  293. package/dist/typescript/module/features/translation/providers/google.types.d.ts +0 -15
  294. package/dist/typescript/module/features/translation/providers/google.types.d.ts.map +0 -1
  295. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts +0 -23
  296. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts.map +0 -1
  297. package/dist/typescript/module/features/translation/types.d.ts +0 -27
  298. package/dist/typescript/module/features/translation/types.d.ts.map +0 -1
  299. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
  300. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
  301. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
  302. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
  303. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
  304. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
  305. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
  306. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
  307. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
  308. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
  309. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
  310. package/dist/typescript/module/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
  311. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
  312. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
  313. package/src/features/translation/constants.ts +0 -4
  314. package/src/features/translation/helpers.ts +0 -63
  315. package/src/features/translation/index.ts +0 -30
  316. package/src/features/translation/model/TranslationModel.ts +0 -174
  317. package/src/features/translation/model/TranslationPreprocessor.ts +0 -171
  318. package/src/features/translation/model/TranslationService.ts +0 -148
  319. package/src/features/translation/preserve/wordsToPreserve.ts +0 -87
  320. package/src/features/translation/providers/google/GoogleTranslationProvider.ts +0 -34
  321. package/src/features/translation/providers/google/supportedLanguages.ts +0 -196
  322. package/src/features/translation/providers/google.types.ts +0 -16
  323. package/src/features/translation/providers/translation.interface.ts +0 -49
  324. package/src/features/translation/types.ts +0 -30
  325. package/src/features/voice/playing/components/VoiceTranscriptContent.tsx +0 -37
  326. package/src/features/voice/playing/components/VoiceTranscription.tsx +0 -163
  327. package/src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx +0 -59
  328. package/src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx +0 -62
  329. package/src/features/voice/playing/hooks/useVoiceTranscriptionEffects.ts +0 -44
  330. package/src/features/voice/playing/model/VoiceTranscriptionTranslation.model.ts +0 -75
@@ -1,197 +0,0 @@
1
- export declare const GoogleTranslateLanguage: {
2
- ABKHAZ: string;
3
- ACEHNESE: string;
4
- ACHOLI: string;
5
- AFRIKAANS: string;
6
- ALBANIAN: string;
7
- ALUR: string;
8
- AMHARIC: string;
9
- ARABIC: string;
10
- ARMENIAN: string;
11
- ASSAMESE: string;
12
- AWADHI: string;
13
- AYMARA: string;
14
- AZERBAIJANI: string;
15
- BALINESE: string;
16
- BAMBARA: string;
17
- BASHKIR: string;
18
- BASQUE: string;
19
- BATAK_KARO: string;
20
- BATAK_SIMALUNGUN: string;
21
- BATAK_TOBA: string;
22
- BELARUSIAN: string;
23
- BEMBA: string;
24
- BENGALI: string;
25
- BETAWI: string;
26
- BHOJPURI: string;
27
- BIKOL: string;
28
- BOSNIAN: string;
29
- BRETON: string;
30
- BULGARIAN: string;
31
- BURMESE: string;
32
- BURYAT: string;
33
- CANTONESE: string;
34
- CATALAN: string;
35
- CEBUANO: string;
36
- CHICHEWA_NYANJA: string;
37
- CHINESE_SIMPLIFIED: string;
38
- CHINESE_TRADITIONAL: string;
39
- CHUVASH: string;
40
- CORSICAN: string;
41
- CRIMEAN_TATAR: string;
42
- CROATIAN: string;
43
- CZECH: string;
44
- DANISH: string;
45
- DINKA: string;
46
- DIVEHI: string;
47
- DOGRI: string;
48
- DOMBE: string;
49
- DUTCH: string;
50
- DZONGKHA: string;
51
- ENGLISH: string;
52
- ESPERANTO: string;
53
- ESTONIAN: string;
54
- EWE: string;
55
- FIJIAN: string;
56
- FILIPINO_TAGALOG: string;
57
- FINNISH: string;
58
- FRENCH: string;
59
- FRENCH_CANADA: string;
60
- FRENCH_FRANCE: string;
61
- FRISIAN: string;
62
- FULFULDE: string;
63
- GA: string;
64
- GALICIAN: string;
65
- GANDA_LUGANDA: string;
66
- GEORGIAN: string;
67
- GERMAN: string;
68
- GREEK: string;
69
- GUARANI: string;
70
- GUJARATI: string;
71
- HAITIAN_CREOLE: string;
72
- HAKHA_CHIN: string;
73
- HAUSA: string;
74
- HAWAIIAN: string;
75
- HEBREW: string;
76
- HILIGAYNON: string;
77
- HINDI: string;
78
- HMONG: string;
79
- HUNGARIAN: string;
80
- HUNSRIK: string;
81
- ICELANDIC: string;
82
- IGBO: string;
83
- ILOKO: string;
84
- INDONESIAN: string;
85
- IRISH: string;
86
- ITALIAN: string;
87
- JAPANESE: string;
88
- JAVANESE: string;
89
- KANNADA: string;
90
- KAPAMPANGAN: string;
91
- KAZAKH: string;
92
- KHMER: string;
93
- KIGA: string;
94
- KINYARWANDA: string;
95
- KITUBA: string;
96
- KONKANI: string;
97
- KOREAN: string;
98
- KRIO: string;
99
- KURMANJI: string;
100
- KYRGYZ: string;
101
- LAO: string;
102
- LATGALIAN: string;
103
- LATIN: string;
104
- LATVIAN: string;
105
- LIGURIAN: string;
106
- LIMBURGAN: string;
107
- LINGALA: string;
108
- LITHUANIAN: string;
109
- LOMBARD: string;
110
- LUO: string;
111
- LUXEMBOURGISH: string;
112
- MACEDONIAN: string;
113
- MAITHILI: string;
114
- MAKASSAR: string;
115
- MALAGASY: string;
116
- MALAY: string;
117
- MALAYALAM: string;
118
- MALAY_JAWI: string;
119
- MALTESE: string;
120
- MAORI: string;
121
- MARATHI: string;
122
- MEADOW_MARI: string;
123
- MEITEILON_MANIPURI: string;
124
- MINANG: string;
125
- MIZO: string;
126
- MONGOLIAN: string;
127
- NDEBELE_SOUTH: string;
128
- NEPALBHASA_NEWARI: string;
129
- NEPALI: string;
130
- NORTHERN_SOTHO: string;
131
- NORWEGIAN: string;
132
- NUER: string;
133
- OCCITAN: string;
134
- ODIA: string;
135
- OROMO: string;
136
- PANGASINAN: string;
137
- PAPIAMENTO: string;
138
- PASHTO: string;
139
- PERSIAN: string;
140
- POLISH: string;
141
- PORTUGUESE: string;
142
- PORTUGUESE_BRAZIL: string;
143
- PORTUGUESE_PORTUGAL: string;
144
- PUNJABI: string;
145
- PUNJABI_SHAHMUKHI: string;
146
- QUECHUA: string;
147
- ROMANI: string;
148
- ROMANIAN: string;
149
- RUNDI: string;
150
- RUSSIAN: string;
151
- SAMOAN: string;
152
- SANGO: string;
153
- SANSKRIT: string;
154
- SCOTS_GAELIC: string;
155
- SERBIAN: string;
156
- SESOTHO: string;
157
- SEYCHELLOIS_CREOLE: string;
158
- SHAN: string;
159
- SHONA: string;
160
- SICILIAN: string;
161
- SILESIAN: string;
162
- SINDHI: string;
163
- SINHALA: string;
164
- SLOVAK: string;
165
- SLOVENIAN: string;
166
- SOMALI: string;
167
- SORANI: string;
168
- SPANISH: string;
169
- SUNDANESE: string;
170
- SWAHILI: string;
171
- SWATI: string;
172
- SWEDISH: string;
173
- TAJIK: string;
174
- TAMIL: string;
175
- TATAR: string;
176
- TELUGU: string;
177
- TETUM: string;
178
- THAI: string;
179
- TIGRINYA: string;
180
- TSONGA: string;
181
- TSWANA: string;
182
- TURKISH: string;
183
- TURKMEN: string;
184
- TWI_AKAN: string;
185
- UKRAINIAN: string;
186
- URDU: string;
187
- UYGHUR: string;
188
- UZBEK: string;
189
- VIETNAMESE: string;
190
- WELSH: string;
191
- XHOSA: string;
192
- YIDDISH: string;
193
- YORUBA: string;
194
- YUCATEC_MAYA: string;
195
- ZULU: string;
196
- };
197
- //# sourceMappingURL=supportedLanguages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"supportedLanguages.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/translation/providers/google/supportedLanguages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmMnC,CAAA"}
@@ -1,15 +0,0 @@
1
- export type GoogleTranslateProps = {
2
- text: string[];
3
- targetLanguage: string;
4
- sourceLanguage?: string;
5
- };
6
- export type GoogleTranslation = {
7
- translatedText: string;
8
- detectedSourceLanguage: string;
9
- };
10
- export type GoogleTranslateResponse = {
11
- data: {
12
- translations: GoogleTranslation[];
13
- };
14
- };
15
- //# sourceMappingURL=google.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"google.types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/translation/providers/google.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,EAAE,MAAM,CAAA;IACtB,sBAAsB,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE;QACJ,YAAY,EAAE,iBAAiB,EAAE,CAAA;KAClC,CAAA;CACF,CAAA"}
@@ -1,23 +0,0 @@
1
- export type LanguageGlossary = {
2
- [languageCode: string]: Record<string, string>;
3
- };
4
- type TranslationProviderProps = {
5
- supportedLanguages: string[];
6
- glossaries?: LanguageGlossary;
7
- };
8
- export declare abstract class TranslationProvider {
9
- protected readonly supportedLanguages: ReadonlySet<string>;
10
- protected readonly glossaries: LanguageGlossary;
11
- protected constructor({ supportedLanguages, glossaries }: TranslationProviderProps);
12
- abstract request(text: string, targetLanguage: string, sourceLanguage?: string): Promise<string>;
13
- abstract requestBatch(text: string[], targetLanguage: string, sourceLanguage?: string): Promise<string[]>;
14
- isTargetSupported(language: string): boolean;
15
- getSupportedLanguages(): SetIterator<string>;
16
- /**
17
- * Replaces full standalone words in text using a custom glossary for the target language,
18
- * matching words like "Hello", or "Hej" regardless of case, but not when they appear inside other words.
19
- */
20
- applyGlossary(text: string, targetLanguage: string): string;
21
- }
22
- export {};
23
- //# sourceMappingURL=translation.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/translation/providers/translation.interface.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,KAAK,wBAAwB,GAAG;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B,CAAA;AAED,8BAAsB,mBAAmB;IACvC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAK;IAEpD,SAAS,aAAa,EAAE,kBAAkB,EAAE,UAAe,EAAE,EAAE,wBAAwB;aAKvE,OAAO,CACrB,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,CAAC;aACF,YAAY,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,cAAc,EAAE,MAAM,EACtB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,EAAE,CAAC;IAEb,iBAAiB,CAAC,QAAQ,EAAE,MAAM;IAIlC,qBAAqB;IAI5B;;;OAGG;IACI,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM;CAKnE"}
@@ -1,27 +0,0 @@
1
- export type TranslatableProblem = {
2
- description: string;
3
- richDescription?: string;
4
- answerVariants: string[];
5
- };
6
- export type TranslateAllFxParams<TProblem extends TranslatableProblem = TranslatableProblem> = {
7
- problem: TProblem | null;
8
- translationLanguageCode?: string | null;
9
- };
10
- export type TranslateFxParams = {
11
- cacheKey: string;
12
- text: string;
13
- };
14
- export type Replacement = {
15
- placeholder: string;
16
- original: string;
17
- leftPad?: boolean;
18
- rightPad?: boolean;
19
- };
20
- export type MaskSegmentParams = {
21
- text: string;
22
- regex: RegExp;
23
- placeholder: string;
24
- replacements: Replacement[];
25
- shouldSkip?: (match: string) => boolean;
26
- };
27
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/translation/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,oBAAoB,CAAC,QAAQ,SAAS,mBAAmB,GAAG,mBAAmB,IAAI;IAC7F,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAA;IACxB,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;CACxC,CAAA"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type VoiceTranscriptContentProps = {
3
- text: string;
4
- isLoading: boolean;
5
- };
6
- export declare const VoiceTranscriptContent: ({ text, isLoading }: VoiceTranscriptContentProps) => React.JSX.Element;
7
- export {};
8
- //# sourceMappingURL=VoiceTranscriptContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceTranscriptContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/components/VoiceTranscriptContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,sBAAsB,wBAAyB,2BAA2B,sBActF,CAAA"}
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import { AnswerAudio, VoiceTranscriptionVariant } from '../../types';
4
- import { VoicePlayerModel } from '../model';
5
- type VoiceTranscriptionProps = {
6
- style?: StyleProp<ViewStyle>;
7
- model: VoicePlayerModel;
8
- answers: AnswerAudio[];
9
- attemptOffset: number;
10
- attemptsCount: number;
11
- problemId: string;
12
- variant?: VoiceTranscriptionVariant;
13
- };
14
- export declare const VoiceTranscription: ({ style, model, answers, attemptOffset, attemptsCount, problemId, variant, }: VoiceTranscriptionProps) => React.JSX.Element;
15
- export {};
16
- //# sourceMappingURL=VoiceTranscription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceTranscription.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/components/VoiceTranscription.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAE9D,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAIrE,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAGpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAK3C,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,KAAK,EAAE,gBAAgB,CAAA;IACvB,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,yBAAyB,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,kBAAkB,iFAQ5B,uBAAuB,sBAgGzB,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { VoiceTranscriptionModel } from '../model/VoiceTranscription.model';
3
- type VoiceTranscriptionCollapsibleProps = {
4
- text: string;
5
- isLoading: boolean;
6
- dropdown: VoiceTranscriptionModel;
7
- };
8
- export declare const VoiceTranscriptionCollapsible: ({ text, isLoading, dropdown, }: VoiceTranscriptionCollapsibleProps) => React.JSX.Element;
9
- export {};
10
- //# sourceMappingURL=VoiceTranscriptionCollapsible.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceTranscriptionCollapsible.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAI1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAK3E,KAAK,kCAAkC,GAAG;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,uBAAuB,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,6BAA6B,mCAIvC,kCAAkC,sBAuBpC,CAAA"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PlayerState } from '../model';
3
- type VoiceTranscriptionsHeaderActionsProps = {
4
- playerState: PlayerState;
5
- isTranslationActive: boolean;
6
- canTranslate: boolean;
7
- onPlayPress: () => void;
8
- onTranslationPress: () => void;
9
- };
10
- export declare const VoiceTranscriptionHeaderActions: ({ playerState, isTranslationActive, canTranslate, onPlayPress, onTranslationPress, }: VoiceTranscriptionsHeaderActionsProps) => React.JSX.Element;
11
- export {};
12
- //# sourceMappingURL=VoiceTranscriptionHeaderActions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceTranscriptionHeaderActions.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAGtC,KAAK,qCAAqC,GAAG;IAC3C,WAAW,EAAE,WAAW,CAAA;IACxB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,YAAY,EAAE,OAAO,CAAA;IACrB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,+BAA+B,yFAMzC,qCAAqC,sBA8BvC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useVoiceTranscription.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/hooks/useVoiceTranscription.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,eAAO,MAAM,6BAA6B,UAAW,uBAAuB;;;;;;;;;;;0BAM7C,iBAAiB;CAwC/C,CAAA"}
@@ -1,12 +0,0 @@
1
- import { AnswerAudio } from '../../types';
2
- import { VoicePlayerModel } from '../model';
3
- type Params = {
4
- model: VoicePlayerModel;
5
- answers: AnswerAudio[];
6
- answersKey: string;
7
- problemId: string;
8
- activeAttempt: number | null;
9
- };
10
- export declare const useVoiceTranscriptionEffects: ({ model, answers, answersKey, problemId, activeAttempt, }: Params) => void;
11
- export {};
12
- //# sourceMappingURL=useVoiceTranscriptionEffects.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useVoiceTranscriptionEffects.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/hooks/useVoiceTranscriptionEffects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,gBAAgB,CAAA;IACvB,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,4BAA4B,8DAMtC,MAAM,SAyBR,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceTranscription.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoiceTranscription.model.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAClC,SAAgB,YAAY,yCAAgB;IAC5C,SAAgB,WAAW,4CAAyB;IACpD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,WAAW,4CAEP;CACrB"}
@@ -1,25 +0,0 @@
1
- import { VoiceTranscriptionsCollection } from './VoiceTranscriptionsCollection';
2
- import { VoicePlayerApi } from '../../types';
3
- type TranslateParams = {
4
- attemptNumber: number;
5
- targetLanguage: string;
6
- };
7
- type TranslateResult = {
8
- attemptNumber: number;
9
- text: string;
10
- };
11
- export declare class VoiceTranscriptionTranslationModel {
12
- private readonly collection;
13
- private readonly service;
14
- readonly toggle: import("effector").EventCallable<void>;
15
- readonly setActive: import("effector").EventCallable<boolean>;
16
- readonly clearCache: import("effector").EventCallable<void>;
17
- readonly reset: import("effector").EventCallable<void>;
18
- readonly $isActive: import("effector").StoreWritable<boolean>;
19
- readonly translate: import("effector").Effect<TranslateParams, TranslateResult | null, Error>;
20
- readonly $translations: import("effector").StoreWritable<Record<number, string>>;
21
- constructor(collection: VoiceTranscriptionsCollection, api: VoicePlayerApi);
22
- getTranslation(attemptNumber: number): string | undefined;
23
- }
24
- export {};
25
- //# sourceMappingURL=VoiceTranscriptionTranslation.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VoiceTranscriptionTranslation.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoiceTranscriptionTranslation.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAQ5C,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,qBAAa,kCAAkC;IAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAE5C,SAAgB,MAAM,yCAAgB;IACtC,SAAgB,SAAS,4CAAyB;IAClD,SAAgB,UAAU,yCAAgB;IAC1C,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,SAAS,4CAEL;IAEpB,SAAgB,SAAS,4EAexB;IAED,SAAgB,aAAa,2DAKQ;gBAEzB,UAAU,EAAE,6BAA6B,EAAE,GAAG,EAAE,cAAc;IAcnE,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAGjE"}
@@ -1,4 +0,0 @@
1
- export const GBD_TEXT_CACHE_SUFFIX = '::gbd'
2
- export const DESCRIPTION_CACHE_KEY_SUFFIX = '::description'
3
- export const CHOICES_CACHE_KEY_SUFFIX = '::choices'
4
- export const PRACTICE_THEORY_CACHE_KEY_SUFFIX = '::practice-theory'
@@ -1,63 +0,0 @@
1
- import { MaskSegmentParams } from './types'
2
-
3
- export function replaceMappedTokens(input: string, map: Record<string, string>): string {
4
- let result = input
5
-
6
- for (const [original, override] of Object.entries(map)) {
7
- const escaped = original.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
8
- const regex = new RegExp(`\\b${escaped}\\b`, 'gi')
9
-
10
- result = result.replace(regex, override)
11
- }
12
-
13
- return result
14
- }
15
-
16
- /**
17
- * Masks text segments matched by `regex` with a placeholder,
18
- * while preserving spaces around the original match.
19
- */
20
- export const maskSegment = ({
21
- text,
22
- regex,
23
- placeholder,
24
- replacements,
25
- shouldSkip,
26
- }: MaskSegmentParams): string => {
27
- return text.replace(regex, (match, ...args) => {
28
- if (shouldSkip?.(match)) return match
29
-
30
- const offset = args[args.length - 2] as number
31
- const input = args[args.length - 1] as string
32
-
33
- const before = offset > 0 ? input[offset - 1] : ''
34
- const afterIdx = offset + match.length
35
- const after = afterIdx < input.length ? input[afterIdx] : ''
36
-
37
- const leftPad = /\s/.test(before)
38
- const rightPad = /\s/.test(after)
39
-
40
- replacements.push({ placeholder, original: match, leftPad, rightPad })
41
-
42
- return placeholder
43
- })
44
- }
45
-
46
- const HTML_NAMED_ENTITIES: Record<string, string> = {
47
- '&amp;': '&',
48
- '&lt;': '<',
49
- '&gt;': '>',
50
- '&quot;': '"',
51
- '&apos;': "'",
52
- '&nbsp;': ' ',
53
- }
54
-
55
- export const decodeHtmlEntities = (text: string): string => {
56
- return text
57
- .replace(/&#(\d+);/g, (_, code: string) => String.fromCharCode(parseInt(code, 10)))
58
- .replace(/&#x([0-9a-f]+);/gi, (_, code: string) => String.fromCharCode(parseInt(code, 16)))
59
- .replace(
60
- /&(amp|lt|gt|quot|apos|nbsp);/g,
61
- (match) => HTML_NAMED_ENTITIES[match] ?? match,
62
- )
63
- }
@@ -1,30 +0,0 @@
1
- export { TranslationModel } from './model/TranslationModel'
2
- export { TranslationService, type TranslateConfigProps } from './model/TranslationService'
3
- export { TranslationKatexPreprocessor } from './model/TranslationPreprocessor'
4
- export { TranslationProvider, type LanguageGlossary } from './providers/translation.interface'
5
- export { GoogleTranslationProvider } from './providers/google/GoogleTranslationProvider'
6
- export { GoogleTranslateLanguage } from './providers/google/supportedLanguages'
7
- export type {
8
- GoogleTranslateProps,
9
- GoogleTranslateResponse,
10
- GoogleTranslation,
11
- } from './providers/google.types'
12
- export { wordsToPreserve, preservedWordsReplacers } from './preserve/wordsToPreserve'
13
- export {
14
- GBD_TEXT_CACHE_SUFFIX,
15
- DESCRIPTION_CACHE_KEY_SUFFIX,
16
- CHOICES_CACHE_KEY_SUFFIX,
17
- PRACTICE_THEORY_CACHE_KEY_SUFFIX,
18
- } from './constants'
19
- export {
20
- replaceMappedTokens,
21
- maskSegment,
22
- decodeHtmlEntities,
23
- } from './helpers'
24
- export type {
25
- TranslatableProblem,
26
- TranslateAllFxParams,
27
- TranslateFxParams,
28
- Replacement,
29
- MaskSegmentParams,
30
- } from './types'