@magmamath/students-features 1.3.23-rc.2 → 1.3.23-rc.21

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 (306) hide show
  1. package/dist/commonjs/features/translation/constants.js +11 -0
  2. package/dist/commonjs/features/translation/constants.js.map +1 -0
  3. package/dist/commonjs/features/translation/helpers.js +60 -0
  4. package/dist/commonjs/features/translation/helpers.js.map +1 -0
  5. package/dist/commonjs/features/translation/index.js +105 -0
  6. package/dist/commonjs/features/translation/index.js.map +1 -0
  7. package/dist/commonjs/features/translation/model/TranslationModel.js +122 -0
  8. package/dist/commonjs/features/translation/model/TranslationModel.js.map +1 -0
  9. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js +142 -0
  10. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js.map +1 -0
  11. package/dist/commonjs/features/translation/model/TranslationService.js +112 -0
  12. package/dist/commonjs/features/translation/model/TranslationService.js.map +1 -0
  13. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js +314 -0
  14. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js.map +1 -0
  15. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js +50 -0
  16. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js.map +1 -0
  17. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js +230 -0
  18. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js.map +1 -0
  19. package/dist/commonjs/features/translation/providers/google.types.js +2 -0
  20. package/dist/commonjs/features/translation/providers/google.types.js.map +1 -0
  21. package/dist/commonjs/features/translation/providers/translation.interface.js +49 -0
  22. package/dist/commonjs/features/translation/providers/translation.interface.js.map +1 -0
  23. package/dist/commonjs/features/translation/types.js +2 -0
  24. package/dist/commonjs/features/translation/types.js.map +1 -0
  25. package/dist/commonjs/features/voice/index.js +4 -4
  26. package/dist/commonjs/features/voice/index.js.map +1 -1
  27. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js +44 -0
  28. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js.map +1 -0
  29. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js +107 -0
  30. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js.map +1 -0
  31. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js +66 -0
  32. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +1 -0
  33. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +58 -0
  34. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +1 -0
  35. package/dist/commonjs/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.js → useDropdownAnimation.js} +8 -7
  36. package/dist/commonjs/features/voice/playing/hooks/useDropdownAnimation.js.map +1 -0
  37. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.js +128 -0
  38. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.js.map +1 -0
  39. package/dist/commonjs/features/voice/playing/model/{VoiceTranscriptionsDropdown.model.js → Dropdown.model.js} +4 -4
  40. package/dist/commonjs/features/voice/playing/model/Dropdown.model.js.map +1 -0
  41. package/dist/commonjs/features/voice/playing/model/PlaybackController.js +183 -0
  42. package/dist/commonjs/features/voice/playing/model/PlaybackController.js.map +1 -0
  43. package/dist/commonjs/features/voice/playing/model/Player.model.js +24 -1
  44. package/dist/commonjs/features/voice/playing/model/Player.model.js.map +1 -1
  45. package/dist/commonjs/features/voice/playing/model/{VoiceTranscriptionsCollection.js → TranscriptionsCollection.js} +4 -4
  46. package/dist/commonjs/features/voice/playing/model/TranscriptionsCollection.js.map +1 -0
  47. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.js +82 -0
  48. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.js.map +1 -0
  49. package/dist/commonjs/features/voice/playing/model/Translation.model.js +62 -0
  50. package/dist/commonjs/features/voice/playing/model/Translation.model.js.map +1 -0
  51. package/dist/commonjs/features/voice/playing/model/VoiceFileDownloader.model.js +2 -2
  52. package/dist/commonjs/features/voice/playing/model/VoiceFileDownloader.model.js.map +1 -1
  53. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +46 -172
  54. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
  55. package/dist/commonjs/features/voice/types.js.map +1 -1
  56. package/dist/commonjs/index.js +12 -0
  57. package/dist/commonjs/index.js.map +1 -1
  58. package/dist/module/features/translation/constants.js +7 -0
  59. package/dist/module/features/translation/constants.js.map +1 -0
  60. package/dist/module/features/translation/helpers.js +53 -0
  61. package/dist/module/features/translation/helpers.js.map +1 -0
  62. package/dist/module/features/translation/index.js +12 -0
  63. package/dist/module/features/translation/index.js.map +1 -0
  64. package/dist/module/features/translation/model/TranslationModel.js +117 -0
  65. package/dist/module/features/translation/model/TranslationModel.js.map +1 -0
  66. package/dist/module/features/translation/model/TranslationPreprocessor.js +137 -0
  67. package/dist/module/features/translation/model/TranslationPreprocessor.js.map +1 -0
  68. package/dist/module/features/translation/model/TranslationService.js +107 -0
  69. package/dist/module/features/translation/model/TranslationService.js.map +1 -0
  70. package/dist/module/features/translation/preserve/wordsToPreserve.js +310 -0
  71. package/dist/module/features/translation/preserve/wordsToPreserve.js.map +1 -0
  72. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js +45 -0
  73. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js.map +1 -0
  74. package/dist/module/features/translation/providers/google/supportedLanguages.js +225 -0
  75. package/dist/module/features/translation/providers/google/supportedLanguages.js.map +1 -0
  76. package/dist/module/features/translation/providers/google.types.js +2 -0
  77. package/dist/module/features/translation/providers/google.types.js.map +1 -0
  78. package/dist/module/features/translation/providers/translation.interface.js +44 -0
  79. package/dist/module/features/translation/providers/translation.interface.js.map +1 -0
  80. package/dist/module/features/translation/types.js +2 -0
  81. package/dist/module/features/translation/types.js.map +1 -0
  82. package/dist/module/features/voice/index.js +1 -1
  83. package/dist/module/features/voice/index.js.map +1 -1
  84. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js +38 -0
  85. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js.map +1 -0
  86. package/dist/module/features/voice/playing/components/VoiceTranscription.js +101 -0
  87. package/dist/module/features/voice/playing/components/VoiceTranscription.js.map +1 -0
  88. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js +58 -0
  89. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +1 -0
  90. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +52 -0
  91. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +1 -0
  92. package/dist/module/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.js → useDropdownAnimation.js} +6 -5
  93. package/dist/module/features/voice/playing/hooks/useDropdownAnimation.js.map +1 -0
  94. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionController.js +123 -0
  95. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionController.js.map +1 -0
  96. package/dist/module/features/voice/playing/model/{VoiceTranscriptionsDropdown.model.js → Dropdown.model.js} +2 -2
  97. package/dist/module/features/voice/playing/model/Dropdown.model.js.map +1 -0
  98. package/dist/module/features/voice/playing/model/PlaybackController.js +178 -0
  99. package/dist/module/features/voice/playing/model/PlaybackController.js.map +1 -0
  100. package/dist/module/features/voice/playing/model/Player.model.js +24 -1
  101. package/dist/module/features/voice/playing/model/Player.model.js.map +1 -1
  102. package/dist/module/features/voice/playing/model/{VoiceTranscriptionsCollection.js → TranscriptionsCollection.js} +2 -2
  103. package/dist/module/features/voice/playing/model/TranscriptionsCollection.js.map +1 -0
  104. package/dist/module/features/voice/playing/model/TranscriptionsDownloader.model.js +77 -0
  105. package/dist/module/features/voice/playing/model/TranscriptionsDownloader.model.js.map +1 -0
  106. package/dist/module/features/voice/playing/model/Translation.model.js +57 -0
  107. package/dist/module/features/voice/playing/model/Translation.model.js.map +1 -0
  108. package/dist/module/features/voice/playing/model/VoiceFileDownloader.model.js +2 -2
  109. package/dist/module/features/voice/playing/model/VoiceFileDownloader.model.js.map +1 -1
  110. package/dist/module/features/voice/playing/model/VoicePlayer.model.js +48 -174
  111. package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
  112. package/dist/module/features/voice/types.js.map +1 -1
  113. package/dist/module/index.js +1 -0
  114. package/dist/module/index.js.map +1 -1
  115. package/dist/typescript/commonjs/features/translation/constants.d.ts +5 -0
  116. package/dist/typescript/commonjs/features/translation/constants.d.ts.map +1 -0
  117. package/dist/typescript/commonjs/features/translation/helpers.d.ts +9 -0
  118. package/dist/typescript/commonjs/features/translation/helpers.d.ts.map +1 -0
  119. package/dist/typescript/commonjs/features/translation/index.d.ts +12 -0
  120. package/dist/typescript/commonjs/features/translation/index.d.ts.map +1 -0
  121. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts +33 -0
  122. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts.map +1 -0
  123. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts +34 -0
  124. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts.map +1 -0
  125. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts +40 -0
  126. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts.map +1 -0
  127. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts +3 -0
  128. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts.map +1 -0
  129. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts +17 -0
  130. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +1 -0
  131. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts +209 -0
  132. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts.map +1 -0
  133. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts +15 -0
  134. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts.map +1 -0
  135. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts +30 -0
  136. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts.map +1 -0
  137. package/dist/typescript/commonjs/features/translation/types.d.ts +27 -0
  138. package/dist/typescript/commonjs/features/translation/types.d.ts.map +1 -0
  139. package/dist/typescript/commonjs/features/voice/index.d.ts +2 -1
  140. package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -1
  141. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts +8 -0
  142. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +1 -0
  143. package/dist/typescript/{module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts → commonjs/features/voice/playing/components/VoiceTranscription.d.ts} +3 -4
  144. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts.map +1 -0
  145. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +10 -0
  146. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +1 -0
  147. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +12 -0
  148. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +1 -0
  149. package/dist/typescript/{module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts → commonjs/features/voice/playing/hooks/useDropdownAnimation.d.ts} +3 -3
  150. package/dist/typescript/commonjs/features/voice/playing/hooks/useDropdownAnimation.d.ts.map +1 -0
  151. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts +30 -0
  152. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts.map +1 -0
  153. package/dist/typescript/{module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts → commonjs/features/voice/playing/model/Dropdown.model.d.ts} +2 -2
  154. package/dist/typescript/commonjs/features/voice/playing/model/Dropdown.model.d.ts.map +1 -0
  155. package/dist/typescript/commonjs/features/voice/playing/model/PlaybackController.d.ts +28 -0
  156. package/dist/typescript/commonjs/features/voice/playing/model/PlaybackController.d.ts.map +1 -0
  157. package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts +3 -0
  158. package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts.map +1 -1
  159. package/dist/typescript/{module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts → commonjs/features/voice/playing/model/TranscriptionsCollection.d.ts} +2 -2
  160. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsCollection.d.ts.map +1 -0
  161. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.d.ts +19 -0
  162. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.d.ts.map +1 -0
  163. package/dist/typescript/commonjs/features/voice/playing/model/Translation.model.d.ts +25 -0
  164. package/dist/typescript/commonjs/features/voice/playing/model/Translation.model.d.ts.map +1 -0
  165. package/dist/typescript/commonjs/features/voice/playing/model/VoiceFileDownloader.model.d.ts +2 -2
  166. package/dist/typescript/commonjs/features/voice/playing/model/VoiceFileDownloader.model.d.ts.map +1 -1
  167. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +18 -18
  168. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  169. package/dist/typescript/commonjs/features/voice/types.d.ts +5 -1
  170. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
  171. package/dist/typescript/commonjs/index.d.ts +1 -0
  172. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  173. package/dist/typescript/module/features/translation/constants.d.ts +5 -0
  174. package/dist/typescript/module/features/translation/constants.d.ts.map +1 -0
  175. package/dist/typescript/module/features/translation/helpers.d.ts +9 -0
  176. package/dist/typescript/module/features/translation/helpers.d.ts.map +1 -0
  177. package/dist/typescript/module/features/translation/index.d.ts +12 -0
  178. package/dist/typescript/module/features/translation/index.d.ts.map +1 -0
  179. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts +33 -0
  180. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts.map +1 -0
  181. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts +34 -0
  182. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts.map +1 -0
  183. package/dist/typescript/module/features/translation/model/TranslationService.d.ts +40 -0
  184. package/dist/typescript/module/features/translation/model/TranslationService.d.ts.map +1 -0
  185. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts +3 -0
  186. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts.map +1 -0
  187. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts +17 -0
  188. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +1 -0
  189. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts +209 -0
  190. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts.map +1 -0
  191. package/dist/typescript/module/features/translation/providers/google.types.d.ts +15 -0
  192. package/dist/typescript/module/features/translation/providers/google.types.d.ts.map +1 -0
  193. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts +30 -0
  194. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts.map +1 -0
  195. package/dist/typescript/module/features/translation/types.d.ts +27 -0
  196. package/dist/typescript/module/features/translation/types.d.ts.map +1 -0
  197. package/dist/typescript/module/features/voice/index.d.ts +2 -1
  198. package/dist/typescript/module/features/voice/index.d.ts.map +1 -1
  199. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts +8 -0
  200. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +1 -0
  201. package/dist/typescript/{commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts → module/features/voice/playing/components/VoiceTranscription.d.ts} +3 -4
  202. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts.map +1 -0
  203. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +10 -0
  204. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +1 -0
  205. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +12 -0
  206. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +1 -0
  207. package/dist/typescript/{commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts → module/features/voice/playing/hooks/useDropdownAnimation.d.ts} +3 -3
  208. package/dist/typescript/module/features/voice/playing/hooks/useDropdownAnimation.d.ts.map +1 -0
  209. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts +30 -0
  210. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts.map +1 -0
  211. package/dist/typescript/{commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts → module/features/voice/playing/model/Dropdown.model.d.ts} +2 -2
  212. package/dist/typescript/module/features/voice/playing/model/Dropdown.model.d.ts.map +1 -0
  213. package/dist/typescript/module/features/voice/playing/model/PlaybackController.d.ts +28 -0
  214. package/dist/typescript/module/features/voice/playing/model/PlaybackController.d.ts.map +1 -0
  215. package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts +3 -0
  216. package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts.map +1 -1
  217. package/dist/typescript/{commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts → module/features/voice/playing/model/TranscriptionsCollection.d.ts} +2 -2
  218. package/dist/typescript/module/features/voice/playing/model/TranscriptionsCollection.d.ts.map +1 -0
  219. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloader.model.d.ts +19 -0
  220. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloader.model.d.ts.map +1 -0
  221. package/dist/typescript/module/features/voice/playing/model/Translation.model.d.ts +25 -0
  222. package/dist/typescript/module/features/voice/playing/model/Translation.model.d.ts.map +1 -0
  223. package/dist/typescript/module/features/voice/playing/model/VoiceFileDownloader.model.d.ts +2 -2
  224. package/dist/typescript/module/features/voice/playing/model/VoiceFileDownloader.model.d.ts.map +1 -1
  225. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +18 -18
  226. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  227. package/dist/typescript/module/features/voice/types.d.ts +5 -1
  228. package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
  229. package/dist/typescript/module/index.d.ts +1 -0
  230. package/dist/typescript/module/index.d.ts.map +1 -1
  231. package/package.json +28 -1
  232. package/src/features/translation/constants.ts +4 -0
  233. package/src/features/translation/helpers.ts +63 -0
  234. package/src/features/translation/index.ts +30 -0
  235. package/src/features/translation/model/TranslationModel.ts +174 -0
  236. package/src/features/translation/model/TranslationPreprocessor.ts +171 -0
  237. package/src/features/translation/model/TranslationService.ts +148 -0
  238. package/src/features/translation/preserve/wordsToPreserve.ts +87 -0
  239. package/src/features/translation/providers/google/GoogleTranslationProvider.ts +50 -0
  240. package/src/features/translation/providers/google/supportedLanguages.ts +229 -0
  241. package/src/features/translation/providers/google.types.ts +16 -0
  242. package/src/features/translation/providers/translation.interface.ts +63 -0
  243. package/src/features/translation/types.ts +30 -0
  244. package/src/features/voice/index.ts +2 -1
  245. package/src/features/voice/playing/components/VoiceTranscriptContent.tsx +37 -0
  246. package/src/features/voice/playing/components/VoiceTranscription.tsx +117 -0
  247. package/src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx +59 -0
  248. package/src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx +61 -0
  249. package/src/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.ts → useDropdownAnimation.ts} +5 -5
  250. package/src/features/voice/playing/hooks/useVoiceTranscriptionController.ts +171 -0
  251. package/src/features/voice/playing/model/{VoiceTranscriptionsDropdown.model.ts → Dropdown.model.ts} +2 -2
  252. package/src/features/voice/playing/model/PlaybackController.ts +213 -0
  253. package/src/features/voice/playing/model/Player.model.ts +26 -1
  254. package/src/features/voice/playing/model/{VoiceTranscriptionsCollection.ts → TranscriptionsCollection.ts} +1 -1
  255. package/src/features/voice/playing/model/TranscriptionsDownloader.model.ts +88 -0
  256. package/src/features/voice/playing/model/Translation.model.ts +75 -0
  257. package/src/features/voice/playing/model/VoiceFileDownloader.model.ts +2 -2
  258. package/src/features/voice/playing/model/VoicePlayer.model.ts +57 -194
  259. package/src/features/voice/types.ts +10 -0
  260. package/src/index.ts +1 -0
  261. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +0 -251
  262. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +0 -1
  263. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +0 -109
  264. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +0 -1
  265. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +0 -1
  266. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +0 -34
  267. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +0 -1
  268. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js +0 -66
  269. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +0 -1
  270. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +0 -1
  271. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +0 -1
  272. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +0 -244
  273. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +0 -1
  274. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +0 -103
  275. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +0 -1
  276. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +0 -1
  277. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +0 -29
  278. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +0 -1
  279. package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js +0 -61
  280. package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +0 -1
  281. package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +0 -1
  282. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +0 -1
  283. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +0 -1
  284. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +0 -12
  285. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +0 -1
  286. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +0 -1
  287. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +0 -11
  288. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +0 -1
  289. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -15
  290. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +0 -1
  291. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +0 -1
  292. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +0 -1
  293. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +0 -1
  294. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +0 -12
  295. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +0 -1
  296. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +0 -1
  297. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +0 -11
  298. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +0 -1
  299. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -15
  300. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +0 -1
  301. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +0 -1
  302. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +0 -1
  303. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +0 -302
  304. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +0 -128
  305. package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +0 -40
  306. package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +0 -80
@@ -0,0 +1,209 @@
1
+ /**
2
+ * Resolves an arbitrary language input (ISO code, locale, or English name) to the
3
+ * Google Translate ISO code. Returns null when the language is not supported.
4
+ *
5
+ * Examples:
6
+ * "en" → "en"
7
+ * "en-SE" → "en" (base fallback)
8
+ * "zh-CN" → "zh-CN" (exact match)
9
+ * "Spanish" → "es" (name lookup)
10
+ * "Chinese Simplified" → "zh-CN"
11
+ */
12
+ export declare const resolveGoogleLanguageCode: (language?: string | null) => string | null;
13
+ export declare const GoogleTranslateLanguage: {
14
+ ABKHAZ: string;
15
+ ACEHNESE: string;
16
+ ACHOLI: string;
17
+ AFRIKAANS: string;
18
+ ALBANIAN: string;
19
+ ALUR: string;
20
+ AMHARIC: string;
21
+ ARABIC: string;
22
+ ARMENIAN: string;
23
+ ASSAMESE: string;
24
+ AWADHI: string;
25
+ AYMARA: string;
26
+ AZERBAIJANI: string;
27
+ BALINESE: string;
28
+ BAMBARA: string;
29
+ BASHKIR: string;
30
+ BASQUE: string;
31
+ BATAK_KARO: string;
32
+ BATAK_SIMALUNGUN: string;
33
+ BATAK_TOBA: string;
34
+ BELARUSIAN: string;
35
+ BEMBA: string;
36
+ BENGALI: string;
37
+ BETAWI: string;
38
+ BHOJPURI: string;
39
+ BIKOL: string;
40
+ BOSNIAN: string;
41
+ BRETON: string;
42
+ BULGARIAN: string;
43
+ BURMESE: string;
44
+ BURYAT: string;
45
+ CANTONESE: string;
46
+ CATALAN: string;
47
+ CEBUANO: string;
48
+ CHICHEWA_NYANJA: string;
49
+ CHINESE_SIMPLIFIED: string;
50
+ CHINESE_TRADITIONAL: string;
51
+ CHUVASH: string;
52
+ CORSICAN: string;
53
+ CRIMEAN_TATAR: string;
54
+ CROATIAN: string;
55
+ CZECH: string;
56
+ DANISH: string;
57
+ DINKA: string;
58
+ DIVEHI: string;
59
+ DOGRI: string;
60
+ DOMBE: string;
61
+ DUTCH: string;
62
+ DZONGKHA: string;
63
+ ENGLISH: string;
64
+ ESPERANTO: string;
65
+ ESTONIAN: string;
66
+ EWE: string;
67
+ FIJIAN: string;
68
+ FILIPINO_TAGALOG: string;
69
+ FINNISH: string;
70
+ FRENCH: string;
71
+ FRENCH_CANADA: string;
72
+ FRENCH_FRANCE: string;
73
+ FRISIAN: string;
74
+ FULFULDE: string;
75
+ GA: string;
76
+ GALICIAN: string;
77
+ GANDA_LUGANDA: string;
78
+ GEORGIAN: string;
79
+ GERMAN: string;
80
+ GREEK: string;
81
+ GUARANI: string;
82
+ GUJARATI: string;
83
+ HAITIAN_CREOLE: string;
84
+ HAKHA_CHIN: string;
85
+ HAUSA: string;
86
+ HAWAIIAN: string;
87
+ HEBREW: string;
88
+ HILIGAYNON: string;
89
+ HINDI: string;
90
+ HMONG: string;
91
+ HUNGARIAN: string;
92
+ HUNSRIK: string;
93
+ ICELANDIC: string;
94
+ IGBO: string;
95
+ ILOKO: string;
96
+ INDONESIAN: string;
97
+ IRISH: string;
98
+ ITALIAN: string;
99
+ JAPANESE: string;
100
+ JAVANESE: string;
101
+ KANNADA: string;
102
+ KAPAMPANGAN: string;
103
+ KAZAKH: string;
104
+ KHMER: string;
105
+ KIGA: string;
106
+ KINYARWANDA: string;
107
+ KITUBA: string;
108
+ KONKANI: string;
109
+ KOREAN: string;
110
+ KRIO: string;
111
+ KURMANJI: string;
112
+ KYRGYZ: string;
113
+ LAO: string;
114
+ LATGALIAN: string;
115
+ LATIN: string;
116
+ LATVIAN: string;
117
+ LIGURIAN: string;
118
+ LIMBURGAN: string;
119
+ LINGALA: string;
120
+ LITHUANIAN: string;
121
+ LOMBARD: string;
122
+ LUO: string;
123
+ LUXEMBOURGISH: string;
124
+ MACEDONIAN: string;
125
+ MAITHILI: string;
126
+ MAKASSAR: string;
127
+ MALAGASY: string;
128
+ MALAY: string;
129
+ MALAYALAM: string;
130
+ MALAY_JAWI: string;
131
+ MALTESE: string;
132
+ MAORI: string;
133
+ MARATHI: string;
134
+ MEADOW_MARI: string;
135
+ MEITEILON_MANIPURI: string;
136
+ MINANG: string;
137
+ MIZO: string;
138
+ MONGOLIAN: string;
139
+ NDEBELE_SOUTH: string;
140
+ NEPALBHASA_NEWARI: string;
141
+ NEPALI: string;
142
+ NORTHERN_SOTHO: string;
143
+ NORWEGIAN: string;
144
+ NUER: string;
145
+ OCCITAN: string;
146
+ ODIA: string;
147
+ OROMO: string;
148
+ PANGASINAN: string;
149
+ PAPIAMENTO: string;
150
+ PASHTO: string;
151
+ PERSIAN: string;
152
+ POLISH: string;
153
+ PORTUGUESE: string;
154
+ PORTUGUESE_BRAZIL: string;
155
+ PORTUGUESE_PORTUGAL: string;
156
+ PUNJABI: string;
157
+ PUNJABI_SHAHMUKHI: string;
158
+ QUECHUA: string;
159
+ ROMANI: string;
160
+ ROMANIAN: string;
161
+ RUNDI: string;
162
+ RUSSIAN: string;
163
+ SAMOAN: string;
164
+ SANGO: string;
165
+ SANSKRIT: string;
166
+ SCOTS_GAELIC: string;
167
+ SERBIAN: string;
168
+ SESOTHO: string;
169
+ SEYCHELLOIS_CREOLE: string;
170
+ SHAN: string;
171
+ SHONA: string;
172
+ SICILIAN: string;
173
+ SILESIAN: string;
174
+ SINDHI: string;
175
+ SINHALA: string;
176
+ SLOVAK: string;
177
+ SLOVENIAN: string;
178
+ SOMALI: string;
179
+ SORANI: string;
180
+ SPANISH: string;
181
+ SUNDANESE: string;
182
+ SWAHILI: string;
183
+ SWATI: string;
184
+ SWEDISH: string;
185
+ TAJIK: string;
186
+ TAMIL: string;
187
+ TATAR: string;
188
+ TELUGU: string;
189
+ TETUM: string;
190
+ THAI: string;
191
+ TIGRINYA: string;
192
+ TSONGA: string;
193
+ TSWANA: string;
194
+ TURKISH: string;
195
+ TURKMEN: string;
196
+ TWI_AKAN: string;
197
+ UKRAINIAN: string;
198
+ URDU: string;
199
+ UYGHUR: string;
200
+ UZBEK: string;
201
+ VIETNAMESE: string;
202
+ WELSH: string;
203
+ XHOSA: string;
204
+ YIDDISH: string;
205
+ YORUBA: string;
206
+ YUCATEC_MAYA: string;
207
+ ZULU: string;
208
+ };
209
+ //# sourceMappingURL=supportedLanguages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportedLanguages.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/translation/providers/google/supportedLanguages.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,cAAe,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAM7E,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmMnC,CAAA"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,30 @@
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
+ /**
16
+ * Returns the provider-supported variant of `language`, falling back to the base
17
+ * language part (e.g. "en-SE" → "en") when the exact locale is not listed.
18
+ * Subclasses may override to add their own resolution (e.g. language names).
19
+ * Returns null when the language cannot be resolved.
20
+ */
21
+ resolveLanguage(language: string): string | null;
22
+ getSupportedLanguages(): SetIterator<string>;
23
+ /**
24
+ * Replaces full standalone words in text using a custom glossary for the target language,
25
+ * matching words like "Hello", or "Hej" regardless of case, but not when they appear inside other words.
26
+ */
27
+ applyGlossary(text: string, targetLanguage: string): string;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=translation.interface.d.ts.map
@@ -0,0 +1 @@
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;IAIzC;;;;;OAKG;IACI,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAQhD,qBAAqB;IAI5B;;;OAGG;IACI,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM;CAKnE"}
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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"}
@@ -3,8 +3,9 @@ export * from './recording/model/VoiceRecord.model';
3
3
  export * from './recording/modal/VoiceRecordDeleteModal';
4
4
  export * from './recording/modal/VoiceRecordUndoModal';
5
5
  export * from './playing/model/VoicePlayer.model';
6
- export * from './playing/components/VoiceTranscriptionsDropdown';
6
+ export * from './playing/components/VoiceTranscription';
7
7
  export * from './playing/components/VoiceIcon';
8
8
  export * from './constants';
9
9
  export * from './types';
10
+ export type { WithAbortSignal } from '../../types/common.types';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/voice/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,qCAAqC,CAAA;AACnD,cAAc,0CAA0C,CAAA;AACxD,cAAc,wCAAwC,CAAA;AAEtD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kDAAkD,CAAA;AAEhE,cAAc,gCAAgC,CAAA;AAC9C,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/voice/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,qCAAqC,CAAA;AACnD,cAAc,0CAA0C,CAAA;AACxD,cAAc,wCAAwC,CAAA;AAEtD,cAAc,mCAAmC,CAAA;AACjD,cAAc,yCAAyC,CAAA;AAEvD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -2,16 +2,15 @@ import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { AnswerAudio, VoiceTranscriptionVariant } from '../../types';
4
4
  import { VoicePlayerModel } from '../model';
5
- type VoiceTranscriptionsDropdownProps = {
5
+ type VoiceTranscriptionProps = {
6
6
  style?: StyleProp<ViewStyle>;
7
7
  model: VoicePlayerModel;
8
8
  answers: AnswerAudio[];
9
9
  attemptOffset: number;
10
- onAttemptOffsetChange: (offset: number) => void;
11
10
  attemptsCount: number;
12
11
  problemId: string;
13
12
  variant?: VoiceTranscriptionVariant;
14
13
  };
15
- export declare const VoiceTranscriptionsDropdown: ({ style, model, answers, attemptOffset, onAttemptOffsetChange, attemptsCount, problemId, variant, }: VoiceTranscriptionsDropdownProps) => React.JSX.Element;
14
+ export declare const VoiceTranscription: ({ style, model, answers, attemptOffset, attemptsCount, problemId, variant, }: VoiceTranscriptionProps) => React.JSX.Element;
16
15
  export {};
17
- //# sourceMappingURL=VoiceTranscriptionsDropdown.d.ts.map
16
+ //# sourceMappingURL=VoiceTranscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoiceTranscription.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/components/VoiceTranscription.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAA;AAErE,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,sBA6CzB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { DropdownModel } from '../model/Dropdown.model';
3
+ type VoiceTranscriptionCollapsibleProps = {
4
+ text: string;
5
+ isLoading: boolean;
6
+ dropdown: DropdownModel;
7
+ };
8
+ export declare const VoiceTranscriptionCollapsible: ({ text, isLoading, dropdown, }: VoiceTranscriptionCollapsibleProps) => React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=VoiceTranscriptionCollapsible.d.ts.map
@@ -0,0 +1 @@
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,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAKvD,KAAK,kCAAkC,GAAG;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,aAAa,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,6BAA6B,mCAIvC,kCAAkC,sBAuBpC,CAAA"}
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoiceTranscriptionHeaderActions.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,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,sBA2BvC,CAAA"}
@@ -1,6 +1,6 @@
1
- import { VoiceTranscriptionsDropdownModel } from '../model/VoiceTranscriptionsDropdown.model';
1
+ import { DropdownModel } from '../model/Dropdown.model';
2
2
  import { LayoutChangeEvent } from 'react-native';
3
- export declare const useVoiceTranscriptionsDropdown: (model: VoiceTranscriptionsDropdownModel) => {
3
+ export declare const useDropdownAnimation: (model: DropdownModel) => {
4
4
  isExpanded: boolean;
5
5
  listAnimatedStyle: {
6
6
  height: number;
@@ -13,4 +13,4 @@ export declare const useVoiceTranscriptionsDropdown: (model: VoiceTranscriptions
13
13
  };
14
14
  onListLayout: (event: LayoutChangeEvent) => void;
15
15
  };
16
- //# sourceMappingURL=useVoiceTranscriptionsDropdown.d.ts.map
16
+ //# sourceMappingURL=useDropdownAnimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDropdownAnimation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/hooks/useDropdownAnimation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,eAAO,MAAM,oBAAoB,UAAW,aAAa;;;;;;;;;;;0BAM1B,iBAAiB;CAwC/C,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { AnswerAudio } from '../../types';
2
+ import { VoicePlayerModel } from '../model';
3
+ import { PlayerState } from '../model/Player.model';
4
+ type Params = {
5
+ model: VoicePlayerModel;
6
+ answers: AnswerAudio[];
7
+ attemptOffset: number;
8
+ attemptsCount: number;
9
+ problemId: string;
10
+ };
11
+ export type VoiceTranscriptionController = ReturnType<typeof useVoiceTranscriptionController>;
12
+ export declare const useVoiceTranscriptionController: ({ model, answers, attemptOffset, attemptsCount, problemId, }: Params) => {
13
+ display: {
14
+ text: string;
15
+ isLoading: boolean;
16
+ };
17
+ flags: {
18
+ playerState: PlayerState;
19
+ hasActiveAudio: boolean;
20
+ anyAttemptHasAudio: boolean;
21
+ canTranslate: boolean;
22
+ isTranslationActive: boolean;
23
+ };
24
+ actions: {
25
+ onPlayPress: () => void;
26
+ onTranslationToggle: () => void;
27
+ };
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=useVoiceTranscriptionController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVoiceTranscriptionController.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/hooks/useVoiceTranscriptionController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,KAAK,MAAM,GAAG;IACZ,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;CAClB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F,eAAO,MAAM,+BAA+B,iEAMzC,MAAM;;;;;;qBAoIyB,WAAW;;;;;;;;;;CAW5C,CAAA"}
@@ -1,7 +1,7 @@
1
- export declare class VoiceTranscriptionsDropdownModel {
1
+ export declare class DropdownModel {
2
2
  readonly toggleExpand: import("effector").EventCallable<void>;
3
3
  readonly setExpanded: import("effector").EventCallable<boolean>;
4
4
  readonly reset: import("effector").EventCallable<void>;
5
5
  readonly $isExpanded: import("effector").StoreWritable<boolean>;
6
6
  }
7
- //# sourceMappingURL=VoiceTranscriptionsDropdown.model.d.ts.map
7
+ //# sourceMappingURL=Dropdown.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/Dropdown.model.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IACxB,SAAgB,YAAY,yCAAgB;IAC5C,SAAgB,WAAW,4CAAyB;IACpD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,WAAW,4CAEP;CACrB"}
@@ -0,0 +1,28 @@
1
+ import { PlayerModel } from './Player.model';
2
+ import { TranscriptionsCollection } from './TranscriptionsCollection';
3
+ import { VoiceFileDownloaderModel } from './VoiceFileDownloader.model';
4
+ type PlaybackControllerDeps = {
5
+ collection: TranscriptionsCollection;
6
+ player: PlayerModel;
7
+ downloader: VoiceFileDownloaderModel;
8
+ };
9
+ export declare class PlaybackController {
10
+ private readonly collection;
11
+ private readonly player;
12
+ private readonly downloader;
13
+ private currentPlayingAttempt;
14
+ private shouldPreventPlayback;
15
+ constructor(deps: PlaybackControllerDeps);
16
+ readonly togglePlayPause: (attemptNumber: number) => void;
17
+ readonly preloadAudio: import("effector").Effect<number, void, Error>;
18
+ private primePlayerIfIdle;
19
+ halt(): void;
20
+ releaseResources(): void;
21
+ private clearCurrentAttempt;
22
+ private abortAllDownloads;
23
+ private downloadAudio;
24
+ private readonly handlePlayAttempt;
25
+ private readonly playAudioFx;
26
+ }
27
+ export {};
28
+ //# sourceMappingURL=PlaybackController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlaybackController.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/PlaybackController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAe,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAEtE,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,wBAAwB,CAAA;IACpC,MAAM,EAAE,WAAW,CAAA;IACnB,UAAU,EAAE,wBAAwB,CAAA;CACrC,CAAA;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,qBAAqB,CAAsB;IACnD,OAAO,CAAC,qBAAqB,CAAQ;gBAEzB,IAAI,EAAE,sBAAsB;IAOxC,SAAgB,eAAe,kBAAmB,MAAM,UAOvD;IAED,SAAgB,YAAY,iDAqB1B;IAEF,OAAO,CAAC,iBAAiB;IAQlB,IAAI;IAOJ,gBAAgB;IAavB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,iBAAiB;YAaX,aAAa;IAmC3B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAsChC;IAEF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAkC1B;CACH"}
@@ -8,6 +8,7 @@ export declare const enum PlayerState {
8
8
  export declare class PlayerModel {
9
9
  player: AudioPlayer | null;
10
10
  private stopped;
11
+ private primedUri;
11
12
  readonly reset: import("effector").EventCallable<void>;
12
13
  readonly setPlayerState: import("effector").EventCallable<PlayerState>;
13
14
  readonly playbackFinished: import("effector").EventCallable<void>;
@@ -15,6 +16,8 @@ export declare class PlayerModel {
15
16
  readonly setupAudioMode: import("effector").Effect<void, void, Error>;
16
17
  readonly pause: import("effector").Effect<void, void, Error>;
17
18
  readonly stop: import("effector").Effect<void, void, Error>;
19
+ readonly prime: import("effector").Effect<string, void, Error>;
20
+ readonly seek: import("effector").Effect<number, void, Error>;
18
21
  readonly resume: import("effector").Effect<void, void, Error>;
19
22
  readonly play: import("effector").Effect<string, void, Error>;
20
23
  reinitialize(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"Player.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/Player.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAwC,MAAM,YAAY,CAAA;AAE9E,0BAAkB,WAAW;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,WAAW;IACf,MAAM,EAAE,WAAW,GAAG,IAAI,CAAsB;IACvD,OAAO,CAAC,OAAO,CAAQ;IAEvB,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,cAAc,gDAA6B;IAC3D,SAAgB,gBAAgB,yCAAgB;IAEhD,SAAgB,YAAY,gDAAmE;IAE/F,SAAgB,cAAc,+CAM5B;IAEF,SAAgB,KAAK,+CAOnB;IAEF,SAAgB,IAAI,+CAQlB;IAEF,SAAgB,MAAM,+CAOpB;IAEF,SAAgB,IAAI,iDA4BlB;IAEK,YAAY;IAMZ,OAAO;CAWf"}
1
+ {"version":3,"file":"Player.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/Player.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAwC,MAAM,YAAY,CAAA;AAE9E,0BAAkB,WAAW;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,WAAW;IACf,MAAM,EAAE,WAAW,GAAG,IAAI,CAAsB;IACvD,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,SAAS,CAAsB;IAEvC,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,cAAc,gDAA6B;IAC3D,SAAgB,gBAAgB,yCAAgB;IAEhD,SAAgB,YAAY,gDAAmE;IAE/F,SAAgB,cAAc,+CAM5B;IAEF,SAAgB,KAAK,+CAOnB;IAEF,SAAgB,IAAI,+CASlB;IAEF,SAAgB,KAAK,iDAKnB;IAEF,SAAgB,IAAI,iDAUlB;IAEF,SAAgB,MAAM,+CAOpB;IAEF,SAAgB,IAAI,iDA+BlB;IAEK,YAAY;IAMZ,OAAO;CAYf"}
@@ -1,5 +1,5 @@
1
1
  import { VoiceTranscriptionItem } from '../../types';
2
- export declare class VoiceTranscriptionsCollection {
2
+ export declare class TranscriptionsCollection {
3
3
  readonly collection: Map<number, VoiceTranscriptionItem>;
4
4
  add(attemptNumber: number, item: VoiceTranscriptionItem): void;
5
5
  update(attemptNumber: number, item: Partial<VoiceTranscriptionItem>): void;
@@ -10,4 +10,4 @@ export declare class VoiceTranscriptionsCollection {
10
10
  hasTranscript(attemptNumber: number): boolean;
11
11
  hasAudio(attemptNumber: number): boolean;
12
12
  }
13
- //# sourceMappingURL=VoiceTranscriptionsCollection.d.ts.map
13
+ //# sourceMappingURL=TranscriptionsCollection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptionsCollection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/TranscriptionsCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,qBAAa,wBAAwB;IACnC,SAAgB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAY;IAEpE,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB;IAIvD,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,sBAAsB,CAAC;IAKnE,MAAM,CAAC,aAAa,EAAE,MAAM;IAI5B,GAAG,CAAC,aAAa,EAAE,MAAM;IAIzB,MAAM;IAIN,KAAK;IAIL,aAAa,CAAC,aAAa,EAAE,MAAM;IAKnC,QAAQ,CAAC,aAAa,EAAE,MAAM;CAItC"}
@@ -0,0 +1,19 @@
1
+ import { TranscriptionsCollection } from './TranscriptionsCollection';
2
+ import { VoicePlayerApi } from '../../types';
3
+ type TranscriptResult = {
4
+ text: string;
5
+ language?: string;
6
+ };
7
+ export declare class TranscriptionsDownloaderModel {
8
+ private readonly collection;
9
+ private readonly api;
10
+ private readonly inflightFetches;
11
+ private readonly transcriptCache;
12
+ constructor(collection: TranscriptionsCollection, api: VoicePlayerApi);
13
+ private fetchTranscriptWithRetry;
14
+ private runFetchWithRetry;
15
+ readonly loadTranscriptForAttempt: import("effector").Effect<number, void, Error>;
16
+ getCachedTranscript(audioFileId: string): TranscriptResult | undefined;
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=TranscriptionsDownloader.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptionsDownloader.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/TranscriptionsDownloader.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAO5C,KAAK,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3D,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA+C;IAC/E,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAsC;gBAE1D,UAAU,EAAE,wBAAwB,EAAE,GAAG,EAAE,cAAc;IAKrE,OAAO,CAAC,wBAAwB;YAmBlB,iBAAiB;IAmB/B,SAAgB,wBAAwB,iDAsBtC;IAEK,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;CAG9E"}
@@ -0,0 +1,25 @@
1
+ import { TranscriptionsCollection } from './TranscriptionsCollection';
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 TranslationModel {
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: TranscriptionsCollection, api: VoicePlayerApi);
22
+ getTranslation(attemptNumber: number): string | undefined;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=Translation.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Translation.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/Translation.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,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,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,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,wBAAwB,EAAE,GAAG,EAAE,cAAc;IAc9D,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAGjE"}
@@ -8,8 +8,8 @@ type DownloadResult = {
8
8
  downloadPromise: Promise<any>;
9
9
  };
10
10
  export declare class VoiceFileDownloaderModel {
11
- private api;
12
- readonly setApi: (api: VoicePlayerApi) => void;
11
+ private readonly api;
12
+ constructor(api: VoicePlayerApi);
13
13
  readonly download: import("effector").Effect<DownloadParams, DownloadResult, Error>;
14
14
  readonly abortDownload: (controller?: AbortController) => void;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VoiceFileDownloader.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoiceFileDownloader.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAGpE,KAAK,cAAc,GAAG;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,cAAc,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;CAC9B,CAAA;AAED,qBAAa,wBAAwB;IACnC,OAAO,CAAC,GAAG,CAAiB;IAE5B,SAAgB,MAAM,QAAS,cAAc,UAE5C;IAED,SAAgB,QAAQ,mEAevB;IAED,SAAgB,aAAa,gBAAiB,eAAe,UAE5D;CACF"}
1
+ {"version":3,"file":"VoiceFileDownloader.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoiceFileDownloader.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAGpE,KAAK,cAAc,GAAG;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,cAAc,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;CAC9B,CAAA;AAED,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;gBAExB,GAAG,EAAE,cAAc;IAI/B,SAAgB,QAAQ,mEAevB;IAED,SAAgB,aAAa,gBAAiB,eAAe,UAE5D;CACF"}