@magmamath/students-features 1.3.3-rc.3 → 1.3.4-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/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -2
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -2
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/helpers.js +8 -4
- package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +7 -6
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +4 -3
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +2 -4
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +4 -3
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +8 -4
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
- package/dist/commonjs/features/feedback/components/EmptyComment.js +2 -2
- package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/commonjs/features/feedback/model/comments.js +2 -2
- package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
- package/dist/commonjs/features/gifCelebrations/components/Gif.js +2 -2
- package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +2 -2
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +2 -2
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/commonjs/features/voice/constants.js +13 -3
- package/dist/commonjs/features/voice/constants.js.map +1 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +2 -2
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +2 -2
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +19 -5
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +73 -22
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +3 -3
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +2 -2
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +2 -2
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +2 -2
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +12 -7
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/commonjs/features/voice/types.js +6 -0
- package/dist/commonjs/features/voice/types.js.map +1 -1
- package/dist/commonjs/index.js +38 -23
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/helpers/helpers.js +12 -12
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/lib/types/keys.js +2 -0
- package/dist/commonjs/lib/types/keys.js.map +1 -0
- package/dist/commonjs/shared/translation/constants.js +23 -0
- package/dist/commonjs/shared/translation/constants.js.map +1 -0
- package/dist/commonjs/shared/translation/helpers.js +47 -0
- package/dist/commonjs/shared/translation/helpers.js.map +1 -0
- package/dist/commonjs/shared/translation/hooks.js +25 -0
- package/dist/commonjs/shared/translation/hooks.js.map +1 -0
- package/dist/commonjs/shared/translation/index.js +45 -0
- package/dist/commonjs/shared/translation/index.js.map +1 -0
- package/dist/commonjs/shared/translation/localization/ca.json +61 -0
- package/dist/commonjs/shared/translation/localization/de.json +61 -0
- package/dist/commonjs/shared/translation/localization/en.json +61 -0
- package/dist/commonjs/shared/translation/localization/gb.json +61 -0
- package/dist/commonjs/shared/translation/localization/sct.json +61 -0
- package/dist/commonjs/shared/translation/localization/sw.json +61 -0
- package/dist/commonjs/shared/translation/model.js +15 -0
- package/dist/commonjs/shared/translation/model.js.map +1 -0
- package/dist/commonjs/shared/translation/types.js +6 -0
- package/dist/commonjs/shared/translation/types.js.map +1 -0
- package/dist/commonjs/shared/translation/validation.types.js +6 -0
- package/dist/commonjs/shared/translation/validation.types.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +1 -1
- package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
- package/dist/module/features/chatbot/helpers.js +6 -2
- package/dist/module/features/chatbot/helpers.js.map +1 -1
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +7 -6
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js +3 -2
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js +2 -3
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +4 -3
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +9 -5
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
- package/dist/module/features/feedback/components/EmptyComment.js +1 -1
- package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
- package/dist/module/features/feedback/model/comments.js +1 -1
- package/dist/module/features/feedback/model/comments.js.map +1 -1
- package/dist/module/features/gifCelebrations/components/Gif.js +1 -1
- package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
- package/dist/module/features/keyboard/components/Numpad/Numpad.js +1 -1
- package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/module/features/voice/constants.js +12 -2
- package/dist/module/features/voice/constants.js.map +1 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +1 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +1 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecord.js +20 -6
- package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +74 -23
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +3 -3
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -1
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +1 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js +6 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/module/features/voice/types.js +5 -1
- package/dist/module/features/voice/types.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/helpers/helpers.js +1 -1
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/lib/types/keys.js +2 -0
- package/dist/module/lib/types/keys.js.map +1 -0
- package/dist/module/shared/translation/constants.js +18 -0
- package/dist/module/shared/translation/constants.js.map +1 -0
- package/dist/module/shared/translation/helpers.js +38 -0
- package/dist/module/shared/translation/helpers.js.map +1 -0
- package/dist/module/shared/translation/hooks.js +19 -0
- package/dist/module/shared/translation/hooks.js.map +1 -0
- package/dist/module/shared/translation/index.js +6 -0
- package/dist/module/shared/translation/index.js.map +1 -0
- package/dist/module/shared/translation/localization/ca.json +61 -0
- package/dist/module/shared/translation/localization/de.json +61 -0
- package/dist/module/shared/translation/localization/en.json +61 -0
- package/dist/module/shared/translation/localization/gb.json +61 -0
- package/dist/module/shared/translation/localization/sct.json +61 -0
- package/dist/module/shared/translation/localization/sw.json +61 -0
- package/dist/module/shared/translation/model.js +11 -0
- package/dist/module/shared/translation/model.js.map +1 -0
- package/dist/module/shared/translation/types.js +4 -0
- package/dist/module/shared/translation/types.js.map +1 -0
- package/dist/module/shared/translation/validation.types.js +4 -0
- package/dist/module/shared/translation/validation.types.js.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +8 -6
- package/dist/typescript/commonjs/features/chatbot/types/api.types.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/gifCelebrations/helpers.d.ts +1 -1
- package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/constants.d.ts +12 -2
- package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +4 -0
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +1 -0
- 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/lib/types/keys.d.ts +8 -0
- package/dist/typescript/commonjs/lib/types/keys.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +369 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts +7 -0
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts +5 -0
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/index.d.ts +4 -0
- package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts +125 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/types.d.ts +6 -0
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +21 -0
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +8 -6
- package/dist/typescript/module/features/chatbot/types/api.types.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/gifCelebrations/helpers.d.ts +1 -1
- package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/constants.d.ts +12 -2
- package/dist/typescript/module/features/voice/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/types.d.ts +4 -0
- package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +1 -0
- 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/lib/types/keys.d.ts +8 -0
- package/dist/typescript/module/lib/types/keys.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +369 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/helpers.d.ts +7 -0
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/hooks.d.ts +5 -0
- package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/index.d.ts +4 -0
- package/dist/typescript/module/shared/translation/index.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/model.d.ts +125 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/types.d.ts +6 -0
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/validation.types.d.ts +21 -0
- package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -0
- package/package.json +4 -9
- package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -1
- package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +1 -1
- package/src/features/chatbot/helpers.ts +3 -1
- package/src/features/chatbot/index.ts +9 -1
- package/src/features/chatbot/model/ChatBotModel.ts +7 -10
- package/src/features/chatbot/model/ChatBoxTextManager.ts +4 -2
- package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
- package/src/features/chatbot/types/api.types.ts +11 -6
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +4 -3
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +9 -5
- package/src/features/feedback/components/EmptyComment.tsx +1 -1
- package/src/features/feedback/model/comments.ts +1 -1
- package/src/features/gifCelebrations/components/Gif.tsx +1 -1
- package/src/features/gifCelebrations/helpers.ts +1 -1
- package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -1
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +1 -1
- package/src/features/voice/constants.ts +13 -2
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +1 -1
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +1 -1
- package/src/features/voice/recording/components/VoiceRecord.tsx +28 -5
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +100 -31
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -2
- package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +8 -4
- package/src/features/voice/recording/modal/ModalFooterButtons.tsx +2 -2
- package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +1 -1
- package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +1 -1
- package/src/features/voice/recording/model/VoiceRecord.model.ts +8 -1
- package/src/features/voice/types.ts +5 -0
- package/src/index.ts +1 -0
- package/src/lib/helpers/helpers.ts +1 -1
- package/src/lib/types/keys.ts +18 -0
- package/src/shared/translation/constants.ts +16 -0
- package/src/shared/translation/helpers.ts +47 -0
- package/src/shared/translation/hooks.ts +25 -0
- package/src/shared/translation/index.ts +3 -0
- package/src/shared/translation/localization/ca.json +61 -0
- package/src/shared/translation/localization/de.json +61 -0
- package/src/shared/translation/localization/en.json +61 -0
- package/src/shared/translation/localization/gb.json +61 -0
- package/src/shared/translation/localization/sct.json +61 -0
- package/src/shared/translation/localization/sw.json +61 -0
- package/src/shared/translation/model.ts +16 -0
- package/src/shared/translation/types.ts +21 -0
- package/src/shared/translation/validation.types.ts +34 -0
- package/dist/commonjs/shared/translation/i18n.d.js +0 -5
- package/dist/commonjs/shared/translation/i18n.d.js.map +0 -1
- package/dist/commonjs/shared/translation/i18n.js +0 -26
- package/dist/commonjs/shared/translation/i18n.js.map +0 -1
- package/dist/commonjs/shared/translation/react-i18next.d.js +0 -5
- package/dist/commonjs/shared/translation/react-i18next.d.js.map +0 -1
- package/dist/module/shared/translation/i18n.d.js +0 -5
- package/dist/module/shared/translation/i18n.d.js.map +0 -1
- package/dist/module/shared/translation/i18n.js +0 -19
- package/dist/module/shared/translation/i18n.js.map +0 -1
- package/dist/module/shared/translation/react-i18next.d.js +0 -5
- package/dist/module/shared/translation/react-i18next.d.js.map +0 -1
- package/dist/typescript/commonjs/shared/translation/i18n.d.ts +0 -7
- package/dist/typescript/commonjs/shared/translation/i18n.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/i18n.d.ts +0 -7
- package/dist/typescript/module/shared/translation/i18n.d.ts.map +0 -1
- package/src/shared/translation/i18n.d.ts +0 -21
- package/src/shared/translation/i18n.ts +0 -17
- package/src/shared/translation/react-i18next.d.ts +0 -21
|
@@ -9,13 +9,15 @@ var _RecorderModel = require("./Recorder.model.js");
|
|
|
9
9
|
var _VoiceRecordCollection = require("./VoiceRecordCollection.js");
|
|
10
10
|
var _UploaderModel = require("./Uploader.model.js");
|
|
11
11
|
var _constants = require("../../constants.js");
|
|
12
|
+
var _types = require("../../types.js");
|
|
12
13
|
var _helpers = require("../../helpers.js");
|
|
13
|
-
var
|
|
14
|
+
var _index = require("../../../../shared/translation/index.js");
|
|
14
15
|
class VoiceRecordModel {
|
|
15
16
|
recorderModel = new _RecorderModel.RecorderModel();
|
|
16
17
|
collection = new _VoiceRecordCollection.VoiceRecordsCollection();
|
|
17
18
|
uploader = new _UploaderModel.UploaderModel();
|
|
18
19
|
shouldDiscardRecording = false;
|
|
20
|
+
recordButtonVariant = _types.RecordButtonVariant.DEFAULT;
|
|
19
21
|
setCurrentKey = (0, _effector.createEvent)();
|
|
20
22
|
setCurrentRecord = (0, _effector.createEvent)();
|
|
21
23
|
reset = (0, _effector.createEvent)();
|
|
@@ -31,6 +33,9 @@ class VoiceRecordModel {
|
|
|
31
33
|
deleteAudioRecord = (0, _effector.createEffect)(async audioFileId => {
|
|
32
34
|
await this.api.deleteAudioFile(audioFileId);
|
|
33
35
|
});
|
|
36
|
+
setRecordButtonVariant = (0, _effector.createEffect)(variant => {
|
|
37
|
+
this.recordButtonVariant = variant;
|
|
38
|
+
});
|
|
34
39
|
deleteCurrentRecording = (0, _effector.attach)({
|
|
35
40
|
source: this.$currentKey,
|
|
36
41
|
mapParams: (props, currentKey) => ({
|
|
@@ -49,7 +54,7 @@ class VoiceRecordModel {
|
|
|
49
54
|
this.abortUploadIfInProgress(recordingItem);
|
|
50
55
|
this.resetRecordingState(currentKey);
|
|
51
56
|
if (notification) {
|
|
52
|
-
this.notification.success((0,
|
|
57
|
+
this.notification.success((0, _index.t)('voice.recordingDeleted'));
|
|
53
58
|
}
|
|
54
59
|
})
|
|
55
60
|
});
|
|
@@ -63,18 +68,18 @@ class VoiceRecordModel {
|
|
|
63
68
|
}
|
|
64
69
|
const hasPermissions = await (0, _helpers.ensureRecordingPermissions)();
|
|
65
70
|
if (!hasPermissions) {
|
|
66
|
-
this.notification.error((0,
|
|
71
|
+
this.notification.error((0, _index.t)('voice.noMicrophoneAccess'));
|
|
67
72
|
return;
|
|
68
73
|
}
|
|
69
74
|
const inputs = await (0, _helpers.getAvailableInputs)(this.recorderModel.recorder);
|
|
70
75
|
this.recorderModel.setAvailableInputs(inputs);
|
|
71
76
|
if (inputs.length === 0) {
|
|
72
|
-
this.notification.error((0,
|
|
77
|
+
this.notification.error((0, _index.t)('voice.noMicrophoneFound'));
|
|
73
78
|
return;
|
|
74
79
|
}
|
|
75
80
|
return this.recorderModel.start().catch(error => {
|
|
76
81
|
if (error.name === 'NotAllowedError') {
|
|
77
|
-
this.notification.error((0,
|
|
82
|
+
this.notification.error((0, _index.t)('voice.noMicrophoneAccessBySystem'));
|
|
78
83
|
}
|
|
79
84
|
});
|
|
80
85
|
})
|
|
@@ -123,7 +128,7 @@ class VoiceRecordModel {
|
|
|
123
128
|
return this.collection.get(key);
|
|
124
129
|
} catch (error) {
|
|
125
130
|
console.error(`Failed to get recording item: ${error}`);
|
|
126
|
-
this.notification.error((0,
|
|
131
|
+
this.notification.error((0, _index.t)('voice.uploadFailed'));
|
|
127
132
|
return undefined;
|
|
128
133
|
}
|
|
129
134
|
})
|
|
@@ -164,7 +169,7 @@ class VoiceRecordModel {
|
|
|
164
169
|
if (error.name === 'CanceledError') return;
|
|
165
170
|
this.collection.delete(currentKey);
|
|
166
171
|
this.reset();
|
|
167
|
-
this.notification.error((0,
|
|
172
|
+
this.notification.error((0, _index.t)('voice.uploadFailed'));
|
|
168
173
|
});
|
|
169
174
|
return uploadPromise;
|
|
170
175
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_RecorderModel","_VoiceRecordCollection","_UploaderModel","_constants","_helpers","
|
|
1
|
+
{"version":3,"names":["_effector","require","_RecorderModel","_VoiceRecordCollection","_UploaderModel","_constants","_types","_helpers","_index","VoiceRecordModel","recorderModel","RecorderModel","collection","VoiceRecordsCollection","uploader","UploaderModel","shouldDiscardRecording","recordButtonVariant","RecordButtonVariant","DEFAULT","setCurrentKey","createEvent","setCurrentRecord","reset","setIsButtonDisabled","startAudioUpload","$currentKey","restore","$currentRecord","$isButtonDisabled","$isExpanded","combine","$voiceRecordState","recorderState","currentRecord","VoiceRecorderState","IDLE","deleteAudioRecord","createEffect","audioFileId","api","deleteAudioFile","setRecordButtonVariant","variant","deleteCurrentRecording","attach","source","mapParams","props","currentKey","notification","effect","recordingItem","get","id","abortUploadIfInProgress","resetRecordingState","success","t","initializeRecording","hasPermissions","ensureRecordingPermissions","error","inputs","getAvailableInputs","recorder","setAvailableInputs","length","start","catch","name","stop","clearStopResolver","cleanup","getStatus","isRecording","recordingStatusUpdate","status","isFinished","url","getRecordingItem","key","RECORDING","stopAndAwaitResult","console","undefined","controller","abortUpload","delete","handleAudioUpload","uri","durationMs","collectionItem","uploadPromise","upload","fileName","add","resolveRecord","then","data","update","setupUploadHandler","sample","clock","$lastKnownDurationMs","filter","fn","target","setupCurrentRecordSync","recorderButtonHandler","isInitializing","pending","lastKnownDurationMs","VOICE_RECORDER_MIN_DURATION_MS","warn","events","undoRecord","constructor","setApi","exports"],"sourceRoot":"../../../../../../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CAAA9G,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -3,4 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.RecordButtonVariant = void 0;
|
|
7
|
+
let RecordButtonVariant = exports.RecordButtonVariant = /*#__PURE__*/function (RecordButtonVariant) {
|
|
8
|
+
RecordButtonVariant["DEFAULT"] = "default";
|
|
9
|
+
RecordButtonVariant["ADVANCED"] = "advanced";
|
|
10
|
+
return RecordButtonVariant;
|
|
11
|
+
}({});
|
|
6
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/voice/types.ts"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["RecordButtonVariant","exports"],"sourceRoot":"../../../../src","sources":["features/voice/types.ts"],"mappings":";;;;;;IAqFYA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA","ignoreList":[]}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
+
useFeaturesLocalization: true,
|
|
8
|
+
setFeaturesLocalization: true,
|
|
7
9
|
generateRandomId: true
|
|
8
10
|
};
|
|
9
11
|
Object.defineProperty(exports, "generateRandomId", {
|
|
@@ -12,20 +14,21 @@ Object.defineProperty(exports, "generateRandomId", {
|
|
|
12
14
|
return _helpers.generateRandomId;
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
17
|
+
Object.defineProperty(exports, "setFeaturesLocalization", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return _index.setFeaturesLocalization;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "useFeaturesLocalization", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return _index.useFeaturesLocalization;
|
|
27
|
+
}
|
|
27
28
|
});
|
|
28
|
-
var
|
|
29
|
+
var _index = require("./shared/translation/index.js");
|
|
30
|
+
var _helpers = require("./lib/helpers/helpers.js");
|
|
31
|
+
var _index2 = require("./features/chatbot/index.js");
|
|
29
32
|
Object.keys(_index2).forEach(function (key) {
|
|
30
33
|
if (key === "default" || key === "__esModule") return;
|
|
31
34
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -37,7 +40,7 @@ Object.keys(_index2).forEach(function (key) {
|
|
|
37
40
|
}
|
|
38
41
|
});
|
|
39
42
|
});
|
|
40
|
-
var _index3 = require("./features/
|
|
43
|
+
var _index3 = require("./features/feedback/index.js");
|
|
41
44
|
Object.keys(_index3).forEach(function (key) {
|
|
42
45
|
if (key === "default" || key === "__esModule") return;
|
|
43
46
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -49,7 +52,7 @@ Object.keys(_index3).forEach(function (key) {
|
|
|
49
52
|
}
|
|
50
53
|
});
|
|
51
54
|
});
|
|
52
|
-
var _index4 = require("./features/
|
|
55
|
+
var _index4 = require("./features/celebrations/index.js");
|
|
53
56
|
Object.keys(_index4).forEach(function (key) {
|
|
54
57
|
if (key === "default" || key === "__esModule") return;
|
|
55
58
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -61,7 +64,7 @@ Object.keys(_index4).forEach(function (key) {
|
|
|
61
64
|
}
|
|
62
65
|
});
|
|
63
66
|
});
|
|
64
|
-
var _index5 = require("./features/
|
|
67
|
+
var _index5 = require("./features/endOfAssignment/index.js");
|
|
65
68
|
Object.keys(_index5).forEach(function (key) {
|
|
66
69
|
if (key === "default" || key === "__esModule") return;
|
|
67
70
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -73,7 +76,7 @@ Object.keys(_index5).forEach(function (key) {
|
|
|
73
76
|
}
|
|
74
77
|
});
|
|
75
78
|
});
|
|
76
|
-
var _index6 = require("./features/
|
|
79
|
+
var _index6 = require("./features/formulaSheet/index.js");
|
|
77
80
|
Object.keys(_index6).forEach(function (key) {
|
|
78
81
|
if (key === "default" || key === "__esModule") return;
|
|
79
82
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -85,7 +88,7 @@ Object.keys(_index6).forEach(function (key) {
|
|
|
85
88
|
}
|
|
86
89
|
});
|
|
87
90
|
});
|
|
88
|
-
var _index7 = require("./features/
|
|
91
|
+
var _index7 = require("./features/problemSelector/index.js");
|
|
89
92
|
Object.keys(_index7).forEach(function (key) {
|
|
90
93
|
if (key === "default" || key === "__esModule") return;
|
|
91
94
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -97,7 +100,7 @@ Object.keys(_index7).forEach(function (key) {
|
|
|
97
100
|
}
|
|
98
101
|
});
|
|
99
102
|
});
|
|
100
|
-
var _index8 = require("./features/
|
|
103
|
+
var _index8 = require("./features/gifCelebrations/index.js");
|
|
101
104
|
Object.keys(_index8).forEach(function (key) {
|
|
102
105
|
if (key === "default" || key === "__esModule") return;
|
|
103
106
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -109,7 +112,7 @@ Object.keys(_index8).forEach(function (key) {
|
|
|
109
112
|
}
|
|
110
113
|
});
|
|
111
114
|
});
|
|
112
|
-
var _index9 = require("./features/
|
|
115
|
+
var _index9 = require("./features/exampleSolution/index.js");
|
|
113
116
|
Object.keys(_index9).forEach(function (key) {
|
|
114
117
|
if (key === "default" || key === "__esModule") return;
|
|
115
118
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -121,7 +124,7 @@ Object.keys(_index9).forEach(function (key) {
|
|
|
121
124
|
}
|
|
122
125
|
});
|
|
123
126
|
});
|
|
124
|
-
var _index10 = require("./features/
|
|
127
|
+
var _index10 = require("./features/keyboard/index.js");
|
|
125
128
|
Object.keys(_index10).forEach(function (key) {
|
|
126
129
|
if (key === "default" || key === "__esModule") return;
|
|
127
130
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -133,7 +136,7 @@ Object.keys(_index10).forEach(function (key) {
|
|
|
133
136
|
}
|
|
134
137
|
});
|
|
135
138
|
});
|
|
136
|
-
var _index11 = require("./
|
|
139
|
+
var _index11 = require("./features/openEnded/index.js");
|
|
137
140
|
Object.keys(_index11).forEach(function (key) {
|
|
138
141
|
if (key === "default" || key === "__esModule") return;
|
|
139
142
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -145,7 +148,7 @@ Object.keys(_index11).forEach(function (key) {
|
|
|
145
148
|
}
|
|
146
149
|
});
|
|
147
150
|
});
|
|
148
|
-
var _index12 = require("./
|
|
151
|
+
var _index12 = require("./shared/icons/index.js");
|
|
149
152
|
Object.keys(_index12).forEach(function (key) {
|
|
150
153
|
if (key === "default" || key === "__esModule") return;
|
|
151
154
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -157,4 +160,16 @@ Object.keys(_index12).forEach(function (key) {
|
|
|
157
160
|
}
|
|
158
161
|
});
|
|
159
162
|
});
|
|
163
|
+
var _index13 = require("./features/voice/index.js");
|
|
164
|
+
Object.keys(_index13).forEach(function (key) {
|
|
165
|
+
if (key === "default" || key === "__esModule") return;
|
|
166
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
167
|
+
if (key in exports && exports[key] === _index13[key]) return;
|
|
168
|
+
Object.defineProperty(exports, key, {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _index13[key];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
160
175
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_index","require","_helpers","_index2","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index3","_index4","_index5","_index6","_index7","_index8","_index9","_index10","_index11","_index12","_index13"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,OAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,OAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAf,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAW,OAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,OAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OA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EAAA;AAAA;AACA,IAAAkB,QAAA,GAAAxB,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAoB,QAAA,EAAAnB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAkB,QAAA,CAAAlB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAU,QAAA,CAAAlB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAmB,QAAA,GAAAzB,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAqB,QAAA,EAAApB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAmB,QAAA,CAAAnB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAW,QAAA,CAAAnB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.noop = exports.getRelativeTimeText = exports.generateRandomId = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _helpers = require("../../shared/translation/helpers.js");
|
|
8
8
|
const noop = () => {};
|
|
9
9
|
exports.noop = noop;
|
|
10
10
|
const generateRandomId = () => Date.now().toString(36) + Math.random().toString(36).substring(2);
|
|
@@ -27,33 +27,33 @@ const getRelativeTimeText = date => {
|
|
|
27
27
|
const days = getDays(hours);
|
|
28
28
|
const months = getMonths(days);
|
|
29
29
|
const years = getYears(days);
|
|
30
|
-
if (seconds < 60) return (0,
|
|
30
|
+
if (seconds < 60) return (0, _helpers.getText)('time.justNow');
|
|
31
31
|
if (minutes < 60) {
|
|
32
|
-
if (minutes === 1) return `1 ${(0,
|
|
33
|
-
return (0,
|
|
32
|
+
if (minutes === 1) return `1 ${(0, _helpers.getText)('time.minuteAgo')}`;
|
|
33
|
+
return (0, _helpers.getText)('time.minutesAgo', {
|
|
34
34
|
count: minutes.toString()
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
if (hours < 24) {
|
|
38
|
-
if (hours === 1) return `1 ${(0,
|
|
39
|
-
return (0,
|
|
38
|
+
if (hours === 1) return `1 ${(0, _helpers.getText)('time.hourAgo')}`;
|
|
39
|
+
return (0, _helpers.getText)('time.hoursAgo', {
|
|
40
40
|
count: hours.toString()
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
if (days < 30) {
|
|
44
|
-
if (days === 1) return `1 ${(0,
|
|
45
|
-
return (0,
|
|
44
|
+
if (days === 1) return `1 ${(0, _helpers.getText)('time.dayAgo')}`;
|
|
45
|
+
return (0, _helpers.getText)('time.daysAgo', {
|
|
46
46
|
count: days.toString()
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
if (months < 12) {
|
|
50
|
-
if (months === 1) return `1 ${(0,
|
|
51
|
-
return (0,
|
|
50
|
+
if (months === 1) return `1 ${(0, _helpers.getText)('time.monthAgo')}`;
|
|
51
|
+
return (0, _helpers.getText)('time.monthsAgo', {
|
|
52
52
|
count: months.toString()
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
if (years === 1) return `1 ${(0,
|
|
56
|
-
return (0,
|
|
55
|
+
if (years === 1) return `1 ${(0, _helpers.getText)('time.yearAgo')}`;
|
|
56
|
+
return (0, _helpers.getText)('time.yearsAgo', {
|
|
57
57
|
count: years.toString()
|
|
58
58
|
});
|
|
59
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_helpers","require","noop","exports","generateRandomId","Date","now","toString","Math","random","substring","getYears","days","floor","getMonths","getDays","hours","getHours","minutes","getMinutes","seconds","getSeconds","milliseconds","getRelativeTimeText","date","timeBufferMs","getTime","targetDate","diffTime","months","years","getText","count"],"sourceRoot":"../../../../src","sources":["lib/helpers/helpers.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEO,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAAAC,OAAA,CAAAD,IAAA,GAAAA,IAAA;AAErB,MAAME,gBAAgB,GAAGA,CAAA,KAC9BC,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,GAAGC,IAAI,CAACC,MAAM,CAAC,CAAC,CAACF,QAAQ,CAAC,EAAE,CAAC,CAACG,SAAS,CAAC,CAAC,CAAC;AAAAP,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAEnE,MAAMO,QAAQ,GAAIC,IAAY,IAAKJ,IAAI,CAACK,KAAK,CAACD,IAAI,GAAG,GAAG,CAAC;AACzD,MAAME,SAAS,GAAIF,IAAY,IAAKJ,IAAI,CAACK,KAAK,CAACD,IAAI,GAAG,EAAE,CAAC;AACzD,MAAMG,OAAO,GAAIC,KAAa,IAAKR,IAAI,CAACK,KAAK,CAACG,KAAK,GAAG,EAAE,CAAC;AACzD,MAAMC,QAAQ,GAAIC,OAAe,IAAKV,IAAI,CAACK,KAAK,CAACK,OAAO,GAAG,EAAE,CAAC;AAC9D,MAAMC,UAAU,GAAIC,OAAe,IAAKZ,IAAI,CAACK,KAAK,CAACO,OAAO,GAAG,EAAE,CAAC;AAChE,MAAMC,UAAU,GAAIC,YAAoB,IAAKd,IAAI,CAACK,KAAK,CAACS,YAAY,GAAG,IAAI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IAAIA,IAAI,KAAK,CAAC,EAAE,OAAO,KAAK,IAAAmB,gBAAO,EAAC,aAAa,CAAC,EAAE;IACpD,OAAO,IAAAA,gBAAO,EAAC,cAAc,EAAE;MAAEC,KAAK,EAAEpB,IAAI,CAACL,QAAQ,CAAC;IAAE,CAAC,CAAC;EAC5D;EAEA,IAAIsB,MAAM,GAAG,EAAE,EAAE;IACf,IAAIA,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK,IAAAE,gBAAO,EAAC,eAAe,CAAC,EAAE;IACxD,OAAO,IAAAA,gBAAO,EAAC,gBAAgB,EAAE;MAAEC,KAAK,EAAEH,MAAM,CAACtB,QAAQ,CAAC;IAAE,CAAC,CAAC;EAChE;EAEA,IAAIuB,KAAK,KAAK,CAAC,EAAE,OAAO,KAAK,IAAAC,gBAAO,EAAC,cAAc,CAAC,EAAE;EACtD,OAAO,IAAAA,gBAAO,EAAC,eAAe,EAAE;IAAEC,KAAK,EAAEF,KAAK,CAACvB,QAAQ,CAAC;EAAE,CAAC,CAAC;AAC9D,CAAC;AAAAJ,OAAA,CAAAoB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["lib/types/keys.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.LOCALIZATION_CONFIGS = void 0;
|
|
7
|
+
var _frontendConfig = require("@magmamath/frontend-config");
|
|
8
|
+
var _en = _interopRequireDefault(require("./localization/en.json"));
|
|
9
|
+
var _gb = _interopRequireDefault(require("./localization/gb.json"));
|
|
10
|
+
var _sw = _interopRequireDefault(require("./localization/sw.json"));
|
|
11
|
+
var _ca = _interopRequireDefault(require("./localization/ca.json"));
|
|
12
|
+
var _sct = _interopRequireDefault(require("./localization/sct.json"));
|
|
13
|
+
var _de = _interopRequireDefault(require("./localization/de.json"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const LOCALIZATION_CONFIGS = exports.LOCALIZATION_CONFIGS = {
|
|
16
|
+
[_frontendConfig.Locale.US]: _en.default,
|
|
17
|
+
[_frontendConfig.Locale.GB]: _gb.default,
|
|
18
|
+
[_frontendConfig.Locale.SE]: _sw.default,
|
|
19
|
+
[_frontendConfig.Locale.CA]: _ca.default,
|
|
20
|
+
[_frontendConfig.Locale.SCT]: _sct.default,
|
|
21
|
+
[_frontendConfig.Locale.DE]: _de.default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_frontendConfig","require","_en","_interopRequireDefault","_gb","_sw","_ca","_sct","_de","e","__esModule","default","LOCALIZATION_CONFIGS","exports","Locale","US","EN","GB","SE","SW","CA","SCT","DE"],"sourceRoot":"../../../../src","sources":["shared/translation/constants.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,GAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,GAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,GAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,IAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,GAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAuC,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhC,MAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG;EAClC,CAACE,sBAAM,CAACC,EAAE,GAAGC,WAAE;EACf,CAACF,sBAAM,CAACG,EAAE,GAAGA,WAAE;EACf,CAACH,sBAAM,CAACI,EAAE,GAAGC,WAAE;EACf,CAACL,sBAAM,CAACM,EAAE,GAAGA,WAAE;EACf,CAACN,sBAAM,CAACO,GAAG,GAAGA,YAAG;EACjB,CAACP,sBAAM,CAACQ,EAAE,GAAGA;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getText = exports.getSubstitutedString = void 0;
|
|
7
|
+
exports.getTranslation = getTranslation;
|
|
8
|
+
exports.setFeaturesLocalization = void 0;
|
|
9
|
+
var _model = require("./model.js");
|
|
10
|
+
function getTranslation(config, key) {
|
|
11
|
+
const rawTranslation = config?.[key];
|
|
12
|
+
if (typeof rawTranslation === 'string' || !key.includes('.')) {
|
|
13
|
+
return rawTranslation;
|
|
14
|
+
}
|
|
15
|
+
const keys = key.split('.');
|
|
16
|
+
let translation = config;
|
|
17
|
+
for (const k of keys) {
|
|
18
|
+
if (translation[k] === undefined) return key;
|
|
19
|
+
translation = translation[k];
|
|
20
|
+
}
|
|
21
|
+
if (typeof translation === 'string') {
|
|
22
|
+
return translation;
|
|
23
|
+
}
|
|
24
|
+
return key;
|
|
25
|
+
}
|
|
26
|
+
const getSubstitutedString = (str, substitutions = {}) => {
|
|
27
|
+
const substitutionsArray = Object.entries(substitutions);
|
|
28
|
+
let result = str;
|
|
29
|
+
if (!substitutionsArray.length) return result;
|
|
30
|
+
substitutionsArray.forEach(([key, value]) => {
|
|
31
|
+
result = result.replace(`{{${key}}}`, value);
|
|
32
|
+
});
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
exports.getSubstitutedString = getSubstitutedString;
|
|
36
|
+
const getText = (key, args = null) => {
|
|
37
|
+
const config = _model.$localization.getState();
|
|
38
|
+
const translation = getTranslation(config, key);
|
|
39
|
+
if (args) return getSubstitutedString(translation, args);
|
|
40
|
+
return translation;
|
|
41
|
+
};
|
|
42
|
+
exports.getText = getText;
|
|
43
|
+
const setFeaturesLocalization = generator => {
|
|
44
|
+
(0, _model.setLocalization)(generator);
|
|
45
|
+
};
|
|
46
|
+
exports.setFeaturesLocalization = setFeaturesLocalization;
|
|
47
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_model","require","getTranslation","config","key","rawTranslation","includes","keys","split","translation","k","undefined","getSubstitutedString","str","substitutions","substitutionsArray","Object","entries","result","length","forEach","value","replace","exports","getText","args","$localization","getState","setFeaturesLocalization","generator","setLocalization"],"sourceRoot":"../../../../src","sources":["shared/translation/helpers.ts"],"mappings":";;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAGO,SAASC,cAAcA,CAACC,MAAoB,EAAEC,GAAoB,EAAE;EACzE,MAAMC,cAAc,GAAGF,MAAM,GAAGC,GAAG,CAAuB;EAC1D,IAAI,OAAOC,cAAc,KAAK,QAAQ,IAAI,CAACD,GAAG,CAACE,QAAQ,CAAC,GAAG,CAAC,EAAE;IAC5D,OAAOD,cAAc;EACvB;EACA,MAAME,IAAI,GAAGH,GAAG,CAACI,KAAK,CAAC,GAAG,CAAC;EAC3B,IAAIC,WAAW,GAAGN,MAAM;EACxB,KAAK,MAAMO,CAAC,IAAIH,IAAI,EAAE;IACpB,IAAIE,WAAW,CAACC,CAAC,CAAuB,KAAKC,SAAS,EAAE,OAAOP,GAAG;IAClEK,WAAW,GAAGA,WAAW,CAACC,CAAC,CAA8B;EAC3D;EACA,IAAI,OAAOD,WAAW,KAAK,QAAQ,EAAE;IACnC,OAAOA,WAAW;EACpB;EACA,OAAOL,GAAG;AACZ;AAEO,MAAMQ,oBAAoB,GAAGA,CAACC,GAAW,EAAEC,aAAqC,GAAG,CAAC,CAAC,KAAK;EAC/F,MAAMC,kBAAkB,GAAGC,MAAM,CAACC,OAAO,CAACH,aAAa,CAAC;EACxD,IAAII,MAAM,GAAGL,GAAG;EAEhB,IAAI,CAACE,kBAAkB,CAACI,MAAM,EAAE,OAAOD,MAAM;EAE7CH,kBAAkB,CAACK,OAAO,CAAC,CAAC,CAAChB,GAAG,EAAEiB,KAAK,CAAC,KAAK;IAC3CH,MAAM,GAAGA,MAAM,CAACI,OAAO,CAAC,KAAKlB,GAAG,IAAI,EAAEiB,KAAK,CAAC;EAC9C,CAAC,CAAC;EAEF,OAAOH,MAAM;AACf,CAAC;AAAAK,OAAA,CAAAX,oBAAA,GAAAA,oBAAA;AAEM,MAAMY,OAAgB,GAAGA,CAACpB,GAAoB,EAAEqB,IAAI,GAAG,IAAI,KAAK;EACrE,MAAMtB,MAAM,GAAGuB,oBAAa,CAACC,QAAQ,CAAC,CAAC;EAEvC,MAAMlB,WAAW,GAAGP,cAAc,CAACC,MAAM,EAAEC,GAAG,CAAC;EAC/C,IAAIqB,IAAI,EAAE,OAAOb,oBAAoB,CAACH,WAAW,EAAEgB,IAAI,CAAC;EACxD,OAAOhB,WAAW;AACpB,CAAC;AAAAc,OAAA,CAAAC,OAAA,GAAAA,OAAA;AAEM,MAAMI,uBAAuB,GAClCC,SAAiF,IAC9E;EACH,IAAAC,sBAAe,EAACD,SAAS,CAAC;AAC5B,CAAC;AAAAN,OAAA,CAAAK,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useText = exports.useFeaturesLocalization = void 0;
|
|
7
|
+
var _effectorReact = require("effector-react");
|
|
8
|
+
var _model = require("./model.js");
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _helpers = require("./helpers.js");
|
|
11
|
+
const useText = () => {
|
|
12
|
+
const config = (0, _effectorReact.useUnit)(_model.$localization);
|
|
13
|
+
return (0, _react.useCallback)((key, args = null) => {
|
|
14
|
+
const translation = (0, _helpers.getTranslation)(config, key);
|
|
15
|
+
return args ? (0, _helpers.getSubstitutedString)(translation, args) : translation;
|
|
16
|
+
}, [config]);
|
|
17
|
+
};
|
|
18
|
+
exports.useText = useText;
|
|
19
|
+
const useFeaturesLocalization = generator => {
|
|
20
|
+
(0, _react.useEffect)(() => {
|
|
21
|
+
(0, _model.setLocalization)(generator);
|
|
22
|
+
}, [generator]);
|
|
23
|
+
};
|
|
24
|
+
exports.useFeaturesLocalization = useFeaturesLocalization;
|
|
25
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_effectorReact","require","_model","_react","_helpers","useText","config","useUnit","$localization","useCallback","key","args","translation","getTranslation","getSubstitutedString","exports","useFeaturesLocalization","generator","useEffect","setLocalization"],"sourceRoot":"../../../../src","sources":["shared/translation/hooks.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AAEO,MAAMI,OAAO,GAAGA,CAAA,KAAe;EACpC,MAAMC,MAAM,GAAG,IAAAC,sBAAO,EAACC,oBAAa,CAAC;EACrC,OAAO,IAAAC,kBAAW,EAChB,CAACC,GAAG,EAAEC,IAAI,GAAG,IAAI,KAAK;IACpB,MAAMC,WAAW,GAAG,IAAAC,uBAAc,EAACP,MAAM,EAAEI,GAAG,CAAC;IAC/C,OAAOC,IAAI,GAAG,IAAAG,6BAAoB,EAACF,WAAW,EAAED,IAAI,CAAC,GAAGC,WAAW;EACrE,CAAC,EACD,CAACN,MAAM,CACT,CAAC;AACH,CAAC;AAAAS,OAAA,CAAAV,OAAA,GAAAA,OAAA;AAEM,MAAMW,uBAAuB,GAClCC,SAAiF,IAC9E;EACH,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAAC,sBAAe,EAACF,SAAS,CAAC;EAC5B,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;AACjB,CAAC;AAAAF,OAAA,CAAAC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "$localization", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _model.$localization;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "setFeaturesLocalization", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _helpers.setFeaturesLocalization;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "setLocalization", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _model.setLocalization;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "t", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _helpers.getText;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "useFeaturesLocalization", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _hooks.useFeaturesLocalization;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "useText", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _hooks.useText;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _hooks = require("./hooks.js");
|
|
43
|
+
var _helpers = require("./helpers.js");
|
|
44
|
+
var _model = require("./model.js");
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_hooks","require","_helpers","_model"],"sourceRoot":"../../../../src","sources":["shared/translation/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "en-CA",
|
|
3
|
+
"teacherFeedback.noComments": "No comments yet",
|
|
4
|
+
"time.justNow": "just now",
|
|
5
|
+
"time.minuteAgo": "minute ago",
|
|
6
|
+
"time.minutesAgo": "{{count}} minutes ago",
|
|
7
|
+
"time.hourAgo": "hour ago",
|
|
8
|
+
"time.hoursAgo": "{{count}} hours ago",
|
|
9
|
+
"time.dayAgo": "day ago",
|
|
10
|
+
"time.daysAgo": "{{count}} days ago",
|
|
11
|
+
"time.monthAgo": "month ago",
|
|
12
|
+
"time.monthsAgo": "{{count}} months ago",
|
|
13
|
+
"time.yearAgo": "year ago",
|
|
14
|
+
"time.yearsAgo": "{{count}} years ago",
|
|
15
|
+
"chat": {
|
|
16
|
+
"anotherHint": "Give me another hint",
|
|
17
|
+
"getHint": "Get a hint",
|
|
18
|
+
"needHint": "I need a hint",
|
|
19
|
+
"giveHintOpenChat": "I need a hint",
|
|
20
|
+
"answerAgain": "Answer again to get another hint!",
|
|
21
|
+
"errorMessage": "Something went wrong! Try again",
|
|
22
|
+
"howCanIHelp": "Hi! Do you want help?",
|
|
23
|
+
"showError": "Show error",
|
|
24
|
+
"inputPlaceholder": "Type..."
|
|
25
|
+
},
|
|
26
|
+
"gifCelebrations": {
|
|
27
|
+
"greatStart": "Great start!",
|
|
28
|
+
"onTheWay": "On the way!",
|
|
29
|
+
"almostThere": "Almost there"
|
|
30
|
+
},
|
|
31
|
+
"exampleSolution": {
|
|
32
|
+
"exampleSolution": "Example solution",
|
|
33
|
+
"letMeThink": "Let me think...",
|
|
34
|
+
"aha": "Aha!",
|
|
35
|
+
"errorMessage": "Something went wrong with generating an example solution"
|
|
36
|
+
},
|
|
37
|
+
"keyboard": {
|
|
38
|
+
"length": "Length",
|
|
39
|
+
"area": "Area",
|
|
40
|
+
"volume": "Volume",
|
|
41
|
+
"weight": "Weight",
|
|
42
|
+
"time": "Time"
|
|
43
|
+
},
|
|
44
|
+
"voice": {
|
|
45
|
+
"deleteRecording": "Delete recording?",
|
|
46
|
+
"youWontBeAbleToRecover": "You won't be able to recover this file once it's gone.",
|
|
47
|
+
"recordingDeleted": "Recording successfully deleted.",
|
|
48
|
+
"delete": "Delete",
|
|
49
|
+
"cancel": "Cancel",
|
|
50
|
+
"noMicrophoneAccess": "No microphone access.",
|
|
51
|
+
"noMicrophoneAccessBySystem": "Microphone access denied by system settings.",
|
|
52
|
+
"noMicrophoneFound": "No microphone found.",
|
|
53
|
+
"uploadFailed": "Upload failed. Please try again.",
|
|
54
|
+
"redoRecording": "Redo recording?",
|
|
55
|
+
"redo": "Redo",
|
|
56
|
+
"thisWillRemoveRecording": "This will remove your previous recording.",
|
|
57
|
+
"transcriptions": "Transcriptions",
|
|
58
|
+
"attempt": "Attempt {{number}}",
|
|
59
|
+
"transcriptNotAvailable": "Transcript not available"
|
|
60
|
+
}
|
|
61
|
+
}
|