@magmamath/students-features 1.3.23-rc.8 → 1.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js +10 -1
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/{ListCard.js → DomainCard.js} +10 -22
- package/dist/commonjs/features/pmProgress/components/list/DomainCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js +3 -3
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +3 -3
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/{ListItem.js → StandardItem.js} +5 -5
- package/dist/commonjs/features/pmProgress/components/list/StandardItem.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +7 -4
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +1 -8
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +1 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
- package/dist/commonjs/features/voice/index.js +4 -4
- package/dist/commonjs/features/voice/index.js.map +1 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +245 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +109 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/{useVoiceTranscription.js → useVoiceTranscriptionsDropdown.js} +4 -4
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +34 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js +4 -15
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +1 -1
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +2 -6
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
- package/dist/commonjs/features/voice/playing/model/{VoiceTranscription.model.js → VoiceTranscriptionsDropdown.model.js} +4 -4
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
- package/dist/commonjs/features/voice/types.js +1 -6
- package/dist/commonjs/features/voice/types.js.map +1 -1
- package/dist/commonjs/index.js +0 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js +1 -0
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js +10 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/{ListCard.js → DomainCard.js} +8 -20
- package/dist/module/features/pmProgress/components/list/DomainCard.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/Fluency.js +3 -3
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +3 -3
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/{ListItem.js → StandardItem.js} +3 -3
- package/dist/module/features/pmProgress/components/list/StandardItem.js.map +1 -0
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +7 -4
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
- package/dist/module/features/pmProgress/components/standard/StandardTag.js +2 -9
- package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +1 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
- package/dist/module/features/voice/index.js +1 -1
- package/dist/module/features/voice/index.js.map +1 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +238 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +103 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/{useVoiceTranscription.js → useVoiceTranscriptionsDropdown.js} +2 -2
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +29 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
- package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js +4 -15
- package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +1 -1
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js +2 -6
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
- package/dist/module/features/voice/playing/model/{VoiceTranscription.model.js → VoiceTranscriptionsDropdown.model.js} +2 -2
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
- package/dist/module/features/voice/types.js +0 -5
- package/dist/module/features/voice/types.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
- package/dist/typescript/commonjs/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/StandardItem.d.ts +13 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/index.d.ts +1 -1
- package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/types.d.ts +1 -9
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
- package/dist/typescript/module/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts +13 -0
- package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/index.d.ts +1 -1
- package/dist/typescript/module/features/voice/index.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/types.d.ts +1 -9
- package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/pmProgress/components/chart/chart.helpers.ts +1 -0
- package/src/features/pmProgress/components/header/StartButton.tsx +11 -1
- package/src/features/pmProgress/components/list/{ListCard.tsx → DomainCard.tsx} +12 -19
- package/src/features/pmProgress/components/list/Fluency.tsx +3 -3
- package/src/features/pmProgress/components/list/PmDomainList.tsx +3 -3
- package/src/features/pmProgress/components/list/{ListItem.tsx → StandardItem.tsx} +4 -4
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +8 -4
- package/src/features/pmProgress/components/standard/StandardTag.tsx +2 -6
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +1 -2
- package/src/features/voice/index.ts +1 -1
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +296 -0
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +128 -0
- package/src/features/voice/playing/hooks/{useVoiceTranscription.ts → useVoiceTranscriptionsDropdown.ts} +2 -2
- package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +40 -0
- package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +5 -8
- package/src/features/voice/playing/model/VoicePlayer.model.ts +2 -7
- package/src/features/voice/playing/model/{VoiceTranscription.model.ts → VoiceTranscriptionsDropdown.model.ts} +2 -2
- package/src/features/voice/types.ts +0 -15
- package/src/index.ts +0 -1
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
- package/dist/commonjs/features/translation/constants.js +0 -11
- package/dist/commonjs/features/translation/constants.js.map +0 -1
- package/dist/commonjs/features/translation/helpers.js +0 -60
- package/dist/commonjs/features/translation/helpers.js.map +0 -1
- package/dist/commonjs/features/translation/index.js +0 -105
- package/dist/commonjs/features/translation/index.js.map +0 -1
- package/dist/commonjs/features/translation/model/TranslationModel.js +0 -122
- package/dist/commonjs/features/translation/model/TranslationModel.js.map +0 -1
- package/dist/commonjs/features/translation/model/TranslationPreprocessor.js +0 -142
- package/dist/commonjs/features/translation/model/TranslationPreprocessor.js.map +0 -1
- package/dist/commonjs/features/translation/model/TranslationService.js +0 -112
- package/dist/commonjs/features/translation/model/TranslationService.js.map +0 -1
- package/dist/commonjs/features/translation/preserve/wordsToPreserve.js +0 -314
- package/dist/commonjs/features/translation/preserve/wordsToPreserve.js.map +0 -1
- package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js +0 -43
- package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
- package/dist/commonjs/features/translation/providers/google/supportedLanguages.js +0 -203
- package/dist/commonjs/features/translation/providers/google/supportedLanguages.js.map +0 -1
- package/dist/commonjs/features/translation/providers/google.types.js +0 -2
- package/dist/commonjs/features/translation/providers/google.types.js.map +0 -1
- package/dist/commonjs/features/translation/providers/translation.interface.js +0 -35
- package/dist/commonjs/features/translation/providers/translation.interface.js.map +0 -1
- package/dist/commonjs/features/translation/types.js +0 -2
- package/dist/commonjs/features/translation/types.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js +0 -44
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js +0 -131
- package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -66
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -59
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -37
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -62
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
- package/dist/module/features/translation/constants.js +0 -7
- package/dist/module/features/translation/constants.js.map +0 -1
- package/dist/module/features/translation/helpers.js +0 -53
- package/dist/module/features/translation/helpers.js.map +0 -1
- package/dist/module/features/translation/index.js +0 -12
- package/dist/module/features/translation/index.js.map +0 -1
- package/dist/module/features/translation/model/TranslationModel.js +0 -117
- package/dist/module/features/translation/model/TranslationModel.js.map +0 -1
- package/dist/module/features/translation/model/TranslationPreprocessor.js +0 -137
- package/dist/module/features/translation/model/TranslationPreprocessor.js.map +0 -1
- package/dist/module/features/translation/model/TranslationService.js +0 -107
- package/dist/module/features/translation/model/TranslationService.js.map +0 -1
- package/dist/module/features/translation/preserve/wordsToPreserve.js +0 -310
- package/dist/module/features/translation/preserve/wordsToPreserve.js.map +0 -1
- package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js +0 -38
- package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
- package/dist/module/features/translation/providers/google/supportedLanguages.js +0 -199
- package/dist/module/features/translation/providers/google/supportedLanguages.js.map +0 -1
- package/dist/module/features/translation/providers/google.types.js +0 -2
- package/dist/module/features/translation/providers/google.types.js.map +0 -1
- package/dist/module/features/translation/providers/translation.interface.js +0 -30
- package/dist/module/features/translation/providers/translation.interface.js.map +0 -1
- package/dist/module/features/translation/types.js +0 -2
- package/dist/module/features/translation/types.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js +0 -38
- package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscription.js +0 -123
- package/dist/module/features/voice/playing/components/VoiceTranscription.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -58
- package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -51
- package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
- package/dist/module/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -32
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -57
- package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +0 -13
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/constants.d.ts +0 -5
- package/dist/typescript/commonjs/features/translation/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/helpers.d.ts +0 -9
- package/dist/typescript/commonjs/features/translation/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/index.d.ts +0 -12
- package/dist/typescript/commonjs/features/translation/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts +0 -33
- package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts +0 -34
- package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts +0 -40
- package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts +0 -3
- package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -16
- package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts +0 -197
- package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts +0 -15
- package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts +0 -23
- package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/translation/types.d.ts +0 -27
- package/dist/typescript/commonjs/features/translation/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +0 -13
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/constants.d.ts +0 -5
- package/dist/typescript/module/features/translation/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/helpers.d.ts +0 -9
- package/dist/typescript/module/features/translation/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/index.d.ts +0 -12
- package/dist/typescript/module/features/translation/index.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/model/TranslationModel.d.ts +0 -33
- package/dist/typescript/module/features/translation/model/TranslationModel.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts +0 -34
- package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/model/TranslationService.d.ts +0 -40
- package/dist/typescript/module/features/translation/model/TranslationService.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts +0 -3
- package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -16
- package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts +0 -197
- package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/providers/google.types.d.ts +0 -15
- package/dist/typescript/module/features/translation/providers/google.types.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/providers/translation.interface.d.ts +0 -23
- package/dist/typescript/module/features/translation/providers/translation.interface.d.ts.map +0 -1
- package/dist/typescript/module/features/translation/types.d.ts +0 -27
- package/dist/typescript/module/features/translation/types.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
- package/src/features/translation/constants.ts +0 -4
- package/src/features/translation/helpers.ts +0 -63
- package/src/features/translation/index.ts +0 -30
- package/src/features/translation/model/TranslationModel.ts +0 -174
- package/src/features/translation/model/TranslationPreprocessor.ts +0 -171
- package/src/features/translation/model/TranslationService.ts +0 -148
- package/src/features/translation/preserve/wordsToPreserve.ts +0 -87
- package/src/features/translation/providers/google/GoogleTranslationProvider.ts +0 -34
- package/src/features/translation/providers/google/supportedLanguages.ts +0 -196
- package/src/features/translation/providers/google.types.ts +0 -16
- package/src/features/translation/providers/translation.interface.ts +0 -49
- package/src/features/translation/types.ts +0 -30
- package/src/features/voice/playing/components/VoiceTranscriptContent.tsx +0 -37
- package/src/features/voice/playing/components/VoiceTranscription.tsx +0 -163
- package/src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx +0 -59
- package/src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx +0 -62
- package/src/features/voice/playing/hooks/useVoiceTranscriptionEffects.ts +0 -44
- package/src/features/voice/playing/model/VoiceTranscriptionTranslation.model.ts +0 -75
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["COLORS","CustomDomain","DOMAIN_BORDER_COLORS","DOMAIN_COLORS","dynamicCornerRadius","dynamicInnerRadius","getText","groupStandardsByDomain","standardStats","treeMapping","grouped","Map","standardId","stat","Object","entries","domainId","skillIds","skillsCount","scorePercentage","skillsToPractice","has","set","completed","failed","length","unattempted","left","get","push","title","shortDescriptionTranslations","nameTranslations","subtitle","originalId","isCompleted","skillsLeft","averageScorePercentage","standards","sum","reduce","acc","s","Math","round","resolveDomainColors","nonFluencyIndex","color","PRIMARY_ORANGE","borderColor","ORANGE_6","getDomainStructure","data","Array","from","nonFluencyDomainIds","map","id","filter","isFluencyDomain","indexOf","backgroundColor","NEUTRAL_4","getInitialPmGrade","treeGrades","lockedGrades","enrolledGrades","userGrade","locked","Set","unlocked","g","sort","a","b","isUserGradeMissing","undefined","unlockedEnrolled","includes","min","nearestBelow","reverse","find","grade","nearestAbove","formatTime","ms","totalMinutes","floor","hours","isTreeDataReady","source","tree","stats","user","isTreeDataWithoutGradeReady","createChartConfig","size","OUTER_MARGIN","outerRadius","innerRadius","cornerRadius","gapBetweenSlices","pressOffset","borderWidth","colors","background","NEUTRAL_1","highlightedBackground","NEUTRAL_6","outerArc","strokeWidth","dashWidth","getAllSkillsFromStandard","standard","skillsMapping","Boolean","_id","difficulty","getUncompletedSkillsFromStandard","skillId","getUncompletedSkillsFromDomain","domain","excludeStandardId","flatMap","getAllUncompletedSkills","domains","d","some","shiftToBeginningOfArray","items","index","findIndex","item","slice","withoutDuplicates","skills","seen","skill","add","findDomainBySkillId","startGradesFrom","grades","startGrade","value","toLowerCase","FLUENCY","formatGradeName","formatGradeLabel","customLabelsMap","label","String","noPrefix","name","getTreeGrades","setting","practiceModeLockedGrades","gradeNodes","values","node","type","attributes","uniqueSortedGrades","isLocked"],"sourceRoot":"../../../../../src","sources":["features/pmProgress/shared/pmProgress.helpers.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAA4B;AAanD,SAASC,YAAY,EAAEC,oBAAoB,EAAEC,aAAa,QAAQ,2BAAwB;AAC1F,SAASC,mBAAmB,EAAEC,kBAAkB,QAAQ,sCAAmC;AAE3F,SAASC,OAAO,QAAQ,uBAAoB;AAE5C,MAAMC,sBAAsB,GAAGA,CAC7BC,aAA8D,EAC9DC,WAA+C,KAC5C;EACH,MAAMC,OAAO,GAAG,IAAIC,GAAG,CAA8B,CAAC;EAEtD,KAAK,MAAM,CAACC,UAAU,EAAEC,IAAI,CAAC,IAAIC,MAAM,CAACC,OAAO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_COLORS","DOMAIN_COLORS","dynamicCornerRadius","dynamicInnerRadius","getText","groupStandardsByDomain","standardStats","treeMapping","grouped","Map","standardId","stat","Object","entries","domainId","skillIds","skillsCount","scorePercentage","skillsToPractice","has","set","completed","failed","length","unattempted","left","get","push","title","shortDescriptionTranslations","nameTranslations","subtitle","originalId","isCompleted","skillsLeft","averageScorePercentage","standards","sum","reduce","acc","s","Math","round","resolveDomainColors","nonFluencyIndex","color","PRIMARY_ORANGE","borderColor","ORANGE_6","getDomainStructure","data","Array","from","nonFluencyDomainIds","map","id","filter","isFluencyDomain","indexOf","backgroundColor","NEUTRAL_4","getInitialPmGrade","treeGrades","lockedGrades","enrolledGrades","userGrade","locked","Set","unlocked","g","sort","a","b","isUserGradeMissing","undefined","unlockedEnrolled","includes","min","nearestBelow","reverse","find","grade","nearestAbove","formatTime","ms","totalMinutes","floor","hours","isTreeDataReady","source","tree","stats","user","isTreeDataWithoutGradeReady","createChartConfig","size","OUTER_MARGIN","outerRadius","innerRadius","cornerRadius","gapBetweenSlices","pressOffset","borderWidth","colors","background","NEUTRAL_1","highlightedBackground","NEUTRAL_6","outerArc","strokeWidth","dashWidth","getAllSkillsFromStandard","standard","skillsMapping","Boolean","_id","difficulty","getUncompletedSkillsFromStandard","skillId","getUncompletedSkillsFromDomain","domain","excludeStandardId","flatMap","getAllUncompletedSkills","domains","d","some","shiftToBeginningOfArray","items","index","findIndex","item","slice","withoutDuplicates","skills","seen","skill","add","findDomainBySkillId","startGradesFrom","grades","startGrade","value","toLowerCase","FLUENCY","formatGradeName","formatGradeLabel","customLabelsMap","label","String","noPrefix","name","getTreeGrades","setting","practiceModeLockedGrades","gradeNodes","values","node","type","attributes","uniqueSortedGrades","isLocked"],"sourceRoot":"../../../../../src","sources":["features/pmProgress/shared/pmProgress.helpers.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAA4B;AAanD,SAASC,YAAY,EAAEC,oBAAoB,EAAEC,aAAa,QAAQ,2BAAwB;AAC1F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AG,CAAE2B,KAAK,KAAM;IACxCsE,IAAI,EAAEN,eAAe,CAAChE,KAAK,CAAC;IAC5B6D,KAAK,EAAE7D,KAAK;IACZgF,QAAQ,EAAElG,YAAY,CAAC5C,GAAG,CAAC8D,KAAK;EAClC,CAAC,CAAC,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ export * from "./recording/model/VoiceRecord.model.js";
|
|
|
5
5
|
export * from "./recording/modal/VoiceRecordDeleteModal.js";
|
|
6
6
|
export * from "./recording/modal/VoiceRecordUndoModal.js";
|
|
7
7
|
export * from "./playing/model/VoicePlayer.model.js";
|
|
8
|
-
export * from "./playing/components/
|
|
8
|
+
export * from "./playing/components/VoiceTranscriptionsDropdown.js";
|
|
9
9
|
export * from "./playing/components/VoiceIcon.js";
|
|
10
10
|
export * from "./constants.js";
|
|
11
11
|
export * from "./types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/voice/index.ts"],"mappings":";;AAAA,cAAc,uCAAoC;AAClD,cAAc,wCAAqC;AACnD,cAAc,6CAA0C;AACxD,cAAc,2CAAwC;AAEtD,cAAc,sCAAmC;AACjD,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/voice/index.ts"],"mappings":";;AAAA,cAAc,uCAAoC;AAClD,cAAc,wCAAqC;AACnD,cAAc,6CAA0C;AACxD,cAAc,2CAAwC;AAEtD,cAAc,sCAAmC;AACjD,cAAc,qDAAkD;AAEhE,cAAc,mCAAgC;AAC9C,cAAc,gBAAa;AAC3B,cAAc,YAAS","ignoreList":[]}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Typography, ScrollableList, CaretDownIcon, COLORS, IS_WEB, ScrollableListScrollView } from '@magmamath/react-native-ui';
|
|
4
|
+
import { useUnit } from 'effector-react';
|
|
5
|
+
import React, { useRef, useEffect, useState, useCallback, useMemo } from 'react';
|
|
6
|
+
import { TouchableOpacity, View, StyleSheet } from 'react-native';
|
|
7
|
+
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
8
|
+
import { useVoiceTranscriptionsDropdown } from "../hooks/useVoiceTranscriptionsDropdown.js";
|
|
9
|
+
import { PlayerState } from "../model/index.js";
|
|
10
|
+
import { VoiceTranscriptionsDropdownItem } from "./VoiceTranscriptionsDropdownItem.js";
|
|
11
|
+
import { DROPDOWN_MAX_CONTENT_HEIGHT, NO_AUDIO_BE_MESSAGE } from "../../constants.js";
|
|
12
|
+
import { useText } from "../../../../i18n/i18n.js";
|
|
13
|
+
import { PlayButton } from "../../../../shared/components/PlayButton.js";
|
|
14
|
+
import { getActiveAttempt, getAudioStatus } from "../../helpers.js";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const AnimatedTouchableOpacity = Animated.createAnimatedComponent(TouchableOpacity);
|
|
17
|
+
export const VoiceTranscriptionsDropdown = ({
|
|
18
|
+
style,
|
|
19
|
+
model,
|
|
20
|
+
answers,
|
|
21
|
+
attemptOffset,
|
|
22
|
+
onAttemptOffsetChange,
|
|
23
|
+
attemptsCount,
|
|
24
|
+
problemId
|
|
25
|
+
}) => {
|
|
26
|
+
const [attempts, setAttempts] = useState([]);
|
|
27
|
+
const scrollRef = useRef(null);
|
|
28
|
+
const scrollViewRef = useRef(null);
|
|
29
|
+
const itemLayoutsRef = useRef(new Map());
|
|
30
|
+
const answersRef = useRef(answers);
|
|
31
|
+
answersRef.current = answers;
|
|
32
|
+
const t = useText();
|
|
33
|
+
const [currentAttempt, transcriptsLoaded, playerState, isDropdownExpanded] = useUnit([model.$currentAttempt, model.loader.$transcriptsLoaded, model.$playerState, model.dropdown.$isExpanded]);
|
|
34
|
+
const activeAttempt = getActiveAttempt(attemptOffset, attemptsCount);
|
|
35
|
+
const answersKey = useMemo(() => answers.map(a => `${a._id}:${a.audioFileId ?? ''}`).join(','), [answers]);
|
|
36
|
+
const hasActiveTranscript = activeAttempt !== null && answers?.[activeAttempt - 1]?.audioFileId !== undefined;
|
|
37
|
+
const playButtonState = {
|
|
38
|
+
isActive: playerState !== PlayerState.IDLE,
|
|
39
|
+
isLoading: playerState === PlayerState.LOADING,
|
|
40
|
+
status: getAudioStatus(playerState)
|
|
41
|
+
};
|
|
42
|
+
const {
|
|
43
|
+
listAnimatedStyle,
|
|
44
|
+
iconAnimatedStyle,
|
|
45
|
+
onListLayout
|
|
46
|
+
} = useVoiceTranscriptionsDropdown(model.dropdown);
|
|
47
|
+
const handleItemLayout = useCallback((id, event) => {
|
|
48
|
+
itemLayoutsRef.current.set(id, event.nativeEvent.layout.y);
|
|
49
|
+
}, []);
|
|
50
|
+
const scrollToAttempt = useCallback(attemptNumber => {
|
|
51
|
+
if (IS_WEB) {
|
|
52
|
+
const item = attempts.find(item => item.attemptNumber === attemptNumber);
|
|
53
|
+
if (item) {
|
|
54
|
+
const y = itemLayoutsRef.current.get(item._id);
|
|
55
|
+
if (y !== undefined) {
|
|
56
|
+
scrollViewRef.current?.scrollTo({
|
|
57
|
+
y,
|
|
58
|
+
animated: true
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const index = attempts.findIndex(item => item.attemptNumber === attemptNumber);
|
|
65
|
+
if (index !== -1) {
|
|
66
|
+
scrollRef.current?.scrollToIndex({
|
|
67
|
+
index,
|
|
68
|
+
animated: true,
|
|
69
|
+
viewPosition: 0
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}, [attempts]);
|
|
73
|
+
const handleItemToggle = useCallback(attempt => {
|
|
74
|
+
if (onAttemptOffsetChange && attemptsCount !== undefined) {
|
|
75
|
+
onAttemptOffsetChange(attemptsCount - attempt);
|
|
76
|
+
}
|
|
77
|
+
}, [onAttemptOffsetChange, attemptsCount]);
|
|
78
|
+
const handlePlayPress = useCallback(() => {
|
|
79
|
+
if (activeAttempt) {
|
|
80
|
+
model.togglePlayPause(activeAttempt);
|
|
81
|
+
}
|
|
82
|
+
}, [model, activeAttempt]);
|
|
83
|
+
const handleScrollToIndexFailed = useCallback(info => {
|
|
84
|
+
setTimeout(() => {
|
|
85
|
+
scrollRef.current?.scrollToIndex({
|
|
86
|
+
index: info.index,
|
|
87
|
+
animated: true,
|
|
88
|
+
viewPosition: 0
|
|
89
|
+
});
|
|
90
|
+
}, 100);
|
|
91
|
+
}, []);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
model.reinitializePlayer();
|
|
94
|
+
return () => model.cleanup();
|
|
95
|
+
}, [model]);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
const isLastAttemptsWithoutDrowing = !answers[answers.length - 1].drawing;
|
|
98
|
+
if (answers.length > 0 && isLastAttemptsWithoutDrowing) {
|
|
99
|
+
model.dropdown.setExpanded(true);
|
|
100
|
+
} else {
|
|
101
|
+
model.dropdown.setExpanded(false);
|
|
102
|
+
}
|
|
103
|
+
model.resetPlayer();
|
|
104
|
+
}, [problemId]);
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
if (answersRef.current.some(answer => answer.audioFileId)) {
|
|
107
|
+
model.initializeWithAudios(answersRef.current);
|
|
108
|
+
model.loader.loadAllTranscripts();
|
|
109
|
+
}
|
|
110
|
+
}, [model, answersKey]);
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
model.stopAudio();
|
|
113
|
+
}, [activeAttempt]);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
const allAttempts = model.getAllAttempts();
|
|
116
|
+
setAttempts(allAttempts);
|
|
117
|
+
}, [answersKey, transcriptsLoaded, currentAttempt, model]);
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (isDropdownExpanded && activeAttempt !== null) {
|
|
120
|
+
setTimeout(() => {
|
|
121
|
+
scrollToAttempt(activeAttempt);
|
|
122
|
+
}, 500);
|
|
123
|
+
}
|
|
124
|
+
}, [isDropdownExpanded, answersKey]);
|
|
125
|
+
const renderItem = useCallback(({
|
|
126
|
+
item
|
|
127
|
+
}) => {
|
|
128
|
+
const isLoading = model.loader.isTranscriptLoading(item.attemptNumber);
|
|
129
|
+
const transcript = model.loader.getTranscript(item.attemptNumber);
|
|
130
|
+
const isActive = activeAttempt === item.attemptNumber;
|
|
131
|
+
return /*#__PURE__*/_jsx(VoiceTranscriptionsDropdownItem, {
|
|
132
|
+
isLoading: isActive && isLoading,
|
|
133
|
+
attempt: item.attemptNumber,
|
|
134
|
+
content: transcript && transcript !== NO_AUDIO_BE_MESSAGE ? transcript : t('voice.transcriptNotAvailable'),
|
|
135
|
+
isActive: isActive,
|
|
136
|
+
onToggle: handleItemToggle,
|
|
137
|
+
scrollToAttempt: scrollToAttempt
|
|
138
|
+
});
|
|
139
|
+
}, [model, activeAttempt, t, handleItemToggle, scrollToAttempt]);
|
|
140
|
+
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
141
|
+
style: [styles.container, style],
|
|
142
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
143
|
+
style: styles.header,
|
|
144
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
145
|
+
style: styles.title,
|
|
146
|
+
variant: "h7",
|
|
147
|
+
children: t('voice.transcriptions')
|
|
148
|
+
}), hasActiveTranscript && /*#__PURE__*/_jsx(Animated.View, {
|
|
149
|
+
entering: FadeIn.duration(120),
|
|
150
|
+
exiting: FadeOut.duration(120),
|
|
151
|
+
children: /*#__PURE__*/_jsx(PlayButton, {
|
|
152
|
+
state: playButtonState,
|
|
153
|
+
onPress: handlePlayPress,
|
|
154
|
+
activityIndicatorColor: COLORS.NEUTRAL_1
|
|
155
|
+
})
|
|
156
|
+
})]
|
|
157
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
158
|
+
style: [listAnimatedStyle, {
|
|
159
|
+
overflow: 'hidden'
|
|
160
|
+
}],
|
|
161
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
162
|
+
onLayout: onListLayout,
|
|
163
|
+
style: styles.listContainer,
|
|
164
|
+
children: IS_WEB ? /*#__PURE__*/_jsx(ScrollableListScrollView, {
|
|
165
|
+
bounces: false,
|
|
166
|
+
ref: scrollViewRef,
|
|
167
|
+
hideShadow: true,
|
|
168
|
+
style: styles.list,
|
|
169
|
+
contentContainerStyle: styles.listContent,
|
|
170
|
+
children: attempts.map(item => /*#__PURE__*/_jsx(View, {
|
|
171
|
+
onLayout: e => handleItemLayout(item._id, e),
|
|
172
|
+
children: renderItem({
|
|
173
|
+
item
|
|
174
|
+
})
|
|
175
|
+
}, item._id))
|
|
176
|
+
}) : /*#__PURE__*/_jsx(ScrollableList, {
|
|
177
|
+
bounces: false,
|
|
178
|
+
ref: scrollRef,
|
|
179
|
+
hideShadow: true,
|
|
180
|
+
data: attempts,
|
|
181
|
+
keyExtractor: item => item._id,
|
|
182
|
+
onScrollToIndexFailed: handleScrollToIndexFailed,
|
|
183
|
+
renderItem: renderItem,
|
|
184
|
+
contentContainerStyle: styles.listContent
|
|
185
|
+
})
|
|
186
|
+
})
|
|
187
|
+
}), /*#__PURE__*/_jsx(AnimatedTouchableOpacity, {
|
|
188
|
+
style: [styles.expandButton, iconAnimatedStyle],
|
|
189
|
+
onPress: () => model.dropdown.toggleExpand(),
|
|
190
|
+
children: /*#__PURE__*/_jsx(CaretDownIcon, {
|
|
191
|
+
size: 22
|
|
192
|
+
})
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
const styles = StyleSheet.create({
|
|
197
|
+
container: {
|
|
198
|
+
position: 'absolute',
|
|
199
|
+
top: 56,
|
|
200
|
+
left: 8,
|
|
201
|
+
width: 222,
|
|
202
|
+
maxHeight: 405,
|
|
203
|
+
minHeight: 51,
|
|
204
|
+
padding: 4,
|
|
205
|
+
boxShadow: '0px 1px 3px 0px rgba(51, 51, 51, 0.25)',
|
|
206
|
+
borderRadius: 12,
|
|
207
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
208
|
+
overflow: 'hidden'
|
|
209
|
+
},
|
|
210
|
+
header: {
|
|
211
|
+
flexDirection: 'row',
|
|
212
|
+
justifyContent: 'space-between',
|
|
213
|
+
alignItems: 'center',
|
|
214
|
+
padding: 4,
|
|
215
|
+
marginBottom: 4,
|
|
216
|
+
height: 32
|
|
217
|
+
},
|
|
218
|
+
title: {
|
|
219
|
+
color: COLORS.NEUTRAL_9,
|
|
220
|
+
marginLeft: 4
|
|
221
|
+
},
|
|
222
|
+
list: {
|
|
223
|
+
flex: 1
|
|
224
|
+
},
|
|
225
|
+
expandButton: {
|
|
226
|
+
justifyContent: 'center',
|
|
227
|
+
alignItems: 'center'
|
|
228
|
+
},
|
|
229
|
+
listContainer: {
|
|
230
|
+
position: 'absolute',
|
|
231
|
+
maxHeight: DROPDOWN_MAX_CONTENT_HEIGHT,
|
|
232
|
+
width: '100%'
|
|
233
|
+
},
|
|
234
|
+
listContent: {
|
|
235
|
+
paddingHorizontal: 4
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
//# sourceMappingURL=VoiceTranscriptionsDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Typography","ScrollableList","CaretDownIcon","COLORS","IS_WEB","ScrollableListScrollView","useUnit","React","useRef","useEffect","useState","useCallback","useMemo","TouchableOpacity","View","StyleSheet","Animated","FadeIn","FadeOut","useVoiceTranscriptionsDropdown","PlayerState","VoiceTranscriptionsDropdownItem","DROPDOWN_MAX_CONTENT_HEIGHT","NO_AUDIO_BE_MESSAGE","useText","PlayButton","getActiveAttempt","getAudioStatus","jsx","_jsx","jsxs","_jsxs","AnimatedTouchableOpacity","createAnimatedComponent","VoiceTranscriptionsDropdown","style","model","answers","attemptOffset","onAttemptOffsetChange","attemptsCount","problemId","attempts","setAttempts","scrollRef","scrollViewRef","itemLayoutsRef","Map","answersRef","current","t","currentAttempt","transcriptsLoaded","playerState","isDropdownExpanded","$currentAttempt","loader","$transcriptsLoaded","$playerState","dropdown","$isExpanded","activeAttempt","answersKey","map","a","_id","audioFileId","join","hasActiveTranscript","undefined","playButtonState","isActive","IDLE","isLoading","LOADING","status","listAnimatedStyle","iconAnimatedStyle","onListLayout","handleItemLayout","id","event","set","nativeEvent","layout","y","scrollToAttempt","attemptNumber","item","find","get","scrollTo","animated","index","findIndex","scrollToIndex","viewPosition","handleItemToggle","attempt","handlePlayPress","togglePlayPause","handleScrollToIndexFailed","info","setTimeout","reinitializePlayer","cleanup","isLastAttemptsWithoutDrowing","length","drawing","setExpanded","resetPlayer","some","answer","initializeWithAudios","loadAllTranscripts","stopAudio","allAttempts","getAllAttempts","renderItem","isTranscriptLoading","transcript","getTranscript","content","onToggle","styles","container","children","header","title","variant","entering","duration","exiting","state","onPress","activityIndicatorColor","NEUTRAL_1","overflow","onLayout","listContainer","bounces","ref","hideShadow","list","contentContainerStyle","listContent","e","data","keyExtractor","onScrollToIndexFailed","expandButton","toggleExpand","size","create","position","top","left","width","maxHeight","minHeight","padding","boxShadow","borderRadius","backgroundColor","flexDirection","justifyContent","alignItems","marginBottom","height","color","NEUTRAL_9","marginLeft","flex","paddingHorizontal"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/components/VoiceTranscriptionsDropdown.tsx"],"mappings":";;AAAA,SACEA,UAAU,EACVC,cAAc,EACdC,aAAa,EACbC,MAAM,EACNC,MAAM,EACNC,wBAAwB,QACnB,4BAA4B;AACnC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,OAAOC,KAAK,IAAIC,MAAM,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAChF,SACEC,gBAAgB,EAMhBC,IAAI,EACJC,UAAU,QACL,cAAc;AACrB,OAAOC,QAAQ,IAAIC,MAAM,EAAEC,OAAO,QAAQ,yBAAyB;AAEnE,SAASC,8BAA8B,QAAQ,4CAAyC;AACxF,SAA2BC,WAAW,QAAQ,mBAAU;AACxD,SAASC,+BAA+B,QAAQ,sCAAmC;A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2BAA2B;IACtCuI,KAAK,EAAE;EACT,CAAC;EACDZ,WAAW,EAAE;IACX4B,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
4
|
+
import React, { memo, useCallback, useRef } from 'react';
|
|
5
|
+
import { Button, ButtonSize, ButtonVariant, COLORS, Loader, LoaderColor, LoaderSize, Typography } from '@magmamath/react-native-ui';
|
|
6
|
+
import Animated, { runOnJS, useAnimatedReaction } from 'react-native-reanimated';
|
|
7
|
+
import { useVoiceTranscriptionsDropdownItemAnimation } from "../hooks/useVoiceTranscriptionsDropdownItemAnimation.js";
|
|
8
|
+
import { useText } from "../../../../i18n/i18n.js";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const VoiceTranscriptionsDropdownItem = /*#__PURE__*/memo(({
|
|
11
|
+
attempt,
|
|
12
|
+
content,
|
|
13
|
+
isActive,
|
|
14
|
+
isLoading,
|
|
15
|
+
onToggle,
|
|
16
|
+
scrollToAttempt
|
|
17
|
+
}) => {
|
|
18
|
+
const t = useText();
|
|
19
|
+
const isActiveRef = useRef(isActive);
|
|
20
|
+
isActiveRef.current = isActive;
|
|
21
|
+
const {
|
|
22
|
+
contentAnimatedStyle,
|
|
23
|
+
onLayout,
|
|
24
|
+
progress
|
|
25
|
+
} = useVoiceTranscriptionsDropdownItemAnimation(isActive);
|
|
26
|
+
const handleScrollToAttempt = useCallback(attemptNumber => {
|
|
27
|
+
if (!isActiveRef.current) return;
|
|
28
|
+
scrollToAttempt(attemptNumber);
|
|
29
|
+
}, [scrollToAttempt]);
|
|
30
|
+
useAnimatedReaction(() => progress.value, progress => {
|
|
31
|
+
if (progress === 1 && isActive) {
|
|
32
|
+
runOnJS(handleScrollToAttempt)(attempt);
|
|
33
|
+
}
|
|
34
|
+
}, [progress, attempt, isActive]);
|
|
35
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
36
|
+
style: styles.container,
|
|
37
|
+
children: [/*#__PURE__*/_jsx(Pressable, {
|
|
38
|
+
disabled: isActive,
|
|
39
|
+
style: styles.itemHeader,
|
|
40
|
+
onPress: () => onToggle(attempt),
|
|
41
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
42
|
+
onPress: () => !isActive && onToggle(attempt),
|
|
43
|
+
size: ButtonSize.SMALL,
|
|
44
|
+
variant: ButtonVariant.TERTIARY,
|
|
45
|
+
style: {
|
|
46
|
+
text: {
|
|
47
|
+
textTransform: 'uppercase',
|
|
48
|
+
color: isActive ? COLORS.NEUTRAL_9 : COLORS.NEUTRAL_7
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
children: t('voice.attempt', {
|
|
52
|
+
number: String(attempt)
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
}), isLoading ? /*#__PURE__*/_jsx(View, {
|
|
56
|
+
style: styles.loaderContainer,
|
|
57
|
+
children: /*#__PURE__*/_jsx(Loader, {
|
|
58
|
+
size: LoaderSize.SMALL,
|
|
59
|
+
color: LoaderColor.BLUE
|
|
60
|
+
})
|
|
61
|
+
}) : /*#__PURE__*/_jsx(Animated.View, {
|
|
62
|
+
style: contentAnimatedStyle,
|
|
63
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
64
|
+
onLayout: onLayout,
|
|
65
|
+
style: styles.contentWrapper,
|
|
66
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
67
|
+
variant: "h8",
|
|
68
|
+
style: [styles.itemContent, {
|
|
69
|
+
color: isActive ? COLORS.NEUTRAL_9 : COLORS.NEUTRAL_7
|
|
70
|
+
}],
|
|
71
|
+
children: content
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
const styles = StyleSheet.create({
|
|
78
|
+
container: {
|
|
79
|
+
borderTopWidth: 1,
|
|
80
|
+
borderColor: COLORS.NEUTRAL_3
|
|
81
|
+
},
|
|
82
|
+
itemHeader: {
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
justifyContent: 'space-between',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
width: '100%',
|
|
87
|
+
paddingVertical: 8
|
|
88
|
+
},
|
|
89
|
+
itemContent: {
|
|
90
|
+
paddingHorizontal: 8
|
|
91
|
+
},
|
|
92
|
+
contentWrapper: {
|
|
93
|
+
width: '100%',
|
|
94
|
+
position: 'absolute'
|
|
95
|
+
},
|
|
96
|
+
loaderContainer: {
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
paddingTop: 4,
|
|
100
|
+
paddingBottom: 8
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=VoiceTranscriptionsDropdownItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","StyleSheet","View","React","memo","useCallback","useRef","Button","ButtonSize","ButtonVariant","COLORS","Loader","LoaderColor","LoaderSize","Typography","Animated","runOnJS","useAnimatedReaction","useVoiceTranscriptionsDropdownItemAnimation","useText","jsx","_jsx","jsxs","_jsxs","VoiceTranscriptionsDropdownItem","attempt","content","isActive","isLoading","onToggle","scrollToAttempt","t","isActiveRef","current","contentAnimatedStyle","onLayout","progress","handleScrollToAttempt","attemptNumber","value","style","styles","container","children","disabled","itemHeader","onPress","size","SMALL","variant","TERTIARY","text","textTransform","color","NEUTRAL_9","NEUTRAL_7","number","String","loaderContainer","BLUE","contentWrapper","itemContent","create","borderTopWidth","borderColor","NEUTRAL_3","flexDirection","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","position","paddingTop","paddingBottom"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;A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1B,QAAQ,GAAGjB,MAAM,CAAC4C,SAAS,GAAG5C,MAAM,CAAC6C;UAC9C,CAAC,CACD;UAAAZ,QAAA,EAEDjB;QAAO,CACE;MAAC,CACT;IAAC,CACM,CAChB;EAAA,CACG,CAAC;AAEX,CACF,CAAC;AAED,MAAMe,MAAM,GAAGxC,UAAU,CAAC6D,MAAM,CAAC;EAC/BpB,SAAS,EAAE;IACTqB,cAAc,EAAE,CAAC;IACjBC,WAAW,EAAEtD,MAAM,CAACuD;EACtB,CAAC;EACDpB,UAAU,EAAE;IACVqB,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,KAAK,EAAE,MAAM;IACbC,eAAe,EAAE;EACnB,CAAC;EACDT,WAAW,EAAE;IACXU,iBAAiB,EAAE;EACrB,CAAC;EACDX,cAAc,EAAE;IACdS,KAAK,EAAE,MAAM;IACbG,QAAQ,EAAE;EACZ,CAAC;EACDd,eAAe,EAAE;IACfS,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBK,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
|
|
|
4
4
|
import { useUnit } from 'effector-react';
|
|
5
5
|
import { useAnimatedStyle, useSharedValue, withTiming, interpolate } from 'react-native-reanimated';
|
|
6
6
|
import { DROPDOWN_MAX_CONTENT_HEIGHT } from "../../constants.js";
|
|
7
|
-
export const
|
|
7
|
+
export const useVoiceTranscriptionsDropdown = model => {
|
|
8
8
|
const isExpanded = useUnit(model.$isExpanded);
|
|
9
9
|
const contentHeight = useSharedValue(0);
|
|
10
10
|
const animationProgress = useSharedValue(isExpanded ? 1 : 0);
|
|
@@ -42,4 +42,4 @@ export const useVoiceTranscriptionDropdown = model => {
|
|
|
42
42
|
onListLayout
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=useVoiceTranscriptionsDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useUnit","useAnimatedStyle","useSharedValue","withTiming","interpolate","DROPDOWN_MAX_CONTENT_HEIGHT","useVoiceTranscriptionsDropdown","model","isExpanded","$isExpanded","contentHeight","animationProgress","onListLayout","event","measuredHeight","nativeEvent","layout","height","value","listAnimatedStyle","opacity","iconAnimatedStyle","rotation","transform","rotate","duration"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/hooks/useVoiceTranscriptionsDropdown.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,gBAAgB,EAAEC,cAAc,EAAEC,UAAU,EAAEC,WAAW,QAAQ,yBAAyB;AAEnG,SAASC,2BAA2B,QAAQ,oBAAiB;AAG7D,OAAO,MAAMC,8BAA8B,GAAIC,KAAuC,IAAK;EACzF,MAAMC,UAAU,GAAGR,OAAO,CAACO,KAAK,CAACE,WAAW,CAAC;EAE7C,MAAMC,aAAa,GAAGR,cAAc,CAAC,CAAC,CAAC;EACvC,MAAMS,iBAAiB,GAAGT,cAAc,CAACM,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;EAE5D,MAAMI,YAAY,GAAIC,KAAwB,IAAK;IACjD,MAAMC,cAAc,GAAGD,KAAK,CAACE,WAAW,CAACC,MAAM,CAACC,MAAM;IACtD,IAAIH,cAAc,GAAG,CAAC,EAAE;MACtBJ,aAAa,CAACQ,KAAK,GAAGJ,cAAc;IACtC;EACF,CAAC;EAED,MAAMK,iBAAiB,GAAGlB,gBAAgB,CAAC,MAAM;IAC/C,MAAMgB,MAAM,GAAGb,WAAW,CACxBO,iBAAiB,CAACO,KAAK,EACvB,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CAAC,CAAC,EAAER,aAAa,CAACQ,KAAK,IAAIb,2BAA2B,CACxD,CAAC;IAED,MAAMe,OAAO,GAAGhB,WAAW,CAACO,iBAAiB,CAACO,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAE5E,OAAO;MACLD,MAAM;MACNG;IACF,CAAC;EACH,CAAC,EAAE,CAACT,iBAAiB,EAAED,aAAa,CAAC,CAAC;EAEtC,MAAMW,iBAAiB,GAAGpB,gBAAgB,CAAC,MAAM;IAC/C,MAAMqB,QAAQ,GAAGlB,WAAW,CAACO,iBAAiB,CAACO,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAEvE,OAAO;MACLK,SAAS,EAAE,CAAC;QAAEC,MAAM,EAAE,GAAGF,QAAQ;MAAM,CAAC;IAC1C,CAAC;EACH,CAAC,EAAE,CAACX,iBAAiB,CAAC,CAAC;EAEvBZ,SAAS,CAAC,MAAM;IACdY,iBAAiB,CAACO,KAAK,GAAGf,UAAU,CAACK,UAAU,GAAG,CAAC,GAAG,CAAC,EAAE;MAAEiB,QAAQ,EAAE;IAAI,CAAC,CAAC;EAC7E,CAAC,EAAE,CAACjB,UAAU,EAAEG,iBAAiB,CAAC,CAAC;EAEnC,OAAO;IACLH,UAAU;IACVW,iBAAiB;IACjBE,iBAAiB;IACjBT;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useSharedValue, withTiming, useDerivedValue, useAnimatedStyle, interpolate } from 'react-native-reanimated';
|
|
5
|
+
export const useVoiceTranscriptionsDropdownItemAnimation = isExpanded => {
|
|
6
|
+
const height = useSharedValue(0);
|
|
7
|
+
const progress = useSharedValue(isExpanded ? 1 : 0);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
progress.value = withTiming(isExpanded ? 1 : 0);
|
|
10
|
+
}, [isExpanded, progress]);
|
|
11
|
+
const derivedHeight = useDerivedValue(() => height.value * progress.value, [height, progress]);
|
|
12
|
+
const contentAnimatedStyle = useAnimatedStyle(() => {
|
|
13
|
+
const opacity = interpolate(progress.value, [0, 0.3, 1], [0, 0, 1]);
|
|
14
|
+
return {
|
|
15
|
+
height: derivedHeight.value,
|
|
16
|
+
opacity,
|
|
17
|
+
overflow: 'hidden'
|
|
18
|
+
};
|
|
19
|
+
}, [progress, derivedHeight]);
|
|
20
|
+
const onLayout = event => {
|
|
21
|
+
height.value = event.nativeEvent.layout.height;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
contentAnimatedStyle,
|
|
25
|
+
onLayout,
|
|
26
|
+
progress
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useVoiceTranscriptionsDropdownItemAnimation.js.map
|
package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useSharedValue","withTiming","useDerivedValue","useAnimatedStyle","interpolate","useVoiceTranscriptionsDropdownItemAnimation","isExpanded","height","progress","value","derivedHeight","contentAnimatedStyle","opacity","overflow","onLayout","event","nativeEvent","layout"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AAEjC,SACEC,cAAc,EACdC,UAAU,EACVC,eAAe,EACfC,gBAAgB,EAChBC,WAAW,QACN,yBAAyB;AAEhC,OAAO,MAAMC,2CAA2C,GAAIC,UAAmB,IAAK;EAClF,MAAMC,MAAM,GAAGP,cAAc,CAAC,CAAC,CAAC;EAChC,MAAMQ,QAAQ,GAAGR,cAAc,CAACM,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;EAEnDP,SAAS,CAAC,MAAM;IACdS,QAAQ,CAACC,KAAK,GAAGR,UAAU,CAACK,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;EACjD,CAAC,EAAE,CAACA,UAAU,EAAEE,QAAQ,CAAC,CAAC;EAE1B,MAAME,aAAa,GAAGR,eAAe,CAAC,MAAMK,MAAM,CAACE,KAAK,GAAGD,QAAQ,CAACC,KAAK,EAAE,CAACF,MAAM,EAAEC,QAAQ,CAAC,CAAC;EAE9F,MAAMG,oBAAoB,GAAGR,gBAAgB,CAAC,MAAM;IAClD,MAAMS,OAAO,GAAGR,WAAW,CAACI,QAAQ,CAACC,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAEnE,OAAO;MACLF,MAAM,EAAEG,aAAa,CAACD,KAAK;MAC3BG,OAAO;MACPC,QAAQ,EAAE;IACZ,CAAC;EACH,CAAC,EAAE,CAACL,QAAQ,EAAEE,aAAa,CAAC,CAAC;EAE7B,MAAMI,QAAQ,GAAIC,KAAwB,IAAK;IAC7CR,MAAM,CAACE,KAAK,GAAGM,KAAK,CAACC,WAAW,CAACC,MAAM,CAACV,MAAM;EAChD,CAAC;EAED,OAAO;IACLI,oBAAoB;IACpBG,QAAQ;IACRN;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -14,23 +14,16 @@ export class TranscriptionsDownloaderModel {
|
|
|
14
14
|
for (let attempt = 0; attempt < TRANSCRIPT_MAX_RETRIES; attempt++) {
|
|
15
15
|
const response = await this.api.getAudioFileTranscript(audioFileId);
|
|
16
16
|
if (response.status === 'completed') {
|
|
17
|
-
return
|
|
18
|
-
text: response.text,
|
|
19
|
-
language: response.language
|
|
20
|
-
};
|
|
17
|
+
return response.text;
|
|
21
18
|
}
|
|
22
19
|
if (response.status === 'failed') {
|
|
23
|
-
return
|
|
24
|
-
text: NO_AUDIO_BE_MESSAGE
|
|
25
|
-
};
|
|
20
|
+
return NO_AUDIO_BE_MESSAGE;
|
|
26
21
|
}
|
|
27
22
|
if (attempt < TRANSCRIPT_MAX_RETRIES - 1) {
|
|
28
23
|
await new Promise(resolve => setTimeout(resolve, TRANSCRIPT_RETRY_INTERVAL_MS));
|
|
29
24
|
}
|
|
30
25
|
}
|
|
31
|
-
return
|
|
32
|
-
text: NO_AUDIO_BE_MESSAGE
|
|
33
|
-
};
|
|
26
|
+
return NO_AUDIO_BE_MESSAGE;
|
|
34
27
|
}
|
|
35
28
|
loadAllTranscripts = createEffect(async () => {
|
|
36
29
|
const attempts = this.collection.getAll();
|
|
@@ -42,13 +35,9 @@ export class TranscriptionsDownloaderModel {
|
|
|
42
35
|
transcriptLoading: true
|
|
43
36
|
});
|
|
44
37
|
try {
|
|
45
|
-
const
|
|
46
|
-
text,
|
|
47
|
-
language
|
|
48
|
-
} = await this.fetchTranscriptWithRetry(item.audioFileId);
|
|
38
|
+
const text = await this.fetchTranscriptWithRetry(item.audioFileId);
|
|
49
39
|
this.collection.update(item.attemptNumber, {
|
|
50
40
|
transcript: text,
|
|
51
|
-
transcriptLanguage: language,
|
|
52
41
|
transcriptLoading: false,
|
|
53
42
|
transcriptError: undefined
|
|
54
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createEffect","createEvent","restore","NO_AUDIO_BE_MESSAGE","TRANSCRIPT_MAX_RETRIES","TRANSCRIPT_RETRY_INTERVAL_MS","TranscriptionsDownloaderModel","setTranscriptsLoaded","reset","$transcriptsLoaded","constructor","collection","api","fetchTranscriptWithRetry","audioFileId","attempt","response","getAudioFileTranscript","status","text","
|
|
1
|
+
{"version":3,"names":["createEffect","createEvent","restore","NO_AUDIO_BE_MESSAGE","TRANSCRIPT_MAX_RETRIES","TRANSCRIPT_RETRY_INTERVAL_MS","TranscriptionsDownloaderModel","setTranscriptsLoaded","reset","$transcriptsLoaded","constructor","collection","api","fetchTranscriptWithRetry","audioFileId","attempt","response","getAudioFileTranscript","status","text","Promise","resolve","setTimeout","loadAllTranscripts","attempts","getAll","transcriptPromises","map","item","hasTranscript","attemptNumber","update","transcriptLoading","transcript","transcriptError","undefined","error","Error","message","all","getTranscript","get","isTranscriptLoading"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/TranscriptionsDownloaderModel.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,WAAW,EAAEC,OAAO,QAAQ,UAAU;AAG7D,SACEC,mBAAmB,EACnBC,sBAAsB,EACtBC,4BAA4B,QACvB,oBAAiB;AAExB,OAAO,MAAMC,6BAA6B,CAAC;EAIzBC,oBAAoB,GAAGN,WAAW,CAAU,CAAC;EAC7CO,KAAK,GAAGP,WAAW,CAAC,CAAC;EAErBQ,kBAAkB,GAAGP,OAAO,CAAC,IAAI,CAACK,oBAAoB,EAAE,KAAK,CAAC,CAACC,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAEhGE,WAAWA,CAACC,UAAyC,EAAEC,GAAmB,EAAE;IAC1E,IAAI,CAACD,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,GAAG,GAAGA,GAAG;EAChB;EAEA,MAAcC,wBAAwBA,CAACC,WAAmB,EAAmB;IAC3E,KAAK,IAAIC,OAAO,GAAG,CAAC,EAAEA,OAAO,GAAGX,sBAAsB,EAAEW,OAAO,EAAE,EAAE;MACjE,MAAMC,QAAQ,GAAG,MAAM,IAAI,CAACJ,GAAG,CAACK,sBAAsB,CAACH,WAAW,CAAC;MAEnE,IAAIE,QAAQ,CAACE,MAAM,KAAK,WAAW,EAAE;QACnC,OAAOF,QAAQ,CAACG,IAAI;MACtB;MAEA,IAAIH,QAAQ,CAACE,MAAM,KAAK,QAAQ,EAAE;QAChC,OAAOf,mBAAmB;MAC5B;MAEA,IAAIY,OAAO,GAAGX,sBAAsB,GAAG,CAAC,EAAE;QACxC,MAAM,IAAIgB,OAAO,CAAEC,OAAO,IAAKC,UAAU,CAACD,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EAAW;IACzD,OAAO,IAAI,CAACnB,UAAU,CAAC8B,GAAG,CAACX,aAAa,CAAC,EAAEE,iBAAiB,IAAI,KAAK;EACvE;AACF","ignoreList":[]}
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
import { attach, createEffect, createEvent, restore } from 'effector';
|
|
4
4
|
import { VoiceTranscriptionsCollection } from "./VoiceTranscriptionsCollection.js";
|
|
5
5
|
import { VoiceFileDownloaderModel } from "./VoiceFileDownloader.model.js";
|
|
6
|
-
import {
|
|
7
|
-
import { VoiceTranscriptionTranslationModel } from "./VoiceTranscriptionTranslation.model.js";
|
|
6
|
+
import { VoiceTranscriptionsDropdownModel } from "./VoiceTranscriptionsDropdown.model.js";
|
|
8
7
|
import { PlayerModel, PlayerState } from "./Player.model.js";
|
|
9
8
|
import { TranscriptionsDownloaderModel } from "./TranscriptionsDownloaderModel.js";
|
|
10
9
|
export class VoicePlayerModel {
|
|
11
10
|
collection = new VoiceTranscriptionsCollection();
|
|
12
11
|
downloader = new VoiceFileDownloaderModel();
|
|
13
|
-
dropdown = new
|
|
12
|
+
dropdown = new VoiceTranscriptionsDropdownModel();
|
|
14
13
|
playerModel = new PlayerModel();
|
|
15
14
|
currentPlayingAttempt = null;
|
|
16
15
|
shouldPreventPlayback = false;
|
|
@@ -33,12 +32,10 @@ export class VoicePlayerModel {
|
|
|
33
32
|
this.currentPlayingAttempt = null;
|
|
34
33
|
this.setCurrentAttempt(null);
|
|
35
34
|
this.collection.clear();
|
|
36
|
-
this.translation.clearCache();
|
|
37
35
|
};
|
|
38
36
|
constructor(params) {
|
|
39
37
|
this.api = params.api;
|
|
40
38
|
this.loader = new TranscriptionsDownloaderModel(this.collection, params.api);
|
|
41
|
-
this.translation = new VoiceTranscriptionTranslationModel(this.collection, params.api);
|
|
42
39
|
this.downloader.setApi(params.api);
|
|
43
40
|
this.playerModel.playbackFinished.watch(() => {
|
|
44
41
|
this.currentPlayingAttempt = null;
|
|
@@ -198,7 +195,6 @@ export class VoicePlayerModel {
|
|
|
198
195
|
this.reset();
|
|
199
196
|
this.loader.reset();
|
|
200
197
|
this.dropdown.reset();
|
|
201
|
-
this.translation.reset();
|
|
202
198
|
this.playerModel.release();
|
|
203
199
|
}
|
|
204
200
|
togglePlayPause = attach({
|