@magmamath/students-features 0.9.0 → 0.9.1-4-rc.5
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/.editorconfig +15 -0
- package/.eslintignore +2 -0
- package/.eslintrc +22 -0
- package/.gitattributes +3 -0
- package/.github/actions/setup/action.yml +37 -0
- package/.github/workflows/ci.yml +73 -0
- package/.gitignore +84 -0
- package/.idea/.gitignore +8 -0
- package/.idea/codeStyles/Project.xml +62 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +8 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/students-features.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +648 -0
- package/.nvmrc +1 -0
- package/.prettierrc +11 -0
- package/.release-it.json +17 -0
- package/.watchmanconfig +1 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
- package/.yarn/releases/yarn-3.6.1.cjs +874 -0
- package/babel.config.js +5 -0
- package/bob.config.js +25 -0
- package/dist/commonjs/features/celebrations/helpers.js +4 -1
- package/dist/commonjs/features/celebrations/helpers.js.map +1 -1
- 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/chatbot/components/Chatbot.js +2 -2
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +8 -6
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/t2s.js +4 -3
- package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +44 -0
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +2 -4
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/helpers.js +10 -3
- package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/model/model.js +7 -0
- package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +5 -4
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/commonjs/features/feedback/model/model.js.map +1 -1
- package/dist/commonjs/features/feedback/model/sockets.js +8 -5
- package/dist/commonjs/features/feedback/model/sockets.js.map +1 -1
- package/dist/commonjs/features/formulaSheet/components/FormulaSheetModal.js +5 -2
- 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 +11 -4
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +13 -3
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +3 -5
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/TimeBasicLayout.js +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js +5 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +7 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +2 -4
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -2
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +2 -2
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +14 -17
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +6 -6
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js +3 -2
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js +70 -0
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/{constants.js → MainLayout/constants.js} +3 -15
- package/dist/commonjs/features/keyboard/components/MainLayout/constants.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +1 -14
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +25 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +14 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +25 -31
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +8 -3
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +10 -3
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +0 -15
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/constants.js +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +23 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +9 -2
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +2 -2
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.js +27 -0
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +18 -18
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +2 -0
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +1 -0
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/commonjs/lib/helpers/helpers.js +28 -5
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/lib/types/requests.js +2 -0
- package/dist/commonjs/lib/types/requests.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +34 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +34 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +34 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/constants.js +3 -1
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +5 -5
- package/dist/commonjs/shared/translation/localization/de.json +42 -0
- package/dist/commonjs/shared/translation/localization/en.json +5 -5
- package/dist/commonjs/shared/translation/localization/gb.json +5 -5
- package/dist/commonjs/shared/translation/localization/sct.json +5 -5
- package/dist/commonjs/shared/translation/localization/sw.json +5 -5
- package/dist/commonjs/shared/translation/types.js +1 -0
- package/dist/commonjs/shared/translation/types.js.map +1 -1
- package/dist/module/features/celebrations/helpers.js +4 -1
- package/dist/module/features/celebrations/helpers.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/chatbot/components/Chatbot.js +2 -2
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +8 -6
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/t2s.js +4 -3
- package/dist/module/features/chatbot/model/t2s.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +38 -0
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/EOAModal.js +2 -4
- package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +6 -4
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -2
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/helpers.js +8 -2
- package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/module/features/endOfAssignment/model/model.js +7 -0
- package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +5 -4
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/module/features/feedback/model/model.js.map +1 -1
- package/dist/module/features/feedback/model/sockets.js +8 -5
- package/dist/module/features/feedback/model/sockets.js.map +1 -1
- package/dist/module/features/formulaSheet/components/FormulaSheetModal.js +6 -3
- 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 +10 -3
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +13 -3
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +2 -4
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/TimeBasicLayout.js +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js +4 -0
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +8 -2
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +2 -4
- package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +2 -2
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +12 -15
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js +6 -6
- package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/helpers.js +3 -2
- package/dist/module/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js +63 -0
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/{constants.js → MainLayout/constants.js} +2 -14
- package/dist/module/features/keyboard/components/MainLayout/constants.js.map +1 -0
- package/dist/module/features/keyboard/components/Numpad/Numpad.js +1 -14
- package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +19 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +10 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -0
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +25 -31
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +8 -3
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +10 -3
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +0 -15
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/constants/constants.js +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +24 -2
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardLayouts.js +8 -2
- package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +2 -2
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/specialOperators.js +27 -0
- package/dist/module/features/keyboard/types/MathKeysGroups/specialOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js +19 -19
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/module/features/keyboard/types/keyboardGroupIds.js +2 -0
- package/dist/module/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/module/features/keyboard/types/types.js +1 -0
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/module/lib/helpers/helpers.js +28 -5
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/lib/types/requests.js +2 -0
- package/dist/module/lib/types/requests.js.map +1 -0
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +26 -0
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +26 -0
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +26 -0
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +1 -0
- package/dist/module/shared/translation/constants.js +3 -1
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +5 -5
- package/dist/module/shared/translation/localization/de.json +42 -0
- package/dist/module/shared/translation/localization/en.json +5 -5
- package/dist/module/shared/translation/localization/gb.json +5 -5
- package/dist/module/shared/translation/localization/sct.json +5 -5
- package/dist/module/shared/translation/localization/sw.json +5 -5
- package/dist/module/shared/translation/types.js +1 -0
- package/dist/module/shared/translation/types.js.map +1 -1
- package/dist/typescript/commonjs/features/celebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +8 -7
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts +2 -2
- package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +11 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +8 -5
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
- package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +1 -3
- 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 +3 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +5 -0
- 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 +3 -2
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/model/model.d.ts +4 -1
- package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/model/sockets.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 +6 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +4 -3
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts +1 -4
- 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 +2 -3
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts +15 -0
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/{constants.d.ts → MainLayout/constants.d.ts} +0 -12
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +8 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +3 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.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 +2 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +2 -26
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/constants.d.ts +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 +3 -2
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.d.ts +18 -0
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +208 -208
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +3 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +3 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/types/requests.d.ts +4 -0
- package/dist/typescript/commonjs/lib/types/requests.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +42 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +2 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/features/celebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +8 -7
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts +2 -2
- package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +11 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +8 -5
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
- package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +1 -3
- 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 +3 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +5 -0
- 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 +3 -2
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/model/model.d.ts +4 -1
- package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/model/sockets.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 +6 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +4 -3
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts +1 -4
- 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 +2 -3
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts +15 -0
- package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/{constants.d.ts → MainLayout/constants.d.ts} +0 -12
- package/dist/typescript/module/features/keyboard/components/MainLayout/constants.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +8 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +3 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitTabs.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 +2 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +2 -26
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/constants.d.ts +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 +3 -2
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/specialOperators.d.ts +18 -0
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/specialOperators.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +208 -208
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +3 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +3 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/lib/types/requests.d.ts +4 -0
- package/dist/typescript/module/lib/types/requests.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +42 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +2 -1
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/example/.expo/README.md +8 -0
- package/example/.expo/devices.json +3 -0
- package/example/.expo/web/cache/production/images/favicon/favicon-24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb-contain-transparent/favicon-48.png +0 -0
- package/example/app.json +30 -0
- package/example/assets/adaptive-icon.png +0 -0
- package/example/assets/favicon.png +0 -0
- package/example/assets/icon.png +0 -0
- package/example/assets/splash-icon.png +0 -0
- package/example/babel.config.js +28 -0
- package/example/index.js +8 -0
- package/example/metro.config.js +18 -0
- package/example/package.json +25 -0
- package/example/src/App.tsx +8 -0
- package/example/tsconfig.json +6 -0
- package/example/yarn.lock +6552 -0
- package/package.json +2 -2
- package/src/features/celebrations/helpers.ts +35 -33
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +1 -1
- package/src/features/chatbot/components/Chatbot.tsx +2 -2
- package/src/features/chatbot/model/ChatBotModel.ts +10 -5
- package/src/features/chatbot/model/t2s.ts +3 -2
- package/src/features/chatbot/types/api.types.ts +14 -1
- package/src/features/chatbot/types/model.types.ts +12 -5
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +43 -0
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +20 -10
- package/src/features/endOfAssignment/components/EOAModal.tsx +2 -9
- 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 +17 -6
- package/src/features/endOfAssignment/helpers.ts +10 -3
- package/src/features/endOfAssignment/model/model.ts +5 -1
- package/src/features/endOfAssignment/types.ts +2 -1
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +7 -5
- package/src/features/feedback/model/model.ts +4 -1
- package/src/features/feedback/model/sockets.ts +8 -6
- package/src/features/formulaSheet/components/FormulaSheetModal.tsx +14 -2
- package/src/features/gifCelebrations/components/Gif.tsx +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +4 -3
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +19 -6
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +3 -4
- package/src/features/keyboard/components/BasicLayout/TimeBasicLayout.tsx +1 -1
- package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +4 -0
- package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +9 -2
- package/src/features/keyboard/components/BasicPlusLayout/keyboardGroups.ts +7 -21
- package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +2 -1
- package/src/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.ts +0 -4
- package/src/features/keyboard/components/Keyboard.tsx +23 -19
- package/src/features/keyboard/components/KeysList/KeysList.tsx +5 -6
- package/src/features/keyboard/components/KeysList/helpers.ts +3 -1
- package/src/features/keyboard/components/MainLayout/MainLayout.tsx +74 -0
- package/src/features/keyboard/components/{constants.ts → MainLayout/constants.ts} +2 -13
- package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -18
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +17 -0
- package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +14 -0
- package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +24 -29
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +4 -1
- package/src/features/keyboard/components/UnitsLayout/helpers.tsx +10 -2
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +0 -4
- package/src/features/keyboard/constants/constants.ts +1 -1
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +23 -0
- package/src/features/keyboard/constants/keyboardLayouts.ts +12 -1
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +2 -2
- package/src/features/keyboard/types/MathKeysGroups/specialOperators.tsx +21 -0
- package/src/features/keyboard/types/MathKeysGroups/units.tsx +14 -13
- package/src/features/keyboard/types/keyboardGroupIds.ts +2 -0
- package/src/features/keyboard/types/types.ts +2 -0
- package/src/lib/helpers/helpers.ts +23 -8
- package/src/lib/types/requests.ts +1 -0
- package/src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx +17 -0
- package/src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx +20 -0
- package/src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx +20 -0
- package/src/shared/translation/constants.ts +2 -0
- package/src/shared/translation/localization/ca.json +5 -5
- package/src/shared/translation/localization/de.json +42 -0
- package/src/shared/translation/localization/en.json +5 -5
- package/src/shared/translation/localization/gb.json +5 -5
- package/src/shared/translation/localization/sct.json +5 -5
- package/src/shared/translation/localization/sw.json +5 -5
- package/src/shared/translation/types.ts +4 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +34 -0
- package/yarn.lock +8623 -0
- package/dist/commonjs/features/keyboard/components/constants.js.map +0 -1
- package/dist/module/features/keyboard/components/constants.js.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/constants.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_reactNativeUi","_ExamSubmitContent","_PracticeButton","_useKeyboard","_constants","_jsxRuntime","e","__esModule","default","ExamSubmit","textContent","model","onPracticePress","popUpData","useUnit","$popUpData","isPracticeButtonVisible","user","practiceMode","practiceButtonVisible","newerAssignmentAvailable","handlePracticePress","hidePopUp","useKeyBoard","callback","event","key","KeyboardKeys","ENTER","hidePopUpAndLeave","jsxs","View","style","styles","container","children","jsx","contentBackground","IS_MOBILE","Image","source","ExamSubmitContent","problemsAmount","stats","Typography","variant","title","description","buttonsContainer","Button","ButtonVariant","TERTIARY","PRIMARY","size","ButtonSize","LARGE","colorScheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_reactNativeUi","_ExamSubmitContent","_PracticeButton","_useKeyboard","_constants","_helpers","_jsxRuntime","e","__esModule","default","ExamSubmit","textContent","model","onPracticePress","popUpData","useUnit","$popUpData","isPracticeButtonVisible","user","practiceMode","practiceButtonVisible","newerAssignmentAvailable","handlePracticePress","hidePopUp","useKeyBoard","callback","event","key","KeyboardKeys","ENTER","hidePopUpAndLeave","jsxs","View","style","styles","container","children","jsx","contentBackground","IS_MOBILE","Image","source","ExamSubmitContent","problemsAmount","stats","Typography","variant","title","description","buttonsContainer","Button","ButtonVariant","TERTIARY","PRIMARY","size","ButtonSize","LARGE","colorScheme","getEoaButtonColor","text","textTransform","onPress","leftButtonText","PracticeButton","rightButtonText","exports","StyleSheet","create","flex","gap","SPACING","alignItems","justifyContent","color","COLORS","NEUTRAL_9","paddingVertical","textAlign","fontWeight","paddingTop","paddingBottom","position","zIndex","top","Platform","OS","filter","height","flexDirection","buttonText"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAUA,IAAAI,kBAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAiD,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE1C,MAAMG,UAAU,GAAGA,CAAC;EAAEC,WAAW;EAAEC,KAAK;EAAEC;AAAsC,CAAC,KAAK;EAC3F,MAAMC,SAAS,GAAG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,qBAAM,CAACC,SAAS;IACvBC,eAAe,EAAEN,sBAAO,CAAC,GAAG;EAC9B,CAAC;EACDtB,WAAW,EAAE;IACXyB,KAAK,EAAEC,qBAAM,CAACC,SAAS;IACvBE,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAET,sBAAO,CAAC,GAAG,CAAC;IACxBU,aAAa,EAAEV,sBAAO,CAAC,IAAI;EAC7B,CAAC;EACDhC,iBAAiB,EAAE;IACjB2C,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,CAAC;IACVC,GAAG,EAAE,KAAK;IACV,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI;MAC3BC,MAAM,EAAE;IACV,CAAC;EACH,CAAC;EACDrC,gBAAgB,EAAE;IAChBsC,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBjB,UAAU,EAAE,QAAQ;IACpBF,GAAG,EAAEC,sBAAO,CAAC,GAAG;EAClB,CAAC;EACDmB,UAAU,EAAE;IACV7B,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,8 @@ var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
|
11
11
|
var _NoAnswerContent = require("./NoAnswerContent.js");
|
|
12
12
|
var _useKeyboard = require("../../../../shared/hooks/useKeyboard.js");
|
|
13
13
|
var _constants = require("../../../../lib/constants.js");
|
|
14
|
+
var _helpers = require("../../helpers.js");
|
|
15
|
+
var _AssessmentScoreCard = require("../AssessmentScoreCard/AssessmentScoreCard.js");
|
|
14
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
18
|
const NoAnswer = ({
|
|
@@ -22,12 +24,13 @@ const NoAnswer = ({
|
|
|
22
24
|
const {
|
|
23
25
|
stats,
|
|
24
26
|
isExam,
|
|
27
|
+
isAssessment,
|
|
25
28
|
user
|
|
26
29
|
} = popUpData ?? {};
|
|
27
30
|
function getButtons() {
|
|
28
31
|
const buttons = [{
|
|
29
32
|
text: textContent.leftButtonText ?? '',
|
|
30
|
-
colorScheme:
|
|
33
|
+
colorScheme: (0, _helpers.getEoaButtonColor)(popUpData),
|
|
31
34
|
onPress: () => model.hidePopUpAndLeave()
|
|
32
35
|
}];
|
|
33
36
|
if (!isExam) {
|
|
@@ -76,7 +79,11 @@ const NoAnswer = ({
|
|
|
76
79
|
style: styles.subtitle,
|
|
77
80
|
children: textContent.subtitle
|
|
78
81
|
})]
|
|
79
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
82
|
+
}), isAssessment ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_AssessmentScoreCard.AssessmentScoreCard, {
|
|
83
|
+
textContent: textContent,
|
|
84
|
+
solvedAmount: stats?.solvedAmount,
|
|
85
|
+
problemsAmount: stats?.problemsAmount
|
|
86
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoAnswerContent.NoAnswerContent, {
|
|
80
87
|
solvedAmount: stats?.solvedAmount ?? 0,
|
|
81
88
|
problemsAmount: stats?.problemsAmount ?? 0
|
|
82
89
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_reactNativeUi","_NoAnswerContent","_useKeyboard","_constants","_jsxRuntime","e","__esModule","default","NoAnswer","model","textContent","onPracticePress","popUpData","useUnit","$popUpData","stats","isExam","user","getButtons","buttons","text","leftButtonText","colorScheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_reactNativeUi","_NoAnswerContent","_useKeyboard","_constants","_helpers","_AssessmentScoreCard","_jsxRuntime","e","__esModule","default","NoAnswer","model","textContent","onPracticePress","popUpData","useUnit","$popUpData","stats","isExam","isAssessment","user","getButtons","buttons","text","leftButtonText","colorScheme","getEoaButtonColor","onPress","hidePopUpAndLeave","push","rightButtonText","ButtonColor","BLUE","goToFirstProblemPressed","hidePopUp","isPracticeAvailable","practiceMode","practiceButtonVisible","YELLOW","useKeyBoard","callback","event","key","KeyboardKeys","ENTER","primaryButton","at","jsxs","View","style","styles","container","children","textContainer","title","jsx","Typography","variant","subtitle","length","AssessmentScoreCard","solvedAmount","problemsAmount","NoAnswerContent","buttonsContainer","map","button","index","Button","ButtonVariant","PRIMARY","TERTIARY","size","ButtonSize","LARGE","textTransform","exports","StyleSheet","create","height","gap","SPACING","alignItems","justifyContent","flexDirection","color","COLORS","NEUTRAL_9","marginBottom","paddingVertical","NEUTRAL_7","buttonText"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/NoAnswer/NoAnswer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAWA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,oBAAA,GAAAR,OAAA;AAAgF,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzE,MAAMG,QAAQ,GAAGA,CAAC;EAAEC,KAAK;EAAEC,WAAW;EAAEC;AAAsC,CAAC,KAAK;EACzF,MAAMC,SAAS,GAAG,IAAAC,sBAAO,EAACJ,KAAK,CAACK,UAAU,CAAC;EAE3C,MAAM;IAAEC,KAAK;IAAEC,MAAM;IAAEC,YAAY;IAAEC;EAAK,CAAC,GAAGN,SAAS,IAAI,CAAC,CAAC;EAE7D,SAASO,UAA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EACpE5B,aAAa,EAAE;IACb6B,UAAU,EAAE;EACd,CAAC;EACDS,UAAU,EAAE;IACVhB,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.shouldDisplayModalBackground = exports.getModalContainerSize = void 0;
|
|
6
|
+
exports.shouldDisplayModalBackground = exports.getModalContainerSize = exports.getEoaButtonColor = void 0;
|
|
7
7
|
var _constants = require("./constants.js");
|
|
8
8
|
var _types = require("./types.js");
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
9
10
|
const getModalContainerSize = modalVariant => {
|
|
10
11
|
switch (modalVariant) {
|
|
11
12
|
case _types.EOAModalVariant.EXAM_SUBMIT:
|
|
12
13
|
case _types.EOAModalVariant.EXAM_SAFE_MODE_SUBMIT:
|
|
13
14
|
return {
|
|
14
15
|
container: {
|
|
15
|
-
width:
|
|
16
|
+
width: 620,
|
|
16
17
|
height: 384
|
|
17
18
|
}
|
|
18
19
|
};
|
|
@@ -28,7 +29,7 @@ const getModalContainerSize = modalVariant => {
|
|
|
28
29
|
return {
|
|
29
30
|
container: {
|
|
30
31
|
width: 550,
|
|
31
|
-
height:
|
|
32
|
+
height: 325
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
case _types.EOAModalVariant.HAS_GOOD_DRAWING:
|
|
@@ -61,4 +62,10 @@ const shouldDisplayModalBackground = modalVariant => {
|
|
|
61
62
|
return _constants.MODALS_WITH_BACKGROUND.includes(modalVariant);
|
|
62
63
|
};
|
|
63
64
|
exports.shouldDisplayModalBackground = shouldDisplayModalBackground;
|
|
65
|
+
const getEoaButtonColor = popupData => {
|
|
66
|
+
if (popupData?.isAssessment) return _reactNativeUi.ButtonColor.SUNSET;
|
|
67
|
+
if (popupData?.isExam) return _reactNativeUi.ButtonColor.PURPLE;
|
|
68
|
+
return _reactNativeUi.ButtonColor.BLUE;
|
|
69
|
+
};
|
|
70
|
+
exports.getEoaButtonColor = getEoaButtonColor;
|
|
64
71
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_types","getModalContainerSize","modalVariant","EOAModalVariant","EXAM_SUBMIT","EXAM_SAFE_MODE_SUBMIT","container","width","height","EXAM_PAUSED","EXAM_SAFE_MODE_CHEAT_DETECTED","EXAM_SAFE_MODE_LEAVE","HAS_GOOD_DRAWING","HAS_CORRECT_ANSWERS","EXAM_FINISHED_HAS_CORRECT_ANSWERS","exports","shouldDisplayModalBackground","MODALS_WITH_BACKGROUND","includes"],"sourceRoot":"../../../../src","sources":["features/endOfAssignment/helpers.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,
|
|
1
|
+
{"version":3,"names":["_constants","require","_types","_reactNativeUi","getModalContainerSize","modalVariant","EOAModalVariant","EXAM_SUBMIT","EXAM_SAFE_MODE_SUBMIT","container","width","height","EXAM_PAUSED","EXAM_SAFE_MODE_CHEAT_DETECTED","EXAM_SAFE_MODE_LEAVE","HAS_GOOD_DRAWING","HAS_CORRECT_ANSWERS","EXAM_FINISHED_HAS_CORRECT_ANSWERS","exports","shouldDisplayModalBackground","MODALS_WITH_BACKGROUND","includes","getEoaButtonColor","popupData","isAssessment","ButtonColor","SUNSET","isExam","PURPLE","BLUE"],"sourceRoot":"../../../../src","sources":["features/endOfAssignment/helpers.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEO,MAAMG,qBAAqB,GAAIC,YAA6B,IAAK;EACtE,QAAQA,YAAY;IAClB,KAAKC,sBAAe,CAACC,WAAW;IAChC,KAAKD,sBAAe,CAACE,qBAAqB;MACxC,OAAO;QAAEC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X,OAAA,CAAAI,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -13,10 +13,17 @@ class EOAModel {
|
|
|
13
13
|
leavePressed = (0, _effector.createEvent)();
|
|
14
14
|
goToFirstProblemPressed = (0, _effector.createEvent)();
|
|
15
15
|
recommendationsUpdated = (0, _effector.createEvent)();
|
|
16
|
+
popUpStatsUpdated = (0, _effector.createEvent)();
|
|
16
17
|
popUpTriggered = (0, _effector.createEvent)();
|
|
17
18
|
$popUpData = (0, _effector.createStore)(null).on(this.showPopUp, (_, payload) => payload).on(this.recommendationsUpdated, (state, hasRecommendations) => state ? {
|
|
18
19
|
...state,
|
|
19
20
|
hasRecommendations
|
|
21
|
+
} : state).on(this.popUpStatsUpdated, (state, payload) => state ? {
|
|
22
|
+
...state,
|
|
23
|
+
stats: {
|
|
24
|
+
...state.stats,
|
|
25
|
+
...payload
|
|
26
|
+
}
|
|
20
27
|
} : state).reset(this.hidePopUp);
|
|
21
28
|
$modalVariant = (0, _effector.createStore)(null).on(this.showPopUp, (_, popUpData) => {
|
|
22
29
|
if (!popUpData) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_types","EOAModel","showPopUp","createEvent","hidePopUp","practicePressed","leavePressed","goToFirstProblemPressed","recommendationsUpdated","popUpTriggered","$popUpData","createStore","on","_","payload","state","hasRecommendations","reset","$modalVariant","popUpData","isExam","
|
|
1
|
+
{"version":3,"names":["_effector","require","_types","EOAModel","showPopUp","createEvent","hidePopUp","practicePressed","leavePressed","goToFirstProblemPressed","recommendationsUpdated","popUpStatsUpdated","popUpTriggered","$popUpData","createStore","on","_","payload","state","hasRecommendations","stats","reset","$modalVariant","popUpData","isExam","examFinished","eventType","cheatDetection","solvedAmount","goodDrawingAmount","EOAModalVariant","NO_CORRECT_ANSWERS","HAS_GOOD_DRAWING","HAS_CORRECT_ANSWERS","EOAEventType","EXAM_PAUSED","CHEAT_DETECTED","EXAM_SAFE_MODE_CHEAT_DETECTED","SUBMIT","EXAM_SAFE_MODE_SUBMIT","EXAM_SUBMIT","EXAM_FINISHED","EXAM_FINISHED_HAS_CORRECT_ANSWERS","EXAM_FINISHED_NO_CORRECT_ANSWERS","EXAM_SAFE_MODE_LEAVE","hidePopUpAndLeave","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,QAAQ,CAAC;EACJC,SAAS,GAAG,IAAAC,qBAAW,EAAe,CAAC;EACvCC,SAAS,GAAG,IAAAD,qBAAW,EAAC,CAAC;EAEzBE,eAAe,GAAG,IAAAF,qBAAW,EAAC,CAAC;EAC/BG,YAAY,GAAG,IAAAH,qBAAW,EAAC,CAAC;EAC5BI,uBAAuB,GAAG,IAAAJ,qBAAW,EAAC,CAAC;EACvCK,sBAAsB,GAAG,IAAAL,qBAAW,EAAU,CAAC;EAC/CM,iBAAiB,GAAG,IAAAN,qBAAW,EAAiC,CAAC;EACjEO,cAAc,GAAG,IAAAP,qBAAW,EAAe,CAAC;EAE5CQ,UAAU,GAAG,IAAAC,qBAAW,EAAsB,IAAI,CAAC,CAChEC,EAAE,CAAC,IAAI,CAACX,SAAS,EAAE,CAACY,CAAC,EAAEC,OAAO,KAAKA,OAAO,CAAC,CAC3CF,EAAE,CAAC,IAAI,CAACL,sBAAsB,EAAE,CAACQ,KAAK,EAAEC,kBAAkB,KACzDD,KAAK,GAAG;IAAE,GAAGA,KAAK;IAAEC;EAAmB,CAAC,GAAGD,KAC7C,CAAC,CACAH,EAAE,CAAC,IAAI,CAACJ,iBAAiB,EAAE,CAACO,KAAK,EAAED,OAAO,KACzCC,KAAK,GAAG;IAAE,GAAGA,KAAK;IAAEE,KAAK,EAAE;MAAE,GAAGF,KAAK,CAACE,KAAK;MAAE,GAAGH;IAAQ;EAAE,CAAC,GAAGC,KAChE,CAAC,CACAG,KAAK,CAAC,IAAI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EAERuC,iBAAiB,GAAGA,CAAA,KAAM;IACxC,IAAI,CAACrC,YAAY,CAAC,CAAC;IACnB,IAAI,CAACF,SAAS,CAAC,CAAC;EAClB,CAAC;AACH;AAACwC,OAAA,CAAA3C,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -12,16 +12,17 @@ var _PracticeButton = require("./PracticeButton.js");
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
const APPEARANCE_DELAY = 1600;
|
|
15
16
|
const PracticeButtonGroup = ({
|
|
16
17
|
textContent,
|
|
17
18
|
isPracticeButtonVisible,
|
|
18
19
|
onLeftButtonPress,
|
|
19
20
|
onRightButtonPress,
|
|
20
|
-
|
|
21
|
+
buttonColor = _reactNativeUi.ButtonColor.BLUE
|
|
21
22
|
}) => {
|
|
22
23
|
const buttonsContainerOpacity = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
23
24
|
(0, _react.useEffect)(() => {
|
|
24
|
-
buttonsContainerOpacity.value = (0, _reactNativeReanimated.withDelay)(
|
|
25
|
+
buttonsContainerOpacity.value = (0, _reactNativeReanimated.withDelay)(APPEARANCE_DELAY, (0, _reactNativeReanimated.withTiming)(1, {
|
|
25
26
|
duration: 500
|
|
26
27
|
}));
|
|
27
28
|
}, []);
|
|
@@ -30,11 +31,11 @@ const PracticeButtonGroup = ({
|
|
|
30
31
|
opacity: buttonsContainerOpacity
|
|
31
32
|
}],
|
|
32
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
33
|
-
entering: isPracticeButtonVisible ? _reactNativeReanimated.FadeInRight.delay(
|
|
34
|
+
entering: isPracticeButtonVisible ? _reactNativeReanimated.FadeInRight.delay(APPEARANCE_DELAY).duration(500).easing(_reactNativeReanimated.Easing.ease) : _reactNativeReanimated.FadeInUp.duration(500),
|
|
34
35
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
35
36
|
variant: isPracticeButtonVisible ? _reactNativeUi.ButtonVariant.TERTIARY : _reactNativeUi.ButtonVariant.PRIMARY,
|
|
36
37
|
size: _reactNativeUi.ButtonSize.LARGE,
|
|
37
|
-
colorScheme:
|
|
38
|
+
colorScheme: buttonColor,
|
|
38
39
|
style: {
|
|
39
40
|
text: {
|
|
40
41
|
textTransform: 'uppercase'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeUi","_PracticeButton","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","PracticeButtonGroup","textContent","isPracticeButtonVisible","onLeftButtonPress","onRightButtonPress","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_reactNativeUi","_PracticeButton","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","APPEARANCE_DELAY","PracticeButtonGroup","textContent","isPracticeButtonVisible","onLeftButtonPress","onRightButtonPress","buttonColor","ButtonColor","BLUE","buttonsContainerOpacity","useSharedValue","useEffect","value","withDelay","withTiming","duration","jsxs","View","style","styles","buttonsContainer","opacity","children","jsx","entering","FadeInRight","delay","easing","Easing","ease","FadeInUp","Button","variant","ButtonVariant","TERTIARY","PRIMARY","size","ButtonSize","LARGE","colorScheme","text","textTransform","onPress","leftButtonText","PracticeButton","rightButtonText","exports","StyleSheet","create","height","flexDirection","alignItems","justifyContent","paddingHorizontal","SPACING"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/ui/PracticeButtonGroup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAQA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAAiD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,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C,GAAG,CAAC,CAACY,MAAM,CAACC,6BAAM,CAACC,IAAI,CAAC,GACrEC,+BAAQ,CAACf,QAAQ,CAAC,GAAG,CAC1B;MAAAO,QAAA,eAED,IAAA3C,WAAA,CAAA4C,GAAA,EAAC9C,cAAA,CAAAsD,MAAM;QACLC,OAAO,EAAE7B,uBAAuB,GAAG8B,4BAAa,CAACC,QAAQ,GAAGD,4BAAa,CAACE,OAAQ;QAClFC,IAAI,EAAEC,yBAAU,CAACC,KAAM;QACvBC,WAAW,EAAEjC,WAAY;QACzBY,KAAK,EAAE;UAAEsB,IAAI,EAAE;YAAEC,aAAa,EAAE;UAAY;QAAE,CAAE;QAChDC,OAAO,EAAEtC,iBAAkB;QAAAkB,QAAA,EAE1BpB,WAAW,CAACyC;MAAc,CACrB;IAAC,CACI,CAAC,eAChB,IAAAhE,WAAA,CAAA4C,GAAA,EAAC/C,sBAAA,CAAAU,OAAQ,CAAC+B,IAAI;MAAAK,QAAA,EACXnB,uBAAuB,iBACtB,IAAAxB,WAAA,CAAA4C,GAAA,EAAC7C,eAAA,CAAAkE,cAAc;QAACF,OAAO,EAAErC,kBAAmB;QAACmC,IAAI,EAAEtC,WAAW,CAAC2C;MAAgB,CAAE;IAClF,CACY,CAAC;EAAA,CACH,CAAC;AAEpB,CAAC;AAAAC,OAAA,CAAA7C,mBAAA,GAAAA,mBAAA;AAED,MAAMkB,MAAM,GAAG4B,uBAAU,CAACC,MAAM,CAAC;EAC/B5B,gBAAgB,EAAE;IAChB6B,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG;EAChC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_api","_sockets","_comments","_helpers","_constants","TeacherFeedbackModel","setIsOpen","createEvent","$isOpen","restore","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","TeacherFeedbackAPI","sockets","TeacherFeedbackSockets","comments","TeacherCommentsModel","sample","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","EMPTY_COMMENT_ID","commentId","delete","findCommentsByCredits","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","generateCommentsMap","id","setData","commentDeleted","comment","exerciseId","commentAdded","add","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;
|
|
1
|
+
{"version":3,"names":["_effector","require","_api","_sockets","_comments","_helpers","_constants","TeacherFeedbackModel","setIsOpen","createEvent","$isOpen","restore","setIsFeedbackIconDisplayed","$isFeedbackIconDisplayed","constructor","api","socket","credits","TeacherFeedbackAPI","sockets","TeacherFeedbackSockets","comments","TeacherCommentsModel","sample","clock","$problemId","fn","target","source","data","$data","assignmentId","$assignmentId","problemId","filter","isOpen","get","isOnlyNoCommentsMessage","length","_id","EMPTY_COMMENT_ID","commentId","delete","findCommentsByCredits","hasUnreadComments","some","isRead","ids","map","updateCommentStatusSeenFx","pending","setAllCommentsRead","getCommentsFx","done","params","result","generateCommentsMap","id","setData","commentDeleted","comment","exerciseId","commentAdded","add","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QA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QACTa,MAAM,EAAEX,MAAM,IAAIyB,OAAO,CAAC3B,SAAS,KAAKA;MAC1C,CAAC,CAAC;MACFN,MAAM,EAAE,IAAI,CAACN,QAAQ,CAAC0C;IACxB,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAAzD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -7,18 +7,21 @@ exports.TeacherFeedbackSockets = void 0;
|
|
|
7
7
|
var _effector = require("effector");
|
|
8
8
|
var _types = require("../types.js");
|
|
9
9
|
class TeacherFeedbackSockets {
|
|
10
|
+
socket = null;
|
|
10
11
|
commentAdded = (0, _effector.createEvent)();
|
|
11
12
|
commentDeleted = (0, _effector.createEvent)();
|
|
12
13
|
constructor(socket) {
|
|
13
|
-
|
|
14
|
+
if (socket) {
|
|
15
|
+
this.socket = socket;
|
|
16
|
+
}
|
|
14
17
|
}
|
|
15
18
|
connect() {
|
|
16
|
-
this.socket
|
|
17
|
-
this.socket
|
|
19
|
+
this.socket?.on(_types.FeedbackSocketEvents.COMMENT_ADDED, this.commentAdded);
|
|
20
|
+
this.socket?.on(_types.FeedbackSocketEvents.COMMENT_DELETED, this.commentDeleted);
|
|
18
21
|
}
|
|
19
22
|
off() {
|
|
20
|
-
this.socket
|
|
21
|
-
this.socket
|
|
23
|
+
this.socket?.off(_types.FeedbackSocketEvents.COMMENT_ADDED, this.commentAdded);
|
|
24
|
+
this.socket?.off(_types.FeedbackSocketEvents.COMMENT_DELETED, this.commentDeleted);
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
exports.TeacherFeedbackSockets = TeacherFeedbackSockets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_types","TeacherFeedbackSockets","commentAdded","createEvent","commentDeleted","constructor","
|
|
1
|
+
{"version":3,"names":["_effector","require","_types","TeacherFeedbackSockets","socket","commentAdded","createEvent","commentDeleted","constructor","connect","on","FeedbackSocketEvents","COMMENT_ADDED","COMMENT_DELETED","off","exports"],"sourceRoot":"../../../../../src","sources":["features/feedback/model/sockets.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,sBAAsB,CAAC;EACjBC,MAAM,GAAQ,IAAI;EACnBC,YAAY,GAAG,IAAAC,qBAAW,EAAiB,CAAC;EAC5CC,cAAc,GAAG,IAAAD,qBAAW,EAAiB,CAAC;EAE9DE,WAAWA,CAACJ,MAAW,EAAE;IACvB,IAAIA,MAAM,EAAE;MACV,IAAI,CAACA,MAAM,GAAGA,MAAM;IACtB;EACF;EAEAK,OAAOA,CAAA,EAAG;IACR,IAAI,CAACL,MAAM,EAAEM,EAAE,CAACC,2BAAoB,CAACC,aAAa,EAAE,IAAI,CAACP,YAAY,CAAC;IACtE,IAAI,CAACD,MAAM,EAAEM,EAAE,CAACC,2BAAoB,CAACE,eAAe,EAAE,IAAI,CAACN,cAAc,CAAC;EAC5E;EAEAO,GAAGA,CAAA,EAAG;IACJ,IAAI,CAACV,MAAM,EAAEU,GAAG,CAACH,2BAAoB,CAACC,aAAa,EAAE,IAAI,CAACP,YAAY,CAAC;IACvE,IAAI,CAACD,MAAM,EAAEU,GAAG,CAACH,2BAAoB,CAACE,eAAe,EAAE,IAAI,CAACN,cAAc,CAAC;EAC7E;AACF;AAACQ,OAAA,CAAAZ,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -11,13 +11,16 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const FormulaSheetModal = ({
|
|
13
13
|
children,
|
|
14
|
-
loaderColor,
|
|
14
|
+
loaderColor = _reactNativeUi.LoaderColor.BLUE,
|
|
15
15
|
isLoading,
|
|
16
16
|
onClose
|
|
17
17
|
}) => {
|
|
18
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
19
|
+
transparent: true
|
|
20
|
+
//it is needed for the new RN architecture. Should be rewriten on modalfy
|
|
21
|
+
,
|
|
22
|
+
supportedOrientations: _reactNativeUi.IS_MOBILE ? ['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'] : undefined,
|
|
19
23
|
visible: true,
|
|
20
|
-
transparent: true,
|
|
21
24
|
animationType: "none",
|
|
22
25
|
onRequestClose: onClose,
|
|
23
26
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","FormulaSheetModal","children","loaderColor","isLoading","onClose","jsx","Modal","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","FormulaSheetModal","children","loaderColor","LoaderColor","BLUE","isLoading","onClose","jsx","Modal","transparent","supportedOrientations","IS_MOBILE","undefined","visible","animationType","onRequestClose","TouchableWithoutFeedback","onPress","View","style","styles","container","event","stopPropagation","content","Loader","type","LoaderType","PRIMARY","color","size","LoaderSize","LARGE","exports","StyleSheet","create","width","height","alignItems","justifyContent","backgroundColor","maxWidth","maxHeight","paddingHorizontal","SPACING","paddingVertical","borderRadius","BORDER_RADIUS","COLORS","NEUTRAL_1"],"sourceRoot":"../../../../../src","sources":["features/formulaSheet/components/FormulaSheetModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AASmC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ5B,MAAMG,iBAAiB,GAAGA,CAAC;EAChCC,QAAQ;EACRC,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AAM;IACbC,MAAM,EAAE,MAAM;IACdC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,eAAe,EAAE;EACnB,CAAC;EACDhB,OAAO,EAAE;IACPY,KAAK,EAAE,MAAM;IACbK,QAAQ,EAAE,GAAG;IACbJ,MAAM,EAAE,MAAM;IACdK,SAAS,EAAE,KAAK;IAChBJ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBI,iBAAiB,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACjCC,eAAe,EAAED,sBAAO,CAAC,KAAK,CAAC;IAC/BE,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCP,eAAe,EAAEQ,qBAAM,CAACC;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativeUi","_constants","_index","_helpers","_gifFallback","_interopRequireDefault","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Gif","gifObject","getCachePathMethod","TextComponent","size","setSize","useState","pathOrUri","setPathOrUri","useText","gifGroupNumber","Number","group","replace","gifLabel","getGifLabel","useLayoutEffect","loadImageSize","localPath","getImagePath","url","error","IS_WEB","gifFallback","Image","resolveAssetSource","uri","console","getSize","width","height","constrainDimension","MIN_GIF_SIZE","MAX_GIF_SIZE","WIDTH","HEIGHT","jsx","View","style","styles","backgroundContainer","children","jsxs","container","alt","source","image","textContainer","exports","StyleSheet","create","backgroundColor","borderRadius","padding","SPACING","BORDER_RADIUS","COLORS","NEUTRAL_1","position","bottom","alignSelf"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/components/Gif.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAA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,EAAE;IACnBW,eAAe,EAAE,0BAA0B;IAC3CC,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAEC,sBAAO,CAAC,GAAG;EACtB,CAAC;EACDX,SAAS,EAAE;IACTU,OAAO,EAAEC,sBAAO,CAAC,IAAI,CAAC;IACtBF,YAAY,EAAEG,4BAAa,CAAC,GAAG,CAAC;IAChCJ,eAAe,EAAEK,qBAAM,CAACC;EAC1B,CAAC;EACDX,KAAK,EAAE;IACLM,YAAY,EAAEG,4BAAa,CAAC,GAAG;EACjC,CAAC;EACDR,aAAa,EAAE;IACbW,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,EAAE;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativeUi","_constants","_index","_helpers","_gifFallback","_interopRequireDefault","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Gif","gifObject","getCachePathMethod","TextComponent","size","setSize","useState","pathOrUri","setPathOrUri","useText","gifGroupNumber","Number","group","replace","gifLabel","getGifLabel","useLayoutEffect","loadImageSize","localPath","getImagePath","url","error","IS_WEB","gifFallback","Image","resolveAssetSource","uri","console","getSize","width","height","constrainDimension","MIN_GIF_SIZE","MAX_GIF_SIZE","WIDTH","HEIGHT","jsx","View","style","styles","backgroundContainer","children","jsxs","container","alt","source","image","textContainer","exports","StyleSheet","create","backgroundColor","borderRadius","padding","SPACING","BORDER_RADIUS","COLORS","NEUTRAL_1","position","bottom","alignSelf"],"sourceRoot":"../../../../../src","sources":["features/gifCelebrations/components/Gif.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAA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AAC;EACDX,SAAS,EAAE;IACTU,OAAO,EAAEC,sBAAO,CAAC,IAAI,CAAC;IACtBF,YAAY,EAAEG,4BAAa,CAAC,GAAG,CAAC;IAChCJ,eAAe,EAAEK,qBAAM,CAACC;EAC1B,CAAC;EACDX,KAAK,EAAE;IACLM,YAAY,EAAEG,4BAAa,CAAC,GAAG;EACjC,CAAC;EACDR,aAAa,EAAE;IACbW,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAErC,qBAAM,GAAG,EAAE,GAAG,EAAE;IACxBsC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,21 +10,28 @@ var _reactNative = require("react-native");
|
|
|
10
10
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
11
|
var _index = require("../../../../shared/translation/index.js");
|
|
12
12
|
var _types = require("../../types/types.js");
|
|
13
|
-
var _constants = require("../../constants/constants.js");
|
|
14
13
|
var _types2 = require("./types.js");
|
|
15
14
|
var _helpers = require("../../helpers.js");
|
|
16
15
|
var _helpers2 = require("./helpers.js");
|
|
17
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
const
|
|
19
|
+
const MOBILE_LAYOUT_WIDTH = 1300;
|
|
20
|
+
const AlgebraLayout = ({
|
|
21
|
+
onLayoutChange,
|
|
22
|
+
...props
|
|
23
|
+
}) => {
|
|
21
24
|
const [selectedLayout, setSelectedLayout] = (0, _react.useState)(_types2.SelectedLayout.BASIC);
|
|
22
25
|
const t = (0, _index.useText)();
|
|
23
26
|
const {
|
|
24
27
|
width
|
|
25
28
|
} = (0, _reactNative.useWindowDimensions)();
|
|
26
|
-
const selectOptions = (0, _helpers2.getSelectOptions)(
|
|
27
|
-
|
|
29
|
+
const selectOptions = (0, _helpers2.getSelectOptions)({
|
|
30
|
+
selectedLayout,
|
|
31
|
+
setSelectedLayout,
|
|
32
|
+
onLayoutChange
|
|
33
|
+
});
|
|
34
|
+
const isDesktop = width > MOBILE_LAYOUT_WIDTH && !_reactNativeUi.IS_MOBILE;
|
|
28
35
|
const locale = t('locale');
|
|
29
36
|
const keyboardGroups = (0, _react.useMemo)(() => {
|
|
30
37
|
const algebra = (0, _helpers.getKeyboardGroup)(locale, _types.KeyboardType.AlgebraAdvanced);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_KeysList","_reactNative","_reactNativeUi","_index","_types","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_KeysList","_reactNative","_reactNativeUi","_index","_types","_types2","_helpers","_helpers2","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MOBILE_LAYOUT_WIDTH","AlgebraLayout","onLayoutChange","props","selectedLayout","setSelectedLayout","useState","SelectedLayout","BASIC","useText","width","useWindowDimensions","selectOptions","getSelectOptions","isDesktop","IS_MOBILE","locale","keyboardGroups","useMemo","algebra","getKeyboardGroup","KeyboardType","AlgebraAdvanced","basic","BasicPlusPlus","BasicPlusPlusMobile","Map","ALGEBRA","currentKeys","keys","jsxs","View","style","styles","container","children","jsx","SelectGroup","numOfRows","options","size","SelectOptionSize","SMALL","optionContainer","option","color","selectedOptions","KeysList","exports","StyleSheet","create","display","flexDirection","gap","paddingRight","flexGrow","flexShrink","flexBasis","borderRightWidth","borderRightColor","COLORS","NEUTRAL_3","maxWidth"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AAA4C,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CA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PC,YAAY,EAAE;EAChB,CAAC;EACDX,eAAe,EAAE;IACfY,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE1C,wBAAS,GAAG,EAAE,GAAG,MAAM;IAClCL,KAAK,EAAE,MAAM;IACb4C,YAAY,EAAE,EAAE;IAChBI,gBAAgB,EAAE,CAAC;IACnBC,gBAAgB,EAAEC,qBAAM,CAACC,SAAS;IAClCC,QAAQ,EAAE,EAAE;IACZT,GAAG,EAAE;EACP,CAAC;EACDT,MAAM,EAAE;IACNa,SAAS,EAAE,EAAE;IACb/C,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -11,21 +11,31 @@ var _IntegralABIcon = require("../../../../shared/icons/keyboard/IntegralABIcon/
|
|
|
11
11
|
var _types = require("./types.js");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function getSelectOptions(
|
|
14
|
+
function getSelectOptions({
|
|
15
|
+
selectedLayout,
|
|
16
|
+
setSelectedLayout,
|
|
17
|
+
onLayoutChange
|
|
18
|
+
}) {
|
|
15
19
|
return [{
|
|
16
20
|
key: _types.SelectedLayout.BASIC,
|
|
17
21
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AlgebraIcon.AlgebraIcon, {
|
|
18
22
|
color: selectedLayout === _types.SelectedLayout.BASIC ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_9,
|
|
19
23
|
size: 22
|
|
20
24
|
}),
|
|
21
|
-
onPressIn: () =>
|
|
25
|
+
onPressIn: () => {
|
|
26
|
+
setSelectedLayout(_types.SelectedLayout.BASIC);
|
|
27
|
+
onLayoutChange?.(false);
|
|
28
|
+
}
|
|
22
29
|
}, {
|
|
23
30
|
key: _types.SelectedLayout.ALGEBRA,
|
|
24
31
|
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IntegralABIcon.IntegralABIcon, {
|
|
25
32
|
color: selectedLayout === _types.SelectedLayout.ALGEBRA ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_9,
|
|
26
33
|
size: 25
|
|
27
34
|
}),
|
|
28
|
-
onPressIn: () =>
|
|
35
|
+
onPressIn: () => {
|
|
36
|
+
setSelectedLayout(_types.SelectedLayout.ALGEBRA);
|
|
37
|
+
onLayoutChange?.(true);
|
|
38
|
+
}
|
|
29
39
|
}];
|
|
30
40
|
}
|
|
31
41
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_AlgebraIcon","_IntegralABIcon","_types","_jsxRuntime","e","__esModule","default","getSelectOptions","selectedLayout","setSelectedLayout","key","SelectedLayout","BASIC","title","jsx","AlgebraIcon","color","COLORS","NEUTRAL_1","NEUTRAL_9","size","onPressIn","ALGEBRA","IntegralABIcon"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/helpers.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAwC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_AlgebraIcon","_IntegralABIcon","_types","_jsxRuntime","e","__esModule","default","getSelectOptions","selectedLayout","setSelectedLayout","onLayoutChange","key","SelectedLayout","BASIC","title","jsx","AlgebraIcon","color","COLORS","NEUTRAL_1","NEUTRAL_9","size","onPressIn","ALGEBRA","IntegralABIcon"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/helpers.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAwC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAcjC,SAASG,gBAAgBA,CAAC;EAC/BC,cAAc;EACdC,iBAAiB;EACjBC;AACqB,CAAC,EAAkB;EACxC,OAAO,CACL;IACEC,GAAG,EAAEC,qBAAc,CAACC,KAAK;IACzBC,KAAK,eACH,IAAAX,WAAA,CAAAY,GAAA,EAACf,YAAA,CAAAgB,WAAW;MACVC,KAAK,EAAET,cAAc,KAAKI,qBAAc,CAACC,KAAK,GAAGK,qBAAM,CAACC,SAAS,GAAGD,qBAAM,CAACE,SAAU;MACrFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfb,iBAAiB,CAACG,qBAAc,CAACC,KAAK,CAAC;MACvCH,cAAc,GAAG,KAAK,CAAC;IACzB;EACF,CAAC,EACD;IACEC,GAAG,EAAEC,qBAAc,CAACW,OAAO;IAC3BT,KAAK,eACH,IAAAX,WAAA,CAAAY,GAAA,EAACd,eAAA,CAAAuB,cAAc;MACbP,KAAK,EAAET,cAAc,KAAKI,qBAAc,CAACW,OAAO,GAAGL,qBAAM,CAACC,SAAS,GAAGD,qBAAM,CAACE,SAAU;MACvFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfb,iBAAiB,CAACG,qBAAc,CAACW,OAAO,CAAC;MACzCb,cAAc,GAAG,IAAI,CAAC;IACxB;EACF,CAAC,CACF;AACH","ignoreList":[]}
|
|
@@ -8,12 +8,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _KeysList = require("../KeysList/KeysList.js");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _types = require("../../types/types.js");
|
|
11
|
-
var _constants = require("../../constants/constants.js");
|
|
12
11
|
var _index = require("../../../../shared/translation/index.js");
|
|
13
12
|
var _keyboardGroupsByLocale = require("../../constants/keyboardGroupsByLocale.js");
|
|
14
13
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
const MOBILE_LAYOUT_WIDTH = 890;
|
|
17
17
|
const BasicLayout = props => {
|
|
18
18
|
const t = (0, _index.useText)();
|
|
19
19
|
const keysByLocale = _keyboardGroupsByLocale.KEYBOARD_GROUPS_BY_LOCALE[t('locale')][_types.KeyboardType.Basic];
|
|
@@ -21,7 +21,7 @@ const BasicLayout = props => {
|
|
|
21
21
|
const {
|
|
22
22
|
width
|
|
23
23
|
} = (0, _reactNative.useWindowDimensions)();
|
|
24
|
-
const isMobile = width <=
|
|
24
|
+
const isMobile = width <= MOBILE_LAYOUT_WIDTH || _reactNativeUi.IS_MOBILE;
|
|
25
25
|
if (isMobile && !props.children) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
@@ -37,12 +37,10 @@ const BasicLayout = props => {
|
|
|
37
37
|
exports.BasicLayout = BasicLayout;
|
|
38
38
|
const styles = _reactNative.StyleSheet.create({
|
|
39
39
|
container: {
|
|
40
|
-
|
|
40
|
+
flex: 1,
|
|
41
41
|
flexDirection: 'row',
|
|
42
|
-
justifyContent: 'space-between',
|
|
43
42
|
flexWrap: 'nowrap',
|
|
44
43
|
gap: 16,
|
|
45
|
-
height: '100%',
|
|
46
44
|
paddingRight: 16
|
|
47
45
|
}
|
|
48
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_KeysList","_reactNative","_types","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_KeysList","_reactNative","_types","_index","_keyboardGroupsByLocale","_reactNativeUi","_jsxRuntime","e","__esModule","default","MOBILE_LAYOUT_WIDTH","BasicLayout","props","t","useText","keysByLocale","KEYBOARD_GROUPS_BY_LOCALE","KeyboardType","Basic","keys","children","slice","width","useWindowDimensions","isMobile","IS_MOBILE","jsxs","View","style","styles","container","jsx","KeysList","numOfRows","exports","StyleSheet","create","flex","flexDirection","flexWrap","gap","paddingRight"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/BasicLayout/BasicLayout.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAsD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD,MAAMG,mBAAmB,GAAG,GAAG;AAExB,MAAMC,WAAW,GAAIC,KAA8C,IAAK;EAC7E,MAAMC,CAAC,GAAG,IAAAC,cAAO,EAAC,CAAC;EACnB,MAAMC,YAAY,GAAGC,iDAAyB,CAACH,CAAC,CAAC,QAAQ,CAAC,CAAW,CAACI,mBAAY,CAACC,KAAK,CAAC;EACzF,MAAMC,IAAI,GAAGP,KAAK,CAACQ,QAAQ,GAAGL,YAAY,CAACI,IAAI,GAAGJ,YAAY,CAACI,IAAI,CAACE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EAChF,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACvC,MAAMC,QAAQ,GAAGF,KAAK,IAAIZ,mBAAmB,IAAIe,wBAAS;EAE1D,IAAID,QAAQ,IAAI,CAACZ,KAAK,CAACQ,QAAQ,EAAE;IAC/B,OAAO,IAAI;EACb;EAEA,oBACE,IAAAd,WAAA,CAAAoB,IAAA,EAACzB,YAAA,CAAA0B,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAV,QAAA,gBAC5B,IAAAd,WAAA,CAAAyB,GAAA,EAAC/B,SAAA,CAAAgC,QAAQ;MAACb,IAAI,EAAEA,IAAK;MAACc,SAAS,EAAE,CAAE;MAAA,GAAKrB;IAAK,CAAG,CAAC,EAChDA,KAAK,CAACQ,QAAQ,IAAI,IAAI;EAAA,CACnB,CAAC;AAEX,CAAC;AAAAc,OAAA,CAAAvB,WAAA,GAAAA,WAAA;AAED,MAAMkB,MAAM,GAAGM,uBAAU,CAACC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,QAAQ;IAClBC,GAAG,EAAE,EAAE;IACPC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -36,7 +36,7 @@ const TimeBasicLayout = props => {
|
|
|
36
36
|
exports.TimeBasicLayout = TimeBasicLayout;
|
|
37
37
|
const styles = _reactNative.StyleSheet.create({
|
|
38
38
|
button: {
|
|
39
|
-
width: _reactNativeUi.IS_MOBILE ?
|
|
39
|
+
width: _reactNativeUi.IS_MOBILE ? 51 : 45
|
|
40
40
|
},
|
|
41
41
|
container: {
|
|
42
42
|
flexBasis: _reactNativeUi.IS_MOBILE ? 55 : 'auto'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.MATH_TIME_US_KEYBOARD_GROUP = exports.MATH_TIME_SW_KEYBOARD_GROUP = exports.MATH_ENTRY_BASIC_SW_KEYBOARD_GROUP = exports.MATH_ENTRY_BASIC_KEYBOARD_GROUP = exports.MATH_CURRENCY_US_KEYBOARD_GROUP = exports.MATH_CURRENCY_UK_KEYBOARD_GROUP = exports.MATH_CURRENCY_SW_KEYBOARD_GROUP = void 0;
|
|
6
|
+
exports.MATH_TIME_US_KEYBOARD_GROUP = exports.MATH_TIME_SW_KEYBOARD_GROUP = exports.MATH_ENTRY_BASIC_SW_KEYBOARD_GROUP = exports.MATH_ENTRY_BASIC_KEYBOARD_GROUP = exports.MATH_CURRENCY_US_KEYBOARD_GROUP = exports.MATH_CURRENCY_UK_KEYBOARD_GROUP = exports.MATH_CURRENCY_SW_KEYBOARD_GROUP = exports.MATH_CURRENCY_DE_KEYBOARD_GROUP = void 0;
|
|
7
7
|
var _basicOperators = require("../../types/MathKeysGroups/basicOperators.js");
|
|
8
8
|
var _units = require("../../types/MathKeysGroups/units.js");
|
|
9
9
|
var _keyboardGroupIds = require("../../types/keyboardGroupIds.js");
|
|
@@ -37,4 +37,8 @@ const MATH_CURRENCY_US_KEYBOARD_GROUP = exports.MATH_CURRENCY_US_KEYBOARD_GROUP
|
|
|
37
37
|
id: _keyboardGroupIds.MathEntryKeyboardGroupId.CURRENCY_US,
|
|
38
38
|
keys: [_units.MATH_CURRENCY_UNITS.DOLLAR, _units.MATH_CURRENCY_UNITS.CENT]
|
|
39
39
|
};
|
|
40
|
+
const MATH_CURRENCY_DE_KEYBOARD_GROUP = exports.MATH_CURRENCY_DE_KEYBOARD_GROUP = {
|
|
41
|
+
id: _keyboardGroupIds.MathEntryKeyboardGroupId.CURRENCY_DE,
|
|
42
|
+
keys: [_units.MATH_CURRENCY_UNITS.EURO, _units.MATH_CURRENCY_UNITS.DOLLAR, _units.MATH_CURRENCY_UNITS.POUND]
|
|
43
|
+
};
|
|
40
44
|
//# sourceMappingURL=keyboardGroups.js.map
|