@magmamath/students-features 1.3.23-rc.9 → 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 (332) 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 -18
  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 -18
  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 +0 -1
  96. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
  97. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
  98. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  99. package/dist/typescript/commonjs/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
  100. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  101. package/dist/typescript/commonjs/features/voice/types.d.ts +1 -9
  102. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
  103. package/dist/typescript/commonjs/index.d.ts +0 -1
  104. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  105. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
  106. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
  107. package/dist/typescript/module/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
  108. package/dist/typescript/module/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
  109. package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts +13 -0
  110. package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
  111. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
  112. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  113. package/dist/typescript/module/features/voice/index.d.ts +1 -1
  114. package/dist/typescript/module/features/voice/index.d.ts.map +1 -1
  115. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
  116. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  117. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  118. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  119. package/dist/typescript/module/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
  120. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  121. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  122. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  123. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -1
  124. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
  125. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
  126. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  127. package/dist/typescript/module/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
  128. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  129. package/dist/typescript/module/features/voice/types.d.ts +1 -9
  130. package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
  131. package/dist/typescript/module/index.d.ts +0 -1
  132. package/dist/typescript/module/index.d.ts.map +1 -1
  133. package/package.json +1 -1
  134. package/src/features/pmProgress/components/chart/chart.helpers.ts +1 -0
  135. package/src/features/pmProgress/components/header/StartButton.tsx +11 -1
  136. package/src/features/pmProgress/components/list/{ListCard.tsx → DomainCard.tsx} +12 -19
  137. package/src/features/pmProgress/components/list/Fluency.tsx +3 -3
  138. package/src/features/pmProgress/components/list/PmDomainList.tsx +3 -3
  139. package/src/features/pmProgress/components/list/{ListItem.tsx → StandardItem.tsx} +4 -4
  140. package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +8 -4
  141. package/src/features/pmProgress/components/standard/StandardTag.tsx +2 -6
  142. package/src/features/pmProgress/shared/pmProgress.helpers.ts +1 -2
  143. package/src/features/voice/index.ts +1 -1
  144. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +296 -0
  145. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +128 -0
  146. package/src/features/voice/playing/hooks/{useVoiceTranscription.ts → useVoiceTranscriptionsDropdown.ts} +2 -2
  147. package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +40 -0
  148. package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +5 -12
  149. package/src/features/voice/playing/model/VoicePlayer.model.ts +2 -7
  150. package/src/features/voice/playing/model/{VoiceTranscription.model.ts → VoiceTranscriptionsDropdown.model.ts} +2 -2
  151. package/src/features/voice/types.ts +0 -15
  152. package/src/index.ts +0 -1
  153. package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
  154. package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
  155. package/dist/commonjs/features/translation/constants.js +0 -11
  156. package/dist/commonjs/features/translation/constants.js.map +0 -1
  157. package/dist/commonjs/features/translation/helpers.js +0 -60
  158. package/dist/commonjs/features/translation/helpers.js.map +0 -1
  159. package/dist/commonjs/features/translation/index.js +0 -105
  160. package/dist/commonjs/features/translation/index.js.map +0 -1
  161. package/dist/commonjs/features/translation/model/TranslationModel.js +0 -122
  162. package/dist/commonjs/features/translation/model/TranslationModel.js.map +0 -1
  163. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js +0 -142
  164. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js.map +0 -1
  165. package/dist/commonjs/features/translation/model/TranslationService.js +0 -112
  166. package/dist/commonjs/features/translation/model/TranslationService.js.map +0 -1
  167. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js +0 -314
  168. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js.map +0 -1
  169. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js +0 -50
  170. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
  171. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js +0 -230
  172. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js.map +0 -1
  173. package/dist/commonjs/features/translation/providers/google.types.js +0 -2
  174. package/dist/commonjs/features/translation/providers/google.types.js.map +0 -1
  175. package/dist/commonjs/features/translation/providers/translation.interface.js +0 -49
  176. package/dist/commonjs/features/translation/providers/translation.interface.js.map +0 -1
  177. package/dist/commonjs/features/translation/types.js +0 -2
  178. package/dist/commonjs/features/translation/types.js.map +0 -1
  179. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js +0 -44
  180. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
  181. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js +0 -135
  182. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js.map +0 -1
  183. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -66
  184. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
  185. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -59
  186. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
  187. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
  188. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -37
  189. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
  190. package/dist/commonjs/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
  191. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -62
  192. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
  193. package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
  194. package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
  195. package/dist/module/features/translation/constants.js +0 -7
  196. package/dist/module/features/translation/constants.js.map +0 -1
  197. package/dist/module/features/translation/helpers.js +0 -53
  198. package/dist/module/features/translation/helpers.js.map +0 -1
  199. package/dist/module/features/translation/index.js +0 -12
  200. package/dist/module/features/translation/index.js.map +0 -1
  201. package/dist/module/features/translation/model/TranslationModel.js +0 -117
  202. package/dist/module/features/translation/model/TranslationModel.js.map +0 -1
  203. package/dist/module/features/translation/model/TranslationPreprocessor.js +0 -137
  204. package/dist/module/features/translation/model/TranslationPreprocessor.js.map +0 -1
  205. package/dist/module/features/translation/model/TranslationService.js +0 -107
  206. package/dist/module/features/translation/model/TranslationService.js.map +0 -1
  207. package/dist/module/features/translation/preserve/wordsToPreserve.js +0 -310
  208. package/dist/module/features/translation/preserve/wordsToPreserve.js.map +0 -1
  209. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js +0 -45
  210. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
  211. package/dist/module/features/translation/providers/google/supportedLanguages.js +0 -225
  212. package/dist/module/features/translation/providers/google/supportedLanguages.js.map +0 -1
  213. package/dist/module/features/translation/providers/google.types.js +0 -2
  214. package/dist/module/features/translation/providers/google.types.js.map +0 -1
  215. package/dist/module/features/translation/providers/translation.interface.js +0 -44
  216. package/dist/module/features/translation/providers/translation.interface.js.map +0 -1
  217. package/dist/module/features/translation/types.js +0 -2
  218. package/dist/module/features/translation/types.js.map +0 -1
  219. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js +0 -38
  220. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
  221. package/dist/module/features/voice/playing/components/VoiceTranscription.js +0 -127
  222. package/dist/module/features/voice/playing/components/VoiceTranscription.js.map +0 -1
  223. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -58
  224. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
  225. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -51
  226. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
  227. package/dist/module/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
  228. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -32
  229. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
  230. package/dist/module/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
  231. package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -57
  232. package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
  233. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  234. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +0 -13
  235. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  236. package/dist/typescript/commonjs/features/translation/constants.d.ts +0 -5
  237. package/dist/typescript/commonjs/features/translation/constants.d.ts.map +0 -1
  238. package/dist/typescript/commonjs/features/translation/helpers.d.ts +0 -9
  239. package/dist/typescript/commonjs/features/translation/helpers.d.ts.map +0 -1
  240. package/dist/typescript/commonjs/features/translation/index.d.ts +0 -12
  241. package/dist/typescript/commonjs/features/translation/index.d.ts.map +0 -1
  242. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts +0 -33
  243. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts.map +0 -1
  244. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts +0 -34
  245. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
  246. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts +0 -40
  247. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts.map +0 -1
  248. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts +0 -3
  249. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
  250. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -17
  251. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
  252. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts +0 -209
  253. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
  254. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts +0 -15
  255. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts.map +0 -1
  256. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts +0 -30
  257. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts.map +0 -1
  258. package/dist/typescript/commonjs/features/translation/types.d.ts +0 -27
  259. package/dist/typescript/commonjs/features/translation/types.d.ts.map +0 -1
  260. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
  261. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
  262. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
  263. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
  264. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
  265. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
  266. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
  267. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
  268. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
  269. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
  270. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
  271. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
  272. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
  273. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
  274. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  275. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +0 -13
  276. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  277. package/dist/typescript/module/features/translation/constants.d.ts +0 -5
  278. package/dist/typescript/module/features/translation/constants.d.ts.map +0 -1
  279. package/dist/typescript/module/features/translation/helpers.d.ts +0 -9
  280. package/dist/typescript/module/features/translation/helpers.d.ts.map +0 -1
  281. package/dist/typescript/module/features/translation/index.d.ts +0 -12
  282. package/dist/typescript/module/features/translation/index.d.ts.map +0 -1
  283. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts +0 -33
  284. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts.map +0 -1
  285. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts +0 -34
  286. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
  287. package/dist/typescript/module/features/translation/model/TranslationService.d.ts +0 -40
  288. package/dist/typescript/module/features/translation/model/TranslationService.d.ts.map +0 -1
  289. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts +0 -3
  290. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
  291. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -17
  292. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
  293. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts +0 -209
  294. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
  295. package/dist/typescript/module/features/translation/providers/google.types.d.ts +0 -15
  296. package/dist/typescript/module/features/translation/providers/google.types.d.ts.map +0 -1
  297. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts +0 -30
  298. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts.map +0 -1
  299. package/dist/typescript/module/features/translation/types.d.ts +0 -27
  300. package/dist/typescript/module/features/translation/types.d.ts.map +0 -1
  301. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
  302. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
  303. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
  304. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
  305. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
  306. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
  307. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
  308. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
  309. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
  310. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
  311. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
  312. package/dist/typescript/module/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
  313. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
  314. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
  315. package/src/features/translation/constants.ts +0 -4
  316. package/src/features/translation/helpers.ts +0 -63
  317. package/src/features/translation/index.ts +0 -30
  318. package/src/features/translation/model/TranslationModel.ts +0 -174
  319. package/src/features/translation/model/TranslationPreprocessor.ts +0 -171
  320. package/src/features/translation/model/TranslationService.ts +0 -148
  321. package/src/features/translation/preserve/wordsToPreserve.ts +0 -87
  322. package/src/features/translation/providers/google/GoogleTranslationProvider.ts +0 -50
  323. package/src/features/translation/providers/google/supportedLanguages.ts +0 -229
  324. package/src/features/translation/providers/google.types.ts +0 -16
  325. package/src/features/translation/providers/translation.interface.ts +0 -63
  326. package/src/features/translation/types.ts +0 -30
  327. package/src/features/voice/playing/components/VoiceTranscriptContent.tsx +0 -37
  328. package/src/features/voice/playing/components/VoiceTranscription.tsx +0 -172
  329. package/src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx +0 -59
  330. package/src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx +0 -62
  331. package/src/features/voice/playing/hooks/useVoiceTranscriptionEffects.ts +0 -44
  332. package/src/features/voice/playing/model/VoiceTranscriptionTranslation.model.ts +0 -75
@@ -0,0 +1,296 @@
1
+ import {
2
+ Typography,
3
+ ScrollableList,
4
+ CaretDownIcon,
5
+ COLORS,
6
+ IS_WEB,
7
+ ScrollableListScrollView,
8
+ } from '@magmamath/react-native-ui'
9
+ import { useUnit } from 'effector-react'
10
+ import React, { useRef, useEffect, useState, useCallback, useMemo } from 'react'
11
+ import {
12
+ TouchableOpacity,
13
+ StyleProp,
14
+ ViewStyle,
15
+ FlatList,
16
+ LayoutChangeEvent,
17
+ ScrollView,
18
+ View,
19
+ StyleSheet,
20
+ } from 'react-native'
21
+ import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'
22
+ import { AnswerAudio, VoiceTranscriptionItem } from '../../types'
23
+ import { useVoiceTranscriptionsDropdown } from '../hooks/useVoiceTranscriptionsDropdown'
24
+ import { VoicePlayerModel, PlayerState } from '../model'
25
+ import { VoiceTranscriptionsDropdownItem } from './VoiceTranscriptionsDropdownItem'
26
+ import { DROPDOWN_MAX_CONTENT_HEIGHT, NO_AUDIO_BE_MESSAGE } from '../../constants'
27
+ import { useText } from '../../../../i18n/i18n'
28
+ import { PlayButton } from '../../../../shared/components/PlayButton'
29
+ import { getActiveAttempt, getAudioStatus } from '../../helpers'
30
+
31
+ const AnimatedTouchableOpacity = Animated.createAnimatedComponent(TouchableOpacity)
32
+
33
+ type VoiceTranscriptionsDropdownProps = {
34
+ style?: StyleProp<ViewStyle>
35
+ model: VoicePlayerModel
36
+ answers: AnswerAudio[]
37
+ attemptOffset: number
38
+ onAttemptOffsetChange: (offset: number) => void
39
+ attemptsCount: number
40
+ problemId: string
41
+ }
42
+
43
+ export const VoiceTranscriptionsDropdown = ({
44
+ style,
45
+ model,
46
+ answers,
47
+ attemptOffset,
48
+ onAttemptOffsetChange,
49
+ attemptsCount,
50
+ problemId,
51
+ }: VoiceTranscriptionsDropdownProps) => {
52
+ const [attempts, setAttempts] = useState<VoiceTranscriptionItem[]>([])
53
+
54
+ const scrollRef = useRef<FlatList | null>(null)
55
+ const scrollViewRef = useRef<ScrollView | null>(null)
56
+ const itemLayoutsRef = useRef<Map<string, number>>(new Map())
57
+ const answersRef = useRef(answers)
58
+ answersRef.current = answers
59
+
60
+ const t = useText()
61
+
62
+ const [currentAttempt, transcriptsLoaded, playerState, isDropdownExpanded] = useUnit([
63
+ model.$currentAttempt,
64
+ model.loader.$transcriptsLoaded,
65
+ model.$playerState,
66
+ model.dropdown.$isExpanded,
67
+ ])
68
+
69
+ const activeAttempt = getActiveAttempt(attemptOffset, attemptsCount)
70
+
71
+ const answersKey = useMemo(
72
+ () => answers.map((a) => `${a._id}:${a.audioFileId ?? ''}`).join(','),
73
+ [answers],
74
+ )
75
+
76
+ const hasActiveTranscript =
77
+ activeAttempt !== null && answers?.[activeAttempt - 1]?.audioFileId !== undefined
78
+
79
+ const playButtonState = {
80
+ isActive: playerState !== PlayerState.IDLE,
81
+ isLoading: playerState === PlayerState.LOADING,
82
+ status: getAudioStatus(playerState),
83
+ }
84
+
85
+ const { listAnimatedStyle, iconAnimatedStyle, onListLayout } = useVoiceTranscriptionsDropdown(
86
+ model.dropdown,
87
+ )
88
+
89
+ const handleItemLayout = useCallback((id: string, event: LayoutChangeEvent) => {
90
+ itemLayoutsRef.current.set(id, event.nativeEvent.layout.y)
91
+ }, [])
92
+
93
+ const scrollToAttempt = useCallback(
94
+ (attemptNumber: number) => {
95
+ if (IS_WEB) {
96
+ const item = attempts.find((item) => item.attemptNumber === attemptNumber)
97
+ if (item) {
98
+ const y = itemLayoutsRef.current.get(item._id)
99
+ if (y !== undefined) {
100
+ scrollViewRef.current?.scrollTo({ y, animated: true })
101
+ }
102
+ }
103
+ return
104
+ }
105
+
106
+ const index = attempts.findIndex((item) => item.attemptNumber === attemptNumber)
107
+ if (index !== -1) {
108
+ scrollRef.current?.scrollToIndex({ index, animated: true, viewPosition: 0 })
109
+ }
110
+ },
111
+ [attempts],
112
+ )
113
+
114
+ const handleItemToggle = useCallback(
115
+ (attempt: number) => {
116
+ if (onAttemptOffsetChange && attemptsCount !== undefined) {
117
+ onAttemptOffsetChange(attemptsCount - attempt)
118
+ }
119
+ },
120
+ [onAttemptOffsetChange, attemptsCount],
121
+ )
122
+
123
+ const handlePlayPress = useCallback(() => {
124
+ if (activeAttempt) {
125
+ model.togglePlayPause(activeAttempt)
126
+ }
127
+ }, [model, activeAttempt])
128
+
129
+ const handleScrollToIndexFailed = useCallback((info: { index: number }) => {
130
+ setTimeout(() => {
131
+ scrollRef.current?.scrollToIndex({ index: info.index, animated: true, viewPosition: 0 })
132
+ }, 100)
133
+ }, [])
134
+
135
+ useEffect(() => {
136
+ model.reinitializePlayer()
137
+ return () => model.cleanup()
138
+ }, [model])
139
+
140
+ useEffect(() => {
141
+ const isLastAttemptsWithoutDrowing = !answers[answers.length - 1].drawing
142
+ if (answers.length > 0 && isLastAttemptsWithoutDrowing) {
143
+ model.dropdown.setExpanded(true)
144
+ } else {
145
+ model.dropdown.setExpanded(false)
146
+ }
147
+
148
+ model.resetPlayer()
149
+ }, [problemId])
150
+
151
+ useEffect(() => {
152
+ if (answersRef.current.some((answer) => answer.audioFileId)) {
153
+ model.initializeWithAudios(answersRef.current)
154
+ model.loader.loadAllTranscripts()
155
+ }
156
+ }, [model, answersKey])
157
+
158
+ useEffect(() => {
159
+ model.stopAudio()
160
+ }, [activeAttempt])
161
+
162
+ useEffect(() => {
163
+ const allAttempts = model.getAllAttempts()
164
+ setAttempts(allAttempts)
165
+ }, [answersKey, transcriptsLoaded, currentAttempt, model])
166
+
167
+ useEffect(() => {
168
+ if (isDropdownExpanded && activeAttempt !== null) {
169
+ setTimeout(() => {
170
+ scrollToAttempt(activeAttempt)
171
+ }, 500)
172
+ }
173
+ }, [isDropdownExpanded, answersKey])
174
+
175
+ const renderItem = useCallback(
176
+ ({ item }: { item: VoiceTranscriptionItem }) => {
177
+ const isLoading = model.loader.isTranscriptLoading(item.attemptNumber)
178
+ const transcript = model.loader.getTranscript(item.attemptNumber)
179
+ const isActive = activeAttempt === item.attemptNumber
180
+
181
+ return (
182
+ <VoiceTranscriptionsDropdownItem
183
+ isLoading={isActive && isLoading}
184
+ attempt={item.attemptNumber}
185
+ content={
186
+ transcript && transcript !== NO_AUDIO_BE_MESSAGE
187
+ ? transcript
188
+ : t('voice.transcriptNotAvailable')
189
+ }
190
+ isActive={isActive}
191
+ onToggle={handleItemToggle}
192
+ scrollToAttempt={scrollToAttempt}
193
+ />
194
+ )
195
+ },
196
+ [model, activeAttempt, t, handleItemToggle, scrollToAttempt],
197
+ )
198
+
199
+ return (
200
+ <Animated.View style={[styles.container, style]}>
201
+ <View style={styles.header}>
202
+ <Typography style={styles.title} variant="h7">
203
+ {t('voice.transcriptions')}
204
+ </Typography>
205
+ {hasActiveTranscript && (
206
+ <Animated.View entering={FadeIn.duration(120)} exiting={FadeOut.duration(120)}>
207
+ <PlayButton
208
+ state={playButtonState}
209
+ onPress={handlePlayPress}
210
+ activityIndicatorColor={COLORS.NEUTRAL_1}
211
+ />
212
+ </Animated.View>
213
+ )}
214
+ </View>
215
+
216
+ <Animated.View style={[listAnimatedStyle, { overflow: 'hidden' }]}>
217
+ <View onLayout={onListLayout} style={styles.listContainer}>
218
+ {IS_WEB ? (
219
+ <ScrollableListScrollView
220
+ bounces={false}
221
+ ref={scrollViewRef}
222
+ hideShadow
223
+ style={styles.list}
224
+ contentContainerStyle={styles.listContent}
225
+ >
226
+ {attempts.map((item) => (
227
+ <View key={item._id} onLayout={(e) => handleItemLayout(item._id, e)}>
228
+ {renderItem({ item })}
229
+ </View>
230
+ ))}
231
+ </ScrollableListScrollView>
232
+ ) : (
233
+ <ScrollableList
234
+ bounces={false}
235
+ ref={scrollRef}
236
+ hideShadow
237
+ data={attempts}
238
+ keyExtractor={(item) => item._id}
239
+ onScrollToIndexFailed={handleScrollToIndexFailed}
240
+ renderItem={renderItem}
241
+ contentContainerStyle={styles.listContent}
242
+ />
243
+ )}
244
+ </View>
245
+ </Animated.View>
246
+
247
+ <AnimatedTouchableOpacity
248
+ style={[styles.expandButton, iconAnimatedStyle]}
249
+ onPress={() => model.dropdown.toggleExpand()}
250
+ >
251
+ <CaretDownIcon size={22} />
252
+ </AnimatedTouchableOpacity>
253
+ </Animated.View>
254
+ )
255
+ }
256
+
257
+ const styles = StyleSheet.create({
258
+ container: {
259
+ position: 'absolute',
260
+ top: 56,
261
+ left: 8,
262
+ width: 222,
263
+ maxHeight: 405,
264
+ minHeight: 51,
265
+ padding: 4,
266
+ boxShadow: '0px 1px 3px 0px rgba(51, 51, 51, 0.25)',
267
+ borderRadius: 12,
268
+ backgroundColor: COLORS.NEUTRAL_1,
269
+ overflow: 'hidden',
270
+ },
271
+ header: {
272
+ flexDirection: 'row',
273
+ justifyContent: 'space-between',
274
+ alignItems: 'center',
275
+ padding: 4,
276
+ marginBottom: 4,
277
+ height: 32,
278
+ },
279
+ title: {
280
+ color: COLORS.NEUTRAL_9,
281
+ marginLeft: 4,
282
+ },
283
+ list: { flex: 1 },
284
+ expandButton: {
285
+ justifyContent: 'center',
286
+ alignItems: 'center',
287
+ },
288
+ listContainer: {
289
+ position: 'absolute',
290
+ maxHeight: DROPDOWN_MAX_CONTENT_HEIGHT,
291
+ width: '100%',
292
+ },
293
+ listContent: {
294
+ paddingHorizontal: 4,
295
+ },
296
+ })
@@ -0,0 +1,128 @@
1
+ import { Pressable, StyleSheet, View } from 'react-native'
2
+ import React, { memo, useCallback, useRef } from 'react'
3
+ import {
4
+ Button,
5
+ ButtonSize,
6
+ ButtonVariant,
7
+ COLORS,
8
+ Loader,
9
+ LoaderColor,
10
+ LoaderSize,
11
+ Typography,
12
+ } from '@magmamath/react-native-ui'
13
+ import Animated, { runOnJS, useAnimatedReaction } from 'react-native-reanimated'
14
+ import { useVoiceTranscriptionsDropdownItemAnimation } from '../hooks/useVoiceTranscriptionsDropdownItemAnimation'
15
+ import { useText } from '../../../../i18n/i18n'
16
+
17
+ type VoiceTranscriptionsDropdownItemProps = {
18
+ attempt: number
19
+ content: string
20
+ isActive: boolean
21
+ isLoading?: boolean
22
+ onToggle: (attempt: number) => void
23
+ scrollToAttempt: (attempt: number) => void
24
+ }
25
+
26
+ export const VoiceTranscriptionsDropdownItem = memo(
27
+ ({
28
+ attempt,
29
+ content,
30
+ isActive,
31
+ isLoading,
32
+ onToggle,
33
+ scrollToAttempt,
34
+ }: VoiceTranscriptionsDropdownItemProps) => {
35
+ const t = useText()
36
+ const isActiveRef = useRef(isActive)
37
+ isActiveRef.current = isActive
38
+
39
+ const { contentAnimatedStyle, onLayout, progress } =
40
+ useVoiceTranscriptionsDropdownItemAnimation(isActive)
41
+
42
+ const handleScrollToAttempt = useCallback(
43
+ (attemptNumber: number) => {
44
+ if (!isActiveRef.current) return
45
+ scrollToAttempt(attemptNumber)
46
+ },
47
+ [scrollToAttempt],
48
+ )
49
+
50
+ useAnimatedReaction(
51
+ () => progress.value,
52
+ (progress) => {
53
+ if (progress === 1 && isActive) {
54
+ runOnJS(handleScrollToAttempt)(attempt)
55
+ }
56
+ },
57
+ [progress, attempt, isActive],
58
+ )
59
+
60
+ return (
61
+ <View style={styles.container}>
62
+ <Pressable disabled={isActive} style={styles.itemHeader} onPress={() => onToggle(attempt)}>
63
+ <Button
64
+ onPress={() => !isActive && onToggle(attempt)}
65
+ size={ButtonSize.SMALL}
66
+ variant={ButtonVariant.TERTIARY}
67
+ style={{
68
+ text: {
69
+ textTransform: 'uppercase',
70
+ color: isActive ? COLORS.NEUTRAL_9 : COLORS.NEUTRAL_7,
71
+ },
72
+ }}
73
+ >
74
+ {t('voice.attempt', { number: String(attempt) })}
75
+ </Button>
76
+ </Pressable>
77
+ {isLoading ? (
78
+ <View style={styles.loaderContainer}>
79
+ <Loader size={LoaderSize.SMALL} color={LoaderColor.BLUE} />
80
+ </View>
81
+ ) : (
82
+ <Animated.View style={contentAnimatedStyle}>
83
+ <View onLayout={onLayout} style={styles.contentWrapper}>
84
+ <Typography
85
+ variant="h8"
86
+ style={[
87
+ styles.itemContent,
88
+ {
89
+ color: isActive ? COLORS.NEUTRAL_9 : COLORS.NEUTRAL_7,
90
+ },
91
+ ]}
92
+ >
93
+ {content}
94
+ </Typography>
95
+ </View>
96
+ </Animated.View>
97
+ )}
98
+ </View>
99
+ )
100
+ },
101
+ )
102
+
103
+ const styles = StyleSheet.create({
104
+ container: {
105
+ borderTopWidth: 1,
106
+ borderColor: COLORS.NEUTRAL_3,
107
+ },
108
+ itemHeader: {
109
+ flexDirection: 'row',
110
+ justifyContent: 'space-between',
111
+ alignItems: 'center',
112
+ width: '100%',
113
+ paddingVertical: 8,
114
+ },
115
+ itemContent: {
116
+ paddingHorizontal: 8,
117
+ },
118
+ contentWrapper: {
119
+ width: '100%',
120
+ position: 'absolute',
121
+ },
122
+ loaderContainer: {
123
+ justifyContent: 'center',
124
+ alignItems: 'center',
125
+ paddingTop: 4,
126
+ paddingBottom: 8,
127
+ },
128
+ })
@@ -1,11 +1,11 @@
1
1
  import { useEffect } from 'react'
2
2
  import { useUnit } from 'effector-react'
3
3
  import { useAnimatedStyle, useSharedValue, withTiming, interpolate } from 'react-native-reanimated'
4
- import { VoiceTranscriptionModel } from '../model/VoiceTranscription.model'
4
+ import { VoiceTranscriptionsDropdownModel } from '../model/VoiceTranscriptionsDropdown.model'
5
5
  import { DROPDOWN_MAX_CONTENT_HEIGHT } from '../../constants'
6
6
  import { LayoutChangeEvent } from 'react-native'
7
7
 
8
- export const useVoiceTranscriptionDropdown = (model: VoiceTranscriptionModel) => {
8
+ export const useVoiceTranscriptionsDropdown = (model: VoiceTranscriptionsDropdownModel) => {
9
9
  const isExpanded = useUnit(model.$isExpanded)
10
10
 
11
11
  const contentHeight = useSharedValue(0)
@@ -0,0 +1,40 @@
1
+ import { useEffect } from 'react'
2
+ import { LayoutChangeEvent } from 'react-native'
3
+ import {
4
+ useSharedValue,
5
+ withTiming,
6
+ useDerivedValue,
7
+ useAnimatedStyle,
8
+ interpolate,
9
+ } from 'react-native-reanimated'
10
+
11
+ export const useVoiceTranscriptionsDropdownItemAnimation = (isExpanded: boolean) => {
12
+ const height = useSharedValue(0)
13
+ const progress = useSharedValue(isExpanded ? 1 : 0)
14
+
15
+ useEffect(() => {
16
+ progress.value = withTiming(isExpanded ? 1 : 0)
17
+ }, [isExpanded, progress])
18
+
19
+ const derivedHeight = useDerivedValue(() => height.value * progress.value, [height, progress])
20
+
21
+ const contentAnimatedStyle = useAnimatedStyle(() => {
22
+ const opacity = interpolate(progress.value, [0, 0.3, 1], [0, 0, 1])
23
+
24
+ return {
25
+ height: derivedHeight.value,
26
+ opacity,
27
+ overflow: 'hidden',
28
+ }
29
+ }, [progress, derivedHeight])
30
+
31
+ const onLayout = (event: LayoutChangeEvent) => {
32
+ height.value = event.nativeEvent.layout.height
33
+ }
34
+
35
+ return {
36
+ contentAnimatedStyle,
37
+ onLayout,
38
+ progress,
39
+ }
40
+ }
@@ -21,25 +21,23 @@ export class TranscriptionsDownloaderModel {
21
21
  this.api = api
22
22
  }
23
23
 
24
- private async fetchTranscriptWithRetry(
25
- audioFileId: string,
26
- ): Promise<{ text: string; language?: string }> {
24
+ private async fetchTranscriptWithRetry(audioFileId: string): Promise<string> {
27
25
  for (let attempt = 0; attempt < TRANSCRIPT_MAX_RETRIES; attempt++) {
28
26
  const response = await this.api.getAudioFileTranscript(audioFileId)
29
27
 
30
28
  if (response.status === 'completed') {
31
- return { text: response.text, language: response.language }
29
+ return response.text
32
30
  }
33
31
 
34
32
  if (response.status === 'failed') {
35
- return { text: NO_AUDIO_BE_MESSAGE }
33
+ return NO_AUDIO_BE_MESSAGE
36
34
  }
37
35
 
38
36
  if (attempt < TRANSCRIPT_MAX_RETRIES - 1) {
39
37
  await new Promise((resolve) => setTimeout(resolve, TRANSCRIPT_RETRY_INTERVAL_MS))
40
38
  }
41
39
  }
42
- return { text: NO_AUDIO_BE_MESSAGE }
40
+ return NO_AUDIO_BE_MESSAGE
43
41
  }
44
42
 
45
43
  public readonly loadAllTranscripts = createEffect(async () => {
@@ -53,11 +51,10 @@ export class TranscriptionsDownloaderModel {
53
51
  this.collection.update(item.attemptNumber, { transcriptLoading: true })
54
52
 
55
53
  try {
56
- const { text, language } = await this.fetchTranscriptWithRetry(item.audioFileId)
54
+ const text = await this.fetchTranscriptWithRetry(item.audioFileId)
57
55
 
58
56
  this.collection.update(item.attemptNumber, {
59
57
  transcript: text,
60
- transcriptLanguage: language,
61
58
  transcriptLoading: false,
62
59
  transcriptError: undefined,
63
60
  })
@@ -77,10 +74,6 @@ export class TranscriptionsDownloaderModel {
77
74
  return this.collection.get(attemptNumber)?.transcript
78
75
  }
79
76
 
80
- public getTranscriptLanguage(attemptNumber: number): string | undefined {
81
- return this.collection.get(attemptNumber)?.transcriptLanguage
82
- }
83
-
84
77
  public isTranscriptLoading(attemptNumber: number): boolean {
85
78
  return this.collection.get(attemptNumber)?.transcriptLoading || false
86
79
  }
@@ -1,8 +1,7 @@
1
1
  import { attach, createEffect, createEvent, restore } from 'effector'
2
2
  import { VoiceTranscriptionsCollection } from './VoiceTranscriptionsCollection'
3
3
  import { VoiceFileDownloaderModel } from './VoiceFileDownloader.model'
4
- import { VoiceTranscriptionModel } from './VoiceTranscription.model'
5
- import { VoiceTranscriptionTranslationModel } from './VoiceTranscriptionTranslation.model'
4
+ import { VoiceTranscriptionsDropdownModel } from './VoiceTranscriptionsDropdown.model'
6
5
  import { AnswerAudio, VoicePlayerApi, VoiceTranscriptionItem } from '../../types'
7
6
  import { PlayerModel, PlayerState } from './Player.model'
8
7
  import { TranscriptionsDownloaderModel } from './TranscriptionsDownloaderModel'
@@ -19,8 +18,7 @@ type TogglePlayPauseParams = {
19
18
  export class VoicePlayerModel {
20
19
  public readonly collection = new VoiceTranscriptionsCollection()
21
20
  public readonly downloader = new VoiceFileDownloaderModel()
22
- public readonly dropdown = new VoiceTranscriptionModel()
23
- public readonly translation: VoiceTranscriptionTranslationModel
21
+ public readonly dropdown = new VoiceTranscriptionsDropdownModel()
24
22
  public readonly playerModel = new PlayerModel()
25
23
  public readonly loader: TranscriptionsDownloaderModel
26
24
  public readonly api: VoicePlayerApi
@@ -50,13 +48,11 @@ export class VoicePlayerModel {
50
48
  this.currentPlayingAttempt = null
51
49
  this.setCurrentAttempt(null)
52
50
  this.collection.clear()
53
- this.translation.clearCache()
54
51
  }
55
52
 
56
53
  constructor(params: VoiceTranscriptionsPlayerModelParams) {
57
54
  this.api = params.api
58
55
  this.loader = new TranscriptionsDownloaderModel(this.collection, params.api)
59
- this.translation = new VoiceTranscriptionTranslationModel(this.collection, params.api)
60
56
  this.downloader.setApi(params.api)
61
57
 
62
58
  this.playerModel.playbackFinished.watch(() => {
@@ -242,7 +238,6 @@ export class VoicePlayerModel {
242
238
  this.reset()
243
239
  this.loader.reset()
244
240
  this.dropdown.reset()
245
- this.translation.reset()
246
241
  this.playerModel.release()
247
242
  }
248
243
 
@@ -1,6 +1,6 @@
1
- import { createEvent, restore } from 'effector'
1
+ import { createEvent, createStore, restore } from 'effector'
2
2
 
3
- export class VoiceTranscriptionModel {
3
+ export class VoiceTranscriptionsDropdownModel {
4
4
  public readonly toggleExpand = createEvent()
5
5
  public readonly setExpanded = createEvent<boolean>()
6
6
  public readonly reset = createEvent()
@@ -2,12 +2,6 @@ import { WithAbortSignal } from 'src/types/common.types'
2
2
  import { getAvailableInputs } from './helpers'
3
3
  import { VoiceRecordModel } from './recording/model/VoiceRecord.model'
4
4
  import { AxiosResponse } from 'axios'
5
- import type {
6
- GoogleTranslateProps as GoogleTranslatePayload,
7
- GoogleTranslateResponse,
8
- } from '../translation/providers/google.types'
9
-
10
- export type { GoogleTranslatePayload, GoogleTranslateResponse }
11
5
 
12
6
  export type VoiceRecordNotificationTypes = {
13
7
  success: (message: string) => void
@@ -63,7 +57,6 @@ export type VoiceRecorderApi = {
63
57
  type TranscriptionStatus = 'pending' | 'completed' | 'failed'
64
58
  export type AudioTranscriptResponse = {
65
59
  text: string
66
- language: string
67
60
  status: TranscriptionStatus
68
61
  }
69
62
 
@@ -73,7 +66,6 @@ export type VoicePlayerApi = {
73
66
  audioFileId: string,
74
67
  options?: { signal?: AbortSignal },
75
68
  ) => Promise<AxiosResponse<Blob>>
76
- translateText: (payload: GoogleTranslatePayload) => Promise<GoogleTranslateResponse>
77
69
  }
78
70
 
79
71
  export type VoiceTranscriptionItem = {
@@ -81,7 +73,6 @@ export type VoiceTranscriptionItem = {
81
73
  audioFileId: string
82
74
  _id: string
83
75
  transcript?: string
84
- transcriptLanguage?: string
85
76
  transcriptLoading?: boolean
86
77
  transcriptError?: string
87
78
  audioUri?: string
@@ -96,9 +87,3 @@ export enum RecordButtonVariant {
96
87
  DEFAULT = 'default',
97
88
  ADVANCED = 'advanced',
98
89
  }
99
-
100
- export enum VoiceTranscriptionVariant {
101
- SMALL = 'small',
102
- LARGE = 'large',
103
- }
104
-
package/src/index.ts CHANGED
@@ -14,4 +14,3 @@ export * from './shared/icons'
14
14
  export * from './features/voice'
15
15
  export * from './features/featureUsage'
16
16
  export * from './features/uiMode'
17
- export * from './features/translation'
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_ListItem","_i18n","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HEADER_HEIGHT","PROGRESS_BAR_WIDTH","PROGRESS_BAR_HEIGHT","getVisibleItems","items","maxItems","visible","slice","remainingCount","Math","max","length","ListCard","title","icon","color","isExpanded","isHighlighted","onPress","onHoverIn","onHoverOut","onItemPress","progress","rightContent","isFirst","isLast","expandedColor","COLORS","NEUTRAL_3","isSkillsLeftHidden","loadingItemId","testID","useText","isHovered","setIsHovered","useState","standards","withHighlight","Caret","CaretDownIcon","CaretRightIcon","jsxs","View","style","styles","container","containerCollapsed","containerFirst","containerLast","backgroundColor","children","Pressable","header","headerFirst","headerLast","jsx","caret","NEUTRAL_9","Typography","variant","HeadingVariants","H6","H7","percentage","round","track","fill","width","itemsLast","map","standard","ListItem","skillsLeft","subtitle","isFinished","isCompleted","isLoading","id","H8","moreText","count","exports","StyleSheet","create","justifyContent","NEUTRAL_2","overflow","Platform","select","web","cursor","marginTop","borderTopLeftRadius","BORDER_RADIUS","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","flexDirection","alignItems","height","padding","SPACING","borderWidth","borderColor","NEUTRAL_4","marginLeft","flex","gap","textAlign","borderRadius","NEUTRAL_1","NEUTRAL_7","marginVertical"],"sourceRoot":"../../../../../../src","sources":["features/pmProgress/components/list/ListCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAA+C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBA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ACrBpD,eAAe,EAAEtB,qBAAM,CAACmF;EAC1B,CAAC;EACD1C,SAAS,EAAE;IACT2B,sBAAsB,EAAEF,4BAAa,CAAC,GAAG,CAAC;IAC1CG,uBAAuB,EAAEH,4BAAa,CAAC,GAAG;EAC5C,CAAC;EACDd,QAAQ,EAAE;IACR6B,SAAS,EAAE,QAAQ;IACnB7F,KAAK,EAAEY,qBAAM,CAACoF,SAAS;IACvBC,cAAc,EAAEX,sBAAO,CAAC,GAAG;EAC7B;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_i18n","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CARD_HEIGHT","ICON_SIZE","SUBTITLE_FONT_SIZE","SUBTITLE_LINE_HEIGHT","ListItem","title","subtitle","skillsLeft","isFinished","isLoading","onPress","isSkillsLeftHidden","testID","useText","isHovered","setIsHovered","useState","isSkillsLeftVisible","hasDistinctSubtitle","jsxs","Pressable","disabled","style","styles","card","finished","hovered","hoveredFinished","loading","onHoverIn","onHoverOut","children","View","content","jsx","Typography","variant","HeadingVariants","H10","titleFinished","numberOfLines","subtitleFinished","trailing","loadingIndicator","Text","ActivityIndicator","size","color","COLORS","NEUTRAL_7","Fragment","skills","icon","CheckIcon","PRIMARY_GREEN","ArrowRightIcon","NEUTRAL_9","exports","StyleSheet","create","flexDirection","alignItems","height","paddingLeft","SPACING","paddingRight","backgroundColor","NEUTRAL_1","borderRadius","BORDER_RADIUS","gap","SHADOWS","GREEN_1","NEUTRAL_2","GREEN_2","flex","GREEN_7","fontSize","fontFamily","FONT_FAMILY","buenosAires","lineHeight","GREEN_6","width","justifyContent","opacity"],"sourceRoot":"../../../../../../src","sources":["features/pmProgress/components/list/ListItem.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAA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