@magmamath/students-features 0.9.113 → 0.9.114-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/RequestHintButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +8 -48
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/constants.js +4 -4
- package/dist/commonjs/features/chatbot/constants.js.map +1 -1
- package/dist/commonjs/features/gifCelebrations/helpers.js +1 -0
- package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -1
- package/dist/commonjs/features/voice/constants.js +22 -0
- package/dist/commonjs/features/voice/constants.js.map +1 -0
- package/dist/commonjs/features/voice/helpers.js +211 -0
- package/dist/commonjs/features/voice/helpers.js.map +1 -0
- package/dist/commonjs/features/voice/index.js +138 -0
- package/dist/commonjs/features/voice/index.js.map +1 -0
- package/dist/commonjs/features/voice/model/index.js +68 -0
- package/dist/commonjs/features/voice/model/index.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceIcon.js +49 -0
- package/dist/commonjs/features/voice/playing/components/VoiceIcon.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +208 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +108 -0
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js +50 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +34 -0
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/Player.model.js +87 -0
- package/dist/commonjs/features/voice/playing/model/Player.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +244 -0
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js +41 -0
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js +39 -0
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js +15 -0
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
- package/dist/commonjs/features/voice/playing/model/index.js +47 -0
- package/dist/commonjs/features/voice/playing/model/index.js.map +1 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +74 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +61 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +35 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDevider.js +27 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDevider.js.map +1 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +50 -0
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +1 -0
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorder.js +59 -0
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorder.js.map +1 -0
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +22 -0
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -0
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +53 -0
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -0
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +78 -0
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -0
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +51 -0
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -0
- package/dist/commonjs/features/voice/recording/model/Recorder.model.js +54 -0
- package/dist/commonjs/features/voice/recording/model/Recorder.model.js.map +1 -0
- package/dist/commonjs/features/voice/recording/model/Uploader.model.js +44 -0
- package/dist/commonjs/features/voice/recording/model/Uploader.model.js.map +1 -0
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +239 -0
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -0
- package/dist/commonjs/features/voice/recording/model/VoiceRecordCollection.js +30 -0
- package/dist/commonjs/features/voice/recording/model/VoiceRecordCollection.js.map +1 -0
- package/dist/commonjs/features/voice/recording/model/index.js +34 -0
- package/dist/commonjs/features/voice/recording/model/index.js.map +1 -0
- package/dist/commonjs/features/voice/types.js +6 -0
- package/dist/commonjs/features/voice/types.js.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/components/PlayButton.js +70 -0
- package/dist/commonjs/shared/components/PlayButton.js.map +1 -0
- package/dist/commonjs/shared/translation/localization/ca.json +17 -0
- package/dist/commonjs/shared/translation/localization/de.json +17 -0
- package/dist/commonjs/shared/translation/localization/en.json +17 -0
- package/dist/commonjs/shared/translation/localization/gb.json +17 -0
- package/dist/commonjs/shared/translation/localization/sct.json +17 -0
- package/dist/commonjs/shared/translation/localization/sw.json +17 -0
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +9 -49
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/constants.js +5 -5
- package/dist/module/features/chatbot/constants.js.map +1 -1
- package/dist/module/features/gifCelebrations/helpers.js +1 -0
- package/dist/module/features/gifCelebrations/helpers.js.map +1 -1
- package/dist/module/features/voice/constants.js +18 -0
- package/dist/module/features/voice/constants.js.map +1 -0
- package/dist/module/features/voice/helpers.js +194 -0
- package/dist/module/features/voice/helpers.js.map +1 -0
- package/dist/module/features/voice/index.js +20 -0
- package/dist/module/features/voice/index.js.map +1 -0
- package/dist/module/features/voice/model/index.js +15 -0
- package/dist/module/features/voice/model/index.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceIcon.js +41 -0
- package/dist/module/features/voice/playing/components/VoiceIcon.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +201 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +102 -0
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js +45 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +29 -0
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
- package/dist/module/features/voice/playing/model/Player.model.js +82 -0
- package/dist/module/features/voice/playing/model/Player.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js +234 -0
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js +36 -0
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +1 -0
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js +34 -0
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js +10 -0
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
- package/dist/module/features/voice/playing/model/index.js +8 -0
- package/dist/module/features/voice/playing/model/index.js.map +1 -0
- package/dist/module/features/voice/recording/components/VoiceRecord.js +67 -0
- package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -0
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +55 -0
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -0
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +29 -0
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -0
- package/dist/module/features/voice/recording/components/VoiceRecordDevider.js +21 -0
- package/dist/module/features/voice/recording/components/VoiceRecordDevider.js.map +1 -0
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +44 -0
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +1 -0
- package/dist/module/features/voice/recording/hooks/useVoiceRecorder.js +54 -0
- package/dist/module/features/voice/recording/hooks/useVoiceRecorder.js.map +1 -0
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +17 -0
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -0
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +47 -0
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -0
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +71 -0
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -0
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +45 -0
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -0
- package/dist/module/features/voice/recording/model/Recorder.model.js +49 -0
- package/dist/module/features/voice/recording/model/Recorder.model.js.map +1 -0
- package/dist/module/features/voice/recording/model/Uploader.model.js +39 -0
- package/dist/module/features/voice/recording/model/Uploader.model.js.map +1 -0
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js +234 -0
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -0
- package/dist/module/features/voice/recording/model/VoiceRecordCollection.js +25 -0
- package/dist/module/features/voice/recording/model/VoiceRecordCollection.js.map +1 -0
- package/dist/module/features/voice/recording/model/index.js +7 -0
- package/dist/module/features/voice/recording/model/index.js.map +1 -0
- package/dist/module/features/voice/types.js +4 -0
- package/dist/module/features/voice/types.js.map +1 -0
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/components/PlayButton.js +64 -0
- package/dist/module/shared/components/PlayButton.js.map +1 -0
- package/dist/module/shared/translation/localization/ca.json +17 -0
- package/dist/module/shared/translation/localization/de.json +17 -0
- package/dist/module/shared/translation/localization/en.json +17 -0
- package/dist/module/shared/translation/localization/gb.json +17 -0
- package/dist/module/shared/translation/localization/sct.json +17 -0
- package/dist/module/shared/translation/localization/sw.json +17 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +2 -2
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts +5 -5
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/constants.d.ts +15 -0
- package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/helpers.d.ts +46 -0
- package/dist/typescript/commonjs/features/voice/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/index.d.ts +13 -0
- package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/model/index.d.ts +11 -0
- package/dist/typescript/commonjs/features/voice/model/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceIcon.d.ts +8 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +15 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts +16 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts +21 -0
- package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +41 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts +26 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts +18 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts +7 -0
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/playing/model/index.d.ts +7 -0
- package/dist/typescript/commonjs/features/voice/playing/model/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts +10 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +10 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts +8 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDevider.d.ts +3 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDevider.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts +11 -0
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorder.d.ts +5 -0
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorder.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +6 -0
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +12 -0
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts +11 -0
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts +11 -0
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/model/Recorder.model.d.ts +19 -0
- package/dist/typescript/commonjs/features/voice/recording/model/Recorder.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/model/Uploader.model.d.ts +18 -0
- package/dist/typescript/commonjs/features/voice/recording/model/Uploader.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +50 -0
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecordCollection.d.ts +10 -0
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecordCollection.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/recording/model/index.d.ts +5 -0
- package/dist/typescript/commonjs/features/voice/recording/model/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/voice/types.d.ts +58 -0
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +18 -0
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +102 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +34 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/types/common.types.d.ts +3 -0
- package/dist/typescript/commonjs/types/common.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +2 -2
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/constants.d.ts +5 -5
- package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/constants.d.ts +15 -0
- package/dist/typescript/module/features/voice/constants.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/helpers.d.ts +46 -0
- package/dist/typescript/module/features/voice/helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/index.d.ts +13 -0
- package/dist/typescript/module/features/voice/index.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/model/index.d.ts +11 -0
- package/dist/typescript/module/features/voice/model/index.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceIcon.d.ts +8 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceIcon.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +15 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts +16 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts +21 -0
- package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +41 -0
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts +26 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts +18 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts +7 -0
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/playing/model/index.d.ts +7 -0
- package/dist/typescript/module/features/voice/playing/model/index.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts +10 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +10 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts +8 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDevider.d.ts +3 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDevider.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts +11 -0
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorder.d.ts +5 -0
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorder.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +6 -0
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +12 -0
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts +11 -0
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts +11 -0
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/model/Recorder.model.d.ts +19 -0
- package/dist/typescript/module/features/voice/recording/model/Recorder.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/model/Uploader.model.d.ts +18 -0
- package/dist/typescript/module/features/voice/recording/model/Uploader.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +50 -0
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/model/VoiceRecordCollection.d.ts +10 -0
- package/dist/typescript/module/features/voice/recording/model/VoiceRecordCollection.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/recording/model/index.d.ts +5 -0
- package/dist/typescript/module/features/voice/recording/model/index.d.ts.map +1 -0
- package/dist/typescript/module/features/voice/types.d.ts +58 -0
- package/dist/typescript/module/features/voice/types.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/components/PlayButton.d.ts +18 -0
- package/dist/typescript/module/shared/components/PlayButton.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +102 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +34 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/types/common.types.d.ts +3 -0
- package/dist/typescript/module/types/common.types.d.ts.map +1 -1
- package/package.json +11 -4
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +0 -1
- package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +1 -1
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +9 -51
- package/src/features/chatbot/constants.ts +4 -4
- package/src/features/gifCelebrations/helpers.ts +1 -0
- package/src/features/voice/constants.ts +14 -0
- package/src/features/voice/helpers.ts +254 -0
- package/src/features/voice/index.ts +17 -0
- package/src/features/voice/model/index.ts +13 -0
- package/src/features/voice/playing/components/VoiceIcon.tsx +38 -0
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +239 -0
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +127 -0
- package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.ts +54 -0
- package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +40 -0
- package/src/features/voice/playing/model/Player.model.ts +92 -0
- package/src/features/voice/playing/model/VoicePlayer.model.ts +282 -0
- package/src/features/voice/playing/model/VoiceTranscriptionsCollection.ts +53 -0
- package/src/features/voice/playing/model/VoiceTranscriptionsDownloader.model.ts +43 -0
- package/src/features/voice/playing/model/VoiceTranscriptionsDropdown.model.ts +12 -0
- package/src/features/voice/playing/model/index.ts +6 -0
- package/src/features/voice/recording/components/VoiceRecord.tsx +65 -0
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +63 -0
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +25 -0
- package/src/features/voice/recording/components/VoiceRecordDevider.tsx +17 -0
- package/src/features/voice/recording/components/VoiceRecordTimer.tsx +49 -0
- package/src/features/voice/recording/hooks/useVoiceRecorder.ts +62 -0
- package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +19 -0
- package/src/features/voice/recording/modal/ModalFooterButtons.tsx +54 -0
- package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +82 -0
- package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +50 -0
- package/src/features/voice/recording/model/Recorder.model.ts +62 -0
- package/src/features/voice/recording/model/Uploader.model.ts +48 -0
- package/src/features/voice/recording/model/VoiceRecord.model.ts +278 -0
- package/src/features/voice/recording/model/VoiceRecordCollection.ts +26 -0
- package/src/features/voice/recording/model/index.ts +4 -0
- package/src/features/voice/types.ts +69 -0
- package/src/index.ts +1 -0
- package/src/shared/components/PlayButton.tsx +84 -0
- package/src/shared/translation/localization/ca.json +17 -0
- package/src/shared/translation/localization/de.json +17 -0
- package/src/shared/translation/localization/en.json +17 -0
- package/src/shared/translation/localization/gb.json +17 -0
- package/src/shared/translation/localization/sct.json +17 -0
- package/src/shared/translation/localization/sw.json +17 -0
- package/src/types/common.types.ts +1 -0
- package/dist/commonjs/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
- package/dist/module/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
- package/src/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonColor } from '@magmamath/react-native-ui';
|
|
3
|
+
import { TranslationKeys } from '../../../../shared/translation/types';
|
|
4
|
+
type ModalFooterButtonsProps = {
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
onConfirm: () => void;
|
|
7
|
+
confirmLabel: TranslationKeys;
|
|
8
|
+
confirmColor?: ButtonColor;
|
|
9
|
+
};
|
|
10
|
+
export declare const ModalFooterButtons: ({ onCancel, onConfirm, confirmLabel, confirmColor, }: ModalFooterButtonsProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ModalFooterButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalFooterButtons.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/modal/ModalFooterButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAU,WAAW,EAAsC,MAAM,4BAA4B,CAAA;AAGpG,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAEtE,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,EAAE,eAAe,CAAA;IAC7B,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,kBAAkB,yDAK5B,uBAAuB,sBAwBzB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VoiceRecordModalParams } from '../../types';
|
|
3
|
+
type VoiceRecordDeleteModalComponentProps = {
|
|
4
|
+
modal: {
|
|
5
|
+
closeModal: () => void;
|
|
6
|
+
params: VoiceRecordModalParams;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const VoiceRecordDeleteModal: ({ modal: { closeModal, params }, }: VoiceRecordDeleteModalComponentProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=VoiceRecordDeleteModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceRecordDeleteModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAOxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,KAAK,oCAAoC,GAAG;IAC1C,KAAK,EAAE;QACL,UAAU,EAAE,MAAM,IAAI,CAAA;QACtB,MAAM,EAAE,sBAAsB,CAAA;KAC/B,CAAA;CACF,CAAA;AAED,eAAO,MAAM,sBAAsB,uCAEhC,oCAAoC,sBAwDtC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VoiceRecordModalParams } from '../../types';
|
|
3
|
+
type VoiceRecordUndoModalProps = {
|
|
4
|
+
modal: {
|
|
5
|
+
closeModal: () => void;
|
|
6
|
+
params: VoiceRecordModalParams;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const VoiceRecordUndoModal: ({ modal: { closeModal, params }, }: VoiceRecordUndoModalProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=VoiceRecordUndoModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceRecordUndoModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/modal/VoiceRecordUndoModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,KAAK,yBAAyB,GAAG;IAC/B,KAAK,EAAE;QACL,UAAU,EAAE,MAAM,IAAI,CAAA;QACtB,MAAM,EAAE,sBAAsB,CAAA;KAC/B,CAAA;CACF,CAAA;AAED,eAAO,MAAM,oBAAoB,uCAE9B,yBAAyB,sBA0B3B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AudioRecorder } from 'expo-audio';
|
|
2
|
+
import { VoiceRecorderState } from '../../constants';
|
|
3
|
+
export declare class RecorderModel<T = unknown> {
|
|
4
|
+
recorder: AudioRecorder;
|
|
5
|
+
private stopResolver;
|
|
6
|
+
readonly reset: import("effector").EventCallable<void>;
|
|
7
|
+
readonly setVoiceRecordState: import("effector").EventCallable<VoiceRecorderState>;
|
|
8
|
+
readonly setAvailableInputs: import("effector").EventCallable<MediaDeviceInfo[] | import("expo-audio").RecordingInput[]>;
|
|
9
|
+
readonly setLastKnownDurationMs: import("effector").EventCallable<number>;
|
|
10
|
+
readonly $voiceRecordState: import("effector").StoreWritable<VoiceRecorderState>;
|
|
11
|
+
readonly $availableInputs: import("effector").StoreWritable<MediaDeviceInfo[] | import("expo-audio").RecordingInput[]>;
|
|
12
|
+
readonly $lastKnownDurationMs: import("effector").StoreWritable<number>;
|
|
13
|
+
readonly start: import("effector").Effect<void, void, Error>;
|
|
14
|
+
readonly stop: import("effector").Effect<void, void | undefined, Error>;
|
|
15
|
+
stopAndAwaitResult(): Promise<T>;
|
|
16
|
+
resolveRecord(result: T): void;
|
|
17
|
+
clearStopResolver(): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Recorder.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Recorder.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/model/Recorder.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAqB,MAAM,YAAY,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAUpD,qBAAa,aAAa,CAAC,CAAC,GAAG,OAAO;IAC7B,QAAQ,EAAG,aAAa,CAAA;IAC/B,OAAO,CAAC,YAAY,CAA+B;IAEnD,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,mBAAmB,uDAAoC;IACvE,SAAgB,kBAAkB,8FAAsC;IACxE,SAAgB,sBAAsB,2CAAwB;IAE9D,SAAgB,iBAAiB,uDAGd;IACnB,SAAgB,gBAAgB,8FAAuC;IACvE,SAAgB,oBAAoB,2CAA4D;IAEhG,SAAgB,KAAK,+CASnB;IAEF,SAAgB,IAAI,2DAGlB;IAEK,kBAAkB,IAAI,OAAO,CAAC,CAAC,CAAC;IAOhC,aAAa,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI;IAO9B,iBAAiB,IAAI,IAAI;CAGjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VoiceRecordCollectionItem, VoiceRecorderApi } from '../../types';
|
|
2
|
+
type UploadParams = {
|
|
3
|
+
uri: string;
|
|
4
|
+
fileName: string;
|
|
5
|
+
durationMs: number;
|
|
6
|
+
};
|
|
7
|
+
type UploadResult = {
|
|
8
|
+
collectionItem: VoiceRecordCollectionItem;
|
|
9
|
+
uploadPromise: Promise<any>;
|
|
10
|
+
};
|
|
11
|
+
export declare class UploaderModel {
|
|
12
|
+
private api;
|
|
13
|
+
readonly setApi: (api: VoiceRecorderApi) => void;
|
|
14
|
+
readonly upload: import("effector").Effect<UploadParams, UploadResult, Error>;
|
|
15
|
+
readonly abortUpload: (controller?: AbortController) => void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Uploader.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Uploader.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/model/Uploader.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGzE,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,cAAc,EAAE,yBAAyB,CAAA;IACzC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;CAC5B,CAAA;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,GAAG,CAAmB;IAE9B,SAAgB,MAAM,QAAS,gBAAgB,UAE9C;IAED,SAAgB,MAAM,+DAoBrB;IAED,SAAgB,WAAW,gBAAiB,eAAe,UAE1D;CACF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RecorderModel } from './Recorder.model';
|
|
2
|
+
import { VoiceRecordsCollection } from './VoiceRecordCollection';
|
|
3
|
+
import { UploaderModel } from './Uploader.model';
|
|
4
|
+
import { VoiceRecordCollectionItem, VoiceRecorderApi, VoiceRecordNotificationTypes } from '../../types';
|
|
5
|
+
type VoiceRecordModelParams = {
|
|
6
|
+
api: VoiceRecorderApi;
|
|
7
|
+
notification: VoiceRecordNotificationTypes;
|
|
8
|
+
events: VoiceRecordEvents;
|
|
9
|
+
};
|
|
10
|
+
type VoiceRecordEvents = {
|
|
11
|
+
deleteRecord: () => void;
|
|
12
|
+
undoRecord: () => void;
|
|
13
|
+
};
|
|
14
|
+
type DeleteCurrentRecordingProps = {
|
|
15
|
+
notification?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare class VoiceRecordModel {
|
|
18
|
+
readonly recorderModel: RecorderModel<VoiceRecordCollectionItem>;
|
|
19
|
+
readonly collection: VoiceRecordsCollection;
|
|
20
|
+
readonly uploader: UploaderModel;
|
|
21
|
+
readonly api: VoiceRecorderApi;
|
|
22
|
+
readonly notification: VoiceRecordNotificationTypes;
|
|
23
|
+
readonly events: VoiceRecordEvents;
|
|
24
|
+
private shouldDiscardRecording;
|
|
25
|
+
readonly setCurrentKey: import("effector").EventCallable<string>;
|
|
26
|
+
readonly setCurrentRecord: import("effector").EventCallable<any>;
|
|
27
|
+
readonly reset: import("effector").EventCallable<void>;
|
|
28
|
+
readonly setIsButtonDisabled: import("effector").EventCallable<boolean>;
|
|
29
|
+
readonly startAudioUpload: import("effector").EventCallable<string>;
|
|
30
|
+
readonly $currentKey: import("effector").StoreWritable<string>;
|
|
31
|
+
readonly $currentRecord: import("effector").StoreWritable<any>;
|
|
32
|
+
readonly $isButtonDisabled: import("effector").StoreWritable<boolean>;
|
|
33
|
+
readonly $isExpanded: import("effector").Store<boolean>;
|
|
34
|
+
readonly deleteAudioRecord: import("effector").Effect<string, void, Error>;
|
|
35
|
+
readonly deleteCurrentRecording: import("effector").Effect<void | DeleteCurrentRecordingProps, void, Error>;
|
|
36
|
+
readonly initializeRecording: import("effector").Effect<void, void, Error>;
|
|
37
|
+
readonly stop: import("effector").Effect<void, void, Error>;
|
|
38
|
+
readonly cleanup: () => Promise<void>;
|
|
39
|
+
readonly recordingStatusUpdate: (status: any) => void;
|
|
40
|
+
readonly getRecordingItem: import("effector").Effect<string, VoiceRecordCollectionItem | undefined, Error>;
|
|
41
|
+
private abortUploadIfInProgress;
|
|
42
|
+
private resetRecordingState;
|
|
43
|
+
private handleAudioUpload;
|
|
44
|
+
private setupUploadHandler;
|
|
45
|
+
private setupCurrentRecordSync;
|
|
46
|
+
readonly recorderButtonHandler: import("effector").Effect<void, void, Error>;
|
|
47
|
+
constructor({ api, notification, events }: VoiceRecordModelParams);
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=VoiceRecord.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceRecord.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/model/VoiceRecord.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,aAAa,CAAA;AAIpB,KAAK,sBAAsB,GAAG;IAC5B,GAAG,EAAE,gBAAgB,CAAA;IACrB,YAAY,EAAE,4BAA4B,CAAA;IAC1C,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CAAA;AAYD,KAAK,iBAAiB,GAAG;IACvB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAED,KAAK,2BAA2B,GAAG;IACjC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAUD,qBAAa,gBAAgB;IAC3B,SAAgB,aAAa,2CAAiD;IAC9E,SAAgB,UAAU,yBAA+B;IACzD,SAAgB,QAAQ,gBAAsB;IAC9C,SAAgB,GAAG,EAAE,gBAAgB,CAAA;IACrC,SAAgB,YAAY,EAAE,4BAA4B,CAAA;IAC1D,SAAgB,MAAM,EAAE,iBAAiB,CAAA;IACzC,OAAO,CAAC,sBAAsB,CAAQ;IAEtC,SAAgB,aAAa,2CAAwB;IACrD,SAAgB,gBAAgB,wCAAqB;IACrD,SAAgB,KAAK,yCAAgB;IACrC,SAAgB,mBAAmB,4CAAyB;IAC5D,SAAgB,gBAAgB,2CAAwB;IAExD,SAAgB,WAAW,2CAAkC;IAC7D,SAAgB,cAAc,wCAAyD;IAEvF,SAAgB,iBAAiB,4CAA2C;IAE5E,SAAgB,WAAW,oCAO1B;IAED,SAAgB,iBAAiB,iDAE/B;IAEF,SAAgB,sBAAsB,6EAqBpC;IAEF,SAAgB,mBAAmB,+CA2BjC;IAEF,SAAgB,IAAI,+CAKlB;IAEF,SAAgB,OAAO,sBAKtB;IAED,SAAgB,qBAAqB,WAAY,GAAG,UAanD;IAED,SAAgB,gBAAgB,kFAkB9B;IAEF,OAAO,CAAC,uBAAuB;IAM/B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,iBAAiB,CA2BxB;IAED,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,sBAAsB;IAe9B,SAAgB,qBAAqB,+CAiBnC;gBAEU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,sBAAsB;CASlE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VoiceRecordCollectionItem } from '../../types';
|
|
2
|
+
export declare class VoiceRecordsCollection {
|
|
3
|
+
readonly collection: Map<string, VoiceRecordCollectionItem>;
|
|
4
|
+
add(key: string, item: VoiceRecordCollectionItem): void;
|
|
5
|
+
update(key: string, item: Partial<VoiceRecordCollectionItem>): void;
|
|
6
|
+
delete(key: string): void;
|
|
7
|
+
get(key: string): VoiceRecordCollectionItem | undefined;
|
|
8
|
+
clear(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=VoiceRecordCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceRecordCollection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/model/VoiceRecordCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAEvD,qBAAa,sBAAsB;IACjC,SAAgB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAY;IAEvE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB;IAIhD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,yBAAyB,CAAC;IAK5D,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,KAAK;CAGb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/voice/recording/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { WithAbortSignal } from 'src/types/common.types';
|
|
2
|
+
import { getAvailableInputs } from './helpers';
|
|
3
|
+
import { VoiceRecordModel } from './recording/model/VoiceRecord.model';
|
|
4
|
+
import { AxiosResponse } from 'axios';
|
|
5
|
+
export type VoiceRecordNotificationTypes = {
|
|
6
|
+
success: (message: string) => void;
|
|
7
|
+
info: (message: string) => void;
|
|
8
|
+
error: (message: string) => void;
|
|
9
|
+
warning: (message: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export type UploadAudioPayload = WithAbortSignal<{
|
|
12
|
+
audioFileFormData: FormData;
|
|
13
|
+
}>;
|
|
14
|
+
type UploadAudioResponse = {
|
|
15
|
+
id: string;
|
|
16
|
+
fileName: string;
|
|
17
|
+
fileType: string;
|
|
18
|
+
};
|
|
19
|
+
export type VoiceRecordCollectionItem = {
|
|
20
|
+
solutionId?: string;
|
|
21
|
+
id?: string;
|
|
22
|
+
durationMs?: number;
|
|
23
|
+
uri?: string;
|
|
24
|
+
audioUploadPromise?: Promise<void | UploadAudioResponse>;
|
|
25
|
+
controller?: AbortController;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceRecordStack = {
|
|
28
|
+
[problemId: string]: VoiceRecordCollectionItem;
|
|
29
|
+
};
|
|
30
|
+
export type AvailableAudioInputs = Awaited<ReturnType<typeof getAvailableInputs>>;
|
|
31
|
+
export type VoiceRecordModalParams = {
|
|
32
|
+
model: VoiceRecordModel;
|
|
33
|
+
};
|
|
34
|
+
export type AnswerAudio = {
|
|
35
|
+
drawing: string;
|
|
36
|
+
_id: string;
|
|
37
|
+
audioFileId?: string;
|
|
38
|
+
};
|
|
39
|
+
export type DownloadAudioPayload = {
|
|
40
|
+
audioFileId: string;
|
|
41
|
+
};
|
|
42
|
+
export type VoiceRecorderApi = {
|
|
43
|
+
uploadAudioFile: (data: UploadAudioPayload) => Promise<UploadAudioResponse>;
|
|
44
|
+
deleteAudioFile: (audioFileId: string) => Promise<void>;
|
|
45
|
+
};
|
|
46
|
+
type TranscriptionStatus = 'pending' | 'completed' | 'failed';
|
|
47
|
+
export type AudioTranscriptResponse = {
|
|
48
|
+
text: string;
|
|
49
|
+
status: TranscriptionStatus;
|
|
50
|
+
};
|
|
51
|
+
export type VoicePlayerApi = {
|
|
52
|
+
getAudioFileTranscript: (audioFileId: string) => Promise<AudioTranscriptResponse>;
|
|
53
|
+
downloadAudioFile: (audioFileId: string, options?: {
|
|
54
|
+
signal?: AbortSignal;
|
|
55
|
+
}) => Promise<AxiosResponse<Blob>>;
|
|
56
|
+
};
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/voice/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAC/C,iBAAiB,EAAE,QAAQ,CAAA;CAC5B,CAAC,CAAA;AAEF,KAAK,mBAAmB,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,OAAO,CAAC,IAAI,GAAG,mBAAmB,CAAC,CAAA;IACxD,UAAU,CAAC,EAAE,eAAe,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAA;AAEjF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,gBAAgB,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAC3E,eAAe,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACxD,CAAA;AAED,KAAK,mBAAmB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;AAC7D,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACjF,iBAAiB,EAAE,CACjB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,KAC/B,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;CAClC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AudioStatus } from '../../features/chatbot/types/t2s.types';
|
|
3
|
+
import { ColorScheme } from '../../features/chatbot/types/style.types';
|
|
4
|
+
type MessageTextToSpeechProps = {
|
|
5
|
+
state: {
|
|
6
|
+
status?: AudioStatus;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
isEnabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
activityIndicatorColor?: string;
|
|
13
|
+
colorScheme?: ColorScheme;
|
|
14
|
+
onPress?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const PlayButton: ({ state: { status, disabled, isActive, isLoading }, colorScheme, onPress, activityIndicatorColor, ...props }: MessageTextToSpeechProps) => React.JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=PlayButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayButton.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/PlayButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAA;AAkCtE,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE;QACL,MAAM,CAAC,EAAE,WAAW,CAAA;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB,CAAA;IACD,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,UAAU,iHAMpB,wBAAwB,sBAqB1B,CAAA"}
|
|
@@ -41,6 +41,23 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
41
41
|
weight: string;
|
|
42
42
|
time: string;
|
|
43
43
|
};
|
|
44
|
+
voice: {
|
|
45
|
+
deleteRecording: string;
|
|
46
|
+
youWontBeAbleToRecover: string;
|
|
47
|
+
recordingDeleted: string;
|
|
48
|
+
delete: string;
|
|
49
|
+
cancel: string;
|
|
50
|
+
noMicrophoneAccess: string;
|
|
51
|
+
noMicrophoneAccessBySystem: string;
|
|
52
|
+
noMicrophoneFound: string;
|
|
53
|
+
uploadFailed: string;
|
|
54
|
+
redoRecording: string;
|
|
55
|
+
redo: string;
|
|
56
|
+
thisWillRemoveRecording: string;
|
|
57
|
+
transcriptions: string;
|
|
58
|
+
attempt: string;
|
|
59
|
+
transcriptNotAvailable: string;
|
|
60
|
+
};
|
|
44
61
|
};
|
|
45
62
|
"en-GB": {
|
|
46
63
|
locale: string;
|
|
@@ -84,6 +101,23 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
84
101
|
weight: string;
|
|
85
102
|
time: string;
|
|
86
103
|
};
|
|
104
|
+
voice: {
|
|
105
|
+
deleteRecording: string;
|
|
106
|
+
youWontBeAbleToRecover: string;
|
|
107
|
+
recordingDeleted: string;
|
|
108
|
+
delete: string;
|
|
109
|
+
cancel: string;
|
|
110
|
+
noMicrophoneAccess: string;
|
|
111
|
+
noMicrophoneAccessBySystem: string;
|
|
112
|
+
noMicrophoneFound: string;
|
|
113
|
+
uploadFailed: string;
|
|
114
|
+
redoRecording: string;
|
|
115
|
+
redo: string;
|
|
116
|
+
thisWillRemoveRecording: string;
|
|
117
|
+
transcriptions: string;
|
|
118
|
+
attempt: string;
|
|
119
|
+
transcriptNotAvailable: string;
|
|
120
|
+
};
|
|
87
121
|
};
|
|
88
122
|
"sv-SE": {
|
|
89
123
|
locale: string;
|
|
@@ -127,6 +161,23 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
127
161
|
weight: string;
|
|
128
162
|
time: string;
|
|
129
163
|
};
|
|
164
|
+
voice: {
|
|
165
|
+
deleteRecording: string;
|
|
166
|
+
youWontBeAbleToRecover: string;
|
|
167
|
+
recordingDeleted: string;
|
|
168
|
+
delete: string;
|
|
169
|
+
cancel: string;
|
|
170
|
+
noMicrophoneAccess: string;
|
|
171
|
+
noMicrophoneAccessBySystem: string;
|
|
172
|
+
noMicrophoneFound: string;
|
|
173
|
+
uploadFailed: string;
|
|
174
|
+
redoRecording: string;
|
|
175
|
+
redo: string;
|
|
176
|
+
thisWillRemoveRecording: string;
|
|
177
|
+
transcriptions: string;
|
|
178
|
+
attempt: string;
|
|
179
|
+
transcriptNotAvailable: string;
|
|
180
|
+
};
|
|
130
181
|
};
|
|
131
182
|
"en-CA": {
|
|
132
183
|
locale: string;
|
|
@@ -170,6 +221,23 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
170
221
|
weight: string;
|
|
171
222
|
time: string;
|
|
172
223
|
};
|
|
224
|
+
voice: {
|
|
225
|
+
deleteRecording: string;
|
|
226
|
+
youWontBeAbleToRecover: string;
|
|
227
|
+
recordingDeleted: string;
|
|
228
|
+
delete: string;
|
|
229
|
+
cancel: string;
|
|
230
|
+
noMicrophoneAccess: string;
|
|
231
|
+
noMicrophoneAccessBySystem: string;
|
|
232
|
+
noMicrophoneFound: string;
|
|
233
|
+
uploadFailed: string;
|
|
234
|
+
redoRecording: string;
|
|
235
|
+
redo: string;
|
|
236
|
+
thisWillRemoveRecording: string;
|
|
237
|
+
transcriptions: string;
|
|
238
|
+
attempt: string;
|
|
239
|
+
transcriptNotAvailable: string;
|
|
240
|
+
};
|
|
173
241
|
};
|
|
174
242
|
"en-SCT": {
|
|
175
243
|
locale: string;
|
|
@@ -213,6 +281,23 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
213
281
|
weight: string;
|
|
214
282
|
time: string;
|
|
215
283
|
};
|
|
284
|
+
voice: {
|
|
285
|
+
deleteRecording: string;
|
|
286
|
+
youWontBeAbleToRecover: string;
|
|
287
|
+
recordingDeleted: string;
|
|
288
|
+
delete: string;
|
|
289
|
+
cancel: string;
|
|
290
|
+
noMicrophoneAccess: string;
|
|
291
|
+
noMicrophoneAccessBySystem: string;
|
|
292
|
+
noMicrophoneFound: string;
|
|
293
|
+
uploadFailed: string;
|
|
294
|
+
redoRecording: string;
|
|
295
|
+
redo: string;
|
|
296
|
+
thisWillRemoveRecording: string;
|
|
297
|
+
transcriptions: string;
|
|
298
|
+
attempt: string;
|
|
299
|
+
transcriptNotAvailable: string;
|
|
300
|
+
};
|
|
216
301
|
};
|
|
217
302
|
"de-DE": {
|
|
218
303
|
locale: string;
|
|
@@ -256,6 +341,23 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
256
341
|
weight: string;
|
|
257
342
|
time: string;
|
|
258
343
|
};
|
|
344
|
+
voice: {
|
|
345
|
+
deleteRecording: string;
|
|
346
|
+
youWontBeAbleToRecover: string;
|
|
347
|
+
recordingDeleted: string;
|
|
348
|
+
delete: string;
|
|
349
|
+
cancel: string;
|
|
350
|
+
noMicrophoneAccess: string;
|
|
351
|
+
noMicrophoneAccessBySystem: string;
|
|
352
|
+
noMicrophoneFound: string;
|
|
353
|
+
uploadFailed: string;
|
|
354
|
+
redoRecording: string;
|
|
355
|
+
redo: string;
|
|
356
|
+
thisWillRemoveRecording: string;
|
|
357
|
+
transcriptions: string;
|
|
358
|
+
attempt: string;
|
|
359
|
+
transcriptNotAvailable: string;
|
|
360
|
+
};
|
|
259
361
|
};
|
|
260
362
|
};
|
|
261
363
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
|
|
@@ -42,6 +42,23 @@ export declare const setLocalization: import("effector").EventCallable<{
|
|
|
42
42
|
weight: string;
|
|
43
43
|
time: string;
|
|
44
44
|
};
|
|
45
|
+
voice: {
|
|
46
|
+
deleteRecording: string;
|
|
47
|
+
youWontBeAbleToRecover: string;
|
|
48
|
+
recordingDeleted: string;
|
|
49
|
+
delete: string;
|
|
50
|
+
cancel: string;
|
|
51
|
+
noMicrophoneAccess: string;
|
|
52
|
+
noMicrophoneAccessBySystem: string;
|
|
53
|
+
noMicrophoneFound: string;
|
|
54
|
+
uploadFailed: string;
|
|
55
|
+
redoRecording: string;
|
|
56
|
+
redo: string;
|
|
57
|
+
thisWillRemoveRecording: string;
|
|
58
|
+
transcriptions: string;
|
|
59
|
+
attempt: string;
|
|
60
|
+
transcriptNotAvailable: string;
|
|
61
|
+
};
|
|
45
62
|
} | ((config: typeof LOCALIZATION_CONFIGS) => Translations)>;
|
|
46
63
|
export declare const $localization: import("effector").StoreWritable<{
|
|
47
64
|
locale: string;
|
|
@@ -85,5 +102,22 @@ export declare const $localization: import("effector").StoreWritable<{
|
|
|
85
102
|
weight: string;
|
|
86
103
|
time: string;
|
|
87
104
|
};
|
|
105
|
+
voice: {
|
|
106
|
+
deleteRecording: string;
|
|
107
|
+
youWontBeAbleToRecover: string;
|
|
108
|
+
recordingDeleted: string;
|
|
109
|
+
delete: string;
|
|
110
|
+
cancel: string;
|
|
111
|
+
noMicrophoneAccess: string;
|
|
112
|
+
noMicrophoneAccessBySystem: string;
|
|
113
|
+
noMicrophoneFound: string;
|
|
114
|
+
uploadFailed: string;
|
|
115
|
+
redoRecording: string;
|
|
116
|
+
redo: string;
|
|
117
|
+
thisWillRemoveRecording: string;
|
|
118
|
+
transcriptions: string;
|
|
119
|
+
attempt: string;
|
|
120
|
+
transcriptNotAvailable: string;
|
|
121
|
+
};
|
|
88
122
|
}>;
|
|
89
123
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.types.d.ts","sourceRoot":"","sources":["../../../../src/types/common.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;
|
|
1
|
+
{"version":3,"file":"common.types.d.ts","sourceRoot":"","sources":["../../../../src/types/common.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEnD,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,CAAA;AAE7D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magmamath/students-features",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.114-rc.1",
|
|
4
4
|
"description": "Magmamath features library",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -21,15 +21,18 @@
|
|
|
21
21
|
"@magmamath/react-native-ui": "*",
|
|
22
22
|
"effector": "^23.2.3",
|
|
23
23
|
"effector-react": "^23.2.1",
|
|
24
|
+
"patronum": "^2.3.0",
|
|
24
25
|
"react": "*",
|
|
25
26
|
"react-native": "*",
|
|
26
27
|
"react-native-gesture-handler": "*",
|
|
27
28
|
"react-native-modalfy": "*",
|
|
28
29
|
"react-native-reanimated": ">=0.3.16",
|
|
29
|
-
"react-native-svg": "^15.10.0"
|
|
30
|
+
"react-native-svg": "^15.10.0",
|
|
31
|
+
"expo-audio": "^1.1.1",
|
|
32
|
+
"expo": ">=52.0.47"
|
|
30
33
|
},
|
|
31
34
|
"devDependencies": {
|
|
32
|
-
"@magmamath/react-native-ui": "0.4.
|
|
35
|
+
"@magmamath/react-native-ui": "0.4.82",
|
|
33
36
|
"@react-native/eslint-config": "^0.73.1",
|
|
34
37
|
"@release-it/conventional-changelog": "^9.0.2",
|
|
35
38
|
"@types/jest": "^29.5.5",
|
|
@@ -40,8 +43,11 @@
|
|
|
40
43
|
"eslint": "^8.51.0",
|
|
41
44
|
"eslint-config-prettier": "^9.0.0",
|
|
42
45
|
"eslint-plugin-prettier": "^5.0.1",
|
|
46
|
+
"expo": "^52.0.47",
|
|
47
|
+
"expo-audio": "^1.1.1",
|
|
43
48
|
"jest": "^29.7.0",
|
|
44
49
|
"prettier": "^3.0.3",
|
|
50
|
+
"patronum": "^2.3.0",
|
|
45
51
|
"react": "18.3.1",
|
|
46
52
|
"react-native": "0.76.3",
|
|
47
53
|
"react-native-builder-bob": "^0.33.3",
|
|
@@ -50,7 +56,8 @@
|
|
|
50
56
|
"react-native-reanimated": "^3.17.2",
|
|
51
57
|
"react-native-svg": "^15.10.0",
|
|
52
58
|
"release-it": "^17.10.0",
|
|
53
|
-
"typescript": "^5.2.2"
|
|
59
|
+
"typescript": "^5.2.2",
|
|
60
|
+
"axios": "^1.13.5"
|
|
54
61
|
},
|
|
55
62
|
"resolutions": {
|
|
56
63
|
"@types/react": "^18.2.44"
|
|
@@ -3,12 +3,12 @@ import { StyleSheet, View } from 'react-native'
|
|
|
3
3
|
import { IS_WEB } from '@magmamath/react-native-ui'
|
|
4
4
|
|
|
5
5
|
import { ErrorSpottingButton } from '../../errorSpotting/ErrorSpottingButton'
|
|
6
|
-
import { MessageTextToSpeech } from './MessageTextToSpeech'
|
|
7
6
|
import { ConversationMessage } from '../../types/units.types'
|
|
8
7
|
|
|
9
8
|
import { T2SState } from '../../types/t2s.types'
|
|
10
9
|
import { ColorScheme } from '../../types/style.types'
|
|
11
10
|
import { MessageVariant } from '../../types/model.types'
|
|
11
|
+
import { MessageTextToSpeech } from './MessageTextToSpeech'
|
|
12
12
|
|
|
13
13
|
type MessageButtonsBlockProps = {
|
|
14
14
|
t2sState: T2SState
|