@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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LayoutChangeEvent } from 'react-native';
|
|
2
|
+
export declare const useVoiceTranscriptionsDropdownItemAnimation: (isExpanded: boolean) => {
|
|
3
|
+
contentAnimatedStyle: {
|
|
4
|
+
height: number;
|
|
5
|
+
opacity: number;
|
|
6
|
+
overflow: "hidden";
|
|
7
|
+
};
|
|
8
|
+
onLayout: (event: LayoutChangeEvent) => void;
|
|
9
|
+
progress: import("react-native-reanimated").SharedValue<number>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useVoiceTranscriptionsDropdownItemAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVoiceTranscriptionsDropdownItemAnimation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAShD,eAAO,MAAM,2CAA2C,eAAgB,OAAO;;;;;;sBAoBpD,iBAAiB;;CAS3C,CAAA"}
|
package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptionsDownloaderModel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/TranscriptionsDownloaderModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAO5C,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IAEpC,SAAgB,oBAAoB,4CAAyB;IAC7D,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,kBAAkB,4CAA8D;gBAEpF,UAAU,EAAE,6BAA6B,EAAE,GAAG,EAAE,cAAc;YAK5D,wBAAwB;
|
|
1
|
+
{"version":3,"file":"TranscriptionsDownloaderModel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/TranscriptionsDownloaderModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAO5C,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IAEpC,SAAgB,oBAAoB,4CAAyB;IAC7D,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,kBAAkB,4CAA8D;gBAEpF,UAAU,EAAE,6BAA6B,EAAE,GAAG,EAAE,cAAc;YAK5D,wBAAwB;IAmBtC,SAAgB,kBAAkB,+CA4BhC;IAEK,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIxD,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;CAG3D"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { VoiceTranscriptionsCollection } from './VoiceTranscriptionsCollection';
|
|
2
2
|
import { VoiceFileDownloaderModel } from './VoiceFileDownloader.model';
|
|
3
|
-
import {
|
|
4
|
-
import { VoiceTranscriptionTranslationModel } from './VoiceTranscriptionTranslation.model';
|
|
3
|
+
import { VoiceTranscriptionsDropdownModel } from './VoiceTranscriptionsDropdown.model';
|
|
5
4
|
import { AnswerAudio, VoicePlayerApi, VoiceTranscriptionItem } from '../../types';
|
|
6
5
|
import { PlayerModel, PlayerState } from './Player.model';
|
|
7
6
|
import { TranscriptionsDownloaderModel } from './TranscriptionsDownloaderModel';
|
|
@@ -12,8 +11,7 @@ type VoiceTranscriptionsPlayerModelParams = {
|
|
|
12
11
|
export declare class VoicePlayerModel {
|
|
13
12
|
readonly collection: VoiceTranscriptionsCollection;
|
|
14
13
|
readonly downloader: VoiceFileDownloaderModel;
|
|
15
|
-
readonly dropdown:
|
|
16
|
-
readonly translation: VoiceTranscriptionTranslationModel;
|
|
14
|
+
readonly dropdown: VoiceTranscriptionsDropdownModel;
|
|
17
15
|
readonly playerModel: PlayerModel;
|
|
18
16
|
readonly loader: TranscriptionsDownloaderModel;
|
|
19
17
|
readonly api: VoicePlayerApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoicePlayer.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoicePlayer.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"VoicePlayer.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoicePlayer.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACjF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAE/E,KAAK,oCAAoC,GAAG;IAC1C,GAAG,EAAE,cAAc,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;CACvB,CAAA;AAMD,qBAAa,gBAAgB;IAC3B,SAAgB,UAAU,gCAAsC;IAChE,SAAgB,UAAU,2BAAiC;IAC3D,SAAgB,QAAQ,mCAAyC;IACjE,SAAgB,WAAW,cAAoB;IAC/C,SAAgB,MAAM,EAAE,6BAA6B,CAAA;IACrD,SAAgB,GAAG,EAAE,cAAc,CAAA;IACnC,OAAO,CAAC,qBAAqB,CAAsB;IACnD,OAAO,CAAC,qBAAqB,CAAQ;IAErC,SAAgB,iBAAiB,kDAA+B;IAChE,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,eAAe,kDAA0D;IACzF,SAAgB,YAAY,gDAAgC;IAE5D,SAAgB,UAAU,+CAAyB;IAEnD,SAAgB,SAAS,aAMxB;IAED,SAAgB,WAAW,aAO1B;gBAEW,MAAM,EAAE,oCAAoC;IAiBjD,oBAAoB,CAAC,WAAW,EAAE,WAAW,EAAE;IAMtD,OAAO,CAAC,8BAA8B;IAoBtC,OAAO,CAAC,0BAA0B;IAalC,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CA6DhC;IAEF,OAAO,CAAC,WAAW,CAmCjB;IAEK,cAAc,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;IAI9C,cAAc,IAAI,sBAAsB,EAAE;IAI1C,kBAAkB;IAIlB,OAAO;IAUP,eAAe,iDAUpB;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class VoiceTranscriptionsDropdownModel {
|
|
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=
|
|
7
|
+
//# sourceMappingURL=VoiceTranscriptionsDropdown.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceTranscriptionsDropdown.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/playing/model/VoiceTranscriptionsDropdown.model.ts"],"names":[],"mappings":"AAEA,qBAAa,gCAAgC;IAC3C,SAAgB,YAAY,yCAAgB;IAC5C,SAAgB,WAAW,4CAAyB;IACpD,SAAgB,KAAK,yCAAgB;IAErC,SAAgB,WAAW,4CAEP;CACrB"}
|
|
@@ -2,8 +2,6 @@ import { WithAbortSignal } from 'src/types/common.types';
|
|
|
2
2
|
import { getAvailableInputs } from './helpers';
|
|
3
3
|
import { VoiceRecordModel } from './recording/model/VoiceRecord.model';
|
|
4
4
|
import { AxiosResponse } from 'axios';
|
|
5
|
-
import type { GoogleTranslateProps as GoogleTranslatePayload, GoogleTranslateResponse } from '../translation/providers/google.types';
|
|
6
|
-
export type { GoogleTranslatePayload, GoogleTranslateResponse };
|
|
7
5
|
export type VoiceRecordNotificationTypes = {
|
|
8
6
|
success: (message: string) => void;
|
|
9
7
|
info: (message: string) => void;
|
|
@@ -48,7 +46,6 @@ export type VoiceRecorderApi = {
|
|
|
48
46
|
type TranscriptionStatus = 'pending' | 'completed' | 'failed';
|
|
49
47
|
export type AudioTranscriptResponse = {
|
|
50
48
|
text: string;
|
|
51
|
-
language: string;
|
|
52
49
|
status: TranscriptionStatus;
|
|
53
50
|
};
|
|
54
51
|
export type VoicePlayerApi = {
|
|
@@ -56,14 +53,12 @@ export type VoicePlayerApi = {
|
|
|
56
53
|
downloadAudioFile: (audioFileId: string, options?: {
|
|
57
54
|
signal?: AbortSignal;
|
|
58
55
|
}) => Promise<AxiosResponse<Blob>>;
|
|
59
|
-
translateText: (payload: GoogleTranslatePayload) => Promise<GoogleTranslateResponse>;
|
|
60
56
|
};
|
|
61
57
|
export type VoiceTranscriptionItem = {
|
|
62
58
|
attemptNumber: number;
|
|
63
59
|
audioFileId: string;
|
|
64
60
|
_id: string;
|
|
65
61
|
transcript?: string;
|
|
66
|
-
transcriptLanguage?: string;
|
|
67
62
|
transcriptLoading?: boolean;
|
|
68
63
|
transcriptError?: string;
|
|
69
64
|
audioUri?: string;
|
|
@@ -77,8 +72,5 @@ export declare enum RecordButtonVariant {
|
|
|
77
72
|
DEFAULT = "default",
|
|
78
73
|
ADVANCED = "advanced"
|
|
79
74
|
}
|
|
80
|
-
export
|
|
81
|
-
SMALL = "small",
|
|
82
|
-
LARGE = "large"
|
|
83
|
-
}
|
|
75
|
+
export {};
|
|
84
76
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/voice/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/voice/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const getSliceClipId = (index: number | string) => `slice-clip-${index}`
|
|
2
2
|
|
|
3
3
|
export const dynamicInnerRadius = (sliceCount: number): number => {
|
|
4
|
+
if (sliceCount >= 8) return 20
|
|
4
5
|
if (sliceCount >= 5) return 14
|
|
5
6
|
if (sliceCount === 4) return 8
|
|
6
7
|
if (sliceCount === 3) return 6
|
|
@@ -66,8 +66,18 @@ export const StartButton = ({
|
|
|
66
66
|
useNativeDriver: true,
|
|
67
67
|
})
|
|
68
68
|
|
|
69
|
+
const resetAnimations = Animated.parallel([
|
|
70
|
+
Animated.timing(scaleAnimValue, { toValue: 0, duration: 0, useNativeDriver: true }),
|
|
71
|
+
Animated.timing(fadeAnimValue, { toValue: 1, duration: 0, useNativeDriver: true }),
|
|
72
|
+
])
|
|
73
|
+
|
|
69
74
|
const pulsation = Animated.loop(
|
|
70
|
-
Animated.sequence([
|
|
75
|
+
Animated.sequence([
|
|
76
|
+
resetAnimations,
|
|
77
|
+
scaleAnimation,
|
|
78
|
+
Animated.delay(PULSE_DELAY),
|
|
79
|
+
fadeOutAnimation,
|
|
80
|
+
]),
|
|
71
81
|
)
|
|
72
82
|
|
|
73
83
|
pulsation.start()
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
SPACING,
|
|
10
10
|
Typography,
|
|
11
11
|
} from '@magmamath/react-native-ui'
|
|
12
|
-
import {
|
|
12
|
+
import { StandardItem } from './StandardItem'
|
|
13
13
|
import { useText } from '../../../../i18n/i18n'
|
|
14
14
|
|
|
15
15
|
const HEADER_HEIGHT = 60
|
|
16
16
|
const PROGRESS_BAR_WIDTH = 50
|
|
17
17
|
const PROGRESS_BAR_HEIGHT = 10
|
|
18
18
|
|
|
19
|
-
export type
|
|
19
|
+
export type DomainCardItem = {
|
|
20
20
|
id: string
|
|
21
21
|
title: string
|
|
22
22
|
subtitle: string
|
|
@@ -25,17 +25,11 @@ export type ListCardItem = {
|
|
|
25
25
|
testID?: string
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
const visible = maxItems != null ? items.slice(0, maxItems) : items
|
|
30
|
-
const remainingCount = maxItems != null ? Math.max(0, items.length - maxItems) : 0
|
|
31
|
-
return { visible, remainingCount }
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
type ListCardProps<T extends ListCardItem> = {
|
|
28
|
+
type DomainCardProps<T extends DomainCardItem> = {
|
|
35
29
|
title: string
|
|
36
30
|
icon: React.ReactElement
|
|
37
31
|
color: string
|
|
38
|
-
|
|
32
|
+
standards: T[]
|
|
39
33
|
onItemPress?: (item: T) => void
|
|
40
34
|
isExpanded?: boolean
|
|
41
35
|
onPress?: () => void
|
|
@@ -45,19 +39,19 @@ type ListCardProps<T extends ListCardItem> = {
|
|
|
45
39
|
rightContent?: React.ReactNode
|
|
46
40
|
isFirst?: boolean
|
|
47
41
|
isLast?: boolean
|
|
48
|
-
maxItems?: number
|
|
49
42
|
expandedColor?: string
|
|
50
43
|
isSkillsLeftHidden?: boolean
|
|
51
44
|
isHighlighted?: boolean
|
|
52
45
|
loadingItemId?: string | null
|
|
46
|
+
remainingItemsCount?: number
|
|
53
47
|
testID?: string
|
|
54
48
|
}
|
|
55
49
|
|
|
56
|
-
export const
|
|
50
|
+
export const DomainCard = <T extends DomainCardItem>({
|
|
57
51
|
title,
|
|
58
52
|
icon,
|
|
59
53
|
color,
|
|
60
|
-
|
|
54
|
+
standards,
|
|
61
55
|
isExpanded = false,
|
|
62
56
|
isHighlighted = false,
|
|
63
57
|
onPress,
|
|
@@ -68,16 +62,15 @@ export const ListCard = <T extends ListCardItem>({
|
|
|
68
62
|
rightContent,
|
|
69
63
|
isFirst,
|
|
70
64
|
isLast,
|
|
71
|
-
maxItems,
|
|
72
65
|
expandedColor = COLORS.NEUTRAL_3,
|
|
73
66
|
isSkillsLeftHidden = false,
|
|
74
67
|
loadingItemId = null,
|
|
68
|
+
remainingItemsCount = 0,
|
|
75
69
|
testID,
|
|
76
|
-
}:
|
|
70
|
+
}: DomainCardProps<T>) => {
|
|
77
71
|
const t = useText()
|
|
78
72
|
const [isHovered, setIsHovered] = useState(false)
|
|
79
73
|
|
|
80
|
-
const { visible: standards, remainingCount } = getVisibleItems(items, maxItems)
|
|
81
74
|
const withHighlight = isHovered || isExpanded || isHighlighted
|
|
82
75
|
|
|
83
76
|
const Caret = isExpanded ? CaretDownIcon : CaretRightIcon
|
|
@@ -134,7 +127,7 @@ export const ListCard = <T extends ListCardItem>({
|
|
|
134
127
|
{isExpanded && (
|
|
135
128
|
<View style={[styles.items, isLast && styles.itemsLast]}>
|
|
136
129
|
{standards.map((standard) => (
|
|
137
|
-
<
|
|
130
|
+
<StandardItem
|
|
138
131
|
key={standard.id}
|
|
139
132
|
title={standard.title}
|
|
140
133
|
skillsLeft={standard.skillsLeft}
|
|
@@ -146,9 +139,9 @@ export const ListCard = <T extends ListCardItem>({
|
|
|
146
139
|
onPress={() => onItemPress?.(standard)}
|
|
147
140
|
/>
|
|
148
141
|
))}
|
|
149
|
-
{
|
|
142
|
+
{remainingItemsCount > 0 && (
|
|
150
143
|
<Typography variant={HeadingVariants.H8} style={styles.moreText}>
|
|
151
|
-
{t('pmProgress.andMore', { count: `${
|
|
144
|
+
{t('pmProgress.andMore', { count: `${remainingItemsCount}` })}
|
|
152
145
|
</Typography>
|
|
153
146
|
)}
|
|
154
147
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import {
|
|
3
|
+
import { DomainCard } from './DomainCard'
|
|
4
4
|
import { COLORS, SPACING } from '@magmamath/react-native-ui'
|
|
5
5
|
import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
|
|
6
6
|
import { useUnit } from 'effector-react'
|
|
@@ -28,9 +28,9 @@ export const Fluency = ({ data }: FluencyProps) => {
|
|
|
28
28
|
return (
|
|
29
29
|
<View style={styles.container}>
|
|
30
30
|
<View style={styles.separator} />
|
|
31
|
-
<
|
|
31
|
+
<DomainCard
|
|
32
32
|
title={t('pmProgress.fluency')}
|
|
33
|
-
|
|
33
|
+
standards={data.standards.map((standard) => ({ ...standard, id: standard.standardId }))}
|
|
34
34
|
progress={data.scorePercentage}
|
|
35
35
|
color={COLORS.PRIMARY_ORANGE}
|
|
36
36
|
onPress={() => model.highlight.expand(data.domainId)}
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
3
|
import { useUnit } from 'effector-react'
|
|
4
4
|
import { BORDER_RADIUS, COLORS, ScrollableList, SHADOWS, SPACING } from '@magmamath/react-native-ui'
|
|
5
|
-
import {
|
|
5
|
+
import { DomainCard } from './DomainCard'
|
|
6
6
|
import { Fluency } from './Fluency'
|
|
7
7
|
import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
|
|
8
8
|
import { usePmProgress } from '../../context/PmProgressContext'
|
|
@@ -30,10 +30,10 @@ export const PmDomainList = () => {
|
|
|
30
30
|
ListFooterComponent={<Fluency data={fluency} />}
|
|
31
31
|
keyExtractor={(item) => item.domainId}
|
|
32
32
|
renderItem={({ item, index }) => (
|
|
33
|
-
<
|
|
33
|
+
<DomainCard
|
|
34
34
|
title={item.title}
|
|
35
35
|
testID={TEST_IDS.PM_PROGRESS_DOMAIN_CARD(item.domainId)}
|
|
36
|
-
|
|
36
|
+
standards={item.standards.map((standard) => ({
|
|
37
37
|
...standard,
|
|
38
38
|
id: standard.standardId,
|
|
39
39
|
testID: TEST_IDS.PM_PROGRESS_STANDARD_ITEM(standard.standardId),
|
|
@@ -18,7 +18,7 @@ const ICON_SIZE = 25
|
|
|
18
18
|
const SUBTITLE_FONT_SIZE = 10
|
|
19
19
|
const SUBTITLE_LINE_HEIGHT = 14
|
|
20
20
|
|
|
21
|
-
export type
|
|
21
|
+
export type StandardItemProps = {
|
|
22
22
|
title: string
|
|
23
23
|
subtitle: string
|
|
24
24
|
skillsLeft: number
|
|
@@ -29,7 +29,7 @@ export type ListItemProps = {
|
|
|
29
29
|
testID?: string
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export const
|
|
32
|
+
export const StandardItem = ({
|
|
33
33
|
title,
|
|
34
34
|
subtitle,
|
|
35
35
|
skillsLeft,
|
|
@@ -38,11 +38,11 @@ export const ListItem = ({
|
|
|
38
38
|
onPress,
|
|
39
39
|
isSkillsLeftHidden = false,
|
|
40
40
|
testID,
|
|
41
|
-
}:
|
|
41
|
+
}: StandardItemProps) => {
|
|
42
42
|
const t = useText()
|
|
43
43
|
const [isHovered, setIsHovered] = useState(false)
|
|
44
44
|
const isSkillsLeftVisible = skillsLeft > 0 && !isFinished && !isSkillsLeftHidden
|
|
45
|
-
const hasDistinctSubtitle = title !== subtitle
|
|
45
|
+
const hasDistinctSubtitle = subtitle && title !== subtitle
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
48
|
<Pressable
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import {
|
|
3
|
+
import { DomainCard } from '../list/DomainCard'
|
|
4
4
|
import { PentagonIcon } from '../../../../shared/icons/PentagonIcon'
|
|
5
5
|
import {
|
|
6
6
|
BORDER_RADIUS,
|
|
@@ -39,15 +39,19 @@ export const PmTeacherRecs = () => {
|
|
|
39
39
|
}),
|
|
40
40
|
)
|
|
41
41
|
|
|
42
|
+
const maxVisible = 3
|
|
43
|
+
const visibleItems = recommendations.slice(0, maxVisible)
|
|
44
|
+
const remainingItemsCount = Math.max(0, total - maxVisible)
|
|
45
|
+
|
|
42
46
|
if (!recommendations.length) return null
|
|
43
47
|
|
|
44
48
|
return (
|
|
45
49
|
<View style={styles.container}>
|
|
46
50
|
<View style={styles.wrapper}>
|
|
47
|
-
<
|
|
51
|
+
<DomainCard
|
|
48
52
|
title={t('pmProgress.teacherRecs')}
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
standards={visibleItems}
|
|
54
|
+
remainingItemsCount={remainingItemsCount}
|
|
51
55
|
color={COLORS.PRIMARY_YELLOW}
|
|
52
56
|
expandedColor={COLORS.YELLOW_1}
|
|
53
57
|
testID={TEST_IDS.PM_PROGRESS_TEACHER_RECS_CARD}
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { StyleSheet, View, Text } from 'react-native'
|
|
3
3
|
import { PmProgressModel } from '@magmamath/students-features'
|
|
4
4
|
import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
|
|
5
|
-
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
5
|
+
import { COLORS, FONT_FAMILY, SHADOWS } from '@magmamath/react-native-ui'
|
|
6
6
|
import { useStoreMap } from 'effector-react'
|
|
7
7
|
import { isWeb } from '../../../../shared/common.constants'
|
|
8
8
|
|
|
@@ -159,11 +159,7 @@ const styles = StyleSheet.create({
|
|
|
159
159
|
alignItems: 'center',
|
|
160
160
|
gap: 8,
|
|
161
161
|
alignSelf: 'flex-start',
|
|
162
|
-
|
|
163
|
-
shadowOffset: { width: 0, height: 1 },
|
|
164
|
-
shadowOpacity: 0.1,
|
|
165
|
-
shadowRadius: 3,
|
|
166
|
-
elevation: 2,
|
|
162
|
+
...SHADOWS[1],
|
|
167
163
|
},
|
|
168
164
|
textContainer: {
|
|
169
165
|
...(isWeb ? { flex: 1 } : { flexShrink: 1 }),
|
|
@@ -30,8 +30,7 @@ const groupStandardsByDomain = (
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const completed =
|
|
33
|
-
|
|
34
|
-
(skillsToPractice.failed.length === 0 && skillsToPractice.unattempted.length === 0)
|
|
33
|
+
skillsToPractice?.failed.length === 0 && skillsToPractice.unattempted.length === 0
|
|
35
34
|
const left = skillsToPractice
|
|
36
35
|
? skillsToPractice.failed.length + skillsToPractice.unattempted.length
|
|
37
36
|
: 0
|
|
@@ -4,7 +4,7 @@ export * from './recording/modal/VoiceRecordDeleteModal'
|
|
|
4
4
|
export * from './recording/modal/VoiceRecordUndoModal'
|
|
5
5
|
|
|
6
6
|
export * from './playing/model/VoicePlayer.model'
|
|
7
|
-
export * from './playing/components/
|
|
7
|
+
export * from './playing/components/VoiceTranscriptionsDropdown'
|
|
8
8
|
|
|
9
9
|
export * from './playing/components/VoiceIcon'
|
|
10
10
|
export * from './constants'
|