@magmamath/students-features 0.9.1-rc.4 → 0.9.1-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +3 -10
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +4 -2
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +3 -5
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +1 -2
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +2 -9
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/helpers.js +3 -10
- package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/model/model.js +0 -7
- package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +2 -5
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
- package/dist/commonjs/features/gifCelebrations/components/Gif.js +1 -1
- package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -9
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +3 -13
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +5 -4
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +2 -3
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js +2 -3
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -6
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +3 -10
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/constants.js +8 -1
- package/dist/commonjs/features/keyboard/components/constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +1 -3
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +0 -27
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +0 -1
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +0 -1
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +2 -2
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +3 -10
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/EOAModal.js +4 -2
- package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +4 -6
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -3
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +2 -9
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/helpers.js +2 -8
- package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/module/features/endOfAssignment/model/model.js +0 -7
- package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +3 -6
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js.map +1 -1
- package/dist/module/features/gifCelebrations/components/Gif.js +1 -1
- package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -9
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +3 -13
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +5 -4
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js +2 -3
- package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/helpers.js +2 -3
- package/dist/module/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -6
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +3 -10
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/constants.js +8 -1
- package/dist/module/features/keyboard/components/constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +1 -3
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +0 -27
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/keyboardGroupIds.js +0 -1
- package/dist/module/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/module/features/keyboard/types/types.js +0 -1
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +3 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +1 -3
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +0 -5
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +2 -2
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +2 -3
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts +1 -6
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts +1 -2
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -2
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/constants.d.ts +7 -0
- package/dist/typescript/commonjs/features/keyboard/components/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -18
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +1 -2
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +1 -3
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +3 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +1 -3
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +0 -5
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/types.d.ts +2 -2
- package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +2 -3
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/formulaSheet/components/FormulaSheetModal.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts +1 -6
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts +1 -2
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -2
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/constants.d.ts +7 -0
- package/dist/typescript/module/features/keyboard/components/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -18
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +1 -2
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +1 -3
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +1 -1
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +10 -20
- package/src/features/endOfAssignment/components/EOAModal.tsx +9 -2
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -6
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +2 -2
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +6 -17
- package/src/features/endOfAssignment/helpers.ts +3 -10
- package/src/features/endOfAssignment/model/model.ts +1 -5
- package/src/features/endOfAssignment/types.ts +1 -2
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +3 -4
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +2 -14
- package/src/features/gifCelebrations/components/Gif.tsx +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -2
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +6 -19
- package/src/features/keyboard/components/Keyboard.tsx +5 -4
- package/src/features/keyboard/components/KeysList/KeysList.tsx +1 -2
- package/src/features/keyboard/components/KeysList/helpers.ts +1 -3
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +1 -2
- package/src/features/keyboard/components/UnitsLayout/helpers.tsx +2 -10
- package/src/features/keyboard/components/constants.ts +5 -1
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +0 -2
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +0 -21
- package/src/features/keyboard/types/keyboardGroupIds.ts +0 -1
- package/src/features/keyboard/types/types.ts +0 -2
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +0 -44
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/MainLayout.js +0 -74
- package/dist/commonjs/features/keyboard/components/MainLayout.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +0 -24
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +0 -13
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +0 -34
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +0 -34
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +0 -34
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +0 -1
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +0 -38
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +0 -1
- package/dist/module/features/keyboard/components/MainLayout.js +0 -67
- package/dist/module/features/keyboard/components/MainLayout.js.map +0 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +0 -18
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +0 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +0 -9
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +0 -1
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +0 -26
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +0 -26
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +0 -26
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +0 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +0 -10
- package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts +0 -15
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +0 -4
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +0 -3
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +0 -10
- package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts +0 -15
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +0 -4
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +0 -3
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +0 -1
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +0 -43
- package/src/features/keyboard/components/MainLayout.tsx +0 -80
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +0 -12
- package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +0 -12
- package/src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx +0 -17
- package/src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx +0 -20
- package/src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx +0 -20
package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicOperators.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/types/MathKeysGroups/basicOperators.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"basicOperators.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/types/MathKeysGroups/basicOperators.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA6CzB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+N/B,CAAA"}
|
|
@@ -26,7 +26,6 @@ export declare enum MathEntryKeyboardGroupId {
|
|
|
26
26
|
TIME_US = "math-entry-time-us",
|
|
27
27
|
CURRENCY_SW = "math-entry-currency-sw",
|
|
28
28
|
CURRENCY_UK = "math-entry-currency-uk",
|
|
29
|
-
CURRENCY_US = "math-entry-currency-us"
|
|
30
|
-
UNDERLINED = "math-entry-underlined"
|
|
29
|
+
CURRENCY_US = "math-entry-currency-us"
|
|
31
30
|
}
|
|
32
31
|
//# sourceMappingURL=keyboardGroupIds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardGroupIds.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/keyboardGroupIds.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,eAAe,+BAA+B;IAC9C,sBAAsB,sCAAsC;IAC5D,kBAAkB,kCAAkC;IACpD,yBAAyB,yCAAyC;IAClE,aAAa,6BAA6B;IAC1C,oBAAoB,oCAAoC;IACxD,aAAa,6BAA6B;IAC1C,iBAAiB,iCAAiC;IAClD,OAAO,uBAAuB;IAC9B,UAAU,0BAA0B;IACpC,UAAU,0BAA0B;IACpC,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,KAAK,qBAAqB;IAC1B,QAAQ,wBAAwB;IAChC,OAAO,uBAAuB;IAC9B,OAAO,uBAAuB;IAC9B,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;
|
|
1
|
+
{"version":3,"file":"keyboardGroupIds.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/keyboardGroupIds.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,eAAe,+BAA+B;IAC9C,sBAAsB,sCAAsC;IAC5D,kBAAkB,kCAAkC;IACpD,yBAAyB,yCAAyC;IAClE,aAAa,6BAA6B;IAC1C,oBAAoB,oCAAoC;IACxD,aAAa,6BAA6B;IAC1C,iBAAiB,iCAAiC;IAClD,OAAO,uBAAuB;IAC9B,UAAU,0BAA0B;IACpC,UAAU,0BAA0B;IACpC,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,KAAK,qBAAqB;IAC1B,QAAQ,wBAAwB;IAChC,OAAO,uBAAuB;IAC9B,OAAO,uBAAuB;IAC9B,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;CACvC"}
|
|
@@ -11,8 +11,7 @@ export declare const enum KeyboardType {
|
|
|
11
11
|
BasicUnits = "BasicUnits",
|
|
12
12
|
BasicPlusPlus = "BasicPlusPlus",
|
|
13
13
|
BasicPlusPlusMobile = "BasicPlusPlusMobile",
|
|
14
|
-
Numpad = "Numpad"
|
|
15
|
-
Underlined = "Underlined"
|
|
14
|
+
Numpad = "Numpad"
|
|
16
15
|
}
|
|
17
16
|
export type KeyboardKey = {
|
|
18
17
|
katexValue: string;
|
|
@@ -40,7 +39,6 @@ export type KeyboardGroup = {
|
|
|
40
39
|
};
|
|
41
40
|
export type KeyboardLayoutProps = {
|
|
42
41
|
onKeyPress: (key: KeyboardKeyValue) => void;
|
|
43
|
-
onLayoutChange?: (isSecondaryLayout: boolean) => void;
|
|
44
42
|
color?: SelectOptionColor;
|
|
45
43
|
isDisabled?: boolean;
|
|
46
44
|
disabledKeys?: KeyboardKey[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,0BAAkB,YAAY;IAC5B,eAAe,oBAAoB;IACnC,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,mBAAmB,wBAAwB;IAC3C,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,0BAAkB,YAAY;IAC5B,eAAe,oBAAoB;IACnC,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,mBAAmB,wBAAwB;IAC3C,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,qBAAqB,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,WAAW,EAAE,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI;KAC3D,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW;CACpC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magmamath/students-features",
|
|
3
|
-
"version": "0.9.1-
|
|
3
|
+
"version": "0.9.1-rc2",
|
|
4
4
|
"description": "Magmamath features library",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-native-svg": "^15.10.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@magmamath/react-native-ui": "0.4.
|
|
32
|
+
"@magmamath/react-native-ui": "0.4.44",
|
|
33
33
|
"@react-native/eslint-config": "^0.73.1",
|
|
34
34
|
"@release-it/conventional-changelog": "^9.0.2",
|
|
35
35
|
"@types/jest": "^29.5.5",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react'
|
|
2
2
|
import { View, StyleSheet } from 'react-native'
|
|
3
|
+
|
|
3
4
|
import { useUnit } from 'effector-react'
|
|
4
5
|
import { SPACING, Typography, COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
5
6
|
|
|
@@ -10,8 +11,6 @@ import { GOOD_DRAWING_CARD_APPEARENCE_DELAY } from '../../constants'
|
|
|
10
11
|
import { AnimatedCardVariant, EOAModalContentProps, EOAModalVariant } from '../../types'
|
|
11
12
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
12
13
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
13
|
-
import { getEoaButtonColor } from '../../helpers'
|
|
14
|
-
import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
|
|
15
14
|
|
|
16
15
|
export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
|
|
17
16
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -23,7 +22,6 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
|
|
|
23
22
|
stats,
|
|
24
23
|
hasRecommendations,
|
|
25
24
|
isExam = false,
|
|
26
|
-
isAssessment = false,
|
|
27
25
|
newerAssignmentAvailable,
|
|
28
26
|
} = popUpData ?? {}
|
|
29
27
|
|
|
@@ -74,22 +72,14 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
|
|
|
74
72
|
</View>
|
|
75
73
|
|
|
76
74
|
<View style={styles.animationContainer}>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
variant={AnimatedCardVariant.CORRECT_ANSWER}
|
|
86
|
-
textContent={textContent}
|
|
87
|
-
solvedAmount={stats?.solvedAmount}
|
|
88
|
-
problemsAmount={stats?.problemsAmount}
|
|
89
|
-
shouldTriggerSparkles={cardsAnimationCompleted}
|
|
90
|
-
onAnimationEnd={onCorrectAnswerAnimationEnd}
|
|
91
|
-
/>
|
|
92
|
-
)}
|
|
75
|
+
<AnimatedCard
|
|
76
|
+
variant={AnimatedCardVariant.CORRECT_ANSWER}
|
|
77
|
+
textContent={textContent}
|
|
78
|
+
solvedAmount={stats?.solvedAmount}
|
|
79
|
+
problemsAmount={stats?.problemsAmount}
|
|
80
|
+
shouldTriggerSparkles={cardsAnimationCompleted}
|
|
81
|
+
onAnimationEnd={onCorrectAnswerAnimationEnd}
|
|
82
|
+
/>
|
|
93
83
|
|
|
94
84
|
{modalVariant === EOAModalVariant.HAS_GOOD_DRAWING && (
|
|
95
85
|
<AnimatedCard
|
|
@@ -106,9 +96,9 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
|
|
|
106
96
|
<PracticeButtonGroup
|
|
107
97
|
textContent={textContent}
|
|
108
98
|
isPracticeButtonVisible={isPracticeButtonVisible}
|
|
99
|
+
isExam={isExam}
|
|
109
100
|
onLeftButtonPress={model.hidePopUpAndLeave}
|
|
110
101
|
onRightButtonPress={handlePracticeButtonPress}
|
|
111
|
-
buttonColor={getEoaButtonColor(popUpData)}
|
|
112
102
|
/>
|
|
113
103
|
</View>
|
|
114
104
|
)
|
|
@@ -14,6 +14,7 @@ import { ExamPaused } from './ExamPaused/ExamPaused'
|
|
|
14
14
|
import { ExamSubmit } from './ExamSubmit/ExamSubmit'
|
|
15
15
|
|
|
16
16
|
import { getModalContainerSize, shouldDisplayModalBackground } from '../helpers'
|
|
17
|
+
import { ButtonColor } from '@magmamath/react-native-ui'
|
|
17
18
|
|
|
18
19
|
const MODAL_CONTENT_VARIANTS_MAP = new Map([
|
|
19
20
|
[EOAModalVariant.NO_CORRECT_ANSWERS, NoAnswer],
|
|
@@ -32,6 +33,7 @@ type EOAModalProps = {
|
|
|
32
33
|
model: EOAModel
|
|
33
34
|
textContent: EOAModalText
|
|
34
35
|
onPracticePress: () => void
|
|
36
|
+
buttonColor?: ButtonColor
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
/**
|
|
@@ -40,7 +42,7 @@ type EOAModalProps = {
|
|
|
40
42
|
* Dynamically renders a modal UI after an assignment ends, using the current `modalVariant`
|
|
41
43
|
* to determine which specific view to display (e.g., `NoAnswer`, `CorrectAnswer`, `CheatDetected`).
|
|
42
44
|
*/
|
|
43
|
-
export const EOAModal = ({ model, textContent, onPracticePress }: EOAModalProps) => {
|
|
45
|
+
export const EOAModal = ({ model, textContent, onPracticePress, buttonColor }: EOAModalProps) => {
|
|
44
46
|
const popUpData = useUnit(model.$popUpData)
|
|
45
47
|
const modalVariant = useUnit(model.$modalVariant)
|
|
46
48
|
|
|
@@ -62,7 +64,12 @@ export const EOAModal = ({ model, textContent, onPracticePress }: EOAModalProps)
|
|
|
62
64
|
style={getModalContainerSize(modalVariant)}
|
|
63
65
|
onClose={model.hidePopUp}
|
|
64
66
|
content={
|
|
65
|
-
<ModalContent
|
|
67
|
+
<ModalContent
|
|
68
|
+
model={model}
|
|
69
|
+
textContent={textContent}
|
|
70
|
+
onPracticePress={onPracticePress}
|
|
71
|
+
buttonColor={buttonColor}
|
|
72
|
+
/>
|
|
66
73
|
}
|
|
67
74
|
withBackground={withBackground}
|
|
68
75
|
/>
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
import { EOAModalContentProps } from '../../types'
|
|
14
14
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
15
15
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
16
|
-
import { getEoaButtonColor } from '../../helpers'
|
|
17
|
-
import { useUnit } from 'effector-react'
|
|
18
|
-
|
|
19
|
-
export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
20
|
-
const popUpData = useUnit(model.$popUpData)
|
|
21
16
|
|
|
17
|
+
export const ExamPaused = ({
|
|
18
|
+
textContent,
|
|
19
|
+
model,
|
|
20
|
+
buttonColor = ButtonColor.PURPLE,
|
|
21
|
+
}: EOAModalContentProps) => {
|
|
22
22
|
useKeyBoard({
|
|
23
23
|
callback: (event) => {
|
|
24
24
|
if (event.key === KeyboardKeys.ENTER) {
|
|
@@ -39,7 +39,7 @@ export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
|
|
|
39
39
|
|
|
40
40
|
<Button
|
|
41
41
|
variant={ButtonVariant.PRIMARY}
|
|
42
|
-
colorScheme={
|
|
42
|
+
colorScheme={buttonColor}
|
|
43
43
|
size={ButtonSize.LARGE}
|
|
44
44
|
style={{ text: styles.buttonText }}
|
|
45
45
|
onPress={model.hidePopUpAndLeave}
|
|
@@ -4,6 +4,7 @@ import { View, StyleSheet, Platform, Image } from 'react-native'
|
|
|
4
4
|
import { useUnit } from 'effector-react'
|
|
5
5
|
import {
|
|
6
6
|
Button,
|
|
7
|
+
ButtonColor,
|
|
7
8
|
ButtonSize,
|
|
8
9
|
ButtonVariant,
|
|
9
10
|
COLORS,
|
|
@@ -17,7 +18,6 @@ import { EOAModalContentProps } from '../../types'
|
|
|
17
18
|
import { PracticeButton } from '../../ui/PracticeButton'
|
|
18
19
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
19
20
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
20
|
-
import { getEoaButtonColor } from '../../helpers'
|
|
21
21
|
|
|
22
22
|
export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
|
|
23
23
|
const popUpData = useUnit(model.$popUpData)
|
|
@@ -60,7 +60,7 @@ export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalCont
|
|
|
60
60
|
<Button
|
|
61
61
|
variant={isPracticeButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
|
|
62
62
|
size={ButtonSize.LARGE}
|
|
63
|
-
colorScheme={
|
|
63
|
+
colorScheme={popUpData?.isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
|
|
64
64
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
65
65
|
onPress={model.hidePopUpAndLeave}
|
|
66
66
|
>
|
|
@@ -16,19 +16,17 @@ import { EOAModalContentProps } from '../../types'
|
|
|
16
16
|
import { NoAnswerContent } from './NoAnswerContent'
|
|
17
17
|
import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
|
|
18
18
|
import { KeyboardKeys } from '../../../../lib/constants'
|
|
19
|
-
import { getEoaButtonColor } from '../../helpers'
|
|
20
|
-
import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
|
|
21
19
|
|
|
22
20
|
export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalContentProps) => {
|
|
23
21
|
const popUpData = useUnit(model.$popUpData)
|
|
24
22
|
|
|
25
|
-
const { stats, isExam,
|
|
23
|
+
const { stats, isExam, user } = popUpData ?? {}
|
|
26
24
|
|
|
27
25
|
function getButtons() {
|
|
28
26
|
const buttons = [
|
|
29
27
|
{
|
|
30
28
|
text: textContent.leftButtonText ?? '',
|
|
31
|
-
colorScheme:
|
|
29
|
+
colorScheme: isExam ? ButtonColor.PURPLE : ButtonColor.BLUE,
|
|
32
30
|
onPress: () => model.hidePopUpAndLeave(),
|
|
33
31
|
},
|
|
34
32
|
]
|
|
@@ -86,19 +84,10 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
|
|
|
86
84
|
</Typography>
|
|
87
85
|
)}
|
|
88
86
|
</View>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
problemsAmount={stats?.problemsAmount}
|
|
94
|
-
/>
|
|
95
|
-
) : (
|
|
96
|
-
<NoAnswerContent
|
|
97
|
-
solvedAmount={stats?.solvedAmount ?? 0}
|
|
98
|
-
problemsAmount={stats?.problemsAmount ?? 0}
|
|
99
|
-
/>
|
|
100
|
-
)}
|
|
101
|
-
|
|
87
|
+
<NoAnswerContent
|
|
88
|
+
solvedAmount={stats?.solvedAmount ?? 0}
|
|
89
|
+
problemsAmount={stats?.problemsAmount ?? 0}
|
|
90
|
+
/>
|
|
102
91
|
<View style={styles.buttonsContainer}>
|
|
103
92
|
{buttons.map((button, index) => (
|
|
104
93
|
<Button
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { MODALS_WITH_BACKGROUND } from './constants'
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonColor } from '@magmamath/react-native-ui'
|
|
2
|
+
import { EOAModalVariant } from './types'
|
|
4
3
|
|
|
5
4
|
export const getModalContainerSize = (modalVariant: EOAModalVariant) => {
|
|
6
5
|
switch (modalVariant) {
|
|
7
6
|
case EOAModalVariant.EXAM_SUBMIT:
|
|
8
7
|
case EOAModalVariant.EXAM_SAFE_MODE_SUBMIT:
|
|
9
|
-
return { container: { width:
|
|
8
|
+
return { container: { width: 600, height: 384 } }
|
|
10
9
|
case EOAModalVariant.EXAM_PAUSED:
|
|
11
10
|
case EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED:
|
|
12
11
|
return { container: { width: 560, height: 338 } }
|
|
13
12
|
case EOAModalVariant.EXAM_SAFE_MODE_LEAVE:
|
|
14
|
-
return { container: { width: 550, height:
|
|
13
|
+
return { container: { width: 550, height: 280 } }
|
|
15
14
|
case EOAModalVariant.HAS_GOOD_DRAWING:
|
|
16
15
|
return { container: { width: 957, height: 550 } }
|
|
17
16
|
case EOAModalVariant.HAS_CORRECT_ANSWERS:
|
|
@@ -27,9 +26,3 @@ export const shouldDisplayModalBackground = (modalVariant: EOAModalVariant | nul
|
|
|
27
26
|
|
|
28
27
|
return MODALS_WITH_BACKGROUND.includes(modalVariant)
|
|
29
28
|
}
|
|
30
|
-
|
|
31
|
-
export const getEoaButtonColor = (popupData: EOAModalData | null): ButtonColor => {
|
|
32
|
-
if (popupData?.isAssessment) return ButtonColor.SUNSET
|
|
33
|
-
if (popupData?.isExam) return ButtonColor.PURPLE
|
|
34
|
-
return ButtonColor.BLUE
|
|
35
|
-
}
|
|
@@ -9,7 +9,6 @@ export class EOAModel {
|
|
|
9
9
|
public readonly leavePressed = createEvent()
|
|
10
10
|
public readonly goToFirstProblemPressed = createEvent()
|
|
11
11
|
public readonly recommendationsUpdated = createEvent<boolean>()
|
|
12
|
-
public readonly popUpStatsUpdated = createEvent<Partial<EOAModalData['stats']>>()
|
|
13
12
|
public readonly popUpTriggered = createEvent<EOAEventType>()
|
|
14
13
|
|
|
15
14
|
public readonly $popUpData = createStore<EOAModalData | null>(null)
|
|
@@ -17,9 +16,6 @@ export class EOAModel {
|
|
|
17
16
|
.on(this.recommendationsUpdated, (state, hasRecommendations) =>
|
|
18
17
|
state ? { ...state, hasRecommendations } : state,
|
|
19
18
|
)
|
|
20
|
-
.on(this.popUpStatsUpdated, (state, payload) =>
|
|
21
|
-
state ? { ...state, stats: { ...state.stats, ...payload } } : state,
|
|
22
|
-
)
|
|
23
19
|
.reset(this.hidePopUp)
|
|
24
20
|
|
|
25
21
|
public readonly $modalVariant = createStore<EOAModalVariant | null>(null)
|
|
@@ -37,7 +33,7 @@ export class EOAModel {
|
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
if (eventType === EOAEventType.EXAM_PAUSED) return EOAModalVariant.EXAM_PAUSED
|
|
40
|
-
|
|
36
|
+
|
|
41
37
|
if (eventType === EOAEventType.CHEAT_DETECTED) {
|
|
42
38
|
return EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED
|
|
43
39
|
}
|
|
@@ -34,11 +34,11 @@ export type EOAModalContentProps = {
|
|
|
34
34
|
textContent: EOAModalText
|
|
35
35
|
model: EOAModel
|
|
36
36
|
onPracticePress?: () => void
|
|
37
|
+
buttonColor?: ButtonColor
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export type EOAModalData = {
|
|
40
41
|
isExam: boolean
|
|
41
|
-
isAssessment: boolean
|
|
42
42
|
newerAssignmentAvailable?: boolean
|
|
43
43
|
examFinished?: boolean
|
|
44
44
|
cheatDetection?: boolean
|
|
@@ -63,6 +63,5 @@ export type EOAModalText = {
|
|
|
63
63
|
correctAnswersPlural?: string
|
|
64
64
|
goodCalculations?: string
|
|
65
65
|
goodCalculationsPlural?: string
|
|
66
|
-
score?: string
|
|
67
66
|
}
|
|
68
67
|
}
|
|
@@ -11,14 +11,13 @@ import Animated, {
|
|
|
11
11
|
import { ButtonVariant, SPACING, Button, ButtonSize, ButtonColor } from '@magmamath/react-native-ui'
|
|
12
12
|
|
|
13
13
|
import { PracticeButton } from './PracticeButton'
|
|
14
|
-
import { getEoaButtonColor } from '../helpers'
|
|
15
14
|
|
|
16
15
|
type PracticeButtonGroupProps = {
|
|
17
16
|
textContent: { leftButtonText?: string; rightButtonText?: string }
|
|
18
17
|
isPracticeButtonVisible: boolean
|
|
19
18
|
onLeftButtonPress: () => void
|
|
20
19
|
onRightButtonPress: () => void
|
|
21
|
-
|
|
20
|
+
isExam: boolean
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export const PracticeButtonGroup = ({
|
|
@@ -26,7 +25,7 @@ export const PracticeButtonGroup = ({
|
|
|
26
25
|
isPracticeButtonVisible,
|
|
27
26
|
onLeftButtonPress,
|
|
28
27
|
onRightButtonPress,
|
|
29
|
-
|
|
28
|
+
isExam,
|
|
30
29
|
}: PracticeButtonGroupProps) => {
|
|
31
30
|
const buttonsContainerOpacity = useSharedValue(0)
|
|
32
31
|
|
|
@@ -46,7 +45,7 @@ export const PracticeButtonGroup = ({
|
|
|
46
45
|
<Button
|
|
47
46
|
variant={isPracticeButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
|
|
48
47
|
size={ButtonSize.LARGE}
|
|
49
|
-
colorScheme={
|
|
48
|
+
colorScheme={isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
|
|
50
49
|
style={{ text: { textTransform: 'uppercase' } }}
|
|
51
50
|
onPress={onLeftButtonPress}
|
|
52
51
|
>
|
|
@@ -3,7 +3,6 @@ import { View, Modal, StyleSheet, TouchableWithoutFeedback } from 'react-native'
|
|
|
3
3
|
import {
|
|
4
4
|
BORDER_RADIUS,
|
|
5
5
|
COLORS,
|
|
6
|
-
IS_MOBILE,
|
|
7
6
|
Loader,
|
|
8
7
|
LoaderColor,
|
|
9
8
|
LoaderSize,
|
|
@@ -19,23 +18,12 @@ type FormulaSheetModalProps = {
|
|
|
19
18
|
|
|
20
19
|
export const FormulaSheetModal = ({
|
|
21
20
|
children,
|
|
22
|
-
loaderColor
|
|
21
|
+
loaderColor,
|
|
23
22
|
isLoading,
|
|
24
23
|
onClose,
|
|
25
24
|
}: PropsWithChildren<FormulaSheetModalProps>) => {
|
|
26
25
|
return (
|
|
27
|
-
<Modal
|
|
28
|
-
transparent
|
|
29
|
-
//it is needed for the new RN architecture. Should be rewriten on modalfy
|
|
30
|
-
supportedOrientations={
|
|
31
|
-
IS_MOBILE
|
|
32
|
-
? ['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right']
|
|
33
|
-
: undefined
|
|
34
|
-
}
|
|
35
|
-
visible
|
|
36
|
-
animationType="none"
|
|
37
|
-
onRequestClose={onClose}
|
|
38
|
-
>
|
|
26
|
+
<Modal visible transparent animationType="none" onRequestClose={onClose}>
|
|
39
27
|
<TouchableWithoutFeedback onPress={onClose}>
|
|
40
28
|
<View style={styles.container}>
|
|
41
29
|
<TouchableWithoutFeedback onPress={(event) => event.stopPropagation()}>
|
|
@@ -9,11 +9,11 @@ import { SelectedLayout } from './types'
|
|
|
9
9
|
import { getKeyboardGroup } from '../../helpers'
|
|
10
10
|
import { getSelectOptions } from './helpers'
|
|
11
11
|
|
|
12
|
-
export const AlgebraLayout = (
|
|
12
|
+
export const AlgebraLayout = (props: KeyboardLayoutProps) => {
|
|
13
13
|
const [selectedLayout, setSelectedLayout] = useState<SelectedLayout>(SelectedLayout.BASIC)
|
|
14
14
|
const t = useText()
|
|
15
15
|
const { width } = useWindowDimensions()
|
|
16
|
-
const selectOptions = getSelectOptions(
|
|
16
|
+
const selectOptions = getSelectOptions(selectedLayout, setSelectedLayout)
|
|
17
17
|
const isDesktop = width > MOBILE_LAYOUT_WIDTH && !IS_MOBILE
|
|
18
18
|
const locale = t('locale') as Locale
|
|
19
19
|
|
|
@@ -10,17 +10,10 @@ type LayoutOption = {
|
|
|
10
10
|
onPressIn: () => void
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
selectedLayout: SelectedLayout
|
|
15
|
-
setSelectedLayout: (layout: SelectedLayout) => void
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function getSelectOptions({
|
|
20
|
-
selectedLayout,
|
|
21
|
-
setSelectedLayout,
|
|
22
|
-
onLayoutChange,
|
|
23
|
-
}: GetSelectOptionsProps): LayoutOption[] {
|
|
13
|
+
export function getSelectOptions(
|
|
14
|
+
selectedLayout: SelectedLayout,
|
|
15
|
+
setSelectedLayout: (layout: SelectedLayout) => void,
|
|
16
|
+
): LayoutOption[] {
|
|
24
17
|
return [
|
|
25
18
|
{
|
|
26
19
|
key: SelectedLayout.BASIC,
|
|
@@ -30,10 +23,7 @@ export function getSelectOptions({
|
|
|
30
23
|
size={22}
|
|
31
24
|
/>
|
|
32
25
|
),
|
|
33
|
-
onPressIn: () =>
|
|
34
|
-
setSelectedLayout(SelectedLayout.BASIC)
|
|
35
|
-
onLayoutChange?.(false)
|
|
36
|
-
},
|
|
26
|
+
onPressIn: () => setSelectedLayout(SelectedLayout.BASIC),
|
|
37
27
|
},
|
|
38
28
|
{
|
|
39
29
|
key: SelectedLayout.ALGEBRA,
|
|
@@ -43,10 +33,7 @@ export function getSelectOptions({
|
|
|
43
33
|
size={25}
|
|
44
34
|
/>
|
|
45
35
|
),
|
|
46
|
-
onPressIn: () =>
|
|
47
|
-
setSelectedLayout(SelectedLayout.ALGEBRA)
|
|
48
|
-
onLayoutChange?.(true)
|
|
49
|
-
},
|
|
36
|
+
onPressIn: () => setSelectedLayout(SelectedLayout.ALGEBRA),
|
|
50
37
|
},
|
|
51
38
|
]
|
|
52
39
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef } from 'react'
|
|
2
2
|
import { Animated, StyleProp, StyleSheet, useWindowDimensions, ViewStyle } from 'react-native'
|
|
3
3
|
import { COLORS, IS_MOBILE, SelectOptionColor, SHADOWS } from '@magmamath/react-native-ui'
|
|
4
|
+
import { getLayoutByCharType } from '../constants/keyboardLayouts'
|
|
4
5
|
import { KeyboardKey, KeyboardKeyValue } from '../types/types'
|
|
5
6
|
import { Numpad } from './Numpad/Numpad'
|
|
6
7
|
import { MOBILE_LAYOUT_WIDTH } from '../constants/constants'
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
slideInAnimationSettings,
|
|
11
12
|
slideOutAnimationSettings,
|
|
12
13
|
} from './constants'
|
|
13
|
-
import { MainLayout } from './MainLayout'
|
|
14
14
|
|
|
15
15
|
type KeyboardProps = {
|
|
16
16
|
onKeyPress: (key: KeyboardKeyValue) => void
|
|
@@ -19,15 +19,15 @@ type KeyboardProps = {
|
|
|
19
19
|
color?: SelectOptionColor
|
|
20
20
|
isVisible?: boolean
|
|
21
21
|
isDisabled?: boolean
|
|
22
|
-
showUnderlinedKeys?: boolean
|
|
23
22
|
disabledKeys?: KeyboardKey[]
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
export const Keyboard = ({ style, characterType, isVisible = true, ...props }: KeyboardProps) => {
|
|
27
26
|
const slideAnim = useRef(new Animated.Value(isVisible ? 0 : KEYBOARD_SLIDE_DISTANCE)).current
|
|
28
|
-
|
|
29
27
|
const { width } = useWindowDimensions()
|
|
30
28
|
const isMobile = width <= MOBILE_LAYOUT_WIDTH || IS_MOBILE
|
|
29
|
+
|
|
30
|
+
const Layout = useMemo(() => getLayoutByCharType(characterType), [characterType])
|
|
31
31
|
const mobileStyles = useMemo(
|
|
32
32
|
() => getLayoutConfigStyles(characterType, isMobile),
|
|
33
33
|
[characterType, isMobile],
|
|
@@ -57,7 +57,7 @@ export const Keyboard = ({ style, characterType, isVisible = true, ...props }: K
|
|
|
57
57
|
},
|
|
58
58
|
]}
|
|
59
59
|
>
|
|
60
|
-
<
|
|
60
|
+
<Layout {...props} />
|
|
61
61
|
<Numpad {...props} style={mobileStyles} />
|
|
62
62
|
</Animated.View>
|
|
63
63
|
)
|
|
@@ -76,6 +76,7 @@ const styles = StyleSheet.create({
|
|
|
76
76
|
borderColor: COLORS.NEUTRAL_5,
|
|
77
77
|
borderWidth: 1,
|
|
78
78
|
width: 'auto',
|
|
79
|
+
overflow: 'hidden',
|
|
79
80
|
height: 155,
|
|
80
81
|
...SHADOWS[2],
|
|
81
82
|
},
|
|
@@ -37,10 +37,9 @@ export const KeysList = ({
|
|
|
37
37
|
onKeyPress,
|
|
38
38
|
disabledKeys,
|
|
39
39
|
optionStyle: style?.option,
|
|
40
|
-
isDisabled,
|
|
41
40
|
}),
|
|
42
41
|
),
|
|
43
|
-
[keys, onKeyPress, disabledKeys, style?.option
|
|
42
|
+
[keys, onKeyPress, disabledKeys, style?.option],
|
|
44
43
|
)
|
|
45
44
|
|
|
46
45
|
return (
|
|
@@ -9,7 +9,6 @@ type MapKeyToOptionProps = {
|
|
|
9
9
|
onKeyPress?: (key: KeyboardKeyValue) => void
|
|
10
10
|
disabledKeys?: KeyboardKey[]
|
|
11
11
|
optionStyle?: ButtonStyle
|
|
12
|
-
isDisabled?: boolean
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export const IS_IOS_WEB = getIsIpadOrIphoneDevice()
|
|
@@ -28,7 +27,6 @@ export const mapKeyToOption = ({
|
|
|
28
27
|
onKeyPress,
|
|
29
28
|
disabledKeys,
|
|
30
29
|
optionStyle,
|
|
31
|
-
isDisabled,
|
|
32
30
|
}: MapKeyToOptionProps) => {
|
|
33
31
|
const pressHandler = (e: GestureResponderEvent) => {
|
|
34
32
|
onKeyPress?.({
|
|
@@ -47,6 +45,6 @@ export const mapKeyToOption = ({
|
|
|
47
45
|
delayPressIn: 0,
|
|
48
46
|
style: mergeOptionStyles(optionStyle, key.style),
|
|
49
47
|
...(IS_IOS_WEB ? { onPress: pressHandler } : { onPressIn: pressHandler }),
|
|
50
|
-
disabled:
|
|
48
|
+
disabled: isKeyDisabled(key, disabledKeys),
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -12,7 +12,7 @@ import { KeyboardUnitsGroupType, SelectedLayout } from './types'
|
|
|
12
12
|
import { getSelectOptions } from './helpers'
|
|
13
13
|
import { IS_MOBILE } from '@magmamath/react-native-ui'
|
|
14
14
|
|
|
15
|
-
export const UnitsLayout = (
|
|
15
|
+
export const UnitsLayout = (props: KeyboardLayoutProps) => {
|
|
16
16
|
const { width } = useWindowDimensions()
|
|
17
17
|
const t = useText()
|
|
18
18
|
const locale = t('locale') as Locale
|
|
@@ -26,7 +26,6 @@ export const UnitsLayout = ({ onLayoutChange, ...props }: KeyboardLayoutProps) =
|
|
|
26
26
|
activeTabKey: activeTab.key as KeyboardUnitsGroupType,
|
|
27
27
|
selectedLayout,
|
|
28
28
|
setSelectedLayout,
|
|
29
|
-
onLayoutChange,
|
|
30
29
|
})
|
|
31
30
|
|
|
32
31
|
return (
|
|
@@ -8,14 +8,12 @@ type UseLayoutSelectOptionsProps = {
|
|
|
8
8
|
activeTabKey: KeyboardUnitsGroupType
|
|
9
9
|
selectedLayout: SelectedLayout
|
|
10
10
|
setSelectedLayout: (layout: SelectedLayout) => void
|
|
11
|
-
onLayoutChange?: (isSecondaryLayout: boolean) => void
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const getSelectOptions = ({
|
|
15
14
|
activeTabKey,
|
|
16
15
|
selectedLayout,
|
|
17
16
|
setSelectedLayout,
|
|
18
|
-
onLayoutChange,
|
|
19
17
|
}: UseLayoutSelectOptionsProps) => {
|
|
20
18
|
{
|
|
21
19
|
const SelectedIcon = UNITS_KEYBOARD_GROUPS.get(activeTabKey)?.icon || RulerIcon
|
|
@@ -29,10 +27,7 @@ export const getSelectOptions = ({
|
|
|
29
27
|
size={22}
|
|
30
28
|
/>
|
|
31
29
|
),
|
|
32
|
-
onPressIn: () =>
|
|
33
|
-
setSelectedLayout(SelectedLayout.ALGEBRA)
|
|
34
|
-
onLayoutChange?.(false)
|
|
35
|
-
},
|
|
30
|
+
onPressIn: () => setSelectedLayout(SelectedLayout.ALGEBRA),
|
|
36
31
|
},
|
|
37
32
|
{
|
|
38
33
|
key: SelectedLayout.UNITS,
|
|
@@ -42,10 +37,7 @@ export const getSelectOptions = ({
|
|
|
42
37
|
size={16}
|
|
43
38
|
/>
|
|
44
39
|
),
|
|
45
|
-
onPressIn: () =>
|
|
46
|
-
setSelectedLayout(SelectedLayout.UNITS)
|
|
47
|
-
onLayoutChange?.(true)
|
|
48
|
-
},
|
|
40
|
+
onPressIn: () => setSelectedLayout(SelectedLayout.UNITS),
|
|
49
41
|
},
|
|
50
42
|
]
|
|
51
43
|
}
|