@magmamath/students-features 1.3.2-rc.5 → 1.3.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +1 -2
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +4 -2
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -3
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +4 -8
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/groups/index.js +0 -11
- package/dist/commonjs/features/keyboard/constants/groups/index.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js +0 -2
- package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +2 -8
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js +1 -86
- package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keys/text.constants.js +9 -9
- package/dist/commonjs/features/keyboard/constants/keys/units.constants.js +1 -2
- package/dist/commonjs/features/keyboard/constants/keys/units.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +0 -1
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/commonjs/index.js +23 -38
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/locales/schema.json +1 -0
- package/dist/commonjs/shared/icons/keyboard/AngleIcon.js +3 -4
- package/dist/commonjs/shared/icons/keyboard/AngleIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js +8 -12
- package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js +6 -11
- package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js +8 -12
- package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/translation/constants.js +2 -17
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/helpers.js +8 -38
- package/dist/commonjs/shared/translation/helpers.js.map +1 -1
- package/dist/commonjs/shared/translation/hooks.js +7 -15
- package/dist/commonjs/shared/translation/hooks.js.map +1 -1
- package/dist/commonjs/shared/translation/index.js +0 -25
- package/dist/commonjs/shared/translation/index.js.map +1 -1
- package/dist/commonjs/shared/translation/types.js +0 -4
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -2
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js +3 -2
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +3 -4
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +5 -9
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
- package/dist/module/features/keyboard/constants/groups/index.js +0 -1
- package/dist/module/features/keyboard/constants/groups/index.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboard.helpers.js +1 -3
- package/dist/module/features/keyboard/constants/keyboard.helpers.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/constants/keys/geometry.constants.js +1 -86
- package/dist/module/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keys/text.constants.js +9 -9
- package/dist/module/features/keyboard/constants/keys/units.constants.js +1 -2
- package/dist/module/features/keyboard/constants/keys/units.constants.js.map +1 -1
- package/dist/module/features/keyboard/types/types.js +0 -1
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/locales/schema.json +1 -0
- package/dist/module/shared/icons/keyboard/AngleIcon.js +3 -4
- package/dist/module/shared/icons/keyboard/AngleIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js +9 -13
- package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/LineSegmentIcon.js +7 -12
- package/dist/module/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js +9 -13
- package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
- package/dist/module/shared/translation/constants.js +1 -15
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/helpers.js +6 -33
- package/dist/module/shared/translation/helpers.js.map +1 -1
- package/dist/module/shared/translation/hooks.js +7 -14
- package/dist/module/shared/translation/hooks.js.map +1 -1
- package/dist/module/shared/translation/index.js +2 -3
- package/dist/module/shared/translation/index.js.map +1 -1
- package/dist/module/shared/translation/types.js +0 -2
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -2
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +0 -5
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +1 -368
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts +1 -5
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts +1 -3
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/index.d.ts +3 -3
- package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -4
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -2
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +1 -2
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +0 -5
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +1 -1
- package/dist/typescript/module/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +1 -368
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts +1 -5
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/hooks.d.ts +1 -3
- package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/index.d.ts +3 -3
- package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +1 -4
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/package.json +18 -13
- package/src/features/chatbot/model/ChatBoxTextManager.ts +3 -5
- package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +3 -4
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +5 -9
- package/src/features/keyboard/constants/groups/index.ts +0 -1
- package/src/features/keyboard/constants/keyboard.helpers.ts +0 -3
- package/src/features/keyboard/constants/keyboardLayouts.ts +2 -8
- package/src/features/keyboard/constants/keys/geometry.constants.tsx +1 -61
- package/src/features/keyboard/constants/keys/text.constants.tsx +9 -9
- package/src/features/keyboard/constants/keys/units.constants.tsx +0 -1
- package/src/features/keyboard/types/types.ts +0 -1
- package/src/index.ts +0 -1
- package/src/locales/schema.json +1 -0
- package/src/shared/icons/keyboard/AngleIcon.tsx +2 -4
- package/src/shared/icons/keyboard/BidirectionalSegmentIcon.tsx +8 -5
- package/src/shared/icons/keyboard/LineSegmentIcon.tsx +7 -6
- package/src/shared/icons/keyboard/RightDirectedSegmentIcon.tsx +8 -5
- package/src/shared/translation/constants.ts +1 -16
- package/src/shared/translation/helpers.ts +5 -45
- package/src/shared/translation/hooks.ts +6 -22
- package/src/shared/translation/index.ts +3 -3
- package/src/shared/translation/types.ts +1 -20
- package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js +0 -85
- package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/GeometryLayout/helpers.js +0 -41
- package/dist/commonjs/features/keyboard/components/GeometryLayout/helpers.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/GeometryLayout/types.js +0 -12
- package/dist/commonjs/features/keyboard/components/GeometryLayout/types.js.map +0 -1
- package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js +0 -11
- package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js.map +0 -1
- package/dist/commonjs/lib/types/keys.js +0 -2
- package/dist/commonjs/lib/types/keys.js.map +0 -1
- package/dist/commonjs/shared/icons/GeometryIcon.js +0 -32
- package/dist/commonjs/shared/icons/GeometryIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js +0 -30
- package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js +0 -29
- package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js +0 -29
- package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js +0 -29
- package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js +0 -42
- package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js +0 -32
- package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js.map +0 -1
- package/dist/commonjs/shared/translation/localization/ca.json +0 -61
- package/dist/commonjs/shared/translation/localization/de.json +0 -61
- package/dist/commonjs/shared/translation/localization/en.json +0 -61
- package/dist/commonjs/shared/translation/localization/gb.json +0 -61
- package/dist/commonjs/shared/translation/localization/sct.json +0 -61
- package/dist/commonjs/shared/translation/localization/sw.json +0 -61
- package/dist/commonjs/shared/translation/model.js +0 -15
- package/dist/commonjs/shared/translation/model.js.map +0 -1
- package/dist/commonjs/shared/translation/validation.types.js +0 -6
- package/dist/commonjs/shared/translation/validation.types.js.map +0 -1
- package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js +0 -78
- package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +0 -1
- package/dist/module/features/keyboard/components/GeometryLayout/helpers.js +0 -36
- package/dist/module/features/keyboard/components/GeometryLayout/helpers.js.map +0 -1
- package/dist/module/features/keyboard/components/GeometryLayout/types.js +0 -8
- package/dist/module/features/keyboard/components/GeometryLayout/types.js.map +0 -1
- package/dist/module/features/keyboard/constants/groups/geometry.constants.js +0 -7
- package/dist/module/features/keyboard/constants/groups/geometry.constants.js.map +0 -1
- package/dist/module/lib/types/keys.js +0 -2
- package/dist/module/lib/types/keys.js.map +0 -1
- package/dist/module/shared/icons/GeometryIcon.js +0 -24
- package/dist/module/shared/icons/GeometryIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/ImpliesIcon.js +0 -22
- package/dist/module/shared/icons/keyboard/ImpliesIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/LetterAIcon.js +0 -21
- package/dist/module/shared/icons/keyboard/LetterAIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/LetterBIcon.js +0 -21
- package/dist/module/shared/icons/keyboard/LetterBIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/LetterCIcon.js +0 -21
- package/dist/module/shared/icons/keyboard/LetterCIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/ThereforeIcon.js +0 -34
- package/dist/module/shared/icons/keyboard/ThereforeIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/TriangleIcon.js +0 -24
- package/dist/module/shared/icons/keyboard/TriangleIcon.js.map +0 -1
- package/dist/module/shared/translation/localization/ca.json +0 -61
- package/dist/module/shared/translation/localization/de.json +0 -61
- package/dist/module/shared/translation/localization/en.json +0 -61
- package/dist/module/shared/translation/localization/gb.json +0 -61
- package/dist/module/shared/translation/localization/sct.json +0 -61
- package/dist/module/shared/translation/localization/sw.json +0 -61
- package/dist/module/shared/translation/model.js +0 -11
- package/dist/module/shared/translation/model.js.map +0 -1
- package/dist/module/shared/translation/validation.types.js +0 -4
- package/dist/module/shared/translation/validation.types.js.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +0 -4
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/helpers.d.ts +0 -14
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/types.d.ts +0 -5
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts +0 -3
- package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/lib/types/keys.d.ts +0 -8
- package/dist/typescript/commonjs/lib/types/keys.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -125
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +0 -21
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +0 -4
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/helpers.d.ts +0 -14
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/types.d.ts +0 -5
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/types.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts +0 -3
- package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts.map +0 -1
- package/dist/typescript/module/lib/types/keys.d.ts +0 -8
- package/dist/typescript/module/lib/types/keys.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/GeometryIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/GeometryIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -125
- package/dist/typescript/module/shared/translation/model.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/validation.types.d.ts +0 -21
- package/dist/typescript/module/shared/translation/validation.types.d.ts.map +0 -1
- package/src/features/keyboard/components/GeometryLayout/GeometryLayout.tsx +0 -82
- package/src/features/keyboard/components/GeometryLayout/helpers.tsx +0 -46
- package/src/features/keyboard/components/GeometryLayout/types.ts +0 -4
- package/src/features/keyboard/constants/groups/geometry.constants.ts +0 -25
- package/src/lib/types/keys.ts +0 -18
- package/src/shared/icons/GeometryIcon.tsx +0 -18
- package/src/shared/icons/keyboard/ImpliesIcon.tsx +0 -16
- package/src/shared/icons/keyboard/LetterAIcon.tsx +0 -14
- package/src/shared/icons/keyboard/LetterBIcon.tsx +0 -14
- package/src/shared/icons/keyboard/LetterCIcon.tsx +0 -14
- package/src/shared/icons/keyboard/ThereforeIcon.tsx +0 -15
- package/src/shared/icons/keyboard/TriangleIcon.tsx +0 -18
- package/src/shared/translation/localization/ca.json +0 -61
- package/src/shared/translation/localization/de.json +0 -61
- package/src/shared/translation/localization/en.json +0 -61
- package/src/shared/translation/localization/gb.json +0 -61
- package/src/shared/translation/localization/sct.json +0 -61
- package/src/shared/translation/localization/sw.json +0 -61
- package/src/shared/translation/model.ts +0 -16
- package/src/shared/translation/validation.types.ts +0 -34
|
@@ -5,7 +5,6 @@ import { TimeBasicLayout } from '../components/BasicLayout/TimeBasicLayout'
|
|
|
5
5
|
import { CurrencyBasicLayout } from '../components/BasicLayout/CurrencyBasicLayout'
|
|
6
6
|
import { UnitsLayout } from '../components/UnitsLayout/UnitsLayout'
|
|
7
7
|
import { BasicPlusPlusLayout } from '../components/BasicPlusPlusLayout/BasicPlusPlusLayout'
|
|
8
|
-
import { GeometryLayout } from '../components/GeometryLayout/GeometryLayout'
|
|
9
8
|
import { MyScriptMathCharacterTypes } from '../../../types/characterTypes'
|
|
10
9
|
import { MOBILE_LAYOUT_WIDTH } from './keyboard.constants'
|
|
11
10
|
import { KeyboardType } from '../types/types'
|
|
@@ -56,16 +55,11 @@ export const KEYBOARD_LAYOUTS = {
|
|
|
56
55
|
},
|
|
57
56
|
[KeyboardType.BasicPlusPlus]: {
|
|
58
57
|
Component: BasicPlusPlusLayout,
|
|
59
|
-
characterTypes: [] as MyScriptMathCharacterTypes[],
|
|
60
|
-
mobileBreakpoint: 1220,
|
|
61
|
-
},
|
|
62
|
-
[KeyboardType.Geometry]: {
|
|
63
|
-
Component: GeometryLayout,
|
|
64
58
|
characterTypes: [
|
|
65
59
|
MyScriptMathCharacterTypes.GEOM_ANGLES,
|
|
66
60
|
MyScriptMathCharacterTypes.GEOM_COORDINATE,
|
|
67
61
|
],
|
|
68
|
-
mobileBreakpoint:
|
|
62
|
+
mobileBreakpoint: 1220,
|
|
69
63
|
},
|
|
70
64
|
}
|
|
71
65
|
|
|
@@ -101,7 +95,7 @@ export function isBasicPlusPlusLayout(charType?: number) {
|
|
|
101
95
|
}
|
|
102
96
|
|
|
103
97
|
return (
|
|
104
|
-
KEYBOARD_LAYOUTS[KeyboardType.
|
|
98
|
+
KEYBOARD_LAYOUTS[KeyboardType.BasicPlusPlus].characterTypes.includes(charType) ||
|
|
105
99
|
KEYBOARD_LAYOUTS[KeyboardType.AlgebraAdvanced].characterTypes.includes(charType)
|
|
106
100
|
)
|
|
107
101
|
}
|
|
@@ -5,15 +5,6 @@ import { DegreeIcon } from '../../../../shared/icons/keyboard/DegreeIcon'
|
|
|
5
5
|
import { AngleIcon } from '../../../../shared/icons/keyboard/AngleIcon'
|
|
6
6
|
import { ParallelIcon } from '../../../../shared/icons/keyboard/ParallelIcon'
|
|
7
7
|
import { PerpendicularIcon } from '../../../../shared/icons/keyboard/PerpendicularIcon'
|
|
8
|
-
import { TriangleIcon } from '../../../../shared/icons/keyboard/TriangleIcon'
|
|
9
|
-
import { ThereforeIcon } from '../../../../shared/icons/keyboard/ThereforeIcon'
|
|
10
|
-
import { ImpliesIcon } from '../../../../shared/icons/keyboard/ImpliesIcon'
|
|
11
|
-
import { LineSegmentIcon } from '../../../../shared/icons/keyboard/LineSegmentIcon'
|
|
12
|
-
import { RightDirectedSegmentIcon } from '../../../../shared/icons/keyboard/RightDirectedSegmentIcon'
|
|
13
|
-
import { BidirectionalSegmentIcon } from '../../../../shared/icons/keyboard/BidirectionalSegmentIcon'
|
|
14
|
-
import { LetterAIcon } from '../../../../shared/icons/keyboard/LetterAIcon'
|
|
15
|
-
import { LetterBIcon } from '../../../../shared/icons/keyboard/LetterBIcon'
|
|
16
|
-
import { LetterCIcon } from '../../../../shared/icons/keyboard/LetterCIcon'
|
|
17
8
|
import { DEFAULT_KEY_ICON_PROPS } from '../keyboard.constants'
|
|
18
9
|
|
|
19
10
|
export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
|
|
@@ -23,7 +14,7 @@ export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
|
|
|
23
14
|
katexValue: '°',
|
|
24
15
|
},
|
|
25
16
|
ANGLE: {
|
|
26
|
-
icon: <AngleIcon {...DEFAULT_KEY_ICON_PROPS}
|
|
17
|
+
icon: <AngleIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
27
18
|
mathliveValue: '\\angle',
|
|
28
19
|
katexValue: '∠',
|
|
29
20
|
},
|
|
@@ -54,55 +45,4 @@ export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
|
|
|
54
45
|
},
|
|
55
46
|
},
|
|
56
47
|
},
|
|
57
|
-
TRIANGLE: {
|
|
58
|
-
icon: <TriangleIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
59
|
-
mathliveValue: '\\triangle',
|
|
60
|
-
katexValue: '△',
|
|
61
|
-
},
|
|
62
|
-
THEREFORE: {
|
|
63
|
-
icon: <ThereforeIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
64
|
-
mathliveValue: '\\therefore',
|
|
65
|
-
katexValue: '∴',
|
|
66
|
-
},
|
|
67
|
-
IMPLIES: {
|
|
68
|
-
icon: <ImpliesIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
69
|
-
mathliveValue: '\\Rightarrow',
|
|
70
|
-
katexValue: '⇒',
|
|
71
|
-
},
|
|
72
|
-
LINE_SEGMENT: {
|
|
73
|
-
icon: <LineSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
74
|
-
mathliveValue: '\\overline{\\placeholder{}}',
|
|
75
|
-
katexValue: 'LINE_SEGMENT',
|
|
76
|
-
spreadsheetValue: 'LINE_SEGMENT',
|
|
77
|
-
isSpecialSymbol: true,
|
|
78
|
-
},
|
|
79
|
-
RIGHT_DIRECTED_SEGMENT: {
|
|
80
|
-
icon: <RightDirectedSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
81
|
-
mathliveValue: '\\overrightarrow{\\placeholder{}}',
|
|
82
|
-
katexValue: 'RIGHT_DIRECTED_SEGMENT',
|
|
83
|
-
spreadsheetValue: 'RIGHT_DIRECTED_SEGMENT',
|
|
84
|
-
isSpecialSymbol: true,
|
|
85
|
-
},
|
|
86
|
-
BIDIRECTIONAL_SEGMENT: {
|
|
87
|
-
icon: <BidirectionalSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
88
|
-
mathliveValue: '\\overleftrightarrow{\\placeholder{}}',
|
|
89
|
-
katexValue: 'BIDIRECTIONAL_SEGMENT',
|
|
90
|
-
spreadsheetValue: 'BIDIRECTIONAL_SEGMENT',
|
|
91
|
-
isSpecialSymbol: true,
|
|
92
|
-
},
|
|
93
|
-
A: {
|
|
94
|
-
icon: <LetterAIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
95
|
-
mathliveValue: '𝐴',
|
|
96
|
-
katexValue: 'A',
|
|
97
|
-
},
|
|
98
|
-
B: {
|
|
99
|
-
icon: <LetterBIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
100
|
-
mathliveValue: '𝐵',
|
|
101
|
-
katexValue: 'B',
|
|
102
|
-
},
|
|
103
|
-
C: {
|
|
104
|
-
icon: <LetterCIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
105
|
-
mathliveValue: '𝐶',
|
|
106
|
-
katexValue: 'C',
|
|
107
|
-
},
|
|
108
48
|
} as const
|
|
@@ -7,19 +7,19 @@ import { DEFAULT_KEY_ICON_PROPS } from '../keyboard.constants'
|
|
|
7
7
|
|
|
8
8
|
export const MATH_TEXT_SYMBOLS: MathOperatorsGroup = {
|
|
9
9
|
A: {
|
|
10
|
-
label: '
|
|
11
|
-
mathliveValue: '
|
|
12
|
-
katexValue: '
|
|
10
|
+
label: 'a',
|
|
11
|
+
mathliveValue: 'a',
|
|
12
|
+
katexValue: 'a',
|
|
13
13
|
},
|
|
14
14
|
B: {
|
|
15
|
-
label: '
|
|
16
|
-
mathliveValue: '
|
|
17
|
-
katexValue: '
|
|
15
|
+
label: 'b',
|
|
16
|
+
mathliveValue: 'b',
|
|
17
|
+
katexValue: 'b',
|
|
18
18
|
},
|
|
19
19
|
C: {
|
|
20
|
-
label: '
|
|
21
|
-
mathliveValue: '
|
|
22
|
-
katexValue: '
|
|
20
|
+
label: 'c',
|
|
21
|
+
mathliveValue: 'c',
|
|
22
|
+
katexValue: 'c',
|
|
23
23
|
},
|
|
24
24
|
F: {
|
|
25
25
|
label: 'f',
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -2,13 +2,11 @@ import React from 'react'
|
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
3
|
import Svg, { Path } from 'react-native-svg'
|
|
4
4
|
|
|
5
|
-
const ASPECT_RATIO = 20 / 18
|
|
6
|
-
|
|
7
5
|
export const AngleIcon = ({ size = 20, color }: IconProps) => {
|
|
8
6
|
return (
|
|
9
|
-
<Svg width={size} height={size
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
10
8
|
<Path
|
|
11
|
-
d="
|
|
9
|
+
d="M8.94912 6.74144C9.20676 6.46187 9.63941 6.41761 9.9501 6.65062C10.2606 6.88377 10.3389 7.31141 10.1425 7.63695L10.0995 7.70043L6.49991 12.5002H10.9999C11.4141 12.5002 11.7499 12.836 11.7499 13.2502C11.7499 13.6644 11.4141 14.0002 10.9999 14.0002H4.99991C4.71583 14.0002 4.45605 13.8393 4.32901 13.5852C4.20219 13.3312 4.22994 13.0272 4.4003 12.8L8.9003 6.80004L8.94912 6.74144Z"
|
|
12
10
|
fill={color}
|
|
13
11
|
/>
|
|
14
12
|
</Svg>
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
|
-
import Svg, { Path
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
4
|
|
|
5
|
-
const ASPECT_RATIO =
|
|
5
|
+
const ASPECT_RATIO = 20 / 21
|
|
6
6
|
|
|
7
7
|
export const BidirectionalSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={size} height={size
|
|
9
|
+
<Svg width={size * ASPECT_RATIO} height={size} viewBox="0 0 20 21" fill="none">
|
|
10
10
|
<Path
|
|
11
|
-
d="M16.
|
|
11
|
+
d="M16.6464 0.146692C16.8173 -0.0241721 17.0813 -0.0459256 17.2754 0.0822385L17.3535 0.146692L19.3535 2.14669L19.4179 2.22482C19.5461 2.4189 19.5243 2.68286 19.3535 2.85372L17.3535 4.85372C17.1582 5.04899 16.8417 5.04899 16.6464 4.85372C16.4512 4.65846 16.4512 4.34195 16.6464 4.14669L17.7929 3.00021H2.20699L3.35348 4.14669L3.41793 4.22482C3.5461 4.4189 3.52434 4.68286 3.35348 4.85372C3.18261 5.02459 2.91865 5.04634 2.72457 4.91818L2.64645 4.85372L0.646447 2.85372C0.451184 2.65846 0.451184 2.34195 0.646447 2.14669L2.64645 0.146692L2.72457 0.0822385C2.91865 -0.0459256 3.18261 -0.0241721 3.35348 0.146692C3.52434 0.317555 3.5461 0.581519 3.41793 0.775598L3.35348 0.853723L2.20699 2.00021H17.7929L16.6464 0.853723L16.582 0.775598C16.4538 0.581519 16.4756 0.317555 16.6464 0.146692Z"
|
|
12
|
+
fill={color}
|
|
13
|
+
/>
|
|
14
|
+
<Path
|
|
15
|
+
d="M8.07948 17L7.70148 14.55H3.52948L2.01748 17H0.407484L6.55348 7.2H7.91149L9.52148 17H8.07948ZM4.32748 13.22H7.51948L6.87548 9.09L4.32748 13.22ZM16.4822 7.2C18.0922 7.2 18.8762 8.236 18.8762 9.342C18.8762 10.434 18.1762 11.54 16.8322 11.82C17.9662 12.128 18.4842 12.996 18.4842 13.906C18.4842 15.432 17.1402 17 14.8162 17H11.0502L13.3182 7.2H16.4822ZM12.7582 15.698H14.9842C16.3842 15.698 17.0562 14.788 17.0562 13.906C17.0562 13.164 16.4822 12.506 15.4042 12.506H13.5002L12.7582 15.698ZM13.7522 11.358H15.5722C16.7762 11.358 17.4482 10.49 17.4482 9.692C17.4482 8.95 16.9862 8.502 16.0202 8.502H14.4102L13.7522 11.358Z"
|
|
12
16
|
fill={color}
|
|
13
17
|
/>
|
|
14
|
-
<Rect x="4.8801" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
|
|
15
18
|
</Svg>
|
|
16
19
|
)
|
|
17
20
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
|
-
import Svg, { Path
|
|
4
|
-
|
|
5
|
-
const ASPECT_RATIO = 19 / 20
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
6
4
|
|
|
7
5
|
export const LineSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
6
|
return (
|
|
9
|
-
<Svg width={size} height={size
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 20 20" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M19 1C19.2761 1 19.5 1.22386 19.5 1.5C19.5 1.77614 19.2761 2 19 2H1C0.723858 2 0.5 1.77614 0.5 1.5C0.5 1.22386 0.723858 1 1 1H19Z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
10
12
|
<Path
|
|
11
|
-
d="
|
|
13
|
+
d="M8.07948 16L7.70148 13.55H3.52948L2.01748 16H0.407484L6.55348 6.2H7.91149L9.52148 16H8.07948ZM4.32748 12.22H7.51948L6.87548 8.09L4.32748 12.22ZM16.4822 6.2C18.0922 6.2 18.8762 7.236 18.8762 8.342C18.8762 9.434 18.1762 10.54 16.8322 10.82C17.9662 11.128 18.4842 11.996 18.4842 12.906C18.4842 14.432 17.1402 16 14.8162 16H11.0502L13.3182 6.2H16.4822ZM12.7582 14.698H14.9842C16.3842 14.698 17.0562 13.788 17.0562 12.906C17.0562 12.164 16.4822 11.506 15.4042 11.506H13.5002L12.7582 14.698ZM13.7522 10.358H15.5722C16.7762 10.358 17.4482 9.49 17.4482 8.692C17.4482 7.95 16.9862 7.502 16.0202 7.502H14.4102L13.7522 10.358Z"
|
|
12
14
|
fill={color}
|
|
13
15
|
/>
|
|
14
|
-
<Rect x="4.88" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
|
|
15
16
|
</Svg>
|
|
16
17
|
)
|
|
17
18
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
|
-
import Svg, { Path
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
4
|
|
|
5
|
-
const ASPECT_RATIO =
|
|
5
|
+
const ASPECT_RATIO = 20 / 21
|
|
6
6
|
|
|
7
7
|
export const RightDirectedSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={size} height={size
|
|
9
|
+
<Svg width={size * ASPECT_RATIO} height={size} viewBox="0 0 20 21" fill="none">
|
|
10
10
|
<Path
|
|
11
|
-
d="M16.
|
|
11
|
+
d="M16.6465 0.146692C16.8173 -0.0241721 17.0813 -0.0459256 17.2754 0.0822385L17.3535 0.146692L19.3535 2.14669L19.418 2.22482C19.5461 2.4189 19.5244 2.68286 19.3535 2.85372L17.3535 4.85372C17.1583 5.04899 16.8417 5.04899 16.6465 4.85372C16.4512 4.65846 16.4512 4.34195 16.6465 4.14669L17.793 3.00021H1C0.723858 3.00021 0.5 2.77635 0.5 2.50021C0.5 2.22406 0.723858 2.00021 1 2.00021H17.793L16.6465 0.853723L16.582 0.775598C16.4539 0.581519 16.4756 0.317555 16.6465 0.146692Z"
|
|
12
|
+
fill={color}
|
|
13
|
+
/>
|
|
14
|
+
<Path
|
|
15
|
+
d="M8.07948 17L7.70148 14.55H3.52948L2.01748 17H0.407484L6.55348 7.2H7.91149L9.52148 17H8.07948ZM4.32748 13.22H7.51948L6.87548 9.09L4.32748 13.22ZM16.4822 7.2C18.0922 7.2 18.8762 8.236 18.8762 9.342C18.8762 10.434 18.1762 11.54 16.8322 11.82C17.9662 12.128 18.4842 12.996 18.4842 13.906C18.4842 15.432 17.1402 17 14.8162 17H11.0502L13.3182 7.2H16.4822ZM12.7582 15.698H14.9842C16.3842 15.698 17.0562 14.788 17.0562 13.906C17.0562 13.164 16.4822 12.506 15.4042 12.506H13.5002L12.7582 15.698ZM13.7522 11.358H15.5722C16.7762 11.358 17.4482 10.49 17.4482 9.692C17.4482 8.95 16.9862 8.502 16.0202 8.502H14.4102L13.7522 11.358Z"
|
|
12
16
|
fill={color}
|
|
13
17
|
/>
|
|
14
|
-
<Rect x="4.8801" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
|
|
15
18
|
</Svg>
|
|
16
19
|
)
|
|
17
20
|
}
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import EN from './localization/en.json'
|
|
3
|
-
import GB from './localization/gb.json'
|
|
4
|
-
import SW from './localization/sw.json'
|
|
5
|
-
import CA from './localization/ca.json'
|
|
6
|
-
import SCT from './localization/sct.json'
|
|
7
|
-
import DE from './localization/de.json'
|
|
8
|
-
|
|
9
|
-
export const LOCALIZATION_CONFIGS = {
|
|
10
|
-
[Locale.US]: EN,
|
|
11
|
-
[Locale.GB]: GB,
|
|
12
|
-
[Locale.SE]: SW,
|
|
13
|
-
[Locale.CA]: CA,
|
|
14
|
-
[Locale.SCT]: SCT,
|
|
15
|
-
[Locale.DE]: DE,
|
|
16
|
-
}
|
|
1
|
+
export const NAMESPACE = 'students-features'
|
|
@@ -1,47 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { GetText
|
|
1
|
+
import i18next from 'i18next'
|
|
2
|
+
import { NAMESPACE } from './constants'
|
|
3
|
+
import { GetText } from './types'
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
if (typeof rawTranslation === 'string' || !key.includes('.')) {
|
|
8
|
-
return rawTranslation as string
|
|
9
|
-
}
|
|
10
|
-
const keys = key.split('.')
|
|
11
|
-
let translation = config
|
|
12
|
-
for (const k of keys) {
|
|
13
|
-
if (translation[k as keyof Translations] === undefined) return key
|
|
14
|
-
translation = translation[k as keyof Translations] as any
|
|
15
|
-
}
|
|
16
|
-
if (typeof translation === 'string') {
|
|
17
|
-
return translation
|
|
18
|
-
}
|
|
19
|
-
return key
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const getSubstitutedString = (str: string, substitutions: Record<string, string> = {}) => {
|
|
23
|
-
const substitutionsArray = Object.entries(substitutions)
|
|
24
|
-
let result = str
|
|
25
|
-
|
|
26
|
-
if (!substitutionsArray.length) return result
|
|
27
|
-
|
|
28
|
-
substitutionsArray.forEach(([key, value]) => {
|
|
29
|
-
result = result.replace(`{{${key}}}`, value)
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
return result
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const getText: GetText = (key: TranslationKeys, args = null) => {
|
|
36
|
-
const config = $localization.getState()
|
|
37
|
-
|
|
38
|
-
const translation = getTranslation(config, key)
|
|
39
|
-
if (args) return getSubstitutedString(translation, args)
|
|
40
|
-
return translation
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const setFeaturesLocalization = (
|
|
44
|
-
generator: ((config: typeof LOCALIZATION_CONFIGS) => Translations) | Translations,
|
|
45
|
-
) => {
|
|
46
|
-
setLocalization(generator)
|
|
5
|
+
export const getText: GetText = (key, args = null) => {
|
|
6
|
+
return i18next.t(key, { ns: NAMESPACE, ...(args || {}) })
|
|
47
7
|
}
|
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { LOCALIZATION_CONFIGS } from './constants'
|
|
6
|
-
import { getSubstitutedString, getTranslation } from './helpers'
|
|
1
|
+
import { useCallback } from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
3
|
+
import { NAMESPACE } from './constants'
|
|
4
|
+
import { GetText } from './types'
|
|
7
5
|
|
|
8
6
|
export const useText = (): GetText => {
|
|
9
|
-
const
|
|
10
|
-
return useCallback<GetText>(
|
|
11
|
-
(key, args = null) => {
|
|
12
|
-
const translation = getTranslation(config, key)
|
|
13
|
-
return args ? getSubstitutedString(translation, args) : translation
|
|
14
|
-
},
|
|
15
|
-
[config],
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const useFeaturesLocalization = (
|
|
20
|
-
generator: ((config: typeof LOCALIZATION_CONFIGS) => Translations) | Translations,
|
|
21
|
-
) => {
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
setLocalization(generator)
|
|
24
|
-
}, [generator])
|
|
7
|
+
const { t } = useTranslation(NAMESPACE)
|
|
8
|
+
return useCallback<GetText>((key, args = null) => t(key, args ?? undefined), [t])
|
|
25
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { useText } from './hooks'
|
|
2
|
+
export { getText as t } from './helpers'
|
|
3
|
+
export type { TranslationKeys, GetText } from './types'
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import swTranslations from './localization/sw.json'
|
|
3
|
-
import gbTranslations from './localization/gb.json'
|
|
4
|
-
import caTranslations from './localization/ca.json'
|
|
5
|
-
import sctTranslations from './localization/sct.json'
|
|
6
|
-
import deTranslations from './localization/de.json'
|
|
7
|
-
|
|
8
|
-
import { RetrieveKeys } from '../../lib/types/keys'
|
|
9
|
-
import { ISValidTranslation } from './validation.types'
|
|
10
|
-
|
|
11
|
-
export type Translations = typeof enTranslations
|
|
12
|
-
export type TranslationKeys = RetrieveKeys<Translations>
|
|
1
|
+
export type TranslationKeys = string
|
|
13
2
|
export type GetText = (key: TranslationKeys, args?: Record<string, string> | null) => string
|
|
14
|
-
|
|
15
|
-
// Validation of translations, do not remove
|
|
16
|
-
type ISValidEN = ISValidTranslation<Translations>
|
|
17
|
-
type ISValidSW = ISValidTranslation<typeof swTranslations>
|
|
18
|
-
type ISValidGB = ISValidTranslation<typeof gbTranslations>
|
|
19
|
-
type ISValidCA = ISValidTranslation<typeof caTranslations>
|
|
20
|
-
type ISValidSCT = ISValidTranslation<typeof sctTranslations>
|
|
21
|
-
type ISValidDE = ISValidTranslation<typeof deTranslations>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.GeometryLayout = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _KeysList = require("../KeysList/KeysList.js");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
-
var _types = require("../../types/types.js");
|
|
12
|
-
var _types2 = require("./types.js");
|
|
13
|
-
var _helpers = require("../../helpers.js");
|
|
14
|
-
var _helpers2 = require("./helpers.js");
|
|
15
|
-
var _keyboardLayouts = require("../../constants/keyboardLayouts.js");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
const GeometryLayout = ({
|
|
20
|
-
onLayoutChange,
|
|
21
|
-
keys,
|
|
22
|
-
...props
|
|
23
|
-
}) => {
|
|
24
|
-
const [selectedLayout, setSelectedLayout] = (0, _react.useState)(_types2.SelectedLayout.BASIC);
|
|
25
|
-
const {
|
|
26
|
-
width
|
|
27
|
-
} = (0, _reactNative.useWindowDimensions)();
|
|
28
|
-
const selectOptions = (0, _helpers2.getSelectOptions)({
|
|
29
|
-
selectedLayout,
|
|
30
|
-
setSelectedLayout,
|
|
31
|
-
onLayoutChange
|
|
32
|
-
});
|
|
33
|
-
const isDesktop = width > _keyboardLayouts.KEYBOARD_LAYOUTS[_types.KeyboardType.Geometry].mobileBreakpoint && !_reactNativeUi.IS_MOBILE;
|
|
34
|
-
const keyboardGroups = (0, _react.useMemo)(() => {
|
|
35
|
-
const geometry = (0, _helpers.getMainKeyboardGroup)(keys, _types.KeyboardType.Geometry);
|
|
36
|
-
const basic = (0, _helpers.getMainKeyboardGroup)(keys, isDesktop ? _types.KeyboardType.BasicPlusPlus : _types.KeyboardType.BasicPlusPlusMobile);
|
|
37
|
-
return new Map([[_types2.SelectedLayout.BASIC, basic], [_types2.SelectedLayout.GEOMETRY, geometry]]);
|
|
38
|
-
}, [isDesktop, keys]);
|
|
39
|
-
const currentKeys = keyboardGroups.get(selectedLayout)?.keys ?? [];
|
|
40
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
41
|
-
style: styles.container,
|
|
42
|
-
children: [isDesktop && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.SelectGroup, {
|
|
43
|
-
numOfRows: 2,
|
|
44
|
-
options: selectOptions,
|
|
45
|
-
size: _reactNativeUi.SelectOptionSize.SMALL,
|
|
46
|
-
style: {
|
|
47
|
-
container: styles.optionContainer,
|
|
48
|
-
option: {
|
|
49
|
-
container: styles.option
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
color: props.color,
|
|
53
|
-
selectedOptions: [selectedLayout === _types2.SelectedLayout.BASIC ? selectOptions[0] : selectOptions[1]]
|
|
54
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_KeysList.KeysList, {
|
|
55
|
-
keys: currentKeys,
|
|
56
|
-
numOfRows: 3,
|
|
57
|
-
...props
|
|
58
|
-
})]
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
exports.GeometryLayout = GeometryLayout;
|
|
62
|
-
const styles = _reactNative.StyleSheet.create({
|
|
63
|
-
container: {
|
|
64
|
-
display: 'flex',
|
|
65
|
-
flexDirection: 'row',
|
|
66
|
-
gap: _reactNativeUi.SPACING[400],
|
|
67
|
-
paddingRight: _reactNativeUi.SPACING[400]
|
|
68
|
-
},
|
|
69
|
-
optionContainer: {
|
|
70
|
-
flexGrow: 0,
|
|
71
|
-
flexShrink: 0,
|
|
72
|
-
flexBasis: _reactNativeUi.IS_MOBILE ? 60 : 'auto',
|
|
73
|
-
width: 'auto',
|
|
74
|
-
paddingRight: 18,
|
|
75
|
-
borderRightWidth: 1,
|
|
76
|
-
borderRightColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
77
|
-
maxWidth: 65,
|
|
78
|
-
gap: 9
|
|
79
|
-
},
|
|
80
|
-
option: {
|
|
81
|
-
flexBasis: 45,
|
|
82
|
-
width: 44
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=GeometryLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_KeysList","_reactNative","_reactNativeUi","_types","_types2","_helpers","_helpers2","_keyboardLayouts","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","GeometryLayout","onLayoutChange","keys","props","selectedLayout","setSelectedLayout","useState","SelectedLayout","BASIC","width","useWindowDimensions","selectOptions","getSelectOptions","isDesktop","KEYBOARD_LAYOUTS","KeyboardType","Geometry","mobileBreakpoint","IS_MOBILE","keyboardGroups","useMemo","geometry","getMainKeyboardGroup","basic","BasicPlusPlus","BasicPlusPlusMobile","Map","GEOMETRY","currentKeys","jsxs","View","style","styles","container","children","jsx","SelectGroup","numOfRows","options","size","SelectOptionSize","SMALL","optionContainer","option","color","selectedOptions","KeysList","exports","StyleSheet","create","display","flexDirection","gap","SPACING","paddingRight","flexGrow","flexShrink","flexBasis","borderRightWidth","borderRightColor","COLORS","NEUTRAL_3","maxWidth"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/GeometryLayout/GeometryLayout.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getSelectOptions = getSelectOptions;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
9
|
-
var _AlgebraIcon = require("../../../../shared/icons/AlgebraIcon.js");
|
|
10
|
-
var _GeometryIcon = require("../../../../shared/icons/GeometryIcon.js");
|
|
11
|
-
var _types = require("./types.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function getSelectOptions({
|
|
15
|
-
selectedLayout,
|
|
16
|
-
setSelectedLayout,
|
|
17
|
-
onLayoutChange
|
|
18
|
-
}) {
|
|
19
|
-
return [{
|
|
20
|
-
key: _types.SelectedLayout.BASIC,
|
|
21
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AlgebraIcon.AlgebraIcon, {
|
|
22
|
-
color: selectedLayout === _types.SelectedLayout.BASIC ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_9,
|
|
23
|
-
size: 22
|
|
24
|
-
}),
|
|
25
|
-
onPressIn: () => {
|
|
26
|
-
setSelectedLayout(_types.SelectedLayout.BASIC);
|
|
27
|
-
onLayoutChange?.(false);
|
|
28
|
-
}
|
|
29
|
-
}, {
|
|
30
|
-
key: _types.SelectedLayout.GEOMETRY,
|
|
31
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeometryIcon.GeometryIcon, {
|
|
32
|
-
color: selectedLayout === _types.SelectedLayout.GEOMETRY ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_9,
|
|
33
|
-
size: 16
|
|
34
|
-
}),
|
|
35
|
-
onPressIn: () => {
|
|
36
|
-
setSelectedLayout(_types.SelectedLayout.GEOMETRY);
|
|
37
|
-
onLayoutChange?.(true);
|
|
38
|
-
}
|
|
39
|
-
}];
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_AlgebraIcon","_GeometryIcon","_types","_jsxRuntime","e","__esModule","default","getSelectOptions","selectedLayout","setSelectedLayout","onLayoutChange","key","SelectedLayout","BASIC","title","jsx","AlgebraIcon","color","COLORS","NEUTRAL_1","NEUTRAL_9","size","onPressIn","GEOMETRY","GeometryIcon"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/GeometryLayout/helpers.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAwC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQjC,SAASG,gBAAgBA,CAAC;EAC/BC,cAAc;EACdC,iBAAiB;EACjBC;AACqB,CAAC,EAAE;EACxB,OAAO,CACL;IACEC,GAAG,EAAEC,qBAAc,CAACC,KAAK;IACzBC,KAAK,eACH,IAAAX,WAAA,CAAAY,GAAA,EAACf,YAAA,CAAAgB,WAAW;MACVC,KAAK,EAAET,cAAc,KAAKI,qBAAc,CAACC,KAAK,GAAGK,qBAAM,CAACC,SAAS,GAAGD,qBAAM,CAACE,SAAU;MACrFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfb,iBAAiB,CAACG,qBAAc,CAACC,KAAK,CAAC;MACvCH,cAAc,GAAG,KAAK,CAAC;IACzB;EACF,CAAC,EACD;IACEC,GAAG,EAAEC,qBAAc,CAACW,QAAQ;IAC5BT,KAAK,eACH,IAAAX,WAAA,CAAAY,GAAA,EAACd,aAAA,CAAAuB,YAAY;MACXP,KAAK,EAAET,cAAc,KAAKI,qBAAc,CAACW,QAAQ,GAAGL,qBAAM,CAACC,SAAS,GAAGD,qBAAM,CAACE,SAAU;MACxFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfb,iBAAiB,CAACG,qBAAc,CAACW,QAAQ,CAAC;MAC1Cb,cAAc,GAAG,IAAI,CAAC;IACxB;EACF,CAAC,CACF;AACH","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SelectedLayout = void 0;
|
|
7
|
-
let SelectedLayout = exports.SelectedLayout = /*#__PURE__*/function (SelectedLayout) {
|
|
8
|
-
SelectedLayout["BASIC"] = "basic";
|
|
9
|
-
SelectedLayout["GEOMETRY"] = "geometry";
|
|
10
|
-
return SelectedLayout;
|
|
11
|
-
}({});
|
|
12
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SelectedLayout","exports"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/GeometryLayout/types.ts"],"mappings":";;;;;;IAAYA,cAAc,GAAAC,OAAA,CAAAD,cAAA,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.KEYBOARD_GEOMETRY = void 0;
|
|
7
|
-
var _index = require("../keys/index.js");
|
|
8
|
-
const KEYBOARD_GEOMETRY = exports.KEYBOARD_GEOMETRY = {
|
|
9
|
-
keys: [_index.MATH_GEOMETRY_SYMBOLS.ANGLE, _index.MATH_GEOMETRY_SYMBOLS.TRIANGLE, _index.MATH_GEOMETRY_SYMBOLS.THEREFORE, _index.MATH_GEOMETRY_SYMBOLS.IMPLIES, _index.MATH_BASIC_OPERATORS.SIMILARITY, _index.MATH_GEOMETRY_SYMBOLS.LINE_SEGMENT, _index.MATH_GEOMETRY_SYMBOLS.RIGHT_DIRECTED_SEGMENT, _index.MATH_GEOMETRY_SYMBOLS.BIDIRECTIONAL_SEGMENT, _index.MATH_GEOMETRY_SYMBOLS.PERPENDICULAR, _index.MATH_BASIC_OPERATORS.APPROXIMATELY_EQUAL, _index.MATH_GEOMETRY_SYMBOLS.A, _index.MATH_GEOMETRY_SYMBOLS.B, _index.MATH_GEOMETRY_SYMBOLS.C, _index.MATH_GEOMETRY_SYMBOLS.PARALLEL, _index.MATH_BASIC_OPERATORS.CONGRUENT]
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=geometry.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_index","require","KEYBOARD_GEOMETRY","exports","keys","MATH_GEOMETRY_SYMBOLS","ANGLE","TRIANGLE","THEREFORE","IMPLIES","MATH_BASIC_OPERATORS","SIMILARITY","LINE_SEGMENT","RIGHT_DIRECTED_SEGMENT","BIDIRECTIONAL_SEGMENT","PERPENDICULAR","APPROXIMATELY_EQUAL","A","B","C","PARALLEL","CONGRUENT"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/constants/groups/geometry.constants.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAMO,MAAMC,iBAAgC,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC9CE,IAAI,EAAE,CACJC,4BAAqB,CAACC,KAAK,EAC3BD,4BAAqB,CAACE,QAAQ,EAC9BF,4BAAqB,CAACG,SAAS,EAC/BH,4BAAqB,CAACI,OAAO,EAC7BC,2BAAoB,CAACC,UAAU,EAC/BN,4BAAqB,CAACO,YAAY,EAClCP,4BAAqB,CAACQ,sBAAsB,EAC5CR,4BAAqB,CAACS,qBAAqB,EAC3CT,4BAAqB,CAACU,aAAa,EACnCL,2BAAoB,CAACM,mBAAmB,EACxCX,4BAAqB,CAACY,CAAC,EACvBZ,4BAAqB,CAACa,CAAC,EACvBb,4BAAqB,CAACc,CAAC,EACvBd,4BAAqB,CAACe,QAAQ,EAC9BV,2BAAoB,CAACW,SAAS;AAElC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["lib/types/keys.ts"],"mappings":"","ignoreList":[]}
|