@magmamath/students-features 0.9.14-rc.16 → 0.9.91
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/celebrations/helpers.js +1 -4
- package/dist/commonjs/features/celebrations/helpers.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 +6 -8
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/t2s.js +3 -4
- 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/ui/PracticeButtonGroup.js +2 -3
- 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 +5 -8
- package/dist/commonjs/features/feedback/model/sockets.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js +1 -5
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +7 -9
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/{MainLayout/MainLayout.js → MainLayout.js} +6 -9
- package/dist/commonjs/features/keyboard/components/MainLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +2 -3
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +1 -2
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +1 -3
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +6 -27
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +1 -9
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js +0 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/{MainLayout/constants.js → constants.js} +1 -1
- package/dist/commonjs/features/keyboard/components/constants.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +1 -22
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +2 -9
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +30 -20
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.js +0 -27
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +3 -6
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.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/lib/helpers/helpers.js +5 -28
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
- package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
- package/dist/commonjs/shared/translation/constants.js +1 -3
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +6 -7
- package/dist/commonjs/shared/translation/localization/en.json +6 -7
- package/dist/commonjs/shared/translation/localization/gb.json +6 -7
- package/dist/commonjs/shared/translation/localization/sct.json +6 -7
- package/dist/commonjs/shared/translation/localization/sw.json +6 -7
- package/dist/commonjs/shared/translation/types.js +0 -1
- package/dist/commonjs/shared/translation/types.js.map +1 -1
- package/dist/module/features/celebrations/helpers.js +1 -4
- package/dist/module/features/celebrations/helpers.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 +6 -8
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/t2s.js +3 -4
- 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/ui/PracticeButtonGroup.js +2 -3
- 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 +5 -8
- package/dist/module/features/feedback/model/sockets.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js +0 -4
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
- package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +2 -4
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/module/features/keyboard/components/{MainLayout/MainLayout.js → MainLayout.js} +6 -9
- package/dist/module/features/keyboard/components/MainLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +2 -3
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +1 -2
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +1 -2
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +6 -27
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +1 -9
- package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/types.js +0 -1
- package/dist/module/features/keyboard/components/UnitsLayout/types.js.map +1 -1
- package/dist/module/features/keyboard/components/{MainLayout/constants.js → constants.js} +1 -1
- package/dist/module/features/keyboard/components/constants.js.map +1 -0
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +3 -24
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardLayouts.js +2 -8
- package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +30 -20
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/specialOperators.js +0 -27
- package/dist/module/features/keyboard/types/MathKeysGroups/specialOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js +3 -6
- package/dist/module/features/keyboard/types/MathKeysGroups/units.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/lib/helpers/helpers.js +5 -28
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
- package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
- package/dist/module/shared/translation/constants.js +1 -3
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +6 -7
- package/dist/module/shared/translation/localization/en.json +6 -7
- package/dist/module/shared/translation/localization/gb.json +6 -7
- package/dist/module/shared/translation/localization/sct.json +6 -7
- package/dist/module/shared/translation/localization/sw.json +6 -7
- package/dist/module/shared/translation/types.js +0 -1
- 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 +7 -8
- 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 +1 -11
- 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 +5 -8
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/feedback/model/model.d.ts +1 -4
- 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/keyboard/components/BasicLayout/keyboardGroups.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.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/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +2 -3
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/{module/features/keyboard/components/MainLayout → commonjs/features/keyboard/components}/MainLayout.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +1 -5
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +0 -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 +7 -4
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts +1 -7
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +13 -5
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/specialOperators.d.ts +0 -18
- 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 +0 -36
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -48
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -2
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -2
- 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 +7 -8
- 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 +1 -11
- 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 +5 -8
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/feedback/model/model.d.ts +1 -4
- 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/keyboard/components/BasicLayout/keyboardGroups.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.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/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +2 -3
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/{commonjs/features/keyboard/components/MainLayout → module/features/keyboard/components}/MainLayout.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +1 -5
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +0 -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 +7 -4
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts +1 -7
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/constants.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +13 -5
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/specialOperators.d.ts +0 -18
- 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 +0 -36
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -48
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -2
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +1 -2
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/celebrations/helpers.ts +33 -35
- package/src/features/chatbot/components/Chatbot.tsx +2 -2
- package/src/features/chatbot/model/ChatBotModel.ts +5 -10
- package/src/features/chatbot/model/t2s.ts +2 -3
- package/src/features/chatbot/types/api.types.ts +1 -14
- package/src/features/chatbot/types/model.types.ts +5 -12
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +3 -4
- package/src/features/feedback/model/model.ts +1 -4
- package/src/features/feedback/model/sockets.ts +6 -8
- package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +0 -4
- package/src/features/keyboard/components/BasicPlusLayout/keyboardGroups.ts +17 -27
- package/src/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.ts +24 -30
- package/src/features/keyboard/components/Keyboard.tsx +6 -16
- package/src/features/keyboard/components/KeysList/KeysList.tsx +1 -1
- package/src/features/keyboard/components/{MainLayout/MainLayout.tsx → MainLayout.tsx} +7 -7
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +2 -7
- package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +3 -5
- package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +1 -1
- package/src/features/keyboard/components/UnitsLayout/helpers.tsx +0 -3
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +22 -36
- package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +0 -11
- package/src/features/keyboard/components/UnitsLayout/types.ts +0 -7
- package/src/features/keyboard/components/{MainLayout/constants.ts → constants.ts} +1 -1
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +0 -23
- package/src/features/keyboard/constants/keyboardLayouts.ts +1 -12
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +24 -15
- package/src/features/keyboard/types/MathKeysGroups/specialOperators.tsx +0 -21
- package/src/features/keyboard/types/MathKeysGroups/units.tsx +0 -3
- package/src/features/keyboard/types/keyboardGroupIds.ts +0 -1
- package/src/lib/helpers/helpers.ts +8 -23
- package/src/shared/icons/keyboard/CDotIcon/CDotIcon.tsx +2 -2
- package/src/shared/translation/constants.ts +0 -2
- package/src/shared/translation/localization/ca.json +6 -7
- package/src/shared/translation/localization/en.json +6 -7
- package/src/shared/translation/localization/gb.json +6 -7
- package/src/shared/translation/localization/sct.json +6 -7
- package/src/shared/translation/localization/sw.json +6 -7
- package/src/shared/translation/types.ts +0 -4
- package/.editorconfig +0 -15
- package/.eslintignore +0 -2
- package/.eslintrc +0 -22
- package/.gitattributes +0 -3
- package/.github/actions/setup/action.yml +0 -37
- package/.github/workflows/ci.yml +0 -73
- package/.gitignore +0 -84
- package/.idea/.gitignore +0 -8
- package/.idea/codeStyles/Project.xml +0 -62
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/copilot.data.migration.agent.xml +0 -6
- package/.idea/copilot.data.migration.ask.xml +0 -6
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/copilot.data.migration.edit.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -8
- package/.idea/jsLinters/eslint.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -7
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_29_12_2025,_13_10_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_29_12_2025,_13_11_[Changes]/shelved.patch +0 -19
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_29_12_2025__13_10__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_29_12_2025__13_11__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025,_11_06_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025,_11_07_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025__11_06__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025__11_07__Changes_.xml +0 -4
- package/.idea/students-features.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -645
- package/.nvmrc +0 -1
- package/.prettierrc +0 -11
- package/.release-it.json +0 -17
- package/.watchmanconfig +0 -1
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
- package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
- package/.yarn/releases/yarn-3.6.1.cjs +0 -874
- package/babel.config.js +0 -5
- package/bob.config.js +0 -25
- package/dist/commonjs/features/keyboard/components/MainLayout/MainLayout.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/MainLayout/constants.js.map +0 -1
- package/dist/commonjs/lib/types/requests.js +0 -2
- package/dist/commonjs/lib/types/requests.js.map +0 -1
- package/dist/commonjs/shared/icons/TimeIcon.js +0 -37
- package/dist/commonjs/shared/icons/TimeIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +0 -32
- package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +0 -32
- package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +0 -1
- package/dist/commonjs/shared/translation/localization/de.json +0 -43
- package/dist/module/features/keyboard/components/MainLayout/MainLayout.js.map +0 -1
- package/dist/module/features/keyboard/components/MainLayout/constants.js.map +0 -1
- package/dist/module/lib/types/requests.js +0 -2
- package/dist/module/lib/types/requests.js.map +0 -1
- package/dist/module/shared/icons/TimeIcon.js +0 -29
- package/dist/module/shared/icons/TimeIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +0 -24
- package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +0 -24
- package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +0 -1
- package/dist/module/shared/translation/localization/de.json +0 -43
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/MainLayout.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/types/requests.d.ts +0 -4
- package/dist/typescript/commonjs/lib/types/requests.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout/MainLayout.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout/constants.d.ts.map +0 -1
- package/dist/typescript/module/lib/types/requests.d.ts +0 -4
- package/dist/typescript/module/lib/types/requests.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/TimeIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/TimeIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +0 -1
- package/example/.expo/README.md +0 -8
- package/example/.expo/devices.json +0 -3
- package/example/.expo/web/cache/production/images/favicon/favicon-24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb-contain-transparent/favicon-48.png +0 -0
- package/example/app.json +0 -30
- 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 +0 -28
- package/example/index.js +0 -8
- package/example/metro.config.js +0 -18
- package/example/package.json +0 -25
- package/example/src/App.tsx +0 -8
- package/example/tsconfig.json +0 -6
- package/example/yarn.lock +0 -6552
- package/src/lib/types/requests.ts +0 -1
- package/src/shared/icons/TimeIcon.tsx +0 -23
- package/src/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.tsx +0 -18
- package/src/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.tsx +0 -18
- package/src/shared/translation/localization/de.json +0 -43
- package/tsconfig.build.json +0 -4
- package/tsconfig.json +0 -34
- package/yarn.lock +0 -8623
- /package/dist/typescript/commonjs/features/keyboard/components/{MainLayout/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/typescript/module/features/keyboard/components/{MainLayout/constants.d.ts → constants.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef, useState, useCallback } from 'react'
|
|
2
2
|
import { Animated, StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
3
3
|
import { SelectOptionColor, IS_MOBILE, IS_WEB } from '@magmamath/react-native-ui'
|
|
4
|
-
import { getLayoutByCharType
|
|
5
|
-
import { KeyboardKey, KeyboardKeyValue } from '
|
|
6
|
-
import { UnderlinedLayout } from '
|
|
7
|
-
import { MOBILE_LAYOUT_WIDTH } from '
|
|
4
|
+
import { getLayoutByCharType } from '../constants/keyboardLayouts'
|
|
5
|
+
import { KeyboardKey, KeyboardKeyValue } from '../types/types'
|
|
6
|
+
import { UnderlinedLayout } from './UnderlinedLayout/UnderlinedLayout'
|
|
7
|
+
import { MOBILE_LAYOUT_WIDTH } from '../constants/constants'
|
|
8
8
|
|
|
9
9
|
type LayoutProps = {
|
|
10
10
|
onKeyPress: (key: KeyboardKeyValue) => void
|
|
@@ -60,11 +60,11 @@ export const MainLayout = ({
|
|
|
60
60
|
}, [showUnderlinedKeys, animateFade])
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
|
-
<View style={
|
|
63
|
+
<View style={styles.container}>
|
|
64
64
|
<Layout {...props} onLayoutChange={setIsSecondaryLayoutSelected} />
|
|
65
65
|
{isUnderlinedLayoutVisible && (
|
|
66
66
|
<Animated.View style={{ opacity: fadeAnim }}>
|
|
67
|
-
<UnderlinedLayout {...props}
|
|
67
|
+
<UnderlinedLayout {...props} />
|
|
68
68
|
</Animated.View>
|
|
69
69
|
)}
|
|
70
70
|
</View>
|
|
@@ -73,6 +73,6 @@ export const MainLayout = ({
|
|
|
73
73
|
|
|
74
74
|
const styles = StyleSheet.create({
|
|
75
75
|
container: {
|
|
76
|
-
|
|
76
|
+
flex: 1,
|
|
77
77
|
},
|
|
78
78
|
})
|
|
@@ -4,14 +4,9 @@ import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
|
4
4
|
import { Locale, useText } from '../../../../shared/translation'
|
|
5
5
|
import { getKeyboardGroup } from '../../helpers'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
showSlashKey?: boolean
|
|
9
|
-
} & KeyboardLayoutProps
|
|
10
|
-
|
|
11
|
-
export const UnderlinedLayout = (props: UnderlinedLayoutProps) => {
|
|
7
|
+
export const UnderlinedLayout = (props: KeyboardLayoutProps) => {
|
|
12
8
|
const t = useText()
|
|
13
9
|
const keysGroup = getKeyboardGroup(t('locale') as Locale, KeyboardType.Underlined)
|
|
14
|
-
const keys = props.showSlashKey ? keysGroup.keys : keysGroup.keys.slice(0, -1)
|
|
15
10
|
|
|
16
|
-
return <KeysList keys={keys} numOfRows={
|
|
11
|
+
return <KeysList keys={keysGroup.keys} numOfRows={keysGroup.keys.length} {...props} />
|
|
17
12
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { KeyboardGroup } from '../../types/types'
|
|
2
2
|
import { MathEntryKeyboardGroupId } from '../../types/keyboardGroupIds'
|
|
3
3
|
import { MATH_BASIC_OPERATORS } from '../../types/MathKeysGroups/basicOperators'
|
|
4
|
-
import { MATH_SPECIAL_OPERATORS } from '../../types/MathKeysGroups/specialOperators'
|
|
5
4
|
|
|
6
5
|
export const MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP: KeyboardGroup = {
|
|
7
6
|
id: MathEntryKeyboardGroupId.UNDERLINED,
|
|
8
7
|
keys: [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
MATH_BASIC_OPERATORS.SLASH,
|
|
8
|
+
MATH_BASIC_OPERATORS.UNDERLINED_TEN,
|
|
9
|
+
MATH_BASIC_OPERATORS.UNDERLINED_ONE,
|
|
10
|
+
MATH_BASIC_OPERATORS.UNDERLINED_U,
|
|
13
11
|
],
|
|
14
12
|
}
|
|
@@ -1,46 +1,32 @@
|
|
|
1
1
|
import { useText } from '../../../../../shared/translation'
|
|
2
2
|
import { useMemo, useState } from 'react'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import { isKeyboardUnitsGroupType } from '../helpers'
|
|
3
|
+
import { TabOptionProps } from '@magmamath/react-native-ui'
|
|
4
|
+
|
|
5
|
+
import { KeyboardUnitsGroupType } from '../types'
|
|
7
6
|
|
|
8
7
|
export const useUnitTabs = () => {
|
|
9
8
|
const t = useText()
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const allTabs = useMemo<UnitTab[]>(
|
|
9
|
+
const tabs = useMemo(
|
|
13
10
|
() => [
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
11
|
+
{
|
|
12
|
+
title: t('keyboard.length'),
|
|
13
|
+
key: KeyboardUnitsGroupType.LENGTH,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: t('keyboard.area'),
|
|
17
|
+
key: KeyboardUnitsGroupType.AREA,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: t('keyboard.volume'),
|
|
21
|
+
key: KeyboardUnitsGroupType.VOLUME,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: t('keyboard.weight'),
|
|
25
|
+
key: KeyboardUnitsGroupType.WEIGHT,
|
|
26
|
+
},
|
|
19
27
|
],
|
|
20
28
|
[t],
|
|
21
29
|
)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
() =>
|
|
25
|
-
allTabs.filter(
|
|
26
|
-
(tab) => IS_MOBILE || tab.minBreakpoint === undefined || width >= tab.minBreakpoint,
|
|
27
|
-
),
|
|
28
|
-
[allTabs, width],
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
const [activeKey, setActiveKey] = useState<KeyboardUnitsGroupType | undefined>(() => tabs[0]?.key)
|
|
32
|
-
|
|
33
|
-
const activeTab = useMemo(() => {
|
|
34
|
-
return tabs.find((t) => t?.key && t.key === activeKey) ?? tabs[0]
|
|
35
|
-
}, [tabs, activeKey])
|
|
36
|
-
|
|
37
|
-
return {
|
|
38
|
-
tabs,
|
|
39
|
-
activeTab,
|
|
40
|
-
setActiveTab: (tab: TabOptionProps) => {
|
|
41
|
-
if (isKeyboardUnitsGroupType(tab.key)) {
|
|
42
|
-
setActiveKey(tab.key)
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
}
|
|
30
|
+
const [activeTab, setActiveTab] = useState<TabOptionProps>(tabs[0])
|
|
31
|
+
return { tabs, activeTab, setActiveTab }
|
|
46
32
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MATH_AREA_UNITS,
|
|
3
3
|
MATH_LENGTH_UNITS,
|
|
4
|
-
MATH_TIME_UNITS,
|
|
5
4
|
MATH_VOLUME_UNITS,
|
|
6
5
|
MATH_WEIGHT_UNITS,
|
|
7
6
|
} from '../../types/MathKeysGroups/units'
|
|
@@ -11,7 +10,6 @@ import { VolumeIcon } from '../../../../shared/icons/VolumeIcon'
|
|
|
11
10
|
import { WeightIcon } from '../../../../shared/icons/WeightIcon'
|
|
12
11
|
import { KeyboardUnitsGroupType, UnitKeyboardGroups } from './types'
|
|
13
12
|
import { MathEntryKeyboardGroupId } from '../../types/keyboardGroupIds'
|
|
14
|
-
import { TimeIcon } from '../../../../shared/icons/TimeIcon'
|
|
15
13
|
|
|
16
14
|
export const MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
17
15
|
id: MathEntryKeyboardGroupId.LENGTH_UNITS_SW,
|
|
@@ -173,11 +171,6 @@ export const MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
|
173
171
|
],
|
|
174
172
|
}
|
|
175
173
|
|
|
176
|
-
export const MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
177
|
-
id: MathEntryKeyboardGroupId.TIME_SW,
|
|
178
|
-
keys: [[MATH_TIME_UNITS.S, MATH_TIME_UNITS.M, MATH_TIME_UNITS.H]],
|
|
179
|
-
}
|
|
180
|
-
|
|
181
174
|
export const MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
182
175
|
id: MathEntryKeyboardGroupId.WEIGHT_UNITS_US,
|
|
183
176
|
keys: [
|
|
@@ -206,8 +199,4 @@ export const UNITS_KEYBOARD_GROUPS = new Map([
|
|
|
206
199
|
KeyboardUnitsGroupType.WEIGHT,
|
|
207
200
|
{ keys: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS.keys, icon: WeightIcon },
|
|
208
201
|
],
|
|
209
|
-
[
|
|
210
|
-
KeyboardUnitsGroupType.TIME,
|
|
211
|
-
{ keys: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS.keys, icon: TimeIcon },
|
|
212
|
-
],
|
|
213
202
|
])
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyboardGroup, KeyboardKey } from '@magmamath/students-features'
|
|
2
|
-
import { TabOptionProps } from '@magmamath/react-native-ui'
|
|
3
2
|
|
|
4
3
|
export enum SelectedLayout {
|
|
5
4
|
ALGEBRA = 'algebra',
|
|
@@ -11,14 +10,8 @@ export enum KeyboardUnitsGroupType {
|
|
|
11
10
|
AREA = 'area',
|
|
12
11
|
VOLUME = 'volume',
|
|
13
12
|
WEIGHT = 'weight',
|
|
14
|
-
TIME = 'time',
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
export type UnitKeyboardGroups = {
|
|
18
16
|
keys: KeyboardKey[][]
|
|
19
17
|
} & Omit<KeyboardGroup, 'keys'>
|
|
20
|
-
|
|
21
|
-
export type UnitTab = Omit<TabOptionProps, 'key'> & {
|
|
22
|
-
key: KeyboardUnitsGroupType
|
|
23
|
-
minBreakpoint?: number
|
|
24
|
-
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { KeyboardGroup, KeyboardType } from '../types/types'
|
|
2
2
|
import {
|
|
3
|
-
MATH_CURRENCY_DE_KEYBOARD_GROUP,
|
|
4
3
|
MATH_CURRENCY_SW_KEYBOARD_GROUP,
|
|
5
4
|
MATH_CURRENCY_UK_KEYBOARD_GROUP,
|
|
6
5
|
MATH_CURRENCY_US_KEYBOARD_GROUP,
|
|
@@ -31,7 +30,6 @@ import {
|
|
|
31
30
|
MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
|
|
32
31
|
MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
|
|
33
32
|
MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
|
|
34
|
-
MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
|
|
35
33
|
MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
36
34
|
MATH_ENTRY_VOLUME_UNITS_UK_KEYBOARD_GROUPS,
|
|
37
35
|
MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
|
|
@@ -71,7 +69,6 @@ function createKeyboardUnitsLocale(
|
|
|
71
69
|
[KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
|
|
72
70
|
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
|
|
73
71
|
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS,
|
|
74
|
-
[KeyboardUnitsGroupType.TIME]: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
|
|
75
72
|
}
|
|
76
73
|
return { ...base, ...overrides }
|
|
77
74
|
}
|
|
@@ -101,20 +98,6 @@ export const KEYBOARD_GROUPS_BY_LOCALE: Record<Locale, Record<KeyboardType, Keyb
|
|
|
101
98
|
[KeyboardType.BasicTime]: MATH_TIME_SW_KEYBOARD_GROUP,
|
|
102
99
|
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_SW_KEYBOARD_GROUP,
|
|
103
100
|
}),
|
|
104
|
-
[Locale.DE]: createKeyboardLocale({
|
|
105
|
-
[KeyboardType.Basic]: MATH_ENTRY_BASIC_SW_KEYBOARD_GROUP,
|
|
106
|
-
[KeyboardType.BasicPlus]: MATH_ENTRY_BASIC_SW_PLUS,
|
|
107
|
-
[KeyboardType.BasicPlusMobile]: MATH_ENTRY_BASIC_PLUS_MOBILE_SW,
|
|
108
|
-
[KeyboardType.BasicPlusPlus]: MATH_ENTRY_BASIC_PLUS_PLUS_SW,
|
|
109
|
-
[KeyboardType.BasicPlusPlusMobile]: MATH_ENTRY_BASIC_PLUS_PLUS_MOBILE_SW,
|
|
110
|
-
[KeyboardType.BasicUnits]: {
|
|
111
|
-
...MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
|
|
112
|
-
keys: MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS.keys[0],
|
|
113
|
-
},
|
|
114
|
-
[KeyboardType.BasicCurrency]: MATH_CURRENCY_DE_KEYBOARD_GROUP,
|
|
115
|
-
[KeyboardType.BasicTime]: MATH_TIME_SW_KEYBOARD_GROUP,
|
|
116
|
-
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_SW_KEYBOARD_GROUP,
|
|
117
|
-
}),
|
|
118
101
|
}
|
|
119
102
|
export const KEYBOARD_UNITS_GROUPS_BY_LOCALE: Record<
|
|
120
103
|
Locale,
|
|
@@ -136,10 +119,4 @@ export const KEYBOARD_UNITS_GROUPS_BY_LOCALE: Record<
|
|
|
136
119
|
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
137
120
|
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS,
|
|
138
121
|
}),
|
|
139
|
-
[Locale.DE]: createKeyboardUnitsLocale({
|
|
140
|
-
[KeyboardUnitsGroupType.LENGTH]: MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
|
|
141
|
-
[KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_SW_KEYBOARD_GROUPS,
|
|
142
|
-
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
143
|
-
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS,
|
|
144
|
-
}),
|
|
145
122
|
}
|
|
@@ -32,7 +32,6 @@ export const KEYBOARD_LAYOUTS = {
|
|
|
32
32
|
MyScriptMathCharacterTypes.NUMBERS_AND_MULTIPLICATION,
|
|
33
33
|
MyScriptMathCharacterTypes.OPERATORS,
|
|
34
34
|
MyScriptMathCharacterTypes.PERCENT,
|
|
35
|
-
MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
|
|
36
35
|
],
|
|
37
36
|
},
|
|
38
37
|
[KeyboardType.BasicTime]: {
|
|
@@ -55,6 +54,7 @@ export const KEYBOARD_LAYOUTS = {
|
|
|
55
54
|
characterTypes: [
|
|
56
55
|
MyScriptMathCharacterTypes.GEOM_ANGLES,
|
|
57
56
|
MyScriptMathCharacterTypes.GEOM_COORDINATE,
|
|
57
|
+
MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
|
|
58
58
|
],
|
|
59
59
|
},
|
|
60
60
|
}
|
|
@@ -71,14 +71,3 @@ export function getLayoutByCharType(charType?: number) {
|
|
|
71
71
|
}
|
|
72
72
|
return AlgebraLayout
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
export function isBasicPlusPlusLayout(charType?: number) {
|
|
76
|
-
if (!charType) {
|
|
77
|
-
return true
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return (
|
|
81
|
-
KEYBOARD_LAYOUTS[KeyboardType.BasicPlusPlus].characterTypes.includes(charType) ||
|
|
82
|
-
KEYBOARD_LAYOUTS[KeyboardType.AlgebraAdvanced].characterTypes.includes(charType)
|
|
83
|
-
)
|
|
84
|
-
}
|
|
@@ -42,8 +42,9 @@ import { EqualsIcon } from '../../../../shared/icons/keyboard/EqualsIcon/EqualsI
|
|
|
42
42
|
import { AbsoluteValueIcon } from '../../../../shared/icons/keyboard/AbsoluteValueIcon/AbsoluteValueIcon'
|
|
43
43
|
import { IntervalIcon } from '../../../../shared/icons/keyboard/IntervalIcon/IntervalIcon'
|
|
44
44
|
import { createMathKeysGroup } from './helpers'
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
45
|
+
import { UnderlinedTenIcon } from '../../../../shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon'
|
|
46
|
+
import { UnderlinedOneIcon } from '../../../../shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon'
|
|
47
|
+
import { UnderlinedUIcon } from '../../../../shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon'
|
|
47
48
|
|
|
48
49
|
export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
49
50
|
ADDITION: {
|
|
@@ -97,7 +98,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
97
98
|
},
|
|
98
99
|
NOT_EQUAL: {
|
|
99
100
|
icon: <NotEqualIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
100
|
-
mathliveValue: '
|
|
101
|
+
mathliveValue: '\\neq',
|
|
101
102
|
katexValue: '≠',
|
|
102
103
|
},
|
|
103
104
|
APPROXIMATELY_EQUAL: {
|
|
@@ -121,7 +122,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
121
122
|
katexValue: ':',
|
|
122
123
|
},
|
|
123
124
|
C_DOT: {
|
|
124
|
-
icon: <CDotIcon {...DEFAULT_KEY_ICON_PROPS}
|
|
125
|
+
icon: <CDotIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
125
126
|
mathliveValue: '\\cdot',
|
|
126
127
|
katexValue: '⋅',
|
|
127
128
|
},
|
|
@@ -253,16 +254,6 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
253
254
|
mathliveValue: '$\\left(#@\\right)$',
|
|
254
255
|
katexValue: '( )',
|
|
255
256
|
},
|
|
256
|
-
ROUND_BRACKET_RIGHT: {
|
|
257
|
-
icon: <RoundBracketRightIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
258
|
-
mathliveValue: ')',
|
|
259
|
-
katexValue: ')',
|
|
260
|
-
},
|
|
261
|
-
ROUND_BRACKET_LEFT: {
|
|
262
|
-
icon: <RoundBracketLeftIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
263
|
-
mathliveValue: '(',
|
|
264
|
-
katexValue: '(',
|
|
265
|
-
},
|
|
266
257
|
ORDERED_PAIR: {
|
|
267
258
|
icon: <OrderedPairIcon {...DEFAULT_KEY_ICON_PROPS} size={20} extraColor={COLORS.NEUTRAL_6} />,
|
|
268
259
|
mathliveValue: '$\\left(\\placeholder{},\\placeholder{}\\right)$',
|
|
@@ -275,7 +266,25 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
275
266
|
},
|
|
276
267
|
INTERVAL: {
|
|
277
268
|
icon: <IntervalIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
278
|
-
mathliveValue: '$\\left[\\
|
|
269
|
+
mathliveValue: '$\\left[, \\right]$',
|
|
279
270
|
katexValue: '[ , ]',
|
|
280
271
|
},
|
|
272
|
+
UNDERLINED_TEN: {
|
|
273
|
+
icon: <UnderlinedTenIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
274
|
+
mathliveValue: '\\underline{10}',
|
|
275
|
+
katexValue: '10̲',
|
|
276
|
+
spreadsheetValue: 'TEN',
|
|
277
|
+
},
|
|
278
|
+
UNDERLINED_ONE: {
|
|
279
|
+
icon: <UnderlinedOneIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
280
|
+
mathliveValue: '\\underline{1}',
|
|
281
|
+
katexValue: '1̲',
|
|
282
|
+
spreadsheetValue: 'ONE_FOOT_NOTE',
|
|
283
|
+
},
|
|
284
|
+
UNDERLINED_U: {
|
|
285
|
+
icon: <UnderlinedUIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
286
|
+
mathliveValue: '\\underline{u}',
|
|
287
|
+
katexValue: 'U̲',
|
|
288
|
+
spreadsheetValue: 'FRACTION',
|
|
289
|
+
},
|
|
281
290
|
})
|
|
@@ -2,9 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import { DEFAULT_KEY_ICON_PROPS } from '../../constants/constants'
|
|
3
3
|
import { BackspaceIcon } from '../../../../shared/icons/keyboard/BackspaceIcon/BackspaceIcon'
|
|
4
4
|
import { createMathKeysGroup } from './helpers'
|
|
5
|
-
import { UnderlinedTenIcon } from '../../../../shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon'
|
|
6
|
-
import { UnderlinedOneIcon } from '../../../../shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon'
|
|
7
|
-
import { UnderlinedUIcon } from '../../../../shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon'
|
|
8
5
|
|
|
9
6
|
export const MATH_SPECIAL_OPERATORS = createMathKeysGroup({
|
|
10
7
|
LIM: {
|
|
@@ -52,22 +49,4 @@ export const MATH_SPECIAL_OPERATORS = createMathKeysGroup({
|
|
|
52
49
|
mathliveValue: 'backspace',
|
|
53
50
|
katexValue: 'backspace',
|
|
54
51
|
},
|
|
55
|
-
UNDERLINED_TEN: {
|
|
56
|
-
icon: <UnderlinedTenIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
57
|
-
mathliveValue: '\\underline{10}',
|
|
58
|
-
katexValue: '10̲',
|
|
59
|
-
spreadsheetValue: 'TEN',
|
|
60
|
-
},
|
|
61
|
-
UNDERLINED_ONE: {
|
|
62
|
-
icon: <UnderlinedOneIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
63
|
-
mathliveValue: '\\underline{1}',
|
|
64
|
-
katexValue: '1̲',
|
|
65
|
-
spreadsheetValue: 'ONE_FOOT_NOTE',
|
|
66
|
-
},
|
|
67
|
-
UNDERLINED_U: {
|
|
68
|
-
icon: <UnderlinedUIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
69
|
-
mathliveValue: '\\underline{u}',
|
|
70
|
-
katexValue: 'U̲',
|
|
71
|
-
spreadsheetValue: 'FRACTION',
|
|
72
|
-
},
|
|
73
52
|
})
|
|
@@ -427,19 +427,16 @@ export const MATH_TIME_UNITS = createMathKeysGroup({
|
|
|
427
427
|
label: 's',
|
|
428
428
|
mathliveValue: '\\mathrm{s}',
|
|
429
429
|
katexValue: 's',
|
|
430
|
-
style: STYLE_PRESETS.LARGE,
|
|
431
430
|
},
|
|
432
431
|
M: {
|
|
433
432
|
label: 'min',
|
|
434
433
|
mathliveValue: '$\\mathrm{min}',
|
|
435
434
|
katexValue: 'min',
|
|
436
|
-
style: STYLE_PRESETS.LARGE,
|
|
437
435
|
},
|
|
438
436
|
H: {
|
|
439
437
|
label: 'h',
|
|
440
438
|
mathliveValue: '\\mathrm{h}',
|
|
441
439
|
katexValue: 'h',
|
|
442
|
-
style: STYLE_PRESETS.LARGE,
|
|
443
440
|
},
|
|
444
441
|
DAY: {
|
|
445
442
|
label: 'day',
|
|
@@ -27,27 +27,12 @@ export const getRelativeTimeText = (date: Date) => {
|
|
|
27
27
|
const years = getYears(days)
|
|
28
28
|
|
|
29
29
|
if (seconds < 60) return getText('time.justNow')
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return getText('time.
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return getText('time.hoursAgo', { count: hours.toString() })
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (days < 30) {
|
|
42
|
-
if (days === 1) return `1 ${getText('time.dayAgo')}`
|
|
43
|
-
return getText('time.daysAgo', { count: days.toString() })
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (months < 12) {
|
|
47
|
-
if (months === 1) return `1 ${getText('time.monthAgo')}`
|
|
48
|
-
return getText('time.monthsAgo', { count: months.toString() })
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (years === 1) return `1 ${getText('time.yearAgo')}`
|
|
52
|
-
return getText('time.yearsAgo', { count: years.toString() })
|
|
30
|
+
if (minutes < 60)
|
|
31
|
+
return `${minutes} ${minutes === 1 ? getText('time.minuteAgo') : getText('time.minutesAgo')}`
|
|
32
|
+
if (hours < 24)
|
|
33
|
+
return `${hours} ${hours === 1 ? getText('time.hourAgo') : getText('time.hoursAgo')}`
|
|
34
|
+
if (days < 30) return `${days} ${days === 1 ? getText('time.dayAgo') : getText('time.daysAgo')}`
|
|
35
|
+
if (months < 12)
|
|
36
|
+
return `${months} ${months === 1 ? getText('time.monthAgo') : getText('time.monthsAgo')}`
|
|
37
|
+
return `${years} ${years === 1 ? getText('time.yearAgo') : getText('time.yearsAgo')}`
|
|
53
38
|
}
|
|
@@ -4,8 +4,8 @@ import Svg, { Circle } from 'react-native-svg'
|
|
|
4
4
|
|
|
5
5
|
export const CDotIcon = ({ size = 20, color }: IconProps) => {
|
|
6
6
|
return (
|
|
7
|
-
<Svg width={size} height={size} viewBox="0 0
|
|
8
|
-
<Circle cx="
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
8
|
+
<Circle cx="8.00001" cy="8.00001" r="2.00001" fill={color} />
|
|
9
9
|
</Svg>
|
|
10
10
|
)
|
|
11
11
|
}
|
|
@@ -4,7 +4,6 @@ import GB from './localization/gb.json'
|
|
|
4
4
|
import SW from './localization/sw.json'
|
|
5
5
|
import CA from './localization/ca.json'
|
|
6
6
|
import SCT from './localization/sct.json'
|
|
7
|
-
import DE from './localization/de.json'
|
|
8
7
|
|
|
9
8
|
export const LOCALIZATION_CONFIGS = {
|
|
10
9
|
[Locale.EN]: EN,
|
|
@@ -12,5 +11,4 @@ export const LOCALIZATION_CONFIGS = {
|
|
|
12
11
|
[Locale.SW]: SW,
|
|
13
12
|
[Locale.CA]: CA,
|
|
14
13
|
[Locale.SCT]: SCT,
|
|
15
|
-
[Locale.DE]: DE,
|
|
16
14
|
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "
|
|
6
|
+
"time.minutesAgo": "minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "
|
|
8
|
+
"time.hoursAgo": "hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "
|
|
10
|
+
"time.daysAgo": "days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "
|
|
12
|
+
"time.monthsAgo": "months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "
|
|
14
|
+
"time.yearsAgo": "years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"length": "Length",
|
|
38
38
|
"area": "Area",
|
|
39
39
|
"volume": "Volume",
|
|
40
|
-
"weight": "Weight"
|
|
41
|
-
"time": "Time"
|
|
40
|
+
"weight": "Weight"
|
|
42
41
|
}
|
|
43
42
|
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "
|
|
6
|
+
"time.minutesAgo": "minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "
|
|
8
|
+
"time.hoursAgo": "hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "
|
|
10
|
+
"time.daysAgo": "days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "
|
|
12
|
+
"time.monthsAgo": "months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "
|
|
14
|
+
"time.yearsAgo": "years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"length": "Length",
|
|
38
38
|
"area": "Area",
|
|
39
39
|
"volume": "Volume",
|
|
40
|
-
"weight": "Weight"
|
|
41
|
-
"time": "Time"
|
|
40
|
+
"weight": "Weight"
|
|
42
41
|
}
|
|
43
42
|
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "
|
|
6
|
+
"time.minutesAgo": "minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "
|
|
8
|
+
"time.hoursAgo": "hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "
|
|
10
|
+
"time.daysAgo": "days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "
|
|
12
|
+
"time.monthsAgo": "months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "
|
|
14
|
+
"time.yearsAgo": "years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"length": "Length",
|
|
38
38
|
"area": "Area",
|
|
39
39
|
"volume": "Volume",
|
|
40
|
-
"weight": "Weight"
|
|
41
|
-
"time": "Time"
|
|
40
|
+
"weight": "Weight"
|
|
42
41
|
}
|
|
43
42
|
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "
|
|
6
|
+
"time.minutesAgo": "minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "
|
|
8
|
+
"time.hoursAgo": "hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "
|
|
10
|
+
"time.daysAgo": "days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "
|
|
12
|
+
"time.monthsAgo": "months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "
|
|
14
|
+
"time.yearsAgo": "years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"length": "Length",
|
|
38
38
|
"area": "Area",
|
|
39
39
|
"volume": "Volume",
|
|
40
|
-
"weight": "Weight"
|
|
41
|
-
"time": "Time"
|
|
40
|
+
"weight": "Weight"
|
|
42
41
|
}
|
|
43
42
|
}
|