@magmamath/students-features 1.2.1-rc.39 → 1.2.1-rc.4
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/chatbot/components/ChatInput/ChatInput.js +1 -2
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +1 -2
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
- package/dist/commonjs/features/voice/constants.js +8 -2
- package/dist/commonjs/features/voice/constants.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +16 -5
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +68 -20
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +2 -2
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +5 -0
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/commonjs/features/voice/types.js +6 -0
- package/dist/commonjs/features/voice/types.js.map +1 -1
- package/dist/commonjs/index.js +3 -15
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +0 -24
- package/dist/commonjs/shared/translation/localization/de.json +0 -24
- package/dist/commonjs/shared/translation/localization/en.json +0 -24
- package/dist/commonjs/shared/translation/localization/gb.json +0 -24
- package/dist/commonjs/shared/translation/localization/sct.json +0 -24
- package/dist/commonjs/shared/translation/localization/sw.json +0 -24
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +1 -2
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +1 -2
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +2 -2
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
- package/dist/module/features/voice/constants.js +8 -2
- package/dist/module/features/voice/constants.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecord.js +17 -6
- package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +69 -21
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +2 -2
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js +5 -0
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/module/features/voice/types.js +5 -1
- 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/module/shared/translation/localization/ca.json +0 -24
- package/dist/module/shared/translation/localization/de.json +0 -24
- package/dist/module/shared/translation/localization/en.json +0 -24
- package/dist/module/shared/translation/localization/gb.json +0 -24
- package/dist/module/shared/translation/localization/sct.json +0 -24
- package/dist/module/shared/translation/localization/sw.json +0 -24
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/constants.d.ts +8 -2
- package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +4 -0
- 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/commonjs/shared/translation/constants.d.ts +0 -144
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -48
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/constants.d.ts +8 -2
- package/dist/typescript/module/features/voice/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/types.d.ts +4 -0
- 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/dist/typescript/module/shared/translation/constants.d.ts +0 -144
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -48
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +13 -25
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +1 -2
- package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +1 -2
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +2 -2
- package/src/features/voice/constants.ts +8 -2
- package/src/features/voice/recording/components/VoiceRecord.tsx +26 -5
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +91 -29
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -2
- package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +7 -3
- package/src/features/voice/recording/model/VoiceRecord.model.ts +7 -0
- package/src/features/voice/types.ts +5 -0
- package/src/index.ts +0 -1
- package/src/shared/translation/localization/ca.json +0 -24
- package/src/shared/translation/localization/de.json +0 -24
- package/src/shared/translation/localization/en.json +0 -24
- package/src/shared/translation/localization/gb.json +0 -24
- package/src/shared/translation/localization/sct.json +0 -24
- package/src/shared/translation/localization/sw.json +0 -24
- package/dist/commonjs/features/pmProgress/PmProgress.js +0 -42
- package/dist/commonjs/features/pmProgress/PmProgress.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +0 -24
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js +0 -2
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +0 -44
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js +0 -26
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +0 -87
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +0 -38
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +0 -21
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js +0 -82
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js +0 -49
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js +0 -25
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js +0 -20
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js +0 -79
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/content/PmContent.js +0 -50
- package/dist/commonjs/features/pmProgress/components/content/PmContent.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +0 -216
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js +0 -114
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +0 -70
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +0 -99
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +0 -72
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js +0 -80
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +0 -197
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +0 -140
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +0 -96
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +0 -101
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +0 -134
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +0 -203
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +0 -1
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js +0 -18
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js.map +0 -1
- package/dist/commonjs/features/pmProgress/index.js +0 -64
- package/dist/commonjs/features/pmProgress/index.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js +0 -15
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js +0 -22
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js +0 -18
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +0 -43
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +0 -47
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js +0 -102
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +0 -170
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js +0 -52
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +0 -59
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +0 -217
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js +0 -12
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js.map +0 -1
- package/dist/commonjs/shared/icons/PentagonIcon.js +0 -32
- package/dist/commonjs/shared/icons/PentagonIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/SketchArrowRight.js +0 -33
- package/dist/commonjs/shared/icons/SketchArrowRight.js.map +0 -1
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js +0 -32
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/StarIcon.js +0 -32
- package/dist/commonjs/shared/icons/StarIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/TimerIcon.js +0 -35
- package/dist/commonjs/shared/icons/TimerIcon.js.map +0 -1
- package/dist/module/features/pmProgress/PmProgress.js +0 -36
- package/dist/module/features/pmProgress/PmProgress.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js +0 -17
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/chart.types.js +0 -2
- package/dist/module/features/pmProgress/components/chart/chart.types.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +0 -38
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js +0 -20
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +0 -81
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +0 -32
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +0 -15
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js +0 -76
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js +0 -44
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js +0 -20
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js +0 -15
- package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js +0 -74
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +0 -1
- package/dist/module/features/pmProgress/components/content/PmContent.js +0 -44
- package/dist/module/features/pmProgress/components/content/PmContent.js.map +0 -1
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +0 -209
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +0 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js +0 -107
- package/dist/module/features/pmProgress/components/header/StartButton.js.map +0 -1
- package/dist/module/features/pmProgress/components/insights/PmInsights.js +0 -63
- package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +0 -1
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +0 -94
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +0 -1
- package/dist/module/features/pmProgress/components/insights/StatsCard.js +0 -66
- package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/Fluency.js +0 -74
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/ListCard.js +0 -190
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/ListItem.js +0 -133
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +0 -90
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +0 -1
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +0 -95
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +0 -1
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +0 -128
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +0 -1
- package/dist/module/features/pmProgress/components/standard/StandardTag.js +0 -197
- package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +0 -1
- package/dist/module/features/pmProgress/context/PmProgressContext.js +0 -13
- package/dist/module/features/pmProgress/context/PmProgressContext.js.map +0 -1
- package/dist/module/features/pmProgress/index.js +0 -9
- package/dist/module/features/pmProgress/index.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmHighlightModel.js +0 -10
- package/dist/module/features/pmProgress/model/PmHighlightModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmInsightsModel.js +0 -17
- package/dist/module/features/pmProgress/model/PmInsightsModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmProgressApi.js +0 -13
- package/dist/module/features/pmProgress/model/PmProgressApi.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmProgressModel.js +0 -38
- package/dist/module/features/pmProgress/model/PmProgressModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +0 -42
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js +0 -97
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmTreeModel.js +0 -165
- package/dist/module/features/pmProgress/model/PmTreeModel.js.map +0 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js +0 -47
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +0 -1
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js +0 -56
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +0 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +0 -197
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +0 -1
- package/dist/module/features/pmProgress/shared/pmProgress.types.js +0 -10
- package/dist/module/features/pmProgress/shared/pmProgress.types.js.map +0 -1
- package/dist/module/shared/icons/PentagonIcon.js +0 -24
- package/dist/module/shared/icons/PentagonIcon.js.map +0 -1
- package/dist/module/shared/icons/SketchArrowRight.js +0 -25
- package/dist/module/shared/icons/SketchArrowRight.js.map +0 -1
- package/dist/module/shared/icons/SliceDiamondIcon.js +0 -24
- package/dist/module/shared/icons/SliceDiamondIcon.js.map +0 -1
- package/dist/module/shared/icons/StarIcon.js +0 -24
- package/dist/module/shared/icons/StarIcon.js.map +0 -1
- package/dist/module/shared/icons/TimerIcon.js +0 -27
- package/dist/module/shared/icons/TimerIcon.js.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts +0 -9
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts +0 -4
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts +0 -36
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +0 -9
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +0 -10
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts +0 -11
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +0 -8
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +0 -14
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts +0 -16
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts +0 -10
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +0 -17
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts +0 -11
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts +0 -8
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +0 -31
- 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 -12
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts +0 -8
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts +0 -9
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts +0 -14
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts +0 -7
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts +0 -7
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts +0 -14
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts +0 -17
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts +0 -23
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +0 -102
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts +0 -22
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +0 -25
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +0 -17
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +0 -44
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -66
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts +0 -193
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts +0 -9
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts +0 -4
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts +0 -36
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +0 -9
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +0 -10
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts +0 -11
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +0 -8
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +0 -14
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts +0 -16
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts +0 -10
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +0 -17
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts +0 -11
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts +0 -8
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +0 -31
- 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 -12
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts +0 -8
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts +0 -9
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts +0 -14
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/index.d.ts +0 -7
- package/dist/typescript/module/features/pmProgress/index.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts +0 -7
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts +0 -14
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts +0 -17
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts +0 -23
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +0 -102
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts +0 -22
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +0 -25
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +0 -17
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +0 -44
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -66
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts +0 -193
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +0 -4
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/StarIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +0 -1
- package/src/features/pmProgress/PmProgress.tsx +0 -30
- package/src/features/pmProgress/__tests__/.keep +0 -0
- package/src/features/pmProgress/components/chart/chart.helpers.ts +0 -16
- package/src/features/pmProgress/components/chart/chart.types.ts +0 -37
- package/src/features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx +0 -32
- package/src/features/pmProgress/components/chart/components/SlicesClipPaths.tsx +0 -22
- package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +0 -90
- package/src/features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx +0 -44
- package/src/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx +0 -11
- package/src/features/pmProgress/components/chart/components/layers/SliceFillColor.tsx +0 -88
- package/src/features/pmProgress/components/chart/model/ArcPatternGenerator.ts +0 -48
- package/src/features/pmProgress/components/chart/model/PieChartManager.ts +0 -20
- package/src/features/pmProgress/components/chart/model/SliceHighlight.ts +0 -17
- package/src/features/pmProgress/components/chart/model/SliceShapeGenerator.ts +0 -90
- package/src/features/pmProgress/components/content/PmContent.tsx +0 -44
- package/src/features/pmProgress/components/header/PmProgressHeader.tsx +0 -211
- package/src/features/pmProgress/components/header/StartButton.tsx +0 -141
- package/src/features/pmProgress/components/insights/PmInsights.tsx +0 -65
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +0 -88
- package/src/features/pmProgress/components/insights/StatsCard.tsx +0 -54
- package/src/features/pmProgress/components/list/Fluency.tsx +0 -69
- package/src/features/pmProgress/components/list/ListCard.tsx +0 -230
- package/src/features/pmProgress/components/list/ListItem.tsx +0 -161
- package/src/features/pmProgress/components/list/PmDomainList.tsx +0 -76
- package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +0 -101
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +0 -127
- package/src/features/pmProgress/components/standard/StandardTag.tsx +0 -182
- package/src/features/pmProgress/context/PmProgressContext.tsx +0 -25
- package/src/features/pmProgress/index.ts +0 -6
- package/src/features/pmProgress/model/PmHighlightModel.ts +0 -11
- package/src/features/pmProgress/model/PmInsightsModel.ts +0 -23
- package/src/features/pmProgress/model/PmProgressApi.ts +0 -34
- package/src/features/pmProgress/model/PmProgressModel.ts +0 -48
- package/src/features/pmProgress/model/PmRecommendationsModel.ts +0 -47
- package/src/features/pmProgress/model/PmSolvingFlowModel.ts +0 -134
- package/src/features/pmProgress/model/PmTreeModel.ts +0 -163
- package/src/features/pmProgress/shared/TreeNormalizer.ts +0 -64
- package/src/features/pmProgress/shared/pmProgress.constants.ts +0 -98
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +0 -273
- package/src/features/pmProgress/shared/pmProgress.types.ts +0 -218
- package/src/shared/icons/PentagonIcon.tsx +0 -17
- package/src/shared/icons/SketchArrowRight.tsx +0 -18
- package/src/shared/icons/SliceDiamondIcon.tsx +0 -16
- package/src/shared/icons/StarIcon.tsx +0 -17
- package/src/shared/icons/TimerIcon.tsx +0 -21
|
@@ -57,29 +57,5 @@
|
|
|
57
57
|
"transcriptions": "Transcriptions",
|
|
58
58
|
"attempt": "Attempt {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transcript not available"
|
|
60
|
-
},
|
|
61
|
-
"pmProgress": {
|
|
62
|
-
"title": "Practice & Progress",
|
|
63
|
-
"startButton": "START",
|
|
64
|
-
"nextUp": "Next up!",
|
|
65
|
-
"teacherRecs": "Teacher recommendations",
|
|
66
|
-
"practiceButton": "PRACTICE",
|
|
67
|
-
"stars": "Practice stars",
|
|
68
|
-
"time": "Practice time",
|
|
69
|
-
"thisWeek": "This week",
|
|
70
|
-
"lastWeek": "Last week",
|
|
71
|
-
"allTime": "All time",
|
|
72
|
-
"fluency": "Fluency",
|
|
73
|
-
"andMore": "and {{count}} more...",
|
|
74
|
-
"skillsLeft": "skills left",
|
|
75
|
-
"skillLeft": "skill left",
|
|
76
|
-
"grade": "Grade",
|
|
77
|
-
"gradeK": "K",
|
|
78
|
-
"gradeOther": "Other",
|
|
79
|
-
"loading": "Loading...",
|
|
80
|
-
"allLockedTitle": "All grades are locked",
|
|
81
|
-
"allLockedSubtitle": "Your teacher has locked all grades.\nAsk them to unlock grades so you can start practising.",
|
|
82
|
-
"initErrorTitle": "Something went wrong",
|
|
83
|
-
"initErrorSubtitle": "We couldn't load your progress.\nPlease try again later."
|
|
84
60
|
}
|
|
85
61
|
}
|
|
@@ -57,29 +57,5 @@
|
|
|
57
57
|
"transcriptions": "Transkriptionen",
|
|
58
58
|
"attempt": "Versuch {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transkript nicht verfügbar"
|
|
60
|
-
},
|
|
61
|
-
"pmProgress": {
|
|
62
|
-
"title": "Üben & Fortschritt",
|
|
63
|
-
"startButton": "START",
|
|
64
|
-
"nextUp": "Als Nächstes dran!",
|
|
65
|
-
"teacherRecs": "Empfehlungen der Lehrkraft",
|
|
66
|
-
"practiceButton": "ÜBEN",
|
|
67
|
-
"stars": "Übungssterne",
|
|
68
|
-
"time": "Übungszeit",
|
|
69
|
-
"thisWeek": "Diese Woche",
|
|
70
|
-
"lastWeek": "Letzte Woche",
|
|
71
|
-
"allTime": "Gesamte Zeit",
|
|
72
|
-
"fluency": "Sicherheit",
|
|
73
|
-
"andMore": "und {{count}} weitere...",
|
|
74
|
-
"skillsLeft": "Fähigkeiten übrig",
|
|
75
|
-
"skillLeft": "Fähigkeit übrig",
|
|
76
|
-
"grade": "Jahrgang",
|
|
77
|
-
"gradeK": "Kiga",
|
|
78
|
-
"gradeOther": "Sonstige",
|
|
79
|
-
"loading": "Wird geladen...",
|
|
80
|
-
"allLockedTitle": "Alle Jahrgänge sind gesperrt",
|
|
81
|
-
"allLockedSubtitle": "Deine Lehrkraft hat alle Jahrgänge gesperrt.\nBitte sie, Jahrgänge freizuschalten, damit du mit dem Üben beginnen kannst.",
|
|
82
|
-
"initErrorTitle": "Etwas ist schiefgelaufen",
|
|
83
|
-
"initErrorSubtitle": "Wir konnten deinen Fortschritt nicht laden.\nBitte versuche es später erneut."
|
|
84
60
|
}
|
|
85
61
|
}
|
|
@@ -57,29 +57,5 @@
|
|
|
57
57
|
"transcriptions": "Transcriptions",
|
|
58
58
|
"attempt": "Attempt {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transcript not available"
|
|
60
|
-
},
|
|
61
|
-
"pmProgress": {
|
|
62
|
-
"title": "Practice & Progress",
|
|
63
|
-
"startButton": "START",
|
|
64
|
-
"nextUp": "Next up!",
|
|
65
|
-
"teacherRecs": "Teacher recommendations",
|
|
66
|
-
"practiceButton": "PRACTICE",
|
|
67
|
-
"stars": "Practice stars",
|
|
68
|
-
"time": "Practice time",
|
|
69
|
-
"thisWeek": "This week",
|
|
70
|
-
"lastWeek": "Last week",
|
|
71
|
-
"allTime": "All time",
|
|
72
|
-
"fluency": "Fluency",
|
|
73
|
-
"andMore": "and {{count}} more...",
|
|
74
|
-
"skillsLeft": "skills left",
|
|
75
|
-
"skillLeft": "skill left",
|
|
76
|
-
"grade": "Grade",
|
|
77
|
-
"gradeK": "K",
|
|
78
|
-
"gradeOther": "Other",
|
|
79
|
-
"loading": "Loading...",
|
|
80
|
-
"allLockedTitle": "All grades are locked",
|
|
81
|
-
"allLockedSubtitle": "Your teacher has locked all grades.\nAsk them to unlock grades so you can start practicing.",
|
|
82
|
-
"initErrorTitle": "Something went wrong",
|
|
83
|
-
"initErrorSubtitle": "We couldn't load your progress.\nPlease try again later."
|
|
84
60
|
}
|
|
85
61
|
}
|
|
@@ -57,29 +57,5 @@
|
|
|
57
57
|
"transcriptions": "Transcriptions",
|
|
58
58
|
"attempt": "Attempt {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transcript not available"
|
|
60
|
-
},
|
|
61
|
-
"pmProgress": {
|
|
62
|
-
"title": "Practice & Progress",
|
|
63
|
-
"startButton": "START",
|
|
64
|
-
"nextUp": "Next up!",
|
|
65
|
-
"teacherRecs": "Teacher recommendations",
|
|
66
|
-
"practiceButton": "PRACTICE",
|
|
67
|
-
"stars": "Practice stars",
|
|
68
|
-
"time": "Practice time",
|
|
69
|
-
"thisWeek": "This week",
|
|
70
|
-
"lastWeek": "Last week",
|
|
71
|
-
"allTime": "All time",
|
|
72
|
-
"fluency": "Fluency",
|
|
73
|
-
"andMore": "and {{count}} more...",
|
|
74
|
-
"skillsLeft": "skills left",
|
|
75
|
-
"skillLeft": "skill left",
|
|
76
|
-
"grade": "Year",
|
|
77
|
-
"gradeK": "R",
|
|
78
|
-
"gradeOther": "Other",
|
|
79
|
-
"loading": "Loading...",
|
|
80
|
-
"allLockedTitle": "All years are locked",
|
|
81
|
-
"allLockedSubtitle": "Your teacher has locked all years.\nAsk them to unlock years so you can start practising.",
|
|
82
|
-
"initErrorTitle": "Something went wrong",
|
|
83
|
-
"initErrorSubtitle": "We couldn't load your progress.\nPlease try again later."
|
|
84
60
|
}
|
|
85
61
|
}
|
|
@@ -57,29 +57,5 @@
|
|
|
57
57
|
"transcriptions": "Transcriptions",
|
|
58
58
|
"attempt": "Attempt {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transcript not available"
|
|
60
|
-
},
|
|
61
|
-
"pmProgress": {
|
|
62
|
-
"title": "Practice & Progress",
|
|
63
|
-
"startButton": "START",
|
|
64
|
-
"nextUp": "Next up!",
|
|
65
|
-
"teacherRecs": "Teacher recommendations",
|
|
66
|
-
"practiceButton": "PRACTICE",
|
|
67
|
-
"stars": "Practice stars",
|
|
68
|
-
"time": "Practice time",
|
|
69
|
-
"thisWeek": "This week",
|
|
70
|
-
"lastWeek": "Last week",
|
|
71
|
-
"allTime": "All time",
|
|
72
|
-
"fluency": "Fluency",
|
|
73
|
-
"andMore": "and {{count}} more...",
|
|
74
|
-
"skillsLeft": "skills left",
|
|
75
|
-
"skillLeft": "skill left",
|
|
76
|
-
"grade": "Year",
|
|
77
|
-
"gradeK": "R",
|
|
78
|
-
"gradeOther": "Other",
|
|
79
|
-
"loading": "Loading...",
|
|
80
|
-
"allLockedTitle": "All years are locked",
|
|
81
|
-
"allLockedSubtitle": "Your teacher has locked all years.\nAsk them to unlock years so you can start practising.",
|
|
82
|
-
"initErrorTitle": "Something went wrong",
|
|
83
|
-
"initErrorSubtitle": "We couldn't load your progress.\nPlease try again later."
|
|
84
60
|
}
|
|
85
61
|
}
|
|
@@ -57,29 +57,5 @@
|
|
|
57
57
|
"transcriptions": "Transkriptioner",
|
|
58
58
|
"attempt": "Försök {{number}}",
|
|
59
59
|
"transcriptNotAvailable": "Transkript inte tillgängligt"
|
|
60
|
-
},
|
|
61
|
-
"pmProgress": {
|
|
62
|
-
"title": "Träna & Framsteg",
|
|
63
|
-
"startButton": "STARTA",
|
|
64
|
-
"nextUp": "Nästa!",
|
|
65
|
-
"teacherRecs": "Lärarens rekommendationer",
|
|
66
|
-
"practiceButton": "TRÄNA",
|
|
67
|
-
"stars": "Stjärnor",
|
|
68
|
-
"time": "Träningstid",
|
|
69
|
-
"thisWeek": "Denna vecka",
|
|
70
|
-
"lastWeek": "Förra veckan",
|
|
71
|
-
"allTime": "Totalt",
|
|
72
|
-
"fluency": "Räknefärdighet",
|
|
73
|
-
"andMore": "och {{count}} till...",
|
|
74
|
-
"skillsLeft": "Förmågor kvar",
|
|
75
|
-
"skillLeft": "Förmåga kvar",
|
|
76
|
-
"grade": "Årskurs",
|
|
77
|
-
"gradeK": "F",
|
|
78
|
-
"gradeOther": "Övrigt",
|
|
79
|
-
"loading": "Laddar...",
|
|
80
|
-
"allLockedTitle": "Alla årskurser är låsta",
|
|
81
|
-
"allLockedSubtitle": "Din lärare har låst alla årskurser.\nBe dem att låsa upp så att du kan börja träna.",
|
|
82
|
-
"initErrorTitle": "Något gick fel",
|
|
83
|
-
"initErrorSubtitle": "Vi kunde inte ladda dina framsteg.\nFörsök igen senare."
|
|
84
60
|
}
|
|
85
61
|
}
|
|
@@ -8,7 +8,6 @@ import { useChatModel } from "../../context/ChatBotModelContext.js";
|
|
|
8
8
|
import { ColorScheme } from "../../types/style.types.js";
|
|
9
9
|
import { HintButtonVariant, RequestHintButton } from "./RequestHintButton.js";
|
|
10
10
|
import { FreeTextInputBlock } from "./FreeText/FreeTextInputBlock.js";
|
|
11
|
-
import { SPACING } from '@magmamath/react-native-ui';
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
export const ChatInput = ({
|
|
14
13
|
isHintFeedback,
|
|
@@ -61,7 +60,7 @@ const styles = StyleSheet.create({
|
|
|
61
60
|
width: INPUT_WIDTH,
|
|
62
61
|
alignItems: 'flex-end',
|
|
63
62
|
justifyContent: 'center',
|
|
64
|
-
marginLeft:
|
|
63
|
+
marginLeft: 6
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
66
|
//# sourceMappingURL=ChatInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","StyleSheet","View","INPUT_WIDTH","useStoreMap","useUnit","useChatModel","ColorScheme","HintButtonVariant","RequestHintButton","FreeTextInputBlock","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","StyleSheet","View","INPUT_WIDTH","useStoreMap","useUnit","useChatModel","ColorScheme","HintButtonVariant","RequestHintButton","FreeTextInputBlock","jsx","_jsx","ChatInput","isHintFeedback","hasMessages","colorScheme","Blue","model","alternatives","$alternatives","isTranslated","translation","$isTranslated","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","lastMessageOptions","$currentChatData","messages","lastMessage","at","options","option","length","shouldShowNextHintOption","hints","default","optionLabel","translatedText","text","sendMessage","message","translatedMessage","shouldDisableInput","style","styles","container","children","isOpenChatEnabled","onOptionPress","disabled","onPress","label","variant","DEFAULT","create","width","alignItems","justifyContent","marginLeft"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatInput/ChatInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,oBAAiB;AAC7C,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AACrD,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,WAAW,QAAQ,4BAAyB;AACrD,SAASC,iBAAiB,EAAEC,iBAAiB,QAAQ,wBAAqB;AAC1E,SAASC,kBAAkB,QAAQ,kCAA+B;AAAA,SAAAC,GAAA,IAAAC,IAA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platform, StyleSheet, Text, View } from 'react-native';
|
|
|
5
5
|
import { ColorScheme } from "../../types/style.types.js";
|
|
6
6
|
import { MessageButtonsBlock } from "./MessageButtonsBlock.js";
|
|
7
7
|
import { getSpacerSize } from "./helpers.js";
|
|
8
|
-
import { FONT_FAMILY } from '@magmamath/react-native-ui';
|
|
9
8
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
9
|
const MessageContentWeb = ({
|
|
11
10
|
message,
|
|
@@ -78,7 +77,7 @@ const styles = StyleSheet.create({
|
|
|
78
77
|
flex: 1,
|
|
79
78
|
fontSize: 20,
|
|
80
79
|
fontWeight: 400,
|
|
81
|
-
fontFamily:
|
|
80
|
+
fontFamily: 'Buenos Aires',
|
|
82
81
|
color: '#33334D',
|
|
83
82
|
width: '100%'
|
|
84
83
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","Text","View","ColorScheme","MessageButtonsBlock","getSpacerSize","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","Text","View","ColorScheme","MessageButtonsBlock","getSpacerSize","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MessageContentWeb","message","text","t2sState","variant","colorScheme","Blue","withErrorSpotting","highlightedWordIndex","TTSHighlightRenderer","TTSHighlightComponent","children","style","styles","messageText","highlightedIndex","width","MessageContentMobile","mobileMessageText","MessageContent","select","web","default","create","flex","fontSize","fontWeight","fontFamily","color","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAI/D,SAASC,WAAW,QAAQ,4BAAyB;AAErD,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,aAAa,QAAQ,cAAW;AAAA,SAAAC,GAAA,IAAAC,IA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CAAE;MAAAP,QAAA,GACzDD,qBAAqB,gBACpBf,IAAA,CAACe,qBAAqB;QACpBR,IAAI,EAAEA,IAAK;QACXa,gBAAgB,EAAEP,oBAAoB,IAAI,CAAC,CAAE;QAC7CH,WAAW,EAAEA;MAAY,CAC1B,CAAC,GAEFH,IACD,eACDP,IAAA,CAACL,IAAI;QAACsB,KAAK,EAAE;UAAEI,KAAK,EAAEvB,aAAa,CAACQ,OAAO,EAAEE,QAAQ;QAAE;MAAE,CAAE,CAAC;IAAA,CACxD,CAAC,eACPR,IAAA,CAACH,mBAAmB;MAClBS,OAAO,EAAEA,OAAQ;MACjBE,QAAQ,EAAEA,QAAS;MACnBC,OAAO,EAAEA,OAAQ;MACjBC,WAAW,EAAEA,WAAY;MACzBE,iBAAiB,EAAEA;IAAkB,CACtC,CAAC;EAAA,CACF,CAAC;AAEP,CAAC;AAED,OAAO,MAAMY,cAAc,GAAGhC,QAAQ,CAACiC,MAAM,CAAC;EAC5CC,GAAG,EAAErB,iBAAiB;EACtBsB,OAAO,EAAEL;AACX,CAAC,CAAC;AAEF,MAAMJ,MAAM,GAAGzB,UAAU,CAACmC,MAAM,CAAC;EAC/BT,WAAW,EAAE;IACXU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE,SAAS;IAChBZ,KAAK,EAAE;EACT,CAAC;EACDE,iBAAiB,EAAE;IACjBW,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import { BORDER_RADIUS, COLORS,
|
|
5
|
+
import { BORDER_RADIUS, COLORS, SHADOWS, SPACING } from '@magmamath/react-native-ui';
|
|
6
6
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export const AssessmentScoreCard = ({
|
|
8
8
|
textContent,
|
|
@@ -32,7 +32,7 @@ const styles = StyleSheet.create({
|
|
|
32
32
|
fontSize: 96,
|
|
33
33
|
fontWeight: '700',
|
|
34
34
|
color: COLORS.NEUTRAL_9,
|
|
35
|
-
fontFamily:
|
|
35
|
+
fontFamily: 'Buenos Aires'
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=AssessmentScoreCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","SHADOWS","SPACING","jsxs","_jsxs","jsx","_jsx","AssessmentScoreCard","textContent","solvedAmount","problemsAmount","style","styles","container","children","text","stats","score","create","alignItems","justifyContent","minHeight","minWidth","padding","borderRadius","backgroundColor","NEUTRAL_1","fontSize","fontWeight","color","NEUTRAL_9","fontFamily"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,QAAQ,4BAA4B;AAAA,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AASpF,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,YAAY,GAAG,CAAC;EAChBC,cAAc,GAAG;AACO,CAAC,KAAK;EAC9B,oBACEJ,IAAA,CAACR,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BV,KAAA,CAACP,IAAI;MAACc,KAAK,EAAEC,MAAM,CAACG,IAAK;MAAAD,QAAA,GACtBL,YAAY,EAAC,KAAG,EAACC,cAAc,EAAC,GAAC,EAACF,WAAW,CAACQ,KAAK,EAAEC,KAAK,IAAI,IAAI;IAAA,CAC/D;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGhB,UAAU,CAACsB,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,GAAG;IACdC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAErB,OAAO,CAAC,KAAK,CAAC;IACvBsB,YAAY,EAAEzB,aAAa,CAAC,KAAK,CAAC;IAClC0B,eAAe,EAAEzB,MAAM,CAAC0B,SAAS;IACjC,GAAGzB,OAAO,CAAC,GAAG;EAChB,CAAC;EACDc,IAAI,EAAE;IACJY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE7B,MAAM,CAAC8B,SAAS;IACvBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
export const VOICE_RECORDER_CONTAINER_SIZES = {
|
|
4
|
-
COLLAPSED:
|
|
5
|
-
|
|
4
|
+
COLLAPSED: {
|
|
5
|
+
default: 61,
|
|
6
|
+
advanced: 52
|
|
7
|
+
},
|
|
8
|
+
EXPANDED: {
|
|
9
|
+
default: 152,
|
|
10
|
+
advanced: 136
|
|
11
|
+
}
|
|
6
12
|
};
|
|
7
13
|
export const VOICE_RECORDER_MAX_DURATION_MS = 60000; // 1 minute
|
|
8
14
|
export const VOICE_RECORDER_MIN_DURATION_MS = 300;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VOICE_RECORDER_CONTAINER_SIZES","COLLAPSED","EXPANDED","VOICE_RECORDER_MAX_DURATION_MS","VOICE_RECORDER_MIN_DURATION_MS","VoiceRecorderState","DROPDOWN_MAX_CONTENT_HEIGHT","TRANSCRIPT_RETRY_INTERVAL_MS","TRANSCRIPT_MAX_RETRIES","NO_AUDIO_BE_MESSAGE"],"sourceRoot":"../../../../src","sources":["features/voice/constants.ts"],"mappings":";;AAAA,OAAO,MAAMA,8BAA8B,GAAG;EAC5CC,SAAS,EAAE,EAAE;
|
|
1
|
+
{"version":3,"names":["VOICE_RECORDER_CONTAINER_SIZES","COLLAPSED","default","advanced","EXPANDED","VOICE_RECORDER_MAX_DURATION_MS","VOICE_RECORDER_MIN_DURATION_MS","VoiceRecorderState","DROPDOWN_MAX_CONTENT_HEIGHT","TRANSCRIPT_RETRY_INTERVAL_MS","TRANSCRIPT_MAX_RETRIES","NO_AUDIO_BE_MESSAGE"],"sourceRoot":"../../../../src","sources":["features/voice/constants.ts"],"mappings":";;AAAA,OAAO,MAAMA,8BAA8B,GAAG;EAC5CC,SAAS,EAAE;IACTC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDC,QAAQ,EAAE;IACRF,OAAO,EAAE,GAAG;IACZC,QAAQ,EAAE;EACZ;AACF,CAAC;AACD,OAAO,MAAME,8BAA8B,GAAG,KAAK,EAAC;AACpD,OAAO,MAAMC,8BAA8B,GAAG,GAAG;AACjD,WAAYC,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAK9B,OAAO,MAAMC,2BAA2B,GAAG,GAAG;AAC9C,OAAO,MAAMC,4BAA4B,GAAG,IAAI;AAChD,OAAO,MAAMC,sBAAsB,GAAG,EAAE;AACxC,OAAO,MAAMC,mBAAmB,GAAG,UAAU","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
4
|
import { VoiceRecordButton } from "./VoiceRecordButton.js";
|
|
5
5
|
import React, { useEffect } from 'react';
|
|
6
|
-
import { COLORS, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
+
import { BORDER_RADIUS, COLORS, SPACING } from '@magmamath/react-native-ui';
|
|
7
7
|
import { VoiceRecordDeleteButton } from "./VoiceRecordDeleteButton.js";
|
|
8
8
|
import { VoiceRecordDivider } from "./VoiceRecordDivider.js";
|
|
9
9
|
import { VoiceRecordTimer } from "./VoiceRecordTimer.js";
|
|
@@ -11,6 +11,7 @@ import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
|
11
11
|
import { useVoiceRecorder } from "../hooks/useVoiceRecorder.js";
|
|
12
12
|
import { useVoiceRecorderAnimation } from "../hooks/useVoiceRecorderAnimation.js";
|
|
13
13
|
import { useUnit } from 'effector-react';
|
|
14
|
+
import { RecordButtonVariant } from "../../types.js";
|
|
14
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
16
|
export const VoiceRecord = ({
|
|
16
17
|
style,
|
|
@@ -20,16 +21,17 @@ export const VoiceRecord = ({
|
|
|
20
21
|
recorderState
|
|
21
22
|
} = useVoiceRecorder(model);
|
|
22
23
|
const [isExpanded, isDisabled] = useUnit([model.$isExpanded, model.$isButtonDisabled]);
|
|
24
|
+
const recordButtonVariant = model.recordButtonVariant;
|
|
23
25
|
const {
|
|
24
26
|
containerAnimatedStyle
|
|
25
|
-
} = useVoiceRecorderAnimation(isExpanded);
|
|
27
|
+
} = useVoiceRecorderAnimation(isExpanded, recordButtonVariant);
|
|
26
28
|
useEffect(() => {
|
|
27
29
|
return () => {
|
|
28
30
|
model.cleanup();
|
|
29
31
|
};
|
|
30
32
|
}, [model]);
|
|
31
33
|
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
32
|
-
style: [styles.container, style, containerAnimatedStyle],
|
|
34
|
+
style: [styles.container, recordButtonVariant && styles.advancedVariantContainer, style, containerAnimatedStyle],
|
|
33
35
|
children: [/*#__PURE__*/_jsx(VoiceRecordButton, {
|
|
34
36
|
model: model
|
|
35
37
|
}), isExpanded && /*#__PURE__*/_jsxs(Animated.View, {
|
|
@@ -37,7 +39,7 @@ export const VoiceRecord = ({
|
|
|
37
39
|
exiting: FadeOut,
|
|
38
40
|
style: styles.expendedContainer,
|
|
39
41
|
children: [/*#__PURE__*/_jsx(VoiceRecordTimer, {
|
|
40
|
-
style: styles.timer,
|
|
42
|
+
style: [styles.timer, recordButtonVariant === RecordButtonVariant.ADVANCED && styles.advancedVariantTimer],
|
|
41
43
|
model: model,
|
|
42
44
|
recordingFileDurationMs: recorderState.durationMillis
|
|
43
45
|
}), /*#__PURE__*/_jsx(VoiceRecordDivider, {}), /*#__PURE__*/_jsx(VoiceRecordDeleteButton, {
|
|
@@ -54,12 +56,21 @@ const styles = StyleSheet.create({
|
|
|
54
56
|
paddingBottom: 6,
|
|
55
57
|
backgroundColor: COLORS.NEUTRAL_3,
|
|
56
58
|
borderRadius: 32,
|
|
57
|
-
boxShadow: '0 1px 3px 0 rgba(51, 51, 51, 0.10), 0 0 1px 0 rgba(51, 51, 51, 0.40)'
|
|
58
|
-
|
|
59
|
+
boxShadow: '0 1px 3px 0 rgba(51, 51, 51, 0.10), 0 0 1px 0 rgba(51, 51, 51, 0.40)'
|
|
60
|
+
},
|
|
61
|
+
advancedVariantContainer: {
|
|
62
|
+
borderRadius: BORDER_RADIUS[300],
|
|
63
|
+
padding: 0
|
|
59
64
|
},
|
|
60
65
|
timer: {
|
|
61
66
|
marginTop: SPACING[400]
|
|
62
67
|
},
|
|
68
|
+
defaultTimer: {
|
|
69
|
+
marginTop: SPACING[300]
|
|
70
|
+
},
|
|
71
|
+
advancedVariantTimer: {
|
|
72
|
+
marginTop: SPACING[150]
|
|
73
|
+
},
|
|
63
74
|
expendedContainer: {
|
|
64
75
|
alignItems: 'center'
|
|
65
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","VoiceRecordButton","React","useEffect","COLORS","SPACING","VoiceRecordDeleteButton","VoiceRecordDivider","VoiceRecordTimer","Animated","FadeIn","FadeOut","useVoiceRecorder","useVoiceRecorderAnimation","useUnit","jsx","_jsx","jsxs","_jsxs","VoiceRecord","style","model","recorderState","isExpanded","isDisabled","$isExpanded","$isButtonDisabled","containerAnimatedStyle","cleanup","View","styles","container","children","entering","exiting","expendedContainer","timer","recordingFileDurationMs","durationMillis","onPress","events","deleteRecord","create","alignItems","padding","paddingBottom","backgroundColor","NEUTRAL_3","borderRadius","boxShadow","
|
|
1
|
+
{"version":3,"names":["StyleSheet","VoiceRecordButton","React","useEffect","BORDER_RADIUS","COLORS","SPACING","VoiceRecordDeleteButton","VoiceRecordDivider","VoiceRecordTimer","Animated","FadeIn","FadeOut","useVoiceRecorder","useVoiceRecorderAnimation","useUnit","RecordButtonVariant","jsx","_jsx","jsxs","_jsxs","VoiceRecord","style","model","recorderState","isExpanded","isDisabled","$isExpanded","$isButtonDisabled","recordButtonVariant","containerAnimatedStyle","cleanup","View","styles","container","advancedVariantContainer","children","entering","exiting","expendedContainer","timer","ADVANCED","advancedVariantTimer","recordingFileDurationMs","durationMillis","onPress","events","deleteRecord","create","alignItems","padding","paddingBottom","backgroundColor","NEUTRAL_3","borderRadius","boxShadow","marginTop","defaultTimer"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecord.tsx"],"mappings":";;AAAA,SAA+BA,UAAU,QAAQ,cAAc;AAC/D,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,OAAOC,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,aAAa,EAAEC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AAC3E,SAASC,uBAAuB,QAAQ,8BAA2B;AACnE,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,OAAOC,QAAQ,IAAIC,MAAM,EAAEC,OAAO,QAAQ,yBAAyB;AAEnE,SAASC,gB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Kb,mBAAmB,CAACyB,QAAQ,IAAIR,MAAM,CAACS,oBAAoB,CACnF;QACFnB,KAAK,EAAEA,KAAM;QACboB,uBAAuB,EAAEnB,aAAa,CAACoB;MAAe,CACvD,CAAC,eACF1B,IAAA,CAACV,kBAAkB,IAAE,CAAC,eACtBU,IAAA,CAACX,uBAAuB;QAACmB,UAAU,EAAEA,UAAW;QAACmB,OAAO,EAAEtB,KAAK,CAACuB,MAAM,CAACC;MAAa,CAAE,CAAC;IAAA,CAC1E,CAChB;EAAA,CACY,CAAC;AAEpB,CAAC;AAED,MAAMd,MAAM,GAAGjC,UAAU,CAACgD,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CAAC;IACVC,aAAa,EAAE,CAAC;IAChBC,eAAe,EAAE/C,MAAM,CAACgD,SAAS;IACjCC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACDpB,wBAAwB,EAAE;IACxBmB,YAAY,EAAElD,aAAa,CAAC,GAAG,CAAC;IAChC8C,OAAO,EAAE;EACX,CAAC;EACDV,KAAK,EAAE;IACLgB,SAAS,EAAElD,OAAO,CAAC,GAAG;EACxB,CAAC;EACDmD,YAAY,EAAE;IACZD,SAAS,EAAElD,OAAO,CAAC,GAAG;EACxB,CAAC;EACDoC,oBAAoB,EAAE;IACpBc,SAAS,EAAElD,OAAO,CAAC,GAAG;EACxB,CAAC;EACDiC,iBAAiB,EAAE;IACjBU,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React
|
|
4
|
-
import { Button, ButtonColor, ButtonSize, ButtonVariant, IS_WEB } from '@magmamath/react-native-ui';
|
|
5
|
-
import { Pressable } from 'react-native';
|
|
6
|
-
import { MicrophoneIcon, CheckIcon } from '@magmamath/react-native-ui';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { BORDER_RADIUS, Button, ButtonColor, ButtonSize, ButtonVariant, CheckIcon, COLORS, IS_WEB, MicrophoneIcon } from '@magmamath/react-native-ui';
|
|
5
|
+
import { Pressable, StyleSheet, View } from 'react-native';
|
|
7
6
|
import { useUnit } from 'effector-react';
|
|
8
7
|
import { VoiceRecorderState } from "../../constants.js";
|
|
9
8
|
import { useText } from "../../../../shared/translation/index.js";
|
|
9
|
+
import { RecordButtonVariant } from "../../types.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
const defaultButtonStyles = {
|
|
12
|
+
button: {
|
|
13
|
+
width: 50,
|
|
14
|
+
height: 50
|
|
15
|
+
}
|
|
16
|
+
};
|
|
11
17
|
export const VoiceRecordButton = ({
|
|
12
|
-
style,
|
|
13
18
|
model
|
|
14
19
|
}) => {
|
|
15
20
|
const t = useText();
|
|
@@ -17,31 +22,30 @@ export const VoiceRecordButton = ({
|
|
|
17
22
|
const voiceRecordState = useUnit(model.recorderModel.$voiceRecordState);
|
|
18
23
|
const isButtonDisabled = useUnit(model.$isButtonDisabled);
|
|
19
24
|
const isInitializing = useUnit(model.initializeRecording.pending);
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
height: 50
|
|
25
|
-
}, style?.button],
|
|
26
|
-
container: [style?.container],
|
|
27
|
-
text: [style?.text]
|
|
28
|
-
};
|
|
29
|
-
}, [style]);
|
|
25
|
+
const isRecording = voiceRecordState === VoiceRecorderState.RECORDING;
|
|
26
|
+
const isIdle = voiceRecordState === VoiceRecorderState.IDLE;
|
|
27
|
+
const hasInputs = availableInputs.length > 0;
|
|
28
|
+
const disabled = isButtonDisabled || !hasInputs;
|
|
30
29
|
return /*#__PURE__*/_jsx(Pressable, {
|
|
31
30
|
onPressIn: e => {
|
|
32
|
-
if (
|
|
31
|
+
if (hasInputs) return;
|
|
33
32
|
e.preventDefault();
|
|
34
33
|
model.notification.warning(t('voice.noMicrophoneFound'));
|
|
35
34
|
},
|
|
36
|
-
pointerEvents: !
|
|
37
|
-
children: /*#__PURE__*/_jsx(
|
|
38
|
-
|
|
35
|
+
pointerEvents: !hasInputs || isInitializing ? 'box-only' : 'auto',
|
|
36
|
+
children: model.recordButtonVariant === RecordButtonVariant.ADVANCED ? /*#__PURE__*/_jsx(AdvancedButton, {
|
|
37
|
+
isRecording: isRecording,
|
|
38
|
+
isIdle: isIdle,
|
|
39
|
+
disabled: disabled,
|
|
40
|
+
onPressIn: () => model.recorderButtonHandler()
|
|
41
|
+
}) : /*#__PURE__*/_jsx(Button, {
|
|
42
|
+
disabled: disabled,
|
|
39
43
|
onPressIn: () => model.recorderButtonHandler(),
|
|
40
|
-
style:
|
|
44
|
+
style: defaultButtonStyles,
|
|
41
45
|
size: ButtonSize.LARGE,
|
|
42
46
|
variant: ButtonVariant.SECONDARY,
|
|
43
47
|
colorScheme: ButtonColor.WHITE,
|
|
44
|
-
icon:
|
|
48
|
+
icon: isRecording ? /*#__PURE__*/_jsx(CheckIcon, {
|
|
45
49
|
size: 25
|
|
46
50
|
}) : /*#__PURE__*/_jsx(MicrophoneIcon, {
|
|
47
51
|
style: IS_WEB ? {
|
|
@@ -54,4 +58,48 @@ export const VoiceRecordButton = ({
|
|
|
54
58
|
})
|
|
55
59
|
});
|
|
56
60
|
};
|
|
61
|
+
const AdvancedButton = ({
|
|
62
|
+
isRecording,
|
|
63
|
+
isIdle,
|
|
64
|
+
disabled,
|
|
65
|
+
onPressIn
|
|
66
|
+
}) => /*#__PURE__*/_jsx(Pressable, {
|
|
67
|
+
style: styles.advancedButtonContainer,
|
|
68
|
+
onPressIn: onPressIn,
|
|
69
|
+
disabled: disabled,
|
|
70
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
71
|
+
style: [styles.advancedIconContainer, !isIdle && {
|
|
72
|
+
borderRadius: 32,
|
|
73
|
+
backgroundColor: COLORS.PRIMARY_BLUE
|
|
74
|
+
}],
|
|
75
|
+
children: isRecording ? /*#__PURE__*/_jsx(CheckIcon, {
|
|
76
|
+
size: 18,
|
|
77
|
+
color: COLORS.NEUTRAL_1
|
|
78
|
+
}) : /*#__PURE__*/_jsx(MicrophoneIcon, {
|
|
79
|
+
style: {
|
|
80
|
+
width: 14,
|
|
81
|
+
height: 19
|
|
82
|
+
},
|
|
83
|
+
color: isIdle ? COLORS.NEUTRAL_9 : COLORS.NEUTRAL_1
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
const styles = StyleSheet.create({
|
|
88
|
+
advancedButtonContainer: {
|
|
89
|
+
width: 52,
|
|
90
|
+
height: 52,
|
|
91
|
+
backgroundColor: 'white',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
justifyContent: 'center',
|
|
94
|
+
borderRadius: BORDER_RADIUS[300],
|
|
95
|
+
boxShadow: '0 0 1px 0 rgba(51, 51, 51, 0.20), 0 3px 10px 0 rgba(51, 51, 51, 0.16)'
|
|
96
|
+
},
|
|
97
|
+
advancedIconContainer: {
|
|
98
|
+
width: 36,
|
|
99
|
+
height: 36,
|
|
100
|
+
borderRadius: BORDER_RADIUS[300],
|
|
101
|
+
justifyContent: 'center',
|
|
102
|
+
alignItems: 'center'
|
|
103
|
+
}
|
|
104
|
+
});
|
|
57
105
|
//# sourceMappingURL=VoiceRecordButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","BORDER_RADIUS","Button","ButtonColor","ButtonSize","ButtonVariant","CheckIcon","COLORS","IS_WEB","MicrophoneIcon","Pressable","StyleSheet","View","useUnit","VoiceRecorderState","useText","RecordButtonVariant","jsx","_jsx","defaultButtonStyles","button","width","height","VoiceRecordButton","model","t","availableInputs","recorderModel","$availableInputs","voiceRecordState","$voiceRecordState","isButtonDisabled","$isButtonDisabled","isInitializing","initializeRecording","pending","isRecording","RECORDING","isIdle","IDLE","hasInputs","length","disabled","onPressIn","e","preventDefault","notification","warning","pointerEvents","children","recordButtonVariant","ADVANCED","AdvancedButton","recorderButtonHandler","style","size","LARGE","variant","SECONDARY","colorScheme","WHITE","icon","minWidth","minHeight","styles","advancedButtonContainer","advancedIconContainer","borderRadius","backgroundColor","PRIMARY_BLUE","color","NEUTRAL_1","NEUTRAL_9","create","alignItems","justifyContent","boxShadow"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,aAAa,EACbC,MAAM,EACNC,WAAW,EACXC,UAAU,EAEVC,aAAa,EACbC,SAAS,EACTC,MAAM,EACNC,MAAM,EACNC,cAAc,QACT,4BAA4B;AACnC,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE1D,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,kBAAkB,QAAQ,oBAAiB;AACpD,SAASC,OAAO,QAAQ,yCAAgC;AACxD,SAASC,mBAAmB,QAAQ,gBAAa;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMjD,MAAMC,mBAAgC,GAAG;EACvCC,MAAM,EAAE;IACNC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV;AACF,CAAC;AAED,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC;AAA8B,CAAC,KAAK;EACtE,MAAMC,CAAC,GAAGV,OAAO,CAAC,CAAC;EAEnB,MAAMW,eAAe,GAAGb,OAAO,CAACW,KAAK,CAACG,aAAa,CAACC,gBAAgB,CAAC;EACrE,MAAMC,gBAAgB,GAAGhB,OAAO,CAACW,KAAK,CAACG,aAAa,CAACG,iBAAiB,CAAC;EACvE,MAAMC,gBAAgB,GAAGlB,OAAO,CAACW,KAAK,CAACQ,iBAAiB,CAAC;EACzD,MAAMC,cAAc,GAAGpB,OAAO,CAACW,KAAK,CAACU,mBAAmB,CAACC,OAAO,CAAC;EAEjE,MAAMC,WAAW,GAAGP,gBAAgB,KAAKf,kBAAk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ElE,aAAa,CAAC,GAAG,CAAC;IAChC0E,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { useAnimatedStyle, withTiming } from 'react-native-reanimated';
|
|
4
4
|
import { VOICE_RECORDER_CONTAINER_SIZES } from "../../constants.js";
|
|
5
|
-
export const useVoiceRecorderAnimation = isExpanded => {
|
|
5
|
+
export const useVoiceRecorderAnimation = (isExpanded, recordButtonVariant) => {
|
|
6
6
|
const containerAnimatedStyle = useAnimatedStyle(() => {
|
|
7
7
|
return {
|
|
8
|
-
height: withTiming(isExpanded ? VOICE_RECORDER_CONTAINER_SIZES.EXPANDED : VOICE_RECORDER_CONTAINER_SIZES.COLLAPSED, {
|
|
8
|
+
height: withTiming(isExpanded ? VOICE_RECORDER_CONTAINER_SIZES.EXPANDED[recordButtonVariant] : VOICE_RECORDER_CONTAINER_SIZES.COLLAPSED[recordButtonVariant], {
|
|
9
9
|
duration: 280
|
|
10
10
|
})
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedStyle","withTiming","VOICE_RECORDER_CONTAINER_SIZES","useVoiceRecorderAnimation","isExpanded","containerAnimatedStyle","height","EXPANDED","COLLAPSED","duration"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/hooks/useVoiceRecorderAnimation.ts"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,UAAU,QAAQ,yBAAyB;AACtE,SAASC,8BAA8B,QAAQ,oBAAiB;
|
|
1
|
+
{"version":3,"names":["useAnimatedStyle","withTiming","VOICE_RECORDER_CONTAINER_SIZES","useVoiceRecorderAnimation","isExpanded","recordButtonVariant","containerAnimatedStyle","height","EXPANDED","COLLAPSED","duration"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/hooks/useVoiceRecorderAnimation.ts"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,UAAU,QAAQ,yBAAyB;AACtE,SAASC,8BAA8B,QAAQ,oBAAiB;AAGhE,OAAO,MAAMC,yBAAyB,GAAGA,CACvCC,UAAmB,EACnBC,mBAAwC,KACrC;EACH,MAAMC,sBAAsB,GAAGN,gBAAgB,CAAC,MAAM;IACpD,OAAO;MACLO,MAAM,EAAEN,UAAU,CAChBG,UAAU,GACNF,8BAA8B,CAACM,QAAQ,CAACH,mBAAmB,CAAC,GAC5DH,8BAA8B,CAACO,SAAS,CAACJ,mBAAmB,CAAC,EACjE;QACEK,QAAQ,EAAE;MACZ,CACF;IACF,CAAC;EACH,CAAC,EAAE,CAACN,UAAU,CAAC,CAAC;EAEhB,OAAO;IAAEE;EAAuB,CAAC;AACnC,CAAC","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ import { RecorderModel } from "./Recorder.model.js";
|
|
|
5
5
|
import { VoiceRecordsCollection } from "./VoiceRecordCollection.js";
|
|
6
6
|
import { UploaderModel } from "./Uploader.model.js";
|
|
7
7
|
import { VoiceRecorderState } from "../../constants.js";
|
|
8
|
+
import { RecordButtonVariant } from "../../types.js";
|
|
8
9
|
import { ensureRecordingPermissions, getAvailableInputs } from "../../helpers.js";
|
|
9
10
|
import { VOICE_RECORDER_MIN_DURATION_MS } from "../../constants.js";
|
|
10
11
|
import { t } from "../../../../shared/translation/index.js";
|
|
@@ -13,6 +14,7 @@ export class VoiceRecordModel {
|
|
|
13
14
|
collection = new VoiceRecordsCollection();
|
|
14
15
|
uploader = new UploaderModel();
|
|
15
16
|
shouldDiscardRecording = false;
|
|
17
|
+
recordButtonVariant = RecordButtonVariant.DEFAULT;
|
|
16
18
|
setCurrentKey = createEvent();
|
|
17
19
|
setCurrentRecord = createEvent();
|
|
18
20
|
reset = createEvent();
|
|
@@ -28,6 +30,9 @@ export class VoiceRecordModel {
|
|
|
28
30
|
deleteAudioRecord = createEffect(async audioFileId => {
|
|
29
31
|
await this.api.deleteAudioFile(audioFileId);
|
|
30
32
|
});
|
|
33
|
+
setRecordButtonVariant = createEffect(variant => {
|
|
34
|
+
this.recordButtonVariant = variant;
|
|
35
|
+
});
|
|
31
36
|
deleteCurrentRecording = attach({
|
|
32
37
|
source: this.$currentKey,
|
|
33
38
|
mapParams: (props, currentKey) => ({
|