@magmamath/students-features 0.9.14-rc.6 → 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/AlgebraLayout/AlgebraLayout.js +2 -2
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.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/BasicPlusPlusLayout/BasicPlusPlusLayout.js +2 -2
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.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} +11 -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/{MainLayout/constants.js → constants.js} +1 -1
- package/dist/commonjs/features/keyboard/components/constants.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/constants.js +2 -3
- package/dist/commonjs/features/keyboard/constants/constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +0 -20
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +0 -7
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/helpers.js +0 -16
- package/dist/commonjs/features/keyboard/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +29 -2
- 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/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/translation/constants.js +1 -3
- 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/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 +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/AlgebraLayout/AlgebraLayout.js +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.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/BasicPlusPlusLayout/BasicPlusPlusLayout.js +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +4 -6
- 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} +12 -10
- 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/{MainLayout/constants.js → constants.js} +1 -1
- package/dist/module/features/keyboard/components/constants.js.map +1 -0
- package/dist/module/features/keyboard/constants/constants.js +1 -2
- package/dist/module/features/keyboard/constants/constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +1 -21
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardLayouts.js +0 -6
- package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/module/features/keyboard/helpers.js +0 -13
- package/dist/module/features/keyboard/helpers.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +29 -2
- 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/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/translation/constants.js +1 -3
- 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/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 +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/AlgebraLayout/AlgebraLayout.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/BasicPlusPlusLayout/BasicPlusPlusLayout.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/commonjs/features/keyboard/components/{MainLayout/MainLayout.d.ts → 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/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/constants.d.ts +1 -2
- package/dist/typescript/commonjs/features/keyboard/constants/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/helpers.d.ts +0 -2
- package/dist/typescript/commonjs/features/keyboard/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +18 -0
- 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/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 -42
- package/dist/typescript/commonjs/shared/translation/constants.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/AlgebraLayout/AlgebraLayout.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/BasicPlusPlusLayout/BasicPlusPlusLayout.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/module/features/keyboard/components/{MainLayout/MainLayout.d.ts → 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/constants.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/constants/constants.d.ts +1 -2
- package/dist/typescript/module/features/keyboard/constants/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/helpers.d.ts +0 -2
- package/dist/typescript/module/features/keyboard/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +18 -0
- 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/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 -42
- package/dist/typescript/module/shared/translation/constants.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/AlgebraLayout/AlgebraLayout.tsx +1 -2
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +2 -2
- package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +0 -4
- package/src/features/keyboard/components/BasicPlusPlusLayout/BasicPlusPlusLayout.tsx +1 -2
- package/src/features/keyboard/components/Keyboard.tsx +7 -19
- package/src/features/keyboard/components/KeysList/KeysList.tsx +1 -1
- package/src/features/keyboard/components/{MainLayout/MainLayout.tsx → MainLayout.tsx} +12 -8
- 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/{MainLayout/constants.ts → constants.ts} +1 -1
- package/src/features/keyboard/constants/constants.ts +1 -3
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +0 -21
- package/src/features/keyboard/constants/keyboardLayouts.ts +0 -11
- package/src/features/keyboard/helpers.ts +0 -16
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +23 -2
- package/src/features/keyboard/types/MathKeysGroups/specialOperators.tsx +0 -21
- package/src/features/keyboard/types/keyboardGroupIds.ts +0 -1
- package/src/lib/helpers/helpers.ts +8 -23
- package/src/shared/translation/constants.ts +0 -2
- package/src/shared/translation/localization/ca.json +5 -5
- 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 +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/students-features.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -648
- 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/translation/localization/de.json +0 -42
- 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/translation/localization/de.json +0 -42
- 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/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/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/translation/localization/de.json +0 -42
- 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,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,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,
|
|
@@ -99,20 +98,6 @@ export const KEYBOARD_GROUPS_BY_LOCALE: Record<Locale, Record<KeyboardType, Keyb
|
|
|
99
98
|
[KeyboardType.BasicTime]: MATH_TIME_SW_KEYBOARD_GROUP,
|
|
100
99
|
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_SW_KEYBOARD_GROUP,
|
|
101
100
|
}),
|
|
102
|
-
[Locale.DE]: createKeyboardLocale({
|
|
103
|
-
[KeyboardType.Basic]: MATH_ENTRY_BASIC_SW_KEYBOARD_GROUP,
|
|
104
|
-
[KeyboardType.BasicPlus]: MATH_ENTRY_BASIC_SW_PLUS,
|
|
105
|
-
[KeyboardType.BasicPlusMobile]: MATH_ENTRY_BASIC_PLUS_MOBILE_SW,
|
|
106
|
-
[KeyboardType.BasicPlusPlus]: MATH_ENTRY_BASIC_PLUS_PLUS_SW,
|
|
107
|
-
[KeyboardType.BasicPlusPlusMobile]: MATH_ENTRY_BASIC_PLUS_PLUS_MOBILE_SW,
|
|
108
|
-
[KeyboardType.BasicUnits]: {
|
|
109
|
-
...MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
|
|
110
|
-
keys: MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS.keys[0],
|
|
111
|
-
},
|
|
112
|
-
[KeyboardType.BasicCurrency]: MATH_CURRENCY_DE_KEYBOARD_GROUP,
|
|
113
|
-
[KeyboardType.BasicTime]: MATH_TIME_SW_KEYBOARD_GROUP,
|
|
114
|
-
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_SW_KEYBOARD_GROUP,
|
|
115
|
-
}),
|
|
116
101
|
}
|
|
117
102
|
export const KEYBOARD_UNITS_GROUPS_BY_LOCALE: Record<
|
|
118
103
|
Locale,
|
|
@@ -134,10 +119,4 @@ export const KEYBOARD_UNITS_GROUPS_BY_LOCALE: Record<
|
|
|
134
119
|
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
135
120
|
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS,
|
|
136
121
|
}),
|
|
137
|
-
[Locale.DE]: createKeyboardUnitsLocale({
|
|
138
|
-
[KeyboardUnitsGroupType.LENGTH]: MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
|
|
139
|
-
[KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_SW_KEYBOARD_GROUPS,
|
|
140
|
-
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
141
|
-
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS,
|
|
142
|
-
}),
|
|
143
122
|
}
|
|
@@ -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
|
-
}
|
|
@@ -3,8 +3,6 @@ import { KeyboardGroup, KeyboardType } from './types/types'
|
|
|
3
3
|
import { Locale } from '../../shared/translation/types'
|
|
4
4
|
import { MATH_ENTRY_ALGEBRA_KEYBOARD_GROUP } from './components/AlgebraLayout/keyboardGroups'
|
|
5
5
|
import { IS_WEB } from '@magmamath/react-native-ui'
|
|
6
|
-
import { KEYBOARD_LAYOUTS } from './constants/keyboardLayouts'
|
|
7
|
-
import { BASIC_MOBILE_LAYOUT_WIDTH, MOBILE_LAYOUT_WIDTH } from './constants/constants'
|
|
8
6
|
|
|
9
7
|
export function getKeyboardGroup(locale: Locale, type: KeyboardType): KeyboardGroup {
|
|
10
8
|
return KEYBOARD_GROUPS_BY_LOCALE[locale]?.[type] ?? MATH_ENTRY_ALGEBRA_KEYBOARD_GROUP
|
|
@@ -18,17 +16,3 @@ export const getIsIpadOrIphoneDevice = () => {
|
|
|
18
16
|
const isIpadOS = navigator?.maxTouchPoints > 2 && /MacIntel/.test(navigator.platform)
|
|
19
17
|
return isIOS || isIpadOS
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
export const isBasicLayout = (characterType?: number) => {
|
|
23
|
-
return !!(
|
|
24
|
-
characterType && KEYBOARD_LAYOUTS[KeyboardType.Basic].characterTypes.includes(characterType)
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const isMobileWidth = (width: number, characterType?: number) => {
|
|
29
|
-
const isBasic = isBasicLayout(characterType)
|
|
30
|
-
if (isBasic) {
|
|
31
|
-
return width <= BASIC_MOBILE_LAYOUT_WIDTH
|
|
32
|
-
}
|
|
33
|
-
return width <= MOBILE_LAYOUT_WIDTH
|
|
34
|
-
}
|
|
@@ -42,6 +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 { 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'
|
|
45
48
|
|
|
46
49
|
export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
47
50
|
ADDITION: {
|
|
@@ -95,7 +98,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
95
98
|
},
|
|
96
99
|
NOT_EQUAL: {
|
|
97
100
|
icon: <NotEqualIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
98
|
-
mathliveValue: '
|
|
101
|
+
mathliveValue: '\\neq',
|
|
99
102
|
katexValue: '≠',
|
|
100
103
|
},
|
|
101
104
|
APPROXIMATELY_EQUAL: {
|
|
@@ -263,7 +266,25 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
263
266
|
},
|
|
264
267
|
INTERVAL: {
|
|
265
268
|
icon: <IntervalIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
266
|
-
mathliveValue: '$\\left[\\
|
|
269
|
+
mathliveValue: '$\\left[, \\right]$',
|
|
267
270
|
katexValue: '[ , ]',
|
|
268
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
|
+
},
|
|
269
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
|
})
|
|
@@ -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,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",
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "Inga kommentarer än",
|
|
4
4
|
"time.justNow": "alldeles nyss",
|
|
5
5
|
"time.minuteAgo": "minut sedan",
|
|
6
|
-
"time.minutesAgo": "
|
|
6
|
+
"time.minutesAgo": "minuter sedan",
|
|
7
7
|
"time.hourAgo": "timme sedan",
|
|
8
|
-
"time.hoursAgo": "
|
|
8
|
+
"time.hoursAgo": "timmar sedan",
|
|
9
9
|
"time.dayAgo": "dag sedan",
|
|
10
|
-
"time.daysAgo": "
|
|
10
|
+
"time.daysAgo": "dagar sedan",
|
|
11
11
|
"time.monthAgo": "månad sedan",
|
|
12
|
-
"time.monthsAgo": "
|
|
12
|
+
"time.monthsAgo": "månader sedan",
|
|
13
13
|
"time.yearAgo": "år sedan",
|
|
14
|
-
"time.yearsAgo": "
|
|
14
|
+
"time.yearsAgo": "år sedan",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Ge mig en till ledtråd",
|
|
17
17
|
"giveHint": "Ge mig en ledtråd",
|
|
@@ -3,8 +3,6 @@ import swTranslations from './localization/sw.json'
|
|
|
3
3
|
import gbTranslations from './localization/gb.json'
|
|
4
4
|
import caTranslations from './localization/ca.json'
|
|
5
5
|
import sctTranslations from './localization/sct.json'
|
|
6
|
-
import deTranslations from "./localization/de.json"
|
|
7
|
-
|
|
8
6
|
import { RetrieveKeys } from '../../lib/types/keys'
|
|
9
7
|
import { ISValidTranslation } from './validation.types'
|
|
10
8
|
|
|
@@ -18,7 +16,6 @@ export enum Locale {
|
|
|
18
16
|
GB = 'en-GB',
|
|
19
17
|
CA = 'en-CA',
|
|
20
18
|
SCT = 'en-SCT',
|
|
21
|
-
DE = 'de-DE'
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
// Validation of translations, do not remove
|
|
@@ -27,4 +24,3 @@ type ISValidSW = ISValidTranslation<typeof swTranslations>
|
|
|
27
24
|
type ISValidGB = ISValidTranslation<typeof gbTranslations>
|
|
28
25
|
type ISValidCA = ISValidTranslation<typeof caTranslations>
|
|
29
26
|
type ISValidSCT = ISValidTranslation<typeof sctTranslations>
|
|
30
|
-
type ISValidDE = ISValidTranslation<typeof deTranslations>
|
package/.editorconfig
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
|
2
|
-
# coding styles between different editors and IDEs
|
|
3
|
-
# editorconfig.org
|
|
4
|
-
|
|
5
|
-
root = true
|
|
6
|
-
|
|
7
|
-
[*]
|
|
8
|
-
|
|
9
|
-
indent_style = space
|
|
10
|
-
indent_size = 2
|
|
11
|
-
|
|
12
|
-
end_of_line = lf
|
|
13
|
-
charset = utf-8
|
|
14
|
-
trim_trailing_whitespace = true
|
|
15
|
-
insert_final_newline = true
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2020": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"plugin:@typescript-eslint/recommended",
|
|
9
|
-
"plugin:react-hooks/recommended",
|
|
10
|
-
"plugin:storybook/recommended",
|
|
11
|
-
"prettier"
|
|
12
|
-
],
|
|
13
|
-
"parser": "@typescript-eslint/parser",
|
|
14
|
-
"parserOptions": {
|
|
15
|
-
"ecmaVersion": "latest",
|
|
16
|
-
"sourceType": "module"
|
|
17
|
-
},
|
|
18
|
-
"plugins": ["react-refresh"],
|
|
19
|
-
"rules": {
|
|
20
|
-
"react-refresh/only-export-components": "warn"
|
|
21
|
-
}
|
|
22
|
-
}
|
package/.gitattributes
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
name: Setup
|
|
2
|
-
description: Setup Node.js and install dependencies
|
|
3
|
-
|
|
4
|
-
inputs:
|
|
5
|
-
npmrc-auth-token:
|
|
6
|
-
required: true
|
|
7
|
-
|
|
8
|
-
runs:
|
|
9
|
-
using: composite
|
|
10
|
-
steps:
|
|
11
|
-
- name: Setup Node.js
|
|
12
|
-
uses: actions/setup-node@v3
|
|
13
|
-
with:
|
|
14
|
-
node-version-file: .nvmrc
|
|
15
|
-
|
|
16
|
-
- name: Create .npmrc
|
|
17
|
-
shell: bash
|
|
18
|
-
run: |
|
|
19
|
-
echo "registry=https://registry.npmjs.org" > .npmrc
|
|
20
|
-
echo "//registry.npmjs.org/:_authToken=${{ inputs.npmrc-auth-token }}" >> .npmrc
|
|
21
|
-
|
|
22
|
-
- name: Cache dependencies
|
|
23
|
-
id: yarn-cache
|
|
24
|
-
uses: actions/cache@v3
|
|
25
|
-
with:
|
|
26
|
-
path: |
|
|
27
|
-
**/node_modules
|
|
28
|
-
.yarn/install-state.gz
|
|
29
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
|
|
30
|
-
restore-keys: |
|
|
31
|
-
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
|
|
32
|
-
${{ runner.os }}-yarn-
|
|
33
|
-
|
|
34
|
-
- name: Install dependencies
|
|
35
|
-
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
36
|
-
run: yarn install --immutable
|
|
37
|
-
shell: bash
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
merge_group:
|
|
11
|
-
types:
|
|
12
|
-
- checks_requested
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
lint:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
steps:
|
|
18
|
-
- name: Checkout
|
|
19
|
-
uses: actions/checkout@v3
|
|
20
|
-
|
|
21
|
-
- name: Setup
|
|
22
|
-
uses: ./.github/actions/setup
|
|
23
|
-
with:
|
|
24
|
-
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
25
|
-
|
|
26
|
-
- name: Lint files
|
|
27
|
-
run: yarn lint
|
|
28
|
-
|
|
29
|
-
- name: Typecheck files
|
|
30
|
-
run: yarn typecheck
|
|
31
|
-
|
|
32
|
-
test:
|
|
33
|
-
runs-on: ubuntu-latest
|
|
34
|
-
steps:
|
|
35
|
-
- name: Checkout
|
|
36
|
-
uses: actions/checkout@v3
|
|
37
|
-
|
|
38
|
-
- name: Setup
|
|
39
|
-
uses: ./.github/actions/setup
|
|
40
|
-
with:
|
|
41
|
-
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
42
|
-
|
|
43
|
-
- name: Run unit tests
|
|
44
|
-
run: yarn test --maxWorkers=2 --coverage
|
|
45
|
-
|
|
46
|
-
build-library:
|
|
47
|
-
runs-on: ubuntu-latest
|
|
48
|
-
steps:
|
|
49
|
-
- name: Checkout
|
|
50
|
-
uses: actions/checkout@v3
|
|
51
|
-
|
|
52
|
-
- name: Setup
|
|
53
|
-
uses: ./.github/actions/setup
|
|
54
|
-
with:
|
|
55
|
-
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
56
|
-
|
|
57
|
-
- name: Build package
|
|
58
|
-
run: yarn prepare
|
|
59
|
-
|
|
60
|
-
build-web:
|
|
61
|
-
runs-on: ubuntu-latest
|
|
62
|
-
steps:
|
|
63
|
-
- name: Checkout
|
|
64
|
-
uses: actions/checkout@v3
|
|
65
|
-
|
|
66
|
-
- name: Setup
|
|
67
|
-
uses: ./.github/actions/setup
|
|
68
|
-
with:
|
|
69
|
-
npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
|
|
70
|
-
|
|
71
|
-
- name: Build example for Web
|
|
72
|
-
run: |
|
|
73
|
-
yarn example expo export --platform web
|
package/.gitignore
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# OSX
|
|
2
|
-
#
|
|
3
|
-
.DS_Store
|
|
4
|
-
|
|
5
|
-
# XDE
|
|
6
|
-
.expo/
|
|
7
|
-
|
|
8
|
-
# VSCode
|
|
9
|
-
.vscode/
|
|
10
|
-
jsconfig.json
|
|
11
|
-
|
|
12
|
-
# Xcode
|
|
13
|
-
#
|
|
14
|
-
build/
|
|
15
|
-
*.pbxuser
|
|
16
|
-
!default.pbxuser
|
|
17
|
-
*.mode1v3
|
|
18
|
-
!default.mode1v3
|
|
19
|
-
*.mode2v3
|
|
20
|
-
!default.mode2v3
|
|
21
|
-
*.perspectivev3
|
|
22
|
-
!default.perspectivev3
|
|
23
|
-
xcuserdata
|
|
24
|
-
*.xccheckout
|
|
25
|
-
*.moved-aside
|
|
26
|
-
DerivedData
|
|
27
|
-
*.hmap
|
|
28
|
-
*.ipa
|
|
29
|
-
*.xcuserstate
|
|
30
|
-
project.xcworkspace
|
|
31
|
-
|
|
32
|
-
# Android/IJ
|
|
33
|
-
#
|
|
34
|
-
.classpath
|
|
35
|
-
.cxx
|
|
36
|
-
.gradle
|
|
37
|
-
.idea
|
|
38
|
-
.project
|
|
39
|
-
.settings
|
|
40
|
-
local.properties
|
|
41
|
-
android.iml
|
|
42
|
-
|
|
43
|
-
# Cocoapods
|
|
44
|
-
#
|
|
45
|
-
example/ios/Pods
|
|
46
|
-
|
|
47
|
-
# Ruby
|
|
48
|
-
example/vendor/
|
|
49
|
-
|
|
50
|
-
# node.js
|
|
51
|
-
#
|
|
52
|
-
node_modules/
|
|
53
|
-
npm-debug.log
|
|
54
|
-
yarn-debug.log
|
|
55
|
-
yarn-error.log
|
|
56
|
-
|
|
57
|
-
# BUCK
|
|
58
|
-
buck-out/
|
|
59
|
-
\.buckd/
|
|
60
|
-
android/app/libs
|
|
61
|
-
android/keystores/debug.keystore
|
|
62
|
-
|
|
63
|
-
# Yarn
|
|
64
|
-
.yarn/*
|
|
65
|
-
!.yarn/patches
|
|
66
|
-
!.yarn/plugins
|
|
67
|
-
!.yarn/releases
|
|
68
|
-
!.yarn/sdks
|
|
69
|
-
!.yarn/versions
|
|
70
|
-
|
|
71
|
-
# Expo
|
|
72
|
-
.expo/
|
|
73
|
-
|
|
74
|
-
# Turborepo
|
|
75
|
-
.turbo/
|
|
76
|
-
|
|
77
|
-
# generated by bob
|
|
78
|
-
dist/
|
|
79
|
-
!src/lib/
|
|
80
|
-
|
|
81
|
-
# React Native Codegen
|
|
82
|
-
ios/generated
|
|
83
|
-
android/generated
|
|
84
|
-
.npmrc
|