@magmamath/students-features 0.11.0-rc.24 → 0.11.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js +137 -95
- package/dist/commonjs/features/chatbot/components/Chat/Chat.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js +1 -0
- package/dist/commonjs/features/chatbot/components/Chat/CloseButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +19 -22
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js +5 -3
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js +1 -1
- package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.js +5 -5
- package/dist/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +23 -11
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +48 -8
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +12 -20
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js +2 -4
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/constants.js +5 -10
- package/dist/commonjs/features/chatbot/constants.js.map +1 -1
- package/dist/commonjs/features/chatbot/helpers.js +10 -3
- package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +0 -6
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +2 -3
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatbotApi.js +1 -1
- package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatbotTranslation.js +1 -1
- package/dist/commonjs/features/chatbot/model/ChatbotTranslation.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/gifCelebrations/helpers.js +0 -1
- package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -1
- package/dist/commonjs/index.js +0 -12
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +1 -19
- package/dist/commonjs/shared/translation/localization/de.json +1 -19
- package/dist/commonjs/shared/translation/localization/en.json +1 -19
- package/dist/commonjs/shared/translation/localization/gb.json +1 -19
- package/dist/commonjs/shared/translation/localization/sct.json +1 -19
- package/dist/commonjs/shared/translation/localization/sw.json +0 -18
- package/dist/module/features/chatbot/components/Chat/Chat.js +139 -97
- package/dist/module/features/chatbot/components/Chat/Chat.js.map +1 -1
- package/dist/module/features/chatbot/components/Chat/CloseButton.js +1 -0
- package/dist/module/features/chatbot/components/Chat/CloseButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +17 -21
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +5 -3
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js +2 -2
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js +2 -2
- package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/AnimatedMessage.js +6 -6
- package/dist/module/features/chatbot/components/ChatMessage/AnimatedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +24 -13
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +49 -9
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +14 -22
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +1 -2
- package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/Chatbot.js +2 -4
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/constants.js +5 -10
- package/dist/module/features/chatbot/constants.js.map +1 -1
- package/dist/module/features/chatbot/helpers.js +10 -3
- package/dist/module/features/chatbot/helpers.js.map +1 -1
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +0 -6
- package/dist/module/features/chatbot/model/ChatBotModel.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/ChatbotApi.js +1 -1
- package/dist/module/features/chatbot/model/ChatbotApi.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatbotTranslation.js +1 -1
- package/dist/module/features/chatbot/model/ChatbotTranslation.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/gifCelebrations/helpers.js +0 -1
- package/dist/module/features/gifCelebrations/helpers.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +1 -19
- package/dist/module/shared/translation/localization/de.json +1 -19
- package/dist/module/shared/translation/localization/en.json +1 -19
- package/dist/module/shared/translation/localization/gb.json +1 -19
- package/dist/module/shared/translation/localization/sct.json +1 -19
- package/dist/module/shared/translation/localization/sw.json +0 -18
- package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts +1 -2
- package/dist/typescript/commonjs/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/AnimatedMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.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/MessageLoader.d.ts +1 -5
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.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/components/ChatMessage/ReceivedMessage.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +1 -2
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts +5 -8
- package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +2 -2
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +19 -22
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +5 -16
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -108
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -36
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/types/common.types.d.ts +0 -3
- package/dist/typescript/commonjs/types/common.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts +1 -2
- package/dist/typescript/module/features/chatbot/components/Chat/Chat.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.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/AnimatedMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +0 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.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/MessageLoader.d.ts +1 -5
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.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/components/ChatMessage/ReceivedMessage.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +1 -2
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/constants.d.ts +5 -8
- package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +2 -2
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +19 -22
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +5 -16
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -108
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -36
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/types/common.types.d.ts +0 -3
- package/dist/typescript/module/types/common.types.d.ts.map +1 -1
- package/package.json +4 -15
- package/src/features/chatbot/components/Chat/Chat.tsx +160 -116
- package/src/features/chatbot/components/Chat/CloseButton.tsx +1 -0
- package/src/features/chatbot/components/ChatControls/ChatControls.tsx +13 -15
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +5 -3
- package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +2 -3
- package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +3 -2
- package/src/features/chatbot/components/ChatMessage/AnimatedMessage.tsx +9 -3
- package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +0 -1
- package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +1 -1
- package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +20 -16
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +51 -9
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +9 -15
- package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +1 -2
- package/src/features/chatbot/components/Chatbot.tsx +1 -4
- package/src/features/chatbot/constants.ts +5 -10
- package/src/features/chatbot/helpers.ts +5 -2
- package/src/features/chatbot/index.ts +16 -2
- package/src/features/chatbot/model/ChatBotModel.ts +0 -7
- package/src/features/chatbot/model/ChatBoxTextManager.ts +1 -2
- package/src/features/chatbot/model/ChatbotApi.ts +1 -1
- package/src/features/chatbot/model/ChatbotTranslation.ts +1 -1
- package/src/features/chatbot/types/api.types.ts +17 -22
- package/src/features/chatbot/types/model.types.ts +5 -18
- package/src/features/gifCelebrations/helpers.ts +0 -1
- package/src/index.ts +0 -1
- package/src/shared/translation/localization/ca.json +1 -19
- package/src/shared/translation/localization/de.json +1 -19
- package/src/shared/translation/localization/en.json +1 -19
- package/src/shared/translation/localization/gb.json +1 -19
- package/src/shared/translation/localization/sct.json +1 -19
- package/src/shared/translation/localization/sw.json +0 -18
- package/src/types/common.types.ts +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js +0 -35
- package/dist/commonjs/features/chatbot/components/Chat/ChatIcon.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/ChatInputBlock.js +0 -40
- package/dist/commonjs/features/chatbot/components/Chat/ChatInputBlock.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/FadeMask.js +0 -25
- package/dist/commonjs/features/chatbot/components/Chat/FadeMask.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/FadeMask.native.js +0 -89
- package/dist/commonjs/features/chatbot/components/Chat/FadeMask.native.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/FadeMask.web.js +0 -43
- package/dist/commonjs/features/chatbot/components/Chat/FadeMask.web.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/GradientFade.js +0 -45
- package/dist/commonjs/features/chatbot/components/Chat/GradientFade.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/MessageItem.js +0 -86
- package/dist/commonjs/features/chatbot/components/Chat/MessageItem.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/constants.js +0 -8
- package/dist/commonjs/features/chatbot/components/Chat/constants.js.map +0 -1
- package/dist/commonjs/features/chatbot/components/Chat/useChatScroll.js +0 -92
- package/dist/commonjs/features/chatbot/components/Chat/useChatScroll.js.map +0 -1
- package/dist/commonjs/features/voice/constants.js +0 -23
- package/dist/commonjs/features/voice/constants.js.map +0 -1
- package/dist/commonjs/features/voice/helpers.js +0 -208
- package/dist/commonjs/features/voice/helpers.js.map +0 -1
- package/dist/commonjs/features/voice/index.js +0 -105
- package/dist/commonjs/features/voice/index.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceIcon.js +0 -49
- package/dist/commonjs/features/voice/playing/components/VoiceIcon.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +0 -219
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +0 -109
- package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +0 -1
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js +0 -50
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +0 -34
- package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/Player.model.js +0 -98
- package/dist/commonjs/features/voice/playing/model/Player.model.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js +0 -66
- package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceFileDownloader.model.js +0 -39
- package/dist/commonjs/features/voice/playing/model/VoiceFileDownloader.model.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +0 -223
- package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js +0 -41
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js +0 -15
- package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +0 -1
- package/dist/commonjs/features/voice/playing/model/index.js +0 -20
- package/dist/commonjs/features/voice/playing/model/index.js.map +0 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +0 -74
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +0 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +0 -63
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +0 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +0 -35
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +0 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDivider.js +0 -27
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDivider.js.map +0 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +0 -50
- package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +0 -1
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorder.js +0 -59
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorder.js.map +0 -1
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +0 -22
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +0 -1
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +0 -53
- package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +0 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +0 -78
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +0 -1
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +0 -51
- package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +0 -1
- package/dist/commonjs/features/voice/recording/model/Recorder.model.js +0 -55
- package/dist/commonjs/features/voice/recording/model/Recorder.model.js.map +0 -1
- package/dist/commonjs/features/voice/recording/model/Uploader.model.js +0 -44
- package/dist/commonjs/features/voice/recording/model/Uploader.model.js.map +0 -1
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +0 -248
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +0 -1
- package/dist/commonjs/features/voice/recording/model/VoiceRecordCollection.js +0 -30
- package/dist/commonjs/features/voice/recording/model/VoiceRecordCollection.js.map +0 -1
- package/dist/commonjs/features/voice/types.js +0 -6
- package/dist/commonjs/features/voice/types.js.map +0 -1
- package/dist/commonjs/shared/components/PlayButton.js +0 -70
- package/dist/commonjs/shared/components/PlayButton.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/ChatIcon.js +0 -29
- package/dist/module/features/chatbot/components/Chat/ChatIcon.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/ChatInputBlock.js +0 -34
- package/dist/module/features/chatbot/components/Chat/ChatInputBlock.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/FadeMask.js +0 -4
- package/dist/module/features/chatbot/components/Chat/FadeMask.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/FadeMask.native.js +0 -81
- package/dist/module/features/chatbot/components/Chat/FadeMask.native.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/FadeMask.web.js +0 -37
- package/dist/module/features/chatbot/components/Chat/FadeMask.web.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/GradientFade.js +0 -40
- package/dist/module/features/chatbot/components/Chat/GradientFade.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/MessageItem.js +0 -80
- package/dist/module/features/chatbot/components/Chat/MessageItem.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/constants.js +0 -4
- package/dist/module/features/chatbot/components/Chat/constants.js.map +0 -1
- package/dist/module/features/chatbot/components/Chat/useChatScroll.js +0 -87
- package/dist/module/features/chatbot/components/Chat/useChatScroll.js.map +0 -1
- package/dist/module/features/voice/constants.js +0 -19
- package/dist/module/features/voice/constants.js.map +0 -1
- package/dist/module/features/voice/helpers.js +0 -191
- package/dist/module/features/voice/helpers.js.map +0 -1
- package/dist/module/features/voice/index.js +0 -12
- package/dist/module/features/voice/index.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceIcon.js +0 -41
- package/dist/module/features/voice/playing/components/VoiceIcon.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +0 -212
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +0 -103
- package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +0 -1
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js +0 -45
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +0 -1
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +0 -29
- package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +0 -1
- package/dist/module/features/voice/playing/model/Player.model.js +0 -93
- package/dist/module/features/voice/playing/model/Player.model.js.map +0 -1
- package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js +0 -61
- package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceFileDownloader.model.js +0 -34
- package/dist/module/features/voice/playing/model/VoiceFileDownloader.model.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js +0 -218
- package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js +0 -36
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +0 -1
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js +0 -10
- package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +0 -1
- package/dist/module/features/voice/playing/model/index.js +0 -5
- package/dist/module/features/voice/playing/model/index.js.map +0 -1
- package/dist/module/features/voice/recording/components/VoiceRecord.js +0 -67
- package/dist/module/features/voice/recording/components/VoiceRecord.js.map +0 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +0 -57
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +0 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +0 -29
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +0 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDivider.js +0 -21
- package/dist/module/features/voice/recording/components/VoiceRecordDivider.js.map +0 -1
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +0 -44
- package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +0 -1
- package/dist/module/features/voice/recording/hooks/useVoiceRecorder.js +0 -54
- package/dist/module/features/voice/recording/hooks/useVoiceRecorder.js.map +0 -1
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +0 -17
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +0 -1
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +0 -47
- package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +0 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +0 -71
- package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +0 -1
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +0 -45
- package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +0 -1
- package/dist/module/features/voice/recording/model/Recorder.model.js +0 -50
- package/dist/module/features/voice/recording/model/Recorder.model.js.map +0 -1
- package/dist/module/features/voice/recording/model/Uploader.model.js +0 -39
- package/dist/module/features/voice/recording/model/Uploader.model.js.map +0 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js +0 -244
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +0 -1
- package/dist/module/features/voice/recording/model/VoiceRecordCollection.js +0 -25
- package/dist/module/features/voice/recording/model/VoiceRecordCollection.js.map +0 -1
- package/dist/module/features/voice/types.js +0 -4
- package/dist/module/features/voice/types.js.map +0 -1
- package/dist/module/shared/components/PlayButton.js +0 -64
- package/dist/module/shared/components/PlayButton.js.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatIcon.d.ts +0 -7
- package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatInputBlock.d.ts +0 -12
- package/dist/typescript/commonjs/features/chatbot/components/Chat/ChatInputBlock.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/FadeMask.d.ts +0 -3
- package/dist/typescript/commonjs/features/chatbot/components/Chat/FadeMask.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/FadeMask.native.d.ts +0 -18
- package/dist/typescript/commonjs/features/chatbot/components/Chat/FadeMask.native.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/FadeMask.web.d.ts +0 -19
- package/dist/typescript/commonjs/features/chatbot/components/Chat/FadeMask.web.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/GradientFade.d.ts +0 -10
- package/dist/typescript/commonjs/features/chatbot/components/Chat/GradientFade.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/MessageItem.d.ts +0 -17
- package/dist/typescript/commonjs/features/chatbot/components/Chat/MessageItem.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/constants.d.ts +0 -2
- package/dist/typescript/commonjs/features/chatbot/components/Chat/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chat/useChatScroll.d.ts +0 -28
- package/dist/typescript/commonjs/features/chatbot/components/Chat/useChatScroll.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/constants.d.ts +0 -16
- package/dist/typescript/commonjs/features/voice/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/helpers.d.ts +0 -46
- package/dist/typescript/commonjs/features/voice/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/index.d.ts +0 -10
- package/dist/typescript/commonjs/features/voice/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceIcon.d.ts +0 -8
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +0 -16
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +0 -12
- package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts +0 -16
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +0 -11
- package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts +0 -23
- package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -15
- package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceFileDownloader.model.d.ts +0 -17
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceFileDownloader.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +0 -41
- package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts +0 -13
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts +0 -7
- package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/playing/model/index.d.ts +0 -3
- package/dist/typescript/commonjs/features/voice/playing/model/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts +0 -10
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +0 -10
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts +0 -8
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDivider.d.ts +0 -3
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDivider.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts +0 -11
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorder.d.ts +0 -5
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorder.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +0 -6
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +0 -12
- package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts +0 -11
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts +0 -11
- package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/model/Recorder.model.d.ts +0 -19
- package/dist/typescript/commonjs/features/voice/recording/model/Recorder.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/model/Uploader.model.d.ts +0 -18
- package/dist/typescript/commonjs/features/voice/recording/model/Uploader.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +0 -50
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecordCollection.d.ts +0 -10
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecordCollection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +0 -72
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +0 -18
- package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/ChatIcon.d.ts +0 -7
- package/dist/typescript/module/features/chatbot/components/Chat/ChatIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/ChatInputBlock.d.ts +0 -12
- package/dist/typescript/module/features/chatbot/components/Chat/ChatInputBlock.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/FadeMask.d.ts +0 -3
- package/dist/typescript/module/features/chatbot/components/Chat/FadeMask.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/FadeMask.native.d.ts +0 -18
- package/dist/typescript/module/features/chatbot/components/Chat/FadeMask.native.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/FadeMask.web.d.ts +0 -19
- package/dist/typescript/module/features/chatbot/components/Chat/FadeMask.web.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/GradientFade.d.ts +0 -10
- package/dist/typescript/module/features/chatbot/components/Chat/GradientFade.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/MessageItem.d.ts +0 -17
- package/dist/typescript/module/features/chatbot/components/Chat/MessageItem.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/constants.d.ts +0 -2
- package/dist/typescript/module/features/chatbot/components/Chat/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/components/Chat/useChatScroll.d.ts +0 -28
- package/dist/typescript/module/features/chatbot/components/Chat/useChatScroll.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/constants.d.ts +0 -16
- package/dist/typescript/module/features/voice/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/helpers.d.ts +0 -46
- package/dist/typescript/module/features/voice/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/index.d.ts +0 -10
- package/dist/typescript/module/features/voice/index.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceIcon.d.ts +0 -8
- package/dist/typescript/module/features/voice/playing/components/VoiceIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +0 -16
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +0 -12
- package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts +0 -16
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +0 -11
- package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts +0 -23
- package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -15
- package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceFileDownloader.model.d.ts +0 -17
- package/dist/typescript/module/features/voice/playing/model/VoiceFileDownloader.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +0 -41
- package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts +0 -13
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts +0 -7
- package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/playing/model/index.d.ts +0 -3
- package/dist/typescript/module/features/voice/playing/model/index.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts +0 -10
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +0 -10
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts +0 -8
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDivider.d.ts +0 -3
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordDivider.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts +0 -11
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorder.d.ts +0 -5
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorder.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +0 -6
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +0 -12
- package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts +0 -11
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts +0 -11
- package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/model/Recorder.model.d.ts +0 -19
- package/dist/typescript/module/features/voice/recording/model/Recorder.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/model/Uploader.model.d.ts +0 -18
- package/dist/typescript/module/features/voice/recording/model/Uploader.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +0 -50
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecordCollection.d.ts +0 -10
- package/dist/typescript/module/features/voice/recording/model/VoiceRecordCollection.d.ts.map +0 -1
- package/dist/typescript/module/features/voice/types.d.ts +0 -72
- package/dist/typescript/module/features/voice/types.d.ts.map +0 -1
- package/dist/typescript/module/shared/components/PlayButton.d.ts +0 -18
- package/dist/typescript/module/shared/components/PlayButton.d.ts.map +0 -1
- package/src/features/chatbot/components/Chat/ChatIcon.tsx +0 -28
- package/src/features/chatbot/components/Chat/ChatInputBlock.tsx +0 -44
- package/src/features/chatbot/components/Chat/FadeMask.native.tsx +0 -71
- package/src/features/chatbot/components/Chat/FadeMask.ts +0 -2
- package/src/features/chatbot/components/Chat/FadeMask.web.tsx +0 -37
- package/src/features/chatbot/components/Chat/GradientFade.tsx +0 -44
- package/src/features/chatbot/components/Chat/MessageItem.tsx +0 -94
- package/src/features/chatbot/components/Chat/constants.ts +0 -1
- package/src/features/chatbot/components/Chat/useChatScroll.ts +0 -99
- package/src/features/voice/constants.ts +0 -15
- package/src/features/voice/helpers.ts +0 -251
- package/src/features/voice/index.ts +0 -11
- package/src/features/voice/playing/components/VoiceIcon.tsx +0 -38
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +0 -256
- package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +0 -128
- package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.ts +0 -54
- package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +0 -40
- package/src/features/voice/playing/model/Player.model.ts +0 -104
- package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +0 -80
- package/src/features/voice/playing/model/VoiceFileDownloader.model.ts +0 -42
- package/src/features/voice/playing/model/VoicePlayer.model.ts +0 -255
- package/src/features/voice/playing/model/VoiceTranscriptionsCollection.ts +0 -40
- package/src/features/voice/playing/model/VoiceTranscriptionsDropdown.model.ts +0 -11
- package/src/features/voice/playing/model/index.ts +0 -2
- package/src/features/voice/recording/components/VoiceRecord.tsx +0 -65
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +0 -64
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +0 -25
- package/src/features/voice/recording/components/VoiceRecordDivider.tsx +0 -17
- package/src/features/voice/recording/components/VoiceRecordTimer.tsx +0 -49
- package/src/features/voice/recording/hooks/useVoiceRecorder.ts +0 -62
- package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +0 -19
- package/src/features/voice/recording/modal/ModalFooterButtons.tsx +0 -54
- package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +0 -82
- package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +0 -50
- package/src/features/voice/recording/model/Recorder.model.ts +0 -63
- package/src/features/voice/recording/model/Uploader.model.ts +0 -48
- package/src/features/voice/recording/model/VoiceRecord.model.ts +0 -302
- package/src/features/voice/recording/model/VoiceRecordCollection.ts +0 -26
- package/src/features/voice/types.ts +0 -84
- package/src/shared/components/PlayButton.tsx +0 -84
|
@@ -8,137 +8,179 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _effectorReact = require("effector-react");
|
|
10
10
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
+
var _ChatbotIcon = require("../../../../shared/icons/ChatbotIcon.js");
|
|
12
|
+
var _AnimatedMessage = require("../ChatMessage/AnimatedMessage.js");
|
|
13
|
+
var _ChatMessage = require("../ChatMessage/ChatMessage.js");
|
|
11
14
|
var _MessageLoader = require("../ChatMessage/MessageLoader.js");
|
|
15
|
+
var _ChatInput = require("../ChatInput/ChatInput.js");
|
|
16
|
+
var _CloseButton = require("./CloseButton.js");
|
|
17
|
+
var _modelTypes = require("../../types/model.types.js");
|
|
12
18
|
var _styleTypes = require("../../types/style.types.js");
|
|
13
|
-
var
|
|
14
|
-
var _ChatInputBlock = require("./ChatInputBlock.js");
|
|
15
|
-
var _MessageItem = require("./MessageItem.js");
|
|
16
|
-
var _FadeMask = require("./FadeMask.js");
|
|
17
|
-
var _constants = require("../../constants.js");
|
|
18
|
-
var _useChatScroll = require("./useChatScroll.js");
|
|
19
|
+
var _ConditionalWrapper = require("../../../../lib/components/ConditionalWrapper.js");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
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); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
const
|
|
23
|
-
|
|
23
|
+
const SCROLL_BOTTOM_THRESHOLD = 1;
|
|
24
|
+
const TOOLBAR_HEIGHT = 140;
|
|
25
|
+
const BOTTOM_OFFSET = _reactNative.Platform.select({
|
|
26
|
+
web: 265,
|
|
27
|
+
default: 294
|
|
24
28
|
});
|
|
25
|
-
const keyExtractor = (item, index) => `${item.id}-${index}`;
|
|
26
29
|
const Chat = ({
|
|
27
30
|
model,
|
|
28
31
|
isHintFeedback,
|
|
29
32
|
isTextToSpeechEnabled,
|
|
30
33
|
isInputDisabled,
|
|
31
|
-
maxHeight = 100,
|
|
32
34
|
colorScheme = _styleTypes.ColorScheme.Blue,
|
|
33
35
|
MessageWrapper,
|
|
34
36
|
TTSHighlightRenderer,
|
|
35
37
|
onPressClose
|
|
36
38
|
}) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
scroll,
|
|
40
|
-
isScrolledUp,
|
|
41
|
-
fadeRef,
|
|
42
|
-
webMask,
|
|
43
|
-
handleScroll,
|
|
44
|
-
handleLayout,
|
|
45
|
-
handleContentSizeChange,
|
|
46
|
-
scrollToBottom,
|
|
47
|
-
reset
|
|
48
|
-
} = (0, _useChatScroll.useChatScroll)();
|
|
39
|
+
const dimensions = (0, _reactNative.useWindowDimensions)();
|
|
40
|
+
const ref = (0, _react.useRef)(null);
|
|
49
41
|
const isOpen = (0, _effectorReact.useUnit)(model.$isOpen);
|
|
50
42
|
const isHelpRequestPending = (0, _effectorReact.useUnit)(model.sendHelpRequestFx.pending);
|
|
43
|
+
const isTextToSpeechPending = (0, _effectorReact.useUnit)(model.api.textToSpeechTextFx.pending);
|
|
44
|
+
const audioStatus = (0, _effectorReact.useUnit)(model.t2s.$status);
|
|
45
|
+
const currentPlayingId = (0, _effectorReact.useUnit)(model.t2s.$currentPlayingId);
|
|
46
|
+
const highlightedWordIndex = (0, _effectorReact.useUnit)(model.t2s.wordHighlight.$highlightedWordIndex);
|
|
47
|
+
const isTranslated = (0, _effectorReact.useUnit)(model.translation.$isTranslated);
|
|
48
|
+
const errorSpottingEnabled = (0, _effectorReact.useUnit)(model.errorSpotting.$isEnabled);
|
|
51
49
|
const messages = (0, _effectorReact.useStoreMap)(model.$currentChatData, ({
|
|
52
50
|
messages
|
|
53
51
|
}) => messages);
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
TTSHighlightRenderer: TTSHighlightRenderer
|
|
69
|
-
}), [lastBotMessageId, colorScheme, isInputDisabled, isTextToSpeechEnabled, shouldWrapMessage]);
|
|
70
|
-
const listHeader = (0, _react.useMemo)(() => /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageLoader.MessageLoader, {
|
|
71
|
-
isLoading: isHelpRequestPending && (messages.at(-1)?.isOwnMessage || messages.length === 0)
|
|
72
|
-
}), [isHelpRequestPending, messages]);
|
|
73
|
-
(0, _react.useEffect)(() => {
|
|
74
|
-
scrollToBottom();
|
|
75
|
-
}, [messages.length]);
|
|
76
|
-
(0, _react.useEffect)(() => {
|
|
77
|
-
if (!isOpen) reset();
|
|
78
|
-
}, [isOpen]);
|
|
79
|
-
if (!isOpen) return null;
|
|
52
|
+
const lastMessageId = messages.at(-1)?.id;
|
|
53
|
+
const renderedCountRef = (0, _react.useRef)(messages.length);
|
|
54
|
+
const [showBottomFade, setShowBottomFade] = (0, _react.useState)(false);
|
|
55
|
+
const handleScroll = (0, _react.useCallback)(e => {
|
|
56
|
+
const {
|
|
57
|
+
contentOffset,
|
|
58
|
+
layoutMeasurement,
|
|
59
|
+
contentSize
|
|
60
|
+
} = e.nativeEvent;
|
|
61
|
+
const isAtBottom = contentOffset.y + layoutMeasurement.height >= contentSize.height - SCROLL_BOTTOM_THRESHOLD;
|
|
62
|
+
setShowBottomFade(!isAtBottom);
|
|
63
|
+
}, []);
|
|
64
|
+
const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET;
|
|
65
|
+
const shouldWrapMessage = MessageWrapper && isInputDisabled && messages.length === 1;
|
|
80
66
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
81
67
|
style: [styles.container, {
|
|
82
|
-
maxHeight
|
|
68
|
+
maxHeight: MAX_HEIGHT
|
|
83
69
|
}],
|
|
84
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
70
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
bounces: false,
|
|
73
|
+
contentContainerStyle: styles.list,
|
|
74
|
+
onScroll: handleScroll,
|
|
75
|
+
scrollEventThrottle: 16,
|
|
76
|
+
onContentSizeChange: (_, height) => {
|
|
77
|
+
if (messages.length > 1) {
|
|
78
|
+
ref.current?.scrollToEnd();
|
|
79
|
+
}
|
|
80
|
+
if (height >= MAX_HEIGHT) {
|
|
81
|
+
model.setScrollActive(true);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
children: isOpen && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
85
|
+
style: [styles.gap, isInputDisabled && styles.messagesWithoutInput],
|
|
86
|
+
children: [messages.map((message, index) => {
|
|
87
|
+
const key = `${message.id}-${index}`;
|
|
88
|
+
const isPlayingMessage = message.id === currentPlayingId;
|
|
89
|
+
const messageHighlightIndex = model.t2s.isWordHighlightEnabled && isPlayingMessage ? highlightedWordIndex : -1;
|
|
90
|
+
const isNew = index >= renderedCountRef.current;
|
|
91
|
+
const hasIcon = !message.isOwnMessage && message.id === lastMessageId;
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
93
|
+
style: hasIcon ? styles.messageWithIcon : undefined,
|
|
94
|
+
children: [hasIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
95
|
+
style: styles.icon,
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
|
|
97
|
+
width: 53,
|
|
98
|
+
height: 73
|
|
99
|
+
})
|
|
100
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AnimatedMessage.AnimatedMessage, {
|
|
101
|
+
animate: isNew && !hasIcon,
|
|
102
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ConditionalWrapper.ConditionalWrapper, {
|
|
103
|
+
withWrapper: shouldWrapMessage,
|
|
104
|
+
Wrapper: MessageWrapper,
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatMessage.ChatMessage, {
|
|
106
|
+
isTranslated: isTranslated,
|
|
107
|
+
message: message,
|
|
108
|
+
variant: message.isOwnMessage ? _modelTypes.MessageVariant.SENT : _modelTypes.MessageVariant.RECEIVED,
|
|
109
|
+
colorScheme: colorScheme,
|
|
110
|
+
withErrorSpotting: errorSpottingEnabled && !message.isOwnMessage,
|
|
111
|
+
highlightedWordIndex: messageHighlightIndex,
|
|
112
|
+
TTSHighlightRenderer: TTSHighlightRenderer,
|
|
113
|
+
t2sState: {
|
|
114
|
+
isEnabled: isTextToSpeechEnabled && !message.isOwnMessage,
|
|
115
|
+
isActive: isPlayingMessage,
|
|
116
|
+
isLoading: isTextToSpeechPending,
|
|
117
|
+
status: audioStatus,
|
|
118
|
+
disabled: isTextToSpeechPending
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
})]
|
|
123
|
+
}, key);
|
|
124
|
+
}), isHelpRequestPending && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MessageLoader.MessageLoader, {})]
|
|
125
|
+
})
|
|
126
|
+
}), showBottomFade && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
127
|
+
style: styles.bottomFade,
|
|
128
|
+
pointerEvents: "none"
|
|
129
|
+
}), isOpen && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
130
|
+
style: styles.inputRow,
|
|
131
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CloseButton.CloseButton, {
|
|
132
|
+
onPress: onPressClose
|
|
133
|
+
}), !isInputDisabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatInput.ChatInput, {
|
|
134
|
+
isHintFeedback: isHintFeedback,
|
|
135
|
+
colorScheme: colorScheme,
|
|
136
|
+
hasMessages: messages.length > 1
|
|
107
137
|
})]
|
|
108
|
-
}), !isScrolledUp && !isInputDisabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatIcon.ChatIcon, {
|
|
109
|
-
isLoading: isHelpRequestPending
|
|
110
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatInputBlock.ChatInputBlock, {
|
|
111
|
-
isHintFeedback: isHintFeedback,
|
|
112
|
-
isInputDisabled: isInputDisabled,
|
|
113
|
-
colorScheme: colorScheme,
|
|
114
|
-
hasMessages: messages.length > 1,
|
|
115
|
-
onPressClose: onPressClose
|
|
116
138
|
})]
|
|
117
139
|
});
|
|
118
140
|
};
|
|
119
141
|
exports.Chat = Chat;
|
|
120
142
|
const styles = _reactNative.StyleSheet.create({
|
|
121
143
|
container: {
|
|
144
|
+
flex: 1,
|
|
122
145
|
alignItems: 'flex-end',
|
|
123
|
-
width:
|
|
124
|
-
|
|
146
|
+
// width: 378,
|
|
147
|
+
height: '100%',
|
|
148
|
+
paddingRight: _reactNativeUi.SPACING['200']
|
|
125
149
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
alignSelf: 'stretch'
|
|
150
|
+
list: {
|
|
151
|
+
alignItems: 'flex-end',
|
|
152
|
+
paddingVertical: 2
|
|
130
153
|
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
flexShrink: 1,
|
|
134
|
-
alignSelf: 'stretch'
|
|
154
|
+
messagesWithoutInput: {
|
|
155
|
+
marginBottom: _reactNativeUi.SPACING['200']
|
|
135
156
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
157
|
+
inputRow: {
|
|
158
|
+
flexDirection: 'row',
|
|
159
|
+
alignItems: 'center',
|
|
160
|
+
gap: _reactNativeUi.SPACING['200']
|
|
161
|
+
},
|
|
162
|
+
scrollContainer: {
|
|
163
|
+
flex: 1,
|
|
164
|
+
overflow: 'hidden'
|
|
165
|
+
},
|
|
166
|
+
bottomFade: {
|
|
167
|
+
width: 372,
|
|
168
|
+
position: 'absolute',
|
|
169
|
+
bottom: 62,
|
|
170
|
+
right: 0,
|
|
171
|
+
height: 32,
|
|
172
|
+
backgroundImage: 'linear-gradient(to top, rgba(255,255,255), transparent)'
|
|
173
|
+
},
|
|
174
|
+
messageWithIcon: {
|
|
175
|
+
flexDirection: 'row',
|
|
176
|
+
alignItems: 'flex-end'
|
|
177
|
+
},
|
|
178
|
+
icon: {
|
|
179
|
+
marginRight: 8
|
|
139
180
|
},
|
|
140
|
-
|
|
141
|
-
|
|
181
|
+
gap: {
|
|
182
|
+
flex: 1,
|
|
183
|
+
gap: _reactNativeUi.SPACING['200']
|
|
142
184
|
}
|
|
143
185
|
});
|
|
144
186
|
//# sourceMappingURL=Chat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_reactNativeUi","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_reactNativeUi","_ChatbotIcon","_AnimatedMessage","_ChatMessage","_MessageLoader","_ChatInput","_CloseButton","_modelTypes","_styleTypes","_ConditionalWrapper","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SCROLL_BOTTOM_THRESHOLD","TOOLBAR_HEIGHT","BOTTOM_OFFSET","Platform","select","web","Chat","model","isHintFeedback","isTextToSpeechEnabled","isInputDisabled","colorScheme","ColorScheme","Blue","MessageWrapper","TTSHighlightRenderer","onPressClose","dimensions","useWindowDimensions","ref","useRef","isOpen","useUnit","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","audioStatus","t2s","$status","currentPlayingId","$currentPlayingId","highlightedWordIndex","wordHighlight","$highlightedWordIndex","isTranslated","translation","$isTranslated","errorSpottingEnabled","errorSpotting","$isEnabled","messages","useStoreMap","$currentChatData","lastMessageId","at","id","renderedCountRef","length","showBottomFade","setShowBottomFade","useState","handleScroll","useCallback","contentOffset","layoutMeasurement","contentSize","nativeEvent","isAtBottom","y","height","MAX_HEIGHT","shouldWrapMessage","jsxs","View","style","styles","container","maxHeight","children","jsx","ScrollView","bounces","contentContainerStyle","list","onScroll","scrollEventThrottle","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","messagesWithoutInput","map","message","index","key","isPlayingMessage","messageHighlightIndex","isWordHighlightEnabled","isNew","hasIcon","isOwnMessage","messageWithIcon","undefined","icon","ChatbotIcon","width","AnimatedMessage","animate","ConditionalWrapper","withWrapper","Wrapper","ChatMessage","variant","MessageVariant","SENT","RECEIVED","withErrorSpotting","t2sState","isEnabled","isActive","isLoading","status","disabled","MessageLoader","bottomFade","pointerEvents","inputRow","CloseButton","onPress","ChatInput","hasMessages","exports","StyleSheet","create","flex","alignItems","paddingRight","SPACING","paddingVertical","marginBottom","flexDirection","scrollContainer","overflow","position","bottom","right","backgroundImage","marginRight"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Chat/Chat.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAGA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAA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AU;IACpBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,CAAC;IACR9E,MAAM,EAAE,EAAE;IACV+E,eAAe,EAAE;EACnB,CAAQ;EACR7C,eAAe,EAAE;IACfuC,aAAa,EAAE,KAAK;IACpBL,UAAU,EAAE;EACd,CAAC;EACDhC,IAAI,EAAE;IACJ4C,WAAW,EAAE;EACf,CAAC;EACD1D,GAAG,EAAE;IACH6C,IAAI,EAAE,CAAC;IACP7C,GAAG,EAAEgD,sBAAO,CAAC,KAAK;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_CloseIcon","_jsxRuntime","e","__esModule","default","CloseButton","onPress","jsx","Button","style","button","styles","variant","ButtonVariant","PRIMARY","size","ButtonSize","MEDIUM","colorScheme","ButtonColor","WHITE","raiseLevel","children","CloseIcon","width","height","exports","StyleSheet","create","borderRadius","borderColor","COLORS","NEUTRAL_5"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Chat/CloseButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAA8D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMvD,MAAMG,WAAW,GAAGA,CAAC;EAAEC;AAA0B,CAAC,kBACvD,IAAAL,WAAA,CAAAM,GAAA,EAACR,cAAA,CAAAS,MAAM;EACLF,OAAO,EAAEA,OAAQ;EACjBG,KAAK,EAAE;IAAEC,MAAM,EAAEC,MAAM,CAACD;EAAO,CAAE;EACjCE,OAAO,EAAEC,4BAAa,CAACC,OAAQ;EAC/BC,IAAI,EAAEC,yBAAU,CAACC,MAAO;EACxBC,WAAW,EAAEC,0BAAW,CAACC,KAAM;EAC/BC,UAAU,EAAE,CAAE;EAAAC,QAAA,eAEd,IAAArB,WAAA,CAAAM,GAAA,EAACP,UAAA,CAAAuB,SAAS;IAACC,KAAK,EAAE,EAAG;IAACC,MAAM,EAAE;EAAG,CAAE;AAAC,CAC9B,CACT;AAAAC,OAAA,CAAArB,WAAA,GAAAA,WAAA;AAED,MAAMM,MAAM,GAAGgB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,MAAM,EAAE;IACNc,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVI,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAEC,qBAAM,CAACC;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_CloseIcon","_jsxRuntime","e","__esModule","default","CloseButton","onPress","jsx","Button","style","button","styles","variant","ButtonVariant","PRIMARY","size","ButtonSize","MEDIUM","colorScheme","ButtonColor","WHITE","raiseLevel","children","CloseIcon","width","height","exports","StyleSheet","create","borderRadius","paddingHorizontal","borderColor","COLORS","NEUTRAL_5"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Chat/CloseButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAA8D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMvD,MAAMG,WAAW,GAAGA,CAAC;EAAEC;AAA0B,CAAC,kBACvD,IAAAL,WAAA,CAAAM,GAAA,EAACR,cAAA,CAAAS,MAAM;EACLF,OAAO,EAAEA,OAAQ;EACjBG,KAAK,EAAE;IAAEC,MAAM,EAAEC,MAAM,CAACD;EAAO,CAAE;EACjCE,OAAO,EAAEC,4BAAa,CAACC,OAAQ;EAC/BC,IAAI,EAAEC,yBAAU,CAACC,MAAO;EACxBC,WAAW,EAAEC,0BAAW,CAACC,KAAM;EAC/BC,UAAU,EAAE,CAAE;EAAAC,QAAA,eAEd,IAAArB,WAAA,CAAAM,GAAA,EAACP,UAAA,CAAAuB,SAAS;IAACC,KAAK,EAAE,EAAG;IAACC,MAAM,EAAE;EAAG,CAAE;AAAC,CAC9B,CACT;AAAAC,OAAA,CAAArB,WAAA,GAAAA,WAAA;AAED,MAAMM,MAAM,GAAGgB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,MAAM,EAAE;IACNc,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVI,YAAY,EAAE,EAAE;IAChBC,iBAAiB,EAAE,CAAC;IACpBC,WAAW,EAAEC,qBAAM,CAACC;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,13 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ChatControls = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
10
|
var _effectorReact = require("effector-react");
|
|
11
11
|
var _ChatbotIcon = require("../../../../shared/icons/ChatbotIcon.js");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function
|
|
13
|
+
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); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
15
|
const HELP_BUTTON_TIMEOUT_MS = 5000;
|
|
15
16
|
const ChatControls = ({
|
|
16
17
|
model,
|
|
@@ -24,18 +25,14 @@ const ChatControls = ({
|
|
|
24
25
|
}
|
|
25
26
|
}) => {
|
|
26
27
|
const isOpen = (0, _effectorReact.useUnit)(model.$isOpen);
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// setIsHelpButtonVisible(false)
|
|
36
|
-
// }
|
|
37
|
-
// }, [withHelpButton])
|
|
38
|
-
|
|
28
|
+
const [isHelpButtonVisible, setIsHelpButtonVisible] = (0, _react.useState)(withHelpButton);
|
|
29
|
+
(0, _react.useEffect)(() => {
|
|
30
|
+
const timeoutId = setTimeout(() => setIsHelpButtonVisible(false), HELP_BUTTON_TIMEOUT_MS);
|
|
31
|
+
return () => {
|
|
32
|
+
clearTimeout(timeoutId);
|
|
33
|
+
setIsHelpButtonVisible(false);
|
|
34
|
+
};
|
|
35
|
+
}, [withHelpButton]);
|
|
39
36
|
if (isOpen) {
|
|
40
37
|
return null;
|
|
41
38
|
}
|
|
@@ -44,7 +41,13 @@ const ChatControls = ({
|
|
|
44
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonWrapper, {
|
|
45
42
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
46
43
|
style: styles.closedWrapper,
|
|
47
|
-
children: [
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
45
|
+
onPress: onPressChatIcon,
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
|
|
47
|
+
width: iconSize?.width,
|
|
48
|
+
height: iconSize?.height
|
|
49
|
+
})
|
|
50
|
+
}), isHelpButtonVisible && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
48
51
|
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
49
52
|
colorScheme: _reactNativeUi.ButtonColor.WHITE,
|
|
50
53
|
size: _reactNativeUi.ButtonSize.MEDIUM,
|
|
@@ -53,13 +56,7 @@ const ChatControls = ({
|
|
|
53
56
|
style: {
|
|
54
57
|
text: styles.helpButtonText
|
|
55
58
|
},
|
|
56
|
-
children:
|
|
57
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
58
|
-
onPress: onPressChatIcon,
|
|
59
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
|
|
60
|
-
width: iconSize?.width,
|
|
61
|
-
height: iconSize?.height
|
|
62
|
-
})
|
|
59
|
+
children: "Want some help?"
|
|
63
60
|
})]
|
|
64
61
|
})
|
|
65
62
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_effectorReact","_ChatbotIcon","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HELP_BUTTON_TIMEOUT_MS","ChatControls","model","onPressChatIcon","onPressHelpButton","withHelpButton","ButtonWrapper","React","Fragment","iconSize","width","height","isOpen","useUnit","$isOpen","isHelpButtonVisible","setIsHelpButtonVisible","useState","useEffect","timeoutId","setTimeout","clearTimeout","jsx","View","style","styles","container","children","jsxs","closedWrapper","Pressable","onPress","ChatbotIcon","Button","variant","ButtonVariant","PRIMARY","colorScheme","ButtonColor","WHITE","size","ButtonSize","MEDIUM","raiseLevel","text","helpButtonText","exports","StyleSheet","create","alignItems","justifyContent","flexDirection","maxHeight","gap","paddingBottom","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatControls/ChatControls.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,YAAA,GAAAJ,OAAA;AAAkE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA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CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ChatInput = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
10
|
var _effectorReact = require("effector-react");
|
|
11
11
|
var _ChatBotModelContext = require("../../context/ChatBotModelContext.js");
|
|
12
12
|
var _styleTypes = require("../../types/style.types.js");
|
|
@@ -64,9 +64,11 @@ const ChatInput = ({
|
|
|
64
64
|
exports.ChatInput = ChatInput;
|
|
65
65
|
const styles = _reactNative.StyleSheet.create({
|
|
66
66
|
container: {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
flex: 1,
|
|
68
|
+
width: 305,
|
|
69
|
+
alignItems: 'center',
|
|
69
70
|
justifyContent: 'center',
|
|
71
|
+
marginVertical: _reactNativeUi.SPACING['200'],
|
|
70
72
|
marginLeft: 6
|
|
71
73
|
}
|
|
72
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeUi","_effectorReact","_ChatBotModelContext","_styleTypes","_RequestHintButton","_FreeTextInputBlock","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChatInput","isHintFeedback","hasMessages","colorScheme","ColorScheme","Blue","model","useChatModel","alternatives","useUnit","$alternatives","isTranslated","translation","$isTranslated","isTranslationPending","translateAllMessagesFx","pending","isHelpRequestPending","sendHelpRequestFx","lastMessageOptions","useStoreMap","$currentChatData","messages","lastMessage","at","options","option","useMemo","length","shouldShowNextHintOption","hints","optionLabel","translatedText","text","sendMessage","useCallback","message","translatedMessage","shouldDisableInput","jsx","View","style","styles","container","children","isOpenChatEnabled","FreeTextInputBlock","onOptionPress","disabled","RequestHintButton","onPress","label","variant","HintButtonVariant","DEFAULT","exports","StyleSheet","create","flex","width","alignItems","justifyContent","marginVertical","SPACING","marginLeft"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatInput/ChatInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AAAkE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,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AAEV,kBAAmB;MAC7BnC,WAAW,EAAEA;IAAY,CAC1B,CAAC,gBAEF,IAAAxB,WAAA,CAAA4D,GAAA,EAAC9D,kBAAA,CAAAwE,iBAAiB;MAChBC,OAAO,EAAEhB,WAAY;MACrBiB,KAAK,EAAEpB,WAAY;MACnBiB,QAAQ,EAAEV,kBAAmB;MAC7BnC,WAAW,EAAEA,WAAY;MACzBiD,OAAO,EAAEC,oCAAiB,CAACC;IAAQ,CACpC;EACF,CACG,CAAC;AAEX,CAAC;AAAAC,OAAA,CAAAvD,SAAA,GAAAA,SAAA;AAED,MAAM0C,MAAM,GAAGc,uBAAU,CAACC,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,GAAG;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,cAAc,EAAEC,sBAAO,CAAC,KAAK,CAAC;IAC9BC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const MAX_AVAILABLE_MESSAGE_LENGTH = 500;
|
|
19
19
|
const COMPACT_WIDTH = 134;
|
|
20
|
-
const FULL_WIDTH =
|
|
20
|
+
const FULL_WIDTH = 305;
|
|
21
21
|
const ANIMATION_DURATION = 200;
|
|
22
22
|
const ChatTextInput = ({
|
|
23
23
|
value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNative","_reactNativeUi","_studentsFeatures","_useKeyboard","_constants","_SendMessageButton","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MAX_AVAILABLE_MESSAGE_LENGTH","COMPACT_WIDTH","FULL_WIDTH","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNative","_reactNativeUi","_studentsFeatures","_useKeyboard","_constants","_SendMessageButton","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MAX_AVAILABLE_MESSAGE_LENGTH","COMPACT_WIDTH","FULL_WIDTH","ANIMATION_DURATION","ChatTextInput","value","submitDisabled","onSubmit","onChangeText","onBlur","onFocus","colorScheme","ColorScheme","Blue","placeholder","inputRef","useRef","isFocused","setIsFocused","useState","widthSv","useSharedValue","animatedStyle","useAnimatedStyle","width","handleInputChange","text","length","hasText","trim","isExpanded","shouldCollapseInput","shouldExpandInput","withTiming","duration","handleSendMessage","current","focus","handleOnFocus","handleOnBlur","useKeyBoard","enabled","callback","event","key","KeyboardKeys","ENTER","jsxs","View","style","styles","inputWrapper","children","jsx","TextInput","ref","placeholderTextColor","COLORS","NEUTRAL_5","input","SendMessageButton","onPress","disabled","exports","StyleSheet","create","container","position","alignItems","justifyContent","height","zIndex","left","flexDirection","borderWidth","borderColor","borderRadius","backgroundColor","NEUTRAL_1","paddingHorizontal","SPACING","paddingVertical","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","flex","fontSize","minWidth","minHeight","fontWeight","fontFamily","FONT_FAMILY","buenosAires","Platform","OS","outlineStyle","arrowWrapper","marginLeft"],"sourceRoot":"../../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EAAE,CAAC;MAAE8C,MAAM,EAAE;IAAE,CAAC;IACrCe,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE;EAChB,CAAC;EACD3B,KAAK,EAAE;IACL4B,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,0BAAW,CAACC,WAAW;IACnCf,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,eAAe,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC7B,IAAIe,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI;MAAEC,YAAY,EAAE;IAAO,CAAC;EACvD,CAAC;EACDC,YAAY,EAAE;IACZC,UAAU,EAAEnB,sBAAO,CAAC,GAAG;EACzB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -21,7 +21,7 @@ let HintButtonVariant = exports.HintButtonVariant = /*#__PURE__*/function (HintB
|
|
|
21
21
|
const HOVER_ANIMATION_DURATION = 200;
|
|
22
22
|
const REQUEST_HINT_BUTTON = {
|
|
23
23
|
[HintButtonVariant.DEFAULT]: {
|
|
24
|
-
width:
|
|
24
|
+
width: 305,
|
|
25
25
|
fontSize: 20
|
|
26
26
|
},
|
|
27
27
|
[HintButtonVariant.SHORT]: {
|