stream-chat-react 6.12.2 → 8.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/dist/browser.full-bundle.js +1857 -18857
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +5 -5
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/Attachment.d.ts +8 -8
- package/dist/components/Attachment/Attachment.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentActions.d.ts +3 -3
- package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
- package/dist/components/Attachment/Audio.d.ts +4 -4
- package/dist/components/Attachment/Audio.d.ts.map +1 -1
- package/dist/components/Attachment/Audio.js +2 -2
- package/dist/components/Attachment/Card.d.ts +2 -0
- package/dist/components/Attachment/Card.d.ts.map +1 -1
- package/dist/components/Attachment/Card.js +22 -2
- package/dist/components/Attachment/FileAttachment.d.ts +4 -4
- package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/utils.d.ts +22 -22
- package/dist/components/Attachment/utils.d.ts.map +1 -1
- package/dist/components/Attachment/utils.js +3 -1
- package/dist/components/AutoCompleteTextarea/Item.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Item.js +1 -1
- package/dist/components/AutoCompleteTextarea/List.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/List.js +0 -1
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts +7 -6
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.js +9 -23
- package/dist/components/Avatar/Avatar.d.ts +4 -4
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Channel/Channel.d.ts +47 -45
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +12 -4
- package/dist/components/Channel/channelState.d.ts +15 -15
- package/dist/components/Channel/channelState.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useCreateChannelStateContext.d.ts +3 -3
- package/dist/components/Channel/hooks/useCreateChannelStateContext.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useCreateChannelStateContext.js +2 -1
- package/dist/components/Channel/hooks/useCreateTypingContext.d.ts +2 -2
- package/dist/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useEditMessageHandler.d.ts +3 -3
- package/dist/components/Channel/hooks/useEditMessageHandler.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useMentionsHandlers.d.ts +3 -3
- package/dist/components/Channel/hooks/useMentionsHandlers.d.ts.map +1 -1
- package/dist/components/ChannelHeader/ChannelHeader.d.ts +4 -2
- package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
- package/dist/components/ChannelHeader/ChannelHeader.js +6 -7
- package/dist/components/ChannelHeader/icons.d.ts +5 -0
- package/dist/components/ChannelHeader/icons.d.ts.map +1 -0
- package/dist/components/ChannelHeader/icons.js +9 -0
- package/dist/components/ChannelList/ChannelList.d.ts +18 -18
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelListMessenger.d.ts +5 -5
- package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelListMessenger.js +1 -1
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.js +13 -1
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts +4 -4
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts +2 -2
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/utils.d.ts +6 -6
- package/dist/components/ChannelList/utils.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.d.ts +9 -9
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -2
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.js +1 -1
- package/dist/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +2 -2
- package/dist/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -1
- package/dist/components/ChannelPreview/utils.d.ts +4 -4
- package/dist/components/ChannelPreview/utils.d.ts.map +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +16 -14
- package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.js +3 -3
- package/dist/components/ChannelSearch/SearchInput.d.ts +9 -7
- package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchInput.js +2 -2
- package/dist/components/ChannelSearch/SearchResults.d.ts +14 -14
- package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchResults.js +6 -6
- package/dist/components/ChannelSearch/utils.d.ts +3 -3
- package/dist/components/ChannelSearch/utils.d.ts.map +1 -1
- package/dist/components/ChannelSearch/utils.js +1 -3
- package/dist/components/Chat/Chat.d.ts +4 -4
- package/dist/components/Chat/Chat.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.d.ts +8 -8
- package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.js +2 -2
- package/dist/components/Chat/hooks/useCreateChatContext.d.ts +2 -2
- package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +18 -14
- package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts.map +1 -1
- package/dist/components/ChatAutoComplete/ChatAutoComplete.js +16 -14
- package/dist/components/ChatDown/ChatDown.d.ts.map +1 -1
- package/dist/components/ChatDown/ChatDown.js +2 -2
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.js +1 -1
- package/dist/components/EventComponent/EventComponent.d.ts +4 -4
- package/dist/components/EventComponent/EventComponent.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.d.ts +4 -4
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.js +5 -3
- package/dist/components/Gallery/Image.d.ts.map +1 -1
- package/dist/components/Gallery/Image.js +4 -2
- package/dist/components/Gallery/ModalWrapper.d.ts +3 -6
- package/dist/components/Gallery/ModalWrapper.d.ts.map +1 -1
- package/dist/components/Gallery/ModalWrapper.js +4 -7
- package/dist/components/Gallery/index.d.ts +0 -1
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/index.js +0 -1
- package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMoreButton.js +1 -1
- package/dist/components/Message/FixedHeightMessage.d.ts +4 -4
- package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts +2 -2
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/MessageCommerce.d.ts +2 -2
- package/dist/components/Message/MessageCommerce.d.ts.map +1 -1
- package/dist/components/Message/MessageDeleted.d.ts +4 -4
- package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
- package/dist/components/Message/MessageLivestream.d.ts +2 -2
- package/dist/components/Message/MessageLivestream.d.ts.map +1 -1
- package/dist/components/Message/MessageOptions.d.ts +3 -3
- package/dist/components/Message/MessageOptions.d.ts.map +1 -1
- package/dist/components/Message/MessageOptions.js +5 -5
- package/dist/components/Message/MessageSimple.d.ts +2 -2
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.js +5 -4
- package/dist/components/Message/MessageStatus.d.ts +2 -2
- package/dist/components/Message/MessageStatus.d.ts.map +1 -1
- package/dist/components/Message/MessageTeam.d.ts +2 -2
- package/dist/components/Message/MessageTeam.d.ts.map +1 -1
- package/dist/components/Message/MessageText.d.ts +4 -4
- package/dist/components/Message/MessageText.d.ts.map +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts +4 -4
- package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
- package/dist/components/Message/QuotedMessage.d.ts +2 -2
- package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
- package/dist/components/Message/hooks/useActionHandler.d.ts +2 -2
- package/dist/components/Message/hooks/useActionHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useDeleteHandler.d.ts +4 -4
- package/dist/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useFlagHandler.d.ts +5 -5
- package/dist/components/Message/hooks/useFlagHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useMentionsHandler.d.ts +6 -6
- package/dist/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useMuteHandler.d.ts +5 -5
- package/dist/components/Message/hooks/useMuteHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useOpenThreadHandler.d.ts +2 -2
- package/dist/components/Message/hooks/useOpenThreadHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/usePinHandler.d.ts +4 -4
- package/dist/components/Message/hooks/usePinHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useReactionHandler.d.ts +3 -3
- package/dist/components/Message/hooks/useReactionHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useRetryHandler.d.ts +2 -2
- package/dist/components/Message/hooks/useRetryHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserHandler.d.ts +5 -5
- package/dist/components/Message/hooks/useUserHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserRole.d.ts +2 -2
- package/dist/components/Message/hooks/useUserRole.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserRole.js +1 -1
- package/dist/components/Message/icons.d.ts +2 -2
- package/dist/components/Message/icons.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +23 -23
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Message/utils.d.ts +14 -14
- package/dist/components/Message/utils.d.ts.map +1 -1
- package/dist/components/Message/utils.js +6 -1
- package/dist/components/MessageActions/MessageActions.d.ts +3 -3
- package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActions.js +16 -9
- package/dist/components/MessageActions/MessageActionsBox.d.ts +7 -7
- package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActionsBox.js +12 -19
- package/dist/components/MessageInput/DefaultTriggerProvider.d.ts +7 -7
- package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
- package/dist/components/MessageInput/DropzoneProvider.d.ts +2 -2
- package/dist/components/MessageInput/DropzoneProvider.d.ts.map +1 -1
- package/dist/components/MessageInput/EditMessageForm.d.ts +2 -2
- package/dist/components/MessageInput/EditMessageForm.d.ts.map +1 -1
- package/dist/components/MessageInput/EditMessageForm.js +2 -2
- package/dist/components/MessageInput/EmojiPicker.d.ts +2 -2
- package/dist/components/MessageInput/EmojiPicker.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInput.d.ts +11 -11
- package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.d.ts +2 -2
- package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.js +5 -5
- package/dist/components/MessageInput/MessageInputSmall.d.ts +2 -2
- package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputSmall.js +7 -5
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts +4 -4
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.js +4 -3
- package/dist/components/MessageInput/UploadsPreview.d.ts +2 -2
- package/dist/components/MessageInput/UploadsPreview.d.ts.map +1 -1
- package/dist/components/MessageInput/UploadsPreview.js +4 -17
- package/dist/components/MessageInput/hooks/useAttachments.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useAttachments.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCommandTrigger.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useCommandTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCommandTrigger.js +3 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.js +2 -1
- package/dist/components/MessageInput/hooks/useCreateMessageInputContext.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts +4 -4
- package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useEmojiPicker.js +2 -0
- package/dist/components/MessageInput/hooks/useFileUploads.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useFileUploads.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useImageUploads.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useImageUploads.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +11 -11
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.js +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputText.d.ts +2 -2
- package/dist/components/MessageInput/hooks/useMessageInputText.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts +3 -3
- package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +5 -5
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/utils.d.ts +8 -8
- package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/utils.js +1 -1
- package/dist/components/MessageInput/icons.d.ts +4 -4
- package/dist/components/MessageInput/icons.d.ts.map +1 -1
- package/dist/components/MessageInput/icons.js +1 -1
- package/dist/components/MessageInput/index.d.ts +1 -0
- package/dist/components/MessageInput/index.d.ts.map +1 -1
- package/dist/components/MessageInput/index.js +1 -0
- package/dist/components/MessageList/ConnectionStatus.d.ts.map +1 -1
- package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
- package/dist/components/MessageList/CustomNotification.js +1 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts +4 -4
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.d.ts +5 -5
- package/dist/components/MessageList/MessageList.d.ts.map +1 -1
- package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/MessageNotification.js +1 -1
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +7 -7
- package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +39 -10
- package/dist/components/MessageList/hooks/useEnrichedMessages.d.ts +6 -6
- package/dist/components/MessageList/hooks/useEnrichedMessages.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useGiphyPreview.d.ts +4 -4
- package/dist/components/MessageList/hooks/useGiphyPreview.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useLastReadData.d.ts +5 -5
- package/dist/components/MessageList/hooks/useLastReadData.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMessageListElements.d.ts +6 -6
- package/dist/components/MessageList/hooks/useMessageListElements.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts +4 -4
- package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts +2 -2
- package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/usePrependMessagesCount.d.ts +2 -2
- package/dist/components/MessageList/hooks/usePrependMessagesCount.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts +4 -4
- package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useShouldForceScrollToBottom.d.ts +2 -2
- package/dist/components/MessageList/hooks/useShouldForceScrollToBottom.d.ts.map +1 -1
- package/dist/components/MessageList/utils.d.ts +11 -11
- package/dist/components/MessageList/utils.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +8 -4
- package/dist/components/Reactions/ReactionSelector.d.ts +4 -4
- package/dist/components/Reactions/ReactionSelector.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionSelector.js +7 -6
- package/dist/components/Reactions/ReactionsList.d.ts +4 -4
- package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsList.js +5 -4
- package/dist/components/Reactions/SimpleReactionsList.d.ts +4 -4
- package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SimpleReactionsList.js +1 -1
- package/dist/components/SafeAnchor/SafeAnchor.d.ts.map +1 -1
- package/dist/components/SafeAnchor/SafeAnchor.js +1 -1
- package/dist/components/Thread/Thread.d.ts +10 -10
- package/dist/components/Thread/Thread.d.ts.map +1 -1
- package/dist/components/Thread/Thread.js +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.d.ts +4 -4
- package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
- package/dist/components/Window/Window.d.ts +4 -4
- package/dist/components/Window/Window.d.ts.map +1 -1
- package/dist/components/Window/Window.js +1 -4
- package/dist/context/ChannelActionContext.d.ts +23 -26
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ChannelStateContext.d.ts +22 -21
- package/dist/context/ChannelStateContext.d.ts.map +1 -1
- package/dist/context/ChatContext.d.ts +12 -12
- package/dist/context/ChatContext.d.ts.map +1 -1
- package/dist/context/ComponentContext.d.ts +27 -27
- package/dist/context/ComponentContext.d.ts.map +1 -1
- package/dist/context/MessageContext.d.ts +16 -16
- package/dist/context/MessageContext.d.ts.map +1 -1
- package/dist/context/MessageInputContext.d.ts +7 -7
- package/dist/context/MessageInputContext.d.ts.map +1 -1
- package/dist/context/TypingContext.d.ts +8 -8
- package/dist/context/TypingContext.d.ts.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/i18n/Streami18n.d.ts +1 -0
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +1 -0
- package/dist/i18n/en.json +1 -0
- package/dist/i18n/es.json +1 -0
- package/dist/i18n/fr.json +1 -0
- package/dist/i18n/hi.json +1 -0
- package/dist/i18n/it.json +1 -0
- package/dist/i18n/ja.json +1 -0
- package/dist/i18n/ko.json +1 -0
- package/dist/i18n/nl.json +1 -0
- package/dist/i18n/pt.json +1 -0
- package/dist/i18n/ru.json +1 -0
- package/dist/i18n/tr.json +1 -0
- package/dist/index.cjs.js +353 -301
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/ChannelSearch.scss +3 -0
- package/dist/scss/Gallery.scss +6 -0
- package/dist/scss/LoadMoreButton.scss +1 -0
- package/dist/scss/Message.scss +19 -0
- package/dist/scss/MessageActions.scss +9 -0
- package/dist/scss/MessageInput.scss +11 -0
- package/dist/scss/MessageInputFlat.scss +15 -0
- package/dist/scss/MessageTeam.scss +8 -0
- package/dist/scss/Modal.scss +4 -0
- package/dist/scss/ReactionList.scss +7 -0
- package/dist/scss/ReactionSelector.scss +7 -0
- package/dist/scss/SendButton.scss +5 -0
- package/dist/scss/SmallMessageInput.scss +12 -0
- package/dist/scss/Thread.scss +24 -0
- package/dist/scss/_base.scss +4 -12
- package/dist/scss/_variables.scss +4 -1
- package/dist/scss/index.scss +1 -1
- package/dist/scss/vendor/react-file-utils.scss +2 -0
- package/dist/scss/vendor/react-image-gallery.scss +224 -0
- package/dist/types/types.d.ts +15 -9
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils.d.ts +5 -5
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +24 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +12 -9
- package/dist/components/Gallery/ModalImage.d.ts +0 -9
- package/dist/components/Gallery/ModalImage.d.ts.map +0 -1
- package/dist/components/Gallery/ModalImage.js +0 -6
- package/dist/scss/ModalImage.scss +0 -11
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { AppSettingsAPIResponse, Channel, Mute, StreamChat } from 'stream-chat';
|
|
3
3
|
import type { Theme } from '../components/Chat/Chat';
|
|
4
|
-
import type {
|
|
4
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
5
5
|
declare type CSSClasses = 'chat' | 'chatContainer' | 'channel' | 'channelList' | 'message' | 'messageList' | 'thread' | 'threadList' | 'virtualMessage' | 'virtualizedMessageList';
|
|
6
6
|
export declare type CustomClasses = Partial<Record<CSSClasses, string>>;
|
|
7
|
-
export declare type ChatContextValue<
|
|
8
|
-
client: StreamChat<
|
|
7
|
+
export declare type ChatContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
8
|
+
client: StreamChat<StreamChatGenerics>;
|
|
9
9
|
closeMobileNav: () => void;
|
|
10
|
-
getAppSettings: () => Promise<AppSettingsAPIResponse<
|
|
11
|
-
mutes: Mute<
|
|
10
|
+
getAppSettings: () => Promise<AppSettingsAPIResponse<StreamChatGenerics>> | null;
|
|
11
|
+
mutes: Array<Mute<StreamChatGenerics>>;
|
|
12
12
|
openMobileNav: () => void;
|
|
13
|
-
setActiveChannel: (newChannel?: Channel<
|
|
13
|
+
setActiveChannel: (newChannel?: Channel<StreamChatGenerics>, watchers?: {
|
|
14
14
|
limit?: number;
|
|
15
15
|
offset?: number;
|
|
16
16
|
}, event?: React.BaseSyntheticEvent) => void;
|
|
17
17
|
/** @deprecated */
|
|
18
18
|
theme: Theme;
|
|
19
19
|
useImageFlagEmojisOnWindows: boolean;
|
|
20
|
-
channel?: Channel<
|
|
20
|
+
channel?: Channel<StreamChatGenerics>;
|
|
21
21
|
customClasses?: CustomClasses;
|
|
22
22
|
navOpen?: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const ChatContext: React.Context<ChatContextValue<
|
|
25
|
-
export declare const ChatProvider: <
|
|
26
|
-
value: ChatContextValue<
|
|
24
|
+
export declare const ChatContext: React.Context<ChatContextValue<DefaultStreamChatGenerics> | undefined>;
|
|
25
|
+
export declare const ChatProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
|
|
26
|
+
value: ChatContextValue<StreamChatGenerics>;
|
|
27
27
|
}>) => JSX.Element;
|
|
28
|
-
export declare const useChatContext: <
|
|
28
|
+
export declare const useChatContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(componentName?: string | undefined) => ChatContextValue<StreamChatGenerics>;
|
|
29
29
|
/**
|
|
30
30
|
* Typescript currently does not support partial inference so if ChatContext
|
|
31
31
|
* typing is desired while using the HOC withChatContext the Props for the
|
|
32
32
|
* wrapped component must be provided as the first generic.
|
|
33
33
|
*/
|
|
34
|
-
export declare const withChatContext: <P extends UnknownType,
|
|
34
|
+
export declare const withChatContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ChatContextValue<StreamChatGenerics>>>;
|
|
35
35
|
export {};
|
|
36
36
|
//# sourceMappingURL=ChatContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGrF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC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ClB,KAAK,EAAE,KAAK,CAAC;IACb,2BAA2B,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,WAAW,wEAA+D,CAAC;AAExF,eAAO,MAAM,YAAY;;kBAWxB,CAAC;AAEF,eAAO,MAAM,cAAc,gKAgB1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,+MAa3B,CAAC"}
|
|
@@ -25,54 +25,54 @@ import type { SuggestionListHeaderProps } from '../components/AutoCompleteTextar
|
|
|
25
25
|
import type { SendButtonProps } from '../components/MessageInput/icons';
|
|
26
26
|
import type { ThreadHeaderProps } from '../components/Thread/Thread';
|
|
27
27
|
import type { TypingIndicatorProps } from '../components/TypingIndicator/TypingIndicator';
|
|
28
|
-
import type { CustomTrigger,
|
|
29
|
-
export declare type ComponentContextValue<
|
|
30
|
-
Attachment: React.ComponentType<AttachmentProps<
|
|
31
|
-
Message: React.ComponentType<MessageUIComponentProps<
|
|
28
|
+
import type { CustomTrigger, DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
29
|
+
export declare type ComponentContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger> = {
|
|
30
|
+
Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;
|
|
31
|
+
Message: React.ComponentType<MessageUIComponentProps<StreamChatGenerics>>;
|
|
32
32
|
AutocompleteSuggestionHeader?: React.ComponentType<SuggestionListHeaderProps>;
|
|
33
|
-
AutocompleteSuggestionItem?: React.ComponentType<SuggestionItemProps<
|
|
34
|
-
AutocompleteSuggestionList?: React.ComponentType<SuggestionListProps<
|
|
35
|
-
Avatar?: React.ComponentType<AvatarProps<
|
|
33
|
+
AutocompleteSuggestionItem?: React.ComponentType<SuggestionItemProps<StreamChatGenerics>>;
|
|
34
|
+
AutocompleteSuggestionList?: React.ComponentType<SuggestionListProps<StreamChatGenerics>>;
|
|
35
|
+
Avatar?: React.ComponentType<AvatarProps<StreamChatGenerics>>;
|
|
36
36
|
CooldownTimer?: React.ComponentType<CooldownTimerProps>;
|
|
37
37
|
DateSeparator?: React.ComponentType<DateSeparatorProps>;
|
|
38
|
-
EditMessageInput?: React.ComponentType<MessageInputProps<
|
|
38
|
+
EditMessageInput?: React.ComponentType<MessageInputProps<StreamChatGenerics>>;
|
|
39
39
|
EmojiIcon?: React.ComponentType;
|
|
40
40
|
EmptyStateIndicator?: React.ComponentType<EmptyStateIndicatorProps>;
|
|
41
41
|
FileUploadIcon?: React.ComponentType;
|
|
42
|
-
GiphyPreviewMessage?: React.ComponentType<GiphyPreviewMessageProps<
|
|
42
|
+
GiphyPreviewMessage?: React.ComponentType<GiphyPreviewMessageProps<StreamChatGenerics>>;
|
|
43
43
|
HeaderComponent?: React.ComponentType;
|
|
44
|
-
Input?: React.ComponentType<MessageInputProps<
|
|
44
|
+
Input?: React.ComponentType<MessageInputProps<StreamChatGenerics, V>>;
|
|
45
45
|
LoadingIndicator?: React.ComponentType<LoadingIndicatorProps>;
|
|
46
|
-
MessageDeleted?: React.ComponentType<MessageDeletedProps<
|
|
46
|
+
MessageDeleted?: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;
|
|
47
47
|
MessageListNotifications?: React.ComponentType<MessageListNotificationsProps>;
|
|
48
48
|
MessageNotification?: React.ComponentType<MessageNotificationProps>;
|
|
49
|
-
MessageOptions?: React.ComponentType<MessageOptionsProps<
|
|
49
|
+
MessageOptions?: React.ComponentType<MessageOptionsProps<StreamChatGenerics>>;
|
|
50
50
|
MessageRepliesCountButton?: React.ComponentType<MessageRepliesCountButtonProps>;
|
|
51
51
|
MessageStatus?: React.ComponentType<MessageStatusProps>;
|
|
52
|
-
MessageSystem?: React.ComponentType<EventComponentProps<
|
|
53
|
-
MessageTimestamp?: React.ComponentType<MessageTimestampProps<
|
|
54
|
-
PinIndicator?: React.ComponentType<PinIndicatorProps<
|
|
52
|
+
MessageSystem?: React.ComponentType<EventComponentProps<StreamChatGenerics>>;
|
|
53
|
+
MessageTimestamp?: React.ComponentType<MessageTimestampProps<StreamChatGenerics>>;
|
|
54
|
+
PinIndicator?: React.ComponentType<PinIndicatorProps<StreamChatGenerics>>;
|
|
55
55
|
QuotedMessage?: React.ComponentType;
|
|
56
|
-
QuotedMessagePreview?: React.ComponentType<QuotedMessagePreviewProps<
|
|
57
|
-
ReactionSelector?: React.ForwardRefExoticComponent<ReactionSelectorProps<
|
|
58
|
-
ReactionsList?: React.ComponentType<ReactionsListProps<
|
|
59
|
-
SendButton?: React.ComponentType<SendButtonProps<
|
|
60
|
-
ThreadHeader?: React.ComponentType<ThreadHeaderProps<
|
|
61
|
-
ThreadInput?: React.ComponentType<MessageInputProps<
|
|
56
|
+
QuotedMessagePreview?: React.ComponentType<QuotedMessagePreviewProps<StreamChatGenerics>>;
|
|
57
|
+
ReactionSelector?: React.ForwardRefExoticComponent<ReactionSelectorProps<StreamChatGenerics>>;
|
|
58
|
+
ReactionsList?: React.ComponentType<ReactionsListProps<StreamChatGenerics>>;
|
|
59
|
+
SendButton?: React.ComponentType<SendButtonProps<StreamChatGenerics>>;
|
|
60
|
+
ThreadHeader?: React.ComponentType<ThreadHeaderProps<StreamChatGenerics>>;
|
|
61
|
+
ThreadInput?: React.ComponentType<MessageInputProps<StreamChatGenerics, V>>;
|
|
62
62
|
ThreadStart?: React.ComponentType;
|
|
63
63
|
TriggerProvider?: React.ComponentType;
|
|
64
64
|
TypingIndicator?: React.ComponentType<TypingIndicatorProps>;
|
|
65
|
-
VirtualMessage?: React.ComponentType<FixedHeightMessageProps<
|
|
65
|
+
VirtualMessage?: React.ComponentType<FixedHeightMessageProps<StreamChatGenerics>>;
|
|
66
66
|
};
|
|
67
|
-
export declare const ComponentContext: React.Context<ComponentContextValue<
|
|
68
|
-
export declare const ComponentProvider: <
|
|
69
|
-
value: Partial<ComponentContextValue<
|
|
67
|
+
export declare const ComponentContext: React.Context<ComponentContextValue<DefaultStreamChatGenerics, CustomTrigger> | undefined>;
|
|
68
|
+
export declare const ComponentProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>({ children, value, }: React.PropsWithChildren<{
|
|
69
|
+
value: Partial<ComponentContextValue<StreamChatGenerics, V>>;
|
|
70
70
|
}>) => JSX.Element;
|
|
71
|
-
export declare const useComponentContext: <
|
|
71
|
+
export declare const useComponentContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(componentName?: string | undefined) => ComponentContextValue<StreamChatGenerics, V>;
|
|
72
72
|
/**
|
|
73
73
|
* Typescript currently does not support partial inference, so if ComponentContext
|
|
74
74
|
* typing is desired while using the HOC withComponentContext, the Props for the
|
|
75
75
|
* wrapped component must be provided as the first generic.
|
|
76
76
|
*/
|
|
77
|
-
export declare const withComponentContext: <P extends UnknownType,
|
|
77
|
+
export declare const withComponentContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ComponentContextValue<StreamChatGenerics, CustomTrigger>>>;
|
|
78
78
|
//# sourceMappingURL=ComponentContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../src/context/ComponentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,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MAAM,gBAAgB,4FAAoE,CAAC;AAElG,eAAO,MAAM,iBAAiB;;kBAY7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,iNAiB/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,4QAsBhC,CAAC"}
|
|
@@ -9,11 +9,11 @@ import type { MessageActionsArray } from '../components/Message/utils';
|
|
|
9
9
|
import type { MessageInputProps } from '../components/MessageInput/MessageInput';
|
|
10
10
|
import type { GroupStyle } from '../components/MessageList/utils';
|
|
11
11
|
import type { RenderTextOptions } from '../utils';
|
|
12
|
-
import type {
|
|
13
|
-
export declare type CustomMessageActions<
|
|
14
|
-
[key: string]: (message: StreamMessage<
|
|
12
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
13
|
+
export declare type CustomMessageActions<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
14
|
+
[key: string]: (message: StreamMessage<StreamChatGenerics>, event: React.BaseSyntheticEvent) => Promise<void> | void;
|
|
15
15
|
};
|
|
16
|
-
export declare type MessageContextValue<
|
|
16
|
+
export declare type MessageContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
17
17
|
/** If actions such as edit, delete, flag, mute are enabled on Message */
|
|
18
18
|
actionsEnabled: boolean;
|
|
19
19
|
/** Function to exit edit state */
|
|
@@ -42,13 +42,13 @@ export declare type MessageContextValue<At extends DefaultAttachmentType = Defau
|
|
|
42
42
|
/** Function to post a reaction on a Message */
|
|
43
43
|
handleReaction: (reactionType: string, event: React.BaseSyntheticEvent) => Promise<void>;
|
|
44
44
|
/** Function to retry sending a Message */
|
|
45
|
-
handleRetry: ChannelActionContextValue<
|
|
45
|
+
handleRetry: ChannelActionContextValue<StreamChatGenerics>['retrySendMessage'];
|
|
46
46
|
/** Function that returns whether or not the Message belongs to the current user */
|
|
47
47
|
isMyMessage: () => boolean;
|
|
48
48
|
/** Whether or not reactions are enabled for the active channel */
|
|
49
49
|
isReactionEnabled: boolean;
|
|
50
50
|
/** The message object */
|
|
51
|
-
message: StreamMessage<
|
|
51
|
+
message: StreamMessage<StreamChatGenerics>;
|
|
52
52
|
/** Handler function for a click event on an @mention in Message */
|
|
53
53
|
onMentionsClickMessage: ReactEventHandler;
|
|
54
54
|
/** Handler function for a hover event on an @mention in Message */
|
|
@@ -66,9 +66,9 @@ export declare type MessageContextValue<At extends DefaultAttachmentType = Defau
|
|
|
66
66
|
/** Whether or not to show reaction list details */
|
|
67
67
|
showDetailedReactions: boolean;
|
|
68
68
|
/** Additional props for underlying MessageInput component, [available props](https://getstream.io/chat/docs/sdk/react/message-input-components/message_input/#props) */
|
|
69
|
-
additionalMessageInputProps?: MessageInputProps<
|
|
69
|
+
additionalMessageInputProps?: MessageInputProps<StreamChatGenerics>;
|
|
70
70
|
/** Object containing custom message actions and function handlers */
|
|
71
|
-
customMessageActions?: CustomMessageActions<
|
|
71
|
+
customMessageActions?: CustomMessageActions<StreamChatGenerics>;
|
|
72
72
|
/** If true, the message is the last one in a group sent by a specific user (only used in the `VirtualizedMessageList`) */
|
|
73
73
|
endOfGroup?: boolean;
|
|
74
74
|
/** If true, the message is the first one in a group sent by a specific user (only used in the `VirtualizedMessageList`) */
|
|
@@ -86,27 +86,27 @@ export declare type MessageContextValue<At extends DefaultAttachmentType = Defau
|
|
|
86
86
|
/** DOMRect object for parent MessageList component */
|
|
87
87
|
messageListRect?: DOMRect;
|
|
88
88
|
/** Array of muted users coming from [ChannelStateContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_state_context/#mutes) */
|
|
89
|
-
mutes?: Mute<
|
|
89
|
+
mutes?: Mute<StreamChatGenerics>[];
|
|
90
90
|
/** @deprecated in favor of `channelCapabilities - The user roles allowed to pin Messages in various channel types */
|
|
91
91
|
pinPermissions?: PinPermissions;
|
|
92
92
|
/** A list of users that have read this Message */
|
|
93
|
-
readBy?: UserResponse<
|
|
93
|
+
readBy?: UserResponse<StreamChatGenerics>[];
|
|
94
94
|
/** Custom function to render message text content, defaults to the renderText function: [utils](https://github.com/GetStream/stream-chat-react/blob/master/src/utils.tsx) */
|
|
95
|
-
renderText?: (text?: string, mentioned_users?: UserResponse<
|
|
95
|
+
renderText?: (text?: string, mentioned_users?: UserResponse<StreamChatGenerics>[], options?: RenderTextOptions) => JSX.Element | null;
|
|
96
96
|
/** Whether or not the Message is in a Thread */
|
|
97
97
|
threadList?: boolean;
|
|
98
98
|
/** render HTML instead of markdown. Posting HTML is only allowed server-side */
|
|
99
99
|
unsafeHTML?: boolean;
|
|
100
100
|
};
|
|
101
|
-
export declare const MessageContext: React.Context<MessageContextValue<
|
|
102
|
-
export declare const MessageProvider: <
|
|
103
|
-
value: MessageContextValue<
|
|
101
|
+
export declare const MessageContext: React.Context<MessageContextValue<DefaultStreamChatGenerics> | undefined>;
|
|
102
|
+
export declare const MessageProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
|
|
103
|
+
value: MessageContextValue<StreamChatGenerics>;
|
|
104
104
|
}>) => JSX.Element;
|
|
105
|
-
export declare const useMessageContext: <
|
|
105
|
+
export declare const useMessageContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(componentName?: string | undefined) => MessageContextValue<StreamChatGenerics>;
|
|
106
106
|
/**
|
|
107
107
|
* Typescript currently does not support partial inference, so if MessageContext
|
|
108
108
|
* typing is desired while using the HOC withMessageContext, the Props for the
|
|
109
109
|
* wrapped component must be provided as the first generic.
|
|
110
110
|
*/
|
|
111
|
-
export declare const withMessageContext: <P extends UnknownType,
|
|
111
|
+
export declare const withMessageContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof MessageContextValue<StreamChatGenerics>>>;
|
|
112
112
|
//# sourceMappingURL=MessageContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EA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CAAC;IACxB,yEAAyE;IACzE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,mEAAmE;IACnE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,sDAAsD;IACtD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,6IAA6I;IAC7I,KAAK,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACnC,qHAAqH;IACrH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,kDAAkD;IAClD,MAAM,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC5C,6KAA6K;IAC7K,UAAU,CAAC,EAAE,CACX,IAAI,CAAC,EAAE,MAAM,EACb,eAAe,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,EAAE,EACpD,OAAO,CAAC,EAAE,iBAAiB,KACxB,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IACxB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,2EAAkE,CAAC;AAE9F,eAAO,MAAM,eAAe;;kBAW3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mKAgB7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,kNAqB9B,CAAC"}
|
|
@@ -2,13 +2,13 @@ import React, { PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { TriggerSettings } from '../components/MessageInput/DefaultTriggerProvider';
|
|
3
3
|
import type { CooldownTimerState, MessageInputProps } from '../components/MessageInput';
|
|
4
4
|
import type { CommandsListState, MentionsListState, MessageInputHookProps, MessageInputState } from '../components/MessageInput/hooks/useMessageInputState';
|
|
5
|
-
import type { CustomTrigger,
|
|
6
|
-
export declare type MessageInputContextValue<
|
|
7
|
-
autocompleteTriggers?: TriggerSettings<
|
|
5
|
+
import type { CustomTrigger, DefaultStreamChatGenerics } from '../types/types';
|
|
6
|
+
export declare type MessageInputContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger> = MessageInputState<StreamChatGenerics> & MessageInputHookProps<StreamChatGenerics> & Omit<MessageInputProps<StreamChatGenerics, V>, 'Input'> & CooldownTimerState & {
|
|
7
|
+
autocompleteTriggers?: TriggerSettings<StreamChatGenerics, V>;
|
|
8
8
|
} & CommandsListState & MentionsListState;
|
|
9
|
-
export declare const MessageInputContext: React.Context<(MessageInputState<
|
|
10
|
-
export declare const MessageInputContextProvider: <
|
|
11
|
-
value: MessageInputContextValue<
|
|
9
|
+
export declare const MessageInputContext: React.Context<(MessageInputState<DefaultStreamChatGenerics> & MessageInputHookProps<DefaultStreamChatGenerics>) | undefined>;
|
|
10
|
+
export declare const MessageInputContextProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>({ children, value, }: React.PropsWithChildren<{
|
|
11
|
+
value: MessageInputContextValue<StreamChatGenerics, V>;
|
|
12
12
|
}>) => JSX.Element;
|
|
13
|
-
export declare const useMessageInputContext: <
|
|
13
|
+
export declare const useMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(componentName?: string | undefined) => MessageInputContextValue<StreamChatGenerics, V>;
|
|
14
14
|
//# sourceMappingURL=MessageInputContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,oBAAY,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC,iBAAiB,CAAC,kBAAkB,CAAC,GACvC,qBAAqB,CAAC,kBAAkB,CAAC,GACzC,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GACvD,kBAAkB,GAAG;IACnB,oBAAoB,CAAC,EAAE,eAAe,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;CAC/D,GAAG,iBAAiB,GACrB,iBAAiB,CAAC;AAEpB,eAAO,MAAM,mBAAmB,8HAEpB,CAAC;AAEb,eAAO,MAAM,2BAA2B;;kBAYvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,oNAiBlC,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ChannelState as StreamChannelState } from 'stream-chat';
|
|
3
|
-
import type {
|
|
4
|
-
export declare type TypingContextValue<
|
|
5
|
-
typing?: StreamChannelState<
|
|
3
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
4
|
+
export declare type TypingContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
|
+
typing?: StreamChannelState<StreamChatGenerics>['typing'];
|
|
6
6
|
};
|
|
7
|
-
export declare const TypingContext: React.Context<TypingContextValue<
|
|
8
|
-
export declare const TypingProvider: <
|
|
9
|
-
value: TypingContextValue<
|
|
7
|
+
export declare const TypingContext: React.Context<TypingContextValue<DefaultStreamChatGenerics> | undefined>;
|
|
8
|
+
export declare const TypingProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
|
|
9
|
+
value: TypingContextValue<StreamChatGenerics>;
|
|
10
10
|
}>) => JSX.Element;
|
|
11
|
-
export declare const useTypingContext: <
|
|
11
|
+
export declare const useTypingContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(componentName?: string | undefined) => TypingContextValue<StreamChatGenerics>;
|
|
12
12
|
/**
|
|
13
13
|
* Typescript currently does not support partial inference, so if TypingContext
|
|
14
14
|
* typing is desired while using the HOC withTypingContext, the Props for the
|
|
15
15
|
* wrapped component must be provided as the first generic.
|
|
16
16
|
*/
|
|
17
|
-
export declare const withTypingContext: <P extends UnknownType,
|
|
17
|
+
export declare const withTypingContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, "typing">>;
|
|
18
18
|
//# sourceMappingURL=TypingContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingContext.d.ts","sourceRoot":"","sources":["../../src/context/TypingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"TypingContext.d.ts","sourceRoot":"","sources":["../../src/context/TypingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7E,oBAAY,kBAAkB,CAC5B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,aAAa,0EAAiE,CAAC;AAE5F,eAAO,MAAM,cAAc;;kBAW1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,kKAgB5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,6KAqB7B,CAAC"}
|