stream-chat-react-native-core 9.6.2-beta.4 → 9.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js +5 -4
- package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileIcon.js +19 -25
- package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js +4 -2
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +5 -4
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +6 -4
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +3 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +7 -7
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +19 -17
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js +4 -2
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +2 -2
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +4 -2
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +5 -4
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +4 -2
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +3 -3
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +17 -18
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js +6 -5
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +6 -6
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +4 -2
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +3 -2
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +6 -5
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/UIComponents/EmptySearchResult.js +4 -2
- package/lib/commonjs/components/UIComponents/EmptySearchResult.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SearchInput.js +7 -6
- package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SelectionCircle.js +4 -2
- package/lib/commonjs/components/UIComponents/SelectionCircle.js.map +1 -1
- package/lib/commonjs/components/UIComponents/Spinner.js +4 -2
- package/lib/commonjs/components/UIComponents/Spinner.js.map +1 -1
- package/lib/commonjs/components/index.js +55 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js +5 -3
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js +5 -3
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/ErrorBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/ErrorBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/GiphyBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/GiphyBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/ImgurBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/ImgurBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/RetryBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/RetryBadge.js.map +1 -1
- package/lib/commonjs/components/ui/GiphyChip.js +5 -4
- package/lib/commonjs/components/ui/GiphyChip.js.map +1 -1
- package/lib/commonjs/components/ui/Input/Input.js +5 -4
- package/lib/commonjs/components/ui/Input/Input.js.map +1 -1
- package/lib/commonjs/components/ui/VideoPlayIndicator.js +4 -2
- package/lib/commonjs/components/ui/VideoPlayIndicator.js.map +1 -1
- package/lib/commonjs/components/ui/index.js +33 -0
- package/lib/commonjs/components/ui/index.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +16 -5
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +179 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/pollContext.js +1 -1
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActionItems.js +22 -11
- package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +23 -11
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Audio/PlayPauseButton.js +5 -4
- package/lib/module/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
- package/lib/module/components/Attachment/FileIcon.js +19 -25
- package/lib/module/components/Attachment/FileIcon.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js +4 -2
- package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js +5 -4
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/Indicators/EmptyStateIndicator.js +6 -4
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js +2 -2
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -4
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +7 -7
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
- package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +19 -17
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js +4 -2
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/LinkPreviewList.js +2 -2
- package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +4 -2
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +5 -4
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +4 -2
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +3 -3
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +17 -18
- package/lib/module/components/Notifications/Notification.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollHeader.js +6 -5
- package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +6 -6
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +4 -2
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +3 -2
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +6 -5
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/UIComponents/EmptySearchResult.js +4 -2
- package/lib/module/components/UIComponents/EmptySearchResult.js.map +1 -1
- package/lib/module/components/UIComponents/SearchInput.js +7 -6
- package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/module/components/UIComponents/SelectionCircle.js +4 -2
- package/lib/module/components/UIComponents/SelectionCircle.js.map +1 -1
- package/lib/module/components/UIComponents/Spinner.js +4 -2
- package/lib/module/components/UIComponents/Spinner.js.map +1 -1
- package/lib/module/components/index.js +55 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/ui/Avatar/AvatarGroup.js +5 -3
- package/lib/module/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/module/components/ui/Avatar/UserAvatar.js +5 -3
- package/lib/module/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/module/components/ui/Badge/ErrorBadge.js +4 -2
- package/lib/module/components/ui/Badge/ErrorBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/GiphyBadge.js +4 -2
- package/lib/module/components/ui/Badge/GiphyBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/ImgurBadge.js +4 -2
- package/lib/module/components/ui/Badge/ImgurBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/RetryBadge.js +4 -2
- package/lib/module/components/ui/Badge/RetryBadge.js.map +1 -1
- package/lib/module/components/ui/GiphyChip.js +5 -4
- package/lib/module/components/ui/GiphyChip.js.map +1 -1
- package/lib/module/components/ui/Input/Input.js +5 -4
- package/lib/module/components/ui/Input/Input.js.map +1 -1
- package/lib/module/components/ui/VideoPlayIndicator.js +4 -2
- package/lib/module/components/ui/VideoPlayIndicator.js.map +1 -1
- package/lib/module/components/ui/index.js +33 -0
- package/lib/module/components/ui/index.js.map +1 -1
- package/lib/module/contexts/componentsContext/ComponentsContext.js +16 -5
- package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js +179 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/pollContext/pollContext.js +1 -1
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActionItems.js +22 -11
- package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useChannelMemberActionItems.js +23 -11
- package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Audio/PlayPauseButton.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileIcon.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionRoleItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavigationSection.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsProfile.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditDetailsFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditImageSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersButton.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/modal/ModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewPinnedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageSwipeContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListClustered.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListItem.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/EditButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/SendButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/Notification.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/EmptySearchResult.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SelectionCircle.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +5 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/AvatarGroup.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/ErrorBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/GiphyBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/ImgurBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/RetryBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/GiphyChip.d.ts.map +1 -1
- package/lib/typescript/components/ui/Input/Input.d.ts.map +1 -1
- package/lib/typescript/components/ui/VideoPlayIndicator.d.ts.map +1 -1
- package/lib/typescript/components/ui/index.d.ts +3 -0
- package/lib/typescript/components/ui/index.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -1
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +16 -2
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +215 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts +5 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts +5 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewIcon.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Attachment/Audio/PlayPauseButton.tsx +4 -4
- package/src/components/Attachment/FileIcon.tsx +19 -27
- package/src/components/Attachment/Giphy/Giphy.tsx +3 -2
- package/src/components/Attachment/UrlPreview/URLPreview.tsx +3 -2
- package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +3 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +3 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +8 -5
- package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +13 -15
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +10 -11
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionRoleItem.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.tsx +13 -10
- package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx +5 -7
- package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +6 -10
- package/src/components/ChannelDetails/components/members/ChannelAddMembersButton.tsx +2 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +2 -3
- package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +2 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +2 -3
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +2 -3
- package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +12 -13
- package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +16 -5
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +2 -2
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +3 -2
- package/src/components/ChannelPreview/ChannelPreviewPinnedStatus.tsx +3 -2
- package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -2
- package/src/components/Chat/Chat.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +4 -5
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -2
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +5 -5
- package/src/components/Indicators/EmptyStateIndicator.tsx +5 -4
- package/src/components/Message/MessageItemView/Headers/MessagePinnedHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/MessageDeleted.tsx +2 -3
- package/src/components/Message/MessageItemView/MessageReplies.tsx +3 -5
- package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -7
- package/src/components/Message/MessageItemView/MessageSwipeContent.tsx +3 -2
- package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +3 -3
- package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +3 -3
- package/src/components/Message/hooks/useMessageActions.tsx +18 -31
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +8 -2
- package/src/components/MessageInput/StopMessageStreamingButton.tsx +3 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +3 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.tsx +6 -5
- package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx +3 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +16 -11
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +3 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +2 -3
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +5 -6
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx +4 -4
- package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +3 -2
- package/src/components/MessageInput/components/LinkPreviewList.tsx +2 -3
- package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +3 -2
- package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +3 -2
- package/src/components/MessageList/ScrollToBottomButton.tsx +3 -2
- package/src/components/MessageList/UnreadMessagesNotification.tsx +4 -4
- package/src/components/MessageMenu/MessageReactionPicker.tsx +3 -2
- package/src/components/MessageMenu/MessageUserReactions.tsx +3 -4
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +2 -3
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +1 -1
- package/src/components/Notifications/Notification.tsx +18 -17
- package/src/components/Poll/components/CreatePollHeader.tsx +6 -5
- package/src/components/Poll/components/CreatePollOptions.tsx +5 -6
- package/src/components/Poll/components/MultipleVotesSettings.tsx +4 -3
- package/src/components/Poll/components/PollModalHeader.tsx +3 -2
- package/src/components/Poll/components/PollOption.tsx +2 -2
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +5 -5
- package/src/components/ThreadList/ThreadMessagePreviewDeliveryStatus.tsx +11 -5
- package/src/components/UIComponents/EmptySearchResult.tsx +3 -2
- package/src/components/UIComponents/SearchInput.tsx +6 -6
- package/src/components/UIComponents/SelectionCircle.tsx +3 -2
- package/src/components/UIComponents/Spinner.tsx +3 -2
- package/src/components/index.ts +5 -0
- package/src/components/ui/Avatar/AvatarGroup.tsx +4 -3
- package/src/components/ui/Avatar/UserAvatar.tsx +8 -3
- package/src/components/ui/Badge/ErrorBadge.tsx +3 -2
- package/src/components/ui/Badge/GiphyBadge.tsx +3 -2
- package/src/components/ui/Badge/ImgurBadge.tsx +3 -2
- package/src/components/ui/Badge/RetryBadge.tsx +3 -2
- package/src/components/ui/GiphyChip.tsx +4 -4
- package/src/components/ui/Input/Input.tsx +4 -4
- package/src/components/ui/VideoPlayIndicator.tsx +3 -2
- package/src/components/ui/index.ts +3 -0
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -1
- package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
- package/src/contexts/componentsContext/ComponentsContext.tsx +39 -9
- package/src/contexts/componentsContext/defaultComponents.ts +193 -0
- package/src/contexts/pollContext/pollContext.tsx +1 -1
- package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +15 -0
- package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +9 -0
- package/src/hooks/actions/useChannelActionItems.tsx +31 -11
- package/src/hooks/actions/useChannelMemberActionItems.tsx +29 -6
- package/src/hooks/messagePreview/useMessagePreviewIcon.tsx +11 -17
- package/src/version.json +1 -1
- package/lib/commonjs/icons/arrow-left.js +0 -37
- package/lib/commonjs/icons/arrow-left.js.map +0 -1
- package/lib/module/icons/arrow-left.js +0 -37
- package/lib/module/icons/arrow-left.js.map +0 -1
- package/lib/typescript/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/icons/arrow-left.d.ts.map +0 -1
- package/src/icons/arrow-left.tsx +0 -23
|
@@ -6,11 +6,27 @@ import React, { PropsWithChildren, useContext, useMemo } from 'react';
|
|
|
6
6
|
* Adding a new default automatically makes it available as an override.
|
|
7
7
|
*
|
|
8
8
|
* Every key is optional — only specify the components you want to override.
|
|
9
|
+
*
|
|
10
|
+
* The `icons` slot is a nested map: it is typed as a *partial* icon map so
|
|
11
|
+
* integrators can override individual icons without having to supply them all.
|
|
12
|
+
* Sibling defaults are preserved via a deep merge (see below).
|
|
9
13
|
*/
|
|
10
|
-
export type ComponentOverrides =
|
|
11
|
-
(typeof import('./defaultComponents'))['DEFAULT_COMPONENTS']
|
|
14
|
+
export type ComponentOverrides = Omit<
|
|
15
|
+
Partial<(typeof import('./defaultComponents'))['DEFAULT_COMPONENTS']>,
|
|
16
|
+
'icons'
|
|
12
17
|
> &
|
|
13
|
-
import('./defaultComponents').OptionalComponentOverrides
|
|
18
|
+
import('./defaultComponents').OptionalComponentOverrides & {
|
|
19
|
+
icons?: Partial<import('./defaultComponents').IconsMap>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Resolved component overrides with defaults filled in. Unlike
|
|
24
|
+
* `ComponentOverrides`, the `icons` map is guaranteed fully populated (defaults
|
|
25
|
+
* back every key), so consumers can read `icons.Mute` without a null check.
|
|
26
|
+
*/
|
|
27
|
+
export type ResolvedComponents = Required<Omit<ComponentOverrides, 'icons'>> & {
|
|
28
|
+
icons: import('./defaultComponents').IconsMap;
|
|
29
|
+
};
|
|
14
30
|
|
|
15
31
|
const ComponentsContext = React.createContext<ComponentOverrides>({});
|
|
16
32
|
|
|
@@ -33,8 +49,17 @@ export const WithComponents = ({
|
|
|
33
49
|
overrides,
|
|
34
50
|
}: PropsWithChildren<{ overrides: ComponentOverrides }>) => {
|
|
35
51
|
const parent = useContext(ComponentsContext);
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
const merged = useMemo(
|
|
53
|
+
() => ({
|
|
54
|
+
...parent,
|
|
55
|
+
...overrides,
|
|
56
|
+
// Deep-merge the nested `icons` map so overriding one icon keeps the
|
|
57
|
+
// rest (a shallow spread would replace the whole map).
|
|
58
|
+
icons: { ...parent.icons, ...overrides.icons },
|
|
59
|
+
}),
|
|
60
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally stable: overrides are set once at mount
|
|
61
|
+
[],
|
|
62
|
+
);
|
|
38
63
|
return <ComponentsContext.Provider value={merged}>{children}</ComponentsContext.Provider>;
|
|
39
64
|
};
|
|
40
65
|
|
|
@@ -55,9 +80,14 @@ const getDefaults = (): ComponentOverrides => {
|
|
|
55
80
|
*/
|
|
56
81
|
export const useComponentsContext = () => {
|
|
57
82
|
const overrides = useContext(ComponentsContext);
|
|
58
|
-
return useMemo(
|
|
59
|
-
|
|
83
|
+
return useMemo(() => {
|
|
84
|
+
const defaults = getDefaults();
|
|
85
|
+
return {
|
|
86
|
+
...defaults,
|
|
87
|
+
...overrides,
|
|
88
|
+
// Deep-merge icons so user overrides layer over the full default map.
|
|
89
|
+
icons: { ...defaults.icons, ...overrides.icons },
|
|
90
|
+
} as ResolvedComponents;
|
|
60
91
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally stable: overrides are set once at mount
|
|
61
|
-
|
|
62
|
-
);
|
|
92
|
+
}, []);
|
|
63
93
|
};
|
|
@@ -186,6 +186,90 @@ import { ChannelAvatar } from '../../components/ui/Avatar/ChannelAvatar';
|
|
|
186
186
|
import { SvgAwareImage } from '../../components/UIComponents/SvgAwareImage';
|
|
187
187
|
import { DefaultMessageOverlayBackground } from '../../contexts/overlayContext/MessageOverlayHostLayer';
|
|
188
188
|
import type { MessageActionsProps } from '../../contexts/overlayContext/MessageOverlayHostLayer';
|
|
189
|
+
import { ArrowUp, Down } from '../../icons/arrow-up';
|
|
190
|
+
import { ArrowUpRight } from '../../icons/arrow-up-right';
|
|
191
|
+
import { Sound } from '../../icons/audio';
|
|
192
|
+
import { Bell } from '../../icons/bell';
|
|
193
|
+
import { Lightning } from '../../icons/bolt';
|
|
194
|
+
import { Camera } from '../../icons/camera';
|
|
195
|
+
import { Check, Tick } from '../../icons/checkmark';
|
|
196
|
+
import { Checkmark } from '../../icons/checkmark-1';
|
|
197
|
+
import { CheckAll } from '../../icons/checks';
|
|
198
|
+
import { ChevronLeft } from '../../icons/chevron-left';
|
|
199
|
+
import { ChevronRight } from '../../icons/chevron-right';
|
|
200
|
+
import { ChevronUp } from '../../icons/chevron-up';
|
|
201
|
+
import { Time } from '../../icons/clock';
|
|
202
|
+
import { CommandsIcon } from '../../icons/command';
|
|
203
|
+
import { Copy } from '../../icons/copy';
|
|
204
|
+
import { Delete } from '../../icons/delete';
|
|
205
|
+
import { Edit } from '../../icons/edit';
|
|
206
|
+
import { Smile } from '../../icons/emoji';
|
|
207
|
+
import { MoreEmojis } from '../../icons/emoji-add-1';
|
|
208
|
+
import { ExclamationCircle } from '../../icons/exclamation-circle-fill';
|
|
209
|
+
import { Exclamation } from '../../icons/exclamation-mark-fill';
|
|
210
|
+
import { Warning } from '../../icons/exclamation-triangle-fill';
|
|
211
|
+
import { EyeOpen } from '../../icons/EyeOpen';
|
|
212
|
+
import { File, FilePickerIcon } from '../../icons/file';
|
|
213
|
+
import { Audio } from '../../icons/filetype-audio-xl';
|
|
214
|
+
import { Code } from '../../icons/filetype-code-xl';
|
|
215
|
+
import { ZIP } from '../../icons/filetype-compression-xl';
|
|
216
|
+
import { OtherFileIcon } from '../../icons/filetype-other-xl';
|
|
217
|
+
import { PDF } from '../../icons/filetype-pdf-xl';
|
|
218
|
+
import { Presentation } from '../../icons/filetype-presentation-xl';
|
|
219
|
+
import { SpreadSheet } from '../../icons/filetype-spreadsheet-xl';
|
|
220
|
+
import { DOC } from '../../icons/filetype-text-xl';
|
|
221
|
+
import { Video } from '../../icons/filetype-video-xl';
|
|
222
|
+
import { Flag, MessageFlag } from '../../icons/flag';
|
|
223
|
+
import { Folder } from '../../icons/folder';
|
|
224
|
+
import { ImageGrid } from '../../icons/gallery';
|
|
225
|
+
import { Giphy as GiphyFiletypeIcon, GiphyIcon } from '../../icons/giphy';
|
|
226
|
+
import { PhotoIcon, Picture } from '../../icons/image';
|
|
227
|
+
import { Imgur } from '../../icons/imgur';
|
|
228
|
+
import { InfoTooltip } from '../../icons/info';
|
|
229
|
+
import { ArrowBoxLeft } from '../../icons/leave';
|
|
230
|
+
import { Link } from '../../icons/link';
|
|
231
|
+
import { Loading } from '../../icons/loading';
|
|
232
|
+
import { MapPin } from '../../icons/location';
|
|
233
|
+
import { Lock } from '../../icons/lock';
|
|
234
|
+
import { Megaphone } from '../../icons/megaphone';
|
|
235
|
+
import { MessageBubbleEmpty } from '../../icons/message-bubble';
|
|
236
|
+
import { Minus } from '../../icons/minus';
|
|
237
|
+
import { CircleMinus } from '../../icons/minus-circle';
|
|
238
|
+
import { MenuPointHorizontal } from '../../icons/more';
|
|
239
|
+
import { Mute } from '../../icons/mute';
|
|
240
|
+
import { BlockUser, CircleBan } from '../../icons/no-sign';
|
|
241
|
+
import { UnreadIndicator } from '../../icons/notification';
|
|
242
|
+
import { Pause } from '../../icons/pause-fill';
|
|
243
|
+
import { Pin } from '../../icons/pin';
|
|
244
|
+
import { Play } from '../../icons/play-fill';
|
|
245
|
+
import { Plus } from '../../icons/plus';
|
|
246
|
+
import { PollIcon, PollThumbnail } from '../../icons/poll';
|
|
247
|
+
import { Reload } from '../../icons/refresh';
|
|
248
|
+
import { DotGrid } from '../../icons/reorder';
|
|
249
|
+
import { ArrowShareLeft, CurveLineLeftUp } from '../../icons/reply';
|
|
250
|
+
import { ReplyConnectorLeft } from '../../icons/ReplyConnectorLeft';
|
|
251
|
+
import { ReplyConnectorRight } from '../../icons/ReplyConnectorRight';
|
|
252
|
+
import { Resend } from '../../icons/Retry';
|
|
253
|
+
import { Bookmark } from '../../icons/save';
|
|
254
|
+
import { Search } from '../../icons/search';
|
|
255
|
+
import { SendRight } from '../../icons/send';
|
|
256
|
+
import { Share } from '../../icons/share';
|
|
257
|
+
import { Shield } from '../../icons/shield';
|
|
258
|
+
import { Stop } from '../../icons/stop-fill';
|
|
259
|
+
import { ThreadReply } from '../../icons/thread';
|
|
260
|
+
import { Unknown } from '../../icons/Unknown';
|
|
261
|
+
import { Unlock } from '../../icons/unlock';
|
|
262
|
+
import { Unpin } from '../../icons/unpin';
|
|
263
|
+
import { UserAdd } from '../../icons/user-add';
|
|
264
|
+
import { UserDelete } from '../../icons/user-remove';
|
|
265
|
+
import { PeopleIcon } from '../../icons/users';
|
|
266
|
+
import type { IconProps } from '../../icons/utils/base';
|
|
267
|
+
import { VideoIcon } from '../../icons/video';
|
|
268
|
+
import { Recorder } from '../../icons/video-fill';
|
|
269
|
+
import { Mic } from '../../icons/voice';
|
|
270
|
+
import { XCircle } from '../../icons/x-circle';
|
|
271
|
+
import { NewClose } from '../../icons/xmark';
|
|
272
|
+
import { Cross } from '../../icons/xmark-1';
|
|
189
273
|
|
|
190
274
|
/**
|
|
191
275
|
* Normalizes each component entry to React.ComponentType<P>, stripping
|
|
@@ -197,7 +281,116 @@ type NormalizeComponents<T> = {
|
|
|
197
281
|
[K in keyof T]: T[K] extends React.ComponentType<infer P> ? React.ComponentType<P> : T[K];
|
|
198
282
|
};
|
|
199
283
|
|
|
284
|
+
/**
|
|
285
|
+
* All overridable icon components in the SDK, keyed by their exported name.
|
|
286
|
+
* Exposed via `WithComponents` under the nested `icons` key so integrators can
|
|
287
|
+
* swap any icon: `<WithComponents overrides={{ icons: { Mute: MyMute } }}>`.
|
|
288
|
+
*
|
|
289
|
+
* Only icons that are actually rendered by the SDK are registered here.
|
|
290
|
+
*/
|
|
291
|
+
export const defaultIcons = {
|
|
292
|
+
ArrowBoxLeft,
|
|
293
|
+
ArrowShareLeft,
|
|
294
|
+
ArrowUp,
|
|
295
|
+
ArrowUpRight,
|
|
296
|
+
Audio,
|
|
297
|
+
Bell,
|
|
298
|
+
BlockUser,
|
|
299
|
+
Bookmark,
|
|
300
|
+
Camera,
|
|
301
|
+
Check,
|
|
302
|
+
CheckAll,
|
|
303
|
+
Checkmark,
|
|
304
|
+
ChevronLeft,
|
|
305
|
+
ChevronRight,
|
|
306
|
+
ChevronUp,
|
|
307
|
+
CircleBan,
|
|
308
|
+
CircleMinus,
|
|
309
|
+
Code,
|
|
310
|
+
CommandsIcon,
|
|
311
|
+
Copy,
|
|
312
|
+
Cross,
|
|
313
|
+
CurveLineLeftUp,
|
|
314
|
+
Delete,
|
|
315
|
+
DOC,
|
|
316
|
+
DotGrid,
|
|
317
|
+
Down,
|
|
318
|
+
Edit,
|
|
319
|
+
Exclamation,
|
|
320
|
+
ExclamationCircle,
|
|
321
|
+
EyeOpen,
|
|
322
|
+
File,
|
|
323
|
+
FilePickerIcon,
|
|
324
|
+
Flag,
|
|
325
|
+
Folder,
|
|
326
|
+
Giphy: GiphyFiletypeIcon,
|
|
327
|
+
GiphyIcon,
|
|
328
|
+
ImageGrid,
|
|
329
|
+
Imgur,
|
|
330
|
+
InfoTooltip,
|
|
331
|
+
Lightning,
|
|
332
|
+
Link,
|
|
333
|
+
Loading,
|
|
334
|
+
Lock,
|
|
335
|
+
MapPin,
|
|
336
|
+
Megaphone,
|
|
337
|
+
MenuPointHorizontal,
|
|
338
|
+
MessageBubbleEmpty,
|
|
339
|
+
MessageFlag,
|
|
340
|
+
Mic,
|
|
341
|
+
Minus,
|
|
342
|
+
MoreEmojis,
|
|
343
|
+
Mute,
|
|
344
|
+
NewClose,
|
|
345
|
+
OtherFileIcon,
|
|
346
|
+
Pause,
|
|
347
|
+
PDF,
|
|
348
|
+
PeopleIcon,
|
|
349
|
+
PhotoIcon,
|
|
350
|
+
Picture,
|
|
351
|
+
Pin,
|
|
352
|
+
Play,
|
|
353
|
+
Plus,
|
|
354
|
+
PollIcon,
|
|
355
|
+
PollThumbnail,
|
|
356
|
+
Presentation,
|
|
357
|
+
Recorder,
|
|
358
|
+
Reload,
|
|
359
|
+
ReplyConnectorLeft,
|
|
360
|
+
ReplyConnectorRight,
|
|
361
|
+
Resend,
|
|
362
|
+
Search,
|
|
363
|
+
SendRight,
|
|
364
|
+
Share,
|
|
365
|
+
Shield,
|
|
366
|
+
Smile,
|
|
367
|
+
Sound,
|
|
368
|
+
SpreadSheet,
|
|
369
|
+
Stop,
|
|
370
|
+
ThreadReply,
|
|
371
|
+
Tick,
|
|
372
|
+
Time,
|
|
373
|
+
Unknown,
|
|
374
|
+
Unlock,
|
|
375
|
+
Unpin,
|
|
376
|
+
UnreadIndicator,
|
|
377
|
+
UserAdd,
|
|
378
|
+
UserDelete,
|
|
379
|
+
Video,
|
|
380
|
+
VideoIcon,
|
|
381
|
+
Warning,
|
|
382
|
+
XCircle,
|
|
383
|
+
ZIP,
|
|
384
|
+
} satisfies Record<string, React.ComponentType<IconProps>>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Map of all overridable SDK icons. Used to type the `icons` override slot
|
|
388
|
+
* and the resolved value returned by `useComponentsContext().icons`.
|
|
389
|
+
*/
|
|
390
|
+
export type IconsMap = typeof defaultIcons;
|
|
391
|
+
|
|
200
392
|
const components = {
|
|
393
|
+
icons: defaultIcons,
|
|
201
394
|
Attachment,
|
|
202
395
|
AttachmentUploadIndicator,
|
|
203
396
|
AttachButton,
|
|
@@ -29,7 +29,7 @@ export const usePollContext = () => {
|
|
|
29
29
|
|
|
30
30
|
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
|
|
31
31
|
throw new Error(
|
|
32
|
-
'The
|
|
32
|
+
'The usePollContext hook was called outside of the PollContext provider. Make sure you have configured the Poll component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel',
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -5,6 +5,7 @@ import type { Channel, Mute } from 'stream-chat';
|
|
|
5
5
|
|
|
6
6
|
import * as useMutedUsersModule from '../../../components/ChannelList/hooks/useMutedUsers';
|
|
7
7
|
import * as useIsChannelMutedModule from '../../../components/ChannelPreview/hooks/useIsChannelMuted';
|
|
8
|
+
import { defaultIcons } from '../../../contexts/componentsContext/defaultComponents';
|
|
8
9
|
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
9
10
|
import * as TranslationContext from '../../../contexts/translationContext/TranslationContext';
|
|
10
11
|
import * as useChannelMembershipStateModule from '../../useChannelMembershipState';
|
|
@@ -219,6 +220,7 @@ describe('useChannelActionItems', () => {
|
|
|
219
220
|
isDirectChat: false,
|
|
220
221
|
isPinned: false,
|
|
221
222
|
surface: 'list',
|
|
223
|
+
icons: defaultIcons,
|
|
222
224
|
t: expect.any(Function),
|
|
223
225
|
userMuteActive: false,
|
|
224
226
|
},
|
|
@@ -246,6 +248,7 @@ describe('getChannelActionItems', () => {
|
|
|
246
248
|
isDirectChat: false,
|
|
247
249
|
isPinned: false,
|
|
248
250
|
surface: 'list',
|
|
251
|
+
icons: defaultIcons,
|
|
249
252
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
250
253
|
userMuteActive: false,
|
|
251
254
|
});
|
|
@@ -259,6 +262,7 @@ describe('getChannelActionItems', () => {
|
|
|
259
262
|
isDirectChat: false,
|
|
260
263
|
isPinned: false,
|
|
261
264
|
surface: 'list',
|
|
265
|
+
icons: defaultIcons,
|
|
262
266
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
263
267
|
userMuteActive: false,
|
|
264
268
|
},
|
|
@@ -291,6 +295,7 @@ describe('getChannelActionItems', () => {
|
|
|
291
295
|
isDirectChat: true,
|
|
292
296
|
isPinned: false,
|
|
293
297
|
surface: 'list',
|
|
298
|
+
icons: defaultIcons,
|
|
294
299
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
295
300
|
userMuteActive: true,
|
|
296
301
|
});
|
|
@@ -339,6 +344,7 @@ describe('getChannelActionItems', () => {
|
|
|
339
344
|
isDirectChat: false,
|
|
340
345
|
isPinned: false,
|
|
341
346
|
surface: 'list',
|
|
347
|
+
icons: defaultIcons,
|
|
342
348
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
343
349
|
userMuteActive: false,
|
|
344
350
|
});
|
|
@@ -356,6 +362,7 @@ describe('getChannelActionItems', () => {
|
|
|
356
362
|
isDirectChat: false,
|
|
357
363
|
isPinned: false,
|
|
358
364
|
surface: 'list',
|
|
365
|
+
icons: defaultIcons,
|
|
359
366
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
360
367
|
userMuteActive: false,
|
|
361
368
|
});
|
|
@@ -374,6 +381,7 @@ describe('getChannelActionItems', () => {
|
|
|
374
381
|
isDirectChat: false,
|
|
375
382
|
isPinned: false,
|
|
376
383
|
surface: 'list',
|
|
384
|
+
icons: defaultIcons,
|
|
377
385
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
378
386
|
userMuteActive: false,
|
|
379
387
|
});
|
|
@@ -399,6 +407,7 @@ describe('getChannelActionItems', () => {
|
|
|
399
407
|
isDirectChat: false,
|
|
400
408
|
isPinned: true,
|
|
401
409
|
surface: 'list',
|
|
410
|
+
icons: defaultIcons,
|
|
402
411
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
403
412
|
userMuteActive: false,
|
|
404
413
|
});
|
|
@@ -420,6 +429,7 @@ describe('getChannelActionItems', () => {
|
|
|
420
429
|
isDirectChat: true,
|
|
421
430
|
isPinned: false,
|
|
422
431
|
surface: 'list',
|
|
432
|
+
icons: defaultIcons,
|
|
423
433
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
424
434
|
userMuteActive: false,
|
|
425
435
|
});
|
|
@@ -439,6 +449,7 @@ describe('getChannelActionItems', () => {
|
|
|
439
449
|
isDirectChat: false,
|
|
440
450
|
isPinned: false,
|
|
441
451
|
surface: 'details',
|
|
452
|
+
icons: defaultIcons,
|
|
442
453
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
443
454
|
userMuteActive: false,
|
|
444
455
|
});
|
|
@@ -456,6 +467,7 @@ describe('getChannelActionItems', () => {
|
|
|
456
467
|
isDirectChat: false,
|
|
457
468
|
isPinned: false,
|
|
458
469
|
surface: 'list',
|
|
470
|
+
icons: defaultIcons,
|
|
459
471
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
460
472
|
userMuteActive: false,
|
|
461
473
|
});
|
|
@@ -472,6 +484,7 @@ describe('getChannelActionItems', () => {
|
|
|
472
484
|
isBlocked: undefined,
|
|
473
485
|
isDirectChat: false,
|
|
474
486
|
isPinned: false,
|
|
487
|
+
icons: defaultIcons,
|
|
475
488
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
476
489
|
userMuteActive: false,
|
|
477
490
|
});
|
|
@@ -490,6 +503,7 @@ describe('getChannelActionItems', () => {
|
|
|
490
503
|
isDirectChat: true,
|
|
491
504
|
isPinned: false,
|
|
492
505
|
surface: 'list',
|
|
506
|
+
icons: defaultIcons,
|
|
493
507
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
494
508
|
userMuteActive: true,
|
|
495
509
|
});
|
|
@@ -516,6 +530,7 @@ describe('getChannelActionItems', () => {
|
|
|
516
530
|
isDirectChat: false,
|
|
517
531
|
isPinned: false,
|
|
518
532
|
surface: 'list',
|
|
533
|
+
icons: defaultIcons,
|
|
519
534
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
520
535
|
userMuteActive: false,
|
|
521
536
|
});
|
|
@@ -6,6 +6,7 @@ import type { Channel, ChannelMemberResponse, Mute } from 'stream-chat';
|
|
|
6
6
|
|
|
7
7
|
import * as useMutedUsersModule from '../../../components/ChannelList/hooks/useMutedUsers';
|
|
8
8
|
import { ChatProvider } from '../../../contexts/chatContext/ChatContext';
|
|
9
|
+
import { defaultIcons } from '../../../contexts/componentsContext/defaultComponents';
|
|
9
10
|
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
10
11
|
import * as TranslationContext from '../../../contexts/translationContext/TranslationContext';
|
|
11
12
|
import * as useChannelOwnCapabilitiesModule from '../../useChannelOwnCapabilities';
|
|
@@ -227,6 +228,7 @@ describe('useChannelMemberActionItems', () => {
|
|
|
227
228
|
channelActions,
|
|
228
229
|
isBlocked: false,
|
|
229
230
|
isCurrentUser: false,
|
|
231
|
+
icons: defaultIcons,
|
|
230
232
|
member,
|
|
231
233
|
ownCapabilities: [],
|
|
232
234
|
t: expect.any(Function),
|
|
@@ -253,6 +255,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
253
255
|
isCurrentUser: false,
|
|
254
256
|
member,
|
|
255
257
|
ownCapabilities: undefined,
|
|
258
|
+
icons: defaultIcons,
|
|
256
259
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
257
260
|
userActions: actions,
|
|
258
261
|
userMuteActive: false,
|
|
@@ -273,6 +276,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
273
276
|
isCurrentUser: true,
|
|
274
277
|
member,
|
|
275
278
|
ownCapabilities: undefined,
|
|
279
|
+
icons: defaultIcons,
|
|
276
280
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
277
281
|
userActions: actions,
|
|
278
282
|
userMuteActive: false,
|
|
@@ -290,6 +294,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
290
294
|
isCurrentUser: false,
|
|
291
295
|
member,
|
|
292
296
|
ownCapabilities: ['update-channel-members'],
|
|
297
|
+
icons: defaultIcons,
|
|
293
298
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
294
299
|
userActions: actions,
|
|
295
300
|
userMuteActive: false,
|
|
@@ -310,6 +315,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
310
315
|
isCurrentUser: false,
|
|
311
316
|
member,
|
|
312
317
|
ownCapabilities: undefined,
|
|
318
|
+
icons: defaultIcons,
|
|
313
319
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
314
320
|
userActions: actions,
|
|
315
321
|
userMuteActive: true,
|
|
@@ -329,6 +335,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
329
335
|
isCurrentUser: false,
|
|
330
336
|
member,
|
|
331
337
|
ownCapabilities: undefined,
|
|
338
|
+
icons: defaultIcons,
|
|
332
339
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
333
340
|
userActions: actions,
|
|
334
341
|
userMuteActive: true,
|
|
@@ -347,6 +354,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
347
354
|
isCurrentUser: false,
|
|
348
355
|
member,
|
|
349
356
|
ownCapabilities: undefined,
|
|
357
|
+
icons: defaultIcons,
|
|
350
358
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
351
359
|
userActions: actions,
|
|
352
360
|
userMuteActive: false,
|
|
@@ -360,6 +368,7 @@ describe('buildDefaultChannelMemberActionItems', () => {
|
|
|
360
368
|
isCurrentUser: false,
|
|
361
369
|
member,
|
|
362
370
|
ownCapabilities: undefined,
|
|
371
|
+
icons: defaultIcons,
|
|
363
372
|
t: ((value: string) => value) as TranslationContextValue['t'],
|
|
364
373
|
userActions: actions,
|
|
365
374
|
userMuteActive: false,
|
|
@@ -14,13 +14,28 @@ import {
|
|
|
14
14
|
import { useIsChannelMuted } from '../../components/ChannelPreview/hooks/useIsChannelMuted';
|
|
15
15
|
import { useUserMuteActive } from '../../components/Message/hooks/useUserMuteActive';
|
|
16
16
|
import { useTheme, useTranslationContext } from '../../contexts';
|
|
17
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
18
|
+
import type { IconsMap } from '../../contexts/componentsContext/defaultComponents';
|
|
17
19
|
import type { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
18
|
-
import { IconProps
|
|
19
|
-
import { ArrowBoxLeft } from '../../icons/leave';
|
|
20
|
+
import { IconProps } from '../../icons';
|
|
20
21
|
import { useChannelMembershipState } from '../useChannelMembershipState';
|
|
21
22
|
import { useIsDirectChat } from '../useIsDirectChat';
|
|
22
23
|
import { useStateStore } from '../useStateStore';
|
|
23
24
|
|
|
25
|
+
// Lazily resolved to avoid a static import cycle with defaultComponents.ts
|
|
26
|
+
// (defaultComponents → ChannelDetails*/ChannelPreview* → this file). Statically
|
|
27
|
+
// importing defaultIcons corrupts module-init order; require it at call time
|
|
28
|
+
// instead. Same pattern as ComponentsContext's getDefaults().
|
|
29
|
+
let cachedDefaultIcons: IconsMap | undefined;
|
|
30
|
+
const getDefaultIcons = (): IconsMap => {
|
|
31
|
+
if (!cachedDefaultIcons) {
|
|
32
|
+
cachedDefaultIcons = (
|
|
33
|
+
require('../../contexts/componentsContext/defaultComponents') as { defaultIcons: IconsMap }
|
|
34
|
+
).defaultIcons;
|
|
35
|
+
}
|
|
36
|
+
return cachedDefaultIcons;
|
|
37
|
+
};
|
|
38
|
+
|
|
24
39
|
export type ChannelActionItem = ActionItem<
|
|
25
40
|
'mute' | 'muteUser' | 'block' | 'leave' | 'deleteChannel' | 'pin' | string
|
|
26
41
|
> & {
|
|
@@ -63,6 +78,7 @@ export type ChannelActionItemsParams = {
|
|
|
63
78
|
actions: ChannelActions;
|
|
64
79
|
channel: Channel;
|
|
65
80
|
channelMuteActive: boolean;
|
|
81
|
+
icons: IconsMap;
|
|
66
82
|
isArchived: boolean;
|
|
67
83
|
isBlocked: boolean | undefined;
|
|
68
84
|
isDirectChat: boolean;
|
|
@@ -73,7 +89,7 @@ export type ChannelActionItemsParams = {
|
|
|
73
89
|
};
|
|
74
90
|
|
|
75
91
|
export type BuildDefaultChannelActionItems = (
|
|
76
|
-
channelActionItemsParams: ChannelActionItemsParams,
|
|
92
|
+
channelActionItemsParams: Omit<ChannelActionItemsParams, 'icons'> & { icons?: IconsMap },
|
|
77
93
|
) => ChannelActionItem[];
|
|
78
94
|
|
|
79
95
|
const ChannelActionsIcon = ({
|
|
@@ -104,6 +120,7 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
104
120
|
unpin,
|
|
105
121
|
},
|
|
106
122
|
channelMuteActive,
|
|
123
|
+
icons = getDefaultIcons(),
|
|
107
124
|
isBlocked,
|
|
108
125
|
isDirectChat,
|
|
109
126
|
isPinned,
|
|
@@ -119,9 +136,9 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
119
136
|
action: channelMuteActive ? unmuteChannel : muteChannel,
|
|
120
137
|
Icon: (props) =>
|
|
121
138
|
channelMuteActive ? (
|
|
122
|
-
<Sound width={20} height={20} {...props} />
|
|
139
|
+
<icons.Sound width={20} height={20} {...props} />
|
|
123
140
|
) : (
|
|
124
|
-
<Mute
|
|
141
|
+
<icons.Mute
|
|
125
142
|
width={20}
|
|
126
143
|
height={20}
|
|
127
144
|
{...props}
|
|
@@ -145,7 +162,7 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
145
162
|
if (surface !== 'details') {
|
|
146
163
|
actionItems.push({
|
|
147
164
|
action: isPinned ? unpin : pin,
|
|
148
|
-
Icon: (props) => <ChannelActionsIcon Icon={isPinned ? Unpin : Pin} {...props} />,
|
|
165
|
+
Icon: (props) => <ChannelActionsIcon Icon={isPinned ? icons.Unpin : icons.Pin} {...props} />,
|
|
149
166
|
id: 'pin',
|
|
150
167
|
label: isDirectChat
|
|
151
168
|
? isPinned
|
|
@@ -164,10 +181,10 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
164
181
|
action: userMuteActive ? unmuteUser : muteUser,
|
|
165
182
|
Icon: (props) =>
|
|
166
183
|
userMuteActive ? (
|
|
167
|
-
<ChannelActionsIcon Icon={Sound} {...props} />
|
|
184
|
+
<ChannelActionsIcon Icon={icons.Sound} {...props} />
|
|
168
185
|
) : (
|
|
169
186
|
<ChannelActionsIcon
|
|
170
|
-
Icon={Mute}
|
|
187
|
+
Icon={icons.Mute}
|
|
171
188
|
{...props}
|
|
172
189
|
fill={props.fill ?? props.stroke}
|
|
173
190
|
stroke={undefined}
|
|
@@ -204,7 +221,7 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
204
221
|
|
|
205
222
|
actionItems.push({
|
|
206
223
|
action: isBlocked ? unblockUser : blockUserWithConfirmation,
|
|
207
|
-
Icon: (props) => <ChannelActionsIcon Icon={BlockUser} {...props} />,
|
|
224
|
+
Icon: (props) => <ChannelActionsIcon Icon={icons.BlockUser} {...props} />,
|
|
208
225
|
id: 'block',
|
|
209
226
|
label: isBlocked ? t('Unblock User') : t('Block User'),
|
|
210
227
|
placement: 'sheet',
|
|
@@ -245,7 +262,7 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
245
262
|
|
|
246
263
|
actionItems.push({
|
|
247
264
|
action: leaveWithConfirmation,
|
|
248
|
-
Icon: (props) => <ChannelActionsIcon Icon={ArrowBoxLeft} {...props} />,
|
|
265
|
+
Icon: (props) => <ChannelActionsIcon Icon={icons.ArrowBoxLeft} {...props} />,
|
|
249
266
|
id: 'leave',
|
|
250
267
|
label: isDirectChat ? t('Leave Chat') : t('Leave Group'),
|
|
251
268
|
placement: 'sheet',
|
|
@@ -274,7 +291,7 @@ export const buildDefaultChannelActionItems: BuildDefaultChannelActionItems = (
|
|
|
274
291
|
},
|
|
275
292
|
]);
|
|
276
293
|
},
|
|
277
|
-
Icon: (props) => <ChannelActionsIcon Icon={Delete} {...props} />,
|
|
294
|
+
Icon: (props) => <ChannelActionsIcon Icon={icons.Delete} {...props} />,
|
|
278
295
|
id: 'deleteChannel',
|
|
279
296
|
label: isDirectChat ? t('Delete Chat') : t('Delete Group'),
|
|
280
297
|
placement: 'sheet',
|
|
@@ -307,6 +324,7 @@ export const useChannelActionItems = ({
|
|
|
307
324
|
getChannelActionItems: getChannelActionItemsProp = getChannelActionItems,
|
|
308
325
|
}: UseChannelActionItemsParams) => {
|
|
309
326
|
const { t } = useTranslationContext();
|
|
327
|
+
const { icons } = useComponentsContext();
|
|
310
328
|
const membership = useChannelMembershipState(channel);
|
|
311
329
|
const channelActions = useChannelActions(channel);
|
|
312
330
|
const isDirectChat = useIsDirectChat(channel);
|
|
@@ -331,6 +349,7 @@ export const useChannelActionItems = ({
|
|
|
331
349
|
actions: channelActions,
|
|
332
350
|
channel,
|
|
333
351
|
channelMuteActive,
|
|
352
|
+
icons,
|
|
334
353
|
isArchived,
|
|
335
354
|
isBlocked,
|
|
336
355
|
isDirectChat,
|
|
@@ -343,6 +362,7 @@ export const useChannelActionItems = ({
|
|
|
343
362
|
channel,
|
|
344
363
|
channelActions,
|
|
345
364
|
channelMuteActive,
|
|
365
|
+
icons,
|
|
346
366
|
isArchived,
|
|
347
367
|
isBlocked,
|
|
348
368
|
isDirectChat,
|