@magmamath/students-features 1.3.4-rc.2 → 1.3.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 +2 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +2 -1
- 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/pmProgress/PmProgress.js +42 -0
- package/dist/commonjs/features/pmProgress/PmProgress.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +24 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js +2 -0
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +44 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js +26 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +91 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +38 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +21 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js +55 -0
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js +49 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js +23 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js +79 -0
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/content/PmContent.js +50 -0
- package/dist/commonjs/features/pmProgress/components/content/PmContent.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/header/NextUp.js +127 -0
- package/dist/commonjs/features/pmProgress/components/header/NextUp.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +133 -0
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js +126 -0
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +70 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +99 -0
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +72 -0
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js +82 -0
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +207 -0
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +139 -0
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +96 -0
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +101 -0
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +134 -0
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -0
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +203 -0
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -0
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js +18 -0
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js.map +1 -0
- package/dist/commonjs/features/pmProgress/index.js +64 -0
- package/dist/commonjs/features/pmProgress/index.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js +15 -0
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js +22 -0
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js +18 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +43 -0
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +47 -0
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js +104 -0
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +176 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js +52 -0
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +65 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +234 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js +12 -0
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js.map +1 -0
- package/dist/commonjs/features/voice/constants.js +3 -13
- package/dist/commonjs/features/voice/constants.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +5 -19
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +20 -71
- 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 +3 -3
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +0 -5
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/commonjs/features/voice/types.js +0 -6
- package/dist/commonjs/features/voice/types.js.map +1 -1
- package/dist/commonjs/index.js +15 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/icons/MenuIcon.js +30 -0
- package/dist/commonjs/shared/icons/MenuIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/PentagonIcon.js +29 -0
- package/dist/commonjs/shared/icons/PentagonIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/SketchArrowRight.js +33 -0
- package/dist/commonjs/shared/icons/SketchArrowRight.js.map +1 -0
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js +29 -0
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/StarIcon.js +32 -0
- package/dist/commonjs/shared/icons/StarIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/TimerIcon.js +35 -0
- package/dist/commonjs/shared/icons/TimerIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/localization/ca.json +24 -0
- package/dist/commonjs/shared/translation/localization/de.json +24 -0
- package/dist/commonjs/shared/translation/localization/en.json +24 -0
- package/dist/commonjs/shared/translation/localization/gb.json +24 -0
- package/dist/commonjs/shared/translation/localization/sct.json +24 -0
- package/dist/commonjs/shared/translation/localization/sw.json +24 -0
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +2 -1
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +2 -1
- 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/pmProgress/PmProgress.js +36 -0
- package/dist/module/features/pmProgress/PmProgress.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js +17 -0
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/chart.types.js +2 -0
- package/dist/module/features/pmProgress/components/chart/chart.types.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +38 -0
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js +20 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +85 -0
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +32 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +15 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js +49 -0
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js +44 -0
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js +18 -0
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js.map +1 -0
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js +74 -0
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +1 -0
- package/dist/module/features/pmProgress/components/content/PmContent.js +44 -0
- package/dist/module/features/pmProgress/components/content/PmContent.js.map +1 -0
- package/dist/module/features/pmProgress/components/header/NextUp.js +121 -0
- package/dist/module/features/pmProgress/components/header/NextUp.js.map +1 -0
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +126 -0
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +1 -0
- package/dist/module/features/pmProgress/components/header/StartButton.js +119 -0
- package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/PmInsights.js +63 -0
- package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +94 -0
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -0
- package/dist/module/features/pmProgress/components/insights/StatsCard.js +66 -0
- package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/Fluency.js +76 -0
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/ListCard.js +200 -0
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/ListItem.js +132 -0
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -0
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +90 -0
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -0
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +95 -0
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -0
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +128 -0
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -0
- package/dist/module/features/pmProgress/components/standard/StandardTag.js +197 -0
- package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -0
- package/dist/module/features/pmProgress/context/PmProgressContext.js +13 -0
- package/dist/module/features/pmProgress/context/PmProgressContext.js.map +1 -0
- package/dist/module/features/pmProgress/index.js +9 -0
- package/dist/module/features/pmProgress/index.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmHighlightModel.js +10 -0
- package/dist/module/features/pmProgress/model/PmHighlightModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmInsightsModel.js +17 -0
- package/dist/module/features/pmProgress/model/PmInsightsModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmProgressApi.js +13 -0
- package/dist/module/features/pmProgress/model/PmProgressApi.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmProgressModel.js +38 -0
- package/dist/module/features/pmProgress/model/PmProgressModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +42 -0
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js +99 -0
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js +171 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js.map +1 -0
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js +47 -0
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js +62 -0
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +214 -0
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -0
- package/dist/module/features/pmProgress/shared/pmProgress.types.js +8 -0
- package/dist/module/features/pmProgress/shared/pmProgress.types.js.map +1 -0
- package/dist/module/features/voice/constants.js +2 -12
- package/dist/module/features/voice/constants.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecord.js +6 -20
- package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +22 -73
- 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 +3 -3
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js +0 -5
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/module/features/voice/types.js +1 -5
- 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/module/shared/icons/MenuIcon.js +22 -0
- package/dist/module/shared/icons/MenuIcon.js.map +1 -0
- package/dist/module/shared/icons/PentagonIcon.js +21 -0
- package/dist/module/shared/icons/PentagonIcon.js.map +1 -0
- package/dist/module/shared/icons/SketchArrowRight.js +25 -0
- package/dist/module/shared/icons/SketchArrowRight.js.map +1 -0
- package/dist/module/shared/icons/SliceDiamondIcon.js +21 -0
- package/dist/module/shared/icons/SliceDiamondIcon.js.map +1 -0
- package/dist/module/shared/icons/StarIcon.js +24 -0
- package/dist/module/shared/icons/StarIcon.js.map +1 -0
- package/dist/module/shared/icons/TimerIcon.js +27 -0
- package/dist/module/shared/icons/TimerIcon.js.map +1 -0
- package/dist/module/shared/translation/localization/ca.json +24 -0
- package/dist/module/shared/translation/localization/de.json +24 -0
- package/dist/module/shared/translation/localization/en.json +24 -0
- package/dist/module/shared/translation/localization/gb.json +24 -0
- package/dist/module/shared/translation/localization/sct.json +24 -0
- package/dist/module/shared/translation/localization/sw.json +24 -0
- 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/pmProgress/PmProgress.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts +4 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts +36 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +10 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts +11 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +14 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts +14 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +17 -0
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts +11 -0
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts +8 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +31 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +12 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts +8 -0
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts +3 -0
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts +9 -0
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts +15 -0
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts +7 -0
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts +7 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts +14 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts +17 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts +23 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +102 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts +22 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +25 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +17 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +49 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +73 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts +193 -0
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/constants.d.ts +2 -12
- 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 +3 -1
- 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 +1 -2
- 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 +1 -3
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +0 -4
- 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/commonjs/shared/icons/MenuIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/MenuIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +144 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +48 -0
- 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/pmProgress/PmProgress.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts +4 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts +36 -0
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +10 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts +11 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +8 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +14 -0
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts +14 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +17 -0
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts +11 -0
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts +8 -0
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +31 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +12 -0
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts +8 -0
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts +3 -0
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts +9 -0
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts +15 -0
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts +7 -0
- package/dist/typescript/module/features/pmProgress/index.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts +7 -0
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts +14 -0
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts +17 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts +23 -0
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +102 -0
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts +22 -0
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +25 -0
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +17 -0
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +49 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +73 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts +193 -0
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/constants.d.ts +2 -12
- 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 +3 -1
- 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 +1 -2
- 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 +1 -3
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/types.d.ts +0 -4
- 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/dist/typescript/module/shared/icons/MenuIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/MenuIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +4 -0
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/StarIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +144 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +48 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +21 -13
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +2 -1
- package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +2 -1
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +2 -2
- package/src/features/pmProgress/PmProgress.tsx +30 -0
- package/src/features/pmProgress/__tests__/.keep +0 -0
- package/src/features/pmProgress/components/chart/chart.helpers.ts +16 -0
- package/src/features/pmProgress/components/chart/chart.types.ts +37 -0
- package/src/features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx +32 -0
- package/src/features/pmProgress/components/chart/components/SlicesClipPaths.tsx +22 -0
- package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +90 -0
- package/src/features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx +44 -0
- package/src/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx +11 -0
- package/src/features/pmProgress/components/chart/components/layers/SliceFillColor.tsx +60 -0
- package/src/features/pmProgress/components/chart/model/ArcPatternGenerator.ts +48 -0
- package/src/features/pmProgress/components/chart/model/PieChartManager.ts +17 -0
- package/src/features/pmProgress/components/chart/model/SliceShapeGenerator.ts +90 -0
- package/src/features/pmProgress/components/content/PmContent.tsx +44 -0
- package/src/features/pmProgress/components/header/NextUp.tsx +109 -0
- package/src/features/pmProgress/components/header/PmProgressHeader.tsx +135 -0
- package/src/features/pmProgress/components/header/StartButton.tsx +160 -0
- package/src/features/pmProgress/components/insights/PmInsights.tsx +65 -0
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +88 -0
- package/src/features/pmProgress/components/insights/StatsCard.tsx +54 -0
- package/src/features/pmProgress/components/list/Fluency.tsx +72 -0
- package/src/features/pmProgress/components/list/ListCard.tsx +231 -0
- package/src/features/pmProgress/components/list/ListItem.tsx +164 -0
- package/src/features/pmProgress/components/list/PmDomainList.tsx +76 -0
- package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +101 -0
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +127 -0
- package/src/features/pmProgress/components/standard/StandardTag.tsx +181 -0
- package/src/features/pmProgress/context/PmProgressContext.tsx +26 -0
- package/src/features/pmProgress/index.ts +6 -0
- package/src/features/pmProgress/model/PmHighlightModel.ts +11 -0
- package/src/features/pmProgress/model/PmInsightsModel.ts +23 -0
- package/src/features/pmProgress/model/PmProgressApi.ts +34 -0
- package/src/features/pmProgress/model/PmProgressModel.ts +48 -0
- package/src/features/pmProgress/model/PmRecommendationsModel.ts +47 -0
- package/src/features/pmProgress/model/PmSolvingFlowModel.ts +140 -0
- package/src/features/pmProgress/model/PmTreeModel.ts +171 -0
- package/src/features/pmProgress/shared/TreeNormalizer.ts +64 -0
- package/src/features/pmProgress/shared/pmProgress.constants.ts +100 -0
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +307 -0
- package/src/features/pmProgress/shared/pmProgress.types.ts +217 -0
- package/src/features/voice/constants.ts +2 -13
- package/src/features/voice/recording/components/VoiceRecord.tsx +5 -28
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +30 -99
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -2
- package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +4 -8
- package/src/features/voice/recording/model/VoiceRecord.model.ts +0 -7
- package/src/features/voice/types.ts +0 -5
- package/src/index.ts +1 -0
- package/src/shared/icons/MenuIcon.tsx +15 -0
- package/src/shared/icons/PentagonIcon.tsx +14 -0
- package/src/shared/icons/SketchArrowRight.tsx +18 -0
- package/src/shared/icons/SliceDiamondIcon.tsx +14 -0
- package/src/shared/icons/StarIcon.tsx +17 -0
- package/src/shared/icons/TimerIcon.tsx +21 -0
- package/src/shared/translation/localization/ca.json +24 -0
- package/src/shared/translation/localization/de.json +24 -0
- package/src/shared/translation/localization/en.json +24 -0
- package/src/shared/translation/localization/gb.json +24 -0
- package/src/shared/translation/localization/sct.json +24 -0
- package/src/shared/translation/localization/sw.json +24 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { DOMAIN_COLORS, SolvingFlow } from './pmProgress.constants'
|
|
2
|
+
import type { SkillsToPracticeDto } from '@matteappen/skills-utils/enhanceProgressData/types'
|
|
3
|
+
|
|
4
|
+
type StatsSkill = {
|
|
5
|
+
userId: string
|
|
6
|
+
skillId: string
|
|
7
|
+
achievedSkills: number
|
|
8
|
+
failedSkills: number
|
|
9
|
+
totalSkills: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type StatsPayload = {
|
|
13
|
+
entityIds: string[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type StatsResponse = {
|
|
17
|
+
entityId: string
|
|
18
|
+
skills: StatsSkill[]
|
|
19
|
+
}[]
|
|
20
|
+
|
|
21
|
+
export type GetRecommendationsPayload = {
|
|
22
|
+
limit?: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type Ability = {
|
|
26
|
+
functionName: string
|
|
27
|
+
problemCount: number
|
|
28
|
+
sectionId: string
|
|
29
|
+
visibility: unknown[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Skill = {
|
|
33
|
+
_id: string
|
|
34
|
+
nameTranslations: string
|
|
35
|
+
shortDescriptionTranslations: string
|
|
36
|
+
descriptionTranslations: string
|
|
37
|
+
ability: Ability
|
|
38
|
+
theory: {
|
|
39
|
+
languageCode: string
|
|
40
|
+
theory: string
|
|
41
|
+
}[]
|
|
42
|
+
type?: SolvingFlow
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type MappingTree = {
|
|
46
|
+
_id: string
|
|
47
|
+
parents: string[]
|
|
48
|
+
type: string
|
|
49
|
+
nameTranslations: string
|
|
50
|
+
shortDescriptionTranslations: string
|
|
51
|
+
descriptionTranslations: string
|
|
52
|
+
order: number
|
|
53
|
+
children: string[]
|
|
54
|
+
skills: string[]
|
|
55
|
+
originalId: string
|
|
56
|
+
originalPath: string
|
|
57
|
+
attributes: { grade: number }
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type TreeId = string
|
|
61
|
+
|
|
62
|
+
export type SkillsMapping = Record<string, Skill & { difficulty: number }>
|
|
63
|
+
|
|
64
|
+
export type TreeMappingResponse = {
|
|
65
|
+
rootId: string
|
|
66
|
+
skillsMapping: SkillsMapping
|
|
67
|
+
treeMapping: Record<string, MappingTree>
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export enum RecommendationType {
|
|
71
|
+
MAGMA = 'magma',
|
|
72
|
+
TEACHER = 'teacher',
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type Recommendation<T extends string = RecommendationType> = {
|
|
76
|
+
_id: string
|
|
77
|
+
type: T
|
|
78
|
+
skillId: string
|
|
79
|
+
teacherId: string
|
|
80
|
+
studentId: string
|
|
81
|
+
exerciseIds: string[]
|
|
82
|
+
failedAttempts: string[]
|
|
83
|
+
refreshedAt: string
|
|
84
|
+
createdAt: string
|
|
85
|
+
updatedAt: string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type RecsResponse<T extends RecommendationType = RecommendationType.MAGMA> = {
|
|
89
|
+
offset: number
|
|
90
|
+
limit: number
|
|
91
|
+
total: number
|
|
92
|
+
items: Recommendation<T>[]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type Recommendations = {
|
|
96
|
+
items: Skill[]
|
|
97
|
+
offset: number
|
|
98
|
+
limit: number
|
|
99
|
+
total: number
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type UserTimeframeStats = {
|
|
103
|
+
studentId: string
|
|
104
|
+
practiceModeStatsByTimeFrame: {
|
|
105
|
+
all: {
|
|
106
|
+
timeInPracticeMs: number
|
|
107
|
+
numberOfStars: number
|
|
108
|
+
}
|
|
109
|
+
week: {
|
|
110
|
+
timeInPracticeMs: number
|
|
111
|
+
numberOfStars: number
|
|
112
|
+
}
|
|
113
|
+
lastWeek: {
|
|
114
|
+
timeInPracticeMs: number
|
|
115
|
+
numberOfStars: number
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type SkillsCount = {
|
|
121
|
+
total: number
|
|
122
|
+
achieved: number
|
|
123
|
+
failed: number
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type DomainStandard = {
|
|
127
|
+
standardId: string
|
|
128
|
+
title: string
|
|
129
|
+
subtitle: string
|
|
130
|
+
skillIds: string[]
|
|
131
|
+
skillsToPractice?: SkillsToPracticeDto
|
|
132
|
+
skillsCount: SkillsCount
|
|
133
|
+
isCompleted: boolean
|
|
134
|
+
skillsLeft: number
|
|
135
|
+
scorePercentage: number
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type Domain = {
|
|
139
|
+
domainId: string
|
|
140
|
+
title: string
|
|
141
|
+
color: string
|
|
142
|
+
borderColor: string
|
|
143
|
+
backgroundColor: string
|
|
144
|
+
standards: DomainStandard[]
|
|
145
|
+
scorePercentage: number
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type User = {
|
|
149
|
+
_id: string
|
|
150
|
+
fullName: string
|
|
151
|
+
grade: number | null
|
|
152
|
+
enrolledGrades: number[]
|
|
153
|
+
setting: {
|
|
154
|
+
practiceModeTreeId: string
|
|
155
|
+
practiceModeLockedGrades: number[]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type Grade = {
|
|
160
|
+
name: string
|
|
161
|
+
value: number
|
|
162
|
+
isLocked: boolean
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type GradeLabel = {
|
|
166
|
+
name: string
|
|
167
|
+
noPrefix?: boolean
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export type GradeLabelsMap = Record<string, GradeLabel>
|
|
171
|
+
|
|
172
|
+
export type PmProgressGateProps = {
|
|
173
|
+
user: User
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type SetupInitialGradeProps = { tree: TreeMappingResponse; user: User }
|
|
177
|
+
|
|
178
|
+
export type GetTreeContextFxParams = {
|
|
179
|
+
tree: TreeMappingResponse
|
|
180
|
+
stats: StatsResponse
|
|
181
|
+
user: User
|
|
182
|
+
grade: number
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type TreeContext = {
|
|
186
|
+
tree: TreeMappingResponse
|
|
187
|
+
stats: StatsResponse
|
|
188
|
+
user: User
|
|
189
|
+
treeWithStats: unknown
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type QueueBuilderData<T extends StartSolvingProps = StartSolvingProps> = {
|
|
193
|
+
domains: Domain[]
|
|
194
|
+
context: TreeContext
|
|
195
|
+
} & T
|
|
196
|
+
|
|
197
|
+
export type TeacherQueueData = QueueBuilderData<StartSolvingTeacher>
|
|
198
|
+
export type MagmaQueueData = QueueBuilderData<StartSolvingMagma>
|
|
199
|
+
export type StandardQueueData = QueueBuilderData<StartSolvingStandard>
|
|
200
|
+
|
|
201
|
+
export type StartSolvingTeacher = {
|
|
202
|
+
type: SolvingFlow.TEACHER
|
|
203
|
+
skillId?: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type StartSolvingMagma = {
|
|
207
|
+
type: SolvingFlow.MAGMA
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type StartSolvingStandard = {
|
|
211
|
+
type: SolvingFlow.STANDARD
|
|
212
|
+
standardId: string
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type StartSolvingProps = StartSolvingTeacher | StartSolvingMagma | StartSolvingStandard
|
|
216
|
+
|
|
217
|
+
export type DomainColor = (typeof DOMAIN_COLORS)[number]
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export const VOICE_RECORDER_CONTAINER_SIZES = {
|
|
2
|
-
COLLAPSED:
|
|
3
|
-
|
|
4
|
-
advanced: 52,
|
|
5
|
-
},
|
|
6
|
-
EXPANDED: {
|
|
7
|
-
default: 152,
|
|
8
|
-
advanced: 136,
|
|
9
|
-
},
|
|
2
|
+
COLLAPSED: 61,
|
|
3
|
+
EXPANDED: 152,
|
|
10
4
|
}
|
|
11
5
|
export const VOICE_RECORDER_MAX_DURATION_MS = 60000 // 1 minute
|
|
12
6
|
export const VOICE_RECORDER_MIN_DURATION_MS = 300
|
|
@@ -19,8 +13,3 @@ export const DROPDOWN_MAX_CONTENT_HEIGHT = 330
|
|
|
19
13
|
export const TRANSCRIPT_RETRY_INTERVAL_MS = 4000
|
|
20
14
|
export const TRANSCRIPT_MAX_RETRIES = 15
|
|
21
15
|
export const NO_AUDIO_BE_MESSAGE = 'No audio'
|
|
22
|
-
|
|
23
|
-
export const VOICE_RECORD_SHAWODS = {
|
|
24
|
-
default: '0 1px 3px 0 rgba(51, 51, 51, 0.10), 0 0 1px 0 rgba(51, 51, 51, 0.40)',
|
|
25
|
-
advanced: '0 0 1px 0 rgba(51, 51, 51, 0.20), 0 3px 10px 0 rgba(51, 51, 51, 0.16)',
|
|
26
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle, StyleSheet } from 'react-native'
|
|
2
2
|
import { VoiceRecordButton } from './VoiceRecordButton'
|
|
3
3
|
import React, { useEffect } from 'react'
|
|
4
|
-
import {
|
|
4
|
+
import { COLORS, SPACING } from '@magmamath/react-native-ui'
|
|
5
5
|
import { VoiceRecordDeleteButton } from './VoiceRecordDeleteButton'
|
|
6
6
|
import { VoiceRecordDivider } from './VoiceRecordDivider'
|
|
7
7
|
import { VoiceRecordTimer } from './VoiceRecordTimer'
|
|
@@ -10,8 +10,6 @@ import { VoiceRecordModel } from '../model/VoiceRecord.model'
|
|
|
10
10
|
import { useVoiceRecorder } from '../hooks/useVoiceRecorder'
|
|
11
11
|
import { useVoiceRecorderAnimation } from '../hooks/useVoiceRecorderAnimation'
|
|
12
12
|
import { useUnit } from 'effector-react'
|
|
13
|
-
import { RecordButtonVariant } from '../../types'
|
|
14
|
-
import { VOICE_RECORD_SHAWODS } from '../../constants'
|
|
15
13
|
|
|
16
14
|
type VoiceRecordProps = {
|
|
17
15
|
style?: StyleProp<ViewStyle>
|
|
@@ -22,8 +20,7 @@ export const VoiceRecord = ({ style, model }: VoiceRecordProps) => {
|
|
|
22
20
|
const { recorderState } = useVoiceRecorder(model)
|
|
23
21
|
const [isExpanded, isDisabled] = useUnit([model.$isExpanded, model.$isButtonDisabled])
|
|
24
22
|
|
|
25
|
-
const
|
|
26
|
-
const { containerAnimatedStyle } = useVoiceRecorderAnimation(isExpanded, recordButtonVariant)
|
|
23
|
+
const { containerAnimatedStyle } = useVoiceRecorderAnimation(isExpanded)
|
|
27
24
|
|
|
28
25
|
useEffect(() => {
|
|
29
26
|
return () => {
|
|
@@ -32,23 +29,12 @@ export const VoiceRecord = ({ style, model }: VoiceRecordProps) => {
|
|
|
32
29
|
}, [model])
|
|
33
30
|
|
|
34
31
|
return (
|
|
35
|
-
<Animated.View
|
|
36
|
-
style={[
|
|
37
|
-
styles.container,
|
|
38
|
-
recordButtonVariant === RecordButtonVariant.ADVANCED && styles.advancedVariantContainer,
|
|
39
|
-
{ boxShadow: VOICE_RECORD_SHAWODS[recordButtonVariant] },
|
|
40
|
-
style,
|
|
41
|
-
containerAnimatedStyle,
|
|
42
|
-
]}
|
|
43
|
-
>
|
|
32
|
+
<Animated.View style={[styles.container, style, containerAnimatedStyle]}>
|
|
44
33
|
<VoiceRecordButton model={model} />
|
|
45
34
|
{isExpanded && (
|
|
46
35
|
<Animated.View entering={FadeIn} exiting={FadeOut} style={styles.expendedContainer}>
|
|
47
36
|
<VoiceRecordTimer
|
|
48
|
-
style={
|
|
49
|
-
styles.timer,
|
|
50
|
-
recordButtonVariant === RecordButtonVariant.ADVANCED && styles.advancedVariantTimer,
|
|
51
|
-
]}
|
|
37
|
+
style={styles.timer}
|
|
52
38
|
model={model}
|
|
53
39
|
recordingFileDurationMs={recorderState.durationMillis}
|
|
54
40
|
/>
|
|
@@ -67,21 +53,12 @@ const styles = StyleSheet.create({
|
|
|
67
53
|
paddingBottom: 6,
|
|
68
54
|
backgroundColor: COLORS.NEUTRAL_3,
|
|
69
55
|
borderRadius: 32,
|
|
70
|
-
|
|
71
|
-
advancedVariantContainer: {
|
|
72
|
-
borderRadius: BORDER_RADIUS[300],
|
|
73
|
-
padding: 0,
|
|
56
|
+
boxShadow: '0 1px 3px 0 rgba(51, 51, 51, 0.10), 0 0 1px 0 rgba(51, 51, 51, 0.40)',
|
|
74
57
|
overflow: 'hidden',
|
|
75
58
|
},
|
|
76
59
|
timer: {
|
|
77
60
|
marginTop: SPACING[400],
|
|
78
61
|
},
|
|
79
|
-
defaultTimer: {
|
|
80
|
-
marginTop: SPACING[300],
|
|
81
|
-
},
|
|
82
|
-
advancedVariantTimer: {
|
|
83
|
-
marginTop: SPACING[150],
|
|
84
|
-
},
|
|
85
62
|
expendedContainer: {
|
|
86
63
|
alignItems: 'center',
|
|
87
64
|
},
|
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React, { useMemo } from 'react'
|
|
2
2
|
import {
|
|
3
|
-
BORDER_RADIUS,
|
|
4
3
|
Button,
|
|
5
4
|
ButtonColor,
|
|
6
5
|
ButtonSize,
|
|
7
6
|
ButtonStyle,
|
|
8
7
|
ButtonVariant,
|
|
9
|
-
CheckIcon,
|
|
10
|
-
COLORS,
|
|
11
8
|
IS_WEB,
|
|
12
|
-
MicrophoneIcon,
|
|
13
9
|
} from '@magmamath/react-native-ui'
|
|
14
|
-
import { Pressable
|
|
10
|
+
import { Pressable } from 'react-native'
|
|
11
|
+
import { MicrophoneIcon, CheckIcon } from '@magmamath/react-native-ui'
|
|
15
12
|
import { VoiceRecordModel } from '../model/VoiceRecord.model'
|
|
16
13
|
import { useUnit } from 'effector-react'
|
|
17
|
-
import {
|
|
14
|
+
import { VoiceRecorderState } from '../../constants'
|
|
18
15
|
import { useText } from '../../../../shared/translation'
|
|
19
|
-
import { RecordButtonVariant } from '../../types'
|
|
20
16
|
|
|
21
17
|
type VoiceRecordButtonProps = {
|
|
18
|
+
style?: ButtonStyle
|
|
22
19
|
model: VoiceRecordModel
|
|
23
20
|
}
|
|
24
21
|
|
|
25
|
-
const
|
|
26
|
-
button: {
|
|
27
|
-
width: 50,
|
|
28
|
-
height: 50,
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const VoiceRecordButton = ({ model }: VoiceRecordButtonProps) => {
|
|
22
|
+
export const VoiceRecordButton = ({ style, model }: VoiceRecordButtonProps) => {
|
|
33
23
|
const t = useText()
|
|
34
24
|
|
|
35
25
|
const availableInputs = useUnit(model.recorderModel.$availableInputs)
|
|
@@ -37,97 +27,38 @@ export const VoiceRecordButton = ({ model }: VoiceRecordButtonProps) => {
|
|
|
37
27
|
const isButtonDisabled = useUnit(model.$isButtonDisabled)
|
|
38
28
|
const isInitializing = useUnit(model.initializeRecording.pending)
|
|
39
29
|
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
const combinedStyles = useMemo((): ButtonStyle => {
|
|
31
|
+
return {
|
|
32
|
+
button: [{ width: 50, height: 50 }, style?.button],
|
|
33
|
+
container: [style?.container],
|
|
34
|
+
text: [style?.text],
|
|
35
|
+
}
|
|
36
|
+
}, [style])
|
|
43
37
|
|
|
44
38
|
return (
|
|
45
39
|
<Pressable
|
|
46
40
|
onPressIn={(e) => {
|
|
47
|
-
if (
|
|
41
|
+
if (availableInputs.length) return
|
|
48
42
|
e.preventDefault()
|
|
49
43
|
model.notification.warning(t('voice.noMicrophoneFound'))
|
|
50
44
|
}}
|
|
51
|
-
pointerEvents={!
|
|
52
|
-
style={[isButtonDisabled ? styles.disabledCursor : undefined]}
|
|
45
|
+
pointerEvents={!availableInputs.length || isInitializing ? 'box-only' : 'auto'}
|
|
53
46
|
>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
icon={
|
|
70
|
-
isRecording ? (
|
|
71
|
-
<CheckIcon size={25} />
|
|
72
|
-
) : (
|
|
73
|
-
<MicrophoneIcon style={IS_WEB ? { width: 19 } : { minWidth: 23, minHeight: 23 }} />
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
/>
|
|
77
|
-
)}
|
|
47
|
+
<Button
|
|
48
|
+
disabled={isButtonDisabled || !availableInputs.length}
|
|
49
|
+
onPressIn={() => model.recorderButtonHandler()}
|
|
50
|
+
style={combinedStyles}
|
|
51
|
+
size={ButtonSize.LARGE}
|
|
52
|
+
variant={ButtonVariant.SECONDARY}
|
|
53
|
+
colorScheme={ButtonColor.WHITE}
|
|
54
|
+
icon={
|
|
55
|
+
voiceRecordState === VoiceRecorderState.RECORDING ? (
|
|
56
|
+
<CheckIcon size={25} />
|
|
57
|
+
) : (
|
|
58
|
+
<MicrophoneIcon style={IS_WEB ? { width: 19 } : { minWidth: 23, minHeight: 23 }} />
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
/>
|
|
78
62
|
</Pressable>
|
|
79
63
|
)
|
|
80
64
|
}
|
|
81
|
-
|
|
82
|
-
type AdvancedButtonProps = {
|
|
83
|
-
isRecording: boolean
|
|
84
|
-
isIdle: boolean
|
|
85
|
-
disabled: boolean
|
|
86
|
-
onPressIn: () => void
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const AdvancedButton = ({ isRecording, isIdle, disabled, onPressIn }: AdvancedButtonProps) => (
|
|
90
|
-
<Pressable
|
|
91
|
-
style={[styles.advancedButtonContainer, disabled && styles.disabledCursor]}
|
|
92
|
-
onPressIn={onPressIn}
|
|
93
|
-
disabled={disabled}
|
|
94
|
-
>
|
|
95
|
-
<View
|
|
96
|
-
style={[
|
|
97
|
-
styles.advancedIconContainer,
|
|
98
|
-
!isIdle && { borderRadius: 32, backgroundColor: COLORS.PRIMARY_BLUE },
|
|
99
|
-
]}
|
|
100
|
-
>
|
|
101
|
-
{isRecording ? (
|
|
102
|
-
<CheckIcon size={18} color={COLORS.NEUTRAL_1} />
|
|
103
|
-
) : (
|
|
104
|
-
<MicrophoneIcon
|
|
105
|
-
style={{ width: 14, height: 19 }}
|
|
106
|
-
color={disabled ? COLORS.NEUTRAL_5 : isIdle ? COLORS.NEUTRAL_9 : COLORS.NEUTRAL_1}
|
|
107
|
-
/>
|
|
108
|
-
)}
|
|
109
|
-
</View>
|
|
110
|
-
</Pressable>
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
const styles = StyleSheet.create({
|
|
114
|
-
advancedButtonContainer: {
|
|
115
|
-
width: 52,
|
|
116
|
-
height: 52,
|
|
117
|
-
backgroundColor: 'white',
|
|
118
|
-
alignItems: 'center',
|
|
119
|
-
justifyContent: 'center',
|
|
120
|
-
borderRadius: BORDER_RADIUS[300],
|
|
121
|
-
boxShadow: VOICE_RECORD_SHAWODS[RecordButtonVariant.ADVANCED],
|
|
122
|
-
},
|
|
123
|
-
advancedIconContainer: {
|
|
124
|
-
width: 36,
|
|
125
|
-
height: 36,
|
|
126
|
-
borderRadius: BORDER_RADIUS[300],
|
|
127
|
-
justifyContent: 'center',
|
|
128
|
-
alignItems: 'center',
|
|
129
|
-
},
|
|
130
|
-
disabledCursor: {
|
|
131
|
-
cursor: 'not-allowed' as 'auto',
|
|
132
|
-
},
|
|
133
|
-
})
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { useAnimatedStyle, withTiming } from 'react-native-reanimated'
|
|
2
2
|
import { VOICE_RECORDER_CONTAINER_SIZES } from '../../constants'
|
|
3
|
-
import { RecordButtonVariant } from '../../types'
|
|
4
3
|
|
|
5
|
-
export const useVoiceRecorderAnimation = (
|
|
6
|
-
isExpanded: boolean,
|
|
7
|
-
recordButtonVariant: RecordButtonVariant,
|
|
8
|
-
) => {
|
|
4
|
+
export const useVoiceRecorderAnimation = (isExpanded: boolean) => {
|
|
9
5
|
const containerAnimatedStyle = useAnimatedStyle(() => {
|
|
10
6
|
return {
|
|
11
7
|
height: withTiming(
|
|
12
8
|
isExpanded
|
|
13
|
-
? VOICE_RECORDER_CONTAINER_SIZES.EXPANDED
|
|
14
|
-
: VOICE_RECORDER_CONTAINER_SIZES.COLLAPSED
|
|
9
|
+
? VOICE_RECORDER_CONTAINER_SIZES.EXPANDED
|
|
10
|
+
: VOICE_RECORDER_CONTAINER_SIZES.COLLAPSED,
|
|
15
11
|
{
|
|
16
12
|
duration: 280,
|
|
17
13
|
},
|
|
18
14
|
),
|
|
19
15
|
}
|
|
20
|
-
}, [isExpanded
|
|
16
|
+
}, [isExpanded])
|
|
21
17
|
|
|
22
18
|
return { containerAnimatedStyle }
|
|
23
19
|
}
|
|
@@ -4,7 +4,6 @@ import { VoiceRecordsCollection } from './VoiceRecordCollection'
|
|
|
4
4
|
import { UploaderModel } from './Uploader.model'
|
|
5
5
|
import { VoiceRecorderState } from '../../constants'
|
|
6
6
|
import {
|
|
7
|
-
RecordButtonVariant,
|
|
8
7
|
VoiceRecordCollectionItem,
|
|
9
8
|
VoiceRecorderApi,
|
|
10
9
|
VoiceRecordNotificationTypes,
|
|
@@ -59,8 +58,6 @@ export class VoiceRecordModel {
|
|
|
59
58
|
public readonly events: VoiceRecordEvents
|
|
60
59
|
private shouldDiscardRecording = false
|
|
61
60
|
|
|
62
|
-
public recordButtonVariant = RecordButtonVariant.DEFAULT
|
|
63
|
-
|
|
64
61
|
public readonly setCurrentKey = createEvent<string>()
|
|
65
62
|
public readonly setCurrentRecord = createEvent<any>()
|
|
66
63
|
public readonly reset = createEvent()
|
|
@@ -85,10 +82,6 @@ export class VoiceRecordModel {
|
|
|
85
82
|
await this.api.deleteAudioFile(audioFileId)
|
|
86
83
|
})
|
|
87
84
|
|
|
88
|
-
public readonly setRecordButtonVariant = createEffect((variant: RecordButtonVariant) => {
|
|
89
|
-
this.recordButtonVariant = variant
|
|
90
|
-
})
|
|
91
|
-
|
|
92
85
|
public readonly deleteCurrentRecording = attach({
|
|
93
86
|
source: this.$currentKey,
|
|
94
87
|
mapParams: (props: DeleteCurrentRecordingProps | void, currentKey) => ({
|
package/src/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './features/problemSelector'
|
|
|
9
9
|
export * from './features/gifCelebrations'
|
|
10
10
|
export * from './features/exampleSolution'
|
|
11
11
|
export * from './features/keyboard'
|
|
12
|
+
export * from './features/pmProgress'
|
|
12
13
|
export * from './features/openEnded'
|
|
13
14
|
export * from './shared/icons'
|
|
14
15
|
export * from './features/voice'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import { IconProps } from './icon.types'
|
|
4
|
+
import { COLORS } from '@magmamath/react-native-ui'
|
|
5
|
+
|
|
6
|
+
export const MenuIcon = ({ color = COLORS.NEUTRAL_9, size }: IconProps) => {
|
|
7
|
+
return (
|
|
8
|
+
<Svg width={size} height={size} viewBox="0 0 28 21" fill="none">
|
|
9
|
+
<Path
|
|
10
|
+
d="M26.5 0a1.5 1.5 0 010 3h-25a1.5 1.5 0 110-3h25zM18 9a1.5 1.5 0 010 3H1.5a1.5 1.5 0 010-3H18zM26.5 18a1.5 1.5 0 010 3h-25a1.5 1.5 0 010-3h25z"
|
|
11
|
+
fill={color}
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import { IconProps } from './icon.types'
|
|
4
|
+
|
|
5
|
+
export const PentagonIcon = ({ size = 32, color }: IconProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 32 31" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M14.025 2.573a3 3 0 013.527 0l9.788 7.111a3 3 0 011.09 3.355l-3.74 11.506a3 3 0 01-2.852 2.073H9.739a3 3 0 01-2.853-2.073L3.147 13.038a3 3 0 011.09-3.354l9.788-7.111z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import { IconProps } from './icon.types'
|
|
4
|
+
|
|
5
|
+
export const SketchArrowRight = ({ size = 46, color = '#4D4D63' }: IconProps) => {
|
|
6
|
+
const sizeRatio = 1.65
|
|
7
|
+
return (
|
|
8
|
+
<Svg width={size} height={size * sizeRatio} viewBox="0 0 46 28" fill="none">
|
|
9
|
+
<Path
|
|
10
|
+
d="M2 14.714c17.875-3.906 41.975-1.466 41.975-1.466m0 0s-7.319-9-11.4-11.248m11.4 11.248s-8.773 6.653-10.562 12.737"
|
|
11
|
+
stroke={color}
|
|
12
|
+
strokeWidth={4}
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
export const SliceDiamondIcon = ({ color, size = 28 }: IconProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 28 27" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M12.004 22.19a2.25 2.25 0 003.652 0l9.269-12.877a2.578 2.578 0 00-.27-3.329C18.677.005 8.983.005 3.005 5.984a2.578 2.578 0 00-.27 3.33l9.269 12.876z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import { IconProps } from './icon.types'
|
|
4
|
+
import { COLORS } from '@magmamath/react-native-ui'
|
|
5
|
+
|
|
6
|
+
export const StarIcon = ({ width = 25, color = COLORS.NEUTRAL_1 }: IconProps) => {
|
|
7
|
+
return (
|
|
8
|
+
<Svg width={width} height={width} viewBox="0 0 25 25" fill="none">
|
|
9
|
+
<Path
|
|
10
|
+
fillRule="evenodd"
|
|
11
|
+
clipRule="evenodd"
|
|
12
|
+
d="M13.76.971c-.776-1.295-2.653-1.295-3.43 0L7.082 6.387l-5.565 1.39c-1.508.378-2.028 2.256-.929 3.355l4.128 4.128-1.368 6.502c-.35 1.659 1.394 2.973 2.892 2.18l5.795-3.068 3.865 2.147 2.007 1.004c1.497.748 3.196-.563 2.851-2.201l-1.381-6.564 4.128-4.128c1.099-1.099.579-2.977-.93-3.354L17.01 6.387 13.76.97zM8.796 7.416L12.046 2l3.249 5.416a2 2 0 001.23.91l5.565 1.392-4.129 4.128a2 2 0 00-.542 1.826l1.381 6.564-1.968-.984-3.827-2.126a2 2 0 00-1.907-.02l-5.794 3.068 1.368-6.502a2 2 0 00-.542-1.826L2 9.718l5.565-1.391a2 2 0 001.23-.911z"
|
|
13
|
+
fill={color}
|
|
14
|
+
/>
|
|
15
|
+
</Svg>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import { IconProps } from './icon.types'
|
|
4
|
+
import { COLORS } from '@magmamath/react-native-ui'
|
|
5
|
+
|
|
6
|
+
export const TimerIcon = ({ size = 25, color = COLORS.NEUTRAL_1 }: IconProps) => {
|
|
7
|
+
return (
|
|
8
|
+
<Svg width={size} height={size} viewBox="0 0 21 23" fill="none">
|
|
9
|
+
<Path
|
|
10
|
+
d="M10.781 8.984a1.078 1.078 0 10-2.156 0v3.235H6.828a1.078 1.078 0 100 2.156h2.875c.596 0 1.078-.483 1.078-1.078V8.984z"
|
|
11
|
+
fill={color}
|
|
12
|
+
/>
|
|
13
|
+
<Path
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
clipRule="evenodd"
|
|
16
|
+
d="M7.547 0a1.078 1.078 0 100 2.156h1.078v1.497C3.773 4.189 0 8.303 0 13.297 0 18.656 4.344 23 9.703 23c5.359 0 9.703-4.344 9.703-9.703 0-2.28-.787-4.377-2.103-6.033l1.034-1.058.666.666a1.078 1.078 0 101.525-1.525l-2.875-2.875a1.078 1.078 0 10-1.525 1.525l.684.684-1.029 1.054a9.663 9.663 0 00-5.002-2.082V2.156h1.078a1.078 1.078 0 000-2.156H7.547zm-5.39 13.297a7.547 7.547 0 1115.093 0 7.547 7.547 0 01-15.094 0z"
|
|
17
|
+
fill={color}
|
|
18
|
+
/>
|
|
19
|
+
</Svg>
|
|
20
|
+
)
|
|
21
|
+
}
|