stream-chat-react-native-core 9.6.2-beta.5 → 9.7.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/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/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/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/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/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/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/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/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/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/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/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/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/contexts/componentsContext/ComponentsContext.tsx +39 -9
- package/src/contexts/componentsContext/defaultComponents.ts +193 -0
- 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
|
@@ -11,11 +11,7 @@ import { getNotificationDisplayMessage } from './notificationTranslations';
|
|
|
11
11
|
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
12
12
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
13
13
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
14
|
-
import { Check } from '../../icons/checkmark';
|
|
15
|
-
import { ExclamationCircle } from '../../icons/exclamation-circle-fill';
|
|
16
|
-
import { Reload } from '../../icons/refresh';
|
|
17
14
|
import { IconProps } from '../../icons/utils/base';
|
|
18
|
-
import { NewClose } from '../../icons/xmark';
|
|
19
15
|
import { primitives } from '../../theme';
|
|
20
16
|
import { Button } from '../ui/Button';
|
|
21
17
|
|
|
@@ -35,23 +31,27 @@ export type NotificationVariant = 'default' | NotificationSeverity;
|
|
|
35
31
|
export const getNotificationVariant = (notification: NotificationType): NotificationVariant =>
|
|
36
32
|
notification.severity ?? 'default';
|
|
37
33
|
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
success: Check,
|
|
43
|
-
warning: ExclamationCircle,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const getNotificationIconComponent = (notification: NotificationType) => {
|
|
34
|
+
const getNotificationIconComponent = (
|
|
35
|
+
notification: NotificationType,
|
|
36
|
+
icons: ReturnType<typeof useComponentsContext>['icons'],
|
|
37
|
+
) => {
|
|
47
38
|
const variant = getNotificationVariant(notification);
|
|
48
39
|
if (variant === 'default') return undefined;
|
|
49
40
|
|
|
41
|
+
const IconsByVariant: Partial<Record<NotificationVariant, ComponentType<IconProps> | null>> = {
|
|
42
|
+
error: icons.ExclamationCircle,
|
|
43
|
+
info: null,
|
|
44
|
+
loading: icons.Reload,
|
|
45
|
+
success: icons.Check,
|
|
46
|
+
warning: icons.ExclamationCircle,
|
|
47
|
+
};
|
|
48
|
+
|
|
50
49
|
return IconsByVariant[variant] ?? undefined;
|
|
51
50
|
};
|
|
52
51
|
|
|
53
52
|
export const NotificationIcon = ({ notification }: NotificationIconProps) => {
|
|
54
|
-
const
|
|
53
|
+
const { icons } = useComponentsContext();
|
|
54
|
+
const Icon = getNotificationIconComponent(notification, icons);
|
|
55
55
|
const { iconColor, styles } = useNotificationIconStyles();
|
|
56
56
|
if (!Icon) return null;
|
|
57
57
|
|
|
@@ -84,14 +84,15 @@ export const Notification = ({
|
|
|
84
84
|
onDismiss,
|
|
85
85
|
showClose = false,
|
|
86
86
|
}: NotificationProps) => {
|
|
87
|
-
const { NotificationIcon: NotificationIconComponent = NotificationIcon } =
|
|
87
|
+
const { icons, NotificationIcon: NotificationIconComponent = NotificationIcon } =
|
|
88
|
+
useComponentsContext();
|
|
88
89
|
const { removeNotification } = useNotificationApi();
|
|
89
90
|
const { t } = useTranslationContext();
|
|
90
91
|
const displayMessage = getNotificationDisplayMessage({ notification, t });
|
|
91
92
|
const ResolvedIcon = Icon ?? NotificationIconComponent;
|
|
92
93
|
const hasResolvedIcon =
|
|
93
94
|
ResolvedIcon === NotificationIcon
|
|
94
|
-
? !!getNotificationIconComponent(notification)
|
|
95
|
+
? !!getNotificationIconComponent(notification, icons)
|
|
95
96
|
: !!ResolvedIcon;
|
|
96
97
|
const { closeIconColor, styles } = useNotificationStyles({ hasResolvedIcon });
|
|
97
98
|
const isPersistent = !notification.duration;
|
|
@@ -142,7 +143,7 @@ export const Notification = ({
|
|
|
142
143
|
style={({ pressed }) => (pressed ? styles.closeButtonPressed : styles.closeButton)}
|
|
143
144
|
testID='notification-close-button'
|
|
144
145
|
>
|
|
145
|
-
<NewClose height={20} stroke={closeIconColor} width={20} />
|
|
146
|
+
<icons.NewClose height={20} stroke={closeIconColor} width={20} />
|
|
146
147
|
</Pressable>
|
|
147
148
|
) : null}
|
|
148
149
|
</View>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
5
6
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
6
|
-
import {
|
|
7
|
-
import { Cross } from '../../../icons/xmark-1';
|
|
7
|
+
import { IconProps } from '../../../icons';
|
|
8
8
|
import { primitives } from '../../../theme';
|
|
9
9
|
import { Button } from '../../ui';
|
|
10
10
|
import { useCanCreatePoll } from '../hooks/useCanCreatePoll';
|
|
@@ -27,6 +27,7 @@ export const CreatePollHeader = ({
|
|
|
27
27
|
onCreatePollPressHandler,
|
|
28
28
|
}: CreatePollHeaderProps) => {
|
|
29
29
|
const { t } = useTranslationContext();
|
|
30
|
+
const { icons } = useComponentsContext();
|
|
30
31
|
|
|
31
32
|
const canCreatePoll = useCanCreatePoll();
|
|
32
33
|
|
|
@@ -44,7 +45,7 @@ export const CreatePollHeader = ({
|
|
|
44
45
|
const renderSendPollIcon = useCallback(
|
|
45
46
|
(props: IconProps) => {
|
|
46
47
|
return (
|
|
47
|
-
<Check
|
|
48
|
+
<icons.Check
|
|
48
49
|
{...props}
|
|
49
50
|
height={18}
|
|
50
51
|
stroke={canCreatePoll ? semantics.textOnAccent : semantics.textDisabled}
|
|
@@ -52,7 +53,7 @@ export const CreatePollHeader = ({
|
|
|
52
53
|
/>
|
|
53
54
|
);
|
|
54
55
|
},
|
|
55
|
-
[canCreatePoll, semantics.textOnAccent, semantics.textDisabled],
|
|
56
|
+
[canCreatePoll, icons, semantics.textOnAccent, semantics.textDisabled],
|
|
56
57
|
);
|
|
57
58
|
|
|
58
59
|
return (
|
|
@@ -63,7 +64,7 @@ export const CreatePollHeader = ({
|
|
|
63
64
|
onPress={onBackPressHandler}
|
|
64
65
|
type='outline'
|
|
65
66
|
size='md'
|
|
66
|
-
LeadingIcon={Cross}
|
|
67
|
+
LeadingIcon={icons.Cross}
|
|
67
68
|
iconOnly
|
|
68
69
|
/>
|
|
69
70
|
|
|
@@ -25,11 +25,9 @@ import Animated, {
|
|
|
25
25
|
import { PollComposerOption, PollComposerState } from 'stream-chat';
|
|
26
26
|
|
|
27
27
|
import { useCreatePollContentContext, useTheme, useTranslationContext } from '../../../contexts';
|
|
28
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
28
29
|
import { useMessageComposer } from '../../../contexts/messageInputContext/hooks/useMessageComposer';
|
|
29
30
|
import { useStateStore } from '../../../hooks/useStateStore';
|
|
30
|
-
import { InfoTooltip } from '../../../icons/info';
|
|
31
|
-
import { CircleMinus } from '../../../icons/minus-circle';
|
|
32
|
-
import { DotGrid } from '../../../icons/reorder';
|
|
33
31
|
import { primitives } from '../../../theme';
|
|
34
32
|
|
|
35
33
|
export type CurrentOptionPositionsCache = {
|
|
@@ -285,6 +283,7 @@ export const CreatePollOption = ({
|
|
|
285
283
|
onRemoveOption,
|
|
286
284
|
}: CreatePollOptionType) => {
|
|
287
285
|
const { t } = useTranslationContext();
|
|
286
|
+
const { icons } = useComponentsContext();
|
|
288
287
|
const { createPollOptionGap = 8 } = useCreatePollContentContext();
|
|
289
288
|
const normalizedCreatePollOptionGap =
|
|
290
289
|
Number.isFinite(createPollOptionGap) && createPollOptionGap > 0 ? createPollOptionGap : 0;
|
|
@@ -510,7 +509,7 @@ export const CreatePollOption = ({
|
|
|
510
509
|
<Animated.View layout={LayoutTransition} style={[styles.optionContent, optionStyle.content]}>
|
|
511
510
|
<GestureDetector gesture={gesture}>
|
|
512
511
|
<Animated.View>
|
|
513
|
-
<DotGrid height={20} width={20} stroke={semantics.inputTextIcon} />
|
|
512
|
+
<icons.DotGrid height={20} width={20} stroke={semantics.inputTextIcon} />
|
|
514
513
|
</Animated.View>
|
|
515
514
|
</GestureDetector>
|
|
516
515
|
<TextInput
|
|
@@ -521,7 +520,7 @@ export const CreatePollOption = ({
|
|
|
521
520
|
style={[styles.optionInput, optionStyle.input]}
|
|
522
521
|
/>
|
|
523
522
|
<Pressable onPress={onRemoveOptionHandler}>
|
|
524
|
-
<CircleMinus height={20} width={20} stroke={semantics.inputTextIcon} />
|
|
523
|
+
<icons.CircleMinus height={20} width={20} stroke={semantics.inputTextIcon} />
|
|
525
524
|
</Pressable>
|
|
526
525
|
</Animated.View>
|
|
527
526
|
|
|
@@ -530,7 +529,7 @@ export const CreatePollOption = ({
|
|
|
530
529
|
onLayout={onErrorLayoutHandler}
|
|
531
530
|
style={[styles.optionValidationErrorContainer, optionStyle.validationErrorContainer]}
|
|
532
531
|
>
|
|
533
|
-
<InfoTooltip height={20} width={20} fill={semantics.accentError} />
|
|
532
|
+
<icons.InfoTooltip height={20} width={20} fill={semantics.accentError} />
|
|
534
533
|
<Text style={[styles.optionValidationError, optionStyle.validationErrorText]}>
|
|
535
534
|
{t(error)}
|
|
536
535
|
</Text>
|
|
@@ -6,10 +6,10 @@ import Animated, { LinearTransition, StretchInY, StretchOutY } from 'react-nativ
|
|
|
6
6
|
import { PollComposerState } from 'stream-chat';
|
|
7
7
|
|
|
8
8
|
import { useCreatePollContentContext, useTheme, useTranslationContext } from '../../../contexts';
|
|
9
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
9
10
|
import { useMessageComposer } from '../../../contexts/messageInputContext/hooks/useMessageComposer';
|
|
10
11
|
import { useStableCallback } from '../../../hooks';
|
|
11
12
|
import { useStateStore } from '../../../hooks/useStateStore';
|
|
12
|
-
import { Minus, Plus } from '../../../icons';
|
|
13
13
|
import { primitives } from '../../../theme';
|
|
14
14
|
import { useRtlMirrorSwitchStyle } from '../../../utils/rtlMirrorSwitchStyle';
|
|
15
15
|
import { Button } from '../../ui';
|
|
@@ -96,6 +96,7 @@ const MaxVotesTextInput = () => {
|
|
|
96
96
|
export const MultipleVotesSettings = () => {
|
|
97
97
|
const [allowMaxVotesPerPerson, setAllowMaxVotesPerPerson] = useState<boolean>(false);
|
|
98
98
|
const { t } = useTranslationContext();
|
|
99
|
+
const { icons } = useComponentsContext();
|
|
99
100
|
const { modalStateStore } = useCreatePollContentContext();
|
|
100
101
|
const { isClosing = false } = useStateStore(modalStateStore, modalStateSelector) ?? {};
|
|
101
102
|
const messageComposer = useMessageComposer();
|
|
@@ -168,7 +169,7 @@ export const MultipleVotesSettings = () => {
|
|
|
168
169
|
type='outline'
|
|
169
170
|
size='md'
|
|
170
171
|
iconOnly
|
|
171
|
-
LeadingIcon={Minus}
|
|
172
|
+
LeadingIcon={icons.Minus}
|
|
172
173
|
onPress={decrementMaxVotes}
|
|
173
174
|
disabled={decrementDisabled}
|
|
174
175
|
style={decrementDisabled ? styles.buttonDisabled : styles.buttonEnabled}
|
|
@@ -181,7 +182,7 @@ export const MultipleVotesSettings = () => {
|
|
|
181
182
|
type='outline'
|
|
182
183
|
size='md'
|
|
183
184
|
iconOnly
|
|
184
|
-
LeadingIcon={Plus}
|
|
185
|
+
LeadingIcon={icons.Plus}
|
|
185
186
|
onPress={incrementMaxVotes}
|
|
186
187
|
disabled={incrementDisabled}
|
|
187
188
|
style={incrementDisabled ? styles.buttonDisabled : styles.buttonEnabled}
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { useTheme } from '../../../contexts';
|
|
5
|
-
import {
|
|
5
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
6
6
|
import { primitives } from '../../../theme';
|
|
7
7
|
import { Button } from '../../ui';
|
|
8
8
|
|
|
@@ -12,6 +12,7 @@ export type PollModalHeaderProps = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export const PollModalHeader = ({ onPress, title }: PollModalHeaderProps) => {
|
|
15
|
+
const { icons } = useComponentsContext();
|
|
15
16
|
const {
|
|
16
17
|
theme: {
|
|
17
18
|
poll: {
|
|
@@ -30,7 +31,7 @@ export const PollModalHeader = ({ onPress, title }: PollModalHeaderProps) => {
|
|
|
30
31
|
type='outline'
|
|
31
32
|
size='md'
|
|
32
33
|
iconOnly
|
|
33
|
-
LeadingIcon={Cross}
|
|
34
|
+
LeadingIcon={icons.Cross}
|
|
34
35
|
onPress={onPress}
|
|
35
36
|
testID='poll-results-close-button'
|
|
36
37
|
/>
|
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
} from '../../../contexts';
|
|
19
19
|
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
20
20
|
|
|
21
|
-
import { Check } from '../../../icons';
|
|
22
21
|
import { primitives } from '../../../theme';
|
|
23
22
|
import { ProgressBar } from '../../ProgressControl/ProgressBar';
|
|
24
23
|
import { UserAvatarStack } from '../../ui/Avatar/AvatarStack';
|
|
@@ -165,6 +164,7 @@ export const PollOption = ({ option, showProgressBar = true, forceIncoming }: Po
|
|
|
165
164
|
};
|
|
166
165
|
|
|
167
166
|
export const VoteButton = ({ onPress, option }: PollVoteButtonProps) => {
|
|
167
|
+
const { icons } = useComponentsContext();
|
|
168
168
|
const { message, poll } = usePollContext();
|
|
169
169
|
const { isClosed, ownVotesByOptionId } = usePollState();
|
|
170
170
|
const ownCapabilities = useOwnCapabilitiesContext();
|
|
@@ -219,7 +219,7 @@ export const VoteButton = ({ onPress, option }: PollVoteButtonProps) => {
|
|
|
219
219
|
voteButtonContainer,
|
|
220
220
|
]}
|
|
221
221
|
>
|
|
222
|
-
{hasVote ? <Check height={20} stroke={semantics.textOnAccent} width={20} /> : null}
|
|
222
|
+
{hasVote ? <icons.Check height={20} stroke={semantics.textOnAccent} width={20} /> : null}
|
|
223
223
|
</Pressable>
|
|
224
224
|
) : null;
|
|
225
225
|
};
|
|
@@ -4,9 +4,8 @@ import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
|
4
4
|
import { ThreadManagerState } from 'stream-chat';
|
|
5
5
|
|
|
6
6
|
import { useChatContext, useTheme, useTranslationContext } from '../../contexts';
|
|
7
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
7
8
|
import { useStateStore } from '../../hooks';
|
|
8
|
-
import { Loading, Reload } from '../../icons';
|
|
9
|
-
import { ExclamationCircle } from '../../icons/exclamation-circle-fill';
|
|
10
9
|
import { primitives } from '../../theme';
|
|
11
10
|
|
|
12
11
|
const selector = (nextValue: ThreadManagerState) =>
|
|
@@ -16,6 +15,7 @@ export const ThreadListUnreadBanner = () => {
|
|
|
16
15
|
const [loading, setLoading] = useState(false);
|
|
17
16
|
const [error, setError] = useState<Error | null>(null);
|
|
18
17
|
const { client } = useChatContext();
|
|
18
|
+
const { icons } = useComponentsContext();
|
|
19
19
|
const { t } = useTranslationContext();
|
|
20
20
|
const {
|
|
21
21
|
theme: { semantics },
|
|
@@ -40,7 +40,7 @@ export const ThreadListUnreadBanner = () => {
|
|
|
40
40
|
if (loading) {
|
|
41
41
|
return (
|
|
42
42
|
<View style={styles.container}>
|
|
43
|
-
<Loading height={20} width={20} />
|
|
43
|
+
<icons.Loading height={20} width={20} />
|
|
44
44
|
<Text style={styles.text}>{t('Loading...')}</Text>
|
|
45
45
|
</View>
|
|
46
46
|
);
|
|
@@ -49,7 +49,7 @@ export const ThreadListUnreadBanner = () => {
|
|
|
49
49
|
if (error) {
|
|
50
50
|
return (
|
|
51
51
|
<View style={styles.container}>
|
|
52
|
-
<ExclamationCircle stroke={semantics.textSecondary} height={20} width={20} />
|
|
52
|
+
<icons.ExclamationCircle stroke={semantics.textSecondary} height={20} width={20} />
|
|
53
53
|
<Text style={styles.text}>{t("Couldn't load new threads. Tap to retry")}</Text>
|
|
54
54
|
</View>
|
|
55
55
|
);
|
|
@@ -67,7 +67,7 @@ export const ThreadListUnreadBanner = () => {
|
|
|
67
67
|
},
|
|
68
68
|
]}
|
|
69
69
|
>
|
|
70
|
-
<Reload stroke={semantics.textSecondary} height={20} width={20} />
|
|
70
|
+
<icons.Reload stroke={semantics.textSecondary} height={20} width={20} />
|
|
71
71
|
<Text style={styles.text}>
|
|
72
72
|
{t('{{count}} new threads', { count: unseenThreadIds.length })}
|
|
73
73
|
</Text>
|
|
@@ -4,10 +4,10 @@ import { StyleSheet, Text, View } from 'react-native';
|
|
|
4
4
|
import { Channel, LocalMessage } from 'stream-chat';
|
|
5
5
|
|
|
6
6
|
import { useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
7
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
7
8
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
8
9
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
9
10
|
import { MessageDeliveryStatus, useMessageDeliveryStatus } from '../../hooks';
|
|
10
|
-
import { Check, CheckAll, Time } from '../../icons';
|
|
11
11
|
import { primitives } from '../../theme';
|
|
12
12
|
import { MessageStatusTypes } from '../../utils/utils';
|
|
13
13
|
|
|
@@ -21,6 +21,7 @@ export const ThreadMessagePreviewDeliveryStatus = ({
|
|
|
21
21
|
message,
|
|
22
22
|
}: ThreadMessagePreviewDeliveryStatusProps) => {
|
|
23
23
|
const { client } = useChatContext();
|
|
24
|
+
const { icons } = useComponentsContext();
|
|
24
25
|
const { t } = useTranslationContext();
|
|
25
26
|
const channelConfigExists = typeof channel?.getConfig === 'function';
|
|
26
27
|
const styles = useStyles();
|
|
@@ -71,14 +72,19 @@ export const ThreadMessagePreviewDeliveryStatus = ({
|
|
|
71
72
|
return (
|
|
72
73
|
<View style={styles.container}>
|
|
73
74
|
{message.status === MessageStatusTypes.SENDING ? (
|
|
74
|
-
<Time stroke={semantics.chatTextTimestamp} height={20} width={20} {...timeIcon} />
|
|
75
|
+
<icons.Time stroke={semantics.chatTextTimestamp} height={20} width={20} {...timeIcon} />
|
|
75
76
|
) : message.status === MessageStatusTypes.RECEIVED &&
|
|
76
77
|
status === MessageDeliveryStatus.READ ? (
|
|
77
|
-
<CheckAll stroke={semantics.accentPrimary} height={20} width={20} {...checkAllIcon} />
|
|
78
|
+
<icons.CheckAll stroke={semantics.accentPrimary} height={20} width={20} {...checkAllIcon} />
|
|
78
79
|
) : status === MessageDeliveryStatus.DELIVERED ? (
|
|
79
|
-
<CheckAll
|
|
80
|
+
<icons.CheckAll
|
|
81
|
+
stroke={semantics.chatTextTimestamp}
|
|
82
|
+
height={20}
|
|
83
|
+
width={20}
|
|
84
|
+
{...checkAllIcon}
|
|
85
|
+
/>
|
|
80
86
|
) : status === MessageDeliveryStatus.SENT ? (
|
|
81
|
-
<Check stroke={semantics.chatTextTimestamp} height={20} width={20} {...checkIcon} />
|
|
87
|
+
<icons.Check stroke={semantics.chatTextTimestamp} height={20} width={20} {...checkIcon} />
|
|
82
88
|
) : null}
|
|
83
89
|
<Text style={styles.text}>{t('You')}:</Text>
|
|
84
90
|
</View>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { I18nManager, StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Search } from '../../icons/search';
|
|
6
6
|
import { primitives } from '../../theme';
|
|
7
7
|
|
|
8
8
|
export type EmptySearchResultProps = {
|
|
@@ -10,6 +10,7 @@ export type EmptySearchResultProps = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const EmptySearchResult = ({ label }: EmptySearchResultProps) => {
|
|
13
|
+
const { icons } = useComponentsContext();
|
|
13
14
|
const {
|
|
14
15
|
theme: {
|
|
15
16
|
emptySearchResult: { container, text },
|
|
@@ -19,7 +20,7 @@ export const EmptySearchResult = ({ label }: EmptySearchResultProps) => {
|
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<View style={[styles.container, container]} testID='empty-search-result'>
|
|
22
|
-
<Search height={24} stroke={semantics.textTertiary} width={24} />
|
|
23
|
+
<icons.Search height={24} stroke={semantics.textTertiary} width={24} />
|
|
23
24
|
<Text style={[styles.text, { color: semantics.textSecondary }, text]}>{label}</Text>
|
|
24
25
|
</View>
|
|
25
26
|
);
|
|
@@ -3,10 +3,9 @@ import { StyleSheet, TextInput, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { Pressable } from 'react-native-gesture-handler';
|
|
5
5
|
|
|
6
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
7
8
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
8
|
-
import { Search } from '../../icons/search';
|
|
9
|
-
import { XCircle } from '../../icons/x-circle';
|
|
10
9
|
import { primitives } from '../../theme';
|
|
11
10
|
import type { IconRenderer } from '../ui/Button/Button';
|
|
12
11
|
import { Input, InputProps } from '../ui/Input/Input';
|
|
@@ -15,6 +14,7 @@ export type SearchInputProps = Partial<InputProps>;
|
|
|
15
14
|
|
|
16
15
|
export const SearchInput = ({ onChangeText, ...props }: SearchInputProps) => {
|
|
17
16
|
const { t } = useTranslationContext();
|
|
17
|
+
const { icons } = useComponentsContext();
|
|
18
18
|
const {
|
|
19
19
|
theme: { semantics },
|
|
20
20
|
} = useTheme();
|
|
@@ -37,8 +37,8 @@ export const SearchInput = ({ onChangeText, ...props }: SearchInputProps) => {
|
|
|
37
37
|
}, [onChangeText]);
|
|
38
38
|
|
|
39
39
|
const LeadingIcon: IconRenderer = useCallback(
|
|
40
|
-
() => <Search height={20} stroke={semantics.textSecondary} width={20} />,
|
|
41
|
-
[semantics.textSecondary],
|
|
40
|
+
() => <icons.Search height={20} stroke={semantics.textSecondary} width={20} />,
|
|
41
|
+
[icons, semantics.textSecondary],
|
|
42
42
|
);
|
|
43
43
|
|
|
44
44
|
const ClearIcon: IconRenderer = useCallback(
|
|
@@ -50,10 +50,10 @@ export const SearchInput = ({ onChangeText, ...props }: SearchInputProps) => {
|
|
|
50
50
|
onPress={handleClear}
|
|
51
51
|
testID='clear-search'
|
|
52
52
|
>
|
|
53
|
-
<XCircle height={15} stroke={semantics.inputTextIcon} width={15} />
|
|
53
|
+
<icons.XCircle height={15} stroke={semantics.inputTextIcon} width={15} />
|
|
54
54
|
</Pressable>
|
|
55
55
|
),
|
|
56
|
-
[handleClear, semantics.inputTextIcon, t],
|
|
56
|
+
[handleClear, icons, semantics.inputTextIcon, t],
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
return (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Checkmark } from '../../icons/checkmark-1';
|
|
6
6
|
import { primitives } from '../../theme';
|
|
7
7
|
|
|
8
8
|
export type SelectionCircleProps = {
|
|
@@ -10,6 +10,7 @@ export type SelectionCircleProps = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const SelectionCircle = ({ selected }: SelectionCircleProps) => {
|
|
13
|
+
const { icons } = useComponentsContext();
|
|
13
14
|
const {
|
|
14
15
|
theme: {
|
|
15
16
|
selectionCircle: { circle, circleSelected },
|
|
@@ -26,7 +27,7 @@ export const SelectionCircle = ({ selected }: SelectionCircleProps) => {
|
|
|
26
27
|
circleSelected,
|
|
27
28
|
]}
|
|
28
29
|
>
|
|
29
|
-
<Checkmark height={14} pathFill={semantics.textOnAccent} width={14} />
|
|
30
|
+
<icons.Checkmark height={14} pathFill={semantics.textOnAccent} width={14} />
|
|
30
31
|
</View>
|
|
31
32
|
);
|
|
32
33
|
}
|
|
@@ -8,8 +8,8 @@ import Animated, {
|
|
|
8
8
|
withTiming,
|
|
9
9
|
} from 'react-native-reanimated';
|
|
10
10
|
|
|
11
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
11
12
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
12
|
-
import { Loading } from '../../icons/loading';
|
|
13
13
|
|
|
14
14
|
export type SpinnerProps = {
|
|
15
15
|
height?: number;
|
|
@@ -19,6 +19,7 @@ export type SpinnerProps = {
|
|
|
19
19
|
|
|
20
20
|
export const Spinner = (props: SpinnerProps) => {
|
|
21
21
|
const rotation = useSharedValue(0);
|
|
22
|
+
const { icons } = useComponentsContext();
|
|
22
23
|
const { height, style, width } = props;
|
|
23
24
|
|
|
24
25
|
const {
|
|
@@ -46,7 +47,7 @@ export const Spinner = (props: SpinnerProps) => {
|
|
|
46
47
|
|
|
47
48
|
return (
|
|
48
49
|
<Animated.View style={[style, styles.spinner, animatedStyle, spinner, { height, width }]}>
|
|
49
|
-
<Loading
|
|
50
|
+
<icons.Loading
|
|
50
51
|
height={height}
|
|
51
52
|
startColor={semantics.accentPrimary}
|
|
52
53
|
stopColor={semantics.accentPrimary}
|
|
@@ -9,8 +9,8 @@ import { iconSizes } from './constants';
|
|
|
9
9
|
|
|
10
10
|
import { UserAvatar, UserAvatarProps } from './UserAvatar';
|
|
11
11
|
|
|
12
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
12
13
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
13
|
-
import { PeopleIcon } from '../../../icons/users';
|
|
14
14
|
import { BadgeCount, BadgeCountProps, OnlineIndicator, OnlineIndicatorProps } from '../Badge';
|
|
15
15
|
|
|
16
16
|
export type AvatarGroupProps = {
|
|
@@ -84,6 +84,7 @@ const badgeCountSize: Record<AvatarGroupProps['size'], BadgeCountProps['size']>
|
|
|
84
84
|
|
|
85
85
|
export const AvatarGroup = (props: AvatarGroupProps) => {
|
|
86
86
|
const { size, items = [] } = props;
|
|
87
|
+
const { icons } = useComponentsContext();
|
|
87
88
|
const {
|
|
88
89
|
theme: { semantics },
|
|
89
90
|
} = useTheme();
|
|
@@ -99,7 +100,7 @@ export const AvatarGroup = (props: AvatarGroupProps) => {
|
|
|
99
100
|
backgroundColor={semantics.avatarBgPlaceholder}
|
|
100
101
|
showBorder={true}
|
|
101
102
|
placeholder={
|
|
102
|
-
<PeopleIcon
|
|
103
|
+
<icons.PeopleIcon
|
|
103
104
|
stroke={semantics.avatarTextPlaceholder}
|
|
104
105
|
height={iconSizes[avatarSize[size]]}
|
|
105
106
|
width={iconSizes[avatarSize[size]]}
|
|
@@ -109,7 +110,7 @@ export const AvatarGroup = (props: AvatarGroupProps) => {
|
|
|
109
110
|
/>,
|
|
110
111
|
]);
|
|
111
112
|
},
|
|
112
|
-
[avatarGroupStyles.userAvatarWrapper, semantics, size],
|
|
113
|
+
[avatarGroupStyles.userAvatarWrapper, icons, semantics, size],
|
|
113
114
|
);
|
|
114
115
|
|
|
115
116
|
const buildForMore = useCallback(
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
numberOfInitials,
|
|
14
14
|
} from './constants';
|
|
15
15
|
|
|
16
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
16
17
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
17
|
-
import { PeopleIcon } from '../../../icons/users';
|
|
18
18
|
import { getInitialsFromName, hashStringToNumber } from '../../../utils/utils';
|
|
19
19
|
import { OnlineIndicator } from '../Badge';
|
|
20
20
|
|
|
@@ -28,6 +28,7 @@ export type UserAvatarProps = {
|
|
|
28
28
|
|
|
29
29
|
export const UserAvatar = (props: UserAvatarProps) => {
|
|
30
30
|
const { user, size, showBorder = !!user.image, showOnlineIndicator, style } = props;
|
|
31
|
+
const { icons } = useComponentsContext();
|
|
31
32
|
const {
|
|
32
33
|
theme: { semantics },
|
|
33
34
|
} = useTheme();
|
|
@@ -46,10 +47,14 @@ export const UserAvatar = (props: UserAvatarProps) => {
|
|
|
46
47
|
);
|
|
47
48
|
} else {
|
|
48
49
|
return (
|
|
49
|
-
<PeopleIcon
|
|
50
|
+
<icons.PeopleIcon
|
|
51
|
+
height={iconSizes[size]}
|
|
52
|
+
stroke={avatarTextColor}
|
|
53
|
+
width={iconSizes[size]}
|
|
54
|
+
/>
|
|
50
55
|
);
|
|
51
56
|
}
|
|
52
|
-
}, [user?.name, size, avatarTextColor]);
|
|
57
|
+
}, [user?.name, size, avatarTextColor, icons]);
|
|
53
58
|
|
|
54
59
|
return (
|
|
55
60
|
<View testID='user-avatar'>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleProp, StyleSheet, View, ViewProps, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Exclamation } from '../../../icons/exclamation-mark-fill';
|
|
6
6
|
import { primitives } from '../../../theme';
|
|
7
7
|
|
|
8
8
|
const sizes = {
|
|
@@ -37,13 +37,14 @@ export type ErrorBadgeProps = ViewProps & {
|
|
|
37
37
|
|
|
38
38
|
export const ErrorBadge = (props: ErrorBadgeProps) => {
|
|
39
39
|
const { size = 'md', style, ...rest } = props;
|
|
40
|
+
const { icons } = useComponentsContext();
|
|
40
41
|
const {
|
|
41
42
|
theme: { semantics },
|
|
42
43
|
} = useTheme();
|
|
43
44
|
const styles = useStyles();
|
|
44
45
|
return (
|
|
45
46
|
<View style={[styles.container, sizes[size], style]} {...rest}>
|
|
46
|
-
<Exclamation
|
|
47
|
+
<icons.Exclamation
|
|
47
48
|
height={sizes[size].height}
|
|
48
49
|
width={sizes[size].width}
|
|
49
50
|
fill={semantics.textOnAccent}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Giphy } from '../../../icons/giphy';
|
|
6
6
|
import { primitives } from '../../../theme';
|
|
7
7
|
|
|
8
8
|
export const GiphyBadge = () => {
|
|
9
|
+
const { icons } = useComponentsContext();
|
|
9
10
|
const styles = useStyles();
|
|
10
11
|
return (
|
|
11
12
|
<View style={styles.container}>
|
|
12
|
-
<Giphy height={12} width={12} />
|
|
13
|
+
<icons.Giphy height={12} width={12} />
|
|
13
14
|
<Text style={styles.text}>GIPHY</Text>
|
|
14
15
|
</View>
|
|
15
16
|
);
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Imgur } from '../../../icons/imgur';
|
|
6
6
|
import { primitives } from '../../../theme';
|
|
7
7
|
|
|
8
8
|
export const ImgurBadge = () => {
|
|
9
|
+
const { icons } = useComponentsContext();
|
|
9
10
|
const styles = useStyles();
|
|
10
11
|
return (
|
|
11
12
|
<View style={styles.container}>
|
|
12
|
-
<Imgur height={12} width={12} />
|
|
13
|
+
<icons.Imgur height={12} width={12} />
|
|
13
14
|
<Text style={styles.text}>IMGUR</Text>
|
|
14
15
|
</View>
|
|
15
16
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleProp, StyleSheet, View, ViewProps, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Reload } from '../../../icons/refresh';
|
|
6
6
|
import { primitives } from '../../../theme';
|
|
7
7
|
|
|
8
8
|
const sizes = {
|
|
@@ -44,13 +44,14 @@ export type RetryBadgeProps = ViewProps & {
|
|
|
44
44
|
|
|
45
45
|
export const RetryBadge = (props: RetryBadgeProps) => {
|
|
46
46
|
const { size = 'md', style, ...rest } = props;
|
|
47
|
+
const { icons } = useComponentsContext();
|
|
47
48
|
const {
|
|
48
49
|
theme: { semantics },
|
|
49
50
|
} = useTheme();
|
|
50
51
|
const styles = useStyles();
|
|
51
52
|
return (
|
|
52
53
|
<View style={[styles.container, sizes[size], style]} {...rest}>
|
|
53
|
-
<Reload
|
|
54
|
+
<icons.Reload
|
|
54
55
|
height={iconSizes[size].height}
|
|
55
56
|
width={iconSizes[size].width}
|
|
56
57
|
stroke={semantics.textOnAccent}
|