@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionOutcome } from '../fluencySolving.types';
|
|
3
|
+
type FluencySolvingProgressProps = {
|
|
4
|
+
total: number;
|
|
5
|
+
activeIndex: number;
|
|
6
|
+
outcomes: QuestionOutcome[];
|
|
7
|
+
};
|
|
8
|
+
export declare const FluencySolvingProgress: ({ total, activeIndex, outcomes, }: FluencySolvingProgressProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=FluencySolvingProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FluencySolvingProgress.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/fluency/components/fluency-solving/components/FluencySolvingProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE9D,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,eAAe,EAAE,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,sBAAsB,sCAIhC,2BAA2B,sBAa7B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FluencyMode } from '../../fluency.constants';
|
|
2
|
+
import type { PickerParams } from './fluencySolving.types';
|
|
3
|
+
export declare const DEFAULT_PICKER_PARAMS: PickerParams;
|
|
4
|
+
export declare const MODE_ANSWER_EVAL_FORMULA: Record<FluencyMode, (a: number, b: number) => number>;
|
|
5
|
+
//# sourceMappingURL=fluencySolving.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluencySolving.constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/fluency-solving/fluencySolving.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAS1D,eAAO,MAAM,qBAAqB,EAAE,YAOnC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAK1F,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluencyMode } from '../../fluency.constants';
|
|
2
|
+
import type { Fact } from '../../fluency.types';
|
|
3
|
+
import type { PickerParams, SolvingFact } from './fluencySolving.types';
|
|
4
|
+
export declare function toSolvingFacts(factMap: Record<string, Fact>, mode: FluencyMode): SolvingFact[];
|
|
5
|
+
export declare function selectNextFact(facts: SolvingFact[], now: number, params?: PickerParams): SolvingFact | null;
|
|
6
|
+
type BoxTransitionParams = {
|
|
7
|
+
currentBox: number;
|
|
8
|
+
isCorrect: boolean;
|
|
9
|
+
isFast: boolean;
|
|
10
|
+
sessionStartBox: number;
|
|
11
|
+
hasFailedThisSession: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function calculateNextBox({ currentBox, isCorrect, isFast, sessionStartBox, hasFailedThisSession, }: BoxTransitionParams): number;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=fluencySolving.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluencySolving.helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/fluency-solving/fluencySolving.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEvE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,EAAE,CAgB9F;AAqBD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,WAAW,EAAE,EACpB,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,YAAoC,GAC3C,WAAW,GAAG,IAAI,CAUpB;AAED,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,oBAAoB,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,SAAS,EACT,MAAM,EACN,eAAe,EACf,oBAAoB,GACrB,EAAE,mBAAmB,GAAG,MAAM,CAK9B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type SolvingFact = {
|
|
2
|
+
id: string;
|
|
3
|
+
numbers: readonly [number, number];
|
|
4
|
+
answer: number;
|
|
5
|
+
difficulty: number;
|
|
6
|
+
box: number;
|
|
7
|
+
lastSeenMs: number | null;
|
|
8
|
+
sessionStartBox: number;
|
|
9
|
+
hasFailedThisSession: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type QuestionOutcome = 'correct' | 'wrong';
|
|
12
|
+
export type PickerParams = {
|
|
13
|
+
wDue: number;
|
|
14
|
+
wWeak: number;
|
|
15
|
+
wEase: number;
|
|
16
|
+
wRand: number;
|
|
17
|
+
numBoxes: number;
|
|
18
|
+
boxIntervals: readonly number[];
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=fluencySolving.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluencySolving.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/fluency-solving/fluencySolving.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,oBAAoB,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;CAChC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencyMatrix.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/matrix/FluencyMatrix.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"FluencyMatrix.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/matrix/FluencyMatrix.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,aAAa,yBAQzB,CAAA"}
|
package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixCell.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
score: number | null;
|
|
7
|
-
mastery: FluencyModePreset['matrix']['mastery'];
|
|
2
|
+
import { FluencyMasteryLevel } from '../../../fluency.constants';
|
|
3
|
+
import type { GridCell } from '../../../fluency.types';
|
|
4
|
+
type MatrixCellProps = GridCell & {
|
|
5
|
+
levelColors: Record<FluencyMasteryLevel, string>;
|
|
8
6
|
};
|
|
9
|
-
export declare const MatrixCell: ({
|
|
7
|
+
export declare const MatrixCell: ({ label, box, isHeader, levelColors, divisor }: MatrixCellProps) => React.JSX.Element;
|
|
10
8
|
export {};
|
|
11
9
|
//# sourceMappingURL=MatrixCell.d.ts.map
|
package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixCell.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatrixCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/fluency/components/matrix/components/MatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"MatrixCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/fluency/components/matrix/components/MatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAEhE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,KAAK,eAAe,GAAG,QAAQ,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;CACjD,CAAA;AAED,eAAO,MAAM,UAAU,mDAAoD,eAAe,sBAyBzF,CAAA"}
|
package/dist/typescript/commonjs/features/fluency/components/matrix/components/MatrixFill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatrixFill.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/fluency/components/matrix/components/MatrixFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"MatrixFill.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/fluency/components/matrix/components/MatrixFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,eAAO,MAAM,UAAU,gCAkBtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/mobile-menu/MobileMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,UAAU,gBAAiB,eAAe,6BAWtD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMathOperator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/select-math-operator/SelectMathOperator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SelectMathOperator.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/select-math-operator/SelectMathOperator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,eAAO,MAAM,kBAAkB,yBA8B9B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { QuestionOutcome, SolvingFact } from '../fluency-solving/fluencySolving.types';
|
|
3
|
+
type FluencySessionResultsProps = {
|
|
4
|
+
outcomes: QuestionOutcome[];
|
|
5
|
+
sessionDurationMs: number;
|
|
6
|
+
facts: SolvingFact[];
|
|
7
|
+
onEndModalPress?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const FluencySessionResults: ({ outcomes, sessionDurationMs, facts, onEndModalPress, }: FluencySessionResultsProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FluencySessionResults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FluencySessionResults.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/session-results/FluencySessionResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAM3F,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,iBAAiB,EAAE,MAAM,CAAA;IACzB,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B,CAAA;AAgED,eAAO,MAAM,qBAAqB,6DAK/B,0BAA0B,sBAwD5B,CAAA"}
|
package/dist/typescript/commonjs/features/fluency/components/session-results/SessionStatCard.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type StatCardVariant = 'on-fire' | 'speedy' | 'amazing';
|
|
3
|
+
type SessionStatCardProps = {
|
|
4
|
+
variant: StatCardVariant;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const SessionStatCard: ({ variant, value }: SessionStatCardProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=SessionStatCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionStatCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/session-results/SessionStatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAYxC,KAAK,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;AASvD,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAuBD,eAAO,MAAM,eAAe,uBAAwB,oBAAoB,sBAkBvE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SkillProgressionRowProps = {
|
|
3
|
+
symbol: string;
|
|
4
|
+
symbolColor: string;
|
|
5
|
+
symbolBackground: string;
|
|
6
|
+
operationName: string;
|
|
7
|
+
levelLabel: string;
|
|
8
|
+
levelColor: string;
|
|
9
|
+
progressRate: number;
|
|
10
|
+
progressColor: string;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const SkillProgressionRow: ({ symbol, symbolColor, symbolBackground, operationName, levelLabel, levelColor, progressRate, progressColor, isActive, }: SkillProgressionRowProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=SkillProgressionRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillProgressionRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/fluency/components/session-results/SkillProgressionRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,KAAK,wBAAwB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,6HAU7B,wBAAwB,sBAoB1B,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { FluencyColorPalette, FluencyModeConfig, FluencyModePreset } from './fluency.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const FALLBACK_MATRIX_SIZE = 21;
|
|
3
3
|
export declare const MAX_INPUT_LENGTH = 3;
|
|
4
|
+
export declare const SESSION_LENGTH = 20;
|
|
5
|
+
export declare const TIME_THRESHOLD_MS = 4000;
|
|
4
6
|
export declare enum FluencyMode {
|
|
5
|
-
ADDITION = "
|
|
6
|
-
SUBTRACTION = "
|
|
7
|
-
MULTIPLICATION = "
|
|
8
|
-
DIVISION = "
|
|
7
|
+
ADDITION = "addition",
|
|
8
|
+
SUBTRACTION = "subtraction",
|
|
9
|
+
MULTIPLICATION = "multiplication",
|
|
10
|
+
DIVISION = "division"
|
|
9
11
|
}
|
|
10
12
|
export declare enum FluencyMasteryLevel {
|
|
11
13
|
LEARNING = "learning",
|
|
@@ -19,6 +21,11 @@ export declare enum FluencyColorFamily {
|
|
|
19
21
|
BLUE = "BLUE",
|
|
20
22
|
PURPLE = "PURPLE"
|
|
21
23
|
}
|
|
24
|
+
export declare enum StreakStatus {
|
|
25
|
+
MISSED = "missed",
|
|
26
|
+
GAINED = "gained",
|
|
27
|
+
TODAY = "today"
|
|
28
|
+
}
|
|
22
29
|
export declare const COLOR_FAMILY_PALETTES: Record<FluencyColorFamily, FluencyColorPalette>;
|
|
23
30
|
export declare const FLUENCY_MODES: readonly FluencyModeConfig[];
|
|
24
31
|
export declare const FLUENCY_MODE_PRESETS: Record<FluencyMode, FluencyModePreset>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluency.constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/fluency/fluency.constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAGhG,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"fluency.constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/fluency/fluency.constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAGhG,eAAO,MAAM,oBAAoB,KAAK,CAAA;AACtC,eAAO,MAAM,gBAAgB,IAAI,CAAA;AACjC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAErC,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;CACtB;AAED,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAqBjF,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,iBAAiB,EAyBrD,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAE7B,CAAA"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import { FluencyColorFamily, FluencyMasteryLevel, FluencyMode } from './fluency.constants';
|
|
3
|
-
import type { FluencyModeConfig,
|
|
3
|
+
import type { FluencyModeConfig, GetMatrixResponse, MatrixGrid } from './fluency.types';
|
|
4
4
|
import type { TranslationKey } from '../../i18n/i18n';
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const getCellColorByScore: (score: number, mastery: FluencyModePreset["matrix"]["mastery"]) => string;
|
|
7
|
-
export declare const getCellBackground: (row: number, col: number) => string;
|
|
8
|
-
export declare const getCellLabel: (row: number, col: number) => number | null;
|
|
5
|
+
export declare const getMasteryLevelByBox: (box: number) => FluencyMasteryLevel;
|
|
9
6
|
type CreateFluencyModeParams = {
|
|
10
7
|
mode: FluencyMode;
|
|
11
8
|
label: TranslationKey;
|
|
@@ -15,5 +12,6 @@ type CreateFluencyModeParams = {
|
|
|
15
12
|
colorFamily: FluencyColorFamily;
|
|
16
13
|
};
|
|
17
14
|
export declare const createFluencyMode: ({ mode, label, icon, colorFamily, }: CreateFluencyModeParams) => FluencyModeConfig;
|
|
15
|
+
export declare const buildMatrixGrid: (data: GetMatrixResponse, mode: FluencyMode) => MatrixGrid;
|
|
18
16
|
export {};
|
|
19
17
|
//# sourceMappingURL=fluency.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluency.helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/fluency/fluency.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"fluency.helpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/fluency/fluency.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,EAEZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAY,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGrD,eAAO,MAAM,oBAAoB,QAAS,MAAM,KAAG,mBAKlD,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;IACrB,IAAI,EAAE,aAAa,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACvC,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,iBAAiB,wCAK3B,uBAAuB,KAAG,iBAsB5B,CAAA;AAED,eAAO,MAAM,eAAe,SAAU,iBAAiB,QAAQ,WAAW,KAAG,UAoC5E,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import type { ButtonColor, SelectOptionColor } from '@magmamath/react-native-ui';
|
|
3
|
-
import type { FluencyMode } from './fluency.constants';
|
|
3
|
+
import type { FluencyMasteryLevel, FluencyMode } from './fluency.constants';
|
|
4
4
|
import type { TranslationKey } from '../../i18n/i18n';
|
|
5
5
|
export type LegendItem = {
|
|
6
6
|
label: string;
|
|
@@ -26,13 +26,8 @@ export type FluencyModePreset = {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
matrix: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
learning: string;
|
|
32
|
-
growing: string;
|
|
33
|
-
strong: string;
|
|
34
|
-
mastered: string;
|
|
35
|
-
};
|
|
29
|
+
operatorLabel: TranslationKey;
|
|
30
|
+
levelColors: Record<FluencyMasteryLevel, string>;
|
|
36
31
|
};
|
|
37
32
|
};
|
|
38
33
|
export type FluencyModeConfig = {
|
|
@@ -44,4 +39,59 @@ export type FluencyModeConfig = {
|
|
|
44
39
|
select: SelectOptionColor;
|
|
45
40
|
preset: FluencyModePreset;
|
|
46
41
|
};
|
|
42
|
+
export type GetMatrixPayload = {
|
|
43
|
+
grade: number;
|
|
44
|
+
};
|
|
45
|
+
export type FluencyAttemptPayload = {};
|
|
46
|
+
export type FluencyAttemptResponse = {};
|
|
47
|
+
export type FluencyModelProps = {
|
|
48
|
+
api: {
|
|
49
|
+
getMatrix: (payload: GetMatrixPayload) => Promise<GetMatrixResponse>;
|
|
50
|
+
getWeeklyStats: () => Promise<GetWeeklyStatsResponse>;
|
|
51
|
+
postAttempt: (payload: FluencyAttemptPayload) => Promise<FluencyAttemptResponse>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export type FluencyModelGateProps = {
|
|
55
|
+
grade: number;
|
|
56
|
+
};
|
|
57
|
+
type FactPosition = {
|
|
58
|
+
column: number;
|
|
59
|
+
row: number;
|
|
60
|
+
};
|
|
61
|
+
export type Fact = {
|
|
62
|
+
attemptsCount: number;
|
|
63
|
+
averageTimeMs: number | null;
|
|
64
|
+
box: number | null;
|
|
65
|
+
correctCount: number;
|
|
66
|
+
difficulty: number;
|
|
67
|
+
lastAttemptedAt: string | null;
|
|
68
|
+
lastSolvedAt: string | null;
|
|
69
|
+
numbers: readonly [number, number];
|
|
70
|
+
position: FactPosition;
|
|
71
|
+
streak: number;
|
|
72
|
+
};
|
|
73
|
+
type Operator = 'addition' | 'subtraction' | 'multiplication' | 'division';
|
|
74
|
+
type Operation = {
|
|
75
|
+
completionRate: number;
|
|
76
|
+
grade: number | null;
|
|
77
|
+
facts: Record<string, Fact>;
|
|
78
|
+
};
|
|
79
|
+
export type GetMatrixResponse = {
|
|
80
|
+
studentId: string;
|
|
81
|
+
operations: Record<Operator, Operation>;
|
|
82
|
+
};
|
|
83
|
+
export type GetWeeklyStatsResponse = {
|
|
84
|
+
daysPracticed: number;
|
|
85
|
+
daysWithoutPractice: number;
|
|
86
|
+
practicedDates: string[];
|
|
87
|
+
weekStart: string;
|
|
88
|
+
};
|
|
89
|
+
export type GridCell = {
|
|
90
|
+
isHeader: boolean;
|
|
91
|
+
label: number | null;
|
|
92
|
+
box: number | null;
|
|
93
|
+
divisor: number | null;
|
|
94
|
+
};
|
|
95
|
+
export type MatrixGrid = GridCell[][];
|
|
96
|
+
export {};
|
|
47
97
|
//# sourceMappingURL=fluency.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fluency.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/fluency/fluency.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"fluency.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/fluency/fluency.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IACjD,MAAM,EAAE,WAAW,CAAA;IACnB,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,aAAa,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE;QACN,WAAW,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;KACrD,CAAA;IACD,MAAM,EAAE;QACN,aAAa,EAAE,cAAc,CAAA;QAC7B,WAAW,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;KACjD,CAAA;CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;IACrB,IAAI,EAAE,aAAa,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACvC,MAAM,EAAE,iBAAiB,CAAA;IACzB,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,EAAE,CAAA;AAEtC,MAAM,MAAM,sBAAsB,GAAG,EAAE,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE;QACH,SAAS,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAA;QACpE,cAAc,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;QACrD,WAAW,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;KACjF,CAAA;CACF,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,IAAI,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,OAAO,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,QAAQ,EAAE,YAAY,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,gBAAgB,GAAG,UAAU,CAAA;AAE1E,KAAK,SAAS,GAAG;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,QAAQ,EAAE,EAAE,CAAA"}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ButtonColor } from '@magmamath/react-native-ui';
|
|
3
|
+
import { FluencyMasteryLevel } from '../fluency.constants';
|
|
4
|
+
import type { LegendItem } from '../fluency.types';
|
|
5
|
+
type UseFluencyModePresetResult = {
|
|
6
|
+
icon: ComponentType<{
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
}>;
|
|
10
|
+
label: string;
|
|
11
|
+
colors: {
|
|
12
|
+
level: Record<FluencyMasteryLevel, string>;
|
|
13
|
+
accent: string;
|
|
14
|
+
streak: {
|
|
15
|
+
gained: string;
|
|
16
|
+
todayBorder: string;
|
|
17
|
+
};
|
|
18
|
+
button: ButtonColor;
|
|
19
|
+
};
|
|
20
|
+
legend: {
|
|
21
|
+
items: LegendItem[];
|
|
22
|
+
};
|
|
4
23
|
};
|
|
5
24
|
export declare const useFluencyModePreset: () => UseFluencyModePresetResult;
|
|
6
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFluencyModePreset.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/hooks/useFluencyModePreset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFluencyModePreset.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/hooks/useFluencyModePreset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAwB,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAIlD,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;QAC1C,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;QAC/C,MAAM,EAAE,WAAW,CAAA;KACpB,CAAA;IACD,MAAM,EAAE;QAAE,KAAK,EAAE,UAAU,EAAE,CAAA;KAAE,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,oBAAoB,QAAO,0BAyBvC,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type UseFluencyNumpadProps = {
|
|
3
|
+
onEnterPress: () => void;
|
|
4
|
+
};
|
|
5
|
+
export declare const useFluencyNumpad: ({ onEnterPress }: UseFluencyNumpadProps) => {
|
|
6
|
+
options: {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
customColorScheme: {
|
|
9
|
+
1: {
|
|
10
|
+
backgroundColor: "#f2f2f4";
|
|
11
|
+
borderColor: "#ccccd2";
|
|
12
|
+
raiseColor: "#ccccd2";
|
|
13
|
+
color: "#4d4d63";
|
|
14
|
+
};
|
|
15
|
+
0: {
|
|
16
|
+
backgroundColor: "#fafafb";
|
|
17
|
+
borderColor: "#e6e6e9";
|
|
18
|
+
raiseColor: "#e6e6e9";
|
|
19
|
+
color: "#4d4d63";
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
1: {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
borderColor: string;
|
|
25
|
+
raiseColor: string;
|
|
26
|
+
color: "#fff";
|
|
27
|
+
};
|
|
28
|
+
0: {
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
borderColor: string;
|
|
31
|
+
raiseColor: string;
|
|
32
|
+
color: "#fff";
|
|
33
|
+
};
|
|
34
|
+
3: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
raiseColor: string;
|
|
38
|
+
color: "#fff";
|
|
39
|
+
};
|
|
40
|
+
2: {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
borderColor: string;
|
|
43
|
+
raiseColor: string;
|
|
44
|
+
color: "#fff";
|
|
45
|
+
};
|
|
46
|
+
} | undefined;
|
|
47
|
+
onPressIn: () => void;
|
|
48
|
+
key: string;
|
|
49
|
+
title: string | React.ReactNode;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=useFluencyNumpad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFluencyNumpad.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/hooks/useFluencyNumpad.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAyD1D,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,gBAAgB,qBAAsB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAlDjE,MAAM;eACJ,MAAM,GAAG,KAAK,CAAC,SAAS;;CA8IhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSuccessSound.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/hooks/useSuccessSound.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSuccessSound.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/hooks/useSuccessSound.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;CAe3B,CAAA"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { Effect } from 'effector';
|
|
2
|
+
import type { FluencyAttemptPayload, FluencyAttemptResponse, FluencyModelProps, GetMatrixPayload, GetMatrixResponse, GetWeeklyStatsResponse } from '../fluency.types';
|
|
2
3
|
export declare class FluencyApiModel {
|
|
3
|
-
|
|
4
|
+
readonly getMatrixFx: Effect<GetMatrixPayload, GetMatrixResponse>;
|
|
5
|
+
readonly getWeeklyStatsFx: Effect<void, GetWeeklyStatsResponse>;
|
|
6
|
+
readonly postAttemptFx: Effect<FluencyAttemptPayload, FluencyAttemptResponse>;
|
|
7
|
+
constructor(api: FluencyModelProps['api']);
|
|
4
8
|
}
|
|
5
|
-
export {};
|
|
6
9
|
//# sourceMappingURL=FluencyApiModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencyApiModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyApiModel.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FluencyApiModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyApiModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,kBAAkB,CAAA;AAEzB,qBAAa,eAAe;IAC1B,SAAgB,WAAW,EAAE,MAAM,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAA;IACxE,SAAgB,gBAAgB,EAAE,MAAM,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAA;IACtE,SAAgB,aAAa,EAAE,MAAM,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAAA;gBAExE,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC;CAK1C"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { FluencyApiModel } from './FluencyApiModel';
|
|
2
|
+
import type { GetWeeklyStatsResponse } from '../fluency.types';
|
|
1
3
|
export declare class FluencyDaysStreakModel {
|
|
4
|
+
private readonly api;
|
|
5
|
+
readonly $stats: import("effector").StoreWritable<GetWeeklyStatsResponse | null>;
|
|
6
|
+
constructor(api: FluencyApiModel);
|
|
2
7
|
}
|
|
3
8
|
//# sourceMappingURL=FluencyDaysStreakModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencyDaysStreakModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyDaysStreakModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FluencyDaysStreakModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyDaysStreakModel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAE9D,qBAAa,sBAAsB;IAGrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAFhC,SAAgB,MAAM,kEAAmD;gBAE5C,GAAG,EAAE,eAAe;CAGlD"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { FluencyMode } from '../fluency.constants';
|
|
2
|
+
import type { GetMatrixResponse, MatrixGrid } from '../fluency.types';
|
|
3
|
+
import type { FluencyApiModel } from './FluencyApiModel';
|
|
1
4
|
export declare class FluencyMatrixModel {
|
|
5
|
+
private readonly api;
|
|
6
|
+
readonly setMode: import("effector").EventCallable<FluencyMode>;
|
|
7
|
+
readonly $mode: import("effector").StoreWritable<FluencyMode>;
|
|
8
|
+
readonly $data: import("effector").StoreWritable<GetMatrixResponse | null>;
|
|
9
|
+
readonly $matrix: import("effector").Store<MatrixGrid | null>;
|
|
10
|
+
constructor(api: FluencyApiModel);
|
|
2
11
|
}
|
|
3
12
|
//# sourceMappingURL=FluencyMatrixModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencyMatrixModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyMatrixModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FluencyMatrixModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyMatrixModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,qBAAa,kBAAkB;IAUjB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAThC,SAAgB,OAAO,gDAA6B;IACpD,SAAgB,KAAK,gDAA8C;IAEnE,SAAgB,KAAK,6DAA8C;IACnE,SAAgB,OAAO,8CAGrB;gBAE2B,GAAG,EAAE,eAAe;CAGlD"}
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import type { Effect } from 'effector';
|
|
2
|
-
import { FluencyMode } from '../fluency.constants';
|
|
3
1
|
import { FluencyDaysStreakModel } from './FluencyDaysStreakModel';
|
|
4
2
|
import { FluencyMatrixModel } from './FluencyMatrixModel';
|
|
5
3
|
import { FluencyApiModel } from './FluencyApiModel';
|
|
6
4
|
import { FluencySolvingModel } from './FluencySolvingModel';
|
|
7
|
-
import {
|
|
8
|
-
type SubmitResult = {
|
|
9
|
-
isCorrect: boolean;
|
|
10
|
-
};
|
|
11
|
-
type FluencyModelProps = {
|
|
12
|
-
api: {};
|
|
13
|
-
};
|
|
5
|
+
import type { FluencyModelProps, FluencyModelGateProps } from '../fluency.types';
|
|
14
6
|
export declare class FluencyModel {
|
|
7
|
+
readonly gate: import("effector-react").Gate<FluencyModelGateProps>;
|
|
15
8
|
readonly api: FluencyApiModel;
|
|
16
9
|
readonly streak: FluencyDaysStreakModel;
|
|
17
10
|
readonly matrix: FluencyMatrixModel;
|
|
18
11
|
readonly solving: FluencySolvingModel;
|
|
19
|
-
readonly input: FluencyInputModel;
|
|
20
|
-
readonly submitFx: Effect<void, SubmitResult, Error>;
|
|
21
|
-
readonly setMode: import("effector").EventCallable<FluencyMode>;
|
|
22
|
-
readonly $mode: import("effector").StoreWritable<FluencyMode>;
|
|
23
|
-
checkAnswer(): boolean;
|
|
24
12
|
constructor({ api }: FluencyModelProps);
|
|
13
|
+
private init;
|
|
25
14
|
}
|
|
26
|
-
export {};
|
|
27
15
|
//# sourceMappingURL=FluencyModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencyModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FluencyModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencyModel.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAEhF,qBAAa,YAAY;IACvB,SAAgB,IAAI,uDAAsC;IAE1D,SAAgB,GAAG,EAAE,eAAe,CAAA;IACpC,SAAgB,MAAM,EAAE,sBAAsB,CAAA;IAC9C,SAAgB,MAAM,EAAE,kBAAkB,CAAA;IAC1C,SAAgB,OAAO,EAAE,mBAAmB,CAAA;gBAEhC,EAAE,GAAG,EAAE,EAAE,iBAAiB;IAStC,OAAO,CAAC,IAAI;CAOb"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
answer: number;
|
|
5
|
-
};
|
|
1
|
+
import { FluencyMode } from '../fluency.constants';
|
|
2
|
+
import type { QuestionOutcome, SolvingFact } from '../components/fluency-solving/fluencySolving.types';
|
|
3
|
+
import type { FluencyMatrixModel } from './FluencyMatrixModel';
|
|
6
4
|
export declare class FluencySolvingModel {
|
|
7
|
-
readonly
|
|
5
|
+
private readonly matrixModel;
|
|
6
|
+
readonly reset: import("effector").EventCallable<void>;
|
|
7
|
+
readonly setAnswer: import("effector").EventCallable<number | null>;
|
|
8
|
+
private readonly setFacts;
|
|
9
|
+
private readonly setCurrent;
|
|
10
|
+
private readonly setOutcomes;
|
|
11
|
+
private readonly setSessionStartTime;
|
|
12
|
+
private readonly setQuestionStartTime;
|
|
13
|
+
readonly $answer: import("effector").StoreWritable<number | null>;
|
|
14
|
+
readonly $facts: import("effector").StoreWritable<SolvingFact[]>;
|
|
15
|
+
readonly $current: import("effector").StoreWritable<SolvingFact | null>;
|
|
16
|
+
readonly $outcomes: import("effector").StoreWritable<QuestionOutcome[]>;
|
|
17
|
+
readonly $sessionStartTime: import("effector").StoreWritable<number>;
|
|
18
|
+
private readonly $questionStartTime;
|
|
19
|
+
constructor(matrixModel: FluencyMatrixModel);
|
|
20
|
+
start(mode?: FluencyMode): void;
|
|
21
|
+
submit(): void;
|
|
8
22
|
}
|
|
9
|
-
export {};
|
|
10
23
|
//# sourceMappingURL=FluencySolvingModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FluencySolvingModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencySolvingModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FluencySolvingModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency/model/FluencySolvingModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAqC,MAAM,sBAAsB,CAAA;AAMrF,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAA;AACtG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,qBAAa,mBAAmB;IAgBlB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAfxC,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,SAAS,kDAA+B;IACxD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoC;IAC/D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAC/D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAwB;IAC5D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IAE7D,SAAgB,OAAO,kDAAkD;IACzE,SAAgB,MAAM,kDAA+C;IACrE,SAAgB,QAAQ,uDAAmD;IAC3E,SAAgB,SAAS,sDAAkD;IAC3E,SAAgB,iBAAiB,2CAAyD;IAC1F,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA0D;gBAEhE,WAAW,EAAE,kBAAkB;IAErD,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW;IAexB,MAAM;CA6Bd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB"}
|