@magmamath/students-features 1.4.6 → 1.5.0-rc.20
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/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +1 -6
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/fluency/components/Fluency.js +6 -12
- package/dist/commonjs/features/fluency/components/Fluency.js.map +1 -1
- package/dist/commonjs/features/fluency/components/select-math-operator/SelectMathOperator.js +5 -13
- package/dist/commonjs/features/fluency/components/select-math-operator/SelectMathOperator.js.map +1 -1
- package/dist/commonjs/features/fluency/model/FluencyModel.js +0 -21
- package/dist/commonjs/features/fluency/model/FluencyModel.js.map +1 -1
- package/dist/commonjs/features/fluency/shared/fluency.constants.js +1 -6
- package/dist/commonjs/features/fluency/shared/fluency.constants.js.map +1 -1
- package/dist/commonjs/features/fluency/shared/fluency.helpers.js +1 -3
- package/dist/commonjs/features/fluency/shared/fluency.helpers.js.map +1 -1
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +1 -7
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +1 -1
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +4 -20
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +1 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +1 -22
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
- package/dist/commonjs/features/translation/constants.js +11 -0
- package/dist/commonjs/features/translation/constants.js.map +1 -0
- package/dist/commonjs/features/translation/helpers.js +60 -0
- package/dist/commonjs/features/translation/helpers.js.map +1 -0
- package/dist/commonjs/features/translation/index.js +105 -0
- package/dist/commonjs/features/translation/index.js.map +1 -0
- package/dist/commonjs/features/translation/model/TranslationModel.js +122 -0
- package/dist/commonjs/features/translation/model/TranslationModel.js.map +1 -0
- package/dist/commonjs/features/translation/model/TranslationPreprocessor.js +142 -0
- package/dist/commonjs/features/translation/model/TranslationPreprocessor.js.map +1 -0
- package/dist/commonjs/features/translation/model/TranslationService.js +112 -0
- package/dist/commonjs/features/translation/model/TranslationService.js.map +1 -0
- package/dist/commonjs/features/translation/preserve/wordsToPreserve.js +314 -0
- package/dist/commonjs/features/translation/preserve/wordsToPreserve.js.map +1 -0
- package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js +50 -0
- package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js.map +1 -0
- package/dist/commonjs/features/translation/providers/google/supportedLanguages.js +230 -0
- package/dist/commonjs/features/translation/providers/google/supportedLanguages.js.map +1 -0
- package/dist/commonjs/features/translation/providers/google.types.js +2 -0
- package/dist/commonjs/features/translation/providers/google.types.js.map +1 -0
- package/dist/commonjs/features/translation/providers/translation.interface.js +49 -0
- package/dist/commonjs/features/translation/providers/translation.interface.js.map +1 -0
- package/dist/commonjs/features/translation/types.js +2 -0
- package/dist/commonjs/features/translation/types.js.map +1 -0
- package/dist/commonjs/features/voice/index.js +15 -4
- package/dist/commonjs/features/voice/index.js.map +1 -1
- package/dist/commonjs/features/voice/playing/components/VoiceIcon.js +1 -1
- package/dist/commonjs/features/voice/playing/components/VoiceIcon.js.map +1 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js +44 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js +107 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js +66 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +58 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.js → useDropdownAnimation.js} +8 -7
- package/dist/commonjs/features/voice/playing/hooks/useDropdownAnimation.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoicePlayerLifecycle.js +53 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoicePlayerLifecycle.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.js +111 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/{VoiceTranscriptionsDropdown.model.js → Dropdown.model.js} +4 -4
- package/dist/commonjs/features/voice/playing/model/Dropdown.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/PlaybackController.js +192 -0
- package/dist/commonjs/features/voice/playing/model/PlaybackController.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/Player.model.js +50 -5
- package/dist/commonjs/features/voice/playing/model/Player.model.js.map +1 -1
- package/dist/commonjs/features/voice/playing/model/{VoiceTranscriptionsCollection.js → TranscriptionsCollection.js} +4 -4
- package/dist/commonjs/features/voice/playing/model/TranscriptionsCollection.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.js +83 -0
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/Translation.model.js +62 -0
- package/dist/commonjs/features/voice/playing/model/Translation.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/VoiceFileDownloader.model.js +2 -2
- package/dist/commonjs/features/voice/playing/model/VoiceFileDownloader.model.js.map +1 -1
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +58 -172
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDivider.js +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDivider.js.map +1 -1
- package/dist/commonjs/features/voice/types.js +12 -1
- package/dist/commonjs/features/voice/types.js.map +1 -1
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +2 -7
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/fluency/components/Fluency.js +8 -14
- package/dist/module/features/fluency/components/Fluency.js.map +1 -1
- package/dist/module/features/fluency/components/select-math-operator/SelectMathOperator.js +5 -13
- package/dist/module/features/fluency/components/select-math-operator/SelectMathOperator.js.map +1 -1
- package/dist/module/features/fluency/model/FluencyModel.js +1 -22
- package/dist/module/features/fluency/model/FluencyModel.js.map +1 -1
- package/dist/module/features/fluency/shared/fluency.constants.js +0 -5
- package/dist/module/features/fluency/shared/fluency.constants.js.map +1 -1
- package/dist/module/features/fluency/shared/fluency.helpers.js +0 -1
- package/dist/module/features/fluency/shared/fluency.helpers.js.map +1 -1
- package/dist/module/features/pmProgress/model/PmProgressModel.js +1 -7
- package/dist/module/features/pmProgress/model/PmProgressModel.js.map +1 -1
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +4 -20
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +1 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +0 -20
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
- package/dist/module/features/translation/constants.js +7 -0
- package/dist/module/features/translation/constants.js.map +1 -0
- package/dist/module/features/translation/helpers.js +53 -0
- package/dist/module/features/translation/helpers.js.map +1 -0
- package/dist/module/features/translation/index.js +12 -0
- package/dist/module/features/translation/index.js.map +1 -0
- package/dist/module/features/translation/model/TranslationModel.js +117 -0
- package/dist/module/features/translation/model/TranslationModel.js.map +1 -0
- package/dist/module/features/translation/model/TranslationPreprocessor.js +137 -0
- package/dist/module/features/translation/model/TranslationPreprocessor.js.map +1 -0
- package/dist/module/features/translation/model/TranslationService.js +107 -0
- package/dist/module/features/translation/model/TranslationService.js.map +1 -0
- package/dist/module/features/translation/preserve/wordsToPreserve.js +310 -0
- package/dist/module/features/translation/preserve/wordsToPreserve.js.map +1 -0
- package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js +45 -0
- package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js.map +1 -0
- package/dist/module/features/translation/providers/google/supportedLanguages.js +225 -0
- package/dist/module/features/translation/providers/google/supportedLanguages.js.map +1 -0
- package/dist/module/features/translation/providers/google.types.js +2 -0
- package/dist/module/features/translation/providers/google.types.js.map +1 -0
- package/dist/module/features/translation/providers/translation.interface.js +44 -0
- package/dist/module/features/translation/providers/translation.interface.js.map +1 -0
- package/dist/module/features/translation/types.js +2 -0
- package/dist/module/features/translation/types.js.map +1 -0
- package/dist/module/features/voice/index.js +2 -1
- package/dist/module/features/voice/index.js.map +1 -1
- package/dist/module/features/voice/playing/components/VoiceIcon.js +2 -2
- package/dist/module/features/voice/playing/components/VoiceIcon.js.map +1 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js +38 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceTranscription.js +101 -0
- package/dist/module/features/voice/playing/components/VoiceTranscription.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js +58 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +52 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.js → useDropdownAnimation.js} +6 -5
- package/dist/module/features/voice/playing/hooks/useDropdownAnimation.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/useVoicePlayerLifecycle.js +48 -0
- package/dist/module/features/voice/playing/hooks/useVoicePlayerLifecycle.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionController.js +106 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionController.js.map +1 -0
- package/dist/module/features/voice/playing/model/{VoiceTranscriptionsDropdown.model.js → Dropdown.model.js} +2 -2
- package/dist/module/features/voice/playing/model/Dropdown.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/PlaybackController.js +187 -0
- package/dist/module/features/voice/playing/model/PlaybackController.js.map +1 -0
- package/dist/module/features/voice/playing/model/Player.model.js +51 -4
- package/dist/module/features/voice/playing/model/Player.model.js.map +1 -1
- package/dist/module/features/voice/playing/model/{VoiceTranscriptionsCollection.js → TranscriptionsCollection.js} +2 -2
- package/dist/module/features/voice/playing/model/TranscriptionsCollection.js.map +1 -0
- package/dist/module/features/voice/playing/model/TranscriptionsDownloader.model.js +78 -0
- package/dist/module/features/voice/playing/model/TranscriptionsDownloader.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/Translation.model.js +57 -0
- package/dist/module/features/voice/playing/model/Translation.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/VoiceFileDownloader.model.js +2 -2
- package/dist/module/features/voice/playing/model/VoiceFileDownloader.model.js.map +1 -1
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js +60 -174
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDivider.js +2 -2
- package/dist/module/features/voice/recording/components/VoiceRecordDivider.js.map +1 -1
- package/dist/module/features/voice/types.js +11 -0
- package/dist/module/features/voice/types.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/Fluency.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/select-math-operator/SelectMathOperator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencyModel.d.ts +0 -3
- package/dist/typescript/commonjs/features/fluency/model/FluencyModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/shared/fluency.constants.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency/shared/fluency.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/shared/fluency.helpers.d.ts +0 -1
- package/dist/typescript/commonjs/features/fluency/shared/fluency.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +38 -9
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/translation/constants.d.ts +5 -0
- package/dist/typescript/commonjs/features/translation/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/helpers.d.ts +9 -0
- package/dist/typescript/commonjs/features/translation/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/index.d.ts +12 -0
- package/dist/typescript/commonjs/features/translation/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts +33 -0
- package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts +34 -0
- package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts +40 -0
- package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts +3 -0
- package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts +17 -0
- package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts +209 -0
- package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts +15 -0
- package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts +30 -0
- package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/translation/types.d.ts +27 -0
- package/dist/typescript/commonjs/features/translation/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/index.d.ts +3 -1
- package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts +8 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts +16 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +10 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +12 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.d.ts → useDropdownAnimation.d.ts} +3 -3
- package/dist/typescript/commonjs/features/voice/playing/hooks/useDropdownAnimation.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoicePlayerLifecycle.d.ts +15 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoicePlayerLifecycle.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts +30 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts.map +1 -0
- package/dist/typescript/{module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts → commonjs/features/voice/playing/model/Dropdown.model.d.ts} +2 -2
- package/dist/typescript/commonjs/features/voice/playing/model/Dropdown.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/PlaybackController.d.ts +28 -0
- package/dist/typescript/commonjs/features/voice/playing/model/PlaybackController.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts +4 -0
- package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts.map +1 -1
- package/dist/typescript/{module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts → commonjs/features/voice/playing/model/TranscriptionsCollection.d.ts} +2 -2
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsCollection.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.d.ts +19 -0
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloader.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/Translation.model.d.ts +25 -0
- package/dist/typescript/commonjs/features/voice/playing/model/Translation.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceFileDownloader.model.d.ts +2 -2
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceFileDownloader.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +19 -18
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +14 -2
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/Fluency.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/select-math-operator/SelectMathOperator.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/model/FluencyModel.d.ts +0 -3
- package/dist/typescript/module/features/fluency/model/FluencyModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/shared/fluency.constants.d.ts +0 -4
- package/dist/typescript/module/features/fluency/shared/fluency.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/shared/fluency.helpers.d.ts +0 -1
- package/dist/typescript/module/features/fluency/shared/fluency.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +38 -9
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/translation/constants.d.ts +5 -0
- package/dist/typescript/module/features/translation/constants.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/helpers.d.ts +9 -0
- package/dist/typescript/module/features/translation/helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/index.d.ts +12 -0
- package/dist/typescript/module/features/translation/index.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/model/TranslationModel.d.ts +33 -0
- package/dist/typescript/module/features/translation/model/TranslationModel.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts +34 -0
- package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/model/TranslationService.d.ts +40 -0
- package/dist/typescript/module/features/translation/model/TranslationService.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts +3 -0
- package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts +17 -0
- package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts +209 -0
- package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/providers/google.types.d.ts +15 -0
- package/dist/typescript/module/features/translation/providers/google.types.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/providers/translation.interface.d.ts +30 -0
- package/dist/typescript/module/features/translation/providers/translation.interface.d.ts.map +1 -0
- package/dist/typescript/module/features/translation/types.d.ts +27 -0
- package/dist/typescript/module/features/translation/types.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/index.d.ts +3 -1
- package/dist/typescript/module/features/voice/index.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts +8 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts +16 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +10 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +12 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.d.ts → useDropdownAnimation.d.ts} +3 -3
- package/dist/typescript/module/features/voice/playing/hooks/useDropdownAnimation.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoicePlayerLifecycle.d.ts +15 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoicePlayerLifecycle.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts +30 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionController.d.ts.map +1 -0
- package/dist/typescript/{commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts → module/features/voice/playing/model/Dropdown.model.d.ts} +2 -2
- package/dist/typescript/module/features/voice/playing/model/Dropdown.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/PlaybackController.d.ts +28 -0
- package/dist/typescript/module/features/voice/playing/model/PlaybackController.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts +4 -0
- package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts.map +1 -1
- package/dist/typescript/{commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts → module/features/voice/playing/model/TranscriptionsCollection.d.ts} +2 -2
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsCollection.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloader.model.d.ts +19 -0
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloader.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/Translation.model.d.ts +25 -0
- package/dist/typescript/module/features/voice/playing/model/Translation.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceFileDownloader.model.d.ts +2 -2
- package/dist/typescript/module/features/voice/playing/model/VoiceFileDownloader.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +19 -18
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/types.d.ts +14 -2
- package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +37 -10
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +2 -9
- package/src/features/fluency/components/Fluency.tsx +9 -17
- package/src/features/fluency/components/select-math-operator/SelectMathOperator.tsx +5 -13
- package/src/features/fluency/model/FluencyModel.ts +1 -25
- package/src/features/fluency/shared/fluency.constants.ts +0 -5
- package/src/features/fluency/shared/fluency.helpers.ts +0 -3
- package/src/features/pmProgress/model/PmProgressModel.ts +1 -4
- package/src/features/pmProgress/model/PmRecommendationsModel.ts +6 -22
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +0 -33
- package/src/features/translation/constants.ts +4 -0
- package/src/features/translation/helpers.ts +63 -0
- package/src/features/translation/index.ts +30 -0
- package/src/features/translation/model/TranslationModel.ts +174 -0
- package/src/features/translation/model/TranslationPreprocessor.ts +171 -0
- package/src/features/translation/model/TranslationService.ts +148 -0
- package/src/features/translation/preserve/wordsToPreserve.ts +87 -0
- package/src/features/translation/providers/google/GoogleTranslationProvider.ts +50 -0
- package/src/features/translation/providers/google/supportedLanguages.ts +229 -0
- package/src/features/translation/providers/google.types.ts +16 -0
- package/src/features/translation/providers/translation.interface.ts +63 -0
- package/src/features/translation/types.ts +30 -0
- package/src/features/voice/index.ts +3 -1
- package/src/features/voice/playing/components/VoiceIcon.tsx +2 -2
- package/src/features/voice/playing/components/VoiceTranscriptContent.tsx +44 -0
- package/src/features/voice/playing/components/VoiceTranscription.tsx +117 -0
- package/src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx +59 -0
- package/src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx +61 -0
- package/src/features/voice/playing/hooks/{useVoiceTranscriptionsDropdown.ts → useDropdownAnimation.ts} +5 -5
- package/src/features/voice/playing/hooks/useVoicePlayerLifecycle.ts +64 -0
- package/src/features/voice/playing/hooks/useVoiceTranscriptionController.ts +148 -0
- package/src/features/voice/playing/model/{VoiceTranscriptionsDropdown.model.ts → Dropdown.model.ts} +2 -2
- package/src/features/voice/playing/model/PlaybackController.ts +221 -0
- package/src/features/voice/playing/model/Player.model.ts +52 -4
- package/src/features/voice/playing/model/{VoiceTranscriptionsCollection.ts → TranscriptionsCollection.ts} +1 -1
- package/src/features/voice/playing/model/TranscriptionsDownloader.model.ts +88 -0
- package/src/features/voice/playing/model/Translation.model.ts +75 -0
- package/src/features/voice/playing/model/VoiceFileDownloader.model.ts +2 -2
- package/src/features/voice/playing/model/VoicePlayer.model.ts +68 -192
- package/src/features/voice/recording/components/VoiceRecordDivider.tsx +2 -2
- package/src/features/voice/types.ts +21 -1
- package/src/i18n/.generated/schema.json +3 -7
- package/src/index.ts +1 -0
- package/dist/commonjs/features/fluency/components/FluencyStatusOverlay.js +0 -101
- package/dist/commonjs/features/fluency/components/FluencyStatusOverlay.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +0 -245
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +0 -109
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +0 -1
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +0 -34
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js +0 -66
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +0 -1
- package/dist/module/features/fluency/components/FluencyStatusOverlay.js +0 -95
- package/dist/module/features/fluency/components/FluencyStatusOverlay.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +0 -238
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +0 -103
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +0 -1
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +0 -29
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +0 -1
- package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js +0 -61
- package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/FluencyStatusOverlay.d.ts +0 -8
- package/dist/typescript/commonjs/features/fluency/components/FluencyStatusOverlay.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +0 -16
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +0 -12
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +0 -11
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -15
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/FluencyStatusOverlay.d.ts +0 -8
- package/dist/typescript/module/features/fluency/components/FluencyStatusOverlay.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +0 -16
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +0 -12
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +0 -11
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -15
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +0 -1
- package/src/features/fluency/components/FluencyStatusOverlay.tsx +0 -101
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +0 -296
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +0 -128
- package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +0 -40
- package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +0 -80
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createEffect","TranscriptionStatus","NO_AUDIO_BE_MESSAGE","TRANSCRIPT_MAX_RETRIES","TRANSCRIPT_RETRY_INTERVAL_MS","TranscriptionsDownloaderModel","inflightFetches","Map","transcriptCache","constructor","collection","api","fetchTranscriptWithRetry","audioFileId","cached","get","existing","promise","runFetchWithRetry","then","result","set","finally","delete","attempt","response","getAudioFileTranscript","status","COMPLETED","text","language","FAILED","Promise","resolve","setTimeout","loadTranscriptForAttempt","attemptNumber","item","transcript","transcriptLoading","update","transcriptLanguage","transcriptError","undefined","error","Error","message","getCachedTranscript"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/TranscriptionsDownloader.model.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createEffect, createEvent, createStore, restore } from 'effector';
|
|
4
|
+
import { TranslationService } from "../../../translation/model/TranslationService.js";
|
|
5
|
+
import { GoogleTranslationProvider } from "../../../translation/providers/google/GoogleTranslationProvider.js";
|
|
6
|
+
import { preservedWordsReplacers, wordsToPreserve } from "../../../translation/preserve/wordsToPreserve.js";
|
|
7
|
+
export class TranslationModel {
|
|
8
|
+
toggle = createEvent();
|
|
9
|
+
setActive = createEvent();
|
|
10
|
+
clearCache = createEvent();
|
|
11
|
+
reset = createEvent();
|
|
12
|
+
$isActive = restore(this.setActive, false).on(this.toggle, state => !state).reset(this.reset);
|
|
13
|
+
translate = createEffect(async ({
|
|
14
|
+
attemptNumber,
|
|
15
|
+
targetLanguage
|
|
16
|
+
}) => {
|
|
17
|
+
const item = this.collection.get(attemptNumber);
|
|
18
|
+
if (!item?.transcript) return null;
|
|
19
|
+
const text = await this.service.translate(item.transcript, {
|
|
20
|
+
targetLang: targetLanguage,
|
|
21
|
+
sourceLang: item.transcriptLanguage,
|
|
22
|
+
cacheKey: `voice::${attemptNumber}::${targetLanguage}`
|
|
23
|
+
});
|
|
24
|
+
if (!text) return null;
|
|
25
|
+
return {
|
|
26
|
+
attemptNumber,
|
|
27
|
+
text
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
$translations = createStore({}).on(this.translate.doneData, (state, result) => {
|
|
31
|
+
if (!result) return state;
|
|
32
|
+
return {
|
|
33
|
+
...state,
|
|
34
|
+
[result.attemptNumber]: result.text
|
|
35
|
+
};
|
|
36
|
+
}).reset(this.reset, this.clearCache);
|
|
37
|
+
constructor(collection, api) {
|
|
38
|
+
this.collection = collection;
|
|
39
|
+
this.service = new TranslationService({
|
|
40
|
+
preserve: {
|
|
41
|
+
map: wordsToPreserve,
|
|
42
|
+
replacers: preservedWordsReplacers
|
|
43
|
+
},
|
|
44
|
+
providers: [new GoogleTranslationProvider({
|
|
45
|
+
api: {
|
|
46
|
+
translateRequest: api.translateText
|
|
47
|
+
}
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
this.clearCache.watch(() => this.service.reset());
|
|
51
|
+
this.reset.watch(() => this.service.reset());
|
|
52
|
+
}
|
|
53
|
+
getTranslation(attemptNumber) {
|
|
54
|
+
return this.$translations.getState()[attemptNumber];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Translation.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createEffect","createEvent","createStore","restore","TranslationService","GoogleTranslationProvider","preservedWordsReplacers","wordsToPreserve","TranslationModel","toggle","setActive","clearCache","reset","$isActive","on","state","translate","attemptNumber","targetLanguage","item","collection","get","transcript","text","service","targetLang","sourceLang","transcriptLanguage","cacheKey","$translations","doneData","result","constructor","api","preserve","map","replacers","providers","translateRequest","translateText","watch","getTranslation","getState"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/Translation.model.ts"],"mappings":";;AAAA,SAASA,YAAY,EAAEC,WAAW,EAAEC,WAAW,EAAEC,OAAO,QAAQ,UAAU;AAG1E,SAASC,kBAAkB,QAAQ,kDAA+C;AAClF,SAASC,yBAAyB,QAAQ,oEAAiE;AAC3G,SACEC,uBAAuB,EACvBC,eAAe,QACV,kDAA+C;AAYtD,OAAO,MAAMC,gBAAgB,CAAC;EAIZC,MAAM,GAAGR,WAAW,CAAC,CAAC;EACtBS,SAAS,GAAGT,WAAW,CAAU,CAAC;EAClCU,UAAU,GAAGV,WAAW,CAAC,CAAC;EAC1BW,KAAK,GAAGX,WAAW,CAAC,CAAC;EAErBY,SAAS,GAAGV,OAAO,CAAC,IAAI,CAACO,SAAS,EAAE,KAAK,CAAC,CACvDI,EAAE,CAAC,IAAI,CAACL,MAAM,EAAGM,KAAK,IAAK,CAACA,KAAK,CAAC,CAClCH,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAEJI,SAAS,GAAGhB,YAAY,CACtC,OAAO;IAAEiB,aAAa;IAAEC;EAAe,CAAC,KAAK;IAC3C,MAAMC,IAAI,GAAG,IAAI,CAACC,UAAU,CAACC,GAAG,CAACJ,aAAa,CAAC;IAC/C,IAAI,CAACE,IAAI,EAAEG,UAAU,EAAE,OAAO,IAAI;IAElC,MAAMC,IAAI,GAAG,MAAM,IAAI,CAACC,OAAO,CAACR,SAAS,CAACG,IAAI,CAACG,UAAU,EAAE;MACzDG,UAAU,EAAEP,cAAc;MAC1BQ,UAAU,EAAEP,IAAI,CAACQ,kBAAkB;MACnCC,QAAQ,EAAE,UAAUX,aAAa,KAAKC,cAAc;IACtD,CAAC,CAAC;IAEF,IAAI,CAACK,IAAI,EAAE,OAAO,IAAI;IAEtB,OAAO;MAAEN,aAAa;MAAEM;IAAK,CAAC;EAChC,CACF,CAAC;EAEeM,aAAa,GAAG3B,WAAW,CAAyB,CAAC,CAAC,CAAC,CACpEY,EAAE,CAAC,IAAI,CAACE,SAAS,CAACc,QAAQ,EAAE,CAACf,KAAK,EAAEgB,MAAM,KAAK;IAC9C,IAAI,CAACA,MAAM,EAAE,OAAOhB,KAAK;IACzB,OAAO;MAAE,GAAGA,KAAK;MAAE,CAACgB,MAAM,CAACd,aAAa,GAAGc,MAAM,CAACR;IAAK,CAAC;EAC1D,CAAC,CAAC,CACDX,KAAK,CAAC,IAAI,CAACA,KAAK,EAAE,IAAI,CAACD,UAAU,CAAC;EAErCqB,WAAWA,CAACZ,UAAoC,EAAEa,GAAmB,EAAE;IACrE,IAAI,CAACb,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACI,OAAO,GAAG,IAAIpB,kBAAkB,CAAC;MACpC8B,QAAQ,EAAE;QACRC,GAAG,EAAE5B,eAAe;QACpB6B,SAAS,EAAE9B;MACb,CAAC;MACD+B,SAAS,EAAE,CAAC,IAAIhC,yBAAyB,CAAC;QAAE4B,GAAG,EAAE;UAAEK,gBAAgB,EAAEL,GAAG,CAACM;QAAc;MAAE,CAAC,CAAC;IAC7F,CAAC,CAAC;IAEF,IAAI,CAAC5B,UAAU,CAAC6B,KAAK,CAAC,MAAM,IAAI,CAAChB,OAAO,CAACZ,KAAK,CAAC,CAAC,CAAC;IACjD,IAAI,CAACA,KAAK,CAAC4B,KAAK,CAAC,MAAM,IAAI,CAAChB,OAAO,CAACZ,KAAK,CAAC,CAAC,CAAC;EAC9C;EAEO6B,cAAcA,CAACxB,aAAqB,EAAsB;IAC/D,OAAO,IAAI,CAACY,aAAa,CAACa,QAAQ,CAAC,CAAC,CAACzB,aAAa,CAAC;EACrD;AACF","ignoreList":[]}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { createEffect } from 'effector';
|
|
4
4
|
import { downloadAudioFileRequestGenerator } from "../../helpers.js";
|
|
5
5
|
export class VoiceFileDownloaderModel {
|
|
6
|
-
|
|
6
|
+
constructor(api) {
|
|
7
7
|
this.api = api;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
download = createEffect(async ({
|
|
10
10
|
audioFileId,
|
|
11
11
|
attemptNumber
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createEffect","downloadAudioFileRequestGenerator","VoiceFileDownloaderModel","
|
|
1
|
+
{"version":3,"names":["createEffect","downloadAudioFileRequestGenerator","VoiceFileDownloaderModel","constructor","api","download","audioFileId","attemptNumber","downloadAudio","controller","downloadPromise","collectionItem","audioLoading","audioDownloadPromise","abortDownload","abort"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoiceFileDownloader.model.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,UAAU;AAEvC,SAASC,iCAAiC,QAAQ,kBAAe;AAYjE,OAAO,MAAMC,wBAAwB,CAAC;EAGpCC,WAAWA,CAACC,GAAmB,EAAE;IAC/B,IAAI,CAACA,GAAG,GAAGA,GAAG;EAChB;EAEgBC,QAAQ,GAAGL,YAAY,CACrC,OAAO;IAAEM,WAAW;IAAEC;EAA8B,CAAC,KAA8B;IACjF,MAAM;MAAEC,aAAa;MAAEC;IAAW,CAAC,GAAGR,iCAAiC,CAACK,WAAW,EAAE,IAAI,CAACF,GAAG,CAAC;IAC9F,MAAMM,eAAe,GAAGF,aAAa,CAAC,CAAC;IAEvC,MAAMG,cAA+C,GAAG;MACtDJ,aAAa;MACbD,WAAW;MACXM,YAAY,EAAE,IAAI;MAClBC,oBAAoB,EAAEH,eAAe;MACrCD;IACF,CAAC;IAED,OAAO;MAAEE,cAAc;MAAED;IAAgB,CAAC;EAC5C,CACF,CAAC;EAEeI,aAAa,GAAIL,UAA4B,IAAK;IAChEA,UAAU,EAAEM,KAAK,CAAC,CAAC;EACrB,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,56 +1,86 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { createEvent, restore } from 'effector';
|
|
4
|
+
import { TranscriptionsCollection } from "./TranscriptionsCollection.js";
|
|
5
5
|
import { VoiceFileDownloaderModel } from "./VoiceFileDownloader.model.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { DropdownModel } from "./Dropdown.model.js";
|
|
7
|
+
import { TranslationModel } from "./Translation.model.js";
|
|
8
|
+
import { PlayerModel } from "./Player.model.js";
|
|
9
|
+
import { TranscriptionsDownloaderModel } from "./TranscriptionsDownloader.model.js";
|
|
10
|
+
import { PlaybackController } from "./PlaybackController.js";
|
|
9
11
|
export class VoicePlayerModel {
|
|
10
|
-
collection = new
|
|
11
|
-
|
|
12
|
-
dropdown = new VoiceTranscriptionsDropdownModel();
|
|
12
|
+
collection = new TranscriptionsCollection();
|
|
13
|
+
dropdown = new DropdownModel();
|
|
13
14
|
playerModel = new PlayerModel();
|
|
14
|
-
currentPlayingAttempt = null;
|
|
15
|
-
shouldPreventPlayback = false;
|
|
16
15
|
setCurrentAttempt = createEvent();
|
|
17
16
|
reset = createEvent();
|
|
18
17
|
$currentAttempt = restore(this.setCurrentAttempt, null).reset(this.reset);
|
|
19
18
|
$playerState = this.playerModel.$playerState;
|
|
20
19
|
pauseAudio = this.playerModel.pause;
|
|
21
|
-
|
|
22
|
-
this.shouldPreventPlayback = true;
|
|
23
|
-
this.abortAllDownloads();
|
|
24
|
-
this.playerModel.stop();
|
|
25
|
-
this.currentPlayingAttempt = null;
|
|
26
|
-
this.setCurrentAttempt(null);
|
|
27
|
-
};
|
|
28
|
-
resetPlayer = () => {
|
|
29
|
-
this.shouldPreventPlayback = true;
|
|
30
|
-
this.releaseCollectionResources();
|
|
31
|
-
this.playerModel.stop();
|
|
32
|
-
this.currentPlayingAttempt = null;
|
|
33
|
-
this.setCurrentAttempt(null);
|
|
34
|
-
this.collection.clear();
|
|
35
|
-
};
|
|
20
|
+
seekAudio = this.playerModel.seek;
|
|
36
21
|
constructor(params) {
|
|
37
22
|
this.api = params.api;
|
|
23
|
+
this.downloader = new VoiceFileDownloaderModel(params.api);
|
|
38
24
|
this.loader = new TranscriptionsDownloaderModel(this.collection, params.api);
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
25
|
+
this.translation = new TranslationModel(this.collection, params.api);
|
|
26
|
+
this.playback = new PlaybackController({
|
|
27
|
+
collection: this.collection,
|
|
28
|
+
player: this.playerModel,
|
|
29
|
+
downloader: this.downloader
|
|
43
30
|
});
|
|
31
|
+
this.togglePlayPause = this.playback.togglePlayPause;
|
|
44
32
|
if (params.audios) {
|
|
45
33
|
this.initializeCollectionFromAudios(params.audios);
|
|
46
34
|
}
|
|
47
35
|
this.playerModel.setupAudioMode();
|
|
48
36
|
}
|
|
37
|
+
stopAudio = () => {
|
|
38
|
+
this.playback.halt();
|
|
39
|
+
};
|
|
40
|
+
preloadAudio = attemptNumber => {
|
|
41
|
+
const target = attemptNumber ?? this.$currentAttempt.getState();
|
|
42
|
+
if (target === null) return;
|
|
43
|
+
return this.playback.preloadAudio(target);
|
|
44
|
+
};
|
|
45
|
+
resetPlayer = () => {
|
|
46
|
+
this.playback.releaseResources();
|
|
47
|
+
this.playback.halt();
|
|
48
|
+
this.collection.clear();
|
|
49
|
+
this.translation.clearCache();
|
|
50
|
+
};
|
|
49
51
|
initializeWithAudios(answerAudio) {
|
|
50
|
-
|
|
52
|
+
// Skip clear+rebuild when content matches — re-init mid-playback drops audioUri and races with in-flight togglePlayPause.
|
|
53
|
+
if (this.collectionMatchesAudios(answerAudio)) return;
|
|
51
54
|
this.collection.clear();
|
|
52
55
|
this.initializeCollectionFromAudios(answerAudio);
|
|
53
56
|
}
|
|
57
|
+
collectionMatchesAudios(audios) {
|
|
58
|
+
for (let i = 0; i < audios.length; i++) {
|
|
59
|
+
const audio = audios[i];
|
|
60
|
+
if (!audio.audioFileId) continue;
|
|
61
|
+
const attemptNumber = i + 1;
|
|
62
|
+
const existing = this.collection.get(attemptNumber);
|
|
63
|
+
if (!existing || existing.audioFileId !== audio.audioFileId) return false;
|
|
64
|
+
}
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
isAudioLoading(attemptNumber) {
|
|
68
|
+
return this.collection.get(attemptNumber)?.audioLoading || false;
|
|
69
|
+
}
|
|
70
|
+
getAllAttempts() {
|
|
71
|
+
return this.collection.getAll();
|
|
72
|
+
}
|
|
73
|
+
reinitializePlayer() {
|
|
74
|
+
this.playerModel.reinitialize();
|
|
75
|
+
}
|
|
76
|
+
cleanup() {
|
|
77
|
+
this.playback.releaseResources();
|
|
78
|
+
this.collection.clear();
|
|
79
|
+
this.reset();
|
|
80
|
+
this.dropdown.reset();
|
|
81
|
+
this.translation.reset();
|
|
82
|
+
this.playerModel.release();
|
|
83
|
+
}
|
|
54
84
|
initializeCollectionFromAudios(audios) {
|
|
55
85
|
if (!audios) {
|
|
56
86
|
console.warn('VoicePlayerModel: audios is not provided');
|
|
@@ -70,149 +100,5 @@ export class VoicePlayerModel {
|
|
|
70
100
|
});
|
|
71
101
|
});
|
|
72
102
|
}
|
|
73
|
-
releaseCollectionResources() {
|
|
74
|
-
this.collection.getAll().forEach(item => {
|
|
75
|
-
if (item.controller) {
|
|
76
|
-
this.downloader.abortDownload(item.controller);
|
|
77
|
-
}
|
|
78
|
-
if (item.audioUri?.startsWith('blob:')) {
|
|
79
|
-
try {
|
|
80
|
-
URL.revokeObjectURL(item.audioUri);
|
|
81
|
-
} catch (e) {}
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
abortAllDownloads() {
|
|
86
|
-
this.collection.getAll().forEach(item => {
|
|
87
|
-
if (item.controller && item.audioLoading) {
|
|
88
|
-
this.downloader.abortDownload(item.controller);
|
|
89
|
-
this.collection.update(item.attemptNumber, {
|
|
90
|
-
audioLoading: false,
|
|
91
|
-
controller: undefined,
|
|
92
|
-
audioDownloadPromise: undefined
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
handlePlayAttempt = createEffect(async attemptNumber => {
|
|
98
|
-
this.shouldPreventPlayback = false;
|
|
99
|
-
const item = this.collection.get(attemptNumber);
|
|
100
|
-
if (!item) return;
|
|
101
|
-
if (this.currentPlayingAttempt !== null && this.currentPlayingAttempt !== attemptNumber) {
|
|
102
|
-
this.abortAllDownloads();
|
|
103
|
-
}
|
|
104
|
-
if (this.collection.hasAudio(attemptNumber)) {
|
|
105
|
-
this.playAudioFx(attemptNumber);
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
try {
|
|
109
|
-
this.playerModel.setPlayerState(PlayerState.LOADING);
|
|
110
|
-
const {
|
|
111
|
-
collectionItem,
|
|
112
|
-
downloadPromise
|
|
113
|
-
} = await this.downloader.download({
|
|
114
|
-
audioFileId: item.audioFileId,
|
|
115
|
-
attemptNumber
|
|
116
|
-
});
|
|
117
|
-
if (this.shouldPreventPlayback) {
|
|
118
|
-
collectionItem.controller?.abort();
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.collection.update(attemptNumber, collectionItem);
|
|
122
|
-
const result = await downloadPromise;
|
|
123
|
-
if (this.shouldPreventPlayback) {
|
|
124
|
-
if (result.uri?.startsWith('blob:')) {
|
|
125
|
-
URL.revokeObjectURL(result.uri);
|
|
126
|
-
}
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
this.collection.update(attemptNumber, {
|
|
130
|
-
audioUri: result.uri,
|
|
131
|
-
audioLoading: false,
|
|
132
|
-
audioError: undefined,
|
|
133
|
-
controller: undefined,
|
|
134
|
-
audioDownloadPromise: undefined
|
|
135
|
-
});
|
|
136
|
-
this.playerModel.setPlayerState(PlayerState.IDLE);
|
|
137
|
-
this.playAudioFx(attemptNumber);
|
|
138
|
-
} catch (error) {
|
|
139
|
-
console.error('Audio download error:', error);
|
|
140
|
-
if (error instanceof Error && error.name === 'AbortError') {
|
|
141
|
-
this.playerModel.setPlayerState(PlayerState.IDLE);
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
this.collection.update(attemptNumber, {
|
|
145
|
-
audioLoading: false,
|
|
146
|
-
audioError: error instanceof Error ? error.message : 'Failed to download audio',
|
|
147
|
-
controller: undefined,
|
|
148
|
-
audioDownloadPromise: undefined
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
playAudioFx = createEffect(async attemptNumber => {
|
|
153
|
-
if (this.shouldPreventPlayback) return;
|
|
154
|
-
const item = this.collection.get(attemptNumber);
|
|
155
|
-
if (!item?.audioUri) {
|
|
156
|
-
console.warn('No audio URI available for attempt:', attemptNumber);
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
try {
|
|
160
|
-
if (this.currentPlayingAttempt !== null && this.currentPlayingAttempt !== attemptNumber) {
|
|
161
|
-
this.playerModel.player?.remove();
|
|
162
|
-
}
|
|
163
|
-
if (this.currentPlayingAttempt === attemptNumber && this.playerModel.player?.playing) {
|
|
164
|
-
this.playerModel.pause();
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
if (this.currentPlayingAttempt === attemptNumber && !this.playerModel.player?.playing) {
|
|
168
|
-
this.playerModel.resume();
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
this.currentPlayingAttempt = attemptNumber;
|
|
172
|
-
this.setCurrentAttempt(attemptNumber);
|
|
173
|
-
await this.playerModel.play(item.audioUri);
|
|
174
|
-
} catch (error) {
|
|
175
|
-
console.error('Error playing audio:', error);
|
|
176
|
-
this.playerModel.setPlayerState(PlayerState.IDLE);
|
|
177
|
-
this.collection.update(attemptNumber, {
|
|
178
|
-
audioError: error instanceof Error ? error.message : 'Failed to play audio'
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
isAudioLoading(attemptNumber) {
|
|
183
|
-
return this.collection.get(attemptNumber)?.audioLoading || false;
|
|
184
|
-
}
|
|
185
|
-
getAllAttempts() {
|
|
186
|
-
return this.collection.getAll();
|
|
187
|
-
}
|
|
188
|
-
reinitializePlayer() {
|
|
189
|
-
this.playerModel.reinitialize();
|
|
190
|
-
}
|
|
191
|
-
cleanup() {
|
|
192
|
-
this.releaseCollectionResources();
|
|
193
|
-
this.collection.clear();
|
|
194
|
-
this.currentPlayingAttempt = null;
|
|
195
|
-
this.reset();
|
|
196
|
-
this.loader.reset();
|
|
197
|
-
this.dropdown.reset();
|
|
198
|
-
this.playerModel.release();
|
|
199
|
-
}
|
|
200
|
-
togglePlayPause = attach({
|
|
201
|
-
source: this.playerModel.$playerState,
|
|
202
|
-
mapParams: (attemptNumber, playerState) => ({
|
|
203
|
-
attemptNumber,
|
|
204
|
-
playerState
|
|
205
|
-
}),
|
|
206
|
-
effect: createEffect(({
|
|
207
|
-
attemptNumber,
|
|
208
|
-
playerState
|
|
209
|
-
}) => {
|
|
210
|
-
if (this.currentPlayingAttempt === attemptNumber && playerState === PlayerState.PLAYING) {
|
|
211
|
-
this.pauseAudio();
|
|
212
|
-
} else {
|
|
213
|
-
this.handlePlayAttempt(attemptNumber);
|
|
214
|
-
}
|
|
215
|
-
})
|
|
216
|
-
});
|
|
217
103
|
}
|
|
218
104
|
//# sourceMappingURL=VoicePlayer.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createEvent","restore","TranscriptionsCollection","VoiceFileDownloaderModel","DropdownModel","TranslationModel","PlayerModel","TranscriptionsDownloaderModel","PlaybackController","VoicePlayerModel","collection","dropdown","playerModel","setCurrentAttempt","reset","$currentAttempt","$playerState","pauseAudio","pause","seekAudio","seek","constructor","params","api","downloader","loader","translation","playback","player","togglePlayPause","audios","initializeCollectionFromAudios","setupAudioMode","stopAudio","halt","preloadAudio","attemptNumber","target","getState","resetPlayer","releaseResources","clear","clearCache","initializeWithAudios","answerAudio","collectionMatchesAudios","i","length","audio","audioFileId","existing","get","isAudioLoading","audioLoading","getAllAttempts","getAll","reinitializePlayer","reinitialize","cleanup","release","console","warn","forEach","index","add","_id","hasDrawing","drawing"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoicePlayer.model.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { COLORS } from '@magmamath/react-native-ui';
|
|
5
|
+
import { COLORS, SPACING } from '@magmamath/react-native-ui';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export const VoiceRecordDivider = () => {
|
|
8
8
|
return /*#__PURE__*/_jsx(View, {
|
|
@@ -14,7 +14,7 @@ const styles = StyleSheet.create({
|
|
|
14
14
|
height: 1,
|
|
15
15
|
borderRadius: 1,
|
|
16
16
|
width: 28,
|
|
17
|
-
margin:
|
|
17
|
+
margin: SPACING[200],
|
|
18
18
|
backgroundColor: COLORS.NEUTRAL_6
|
|
19
19
|
}
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","View","React","COLORS","jsx","_jsx","VoiceRecordDivider","style","styles","container","create","height","borderRadius","width","margin","backgroundColor","NEUTRAL_6"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordDivider.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","React","COLORS","SPACING","jsx","_jsx","VoiceRecordDivider","style","styles","container","create","height","borderRadius","width","margin","backgroundColor","NEUTRAL_6"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordDivider.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAE5D,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,oBAAOD,IAAA,CAACL,IAAI;IAACO,KAAK,EAAEC,MAAM,CAACC;EAAU,CAAE,CAAC;AAC1C,CAAC;AAED,MAAMD,MAAM,GAAGT,UAAU,CAACW,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAEX,OAAO,CAAC,GAAG,CAAC;IACpBY,eAAe,EAAEb,MAAM,CAACc;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
export let TranscriptionStatus = /*#__PURE__*/function (TranscriptionStatus) {
|
|
4
|
+
TranscriptionStatus["PENDING"] = "pending";
|
|
5
|
+
TranscriptionStatus["COMPLETED"] = "completed";
|
|
6
|
+
TranscriptionStatus["FAILED"] = "failed";
|
|
7
|
+
return TranscriptionStatus;
|
|
8
|
+
}({});
|
|
3
9
|
export let RecordButtonVariant = /*#__PURE__*/function (RecordButtonVariant) {
|
|
4
10
|
RecordButtonVariant["DEFAULT"] = "default";
|
|
5
11
|
RecordButtonVariant["ADVANCED"] = "advanced";
|
|
6
12
|
return RecordButtonVariant;
|
|
7
13
|
}({});
|
|
14
|
+
export let VoiceTranscriptionVariant = /*#__PURE__*/function (VoiceTranscriptionVariant) {
|
|
15
|
+
VoiceTranscriptionVariant["SMALL"] = "small";
|
|
16
|
+
VoiceTranscriptionVariant["LARGE"] = "large";
|
|
17
|
+
return VoiceTranscriptionVariant;
|
|
18
|
+
}({});
|
|
8
19
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["RecordButtonVariant"],"sourceRoot":"../../../../src","sources":["features/voice/types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["TranscriptionStatus","RecordButtonVariant","VoiceTranscriptionVariant"],"sourceRoot":"../../../../src","sources":["features/voice/types.ts"],"mappings":";;AA8DA,WAAYA,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAqC/B,WAAYC,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAK/B,WAAYC,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -18,4 +18,5 @@ export * from "./features/featureUsage/index.js";
|
|
|
18
18
|
export * from "./features/uiMode/index.js";
|
|
19
19
|
export * from "./features/fluency/index.js";
|
|
20
20
|
export * from "./features/fluency-teacher/index.js";
|
|
21
|
+
export * from "./features/translation/index.js";
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,8BAAqB;AACnC,cAAc,gCAAuB;AACrC,cAAc,+BAAsB;AACpC,cAAc,yBAAgB;AAC9B,cAAc,2BAAkB;AAChC,cAAc,kCAAyB;AACvC,cAAc,4BAAmB;AACjC,cAAc,6BAAoB;AAClC,cAAc,qCAA4B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,8BAAqB;AACnC,cAAc,gCAAuB;AACrC,cAAc,+BAAsB;AACpC,cAAc,yBAAgB;AAC9B,cAAc,2BAAkB;AAChC,cAAc,kCAAyB;AACvC,cAAc,4BAAmB;AACjC,cAAc,6BAAoB;AAClC,cAAc,qCAA4B;AAC1C,cAAc,iCAAwB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorrectAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AASpD,OAAO,EAAuB,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAOxF,eAAO,MAAM,aAAa,4CAA6C,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CorrectAnswer.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AASpD,OAAO,EAAuB,oBAAoB,EAAmB,MAAM,aAAa,CAAA;AAOxF,eAAO,MAAM,aAAa,4CAA6C,oBAAoB,sBAoG1F,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fluency.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/components/Fluency.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Fluency.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/components/Fluency.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,aAAa,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;CAChD,CAAA;AAED,eAAO,MAAM,OAAO,sFAOjB,YAAY,sBA0Bd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMathOperator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/select-math-operator/SelectMathOperator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SelectMathOperator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/select-math-operator/SelectMathOperator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgBzB,eAAO,MAAM,kBAAkB,yBAqC9B,CAAA"}
|
|
@@ -2,18 +2,15 @@ import { FluencyDaysStreakModel } from './FluencyDaysStreakModel';
|
|
|
2
2
|
import { FluencyMatrixModel } from './FluencyMatrixModel';
|
|
3
3
|
import { FluencyApiModel } from './FluencyApiModel';
|
|
4
4
|
import { FluencySolvingModel } from './FluencySolvingModel';
|
|
5
|
-
import { FluencyStatus } from '../shared/fluency.constants';
|
|
6
5
|
import type { FluencyConfig, FluencyModelGateProps, FluencyModelProps } from '../shared/fluency.types';
|
|
7
6
|
export declare class FluencyModel {
|
|
8
7
|
readonly gate: import("effector-react").Gate<FluencyModelGateProps>;
|
|
9
8
|
readonly $config: import("effector").StoreWritable<FluencyConfig | null>;
|
|
10
|
-
readonly $status: import("effector").StoreWritable<FluencyStatus | null>;
|
|
11
9
|
readonly api: FluencyApiModel;
|
|
12
10
|
readonly streak: FluencyDaysStreakModel;
|
|
13
11
|
readonly matrix: FluencyMatrixModel;
|
|
14
12
|
readonly solving: FluencySolvingModel;
|
|
15
13
|
constructor({ api }: FluencyModelProps);
|
|
16
14
|
private init;
|
|
17
|
-
private setupStatusTracking;
|
|
18
15
|
}
|
|
19
16
|
//# sourceMappingURL=FluencyModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencyModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"FluencyModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,KAAK,EAEV,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,yBAAyB,CAAA;AAEhC,qBAAa,YAAY;IACvB,SAAgB,IAAI,uDAAsC;IAC1D,SAAgB,OAAO,yDAA0C;IAEjE,SAAgB,GAAG,EAAE,eAAe,CAAA;IACpC,SAAgB,MAAM,EAAE,sBAAsB,CAAA;IAC9C,SAAgB,MAAM,EAAE,kBAAkB,CAAA;IAC1C,SAAgB,OAAO,EAAE,mBAAmB,CAAA;gBAEhC,EAAE,GAAG,EAAE,EAAE,iBAAiB;IAStC,OAAO,CAAC,IAAI;CAgCb"}
|
|
@@ -40,8 +40,4 @@ export declare const COLOR_FAMILY_PALETTES: Record<FluencyColorFamily, FluencyCo
|
|
|
40
40
|
export declare const FLUENCY_MODES: readonly FluencyModeConfig[];
|
|
41
41
|
export declare const FLUENCY_MODE_PRESETS: Record<FluencyMode, FluencyModePreset>;
|
|
42
42
|
export declare const ONE_DAY_MS = 86400000;
|
|
43
|
-
export declare enum FluencyStatus {
|
|
44
|
-
ERROR = "ERROR",
|
|
45
|
-
EMPTY = "EMPTY"
|
|
46
|
-
}
|
|
47
43
|
//# sourceMappingURL=fluency.constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluency.constants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/shared/fluency.constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEhG,eAAO,MAAM,gBAAgB,IAAI,CAAA;AACjC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,MAIxD,CAAA;AAED,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;CACtB;AAED,oBAAY,mBAAmB;IAC7B,WAAW,IAAI;IACf,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,YAAY,iBAAiB;CAC9B;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAqBjF,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,iBAAiB,EAyBrD,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAE7B,CAAA;AAE3C,eAAO,MAAM,UAAU,WAAa,CAAA
|
|
1
|
+
{"version":3,"file":"fluency.constants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/shared/fluency.constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEhG,eAAO,MAAM,gBAAgB,IAAI,CAAA;AACjC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,MAIxD,CAAA;AAED,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;CACtB;AAED,oBAAY,mBAAmB;IAC7B,WAAW,IAAI;IACf,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,YAAY,iBAAiB;CAC9B;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,oBAAY,YAAY;IACtB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAqBjF,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,iBAAiB,EAyBrD,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAE7B,CAAA;AAE3C,eAAO,MAAM,UAAU,WAAa,CAAA"}
|
|
@@ -9,7 +9,6 @@ type CreateFluencyModeParams = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const createFluencyMode: ({ mode, label, symbol, colorFamily, }: CreateFluencyModeParams) => FluencyModeConfig;
|
|
11
11
|
export declare const buildMatrixGrid: (data: GetMatrixResponse, mode: FluencyMode) => MatrixGrid;
|
|
12
|
-
export declare const allFactsEmpty: (response: GetMatrixResponse) => boolean;
|
|
13
12
|
export declare const generateStreakDates: (stats: GetWeeklyStatsResponse) => StreakStatus[];
|
|
14
13
|
export {};
|
|
15
14
|
//# sourceMappingURL=fluency.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluency.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/shared/fluency.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,WAAW,EAEX,YAAY,EAEb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EAEtB,UAAU,EACX,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,iBAAiB,0CAK3B,uBAAuB,KAAG,iBA4B5B,CAAA;AAED,eAAO,MAAM,eAAe,SAAU,iBAAiB,QAAQ,WAAW,KAAG,UAyD5E,CAAA;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"fluency.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/shared/fluency.helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,WAAW,EAEX,YAAY,EAEb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EAEtB,UAAU,EACX,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,iBAAiB,0CAK3B,uBAAuB,KAAG,iBA4B5B,CAAA;AAED,eAAO,MAAM,eAAe,SAAU,iBAAiB,QAAQ,WAAW,KAAG,UAyD5E,CAAA;AAED,eAAO,MAAM,mBAAmB,UAAW,sBAAsB,mBAchE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PmProgressModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/model/PmProgressModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,KAAK,oBAAoB,GAAG;IAC1B,GAAG,EAAE,kBAAkB,CAAA;CACxB,CAAA;AAED,qBAAa,eAAe;IAC1B,SAAgB,IAAI,qDAAoC;IAExD,SAAgB,GAAG,EAAE,aAAa,CAAA;IAClC,SAAgB,IAAI,EAAE,WAAW,CAAA;IACjC,SAAgB,SAAS,EAAE,gBAAgB,CAAA;IAC3C,SAAgB,QAAQ,EAAE,eAAe,CAAA;IACzC,SAAgB,eAAe,EAAE,sBAAsB,CAAA;IACvD,SAAgB,OAAO,EAAE,kBAAkB,CAAA;gBAE/B,EAAE,GAAG,EAAE,EAAE,oBAAoB;IAWzC,OAAO,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"PmProgressModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/pmProgress/model/PmProgressModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,KAAK,oBAAoB,GAAG;IAC1B,GAAG,EAAE,kBAAkB,CAAA;CACxB,CAAA;AAED,qBAAa,eAAe;IAC1B,SAAgB,IAAI,qDAAoC;IAExD,SAAgB,GAAG,EAAE,aAAa,CAAA;IAClC,SAAgB,IAAI,EAAE,WAAW,CAAA;IACjC,SAAgB,SAAS,EAAE,gBAAgB,CAAA;IAC3C,SAAgB,QAAQ,EAAE,eAAe,CAAA;IACzC,SAAgB,eAAe,EAAE,sBAAsB,CAAA;IACvD,SAAgB,OAAO,EAAE,kBAAkB,CAAA;gBAE/B,EAAE,GAAG,EAAE,EAAE,oBAAoB;IAWzC,OAAO,CAAC,IAAI;CAab"}
|