@magmamath/students-features 1.3.26-rc.3 → 1.3.26-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/fluency/components/Fluency.js +15 -32
- package/dist/commonjs/features/fluency/components/Fluency.js.map +1 -1
- package/dist/commonjs/features/fluency/components/FluencySolving.js +29 -9
- package/dist/commonjs/features/fluency/components/FluencySolving.js.map +1 -1
- package/dist/commonjs/features/fluency/components/day-streak-counter/DayStreak.js +17 -18
- package/dist/commonjs/features/fluency/components/day-streak-counter/DayStreak.js.map +1 -1
- package/dist/commonjs/features/fluency/components/day-streak-counter/DayStreakCounter.js +26 -24
- package/dist/commonjs/features/fluency/components/day-streak-counter/DayStreakCounter.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/{EquationContent.js → components/EquationContent.js} +5 -5
- package/dist/commonjs/features/fluency/components/fluency-solving/components/EquationContent.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/{FluencyEquationCard.js → components/FluencyEquationCard.js} +16 -8
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyNumpad.js +62 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyNumpad.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/{FluencySolvingCard.js → components/FluencySolvingCard.js} +40 -22
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingCard.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/{FluencySolvingHeader.js → components/FluencySolvingHeader.js} +6 -8
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/{FluencySolvingProgress.js → components/FluencySolvingProgress.js} +32 -4
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/fluencySolving.constants.js +29 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/fluencySolving.constants.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/fluencySolving.helpers.js +58 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/fluencySolving.helpers.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/fluencySolving.types.js +2 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/fluencySolving.types.js.map +1 -0
- package/dist/commonjs/features/fluency/components/matrix/FluencyMatrix.js +2 -2
- package/dist/commonjs/features/fluency/components/matrix/FluencyMatrix.js.map +1 -1
- package/dist/commonjs/features/fluency/components/matrix/components/MatrixCell.js +41 -12
- package/dist/commonjs/features/fluency/components/matrix/components/MatrixCell.js.map +1 -1
- package/dist/commonjs/features/fluency/components/matrix/components/MatrixFill.js +16 -26
- package/dist/commonjs/features/fluency/components/matrix/components/MatrixFill.js.map +1 -1
- package/dist/commonjs/features/fluency/components/matrix/components/MatrixLegend.js +4 -8
- package/dist/commonjs/features/fluency/components/matrix/components/MatrixLegend.js.map +1 -1
- package/dist/commonjs/features/fluency/components/mobile-menu/MobileMenu.js +38 -0
- package/dist/commonjs/features/fluency/components/mobile-menu/MobileMenu.js.map +1 -0
- package/dist/commonjs/features/fluency/components/select-math-operator/SelectMathOperator.js +6 -3
- package/dist/commonjs/features/fluency/components/select-math-operator/SelectMathOperator.js.map +1 -1
- package/dist/commonjs/features/fluency/components/session-results/FluencySessionResults.js +178 -0
- package/dist/commonjs/features/fluency/components/session-results/FluencySessionResults.js.map +1 -0
- package/dist/commonjs/features/fluency/components/session-results/SessionStatCard.js +99 -0
- package/dist/commonjs/features/fluency/components/session-results/SessionStatCard.js.map +1 -0
- package/dist/commonjs/features/fluency/components/session-results/SkillProgressionRow.js +113 -0
- package/dist/commonjs/features/fluency/components/session-results/SkillProgressionRow.js.map +1 -0
- package/dist/commonjs/features/fluency/fluency.constants.js +14 -6
- package/dist/commonjs/features/fluency/fluency.constants.js.map +1 -1
- package/dist/commonjs/features/fluency/fluency.helpers.js +53 -25
- package/dist/commonjs/features/fluency/fluency.helpers.js.map +1 -1
- package/dist/commonjs/features/fluency/hooks/useFluencyModePreset.js +16 -7
- package/dist/commonjs/features/fluency/hooks/useFluencyModePreset.js.map +1 -1
- package/dist/commonjs/features/fluency/{components/fluency-solving/FluencyNumpad.js → hooks/useFluencyNumpad.js} +58 -82
- package/dist/commonjs/features/fluency/hooks/useFluencyNumpad.js.map +1 -0
- package/dist/commonjs/features/fluency/hooks/useSuccessSound.js +0 -2
- package/dist/commonjs/features/fluency/hooks/useSuccessSound.js.map +1 -1
- package/dist/commonjs/features/fluency/model/FluencyApiModel.js +6 -1
- package/dist/commonjs/features/fluency/model/FluencyApiModel.js.map +1 -1
- package/dist/commonjs/features/fluency/model/FluencyDaysStreakModel.js +8 -1
- package/dist/commonjs/features/fluency/model/FluencyDaysStreakModel.js.map +1 -1
- package/dist/commonjs/features/fluency/model/FluencyMatrixModel.js +16 -1
- package/dist/commonjs/features/fluency/model/FluencyMatrixModel.js.map +1 -1
- package/dist/commonjs/features/fluency/model/FluencyModel.js +12 -28
- package/dist/commonjs/features/fluency/model/FluencyModel.js.map +1 -1
- package/dist/commonjs/features/fluency/model/FluencySolvingModel.js +57 -5
- package/dist/commonjs/features/fluency/model/FluencySolvingModel.js.map +1 -1
- package/dist/commonjs/lib/constants.js +1 -0
- package/dist/commonjs/lib/constants.js.map +1 -1
- package/dist/module/features/fluency/components/Fluency.js +17 -34
- package/dist/module/features/fluency/components/Fluency.js.map +1 -1
- package/dist/module/features/fluency/components/FluencySolving.js +29 -9
- package/dist/module/features/fluency/components/FluencySolving.js.map +1 -1
- package/dist/module/features/fluency/components/day-streak-counter/DayStreak.js +17 -18
- package/dist/module/features/fluency/components/day-streak-counter/DayStreak.js.map +1 -1
- package/dist/module/features/fluency/components/day-streak-counter/DayStreakCounter.js +26 -24
- package/dist/module/features/fluency/components/day-streak-counter/DayStreakCounter.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/{EquationContent.js → components/EquationContent.js} +5 -5
- package/dist/module/features/fluency/components/fluency-solving/components/EquationContent.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/{FluencyEquationCard.js → components/FluencyEquationCard.js} +16 -8
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyNumpad.js +56 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyNumpad.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingCard.js +84 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingCard.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/{FluencySolvingHeader.js → components/FluencySolvingHeader.js} +6 -8
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js +69 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/fluencySolving.constants.js +25 -0
- package/dist/module/features/fluency/components/fluency-solving/fluencySolving.constants.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/fluencySolving.helpers.js +52 -0
- package/dist/module/features/fluency/components/fluency-solving/fluencySolving.helpers.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/fluencySolving.types.js +2 -0
- package/dist/module/features/fluency/components/fluency-solving/fluencySolving.types.js.map +1 -0
- package/dist/module/features/fluency/components/matrix/FluencyMatrix.js +2 -2
- package/dist/module/features/fluency/components/matrix/FluencyMatrix.js.map +1 -1
- package/dist/module/features/fluency/components/matrix/components/MatrixCell.js +44 -15
- package/dist/module/features/fluency/components/matrix/components/MatrixCell.js.map +1 -1
- package/dist/module/features/fluency/components/matrix/components/MatrixFill.js +16 -26
- package/dist/module/features/fluency/components/matrix/components/MatrixFill.js.map +1 -1
- package/dist/module/features/fluency/components/matrix/components/MatrixLegend.js +4 -8
- package/dist/module/features/fluency/components/matrix/components/MatrixLegend.js.map +1 -1
- package/dist/module/features/fluency/components/mobile-menu/MobileMenu.js +32 -0
- package/dist/module/features/fluency/components/mobile-menu/MobileMenu.js.map +1 -0
- package/dist/module/features/fluency/components/select-math-operator/SelectMathOperator.js +6 -3
- package/dist/module/features/fluency/components/select-math-operator/SelectMathOperator.js.map +1 -1
- package/dist/module/features/fluency/components/session-results/FluencySessionResults.js +172 -0
- package/dist/module/features/fluency/components/session-results/FluencySessionResults.js.map +1 -0
- package/dist/module/features/fluency/components/session-results/SessionStatCard.js +93 -0
- package/dist/module/features/fluency/components/session-results/SessionStatCard.js.map +1 -0
- package/dist/module/features/fluency/components/session-results/SkillProgressionRow.js +107 -0
- package/dist/module/features/fluency/components/session-results/SkillProgressionRow.js.map +1 -0
- package/dist/module/features/fluency/fluency.constants.js +13 -5
- package/dist/module/features/fluency/fluency.constants.js.map +1 -1
- package/dist/module/features/fluency/fluency.helpers.js +51 -21
- package/dist/module/features/fluency/fluency.helpers.js.map +1 -1
- package/dist/module/features/fluency/hooks/useFluencyModePreset.js +16 -7
- package/dist/module/features/fluency/hooks/useFluencyModePreset.js.map +1 -1
- package/dist/module/features/fluency/{components/fluency-solving/FluencyNumpad.js → hooks/useFluencyNumpad.js} +58 -82
- package/dist/module/features/fluency/hooks/useFluencyNumpad.js.map +1 -0
- package/dist/module/features/fluency/hooks/useSuccessSound.js +0 -1
- package/dist/module/features/fluency/hooks/useSuccessSound.js.map +1 -1
- package/dist/module/features/fluency/model/FluencyApiModel.js +6 -1
- package/dist/module/features/fluency/model/FluencyApiModel.js.map +1 -1
- package/dist/module/features/fluency/model/FluencyDaysStreakModel.js +8 -1
- package/dist/module/features/fluency/model/FluencyDaysStreakModel.js.map +1 -1
- package/dist/module/features/fluency/model/FluencyMatrixModel.js +16 -1
- package/dist/module/features/fluency/model/FluencyMatrixModel.js.map +1 -1
- package/dist/module/features/fluency/model/FluencyModel.js +13 -29
- package/dist/module/features/fluency/model/FluencyModel.js.map +1 -1
- package/dist/module/features/fluency/model/FluencySolvingModel.js +58 -6
- package/dist/module/features/fluency/model/FluencySolvingModel.js.map +1 -1
- package/dist/module/lib/constants.js +1 -0
- package/dist/module/lib/constants.js.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/Fluency.d.ts +2 -1
- package/dist/typescript/commonjs/features/fluency/components/Fluency.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/FluencySolving.d.ts +2 -1
- package/dist/typescript/commonjs/features/fluency/components/FluencySolving.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/day-streak-counter/DayStreak.d.ts +5 -3
- package/dist/typescript/commonjs/features/fluency/components/day-streak-counter/DayStreak.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/day-streak-counter/DayStreakCounter.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/EquationContent.d.ts.map +1 -0
- package/dist/typescript/{module/features/fluency/components/fluency-solving → commonjs/features/fluency/components/fluency-solving/components}/FluencyEquationCard.d.ts +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyNumpad.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/fluencySolving.constants.d.ts +5 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/fluencySolving.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/fluencySolving.helpers.d.ts +15 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/fluencySolving.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/fluencySolving.types.d.ts +20 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/fluencySolving.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/matrix/FluencyMatrix.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixCell.d.ts +5 -7
- package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixCell.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixFill.d.ts +1 -1
- package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixFill.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/mobile-menu/MobileMenu.d.ts +7 -0
- package/dist/typescript/commonjs/features/fluency/components/mobile-menu/MobileMenu.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/select-math-operator/SelectMathOperator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/session-results/FluencySessionResults.d.ts +11 -0
- package/dist/typescript/commonjs/features/fluency/components/session-results/FluencySessionResults.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/session-results/SessionStatCard.d.ts +9 -0
- package/dist/typescript/commonjs/features/fluency/components/session-results/SessionStatCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/session-results/SkillProgressionRow.d.ts +15 -0
- package/dist/typescript/commonjs/features/fluency/components/session-results/SkillProgressionRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/fluency.constants.d.ts +12 -5
- package/dist/typescript/commonjs/features/fluency/fluency.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/fluency.helpers.d.ts +3 -5
- package/dist/typescript/commonjs/features/fluency/fluency.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/fluency.types.d.ts +58 -8
- package/dist/typescript/commonjs/features/fluency/fluency.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/hooks/useFluencyModePreset.d.ts +22 -3
- package/dist/typescript/commonjs/features/fluency/hooks/useFluencyModePreset.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/hooks/useFluencyNumpad.d.ts +53 -0
- package/dist/typescript/commonjs/features/fluency/hooks/useFluencyNumpad.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/hooks/useSuccessSound.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencyApiModel.d.ts +6 -3
- package/dist/typescript/commonjs/features/fluency/model/FluencyApiModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencyDaysStreakModel.d.ts +5 -0
- package/dist/typescript/commonjs/features/fluency/model/FluencyDaysStreakModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencyMatrixModel.d.ts +9 -0
- package/dist/typescript/commonjs/features/fluency/model/FluencyMatrixModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencyModel.d.ts +3 -15
- package/dist/typescript/commonjs/features/fluency/model/FluencyModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencySolvingModel.d.ts +20 -7
- package/dist/typescript/commonjs/features/fluency/model/FluencySolvingModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/constants.d.ts +2 -1
- package/dist/typescript/commonjs/lib/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/Fluency.d.ts +2 -1
- package/dist/typescript/module/features/fluency/components/Fluency.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/FluencySolving.d.ts +2 -1
- package/dist/typescript/module/features/fluency/components/FluencySolving.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/day-streak-counter/DayStreak.d.ts +5 -3
- package/dist/typescript/module/features/fluency/components/day-streak-counter/DayStreak.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/day-streak-counter/DayStreakCounter.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/EquationContent.d.ts.map +1 -0
- package/dist/typescript/{commonjs/features/fluency/components/fluency-solving → module/features/fluency/components/fluency-solving/components}/FluencyEquationCard.d.ts +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyNumpad.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencySolvingCard.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.d.ts +10 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/fluencySolving.constants.d.ts +5 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/fluencySolving.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/fluencySolving.helpers.d.ts +15 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/fluencySolving.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/fluencySolving.types.d.ts +20 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/fluencySolving.types.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/matrix/FluencyMatrix.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/matrix/components/MatrixCell.d.ts +5 -7
- package/dist/typescript/module/features/fluency/components/matrix/components/MatrixCell.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/matrix/components/MatrixFill.d.ts +1 -1
- package/dist/typescript/module/features/fluency/components/matrix/components/MatrixFill.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/mobile-menu/MobileMenu.d.ts +7 -0
- package/dist/typescript/module/features/fluency/components/mobile-menu/MobileMenu.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/select-math-operator/SelectMathOperator.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/session-results/FluencySessionResults.d.ts +11 -0
- package/dist/typescript/module/features/fluency/components/session-results/FluencySessionResults.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/session-results/SessionStatCard.d.ts +9 -0
- package/dist/typescript/module/features/fluency/components/session-results/SessionStatCard.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/session-results/SkillProgressionRow.d.ts +15 -0
- package/dist/typescript/module/features/fluency/components/session-results/SkillProgressionRow.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/fluency.constants.d.ts +12 -5
- package/dist/typescript/module/features/fluency/fluency.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/fluency.helpers.d.ts +3 -5
- package/dist/typescript/module/features/fluency/fluency.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/fluency.types.d.ts +58 -8
- package/dist/typescript/module/features/fluency/fluency.types.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/hooks/useFluencyModePreset.d.ts +22 -3
- package/dist/typescript/module/features/fluency/hooks/useFluencyModePreset.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/hooks/useFluencyNumpad.d.ts +53 -0
- package/dist/typescript/module/features/fluency/hooks/useFluencyNumpad.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/hooks/useSuccessSound.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/model/FluencyApiModel.d.ts +6 -3
- package/dist/typescript/module/features/fluency/model/FluencyApiModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/model/FluencyDaysStreakModel.d.ts +5 -0
- package/dist/typescript/module/features/fluency/model/FluencyDaysStreakModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/model/FluencyMatrixModel.d.ts +9 -0
- package/dist/typescript/module/features/fluency/model/FluencyMatrixModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/model/FluencyModel.d.ts +3 -15
- package/dist/typescript/module/features/fluency/model/FluencyModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/model/FluencySolvingModel.d.ts +20 -7
- package/dist/typescript/module/features/fluency/model/FluencySolvingModel.d.ts.map +1 -1
- package/dist/typescript/module/lib/constants.d.ts +2 -1
- package/dist/typescript/module/lib/constants.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/fluency/components/Fluency.tsx +17 -41
- package/src/features/fluency/components/FluencySolving.tsx +30 -5
- package/src/features/fluency/components/day-streak-counter/DayStreak.tsx +24 -20
- package/src/features/fluency/components/day-streak-counter/DayStreakCounter.tsx +41 -28
- package/src/features/fluency/components/fluency-solving/{EquationContent.tsx → components/EquationContent.tsx} +5 -5
- package/src/features/fluency/components/fluency-solving/{FluencyEquationCard.tsx → components/FluencyEquationCard.tsx} +12 -6
- package/src/features/fluency/components/fluency-solving/components/FluencyNumpad.tsx +54 -0
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingCard.tsx +84 -0
- package/src/features/fluency/components/fluency-solving/{FluencySolvingHeader.tsx → components/FluencySolvingHeader.tsx} +6 -8
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingProgress.tsx +68 -0
- package/src/features/fluency/components/fluency-solving/fluencySolving.constants.ts +25 -0
- package/src/features/fluency/components/fluency-solving/fluencySolving.helpers.ts +78 -0
- package/src/features/fluency/components/fluency-solving/fluencySolving.types.ts +21 -0
- package/src/features/fluency/components/matrix/FluencyMatrix.tsx +3 -2
- package/src/features/fluency/components/matrix/components/MatrixCell.tsx +46 -23
- package/src/features/fluency/components/matrix/components/MatrixFill.tsx +14 -24
- package/src/features/fluency/components/matrix/components/MatrixLegend.tsx +4 -4
- package/src/features/fluency/components/mobile-menu/MobileMenu.tsx +29 -0
- package/src/features/fluency/components/select-math-operator/SelectMathOperator.tsx +7 -3
- package/src/features/fluency/components/session-results/FluencySessionResults.tsx +204 -0
- package/src/features/fluency/components/session-results/SessionStatCard.tsx +100 -0
- package/src/features/fluency/components/session-results/SkillProgressionRow.tsx +100 -0
- package/src/features/fluency/fluency.constants.ts +13 -5
- package/src/features/fluency/fluency.helpers.ts +46 -27
- package/src/features/fluency/fluency.types.ts +70 -8
- package/src/features/fluency/hooks/useFluencyModePreset.ts +30 -20
- package/src/features/fluency/{components/fluency-solving/FluencyNumpad.tsx → hooks/useFluencyNumpad.tsx} +68 -94
- package/src/features/fluency/hooks/useSuccessSound.ts +0 -1
- package/src/features/fluency/model/FluencyApiModel.ts +18 -2
- package/src/features/fluency/model/FluencyDaysStreakModel.ts +11 -1
- package/src/features/fluency/model/FluencyMatrixModel.ts +20 -1
- package/src/features/fluency/model/FluencyModel.ts +15 -30
- package/src/features/fluency/model/FluencySolvingModel.ts +70 -8
- package/src/lib/constants.ts +3 -2
- package/src/types/types.d.ts +5 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/EquationContent.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/FluencyEquationCard.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/FluencyNumpad.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/FluencySolvingCard.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/FluencySolvingHeader.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/FluencySolvingProgress.js.map +0 -1
- package/dist/commonjs/features/fluency/model/FluencyInputModel.js +0 -20
- package/dist/commonjs/features/fluency/model/FluencyInputModel.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/EquationContent.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/FluencyEquationCard.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/FluencyNumpad.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/FluencySolvingCard.js +0 -66
- package/dist/module/features/fluency/components/fluency-solving/FluencySolvingCard.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/FluencySolvingHeader.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/FluencySolvingProgress.js +0 -41
- package/dist/module/features/fluency/components/fluency-solving/FluencySolvingProgress.js.map +0 -1
- package/dist/module/features/fluency/model/FluencyInputModel.js +0 -15
- package/dist/module/features/fluency/model/FluencyInputModel.js.map +0 -1
- package/dist/typescript/commonjs/features/fluency/__tests__/FluencyModel.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/fluency/__tests__/FluencyModel.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/EquationContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/FluencyEquationCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/FluencyNumpad.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/FluencySolvingCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/FluencySolvingHeader.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/FluencySolvingProgress.d.ts +0 -8
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/FluencySolvingProgress.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/model/FluencyInputModel.d.ts +0 -11
- package/dist/typescript/commonjs/features/fluency/model/FluencyInputModel.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/__tests__/FluencyModel.test.d.ts +0 -2
- package/dist/typescript/module/features/fluency/__tests__/FluencyModel.test.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/EquationContent.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/FluencyEquationCard.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/FluencyNumpad.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/FluencySolvingCard.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/FluencySolvingHeader.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/FluencySolvingProgress.d.ts +0 -8
- package/dist/typescript/module/features/fluency/components/fluency-solving/FluencySolvingProgress.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/model/FluencyInputModel.d.ts +0 -11
- package/dist/typescript/module/features/fluency/model/FluencyInputModel.d.ts.map +0 -1
- package/src/features/fluency/__tests__/FluencyModel.test.ts +0 -28
- package/src/features/fluency/components/fluency-solving/FluencySolvingCard.tsx +0 -59
- package/src/features/fluency/components/fluency-solving/FluencySolvingProgress.tsx +0 -40
- package/src/features/fluency/model/FluencyInputModel.ts +0 -17
- /package/dist/typescript/commonjs/features/fluency/components/fluency-solving/{EquationContent.d.ts → components/EquationContent.d.ts} +0 -0
- /package/dist/typescript/commonjs/features/fluency/components/fluency-solving/{FluencyNumpad.d.ts → components/FluencyNumpad.d.ts} +0 -0
- /package/dist/typescript/commonjs/features/fluency/components/fluency-solving/{FluencySolvingCard.d.ts → components/FluencySolvingCard.d.ts} +0 -0
- /package/dist/typescript/commonjs/features/fluency/components/fluency-solving/{FluencySolvingHeader.d.ts → components/FluencySolvingHeader.d.ts} +0 -0
- /package/dist/typescript/module/features/fluency/components/fluency-solving/{EquationContent.d.ts → components/EquationContent.d.ts} +0 -0
- /package/dist/typescript/module/features/fluency/components/fluency-solving/{FluencyNumpad.d.ts → components/FluencyNumpad.d.ts} +0 -0
- /package/dist/typescript/module/features/fluency/components/fluency-solving/{FluencySolvingCard.d.ts → components/FluencySolvingCard.d.ts} +0 -0
- /package/dist/typescript/module/features/fluency/components/fluency-solving/{FluencySolvingHeader.d.ts → components/FluencySolvingHeader.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","FluencySolvingModel","$
|
|
1
|
+
{"version":3,"names":["_effector","require","_fluencyConstants","_fluencySolvingHelpers","FluencySolvingModel","reset","createEvent","setAnswer","setFacts","setCurrent","setOutcomes","setSessionStartTime","setQuestionStartTime","$answer","restore","$facts","$current","$outcomes","$sessionStartTime","$questionStartTime","constructor","matrixModel","start","mode","data","$data","getState","facts","toSolvingFacts","operations","Object","entries","flatMap","op","operation","selectNextFact","Date","now","submit","current","answer","outcomes","length","SESSION_LENGTH","timeTakenMs","isCorrect","isFast","TIME_THRESHOLD_MS","newBox","calculateNextBox","currentBox","box","sessionStartBox","hasFailedThisSession","updatedFact","lastSeenMs","updatedFacts","map","f","id","exports"],"sourceRoot":"../../../../../src","sources":["features/fluency/model/FluencySolvingModel.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAQO,MAAMG,mBAAmB,CAAC;EACfC,KAAK,GAAG,IAAAC,qBAAW,EAAC,CAAC;EACrBC,SAAS,GAAG,IAAAD,qBAAW,EAAgB,CAAC;EACvCE,QAAQ,GAAG,IAAAF,qBAAW,EAAgB,CAAC;EACvCG,UAAU,GAAG,IAAAH,qBAAW,EAAqB,CAAC;EAC9CI,WAAW,GAAG,IAAAJ,qBAAW,EAAoB,CAAC;EAC9CK,mBAAmB,GAAG,IAAAL,qBAAW,EAAS,CAAC;EAC3CM,oBAAoB,GAAG,IAAAN,qBAAW,EAAS,CAAC;EAE7CO,OAAO,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACP,SAAS,EAAE,IAAI,CAAC,CAACF,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EACzDU,MAAM,GAAG,IAAAD,iBAAO,EAAC,IAAI,CAACN,QAAQ,EAAE,EAAE,CAAC,CAACH,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EACrDW,QAAQ,GAAG,IAAAF,iBAAO,EAAC,IAAI,CAACL,UAAU,EAAE,IAAI,CAAC,CAACJ,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAC3DY,SAAS,G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UAAU,CAAC,IAAA0B,qCAAc,EAACqB,YAAY,EAAEpB,IAAI,CAACC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzD,IAAI,CAACzB,oBAAoB,CAACwB,IAAI,CAACC,GAAG,CAAC,CAAC,CAAC;IACrC,IAAI,CAAC3B,WAAW,CAAC,CAAC,GAAG+B,QAAQ,EAAEI,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;IAChE,IAAI,CAACtC,SAAS,CAAC,IAAI,CAAC;EACtB;AACF;AAACqD,OAAA,CAAAxD,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.KeyboardKeys = void 0;
|
|
7
7
|
let KeyboardKeys = exports.KeyboardKeys = /*#__PURE__*/function (KeyboardKeys) {
|
|
8
8
|
KeyboardKeys["ENTER"] = "Enter";
|
|
9
|
+
KeyboardKeys["BACKSPACE"] = "Backspace";
|
|
9
10
|
return KeyboardKeys;
|
|
10
11
|
}({});
|
|
11
12
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["KeyboardKeys","exports"],"sourceRoot":"../../../src","sources":["lib/constants.ts"],"mappings":";;;;;;IAAYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["KeyboardKeys","exports"],"sourceRoot":"../../../src","sources":["lib/constants.ts"],"mappings":";;;;;;IAAYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useGate } from 'effector-react';
|
|
5
|
+
import { View, StyleSheet } from 'react-native';
|
|
6
|
+
import { Typography, HeadingVariants, SPACING, COLORS } from '@magmamath/react-native-ui';
|
|
6
7
|
import { useText } from "../../../i18n/i18n.js";
|
|
7
8
|
import { StartBanner } from "./start-banner/StartBanner.js";
|
|
8
9
|
import { DayStreakCounter } from "./day-streak-counter/DayStreakCounter.js";
|
|
9
10
|
import { SelectMathOperator } from "./select-math-operator/SelectMathOperator.js";
|
|
10
11
|
import { FluencyMatrix } from "./matrix/FluencyMatrix.js";
|
|
12
|
+
import { MobileMenu } from "./mobile-menu/MobileMenu.js";
|
|
11
13
|
import { FluencyProvider } from "../context/FluencyContext.js";
|
|
12
|
-
import { isWeb } from "../../../shared/common.constants.js";
|
|
13
|
-
import { MenuIcon } from "../../../shared/icons/MenuIcon.js";
|
|
14
|
-
import { BURGER_MENU_BREAKPOINT } from '@magmamath/students-features';
|
|
15
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
export const Fluency = ({
|
|
17
16
|
model,
|
|
17
|
+
grade,
|
|
18
18
|
onMenuPress,
|
|
19
19
|
onStartPress,
|
|
20
20
|
onPracticePress,
|
|
21
21
|
onModeSelectPress
|
|
22
22
|
}) => {
|
|
23
|
+
useGate(model.gate, {
|
|
24
|
+
grade
|
|
25
|
+
});
|
|
23
26
|
const t = useText();
|
|
24
|
-
const dimensions = useWindowDimensions();
|
|
25
|
-
const withMenuButton = isWeb && dimensions.width <= BURGER_MENU_BREAKPOINT;
|
|
26
27
|
return /*#__PURE__*/_jsx(FluencyProvider, {
|
|
27
28
|
value: {
|
|
28
29
|
model,
|
|
@@ -31,46 +32,31 @@ export const Fluency = ({
|
|
|
31
32
|
onModeSelectPress
|
|
32
33
|
},
|
|
33
34
|
children: /*#__PURE__*/_jsxs(View, {
|
|
34
|
-
style: styles.container,
|
|
35
35
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
36
|
-
style: styles.
|
|
37
|
-
children: [
|
|
38
|
-
|
|
39
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
40
|
-
onPress: onMenuPress,
|
|
41
|
-
variant: ButtonVariant.TERTIARY,
|
|
42
|
-
icon: /*#__PURE__*/_jsx(MenuIcon, {
|
|
43
|
-
size: 24
|
|
44
|
-
})
|
|
45
|
-
})
|
|
36
|
+
style: styles.title,
|
|
37
|
+
children: [/*#__PURE__*/_jsx(MobileMenu, {
|
|
38
|
+
onPress: onMenuPress
|
|
46
39
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
47
40
|
variant: HeadingVariants.H2,
|
|
48
|
-
style: styles.
|
|
41
|
+
style: styles.titleText,
|
|
49
42
|
children: t('student.fluency.title')
|
|
50
43
|
})]
|
|
51
44
|
}), /*#__PURE__*/_jsxs(View, {
|
|
52
45
|
style: styles.header,
|
|
53
46
|
children: [/*#__PURE__*/_jsx(StartBanner, {}), /*#__PURE__*/_jsx(DayStreakCounter, {})]
|
|
54
47
|
}), /*#__PURE__*/_jsxs(View, {
|
|
55
|
-
style: styles.
|
|
56
|
-
children: [/*#__PURE__*/_jsx(
|
|
57
|
-
style: styles.operatorWrapper,
|
|
58
|
-
children: /*#__PURE__*/_jsx(SelectMathOperator, {})
|
|
59
|
-
}), /*#__PURE__*/_jsx(FluencyMatrix, {})]
|
|
48
|
+
style: styles.matrix,
|
|
49
|
+
children: [/*#__PURE__*/_jsx(SelectMathOperator, {}), /*#__PURE__*/_jsx(FluencyMatrix, {})]
|
|
60
50
|
})]
|
|
61
51
|
})
|
|
62
52
|
});
|
|
63
53
|
};
|
|
64
54
|
const styles = StyleSheet.create({
|
|
65
|
-
|
|
66
|
-
titleRow: {
|
|
55
|
+
title: {
|
|
67
56
|
flexDirection: 'row',
|
|
68
57
|
alignItems: 'center'
|
|
69
58
|
},
|
|
70
|
-
|
|
71
|
-
marginRight: SPACING[200]
|
|
72
|
-
},
|
|
73
|
-
title: {
|
|
59
|
+
titleText: {
|
|
74
60
|
color: COLORS.NEUTRAL_9
|
|
75
61
|
},
|
|
76
62
|
header: {
|
|
@@ -80,13 +66,10 @@ const styles = StyleSheet.create({
|
|
|
80
66
|
gap: SPACING[400],
|
|
81
67
|
zIndex: 1
|
|
82
68
|
},
|
|
83
|
-
|
|
69
|
+
matrix: {
|
|
84
70
|
flexDirection: 'row',
|
|
85
71
|
marginTop: SPACING[400],
|
|
86
72
|
gap: SPACING[200]
|
|
87
|
-
},
|
|
88
|
-
operatorWrapper: {
|
|
89
|
-
alignSelf: 'flex-start'
|
|
90
73
|
}
|
|
91
74
|
});
|
|
92
75
|
//# sourceMappingURL=Fluency.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useGate","View","StyleSheet","Typography","HeadingVariants","SPACING","COLORS","useText","StartBanner","DayStreakCounter","SelectMathOperator","FluencyMatrix","MobileMenu","FluencyProvider","jsx","_jsx","jsxs","_jsxs","Fluency","model","grade","onMenuPress","onStartPress","onPracticePress","onModeSelectPress","gate","t","value","children","style","styles","title","onPress","variant","H2","titleText","header","matrix","create","flexDirection","alignItems","color","NEUTRAL_9","height","marginTop","gap","zIndex"],"sourceRoot":"../../../../../src","sources":["features/fluency/components/Fluency.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,UAAU,EAAEC,eAAe,EAAEC,OAAO,EAAEC,MAAM,QAAQ,4BAA4B;AACzF,SAASC,OAAO,QAAQ,uBAAoB;AAC5C,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,gBAAgB,QAAQ,0CAAuC;AACxE,SAASC,kBAAkB,QAAQ,8CAA2C;AAC9E,SAASC,aAAa,QAAQ,2BAAwB;AACtD,SAASC,UAAU,QAAQ,6BAA0B;AACrD,SAASC,eAAe,QAAQ,8BAA2B;AAAA,SAAAC,GAAA,IAAA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AAE;IACLQ,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDL,SAAS,EAAE;IAAEM,KAAK,EAAEnC,MAAM,CAACoC;EAAU,CAAC;EACtCN,MAAM,EAAE;IACNO,MAAM,EAAE,GAAG;IACXJ,aAAa,EAAE,KAAK;IACpBK,SAAS,EAAEvC,OAAO,CAAC,GAAG,CAAC;IACvBwC,GAAG,EAAExC,OAAO,CAAC,GAAG,CAAC;IACjByC,MAAM,EAAE;EACV,CAAC;EACDT,MAAM,EAAE;IACNE,aAAa,EAAE,KAAK;IACpBK,SAAS,EAAEvC,OAAO,CAAC,GAAG,CAAC;IACvBwC,GAAG,EAAExC,OAAO,CAAC,GAAG;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,28 +3,48 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, StyleSheet } from 'react-native';
|
|
5
5
|
import { COLORS } from '@magmamath/react-native-ui';
|
|
6
|
+
import { useUnit } from 'effector-react';
|
|
7
|
+
import { SESSION_LENGTH } from "../fluency.constants.js";
|
|
6
8
|
import { FluencyProvider } from "../context/FluencyContext.js";
|
|
7
|
-
import { FluencySolvingHeader } from "./fluency-solving/FluencySolvingHeader.js";
|
|
8
|
-
import { FluencySolvingProgress } from "./fluency-solving/FluencySolvingProgress.js";
|
|
9
|
-
import { FluencySolvingCard } from "./fluency-solving/FluencySolvingCard.js";
|
|
9
|
+
import { FluencySolvingHeader } from "./fluency-solving/components/FluencySolvingHeader.js";
|
|
10
|
+
import { FluencySolvingProgress } from "./fluency-solving/components/FluencySolvingProgress.js";
|
|
11
|
+
import { FluencySolvingCard } from "./fluency-solving/components/FluencySolvingCard.js";
|
|
12
|
+
import { FluencySessionResults } from "./session-results/FluencySessionResults.js";
|
|
10
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
14
|
export const FluencySolving = ({
|
|
12
15
|
model,
|
|
13
|
-
onClosePress
|
|
16
|
+
onClosePress,
|
|
17
|
+
onEndModalPress
|
|
14
18
|
}) => {
|
|
15
|
-
|
|
19
|
+
const {
|
|
20
|
+
outcomes,
|
|
21
|
+
facts,
|
|
22
|
+
sessionStartTime
|
|
23
|
+
} = useUnit({
|
|
24
|
+
outcomes: model.solving.$outcomes,
|
|
25
|
+
facts: model.solving.$facts,
|
|
26
|
+
sessionStartTime: model.solving.$sessionStartTime
|
|
27
|
+
});
|
|
28
|
+
const isSessionComplete = outcomes.length >= SESSION_LENGTH;
|
|
29
|
+
return /*#__PURE__*/_jsxs(FluencyProvider, {
|
|
16
30
|
value: {
|
|
17
31
|
model
|
|
18
32
|
},
|
|
19
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
33
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
20
34
|
style: styles.container,
|
|
21
35
|
children: [/*#__PURE__*/_jsx(FluencySolvingHeader, {
|
|
22
36
|
onClosePress: onClosePress
|
|
23
37
|
}), /*#__PURE__*/_jsx(FluencySolvingProgress, {
|
|
24
|
-
total:
|
|
25
|
-
activeIndex:
|
|
38
|
+
total: SESSION_LENGTH,
|
|
39
|
+
activeIndex: outcomes.length,
|
|
40
|
+
outcomes: outcomes
|
|
26
41
|
}), /*#__PURE__*/_jsx(FluencySolvingCard, {})]
|
|
27
|
-
})
|
|
42
|
+
}), isSessionComplete && /*#__PURE__*/_jsx(FluencySessionResults, {
|
|
43
|
+
outcomes: outcomes,
|
|
44
|
+
sessionDurationMs: Date.now() - sessionStartTime,
|
|
45
|
+
facts: facts,
|
|
46
|
+
onEndModalPress: onEndModalPress
|
|
47
|
+
})]
|
|
28
48
|
});
|
|
29
49
|
};
|
|
30
50
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","COLORS","FluencyProvider","FluencySolvingHeader","FluencySolvingProgress","FluencySolvingCard","jsx","_jsx","jsxs","_jsxs","FluencySolving","model","onClosePress","value","children","style","styles","container","total","activeIndex","create","flex","backgroundColor","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/fluency/components/FluencySolving.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,MAAM,QAAQ,4BAA4B;
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","COLORS","useUnit","SESSION_LENGTH","FluencyProvider","FluencySolvingHeader","FluencySolvingProgress","FluencySolvingCard","FluencySessionResults","jsx","_jsx","jsxs","_jsxs","FluencySolving","model","onClosePress","onEndModalPress","outcomes","facts","sessionStartTime","solving","$outcomes","$facts","$sessionStartTime","isSessionComplete","length","value","children","style","styles","container","total","activeIndex","sessionDurationMs","Date","now","create","flex","backgroundColor","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/fluency/components/FluencySolving.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,OAAO,QAAQ,gBAAgB;AAExC,SAASC,cAAc,QAAQ,yBAAsB;AACrD,SAASC,eAAe,QAAQ,8BAA2B;AAC3D,SAASC,oBAAoB,QAAQ,sDAAmD;AACxF,SAASC,sBAAsB,QAAQ,wDAAqD;AAC5F,SAASC,kBAAkB,QAAQ,oDAAiD;AACpF,SAASC,qBAAqB,QAAQ,4CAAyC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQ/E,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAAEC,KAAK;EAAEC,YAAY;EAAEC;AAAqC,CAAC,KAAK;EAC/F,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC;EAAiB,CAAC,GAAGjB,OAAO,CAAC;IACpDe,QAAQ,EAAEH,KAAK,CAACM,OAAO,CAACC,SAAS;IACjCH,KAAK,EAAEJ,KAAK,CAACM,OAAO,CAACE,MAAM;IAC3BH,gBAAgB,EAAEL,KAAK,CAACM,OAAO,CAACG;EAClC,CAAC,CAAC;EAEF,MAAMC,iBAAiB,GAAGP,QAAQ,CAACQ,MAAM,IAAItB,cAAc;EAE3D,oBACES,KAAA,CAACR,eAAe;IAACsB,KAAK,EAAE;MAAEZ;IAAM,CAAE;IAAAa,QAAA,gBAChCf,KAAA,CAACb,IAAI;MAAC6B,KAAK,EAAEC,MAAM,CAACC,SAAU;MAAAH,QAAA,gBAC5BjB,IAAA,CAACL,oBAAoB;QAACU,YAAY,EAAEA;MAAa,CAAE,CAAC,eACpDL,IAAA,CAACJ,sBAAsB;QACrByB,KAAK,EAAE5B,cAAe;QACtB6B,WAAW,EAAEf,QAAQ,CAACQ,MAAO;QAC7BR,QAAQ,EAAEA;MAAS,CACpB,CAAC,eACFP,IAAA,CAACH,kBAAkB,IAAE,CAAC;IAAA,CAClB,CAAC,EAENiB,iBAAiB,iBAChBd,IAAA,CAACF,qBAAqB;MACpBS,QAAQ,EAAEA,QAAS;MACnBgB,iBAAiB,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGhB,gBAAiB;MACjDD,KAAK,EAAEA,KAAM;MACbF,eAAe,EAAEA;IAAgB,CAClC,CACF;EAAA,CACc,CAAC;AAEtB,CAAC;AAED,MAAMa,MAAM,GAAG7B,UAAU,CAACoC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE,CAAC;IACPC,eAAe,EAAErC,MAAM,CAACsC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
import { BORDER_RADIUS, COLORS, CorrectIcon, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { StyleSheet, View } from 'react-native';
|
|
6
|
+
import { StreakStatus } from "../../fluency.constants.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
const CIRCLE_SIZE = SPACING[800];
|
|
8
9
|
const CIRCLE_BORDER_RADIUS = BORDER_RADIUS[400];
|
|
9
10
|
const getStatusStyle = (status, streakColor) => {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
return {
|
|
12
|
+
[StreakStatus.GAINED]: {
|
|
12
13
|
circle: {
|
|
13
14
|
backgroundColor: streakColor.gained,
|
|
14
15
|
borderWidth: 1,
|
|
@@ -18,10 +19,8 @@ const getStatusStyle = (status, streakColor) => {
|
|
|
18
19
|
color: streakColor.gained
|
|
19
20
|
},
|
|
20
21
|
hasIcon: true
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (status === 'today') {
|
|
24
|
-
return {
|
|
22
|
+
},
|
|
23
|
+
[StreakStatus.TODAY]: {
|
|
25
24
|
circle: {
|
|
26
25
|
backgroundColor: COLORS.NEUTRAL_2,
|
|
27
26
|
borderWidth: 3,
|
|
@@ -31,19 +30,19 @@ const getStatusStyle = (status, streakColor) => {
|
|
|
31
30
|
color: streakColor.todayBorder
|
|
32
31
|
},
|
|
33
32
|
hasIcon: false
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
circle: {
|
|
38
|
-
backgroundColor: COLORS.NEUTRAL_2,
|
|
39
|
-
borderWidth: 1,
|
|
40
|
-
borderColor: COLORS.NEUTRAL_3
|
|
41
|
-
},
|
|
42
|
-
label: {
|
|
43
|
-
color: COLORS.NEUTRAL_4
|
|
44
33
|
},
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
[StreakStatus.MISSED]: {
|
|
35
|
+
circle: {
|
|
36
|
+
backgroundColor: COLORS.NEUTRAL_2,
|
|
37
|
+
borderWidth: 1,
|
|
38
|
+
borderColor: COLORS.NEUTRAL_3
|
|
39
|
+
},
|
|
40
|
+
label: {
|
|
41
|
+
color: COLORS.NEUTRAL_4
|
|
42
|
+
},
|
|
43
|
+
hasIcon: false
|
|
44
|
+
}
|
|
45
|
+
}[status];
|
|
47
46
|
};
|
|
48
47
|
export const StreakDay = ({
|
|
49
48
|
label,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BORDER_RADIUS","COLORS","CorrectIcon","HeadingVariants","SPACING","Typography","React","StyleSheet","View","jsx","_jsx","jsxs","_jsxs","CIRCLE_SIZE","CIRCLE_BORDER_RADIUS","getStatusStyle","status","streakColor","circle","backgroundColor","gained","borderWidth","borderColor","NEUTRAL_3","label","color","hasIcon","NEUTRAL_2","todayBorder","NEUTRAL_4","StreakDay","labelStyle","style","styles","container","children","NEUTRAL_1","variant","H3","create","alignItems","gap","width","height","borderRadius","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/fluency/components/day-streak-counter/DayStreak.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,MAAM,EACNC,WAAW,EACXC,eAAe,EACfC,OAAO,EACPC,UAAU,QACL,4BAA4B;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAaC,IAAI,QAAmB,cAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["BORDER_RADIUS","COLORS","CorrectIcon","HeadingVariants","SPACING","Typography","React","StyleSheet","View","StreakStatus","jsx","_jsx","jsxs","_jsxs","CIRCLE_SIZE","CIRCLE_BORDER_RADIUS","getStatusStyle","status","streakColor","GAINED","circle","backgroundColor","gained","borderWidth","borderColor","NEUTRAL_3","label","color","hasIcon","TODAY","NEUTRAL_2","todayBorder","MISSED","NEUTRAL_4","StreakDay","labelStyle","style","styles","container","children","NEUTRAL_1","variant","H3","create","alignItems","gap","width","height","borderRadius","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/fluency/components/day-streak-counter/DayStreak.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,MAAM,EACNC,WAAW,EACXC,eAAe,EACfC,OAAO,EACPC,UAAU,QACL,4BAA4B;AACnC,OAAOC,K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,KAAK;EAC3E,MAAM;IAAEE,MAAM;IAAEM,KAAK,EAAES,UAAU;IAAEP;EAAQ,CAAC,GAAGZ,cAAc,CAACC,MAAM,EAAEC,WAAW,CAAC;EAElF,oBACEL,KAAA,CAACL,IAAI;IAAC4B,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B5B,IAAA,CAACH,IAAI;MAAC4B,KAAK,EAAE,CAACC,MAAM,CAACjB,MAAM,EAAEA,MAAM,CAAE;MAAAmB,QAAA,EAClCX,OAAO,iBAAIjB,IAAA,CAACT,WAAW;QAACyB,KAAK,EAAE1B,MAAM,CAACuC;MAAU,CAAE;IAAC,CAChD,CAAC,eACP7B,IAAA,CAACN,UAAU;MAACoC,OAAO,EAAEtC,eAAe,CAACuC,EAAG;MAACN,KAAK,EAAED,UAAW;MAAAI,QAAA,EACxDb;IAAK,CACI,CAAC;EAAA,CACT,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAG9B,UAAU,CAACoC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,UAAU,EAAE,QAAQ;IACpBC,GAAG,EAAEzC,OAAO,CAAC,GAAG;EAClB,CAAC;EACDgB,MAAM,EAAE;IACN0B,KAAK,EAAEhC,WAAW;IAClBiC,MAAM,EAAEjC,WAAW;IACnBkC,YAAY,EAAEjC,oBAAoB;IAClC6B,UAAU,EAAE,QAAQ;IACpBK,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,40 +6,42 @@ import { BORDER_RADIUS, COLORS, SHADOWS, SPACING, Typography } from '@magmamath/
|
|
|
6
6
|
import { StreakDay } from "./DayStreak.js";
|
|
7
7
|
import { useFluencyModePreset } from "../../hooks/useFluencyModePreset.js";
|
|
8
8
|
import { useText } from "../../../../i18n/i18n.js";
|
|
9
|
+
import { useFluency } from "../../context/FluencyContext.js";
|
|
10
|
+
import { useStoreMap } from 'effector-react';
|
|
11
|
+
import { StreakStatus } from "../../fluency.constants.js";
|
|
9
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const ONE_DAY_MS = 86_400_000;
|
|
14
|
+
const DAY_LABEL_KEYS = ['student.fluency.dayMonday', 'student.fluency.dayTuesday', 'student.fluency.dayWednesday', 'student.fluency.dayThursday', 'student.fluency.dayFriday'];
|
|
15
|
+
const generateStreakDates = stats => {
|
|
16
|
+
const todayMs = new Date().setUTCHours(0, 0, 0, 0);
|
|
17
|
+
const startMs = Date.parse(stats.weekStart);
|
|
18
|
+
const practiced = new Set(stats.practicedDates.map(d => new Date(d).setUTCHours(0, 0, 0, 0)));
|
|
19
|
+
return [0, 1, 2, 3, 4].map(i => {
|
|
20
|
+
const dayMs = startMs + i * ONE_DAY_MS;
|
|
21
|
+
if (practiced.has(dayMs)) return StreakStatus.GAINED;
|
|
22
|
+
if (dayMs === todayMs) return StreakStatus.TODAY;
|
|
23
|
+
return StreakStatus.MISSED;
|
|
24
|
+
});
|
|
25
|
+
};
|
|
10
26
|
export const DayStreakCounter = () => {
|
|
11
27
|
const t = useText();
|
|
12
28
|
const {
|
|
13
|
-
|
|
14
|
-
} =
|
|
29
|
+
model
|
|
30
|
+
} = useFluency();
|
|
31
|
+
const modePreset = useFluencyModePreset();
|
|
32
|
+
const statuses = useStoreMap(model.streak.$stats, stats => stats ? generateStreakDates(stats) : []);
|
|
15
33
|
return /*#__PURE__*/_jsxs(View, {
|
|
16
34
|
style: styles.container,
|
|
17
35
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
18
36
|
style: styles.label,
|
|
19
37
|
children: t('student.fluency.practiceThisWeek')
|
|
20
|
-
}), /*#__PURE__*/
|
|
38
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
21
39
|
style: styles.streakDays,
|
|
22
|
-
children:
|
|
23
|
-
label: t(
|
|
24
|
-
status:
|
|
25
|
-
streakColor:
|
|
26
|
-
}
|
|
27
|
-
label: t('student.fluency.dayTuesday'),
|
|
28
|
-
status: "gained",
|
|
29
|
-
streakColor: header.streakColor
|
|
30
|
-
}), /*#__PURE__*/_jsx(StreakDay, {
|
|
31
|
-
label: t('student.fluency.dayWednesday'),
|
|
32
|
-
status: "missed",
|
|
33
|
-
streakColor: header.streakColor
|
|
34
|
-
}), /*#__PURE__*/_jsx(StreakDay, {
|
|
35
|
-
label: t('student.fluency.dayThursday'),
|
|
36
|
-
status: "today",
|
|
37
|
-
streakColor: header.streakColor
|
|
38
|
-
}), /*#__PURE__*/_jsx(StreakDay, {
|
|
39
|
-
label: t('student.fluency.dayFriday'),
|
|
40
|
-
status: "gained",
|
|
41
|
-
streakColor: header.streakColor
|
|
42
|
-
})]
|
|
40
|
+
children: DAY_LABEL_KEYS.map((key, i) => /*#__PURE__*/_jsx(StreakDay, {
|
|
41
|
+
label: t(key),
|
|
42
|
+
status: statuses[i] ?? StreakStatus.MISSED,
|
|
43
|
+
streakColor: modePreset.colors.streak
|
|
44
|
+
}, key))
|
|
43
45
|
})]
|
|
44
46
|
});
|
|
45
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","BORDER_RADIUS","COLORS","SHADOWS","SPACING","Typography","StreakDay","useFluencyModePreset","useText","jsx","_jsx","jsxs","_jsxs","DayStreakCounter","t","
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","BORDER_RADIUS","COLORS","SHADOWS","SPACING","Typography","StreakDay","useFluencyModePreset","useText","useFluency","useStoreMap","StreakStatus","jsx","_jsx","jsxs","_jsxs","ONE_DAY_MS","DAY_LABEL_KEYS","generateStreakDates","stats","todayMs","Date","setUTCHours","startMs","parse","weekStart","practiced","Set","practicedDates","map","d","i","dayMs","has","GAINED","TODAY","MISSED","DayStreakCounter","t","model","modePreset","statuses","streak","$stats","style","styles","container","children","label","streakDays","key","status","streakColor","colors","create","height","width","paddingVertical","paddingHorizontal","borderRadius","backgroundColor","NEUTRAL_1","fontSize","fontWeight","color","NEUTRAL_8","flexDirection","marginTop","gap"],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UAAU,CAACsD,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE,GAAG;IACVC,eAAe,EAAErD,OAAO,CAAC,GAAG,CAAC;IAC7BsD,iBAAiB,EAAEtD,OAAO,CAAC,GAAG,CAAC;IAC/BuD,YAAY,EAAE1D,aAAa,CAAC,GAAG,CAAC;IAChC2D,eAAe,EAAE1D,MAAM,CAAC2D,SAAS;IACjC,GAAG1D,OAAO,CAAC,CAAC;EACd,CAAC;EACD6C,KAAK,EAAE;IACLc,QAAQ,EAAE1D,OAAO,CAAC,GAAG,CAAC;IACtB2D,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE9D,MAAM,CAAC+D;EAChB,CAAC;EACDhB,UAAU,EAAE;IACViB,aAAa,EAAE,KAAK;IACpBC,SAAS,EAAE,EAAE;IACbC,GAAG,EAAEhE,OAAO,CAAC,GAAG;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, StyleSheet } from 'react-native';
|
|
5
5
|
import { COLORS, FONT_FAMILY, HeadingVariants, SPACING, Typography } from '@magmamath/react-native-ui';
|
|
6
|
-
import { useFluencyModePreset } from "
|
|
6
|
+
import { useFluencyModePreset } from "../../../hooks/useFluencyModePreset.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
8
|
export const EquationContent = ({
|
|
9
9
|
leftOperand,
|
|
10
10
|
rightOperand,
|
|
11
11
|
input = ''
|
|
12
12
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
const OperatorIcon =
|
|
13
|
+
const modePreset = useFluencyModePreset();
|
|
14
|
+
const OperatorIcon = modePreset.icon;
|
|
15
15
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
16
16
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
17
17
|
variant: HeadingVariants.H9,
|
|
@@ -23,7 +23,7 @@ export const EquationContent = ({
|
|
|
23
23
|
style: styles.number,
|
|
24
24
|
children: leftOperand
|
|
25
25
|
}), /*#__PURE__*/_jsx(OperatorIcon, {
|
|
26
|
-
color:
|
|
26
|
+
color: modePreset.colors.accent,
|
|
27
27
|
size: 36
|
|
28
28
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
29
29
|
style: styles.number,
|
|
@@ -35,7 +35,7 @@ export const EquationContent = ({
|
|
|
35
35
|
style: styles.answerBox,
|
|
36
36
|
children: /*#__PURE__*/_jsx(Typography, {
|
|
37
37
|
style: [styles.number, styles.answerText, {
|
|
38
|
-
color:
|
|
38
|
+
color: modePreset.colors.accent
|
|
39
39
|
}],
|
|
40
40
|
children: input
|
|
41
41
|
})
|
package/dist/module/features/fluency/components/fluency-solving/components/EquationContent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","COLORS","FONT_FAMILY","HeadingVariants","SPACING","Typography","useFluencyModePreset","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","EquationContent","leftOperand","rightOperand","input","modePreset","OperatorIcon","icon","children","variant","H9","style","styles","cardLabel","equationRow","number","color","colors","accent","size","equals","answerBox","answerText","create","fontSize","fontWeight","letterSpacing","marginBottom","NEUTRAL_7","flexDirection","alignItems","gap","marginTop","NEUTRAL_10","fontFamily","buenosAires","width","height","borderBottomWidth","borderBottomColor","position"],"sourceRoot":"../../../../../../../src","sources":["features/fluency/components/fluency-solving/components/EquationContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SACEC,MAAM,EACNC,WAAW,EACXC,eAAe,EACfC,OAAO,EACPC,UAAU,QACL,4BAA4B;AACnC,SAASC,oBAAoB,QAAQ,wCAAqC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAA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AC;AAED,MAAMQ,MAAM,GAAGxB,UAAU,CAACmC,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAEnC,OAAO,CAAC,GAAG,CAAC;IAC1BwB,KAAK,EAAE3B,MAAM,CAACuC;EAChB,CAAC;EACDd,WAAW,EAAE;IACXe,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,GAAG,EAAEvC,OAAO,CAAC,GAAG,CAAC;IACjBwC,SAAS,EAAExC,OAAO,CAAC,GAAG;EACxB,CAAC;EACDuB,MAAM,EAAE;IACNS,QAAQ,EAAE,EAAE;IACZR,KAAK,EAAE3B,MAAM,CAAC4C,UAAU;IACxBR,UAAU,EAAE,KAAK;IACjBS,UAAU,EAAE5C,WAAW,CAAC6C;EAC1B,CAAC;EACDf,MAAM,EAAE;IACNI,QAAQ,EAAE,EAAE;IACZR,KAAK,EAAE3B,MAAM,CAACuC,SAAS;IACvBH,UAAU,EAAE,KAAK;IACjBS,UAAU,EAAE5C,WAAW,CAAC6C;EAC1B,CAAC;EACDd,SAAS,EAAE;IACTe,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACVP,UAAU,EAAE,QAAQ;IACpBQ,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAElD,MAAM,CAAC4C;EAC5B,CAAC;EACDX,UAAU,EAAE;IACVkB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { useUnit } from 'effector-react';
|
|
4
5
|
import { View, StyleSheet } from 'react-native';
|
|
5
6
|
import Animated from 'react-native-reanimated';
|
|
6
7
|
import { BORDER_RADIUS, COLORS, SHADOWS } from '@magmamath/react-native-ui';
|
|
7
8
|
import { EquationContent } from "./EquationContent.js";
|
|
8
|
-
import {
|
|
9
|
-
import { useFluency } from "../../context/FluencyContext.js";
|
|
9
|
+
import { useFluency } from "../../../context/FluencyContext.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
export const FluencyEquationCard = ({
|
|
12
12
|
animationStyles
|
|
@@ -14,7 +14,15 @@ export const FluencyEquationCard = ({
|
|
|
14
14
|
const {
|
|
15
15
|
model
|
|
16
16
|
} = useFluency();
|
|
17
|
-
const
|
|
17
|
+
const {
|
|
18
|
+
answer,
|
|
19
|
+
fact
|
|
20
|
+
} = useUnit({
|
|
21
|
+
answer: model.solving.$answer,
|
|
22
|
+
fact: model.solving.$current
|
|
23
|
+
});
|
|
24
|
+
const left = fact?.numbers[0] ?? 0;
|
|
25
|
+
const right = fact?.numbers[1] ?? 0;
|
|
18
26
|
return /*#__PURE__*/_jsxs(View, {
|
|
19
27
|
style: styles.stack,
|
|
20
28
|
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
@@ -24,15 +32,15 @@ export const FluencyEquationCard = ({
|
|
|
24
32
|
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
25
33
|
style: [styles.card, styles.cardNear, animationStyles.near],
|
|
26
34
|
children: /*#__PURE__*/_jsx(EquationContent, {
|
|
27
|
-
leftOperand:
|
|
28
|
-
rightOperand:
|
|
35
|
+
leftOperand: left,
|
|
36
|
+
rightOperand: right
|
|
29
37
|
})
|
|
30
38
|
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
31
39
|
style: [styles.card, styles.cardFront, animationStyles.front],
|
|
32
40
|
children: /*#__PURE__*/_jsx(EquationContent, {
|
|
33
|
-
leftOperand:
|
|
34
|
-
rightOperand:
|
|
35
|
-
input:
|
|
41
|
+
leftOperand: left,
|
|
42
|
+
rightOperand: right,
|
|
43
|
+
input: answer?.toString() ?? ''
|
|
36
44
|
})
|
|
37
45
|
})]
|
|
38
46
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useUnit","View","StyleSheet","Animated","BORDER_RADIUS","COLORS","SHADOWS","EquationContent","useFluency","jsx","_jsx","jsxs","_jsxs","FluencyEquationCard","animationStyles","model","answer","fact","solving","$answer","$current","left","numbers","right","style","styles","stack","children","card","cardFar","far","cardMid","mid","cardNear","near","leftOperand","rightOperand","cardFront","front","input","toString","create","width","maxWidth","height","borderRadius","backgroundColor","NEUTRAL_1","position","top","opacity","alignItems","justifyContent"],"sourceRoot":"../../../../../../../src","sources":["features/fluency/components/fluency-solving/components/FluencyEquationCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,aAAa,EAAEC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AAC3E,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,UAAU,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO5D,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC;AAA0C,CAAC,KAAK;EACpF,MAAM;IAAEC;EAAM,CAAC,GAAGP,UAAU,CAAC,CAAC;EAC9B,MAAM;IAAEQ,MAAM;IAAEC;EAAK,CAAC,GAAGjB,OAAO,CAAC;IAC/BgB,MAAM,EAAED,KAAK,CAACG,OAAO,CAACC,OAAO;IAC7BF,IAAI,EAAEF,KAAK,CAACG,OAAO,CAACE;EACtB,CAAC,CAAC;EAEF,MAAMC,IAAI,GAAGJ,IAAI,EAAEK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;EAClC,MAAMC,KAAK,GAAGN,IAAI,EAAEK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;EAEnC,oBACEV,KAAA,CAACX,IAAI;IAACuB,KAAK,EAAEC,MAA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,OAAO,CAAC,CAAC;EACd,CAAC;EACDuB,OAAO,EAAE;IACPmB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACP5B,IAAI,EAAE,EAAE;IACRE,KAAK,EAAE,EAAE;IACT2B,OAAO,EAAE;EACX,CAAC;EACDnB,OAAO,EAAE;IACPiB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACP5B,IAAI,EAAE,EAAE;IACRE,KAAK,EAAE;EACT,CAAC;EACDU,QAAQ,EAAE;IACRe,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IACP5B,IAAI,EAAE,EAAE;IACRE,KAAK,EAAE,EAAE;IACT4B,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxB,GAAG9C,OAAO,CAAC,CAAC;EACd,CAAC;EACD+B,SAAS,EAAE;IACTc,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import { FONT_FAMILY, SelectGroup, SelectOptionColor, SelectOptionSize, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
+
import { useFluencyNumpad } from "../../../hooks/useFluencyNumpad.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
export const FluencyNumpad = ({
|
|
9
|
+
onEnterPress
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
options
|
|
13
|
+
} = useFluencyNumpad({
|
|
14
|
+
onEnterPress
|
|
15
|
+
});
|
|
16
|
+
return /*#__PURE__*/_jsx(View, {
|
|
17
|
+
style: styles.container,
|
|
18
|
+
children: /*#__PURE__*/_jsx(SelectGroup, {
|
|
19
|
+
numOfRows: 4,
|
|
20
|
+
color: SelectOptionColor.GREY,
|
|
21
|
+
size: SelectOptionSize.SMALL,
|
|
22
|
+
options: options,
|
|
23
|
+
style: {
|
|
24
|
+
container: styles.grid,
|
|
25
|
+
row: styles.row,
|
|
26
|
+
option: {
|
|
27
|
+
button: styles.optionButton,
|
|
28
|
+
text: styles.optionText
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
paddingVertical: SPACING[400],
|
|
38
|
+
marginTop: SPACING[200]
|
|
39
|
+
},
|
|
40
|
+
grid: {
|
|
41
|
+
width: 360,
|
|
42
|
+
gap: SPACING[200]
|
|
43
|
+
},
|
|
44
|
+
row: {
|
|
45
|
+
gap: SPACING[200]
|
|
46
|
+
},
|
|
47
|
+
optionButton: {
|
|
48
|
+
height: 60
|
|
49
|
+
},
|
|
50
|
+
optionText: {
|
|
51
|
+
fontSize: 24,
|
|
52
|
+
fontWeight: '700',
|
|
53
|
+
fontFamily: FONT_FAMILY.buenosAires
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=FluencyNumpad.js.map
|
package/dist/module/features/fluency/components/fluency-solving/components/FluencyNumpad.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","FONT_FAMILY","SelectGroup","SelectOptionColor","SelectOptionSize","SPACING","useFluencyNumpad","jsx","_jsx","FluencyNumpad","onEnterPress","options","style","styles","container","children","numOfRows","color","GREY","size","SMALL","grid","row","option","button","optionButton","text","optionText","create","alignItems","paddingVertical","marginTop","width","gap","height","fontSize","fontWeight","fontFamily","buenosAires"],"sourceRoot":"../../../../../../../src","sources":["features/fluency/components/fluency-solving/components/FluencyNumpad.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WA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