@magmamath/students-features 1.3.3-rc.1 → 1.3.3-rc.3
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 +3 -3
- package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +2 -2
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +2 -2
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +2 -2
- 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/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/VoiceRecordButton.js +2 -2
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.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 +7 -7
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.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/shared/translation/i18n.d.js +5 -0
- package/dist/commonjs/shared/translation/i18n.d.js.map +1 -0
- package/dist/commonjs/shared/translation/i18n.js +26 -0
- package/dist/commonjs/shared/translation/i18n.js.map +1 -0
- package/dist/commonjs/shared/translation/react-i18next.d.js +5 -0
- package/dist/commonjs/shared/translation/react-i18next.d.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 +1 -1
- package/dist/module/features/chatbot/helpers.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js +1 -1
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +1 -1
- 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/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/VoiceRecordButton.js +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.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 +1 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.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/shared/translation/i18n.d.js +5 -0
- package/dist/module/shared/translation/i18n.d.js.map +1 -0
- package/dist/module/shared/translation/{hooks.js → i18n.js} +10 -3
- package/dist/module/shared/translation/i18n.js.map +1 -0
- package/dist/module/shared/translation/react-i18next.d.js +5 -0
- package/dist/module/shared/translation/react-i18next.d.js.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.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/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/shared/translation/i18n.d.ts +7 -0
- package/dist/typescript/commonjs/shared/translation/i18n.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.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/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/shared/translation/i18n.d.ts +7 -0
- package/dist/typescript/module/shared/translation/i18n.d.ts.map +1 -0
- package/package.json +16 -16
- 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 +1 -1
- package/src/features/chatbot/model/ChatBoxTextManager.ts +3 -3
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +1 -1
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +1 -1
- 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/playing/components/VoiceTranscriptionsDropdown.tsx +1 -1
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +1 -1
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +1 -1
- 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 +1 -1
- package/src/lib/helpers/helpers.ts +1 -1
- package/src/shared/translation/i18n.d.ts +21 -0
- package/src/shared/translation/i18n.ts +17 -0
- package/src/shared/translation/react-i18next.d.ts +21 -0
- package/dist/commonjs/locales/schema.json +0 -1
- package/dist/commonjs/shared/translation/constants.js +0 -8
- package/dist/commonjs/shared/translation/constants.js.map +0 -1
- package/dist/commonjs/shared/translation/helpers.js +0 -17
- package/dist/commonjs/shared/translation/helpers.js.map +0 -1
- package/dist/commonjs/shared/translation/hooks.js +0 -17
- package/dist/commonjs/shared/translation/hooks.js.map +0 -1
- package/dist/commonjs/shared/translation/index.js +0 -20
- package/dist/commonjs/shared/translation/index.js.map +0 -1
- package/dist/commonjs/shared/translation/types.js +0 -2
- package/dist/commonjs/shared/translation/types.js.map +0 -1
- package/dist/module/locales/schema.json +0 -1
- package/dist/module/shared/translation/constants.js +0 -4
- package/dist/module/shared/translation/constants.js.map +0 -1
- package/dist/module/shared/translation/helpers.js +0 -11
- package/dist/module/shared/translation/helpers.js.map +0 -1
- package/dist/module/shared/translation/hooks.js.map +0 -1
- package/dist/module/shared/translation/index.js +0 -5
- package/dist/module/shared/translation/index.js.map +0 -1
- package/dist/module/shared/translation/types.js +0 -2
- package/dist/module/shared/translation/types.js.map +0 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -2
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts +0 -3
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts +0 -3
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/index.d.ts +0 -4
- package/dist/typescript/commonjs/shared/translation/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +0 -3
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -2
- package/dist/typescript/module/shared/translation/constants.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts +0 -3
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/hooks.d.ts +0 -3
- package/dist/typescript/module/shared/translation/hooks.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/index.d.ts +0 -4
- package/dist/typescript/module/shared/translation/index.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/types.d.ts +0 -3
- package/dist/typescript/module/shared/translation/types.d.ts.map +0 -1
- package/src/locales/schema.json +0 -1
- package/src/shared/translation/constants.ts +0 -1
- package/src/shared/translation/helpers.ts +0 -7
- package/src/shared/translation/hooks.ts +0 -9
- package/src/shared/translation/index.ts +0 -3
- package/src/shared/translation/types.ts +0 -2
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useCallback } from 'react'
|
|
2
|
-
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import { NAMESPACE } from './constants'
|
|
4
|
-
import { GetText } from './types'
|
|
5
|
-
|
|
6
|
-
export const useText = (): GetText => {
|
|
7
|
-
const { t } = useTranslation(NAMESPACE)
|
|
8
|
-
return useCallback<GetText>((key, args = null) => t(key, args ?? undefined), [t])
|
|
9
|
-
}
|