@magmamath/students-features 1.3.14 → 1.3.16-rc.22
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 +3 -4
- 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 +3 -4
- 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/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/gifCelebrations/helpers.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/pmProgress/components/chart/components/SlicesPaths.js +1 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/NextUp.js +7 -11
- package/dist/commonjs/features/pmProgress/components/header/NextUp.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +2 -2
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js +2 -2
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +1 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +2 -2
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js +2 -2
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +2 -2
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +2 -2
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +1 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +2 -2
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +2 -2
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +8 -3
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -1
- package/dist/commonjs/features/pmProgress/hooks/useNextUpDomain.js +42 -0
- package/dist/commonjs/features/pmProgress/hooks/useNextUpDomain.js.map +1 -0
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +18 -16
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +1 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +1 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +11 -7
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.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/i18n/i18n.js +19 -0
- package/dist/commonjs/i18n/i18n.js.map +1 -0
- package/dist/commonjs/i18n/i18next.d.js +5 -0
- package/dist/commonjs/i18n/i18next.d.js.map +1 -0
- package/dist/commonjs/index.js +26 -41
- 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/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 +2 -3
- 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/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/gifCelebrations/helpers.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/pmProgress/components/chart/components/SlicesPaths.js +1 -1
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/NextUp.js +7 -11
- package/dist/module/features/pmProgress/components/header/NextUp.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +2 -2
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +1 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js +1 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -1
- package/dist/module/features/pmProgress/components/insights/PmInsights.js +1 -1
- package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +1 -1
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +2 -3
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/Fluency.js +1 -1
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/ListCard.js +2 -2
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/ListItem.js +2 -2
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +1 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +1 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -1
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +1 -1
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +1 -1
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +2 -2
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
- package/dist/module/features/pmProgress/components/standard/StandardTag.js +8 -3
- package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -1
- package/dist/module/features/pmProgress/hooks/useNextUpDomain.js +37 -0
- package/dist/module/features/pmProgress/hooks/useNextUpDomain.js.map +1 -0
- package/dist/module/features/pmProgress/model/PmTreeModel.js +20 -18
- package/dist/module/features/pmProgress/model/PmTreeModel.js.map +1 -1
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js +1 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +3 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.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/i18n/i18n.js +12 -0
- package/dist/module/i18n/i18n.js.map +1 -0
- package/dist/module/i18n/i18next.d.js +5 -0
- package/dist/module/i18n/i18next.d.js.map +1 -0
- package/dist/module/index.js +0 -1
- 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/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +2 -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/gifCelebrations/helpers.d.ts +2 -2
- package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/NextUp.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/hooks/useNextUpDomain.d.ts +5 -0
- package/dist/typescript/commonjs/features/pmProgress/hooks/useNextUpDomain.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +3 -3
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +1 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +5 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +2 -2
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/commonjs/i18n/i18n.d.ts +8 -0
- package/dist/typescript/commonjs/i18n/i18n.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +2 -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/gifCelebrations/helpers.d.ts +2 -2
- package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/header/NextUp.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/hooks/useNextUpDomain.d.ts +5 -0
- package/dist/typescript/module/features/pmProgress/hooks/useNextUpDomain.d.ts.map +1 -0
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +3 -3
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +1 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +5 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +2 -2
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
- package/dist/typescript/module/i18n/i18n.d.ts +8 -0
- package/dist/typescript/module/i18n/i18n.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +11 -6
- 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 +4 -8
- 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/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 +2 -2
- package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -1
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +1 -1
- package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +1 -1
- package/src/features/pmProgress/components/header/NextUp.tsx +7 -14
- package/src/features/pmProgress/components/header/PmProgressHeader.tsx +2 -2
- package/src/features/pmProgress/components/header/StartButton.tsx +1 -1
- package/src/features/pmProgress/components/insights/PmInsights.tsx +1 -1
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +2 -2
- package/src/features/pmProgress/components/list/Fluency.tsx +1 -1
- package/src/features/pmProgress/components/list/ListCard.tsx +3 -2
- package/src/features/pmProgress/components/list/ListItem.tsx +2 -2
- package/src/features/pmProgress/components/list/PmDomainList.tsx +1 -1
- package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +4 -12
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +2 -2
- package/src/features/pmProgress/components/standard/StandardTag.tsx +4 -3
- package/src/features/pmProgress/hooks/useNextUpDomain.ts +31 -0
- package/src/features/pmProgress/model/PmTreeModel.ts +26 -17
- package/src/features/pmProgress/shared/pmProgress.constants.ts +1 -1
- package/src/features/pmProgress/shared/pmProgress.helpers.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/VoiceRecordButton.tsx +1 -1
- package/src/features/voice/recording/modal/ModalFooterButtons.tsx +2 -3
- 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/{dist/commonjs/shared/translation/localization/en.json → src/i18n/.generated/schema.json} +67 -62
- package/src/i18n/i18n.ts +13 -0
- package/src/i18n/i18next.d.ts +20 -0
- package/src/index.ts +0 -1
- package/src/lib/helpers/helpers.ts +1 -1
- package/dist/commonjs/lib/types/keys.js +0 -2
- package/dist/commonjs/lib/types/keys.js.map +0 -1
- package/dist/commonjs/shared/translation/constants.js +0 -23
- package/dist/commonjs/shared/translation/constants.js.map +0 -1
- package/dist/commonjs/shared/translation/helpers.js +0 -47
- package/dist/commonjs/shared/translation/helpers.js.map +0 -1
- package/dist/commonjs/shared/translation/hooks.js +0 -25
- package/dist/commonjs/shared/translation/hooks.js.map +0 -1
- package/dist/commonjs/shared/translation/index.js +0 -45
- package/dist/commonjs/shared/translation/index.js.map +0 -1
- package/dist/commonjs/shared/translation/localization/ca.json +0 -85
- package/dist/commonjs/shared/translation/localization/de.json +0 -85
- package/dist/commonjs/shared/translation/localization/gb.json +0 -85
- package/dist/commonjs/shared/translation/localization/sct.json +0 -85
- package/dist/commonjs/shared/translation/localization/sw.json +0 -85
- package/dist/commonjs/shared/translation/model.js +0 -15
- package/dist/commonjs/shared/translation/model.js.map +0 -1
- package/dist/commonjs/shared/translation/types.js +0 -6
- package/dist/commonjs/shared/translation/types.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/lib/types/keys.js +0 -2
- package/dist/module/lib/types/keys.js.map +0 -1
- package/dist/module/shared/translation/constants.js +0 -18
- package/dist/module/shared/translation/constants.js.map +0 -1
- package/dist/module/shared/translation/helpers.js +0 -38
- package/dist/module/shared/translation/helpers.js.map +0 -1
- package/dist/module/shared/translation/hooks.js +0 -19
- package/dist/module/shared/translation/hooks.js.map +0 -1
- package/dist/module/shared/translation/index.js +0 -6
- package/dist/module/shared/translation/index.js.map +0 -1
- package/dist/module/shared/translation/localization/ca.json +0 -85
- package/dist/module/shared/translation/localization/de.json +0 -85
- package/dist/module/shared/translation/localization/en.json +0 -85
- package/dist/module/shared/translation/localization/gb.json +0 -85
- package/dist/module/shared/translation/localization/sct.json +0 -85
- package/dist/module/shared/translation/localization/sw.json +0 -85
- package/dist/module/shared/translation/model.js +0 -11
- package/dist/module/shared/translation/model.js.map +0 -1
- package/dist/module/shared/translation/types.js +0 -4
- package/dist/module/shared/translation/types.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/lib/types/keys.d.ts +0 -8
- package/dist/typescript/commonjs/lib/types/keys.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -513
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts +0 -7
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts +0 -5
- 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/model.d.ts +0 -173
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +0 -6
- package/dist/typescript/commonjs/shared/translation/types.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/lib/types/keys.d.ts +0 -8
- package/dist/typescript/module/lib/types/keys.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -513
- package/dist/typescript/module/shared/translation/constants.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts +0 -7
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/hooks.d.ts +0 -5
- 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/model.d.ts +0 -173
- package/dist/typescript/module/shared/translation/model.d.ts.map +0 -1
- package/dist/typescript/module/shared/translation/types.d.ts +0 -6
- package/dist/typescript/module/shared/translation/types.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/lib/types/keys.ts +0 -18
- package/src/shared/translation/constants.ts +0 -16
- package/src/shared/translation/helpers.ts +0 -47
- package/src/shared/translation/hooks.ts +0 -25
- package/src/shared/translation/index.ts +0 -3
- package/src/shared/translation/localization/ca.json +0 -85
- package/src/shared/translation/localization/de.json +0 -85
- package/src/shared/translation/localization/en.json +0 -85
- package/src/shared/translation/localization/gb.json +0 -85
- package/src/shared/translation/localization/sct.json +0 -85
- package/src/shared/translation/localization/sw.json +0 -85
- package/src/shared/translation/model.ts +0 -16
- package/src/shared/translation/types.ts +0 -21
- package/src/shared/translation/validation.types.ts +0 -34
|
@@ -9,7 +9,7 @@ var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _effectorReact = require("effector-react");
|
|
11
11
|
var _constants = require("../../constants.js");
|
|
12
|
-
var
|
|
12
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
13
13
|
var _ModalFooterButtons = require("./ModalFooterButtons.js");
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
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); }
|
|
@@ -20,7 +20,7 @@ const VoiceRecordDeleteModal = ({
|
|
|
20
20
|
params
|
|
21
21
|
}
|
|
22
22
|
}) => {
|
|
23
|
-
const t = (0,
|
|
23
|
+
const t = (0, _i18n.useText)();
|
|
24
24
|
const {
|
|
25
25
|
model
|
|
26
26
|
} = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeUi","_reactNative","_effectorReact","_constants","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeUi","_reactNative","_effectorReact","_constants","_i18n","_ModalFooterButtons","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VoiceRecordDeleteModal","modal","closeModal","params","useText","model","recorderState","useUnit","recorderModel","$voiceRecordState","handleDelete","VoiceRecorderState","PAUSED","recorder","record","setTimeout","stop","deleteCurrentRecording","useEffect","RECORDING","pause","getState","error","console","jsx","BaseModal","style","container","styles","modalContainer","header","content","footer","ModalFooterButtons","onCancel","onConfirm","confirmLabel","confirmColor","ButtonColor","RED","exports","StyleSheet","create","width","height"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/modal/VoiceRecordDeleteModal.tsx"],"mappings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C,+BAA+BA,KAAK,EAAE,CAAC;QACvD;MACF;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,oBACE,IAAA3C,WAAA,CAAA6C,GAAA,EAACnD,cAAA,CAAAoD,SAAS;IACRC,KAAK,EAAE;MACLC,SAAS,EAAEC,MAAM,CAACC;IACpB,CAAE;IACFC,MAAM,EAAE9C,CAAC,CAAC,uBAAuB,CAAE;IACnC+C,OAAO,EAAE/C,CAAC,CAAC,8BAA8B,CAAE;IAC3CgD,MAAM,eACJ,IAAArD,WAAA,CAAA6C,GAAA,EAAC9C,mBAAA,CAAAuD,kBAAkB;MACjBC,QAAQ,EAAEhC,UAAW;MACrBiC,SAAS,EAAEzB,YAAa;MACxB0B,YAAY,EAAC,cAAc;MAC3BC,YAAY,EAAEC,0BAAW,CAACC;IAAI,CAC/B;EACF,CACF,CAAC;AAEN,CAAC;AAAAC,OAAA,CAAAxC,sBAAA,GAAAA,sBAAA;AAED,MAAM4B,MAAM,GAAGa,uBAAU,CAACC,MAAM,CAAC;EAC/Bb,cAAc,EAAE;IACdc,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.VoiceRecordUndoModal = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
|
-
var
|
|
10
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
11
11
|
var _ModalFooterButtons = require("./ModalFooterButtons.js");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -17,7 +17,7 @@ const VoiceRecordUndoModal = ({
|
|
|
17
17
|
params
|
|
18
18
|
}
|
|
19
19
|
}) => {
|
|
20
|
-
const t = (0,
|
|
20
|
+
const t = (0, _i18n.useText)();
|
|
21
21
|
const {
|
|
22
22
|
model
|
|
23
23
|
} = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_reactNative","_i18n","_ModalFooterButtons","_jsxRuntime","e","__esModule","default","VoiceRecordUndoModal","modal","closeModal","params","t","useText","model","redoRecording","deleteCurrentRecording","notification","initializeRecording","jsx","BaseModal","style","container","styles","modalStyle","header","content","footer","ModalFooterButtons","onCancel","onConfirm","confirmLabel","exports","StyleSheet","create","width","height"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/modal/VoiceRecordUndoModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAAyD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUlD,MAAMG,oBAAoB,GAAGA,CAAC;EACnCC,KAAK,EAAE;IAAEC,UAAU;IAAEC;EAAO;AACH,CAAC,KAAK;EAC/B,MAAMC,CAAC,GAAG,IAAAC,aAAO,EAAC,CAAC;EACnB,MAAM;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAExB,MAAMI,aAAa,GAAGA,CAAA,KAAM;IAC1BD,KAAK,CAACE,sBAAsB,CAAC;MAAEC,YAAY,EAAE;IAAM,CAAC,CAAC;IACrDP,UAAU,CAAC,CAAC;IACZI,KAAK,CAACI,mBAAmB,CAAC,CAAC;EAC7B,CAAC;EAED,oBACE,IAAAd,WAAA,CAAAe,GAAA,EAACnB,cAAA,CAAAoB,SAAS;IACRC,KAAK,EAAE;MACLC,SAAS,EAAEC,MAAM,CAACC;IACpB,CAAE;IACFC,MAAM,EAAEb,CAAC,CAAC,qBAAqB,CAAE;IACjCc,OAAO,EAAEd,CAAC,CAAC,+BAA+B,CAAE;IAC5Ce,MAAM,eACJ,IAAAvB,WAAA,CAAAe,GAAA,EAAChB,mBAAA,CAAAyB,kBAAkB;MACjBC,QAAQ,EAAEnB,UAAW;MACrBoB,SAAS,EAAEf,aAAc;MACzBgB,YAAY,EAAC;IAAY,CAC1B;EACF,CACF,CAAC;AAEN,CAAC;AAAAC,OAAA,CAAAxB,oBAAA,GAAAA,oBAAA;AAED,MAAMe,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,UAAU,EAAE;IACVW,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@ var _VoiceRecordCollection = require("./VoiceRecordCollection.js");
|
|
|
10
10
|
var _UploaderModel = require("./Uploader.model.js");
|
|
11
11
|
var _constants = require("../../constants.js");
|
|
12
12
|
var _helpers = require("../../helpers.js");
|
|
13
|
-
var
|
|
13
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
14
14
|
class VoiceRecordModel {
|
|
15
15
|
recorderModel = new _RecorderModel.RecorderModel();
|
|
16
16
|
collection = new _VoiceRecordCollection.VoiceRecordsCollection();
|
|
@@ -49,7 +49,7 @@ class VoiceRecordModel {
|
|
|
49
49
|
this.abortUploadIfInProgress(recordingItem);
|
|
50
50
|
this.resetRecordingState(currentKey);
|
|
51
51
|
if (notification) {
|
|
52
|
-
this.notification.success((0,
|
|
52
|
+
this.notification.success((0, _i18n.getText)('voice.recordingDeleted'));
|
|
53
53
|
}
|
|
54
54
|
})
|
|
55
55
|
});
|
|
@@ -63,18 +63,18 @@ class VoiceRecordModel {
|
|
|
63
63
|
}
|
|
64
64
|
const hasPermissions = await (0, _helpers.ensureRecordingPermissions)();
|
|
65
65
|
if (!hasPermissions) {
|
|
66
|
-
this.notification.error((0,
|
|
66
|
+
this.notification.error((0, _i18n.getText)('voice.noMicrophoneAccess'));
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
const inputs = await (0, _helpers.getAvailableInputs)(this.recorderModel.recorder);
|
|
70
70
|
this.recorderModel.setAvailableInputs(inputs);
|
|
71
71
|
if (inputs.length === 0) {
|
|
72
|
-
this.notification.error((0,
|
|
72
|
+
this.notification.error((0, _i18n.getText)('voice.noMicrophoneFound'));
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
return this.recorderModel.start().catch(error => {
|
|
76
76
|
if (error.name === 'NotAllowedError') {
|
|
77
|
-
this.notification.error((0,
|
|
77
|
+
this.notification.error((0, _i18n.getText)('voice.noMicrophoneAccessBySystem'));
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
})
|
|
@@ -123,7 +123,7 @@ class VoiceRecordModel {
|
|
|
123
123
|
return this.collection.get(key);
|
|
124
124
|
} catch (error) {
|
|
125
125
|
console.error(`Failed to get recording item: ${error}`);
|
|
126
|
-
this.notification.error((0,
|
|
126
|
+
this.notification.error((0, _i18n.getText)('voice.uploadFailed'));
|
|
127
127
|
return undefined;
|
|
128
128
|
}
|
|
129
129
|
})
|
|
@@ -164,7 +164,7 @@ class VoiceRecordModel {
|
|
|
164
164
|
if (error.name === 'CanceledError') return;
|
|
165
165
|
this.collection.delete(currentKey);
|
|
166
166
|
this.reset();
|
|
167
|
-
this.notification.error((0,
|
|
167
|
+
this.notification.error((0, _i18n.getText)('voice.uploadFailed'));
|
|
168
168
|
});
|
|
169
169
|
return uploadPromise;
|
|
170
170
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effector","require","_RecorderModel","_VoiceRecordCollection","_UploaderModel","_constants","_helpers","
|
|
1
|
+
{"version":3,"names":["_effector","require","_RecorderModel","_VoiceRecordCollection","_UploaderModel","_constants","_helpers","_i18n","VoiceRecordModel","recorderModel","RecorderModel","collection","VoiceRecordsCollection","uploader","UploaderModel","shouldDiscardRecording","setCurrentKey","createEvent","setCurrentRecord","reset","setIsButtonDisabled","startAudioUpload","$currentKey","restore","$currentRecord","$isButtonDisabled","$isExpanded","combine","$voiceRecordState","recorderState","currentRecord","VoiceRecorderState","IDLE","deleteAudioRecord","createEffect","audioFileId","api","deleteAudioFile","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":"../../../../../../src","sources":["features/voice/recording/model/VoiceRecord.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAMA,IAAAK,QAAA,GAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAN,OAAA;AAuCO,MAAMO,gBAAgB,CAAC;EACZC,aAAa,GAAG,IAAIC,4BAAa,CAA4B,CAAC;EAC9DC,UAAU,GAAG,IAAIC,6CAAsB,CAAC,CAAC;EACzCC,QAAQ,GAAG,IAAIC,4BAAa,CAAC,CAAC;EAItCC,sBAAsB,GAAG,KAAK;EAEtBC,aAAa,GAAG,IAAA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D,UAAU,CAACoC,GAAG,CAACJ,UAAU,CAAC,EAAE;QACnC,IAAI,CAACkE,MAAM,CAACC,UAAU,CAAC,CAAC;QACxB;MACF;MAEA,IAAI,CAACzD,mBAAmB,CAAC,CAAC;IAC5B,CACF;EACF,CAAC,CAAC;EAEF0D,WAAWA,CAAC;IAAE3E,GAAG;IAAEQ,YAAY;IAAEiE;EAA+B,CAAC,EAAE;IACjE,IAAI,CAACzE,GAAG,GAAGA,GAAG;IACd,IAAI,CAACQ,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACiE,MAAM,GAAGA,MAAM;IACpB,IAAI,CAAChG,QAAQ,CAACmG,MAAM,CAAC5E,GAAG,CAAC;IAEzB,IAAI,CAAC2D,kBAAkB,CAAC,CAAC;IACzB,IAAI,CAACO,sBAAsB,CAAC,CAAC;EAC/B;AACF;AAACW,OAAA,CAAAzG,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useText = exports.getText = exports.NAMESPACE = void 0;
|
|
7
|
+
var _i18next = _interopRequireDefault(require("i18next"));
|
|
8
|
+
var _reactI18next = require("react-i18next");
|
|
9
|
+
var _constants = require("@magmamath/frontend-config/translation/constants");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const NAMESPACE = exports.NAMESPACE = _constants.TranslationNamespace.STUDENTS_FEATURES;
|
|
12
|
+
const getText = (key, options) => _i18next.default.t(key, {
|
|
13
|
+
ns: NAMESPACE,
|
|
14
|
+
...options
|
|
15
|
+
});
|
|
16
|
+
exports.getText = getText;
|
|
17
|
+
const useText = () => (0, _reactI18next.useTranslation)(NAMESPACE).t;
|
|
18
|
+
exports.useText = useText;
|
|
19
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_i18next","_interopRequireDefault","require","_reactI18next","_constants","e","__esModule","default","NAMESPACE","exports","TranslationNamespace","STUDENTS_FEATURES","getText","key","options","i18next","t","ns","useText","useTranslation"],"sourceRoot":"../../../src","sources":["i18n/i18n.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAuF,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhF,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,+BAAoB,CAACC,iBAAiB;AAKxD,MAAMC,OAAgB,GAAIA,CAACC,GAAmB,EAAEC,OAAgB,KACrEC,gBAAO,CAACC,CAAC,CAACH,GAAG,EAAE;EAAEI,EAAE,EAAET,SAAS;EAAE,GAAGM;AAAQ,CAAC,CAAa;AAAAL,OAAA,CAAAG,OAAA,GAAAA,OAAA;AAEpD,MAAMM,OAAO,GAAGA,CAAA,KAAe,IAAAC,4BAAc,EAACX,SAAS,CAAC,CAACQ,CAAC;AAAAP,OAAA,CAAAS,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["require"],"sourceRoot":"../../../src","sources":["i18n/i18next.d.ts"],"mappings":";;AAAAA,OAAA;AACAA,OAAA","ignoreList":[]}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
useFeaturesLocalization: true,
|
|
8
|
-
setFeaturesLocalization: true,
|
|
9
7
|
generateRandomId: true
|
|
10
8
|
};
|
|
11
9
|
Object.defineProperty(exports, "generateRandomId", {
|
|
@@ -14,21 +12,20 @@ Object.defineProperty(exports, "generateRandomId", {
|
|
|
14
12
|
return _helpers.generateRandomId;
|
|
15
13
|
}
|
|
16
14
|
});
|
|
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
|
-
}
|
|
28
|
-
});
|
|
29
|
-
var _index = require("./shared/translation/index.js");
|
|
30
15
|
var _helpers = require("./lib/helpers/helpers.js");
|
|
31
|
-
var
|
|
16
|
+
var _index = require("./features/chatbot/index.js");
|
|
17
|
+
Object.keys(_index).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
20
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _index[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _index2 = require("./features/feedback/index.js");
|
|
32
29
|
Object.keys(_index2).forEach(function (key) {
|
|
33
30
|
if (key === "default" || key === "__esModule") return;
|
|
34
31
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -40,7 +37,7 @@ Object.keys(_index2).forEach(function (key) {
|
|
|
40
37
|
}
|
|
41
38
|
});
|
|
42
39
|
});
|
|
43
|
-
var _index3 = require("./features/
|
|
40
|
+
var _index3 = require("./features/celebrations/index.js");
|
|
44
41
|
Object.keys(_index3).forEach(function (key) {
|
|
45
42
|
if (key === "default" || key === "__esModule") return;
|
|
46
43
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -52,7 +49,7 @@ Object.keys(_index3).forEach(function (key) {
|
|
|
52
49
|
}
|
|
53
50
|
});
|
|
54
51
|
});
|
|
55
|
-
var _index4 = require("./features/
|
|
52
|
+
var _index4 = require("./features/endOfAssignment/index.js");
|
|
56
53
|
Object.keys(_index4).forEach(function (key) {
|
|
57
54
|
if (key === "default" || key === "__esModule") return;
|
|
58
55
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -64,7 +61,7 @@ Object.keys(_index4).forEach(function (key) {
|
|
|
64
61
|
}
|
|
65
62
|
});
|
|
66
63
|
});
|
|
67
|
-
var _index5 = require("./features/
|
|
64
|
+
var _index5 = require("./features/formulaSheet/index.js");
|
|
68
65
|
Object.keys(_index5).forEach(function (key) {
|
|
69
66
|
if (key === "default" || key === "__esModule") return;
|
|
70
67
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -76,7 +73,7 @@ Object.keys(_index5).forEach(function (key) {
|
|
|
76
73
|
}
|
|
77
74
|
});
|
|
78
75
|
});
|
|
79
|
-
var _index6 = require("./features/
|
|
76
|
+
var _index6 = require("./features/problemSelector/index.js");
|
|
80
77
|
Object.keys(_index6).forEach(function (key) {
|
|
81
78
|
if (key === "default" || key === "__esModule") return;
|
|
82
79
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -88,7 +85,7 @@ Object.keys(_index6).forEach(function (key) {
|
|
|
88
85
|
}
|
|
89
86
|
});
|
|
90
87
|
});
|
|
91
|
-
var _index7 = require("./features/
|
|
88
|
+
var _index7 = require("./features/gifCelebrations/index.js");
|
|
92
89
|
Object.keys(_index7).forEach(function (key) {
|
|
93
90
|
if (key === "default" || key === "__esModule") return;
|
|
94
91
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -100,7 +97,7 @@ Object.keys(_index7).forEach(function (key) {
|
|
|
100
97
|
}
|
|
101
98
|
});
|
|
102
99
|
});
|
|
103
|
-
var _index8 = require("./features/
|
|
100
|
+
var _index8 = require("./features/exampleSolution/index.js");
|
|
104
101
|
Object.keys(_index8).forEach(function (key) {
|
|
105
102
|
if (key === "default" || key === "__esModule") return;
|
|
106
103
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -112,7 +109,7 @@ Object.keys(_index8).forEach(function (key) {
|
|
|
112
109
|
}
|
|
113
110
|
});
|
|
114
111
|
});
|
|
115
|
-
var _index9 = require("./features/
|
|
112
|
+
var _index9 = require("./features/keyboard/index.js");
|
|
116
113
|
Object.keys(_index9).forEach(function (key) {
|
|
117
114
|
if (key === "default" || key === "__esModule") return;
|
|
118
115
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -124,7 +121,7 @@ Object.keys(_index9).forEach(function (key) {
|
|
|
124
121
|
}
|
|
125
122
|
});
|
|
126
123
|
});
|
|
127
|
-
var _index10 = require("./features/
|
|
124
|
+
var _index10 = require("./features/pmProgress/index.js");
|
|
128
125
|
Object.keys(_index10).forEach(function (key) {
|
|
129
126
|
if (key === "default" || key === "__esModule") return;
|
|
130
127
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -136,7 +133,7 @@ Object.keys(_index10).forEach(function (key) {
|
|
|
136
133
|
}
|
|
137
134
|
});
|
|
138
135
|
});
|
|
139
|
-
var _index11 = require("./features/
|
|
136
|
+
var _index11 = require("./features/openEnded/index.js");
|
|
140
137
|
Object.keys(_index11).forEach(function (key) {
|
|
141
138
|
if (key === "default" || key === "__esModule") return;
|
|
142
139
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -148,7 +145,7 @@ Object.keys(_index11).forEach(function (key) {
|
|
|
148
145
|
}
|
|
149
146
|
});
|
|
150
147
|
});
|
|
151
|
-
var _index12 = require("./
|
|
148
|
+
var _index12 = require("./shared/icons/index.js");
|
|
152
149
|
Object.keys(_index12).forEach(function (key) {
|
|
153
150
|
if (key === "default" || key === "__esModule") return;
|
|
154
151
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -160,7 +157,7 @@ Object.keys(_index12).forEach(function (key) {
|
|
|
160
157
|
}
|
|
161
158
|
});
|
|
162
159
|
});
|
|
163
|
-
var _index13 = require("./
|
|
160
|
+
var _index13 = require("./features/voice/index.js");
|
|
164
161
|
Object.keys(_index13).forEach(function (key) {
|
|
165
162
|
if (key === "default" || key === "__esModule") return;
|
|
166
163
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -172,7 +169,7 @@ Object.keys(_index13).forEach(function (key) {
|
|
|
172
169
|
}
|
|
173
170
|
});
|
|
174
171
|
});
|
|
175
|
-
var _index14 = require("./features/
|
|
172
|
+
var _index14 = require("./features/featureUsage/index.js");
|
|
176
173
|
Object.keys(_index14).forEach(function (key) {
|
|
177
174
|
if (key === "default" || key === "__esModule") return;
|
|
178
175
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -184,7 +181,7 @@ Object.keys(_index14).forEach(function (key) {
|
|
|
184
181
|
}
|
|
185
182
|
});
|
|
186
183
|
});
|
|
187
|
-
var _index15 = require("./features/
|
|
184
|
+
var _index15 = require("./features/uiMode/index.js");
|
|
188
185
|
Object.keys(_index15).forEach(function (key) {
|
|
189
186
|
if (key === "default" || key === "__esModule") return;
|
|
190
187
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -196,16 +193,4 @@ Object.keys(_index15).forEach(function (key) {
|
|
|
196
193
|
}
|
|
197
194
|
});
|
|
198
195
|
});
|
|
199
|
-
var _index16 = require("./features/uiMode/index.js");
|
|
200
|
-
Object.keys(_index16).forEach(function (key) {
|
|
201
|
-
if (key === "default" || key === "__esModule") return;
|
|
202
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
203
|
-
if (key in exports && exports[key] === _index16[key]) return;
|
|
204
|
-
Object.defineProperty(exports, key, {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function () {
|
|
207
|
-
return _index16[key];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
196
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_helpers","require","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6","_index7","_index8","_index9","_index10","_index11","_index12","_index13","_index14","_index15"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,MAAA,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,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAd,OAAA;AAAAE,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,OAAA,EAAAL,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AAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAY,QAAA,CAAApB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAqB,QAAA,GAAA1B,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAuB,QAAA,EAAAtB,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,MAAAqB,QAAA,CAAArB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAa,QAAA,CAAArB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAsB,QAAA,GAAA3B,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAwB,QAAA,EAAAvB,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,MAAAsB,QAAA,CAAAtB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAc,QAAA,CAAAtB,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 _i18n = require("../../i18n/i18n.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, _i18n.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, _i18n.getText)('time.minuteAgo')}`;
|
|
33
|
+
return (0, _i18n.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, _i18n.getText)('time.hourAgo')}`;
|
|
39
|
+
return (0, _i18n.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, _i18n.getText)('time.dayAgo')}`;
|
|
45
|
+
return (0, _i18n.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, _i18n.getText)('time.monthAgo')}`;
|
|
51
|
+
return (0, _i18n.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, _i18n.getText)('time.yearAgo')}`;
|
|
56
|
+
return (0, _i18n.getText)('time.yearsAgo', {
|
|
57
57
|
count: years.toString()
|
|
58
58
|
});
|
|
59
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_i18n","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,KAAA,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,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AAK,EAAEhB,KAAK,CAACT,QAAQ,CAAC;IAAE,CAAC,CAAC;EAC9D;EAEA,IAAIK,IAAI,GAAG,EAAE,EAAE;IACb,IAAIA,IAAI,KAAK,CAAC,EAAE,OAAO,KAAK,IAAAmB,aAAO,EAAC,aAAa,CAAC,EAAE;IACpD,OAAO,IAAAA,aAAO,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,aAAO,EAAC,eAAe,CAAC,EAAE;IACxD,OAAO,IAAAA,aAAO,EAAC,gBAAgB,EAAE;MAAEC,KAAK,EAAEH,MAAM,CAACtB,QAAQ,CAAC;IAAE,CAAC,CAAC;EAChE;EAEA,IAAIuB,KAAK,KAAK,CAAC,EAAE,OAAO,KAAK,IAAAC,aAAO,EAAC,cAAc,CAAC,EAAE;EACtD,OAAO,IAAAA,aAAO,EAAC,eAAe,EAAE;IAAEC,KAAK,EAAEF,KAAK,CAACvB,QAAQ,CAAC;EAAE,CAAC,CAAC;AAC9D,CAAC;AAAAJ,OAAA,CAAAoB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ import { useUnit } from 'effector-react';
|
|
|
5
5
|
import { StyleSheet, View } from 'react-native';
|
|
6
6
|
import { HintButtonVariant, RequestHintButton } from "../RequestHintButton.js";
|
|
7
7
|
import { useChatModel } from "../../../context/ChatBotModelContext.js";
|
|
8
|
-
import { t } from "../../../../../
|
|
8
|
+
import { getText as t } from "../../../../../i18n/i18n.js";
|
|
9
9
|
import { ChatTextInput } from "./ChatTextInput.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
export const FreeTextInputBlock = ({
|
package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useUnit","StyleSheet","View","HintButtonVariant","RequestHintButton","useChatModel","t","ChatTextInput","jsx","_jsx","jsxs","_jsxs","FreeTextInputBlock","optionLabel","onOptionPress","disabled","colorScheme","model","inputValue","textInput","$value","handleOnSubmit","translatedMessage","translation","translateSingleMessageFx","setValue","sendHelpRequestFx","message","isFreeText","handleOnBlur","setIsFocused","handleOnFocus","handleOnChangeText","text","style","styles","container","children","value","onSubmit","onChangeText","onBlur","onFocus","submitDisabled","trim","length","placeholder","onPress","label","variant","SHORT","create","position","width","alignItems","height","justifyContent"],"sourceRoot":"../../../../../../../src","sources":["features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,SAASC,iBAAiB,EAAEC,iBAAiB,QAAQ,yBAAsB;AAC3E,SAASC,YAAY,QAAQ,yCAAsC;AACnE,SAASC,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","useUnit","StyleSheet","View","HintButtonVariant","RequestHintButton","useChatModel","getText","t","ChatTextInput","jsx","_jsx","jsxs","_jsxs","FreeTextInputBlock","optionLabel","onOptionPress","disabled","colorScheme","model","inputValue","textInput","$value","handleOnSubmit","translatedMessage","translation","translateSingleMessageFx","setValue","sendHelpRequestFx","message","isFreeText","handleOnBlur","setIsFocused","handleOnFocus","handleOnChangeText","text","style","styles","container","children","value","onSubmit","onChangeText","onBlur","onFocus","submitDisabled","trim","length","placeholder","onPress","label","variant","SHORT","create","position","width","alignItems","height","justifyContent"],"sourceRoot":"../../../../../../../src","sources":["features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,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,QAAQ,EAAElB,cAAe;MACzBmB,YAAY,EAAER,kBAAmB;MACjCS,MAAM,EAAEZ,YAAa;MACrBa,OAAO,EAAEX,aAAc;MACvBY,cAAc,EAAE5B,QAAQ,IAAIG,UAAU,CAAC0B,IAAI,CAAC,CAAC,CAACC,MAAM,GAAG,CAAE;MACzD7B,WAAW,EAAEA,WAAY;MACzB8B,WAAW,EAAExC,CAAC,CAAC,uBAAuB;IAAE,CACzC,CAAC,eACFG,IAAA,CAACN,iBAAiB;MAChB4C,OAAO,EAAEjC,aAAc;MACvBkC,KAAK,EAAEnC,WAAY;MACnBE,QAAQ,EAAEA,QAAS;MACnBC,WAAW,EAAEA,WAAY;MACzBiC,OAAO,EAAE/C,iBAAiB,CAACgD;IAAM,CAClC,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAED,MAAMf,MAAM,GAAGnC,UAAU,CAACmD,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE,UAAU;IACtBC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ import { useChatModel } from "../context/ChatBotModelContext.js";
|
|
|
6
6
|
import { useStoreMap, useUnit } from 'effector-react';
|
|
7
7
|
import { StyleSheet } from 'react-native';
|
|
8
8
|
import { HighlighterIcon } from "../../../shared/icons/HighlighterIcon.js";
|
|
9
|
-
import { useText } from "../../../
|
|
9
|
+
import { useText } from "../../../i18n/i18n.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
export const ErrorSpottingButton = ({
|
|
12
12
|
contextMessage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Button","COLORS","StopIcon","useChatModel","useStoreMap","useUnit","StyleSheet","HighlighterIcon","useText","jsx","_jsx","ErrorSpottingButton","contextMessage","t","model","activeErrorSpotting","errorSpotting","$activeData","validationKey","$validationKey","currentThread","$currentChatData","chatData","threadId","errorStrokesIds","id","isActive","style","buttonStyles","disabled","strokesValidationKey","variant","colorScheme","size","onPress","errorSpottingPressed","message","icon","color","NEUTRAL_1","children","create","text","textTransform","paddingTop"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,4BAA4B;AACrE,SAASC,YAAY,QAAQ,mCAAgC;AAC7D,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AACrD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,eAAe,QAAQ,0CAAuC;AAEvE,SAASC,OAAO,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","Button","COLORS","StopIcon","useChatModel","useStoreMap","useUnit","StyleSheet","HighlighterIcon","useText","jsx","_jsx","ErrorSpottingButton","contextMessage","t","model","activeErrorSpotting","errorSpotting","$activeData","validationKey","$validationKey","currentThread","$currentChatData","chatData","threadId","errorStrokesIds","id","isActive","style","buttonStyles","disabled","strokesValidationKey","variant","colorScheme","size","onPress","errorSpottingPressed","message","icon","color","NEUTRAL_1","children","create","text","textTransform","paddingTop"],"sourceRoot":"../../../../../src","sources":["features/chatbot/errorSpotting/ErrorSpottingButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,4BAA4B;AACrE,SAASC,YAAY,QAAQ,mCAAgC;AAC7D,SAASC,WAAW,EAAEC,OAAO,QAAQ,gBAAgB;AACrD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,eAAe,QAAQ,0CAAuC;AAEvE,SAASC,OAAO,QAAQ,uBAAoB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAM5C,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC;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,EAAE;IACJC,aAAa,EAAE,WAAW;IAC1BC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { IS_WEB } from '@magmamath/react-native-ui';
|
|
4
4
|
// https://stackoverflow.com/questions/56575859/google-translate-api-does-not-return-apostrophe-as-apostrophe-in-python
|
|
5
5
|
import { KATEX_REPLACEMENTS, KATEX_REPLACEMENTS_REVERSE } from "./constants.js";
|
|
6
|
-
import { t } from "../../
|
|
6
|
+
import { getText as t } from "../../i18n/i18n.js";
|
|
7
7
|
import { ChatRequestType } from "./types/model.types.js";
|
|
8
8
|
export const decodeHTMLEntities = input => {
|
|
9
9
|
return input.replace(/'/g, "'");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IS_WEB","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","t","ChatRequestType","decodeHTMLEntities","input","replace","replaceKatexSyntax","texts","reverse","replacements","Object","entries","map","text","reduce","newText","pattern","placeholder","RegExp","transformAlternatives","payload","isOpenChatEnabled","options","default","promptKey","translatedText","hints","prepareChatRequestPayload","threadItem","conversationId","freeTextMessage","problemDescription","problemStandards","problemAnswer","language","imageCdnId","imageAltText","answerOptions","answer","chatHistory","assignmentGrade","type","FREETEXT","data","message","length","correctAnswer","altText","HINT","getNextHintProps","userAnswer","undefined"],"sourceRoot":"../../../../src","sources":["features/chatbot/helpers.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAA4B;AACnD;AACA,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,gBAAa;AAE5E,SAASC,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"names":["IS_WEB","KATEX_REPLACEMENTS","KATEX_REPLACEMENTS_REVERSE","getText","t","ChatRequestType","decodeHTMLEntities","input","replace","replaceKatexSyntax","texts","reverse","replacements","Object","entries","map","text","reduce","newText","pattern","placeholder","RegExp","transformAlternatives","payload","isOpenChatEnabled","options","default","promptKey","translatedText","hints","prepareChatRequestPayload","threadItem","conversationId","freeTextMessage","problemDescription","problemStandards","problemAnswer","language","imageCdnId","imageAltText","answerOptions","answer","chatHistory","assignmentGrade","type","FREETEXT","data","message","length","correctAnswer","altText","HINT","getNextHintProps","userAnswer","undefined"],"sourceRoot":"../../../../src","sources":["features/chatbot/helpers.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,4BAA4B;AACnD;AACA,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,gBAAa;AAE5E,SAASC,OAAO,IAAIC,CAAC,QAAQ,oBAAiB;AAE9C,SAA6BC,eAAe,QAAQ,wBAAqB;AAEzE,OAAO,MAAMC,kBAAkB,GAAIC,KAAa,IAAK;EACnD,OAAOA,KAAK,CAACC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;AACrC,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAGA,CAACC,KAAe,EAAEC,OAAO,GAAG,KAAK,KAAK;EACtE,MAAMC,YAAY,GAAGD,OAAO,GACxBE,MAAM,CAACC,OAAO,CAACZ,0BAA0B,CAAC,GAC1CW,MAAM,CAACC,OAAO,CAACb,kBAAkB,CAAC;EAEtC,OAAOS,KAAK,CAACK,GAAG,CAAEC,IAAI,IACpBJ,YAAY,CAACK,MAAM,CACjB,CAACC,OAAO,EAAE,CAACC,OAAO,EAAEC,WAAW,CAAC,KAAKF,OAAO,CAACV,OAAO,CAAC,IAAIa,MAAM,CAACF,OAAO,EAAE,GAAG,CAAC,EAAEC,WAAW,CAAC,EAC3FJ,IACF,CACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMM,qBAAqB,GAAIC,OAAuC,IAAK;EAChF,IAAI,CAACA,OAAO,EAAE,OAAOA,OAAO;EAE5B,MAAMC,iBAAiB,GAAG,CAAC,CAACD,OAAO,CAACC,iBAAiB,IAAIxB,MAAM;EAE/D,OAAO;IACL,GAAGuB,OAAO;IACVC,iBAAiB;IACjBC,OAAO,EAAE;MACPC,OAAO,EAA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C,IAAIC,YAAY,IAAI;UAAEW,OAAO,EAAEX;QAAa,CAAC,CAAC;QAC9C,IAAIG,WAAW,IAAI;UAAEA;QAAY,CAAC,CAAC;QACnC,IAAI,CAAC,CAACP,gBAAgB,EAAEa,MAAM,IAAI;UAAEb;QAAiB,CAAC,CAAC;QACvD,IAAI,CAAC,CAACK,aAAa,EAAEQ,MAAM,IAAI;UAAER;QAAc,CAAC;MAClD;IACF,CAAC;EACP;EAEA,OAAO;IACLI,IAAI,EAAEvC,eAAe,CAAC8C,IAAI;IAC1BL,IAAI,EAAE;MACJ,GAAGf,UAAU,CAACqB,gBAAgB,CAAC,CAAC;MAChCH,aAAa,EAAEb,aAAa;MAC5BF,kBAAkB;MAClBmB,UAAU,EAAEZ,MAAM;MAClBJ,QAAQ;MACR,IAAIC,UAAU,IAAI;QAAEA;MAAW,CAAC,CAAC;MACjC,IAAIC,YAAY,IAAI;QAAEW,OAAO,EAAEX;MAAa,CAAC,CAAC;MAC9C,IAAI,CAAC,CAACJ,gBAAgB,EAAEa,MAAM,IAAI;QAAEb;MAAiB,CAAC,CAAC;MACvD,IAAI,CAAC,CAACK,aAAa,EAAEQ,MAAM,IAAI;QAAER;MAAc,CAAC,CAAC;MACjD,IAAIG,eAAe,KAAKW,SAAS,IAAI;QAAEX;MAAgB,CAAC;IAC1D;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { DefaultMessagesCreator } from "./DefaultMessageCreator.js";
|
|
4
|
-
import { getText } from "../../../
|
|
5
|
-
import { $localization } from "../../../shared/translation/index.js";
|
|
4
|
+
import { getText } from "../../../i18n/i18n.js";
|
|
6
5
|
export class ChatBotTextManager {
|
|
7
6
|
messagesCreator = new DefaultMessagesCreator({
|
|
8
7
|
textGetter: getText
|
|
9
|
-
}).bindToLanguageChanged(
|
|
8
|
+
}).bindToLanguageChanged();
|
|
10
9
|
messages = {
|
|
11
10
|
error: this.messagesCreator.createMessage('chat.errorMessage', {
|
|
12
11
|
options: [this.messagesCreator.createOption('chat.needHint')]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DefaultMessagesCreator","getText","
|
|
1
|
+
{"version":3,"names":["DefaultMessagesCreator","getText","ChatBotTextManager","messagesCreator","textGetter","bindToLanguageChanged","messages","error","createMessage","options","createOption","start","endMessage","anotherHintOption","getHint","defaultMessages","update","cb","Object","assign","restore"],"sourceRoot":"../../../../../src","sources":["features/chatbot/model/ChatBoxTextManager.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,4BAAyB;AAEhE,SAASC,OAAO,QAAwB,uBAAoB;AAE5D,OAAO,MAAMC,kBAAkB,CAAC;EACbC,eAAe,GAAG,IAAIH,sBAAsB,CAAiB;IAC5EI,UAAU,EAAEH;EACd,CAAC,CAAC,CAACI,qBAAqB,CAAC,CAAC;EAEVC,QAAQ,GAAoB;IAC1CC,KAAK,EAAE,IAAI,CAACJ,eAAe,CAACK,aAAa,CAAC,mBAAmB,EAAE;MAC7DC,OAAO,EAAE,CAAC,IAAI,CAACN,eAAe,CAACO,YAAY,CAAC,eAAe,CAAC;IAC9D,CAAC,CAAC;IACFC,KAAK,EAAE,IAAI,CAACR,eAAe,CAACK,aAAa,CAAC,kBAAkB,CAAC;IAC7DI,UAAU,EAAE,IAAI,CAACT,eAAe,CAACK,aAAa,CAAC,kBAAkB,CAAC;IAClEK,iBAAiB,EAAE,IAAI,CAACV,eAAe,CAACO,YAAY,CAAC,kBAAkB,CAAC;IACxEI,OAAO,EAAE,IAAI,CAACX,eAAe,CAACO,YAAY,CAAC,cAAc;EAC3D,CAAC;EACgBK,eAAe,GAAG;IAAE,GAAG,IAAI,CAACT;EAAS,CAAC;EAEhDU,MAAMA,CAACC,EAAiF,EAAE;IAC/FC,MAAM,CAACC,MAAM,CAAC,IAAI,CAACb,QAAQ,EAAEW,EAAE,CAAC,IAAI,CAACd,eAAe,CAAC,CAAC;EACxD;EAEOiB,OAAOA,CAAA,EAAG;IACfF,MAAM,CAACC,MAAM,CAAC,IAAI,CAACb,QAAQ,EAAE,IAAI,CAACS,eAAe,CAAC;EACpD;AACF","ignoreList":[]}
|