stream-chat-react-native-core 6.0.0-rc.9 → 6.0.0
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/README.md +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js +53 -0
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -0
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js +59 -0
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -0
- package/lib/commonjs/components/AITypingIndicatorView/index.js +26 -0
- package/lib/commonjs/components/AITypingIndicatorView/index.js.map +1 -0
- package/lib/commonjs/components/Attachment/AudioAttachment.js +27 -22
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +3 -1
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +2 -2
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +37 -133
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +6 -4
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +478 -1045
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js +174 -0
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -0
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +4 -0
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js +3 -3
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +324 -0
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -0
- package/lib/commonjs/components/ChannelList/Skeleton.js +7 -3
- package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +85 -45
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +17 -91
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +3 -24
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +2 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js +121 -0
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -0
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js +35 -0
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -0
- package/lib/commonjs/components/Chat/Chat.js +5 -1
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +15 -9
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +0 -4
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +46 -46
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +3 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js +2 -2
- package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +7 -0
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +17 -4
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +15 -6
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/StreamingMessageView.js +36 -0
- package/lib/commonjs/components/Message/MessageSimple/StreamingMessageView.js.map +1 -0
- package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js +9 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +209 -23
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +2 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useStreamingMessage.js +43 -0
- package/lib/commonjs/components/Message/hooks/useStreamingMessage.js.map +1 -0
- package/lib/commonjs/components/MessageInput/MessageInput.js +41 -21
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js +39 -0
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js.map +1 -0
- package/lib/commonjs/components/MessageList/MessageList.js +74 -73
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +4 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +3 -2
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js +14 -9
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js +2 -8
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/Button.js +9 -474
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js +2 -2
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +9 -4
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +99 -26
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollButtons.js +291 -0
- package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +14 -4
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +7 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +88 -6
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +2 -2
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +62 -67
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js +89 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js.map +1 -0
- package/lib/commonjs/components/Poll/components/index.js +11 -0
- package/lib/commonjs/components/Poll/components/index.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +0 -3
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +11 -5
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/components/index.js +66 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +0 -35
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +7 -84
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +4 -2
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -0
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +15 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/en.json +2 -0
- package/lib/commonjs/i18n/es.json +2 -0
- package/lib/commonjs/i18n/fr.json +2 -0
- package/lib/commonjs/i18n/he.json +2 -0
- package/lib/commonjs/i18n/hi.json +2 -0
- package/lib/commonjs/i18n/it.json +2 -0
- package/lib/commonjs/i18n/ja.json +2 -0
- package/lib/commonjs/i18n/ko.json +2 -0
- package/lib/commonjs/i18n/nl.json +2 -0
- package/lib/commonjs/i18n/pt-br.json +2 -0
- package/lib/commonjs/i18n/ru.json +2 -0
- package/lib/commonjs/i18n/tr.json +2 -0
- package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js +14 -0
- package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -0
- package/lib/commonjs/mock-builders/event/notificationMarkRead.js +14 -0
- package/lib/commonjs/mock-builders/event/notificationMarkRead.js.map +1 -0
- package/lib/commonjs/mock-builders/event/notificationMarkUnread.js +17 -0
- package/lib/commonjs/mock-builders/event/notificationMarkUnread.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/channel.js +1 -0
- package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
- package/lib/commonjs/store/SqliteClient.js +11 -2
- package/lib/commonjs/store/SqliteClient.js.map +1 -1
- package/lib/commonjs/utils/getTrimmedAttachmentTitle.js +8 -2
- package/lib/commonjs/utils/getTrimmedAttachmentTitle.js.map +1 -1
- package/lib/commonjs/utils/utils.js +3 -2
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js +53 -0
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -0
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js +59 -0
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -0
- package/lib/module/components/AITypingIndicatorView/index.js +26 -0
- package/lib/module/components/AITypingIndicatorView/index.js.map +1 -0
- package/lib/module/components/Attachment/AudioAttachment.js +27 -22
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +3 -1
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +2 -2
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +37 -133
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +6 -4
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +478 -1045
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useChannelDataState.js +174 -0
- package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -0
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +4 -0
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js +3 -3
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js +324 -0
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -0
- package/lib/module/components/ChannelList/Skeleton.js +7 -3
- package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +85 -45
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +17 -91
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +3 -24
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +2 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js +121 -0
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -0
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js +35 -0
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -0
- package/lib/module/components/Chat/Chat.js +5 -1
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +15 -9
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +0 -4
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +46 -46
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +3 -4
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js +2 -2
- package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
- package/lib/module/components/Message/Message.js +7 -0
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +17 -4
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +15 -6
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/StreamingMessageView.js +36 -0
- package/lib/module/components/Message/MessageSimple/StreamingMessageView.js.map +1 -0
- package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js +9 -1
- package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.js +209 -23
- package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +2 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useStreamingMessage.js +43 -0
- package/lib/module/components/Message/hooks/useStreamingMessage.js.map +1 -0
- package/lib/module/components/MessageInput/MessageInput.js +41 -21
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js +39 -0
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js.map +1 -0
- package/lib/module/components/MessageList/MessageList.js +74 -73
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +4 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +3 -2
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/Poll/CreatePollContent.js +14 -9
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/module/components/Poll/Poll.js +2 -8
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/Button.js +9 -474
- package/lib/module/components/Poll/components/Button.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollIcon.js +2 -2
- package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +9 -4
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/PollAnswersList.js +99 -26
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/module/components/Poll/components/PollButtons.js +291 -0
- package/lib/module/components/Poll/components/PollButtons.js.map +1 -0
- package/lib/module/components/Poll/components/PollInputDialog.js +14 -4
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +7 -1
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +88 -6
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +2 -2
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +62 -67
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollVote.js +89 -0
- package/lib/module/components/Poll/components/PollResults/PollVote.js.map +1 -0
- package/lib/module/components/Poll/components/index.js +11 -0
- package/lib/module/components/Poll/components/index.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +0 -3
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +11 -5
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/components/index.js +66 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +0 -35
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js +7 -84
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +4 -2
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -0
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +15 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/en.json +2 -0
- package/lib/module/i18n/es.json +2 -0
- package/lib/module/i18n/fr.json +2 -0
- package/lib/module/i18n/he.json +2 -0
- package/lib/module/i18n/hi.json +2 -0
- package/lib/module/i18n/it.json +2 -0
- package/lib/module/i18n/ja.json +2 -0
- package/lib/module/i18n/ko.json +2 -0
- package/lib/module/i18n/nl.json +2 -0
- package/lib/module/i18n/pt-br.json +2 -0
- package/lib/module/i18n/ru.json +2 -0
- package/lib/module/i18n/tr.json +2 -0
- package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js +14 -0
- package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -0
- package/lib/module/mock-builders/event/notificationMarkRead.js +14 -0
- package/lib/module/mock-builders/event/notificationMarkRead.js.map +1 -0
- package/lib/module/mock-builders/event/notificationMarkUnread.js +17 -0
- package/lib/module/mock-builders/event/notificationMarkUnread.js.map +1 -0
- package/lib/module/mock-builders/generator/channel.js +1 -0
- package/lib/module/mock-builders/generator/channel.js.map +1 -1
- package/lib/module/store/SqliteClient.js +11 -2
- package/lib/module/store/SqliteClient.js.map +1 -1
- package/lib/module/utils/getTrimmedAttachmentTitle.js +8 -2
- package/lib/module/utils/getTrimmedAttachmentTitle.js.map +1 -1
- package/lib/module/utils/utils.js +3 -2
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AITypingIndicatorView/AITypingIndicatorView.d.ts +11 -0
- package/lib/typescript/components/AITypingIndicatorView/AITypingIndicatorView.d.ts.map +1 -0
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts +18 -0
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts.map +1 -0
- package/lib/typescript/components/AITypingIndicatorView/index.d.ts +3 -0
- package/lib/typescript/components/AITypingIndicatorView/index.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +7 -6
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +75 -0
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +128 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +28 -0
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/Skeleton.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +8 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +8 -0
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -0
- package/lib/typescript/components/Chat/Chat.d.ts +7 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/StreamingMessageView.d.ts +12 -0
- package/lib/typescript/components/Message/MessageSimple/StreamingMessageView.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +16 -1
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useStreamingMessage.d.ts +17 -0
- package/lib/typescript/components/Message/hooks/useStreamingMessage.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts +10 -0
- package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -1
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +3 -2
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/Poll.d.ts +0 -1
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/Button.d.ts +0 -17
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +2 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollButtons.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollButtons.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts +2 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +11 -4
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts +6 -0
- package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/index.d.ts +1 -0
- package/lib/typescript/components/Poll/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +6 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +27 -25
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +0 -16
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +7 -13
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +2 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +4 -0
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +2 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +8 -4
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +17 -16
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +16 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +2 -0
- package/lib/typescript/i18n/es.json +2 -0
- package/lib/typescript/i18n/fr.json +2 -0
- package/lib/typescript/i18n/he.json +2 -0
- package/lib/typescript/i18n/hi.json +2 -0
- package/lib/typescript/i18n/it.json +2 -0
- package/lib/typescript/i18n/ja.json +2 -0
- package/lib/typescript/i18n/ko.json +2 -0
- package/lib/typescript/i18n/nl.json +2 -0
- package/lib/typescript/i18n/pt-br.json +2 -0
- package/lib/typescript/i18n/ru.json +2 -0
- package/lib/typescript/i18n/tr.json +2 -0
- package/lib/typescript/store/SqliteClient.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +3 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +2 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx +50 -0
- package/src/components/AITypingIndicatorView/hooks/useAIState.ts +68 -0
- package/src/components/AITypingIndicatorView/index.ts +2 -0
- package/src/components/Attachment/AudioAttachment.tsx +20 -19
- package/src/components/Attachment/Gallery.tsx +1 -1
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +7 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +16 -32
- package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +3 -5
- package/src/components/Channel/Channel.tsx +262 -821
- package/src/components/Channel/__tests__/Channel.test.js +244 -13
- package/src/components/Channel/__tests__/useMessageListPagination.test.js +419 -0
- package/src/components/Channel/hooks/useChannelDataState.ts +235 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -0
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -0
- package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +3 -10
- package/src/components/Channel/hooks/useMessageListPagination.tsx +246 -0
- package/src/components/ChannelList/Skeleton.tsx +9 -1
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +37 -30
- package/src/components/ChannelPreview/ChannelPreview.tsx +28 -107
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +5 -15
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +2 -7
- package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +226 -10
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +1 -1
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewMuted.test.tsx +62 -0
- package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +138 -0
- package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts +29 -0
- package/src/components/Chat/Chat.tsx +11 -2
- package/src/components/Chat/hooks/__tests__/useAppSettings.test.tsx +1 -0
- package/src/components/Chat/hooks/useAppSettings.ts +2 -0
- package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
- package/src/components/Chat/hooks/useIsOnline.ts +0 -5
- package/src/components/ImageGallery/ImageGallery.tsx +1 -0
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +32 -32
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +5 -6
- package/src/components/ImageGallery/hooks/useAnimatedGalleryStyle.tsx +2 -2
- package/src/components/Message/Message.tsx +16 -2
- package/src/components/Message/MessageSimple/MessageContent.tsx +22 -2
- package/src/components/Message/MessageSimple/MessageFooter.tsx +16 -5
- package/src/components/Message/MessageSimple/StreamingMessageView.tsx +34 -0
- package/src/components/Message/MessageSimple/utils/generateMarkdownText.ts +15 -1
- package/src/components/Message/MessageSimple/utils/renderText.tsx +207 -3
- package/src/components/Message/hooks/useCreateMessageContext.ts +2 -0
- package/src/components/Message/hooks/useStreamingMessage.ts +54 -0
- package/src/components/MessageInput/MessageInput.tsx +38 -20
- package/src/components/MessageInput/StopMessageStreamingButton.tsx +34 -0
- package/src/components/MessageInput/__tests__/MessageInput.test.js +116 -2
- package/src/components/MessageList/MessageList.tsx +53 -85
- package/src/components/MessageList/ScrollToBottomButton.tsx +1 -1
- package/src/components/MessageList/__tests__/MessageList.test.js +174 -2
- package/src/components/MessageList/__tests__/ScrollToBottomButton.test.js +3 -3
- package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.js.snap +1 -1
- package/src/components/MessageList/hooks/useMessageList.ts +2 -5
- package/src/components/MessageList/utils/getReadStates.ts +3 -2
- package/src/components/MessageMenu/MessageUserReactions.tsx +1 -1
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +4 -2
- package/src/components/MessageMenu/hooks/useFetchReactions.ts +6 -3
- package/src/components/Poll/CreatePollContent.tsx +4 -4
- package/src/components/Poll/Poll.tsx +1 -20
- package/src/components/Poll/components/Button.tsx +8 -420
- package/src/components/Poll/components/CreatePollIcon.tsx +1 -1
- package/src/components/Poll/components/CreatePollOptions.tsx +9 -4
- package/src/components/Poll/components/PollAnswersList.tsx +66 -3
- package/src/components/Poll/components/PollButtons.tsx +241 -0
- package/src/components/Poll/components/PollInputDialog.tsx +9 -6
- package/src/components/Poll/components/PollModalHeader.tsx +3 -3
- package/src/components/Poll/components/PollOption.tsx +74 -4
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +1 -1
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +68 -52
- package/src/components/Poll/components/PollResults/PollVote.tsx +68 -0
- package/src/components/Poll/components/index.ts +1 -0
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +37 -4
- package/src/components/ThreadList/ThreadList.tsx +0 -2
- package/src/components/UIComponents/BottomSheetModal.tsx +7 -3
- package/src/components/index.ts +7 -0
- package/src/contexts/channelContext/ChannelContext.tsx +35 -25
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +1 -67
- package/src/contexts/channelsStateContext/useChannelState.ts +6 -108
- package/src/contexts/chatContext/ChatContext.tsx +2 -1
- package/src/contexts/messageContext/MessageContext.tsx +4 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +5 -1
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +8 -3
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +17 -16
- package/src/contexts/themeContext/utils/theme.ts +30 -1
- package/src/i18n/en.json +2 -0
- package/src/i18n/es.json +2 -0
- package/src/i18n/fr.json +2 -0
- package/src/i18n/he.json +2 -0
- package/src/i18n/hi.json +2 -0
- package/src/i18n/it.json +2 -0
- package/src/i18n/ja.json +2 -0
- package/src/i18n/ko.json +2 -0
- package/src/i18n/nl.json +2 -0
- package/src/i18n/pt-br.json +2 -0
- package/src/i18n/ru.json +2 -0
- package/src/i18n/tr.json +2 -0
- package/src/mock-builders/event/notificationChannelMutesUpdated.js +7 -0
- package/src/mock-builders/event/notificationMarkRead.js +7 -0
- package/src/mock-builders/event/notificationMarkUnread.js +9 -0
- package/src/mock-builders/generator/channel.ts +1 -0
- package/src/store/SqliteClient.ts +5 -1
- package/src/types/types.ts +3 -0
- package/src/utils/getTrimmedAttachmentTitle.ts +10 -2
- package/src/utils/utils.ts +5 -2
- package/src/version.json +1 -1
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "झंडा",
|
|
39
39
|
"Flag Message": "झंडा संदेश",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "फ़्लैग कार्रवाई या तो नेटवर्क समस्या के कारण विफल हो गई या संदेश पहले से फ़्लैग किया गया है।",
|
|
41
|
+
"Generating...": "जनरेट कर रहा है...",
|
|
41
42
|
"Hold to start recording.": "रिकॉर्डिंग शुरू करने के लिए दबाएं।",
|
|
42
43
|
"How about sending your first message to a friend?": "किसी मित्र को अपना पहला संदेश भेजने के बारे में क्या ख़याल है?",
|
|
43
44
|
"Instant Commands": "त्वरित कमांड",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"Suggest an option": "एक विकल्प सुझाएं",
|
|
96
97
|
"The message has been reported to a moderator.": "संदेश एक मॉडरेटर को सूचित किया गया है।",
|
|
97
98
|
"The source message was deleted": "स्रोत संदेश हटा दिया गया है",
|
|
99
|
+
"Thinking...": "सोच रहा है...",
|
|
98
100
|
"This is already an option": "यह पहले से एक विकल्प है",
|
|
99
101
|
"This reply was deleted": "यह उत्तर हटा दिया गया है",
|
|
100
102
|
"Thread Reply": "धागा जवाब",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "Contrassegna",
|
|
39
39
|
"Flag Message": "Contrassegna Messaggio",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "L'azione di segnalazione non è riuscita a causa di un problema di rete o il messaggio è già segnalato.",
|
|
41
|
+
"Generating...": "Generando...",
|
|
41
42
|
"Hold to start recording.": "Tieni premuto per avviare la registrazione.",
|
|
42
43
|
"How about sending your first message to a friend?": "Che ne dici di inviare il tuo primo messaggio ad un amico?",
|
|
43
44
|
"Instant Commands": "Comandi Istantanei",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"Suggest an option": "Suggerisci un'opzione",
|
|
98
99
|
"The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",
|
|
99
100
|
"The source message was deleted": "Il messaggio originale è stato eliminato",
|
|
101
|
+
"Thinking...": "Pensando...",
|
|
100
102
|
"This is already an option": "Questa è già un'opzione",
|
|
101
103
|
"This reply was deleted": "Questa risposta è stata eliminata",
|
|
102
104
|
"Thread Reply": "Rispondi alla Discussione",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "フラグ",
|
|
39
39
|
"Flag Message": "メッセージをフラグする",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "ネットワーク接続に問題があるか、すでにフラグが設定されているため、フラグが失敗しました。",
|
|
41
|
+
"Generating...": "生成中...",
|
|
41
42
|
"Hold to start recording.": "録音を開始するには押し続けてください。",
|
|
42
43
|
"How about sending your first message to a friend?": "初めてのメッセージを友達に送ってみてはいかがでしょうか?",
|
|
43
44
|
"Instant Commands": "インスタントコマンド",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"Suggest an option": "オプションを提案",
|
|
96
97
|
"The message has been reported to a moderator.": "メッセージはモデレーターに報告されました。",
|
|
97
98
|
"The source message was deleted": "元のメッセージが削除されました",
|
|
99
|
+
"Thinking...": "考え中...",
|
|
98
100
|
"This is already an option": "これはすでにオプションです",
|
|
99
101
|
"This reply was deleted": "この返信は削除されました",
|
|
100
102
|
"Thread Reply": "スレッドの返信",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "플래그",
|
|
39
39
|
"Flag Message": "메시지를 플래그하기",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "네트워크 연결에 문제가 있거나 이미 플래그 되어서 플래그에 실패했습니다.",
|
|
41
|
+
"Generating...": "생성 중...",
|
|
41
42
|
"Hold to start recording.": "녹음을 시작하려면 눌러주세요.",
|
|
42
43
|
"How about sending your first message to a friend?": "친구에게 첫 번째 메시지를 보내는 것은 어떻습니까?",
|
|
43
44
|
"Instant Commands": "인스턴트 명령",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"Suggest an option": "옵션 제안",
|
|
96
97
|
"The message has been reported to a moderator.": "메시지는 운영자에보고되었습니다.",
|
|
97
98
|
"The source message was deleted": "원본 메시지가 삭제되었습니다",
|
|
99
|
+
"Thinking...": "생각 중...",
|
|
98
100
|
"This is already an option": "이미 존재하는 옵션입니다",
|
|
99
101
|
"This reply was deleted": "이 답글은 삭제되었습니다",
|
|
100
102
|
"Thread Reply": "스레드\u3000답장",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "Markeer",
|
|
39
39
|
"Flag Message": "Markeer bericht",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
|
|
41
|
+
"Generating...": "Aan het genereren...",
|
|
41
42
|
"Hold to start recording.": "Houd vast om opname te starten.",
|
|
42
43
|
"How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
|
|
43
44
|
"Instant Commands": "Directe Opdrachten",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"Suggest an option": "Stel een optie voor",
|
|
96
97
|
"The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
|
|
97
98
|
"The source message was deleted": "Het oorspronkelijke bericht is verwijderd",
|
|
99
|
+
"Thinking...": "Aan het denken...",
|
|
98
100
|
"This is already an option": "Dit is al een optie",
|
|
99
101
|
"This reply was deleted": "Deze reactie is verwijderd",
|
|
100
102
|
"Thread Reply": "Discussie beantwoorden",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "Reportar",
|
|
39
39
|
"Flag Message": "Reportar Mensagem",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "A ação para reportar a mensagem falhou devido a um problema de rede ou a mensagem já foi reportada.",
|
|
41
|
+
"Generating...": "Gerando...",
|
|
41
42
|
"Hold to start recording.": "Mantenha pressionado para começar a gravar.",
|
|
42
43
|
"How about sending your first message to a friend?": "Que tal enviar sua primeira mensagem para um amigo?",
|
|
43
44
|
"Instant Commands": "Comandos Instantâneos",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"Suggest an option": "Sugerir uma opção",
|
|
98
99
|
"The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
|
|
99
100
|
"The source message was deleted": "A mensagem original foi excluída",
|
|
101
|
+
"Thinking...": "Pensando...",
|
|
100
102
|
"This is already an option": "Isso já é uma opção",
|
|
101
103
|
"This reply was deleted": "Esta resposta foi excluída",
|
|
102
104
|
"Thread Reply": "Respostas de Tópico",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "Пометить",
|
|
39
39
|
"Flag Message": "Пометить сообщение",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
|
|
41
|
+
"Generating...": "Генерирую...",
|
|
41
42
|
"Hold to start recording.": "Удерживайте, чтобы начать запись.",
|
|
42
43
|
"How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
|
|
43
44
|
"Instant Commands": "Мгновенные Команды",
|
|
@@ -99,6 +100,7 @@
|
|
|
99
100
|
"Suggest an option": "Предложить вариант",
|
|
100
101
|
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
|
|
101
102
|
"The source message was deleted": "Исходное сообщение было удалено",
|
|
103
|
+
"Thinking...": "Думаю...",
|
|
102
104
|
"This is already an option": "Это уже вариант",
|
|
103
105
|
"This reply was deleted": "Этот ответ был удалён",
|
|
104
106
|
"Thread Reply": "Тема Ответить",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"Flag": "Raporla",
|
|
39
39
|
"Flag Message": "Mesajı Raporla",
|
|
40
40
|
"Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
|
|
41
|
+
"Generating...": "Oluşturuluyor...",
|
|
41
42
|
"Hold to start recording.": "Kayıt yapmak için basılı tutun.",
|
|
42
43
|
"How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
|
|
43
44
|
"Instant Commands": "Anlık Komutlar",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"Suggest an option": "Bir seçenek öner",
|
|
96
97
|
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
|
|
97
98
|
"The source message was deleted": "Kaynak mesaj silindi",
|
|
99
|
+
"Thinking...": "Düşünüyor...",
|
|
98
100
|
"This is already an option": "Bu zaten bir seçenek",
|
|
99
101
|
"This reply was deleted": "Bu yanıt silindi",
|
|
100
102
|
"Thread Reply": "Konu Yanıtı",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqliteClient.d.ts","sourceRoot":"","sources":["../../../src/store/SqliteClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,2BAA2B,CAAC;AAkB9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,SAAS,CAAC;AAEtD;;;GAGG;AACH,qBAAa,YAAY;IACvB,MAAM,CAAC,SAAS,SAAK;IAErB,MAAM,CAAC,MAAM,SAAW;IACxB,MAAM,CAAC,UAAU,SAAe;IAChC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,SAAS,CAAC;IAE1B,MAAM,CAAC,YAAY,eAAgC;IAEnD,MAAM,CAAC,YAAY,YAAa,MAAM,YAAwC;IAE9E,MAAM,CAAC,MAAM,sBAmBX;IAEF,MAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"SqliteClient.d.ts","sourceRoot":"","sources":["../../../src/store/SqliteClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,2BAA2B,CAAC;AAkB9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,SAAS,CAAC;AAEtD;;;GAGG;AACH,qBAAa,YAAY;IACvB,MAAM,CAAC,SAAS,SAAK;IAErB,MAAM,CAAC,MAAM,SAAW;IACxB,MAAM,CAAC,UAAU,SAAe;IAChC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,SAAS,CAAC;IAE1B,MAAM,CAAC,YAAY,eAAgC;IAEnD,MAAM,CAAC,YAAY,YAAa,MAAM,YAAwC;IAE9E,MAAM,CAAC,MAAM,sBAmBX;IAEF,MAAM,CAAC,OAAO,aAaZ;IAEF,MAAM,CAAC,eAAe,YAAmB,eAAe,EAAE,mBAexD;IAEF,MAAM,CAAC,UAAU,UAAiB,MAAM,WAAW,MAAM,EAAE,oBAezD;IAEF,MAAM,CAAC,UAAU,sBASf;IAEF,MAAM,CAAC,cAAc,gBAoBnB;IAEF,MAAM,CAAC,kBAAkB,sBA8BvB;IAEF,MAAM,CAAC,uBAAuB,YAAmB,MAAM,mBAMrD;IAEF,MAAM,CAAC,oBAAoB,wBAezB;IAEF,MAAM,CAAC,OAAO,sBAOZ;CACH"}
|
|
@@ -18,6 +18,7 @@ export type Asset = {
|
|
|
18
18
|
uri: string;
|
|
19
19
|
width: number;
|
|
20
20
|
id?: string;
|
|
21
|
+
originalUri?: string;
|
|
21
22
|
size?: number;
|
|
22
23
|
};
|
|
23
24
|
export type File = {
|
|
@@ -25,6 +26,7 @@ export type File = {
|
|
|
25
26
|
duration?: number;
|
|
26
27
|
id?: string;
|
|
27
28
|
mimeType?: string;
|
|
29
|
+
originalUri?: string;
|
|
28
30
|
size?: number;
|
|
29
31
|
type?: FileTypes;
|
|
30
32
|
uri?: string;
|
|
@@ -76,6 +78,7 @@ export interface DefaultStreamChatGenerics extends ExtendableGenerics {
|
|
|
76
78
|
channelType: DefaultChannelType;
|
|
77
79
|
commandType: LiteralStringForUnion;
|
|
78
80
|
eventType: UnknownType;
|
|
81
|
+
memberType: UnknownType;
|
|
79
82
|
messageType: UnknownType;
|
|
80
83
|
reactionType: UnknownType;
|
|
81
84
|
userType: DefaultUserType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ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,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,UAAU,eAAgB,SAAQ,WAAW;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,kBAAmB,SAAQ,WAAW;IAC9C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,cAAc,EAAE,qBAAqB,CAAC;IACtC,WAAW,EAAE,kBAAkB,CAAC;IAChC,WAAW,EAAE,qBAAqB,CAAC;IACnC,SAAS,EAAE,WAAW,CAAC;IACvB,UAAU,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAElD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTrimmedAttachmentTitle.d.ts","sourceRoot":"","sources":["../../../src/utils/getTrimmedAttachmentTitle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTrimmedAttachmentTitle.d.ts","sourceRoot":"","sources":["../../../src/utils/getTrimmedAttachmentTitle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,WAAY,MAAM,WAUvD,CAAC"}
|
|
@@ -163,6 +163,7 @@ export declare class Streami18n {
|
|
|
163
163
|
Flag: string;
|
|
164
164
|
"Flag Message": string;
|
|
165
165
|
"Flag action failed either due to a network issue or the message is already flagged": string;
|
|
166
|
+
"Generating...": string;
|
|
166
167
|
"Hold to start recording.": string;
|
|
167
168
|
"How about sending your first message to a friend?": string;
|
|
168
169
|
"Instant Commands": string;
|
|
@@ -220,6 +221,7 @@ export declare class Streami18n {
|
|
|
220
221
|
"Suggest an option": string;
|
|
221
222
|
"The message has been reported to a moderator.": string;
|
|
222
223
|
"The source message was deleted": string;
|
|
224
|
+
"Thinking...": string;
|
|
223
225
|
"This is already an option": string;
|
|
224
226
|
"This reply was deleted": string;
|
|
225
227
|
"Thread Reply": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EAErB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAahD,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,OAAO,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAoGnE,KAAK,oBAAoB,GAAG,OAAO,KAAK,GAAG,OAAO,cAAc,CAAC;AAajE,KAAK,iBAAiB,GAAG;IACvB,cAAc,CAAC,EAAE,oBAAoB,CAA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C;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAExC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "6.0.0
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@gorhom/bottom-sheet": "^
|
|
69
|
+
"@gorhom/bottom-sheet": "^5.0.6",
|
|
70
70
|
"dayjs": "1.10.5",
|
|
71
71
|
"emoji-regex": "^10.3.0",
|
|
72
72
|
"i18next": "^21.6.14",
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"path": "0.12.7",
|
|
78
78
|
"react-native-markdown-package": "1.8.2",
|
|
79
79
|
"react-native-url-polyfill": "^1.3.0",
|
|
80
|
-
"stream-chat": "8.
|
|
80
|
+
"stream-chat": "8.46.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@op-engineering/op-sqlite": ">=9.3.0",
|
|
84
84
|
"@react-native-community/netinfo": ">=11.3.1",
|
|
85
85
|
"react-native": ">=0.67.0",
|
|
86
|
-
"react-native-gesture-handler": ">=2.
|
|
87
|
-
"react-native-reanimated": ">=3.
|
|
86
|
+
"react-native-gesture-handler": ">=2.16.1",
|
|
87
|
+
"react-native-reanimated": ">=3.16.0",
|
|
88
88
|
"react-native-svg": ">=12.3.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import { Channel } from 'stream-chat';
|
|
6
|
+
|
|
7
|
+
import { AIStates, useAIState } from './hooks/useAIState';
|
|
8
|
+
|
|
9
|
+
import { useChannelContext, useTheme, useTranslationContext } from '../../contexts';
|
|
10
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
11
|
+
|
|
12
|
+
export type AITypingIndicatorViewProps<
|
|
13
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
14
|
+
> = {
|
|
15
|
+
channel?: Channel<StreamChatGenerics>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const AITypingIndicatorView = <
|
|
19
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
20
|
+
>({
|
|
21
|
+
channel: channelFromProps,
|
|
22
|
+
}: AITypingIndicatorViewProps<StreamChatGenerics>) => {
|
|
23
|
+
const { t } = useTranslationContext();
|
|
24
|
+
const { channel: channelFromContext } = useChannelContext<StreamChatGenerics>();
|
|
25
|
+
const channel = channelFromProps || channelFromContext;
|
|
26
|
+
const { aiState } = useAIState(channel);
|
|
27
|
+
const allowedStates = {
|
|
28
|
+
[AIStates.Thinking]: t('Thinking...'),
|
|
29
|
+
[AIStates.Generating]: t('Generating...'),
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const {
|
|
33
|
+
theme: {
|
|
34
|
+
aiTypingIndicatorView: { container, text },
|
|
35
|
+
colors: { black, grey_gainsboro },
|
|
36
|
+
},
|
|
37
|
+
} = useTheme();
|
|
38
|
+
|
|
39
|
+
return aiState in allowedStates ? (
|
|
40
|
+
<View style={[styles.container, { backgroundColor: grey_gainsboro }, container]}>
|
|
41
|
+
<Text style={[{ color: black }, text]}>{allowedStates[aiState]}</Text>
|
|
42
|
+
</View>
|
|
43
|
+
) : null;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
AITypingIndicatorView.displayName = 'AITypingIndicatorView{messageSimple{content}}';
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
container: { paddingHorizontal: 16, paddingVertical: 18 },
|
|
50
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import { AIState, Channel, Event } from 'stream-chat';
|
|
4
|
+
|
|
5
|
+
import { useChatContext } from '../../../contexts';
|
|
6
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
7
|
+
import { useIsOnline } from '../../Chat/hooks/useIsOnline';
|
|
8
|
+
|
|
9
|
+
export const AIStates = {
|
|
10
|
+
Error: 'AI_STATE_ERROR',
|
|
11
|
+
ExternalSources: 'AI_STATE_EXTERNAL_SOURCES',
|
|
12
|
+
Generating: 'AI_STATE_GENERATING',
|
|
13
|
+
Idle: 'AI_STATE_IDLE',
|
|
14
|
+
Thinking: 'AI_STATE_THINKING',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A hook that returns the current state of the AI.
|
|
19
|
+
* @param {Channel} channel - The channel for which we want to know the AI state.
|
|
20
|
+
* @returns {{ aiState: AIState }} The current AI state for the given channel.
|
|
21
|
+
*/
|
|
22
|
+
export const useAIState = <
|
|
23
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
24
|
+
>(
|
|
25
|
+
channel?: Channel<StreamChatGenerics>,
|
|
26
|
+
): { aiState: AIState } => {
|
|
27
|
+
const { client } = useChatContext<StreamChatGenerics>();
|
|
28
|
+
const { isOnline } = useIsOnline<StreamChatGenerics>(client);
|
|
29
|
+
|
|
30
|
+
const [aiState, setAiState] = useState<AIState>(AIStates.Idle);
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (!isOnline) {
|
|
34
|
+
setAiState(AIStates.Idle);
|
|
35
|
+
}
|
|
36
|
+
}, [isOnline]);
|
|
37
|
+
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (!channel) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const indicatorChangedListener = channel.on(
|
|
44
|
+
'ai_indicator.update',
|
|
45
|
+
(event: Event<StreamChatGenerics>) => {
|
|
46
|
+
const { cid } = event;
|
|
47
|
+
const state = event.ai_state as AIState;
|
|
48
|
+
if (channel.cid === cid) {
|
|
49
|
+
setAiState(state);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const indicatorClearedListener = channel.on('ai_indicator.clear', (event) => {
|
|
55
|
+
const { cid } = event;
|
|
56
|
+
if (channel.cid === cid) {
|
|
57
|
+
setAiState(AIStates.Idle);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return () => {
|
|
62
|
+
indicatorChangedListener.unsubscribe();
|
|
63
|
+
indicatorClearedListener.unsubscribe();
|
|
64
|
+
};
|
|
65
|
+
}, [channel]);
|
|
66
|
+
|
|
67
|
+
return { aiState };
|
|
68
|
+
};
|
|
@@ -36,6 +36,7 @@ export type AudioAttachmentProps = {
|
|
|
36
36
|
*/
|
|
37
37
|
export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
38
38
|
const [width, setWidth] = useState(0);
|
|
39
|
+
const [progressControlTextWidth, setProgressControlTextWidth] = useState(0);
|
|
39
40
|
const [currentSpeed, setCurrentSpeed] = useState<number>(1.0);
|
|
40
41
|
const soundRef = React.useRef<SoundReturnType | null>(null);
|
|
41
42
|
const {
|
|
@@ -228,9 +229,6 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
228
229
|
return (
|
|
229
230
|
<View
|
|
230
231
|
accessibilityLabel='audio-attachment-preview'
|
|
231
|
-
onLayout={({ nativeEvent }) => {
|
|
232
|
-
setWidth(nativeEvent.layout.width);
|
|
233
|
-
}}
|
|
234
232
|
style={[
|
|
235
233
|
styles.container,
|
|
236
234
|
{
|
|
@@ -256,7 +254,12 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
256
254
|
<Pause fill={static_black} height={32} width={32} />
|
|
257
255
|
)}
|
|
258
256
|
</Pressable>
|
|
259
|
-
<View
|
|
257
|
+
<View
|
|
258
|
+
onLayout={({ nativeEvent }) => {
|
|
259
|
+
setWidth(nativeEvent.layout.width);
|
|
260
|
+
}}
|
|
261
|
+
style={[styles.leftContainer, leftContainer]}
|
|
262
|
+
>
|
|
260
263
|
<Text
|
|
261
264
|
accessibilityLabel='File Name'
|
|
262
265
|
numberOfLines={1}
|
|
@@ -264,11 +267,6 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
264
267
|
styles.filenameText,
|
|
265
268
|
{
|
|
266
269
|
color: black,
|
|
267
|
-
width:
|
|
268
|
-
16 - // 16 = horizontal padding
|
|
269
|
-
40 - // 40 = file icon size
|
|
270
|
-
24 - // 24 = close icon size
|
|
271
|
-
24, // 24 = internal padding
|
|
272
270
|
},
|
|
273
271
|
I18nManager.isRTL ? { writingDirection: 'rtl' } : { writingDirection: 'ltr' },
|
|
274
272
|
filenameText,
|
|
@@ -290,7 +288,12 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
290
288
|
uri={item.file.uri}
|
|
291
289
|
/>
|
|
292
290
|
)}
|
|
293
|
-
<Text
|
|
291
|
+
<Text
|
|
292
|
+
onLayout={({ nativeEvent }) => {
|
|
293
|
+
setProgressControlTextWidth(nativeEvent.layout.width);
|
|
294
|
+
}}
|
|
295
|
+
style={[styles.progressDurationText, { color: grey_dark }, progressDurationText]}
|
|
296
|
+
>
|
|
294
297
|
{progressDuration}
|
|
295
298
|
</Text>
|
|
296
299
|
{!hideProgressBar && (
|
|
@@ -316,7 +319,7 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
316
319
|
onProgressDrag={handleProgressDrag}
|
|
317
320
|
progress={item.progress as number}
|
|
318
321
|
testID='progress-control'
|
|
319
|
-
width={width
|
|
322
|
+
width={width - progressControlTextWidth}
|
|
320
323
|
/>
|
|
321
324
|
)}
|
|
322
325
|
</View>
|
|
@@ -365,35 +368,33 @@ const styles = StyleSheet.create({
|
|
|
365
368
|
fontSize: 14,
|
|
366
369
|
fontWeight: 'bold',
|
|
367
370
|
paddingBottom: 12,
|
|
368
|
-
paddingLeft: 8,
|
|
369
371
|
},
|
|
370
372
|
leftContainer: {
|
|
371
373
|
justifyContent: 'space-around',
|
|
374
|
+
marginHorizontal: 16,
|
|
375
|
+
width: '60%',
|
|
372
376
|
},
|
|
373
377
|
playPauseButton: {
|
|
374
378
|
alignItems: 'center',
|
|
375
379
|
alignSelf: 'center',
|
|
376
380
|
borderRadius: 50,
|
|
377
|
-
display: 'flex',
|
|
378
381
|
elevation: 4,
|
|
379
382
|
justifyContent: 'center',
|
|
380
|
-
|
|
383
|
+
padding: 2,
|
|
381
384
|
shadowOffset: {
|
|
382
385
|
height: 2,
|
|
383
386
|
width: 0,
|
|
384
387
|
},
|
|
385
388
|
shadowOpacity: 0.23,
|
|
386
389
|
shadowRadius: 2.62,
|
|
387
|
-
width: 36,
|
|
388
390
|
},
|
|
389
391
|
progressControlContainer: {},
|
|
390
392
|
progressDurationText: {
|
|
391
393
|
fontSize: 12,
|
|
392
|
-
|
|
393
|
-
paddingRight: 8,
|
|
394
|
+
marginRight: 4,
|
|
394
395
|
},
|
|
395
396
|
rightContainer: {
|
|
396
|
-
marginLeft:
|
|
397
|
+
marginLeft: 'auto',
|
|
397
398
|
},
|
|
398
399
|
speedChangeButton: {
|
|
399
400
|
alignItems: 'center',
|
|
@@ -401,6 +402,7 @@ const styles = StyleSheet.create({
|
|
|
401
402
|
borderRadius: 50,
|
|
402
403
|
elevation: 4,
|
|
403
404
|
justifyContent: 'center',
|
|
405
|
+
paddingHorizontal: 10,
|
|
404
406
|
paddingVertical: 5,
|
|
405
407
|
shadowOffset: {
|
|
406
408
|
height: 2,
|
|
@@ -408,7 +410,6 @@ const styles = StyleSheet.create({
|
|
|
408
410
|
},
|
|
409
411
|
shadowOpacity: 0.23,
|
|
410
412
|
shadowRadius: 2.62,
|
|
411
|
-
width: 36,
|
|
412
413
|
},
|
|
413
414
|
speedChangeButtonText: {
|
|
414
415
|
fontSize: 12,
|
|
@@ -458,7 +458,7 @@ const GalleryImageThumbnail = <
|
|
|
458
458
|
setLoadingImage(false);
|
|
459
459
|
setLoadingImageError(true);
|
|
460
460
|
}}
|
|
461
|
-
onLoadEnd={() => setLoadingImage(false)}
|
|
461
|
+
onLoadEnd={() => setTimeout(() => setLoadingImage(false), 0)}
|
|
462
462
|
onLoadStart={() => setLoadingImage(true)}
|
|
463
463
|
resizeMode={thumbnail.resizeMode}
|
|
464
464
|
style={[
|
|
@@ -237,9 +237,13 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
237
237
|
// `id` is available for Expo MediaLibrary while Cameraroll doesn't share id therefore we use `uri`
|
|
238
238
|
selected:
|
|
239
239
|
selectedImages.some((image) =>
|
|
240
|
-
image.id
|
|
240
|
+
image.id
|
|
241
|
+
? image.id === asset.id
|
|
242
|
+
: image.uri === asset.uri || image.originalUri === asset.uri,
|
|
241
243
|
) ||
|
|
242
|
-
selectedFiles.some((file) =>
|
|
244
|
+
selectedFiles.some((file) =>
|
|
245
|
+
file.id ? file.id === asset.id : file.uri === asset.uri || file.originalUri === asset.uri,
|
|
246
|
+
),
|
|
243
247
|
selectedFiles,
|
|
244
248
|
selectedImages,
|
|
245
249
|
setSelectedFiles,
|
|
@@ -269,6 +273,7 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
269
273
|
*/
|
|
270
274
|
photoError ? null : AttachmentPickerBottomSheetHandle
|
|
271
275
|
}
|
|
276
|
+
// @ts-ignore
|
|
272
277
|
handleHeight={handleHeight}
|
|
273
278
|
index={-1}
|
|
274
279
|
onChange={setCurrentIndex}
|