stream-chat-react-native-core 9.6.2-beta.5 → 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/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
|
@@ -5,9 +5,9 @@ import { ActivityIndicator, Keyboard } from 'react-native';
|
|
|
5
5
|
import { ModalHeader } from './modal/ModalHeader';
|
|
6
6
|
|
|
7
7
|
import { useChannelEditDetailsContext } from '../../../contexts/channelEditDetailsContext/ChannelEditDetailsContext';
|
|
8
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
8
9
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
9
10
|
import { useStableCallback } from '../../../hooks/useStableCallback';
|
|
10
|
-
import { Checkmark } from '../../../icons/checkmark-1';
|
|
11
11
|
import { useAreChannelDetailsEdited } from '../../../state-store/edit-channel-details-store';
|
|
12
12
|
import { Button } from '../../ui/Button/Button';
|
|
13
13
|
|
|
@@ -23,6 +23,7 @@ export type ChannelEditDetailsFormHeaderProps = {
|
|
|
23
23
|
|
|
24
24
|
export const ChannelEditDetailsFormHeader = ({ onClose }: ChannelEditDetailsFormHeaderProps) => {
|
|
25
25
|
const { store, submit } = useChannelEditDetailsContext();
|
|
26
|
+
const { icons } = useComponentsContext();
|
|
26
27
|
const { t } = useTranslationContext();
|
|
27
28
|
const [saving, setSaving] = useState(false);
|
|
28
29
|
const channelDetailsEdited = useAreChannelDetailsEdited(store);
|
|
@@ -52,7 +53,7 @@ export const ChannelEditDetailsFormHeader = ({ onClose }: ChannelEditDetailsForm
|
|
|
52
53
|
accessibilityState={{ busy: saving, disabled: !confirmEnabled }}
|
|
53
54
|
disabled={!confirmEnabled}
|
|
54
55
|
iconOnly
|
|
55
|
-
LeadingIcon={saving ? LoadingButtonIcon : Checkmark}
|
|
56
|
+
LeadingIcon={saving ? LoadingButtonIcon : icons.Checkmark}
|
|
56
57
|
onPress={handleConfirm}
|
|
57
58
|
testID='channel-details-edit-confirm-button'
|
|
58
59
|
type='solid'
|
|
@@ -15,11 +15,7 @@ import { useComponentsContext } from '../../../contexts/componentsContext/Compon
|
|
|
15
15
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
16
16
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
17
17
|
import { useStateStore } from '../../../hooks/useStateStore';
|
|
18
|
-
import { Camera } from '../../../icons/camera';
|
|
19
|
-
import { Delete } from '../../../icons/delete';
|
|
20
|
-
import { Picture } from '../../../icons/image';
|
|
21
18
|
import type { IconProps } from '../../../icons/utils/base';
|
|
22
|
-
import { Cross } from '../../../icons/xmark-1';
|
|
23
19
|
import type {
|
|
24
20
|
EditChannelDetailsState,
|
|
25
21
|
EditChannelImagePendingAction,
|
|
@@ -51,7 +47,7 @@ const keyExtractor = (item: SheetItem) => item.id;
|
|
|
51
47
|
|
|
52
48
|
const ChannelEditImageSheetInner = () => {
|
|
53
49
|
const { store } = useChannelEditDetailsContext();
|
|
54
|
-
const { ChannelDetailsActionItem } = useComponentsContext();
|
|
50
|
+
const { ChannelDetailsActionItem, icons } = useComponentsContext();
|
|
55
51
|
const { t } = useTranslationContext();
|
|
56
52
|
const {
|
|
57
53
|
theme: {
|
|
@@ -81,7 +77,7 @@ const ChannelEditImageSheetInner = () => {
|
|
|
81
77
|
const items = useMemo<SheetItem[]>(() => {
|
|
82
78
|
const base: SheetItem[] = [
|
|
83
79
|
{
|
|
84
|
-
Icon: Camera,
|
|
80
|
+
Icon: icons.Camera,
|
|
85
81
|
id: 'take-photo',
|
|
86
82
|
label: t('Take Photo'),
|
|
87
83
|
onPress: () => {
|
|
@@ -90,7 +86,7 @@ const ChannelEditImageSheetInner = () => {
|
|
|
90
86
|
testID: 'channel-edit-picture-take-photo',
|
|
91
87
|
},
|
|
92
88
|
{
|
|
93
|
-
Icon: Picture,
|
|
89
|
+
Icon: icons.Picture,
|
|
94
90
|
id: 'choose-image',
|
|
95
91
|
label: t('Choose Image'),
|
|
96
92
|
onPress: () => {
|
|
@@ -103,7 +99,7 @@ const ChannelEditImageSheetInner = () => {
|
|
|
103
99
|
if (canReset) {
|
|
104
100
|
base.push({
|
|
105
101
|
destructive: true,
|
|
106
|
-
Icon: Delete,
|
|
102
|
+
Icon: icons.Delete,
|
|
107
103
|
id: 'reset-picture',
|
|
108
104
|
label: t('Reset Picture'),
|
|
109
105
|
onPress: () => {
|
|
@@ -114,7 +110,7 @@ const ChannelEditImageSheetInner = () => {
|
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
return base;
|
|
117
|
-
}, [canReset, onSelect, t]);
|
|
113
|
+
}, [canReset, icons, onSelect, t]);
|
|
118
114
|
|
|
119
115
|
const renderItem = useCallback<ListRenderItem<SheetItem>>(
|
|
120
116
|
({ item }) => (
|
|
@@ -136,7 +132,7 @@ const ChannelEditImageSheetInner = () => {
|
|
|
136
132
|
<Button
|
|
137
133
|
accessibilityLabelKey='a11y/Close edit picture sheet'
|
|
138
134
|
iconOnly
|
|
139
|
-
LeadingIcon={Cross}
|
|
135
|
+
LeadingIcon={icons.Cross}
|
|
140
136
|
onPress={() => close()}
|
|
141
137
|
size='md'
|
|
142
138
|
testID='channel-edit-picture-sheet-close-button'
|
|
@@ -4,7 +4,6 @@ import { useChannelDetailsContext } from '../../../../contexts/channelDetailsCon
|
|
|
4
4
|
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
5
5
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
6
6
|
import { useCanAddMembersToChannel } from '../../../../hooks/useCanAddMembersToChannel';
|
|
7
|
-
import { UserAdd } from '../../../../icons/user-add';
|
|
8
7
|
import { Button, ButtonProps } from '../../../ui/Button/Button';
|
|
9
8
|
import { ChannelDetailsModal } from '../modal/Modal';
|
|
10
9
|
|
|
@@ -24,7 +23,7 @@ export const ChannelAddMembersButton = ({
|
|
|
24
23
|
variant = 'text',
|
|
25
24
|
}: ChannelAddMembersButtonProps) => {
|
|
26
25
|
const { channel } = useChannelDetailsContext();
|
|
27
|
-
const { ChannelAddMembersForm } = useComponentsContext();
|
|
26
|
+
const { ChannelAddMembersForm, icons } = useComponentsContext();
|
|
28
27
|
const { t } = useTranslationContext();
|
|
29
28
|
const isVisible = useCanAddMembersToChannel(channel);
|
|
30
29
|
const [isAddMembersVisible, setAddMembersVisible] = useState(false);
|
|
@@ -53,7 +52,7 @@ export const ChannelAddMembersButton = ({
|
|
|
53
52
|
<Button
|
|
54
53
|
accessibilityLabelKey='a11y/Add members'
|
|
55
54
|
iconOnly
|
|
56
|
-
LeadingIcon={UserAdd}
|
|
55
|
+
LeadingIcon={icons.UserAdd}
|
|
57
56
|
onPress={handlePress}
|
|
58
57
|
size='md'
|
|
59
58
|
style={style}
|
|
@@ -3,10 +3,10 @@ import React, { useCallback, useState } from 'react';
|
|
|
3
3
|
import { ActivityIndicator } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useChannelAddMembersContext } from '../../../../contexts/channelAddMembersContext/ChannelAddMembersContext';
|
|
6
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
7
8
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
8
9
|
import { useStableCallback } from '../../../../hooks/useStableCallback';
|
|
9
|
-
import { Checkmark } from '../../../../icons/checkmark-1';
|
|
10
10
|
import { useIsSelectionEmpty } from '../../../../state-store/selection-store';
|
|
11
11
|
import { Button } from '../../../ui/Button/Button';
|
|
12
12
|
import { ModalHeader } from '../modal/ModalHeader';
|
|
@@ -23,6 +23,7 @@ export type ChannelAddMembersFormHeaderProps = {
|
|
|
23
23
|
|
|
24
24
|
export const ChannelAddMembersFormHeader = ({ onClose }: ChannelAddMembersFormHeaderProps) => {
|
|
25
25
|
const { selectionStore, submit } = useChannelAddMembersContext();
|
|
26
|
+
const { icons } = useComponentsContext();
|
|
26
27
|
const { t } = useTranslationContext();
|
|
27
28
|
const {
|
|
28
29
|
theme: {
|
|
@@ -63,7 +64,7 @@ export const ChannelAddMembersFormHeader = ({ onClose }: ChannelAddMembersFormHe
|
|
|
63
64
|
variant='primary'
|
|
64
65
|
onPress={handleConfirm}
|
|
65
66
|
type='solid'
|
|
66
|
-
LeadingIcon={addingMembers ? LoadingButtonIcon : Checkmark}
|
|
67
|
+
LeadingIcon={addingMembers ? LoadingButtonIcon : icons.Checkmark}
|
|
67
68
|
iconOnly
|
|
68
69
|
testID='channel-details-add-members-confirm-button'
|
|
69
70
|
style={confirmButtonOverride}
|
|
@@ -8,7 +8,6 @@ import { useChatContext } from '../../../../contexts/chatContext/ChatContext';
|
|
|
8
8
|
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
9
9
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
10
10
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
11
|
-
import { Mute } from '../../../../icons';
|
|
12
11
|
import { primitives } from '../../../../theme';
|
|
13
12
|
import { useUserMuteActive } from '../../../Message/hooks/useUserMuteActive';
|
|
14
13
|
import { UserAvatar } from '../../../ui/Avatar/UserAvatar';
|
|
@@ -45,7 +44,7 @@ export const ChannelMemberItem = ({
|
|
|
45
44
|
}: ChannelMemberItemProps) => {
|
|
46
45
|
const { t } = useTranslationContext();
|
|
47
46
|
const { client } = useChatContext();
|
|
48
|
-
const { RoleList } = useComponentsContext();
|
|
47
|
+
const { icons, RoleList } = useComponentsContext();
|
|
49
48
|
const {
|
|
50
49
|
theme: {
|
|
51
50
|
channelDetails: {
|
|
@@ -102,7 +101,7 @@ export const ChannelMemberItem = ({
|
|
|
102
101
|
{isMuted || roles.length > 0 ? (
|
|
103
102
|
<View style={styles.trailing}>
|
|
104
103
|
{isMuted ? (
|
|
105
|
-
<Mute
|
|
104
|
+
<icons.Mute
|
|
106
105
|
height={16}
|
|
107
106
|
pathFill={semantics.textTertiary}
|
|
108
107
|
testID='channel-member-muted-indicator'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } 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 { Cross } from '../../../../icons/xmark-1';
|
|
6
6
|
import { primitives } from '../../../../theme';
|
|
7
7
|
import { Button, ButtonProps } from '../../../ui/Button/Button';
|
|
8
8
|
|
|
@@ -19,6 +19,7 @@ export const ModalHeader = ({
|
|
|
19
19
|
title,
|
|
20
20
|
additionalCloseButtonProps,
|
|
21
21
|
}: ModalHeaderProps) => {
|
|
22
|
+
const { icons } = useComponentsContext();
|
|
22
23
|
const {
|
|
23
24
|
theme: {
|
|
24
25
|
channelDetails: {
|
|
@@ -35,7 +36,7 @@ export const ModalHeader = ({
|
|
|
35
36
|
<Button
|
|
36
37
|
accessibilityLabelKey='a11y/Close'
|
|
37
38
|
iconOnly
|
|
38
|
-
LeadingIcon={Cross}
|
|
39
|
+
LeadingIcon={icons.Cross}
|
|
39
40
|
onPress={onClose}
|
|
40
41
|
size='md'
|
|
41
42
|
type='outline'
|
|
@@ -22,7 +22,6 @@ import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
|
22
22
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
23
23
|
import { getNotificationErrorOptions } from '../../../../hooks/actions/useChannelActions';
|
|
24
24
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
25
|
-
import { Folder } from '../../../../icons/folder';
|
|
26
25
|
import { primitives } from '../../../../theme';
|
|
27
26
|
import { useNotificationApi } from '../../../Notifications/hooks/useNotificationApi';
|
|
28
27
|
import { NotificationList } from '../../../Notifications/NotificationList';
|
|
@@ -67,7 +66,7 @@ const FileAttachmentListContent = ({ additionalSectionListProps }: FileAttachmen
|
|
|
67
66
|
},
|
|
68
67
|
} = useTheme();
|
|
69
68
|
const styles = useStyles();
|
|
70
|
-
const { FileAttachmentItem } = useComponentsContext();
|
|
69
|
+
const { FileAttachmentItem, icons } = useComponentsContext();
|
|
71
70
|
|
|
72
71
|
const { addNotification } = useNotificationApi();
|
|
73
72
|
|
|
@@ -140,7 +139,11 @@ const FileAttachmentListContent = ({ additionalSectionListProps }: FileAttachmen
|
|
|
140
139
|
loading || isEmpty === undefined ? (
|
|
141
140
|
<FileAttachmentListLoadingSkeleton />
|
|
142
141
|
) : (
|
|
143
|
-
<EmptyList
|
|
142
|
+
<EmptyList
|
|
143
|
+
icon={icons.Folder}
|
|
144
|
+
subtitle={t('Share a file to see it here')}
|
|
145
|
+
title={t('No files')}
|
|
146
|
+
/>
|
|
144
147
|
);
|
|
145
148
|
|
|
146
149
|
const loadingMoreIndicator = (
|
|
@@ -6,7 +6,6 @@ import type { Attachment, MessageResponse } from 'stream-chat';
|
|
|
6
6
|
import { useChatConfigContext } from '../../../../contexts/chatConfigContext/ChatConfigContext';
|
|
7
7
|
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
8
8
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
9
|
-
import { Recorder } from '../../../../icons/video-fill';
|
|
10
9
|
import { primitives } from '../../../../theme';
|
|
11
10
|
import { FileTypes } from '../../../../types/types';
|
|
12
11
|
import { getResizedImageUrl } from '../../../../utils/getResizedImageUrl';
|
|
@@ -40,7 +39,7 @@ export type MediaItemProps = {
|
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
export const MediaItem = (props: MediaItemProps) => {
|
|
43
|
-
const { ImageComponent: Image } = useComponentsContext();
|
|
42
|
+
const { ImageComponent: Image, icons } = useComponentsContext();
|
|
44
43
|
const { attachment, message, onPress, size } = props;
|
|
45
44
|
const {
|
|
46
45
|
theme: {
|
|
@@ -95,7 +94,7 @@ export const MediaItem = (props: MediaItemProps) => {
|
|
|
95
94
|
mediaItem.videoBadge,
|
|
96
95
|
]}
|
|
97
96
|
>
|
|
98
|
-
<Recorder fill={semantics.badgeTextOnInverse} size={12} />
|
|
97
|
+
<icons.Recorder fill={semantics.badgeTextOnInverse} size={12} />
|
|
99
98
|
<Text
|
|
100
99
|
style={[
|
|
101
100
|
styles.videoBadgeText,
|
|
@@ -30,7 +30,6 @@ import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
|
30
30
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
31
31
|
import { getNotificationErrorOptions } from '../../../../hooks/actions/useChannelActions';
|
|
32
32
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
33
|
-
import { Picture } from '../../../../icons/image';
|
|
34
33
|
import { isVideoPlayerAvailable } from '../../../../native';
|
|
35
34
|
import { primitives } from '../../../../theme';
|
|
36
35
|
import { FileTypes } from '../../../../types/types';
|
|
@@ -79,7 +78,7 @@ const MediaListContent = ({ additionalFlatListProps }: MediaListProps) => {
|
|
|
79
78
|
} = useTheme();
|
|
80
79
|
const styles = useStyles();
|
|
81
80
|
const { width } = useWindowDimensions();
|
|
82
|
-
const { MediaItem } = useComponentsContext();
|
|
81
|
+
const { icons, MediaItem } = useComponentsContext();
|
|
83
82
|
|
|
84
83
|
const { addNotification } = useNotificationApi();
|
|
85
84
|
|
|
@@ -183,7 +182,7 @@ const MediaListContent = ({ additionalFlatListProps }: MediaListProps) => {
|
|
|
183
182
|
<MediaListLoadingSkeleton />
|
|
184
183
|
) : (
|
|
185
184
|
<EmptyList
|
|
186
|
-
icon={Picture}
|
|
185
|
+
icon={icons.Picture}
|
|
187
186
|
subtitle={t('Share a photo or video to see it here')}
|
|
188
187
|
title={t('No photos or videos')}
|
|
189
188
|
/>
|
|
@@ -15,7 +15,6 @@ import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
|
15
15
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
16
16
|
import { getNotificationErrorOptions } from '../../../../hooks/actions/useChannelActions';
|
|
17
17
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
18
|
-
import { Pin } from '../../../../icons/pin';
|
|
19
18
|
import { primitives } from '../../../../theme';
|
|
20
19
|
import { useNotificationApi } from '../../../Notifications/hooks/useNotificationApi';
|
|
21
20
|
import { NotificationList } from '../../../Notifications/NotificationList';
|
|
@@ -62,7 +61,7 @@ const PinnedMessageListContent = ({
|
|
|
62
61
|
},
|
|
63
62
|
} = useTheme();
|
|
64
63
|
const styles = useStyles();
|
|
65
|
-
const { PinnedMessageItem } = useComponentsContext();
|
|
64
|
+
const { icons, PinnedMessageItem } = useComponentsContext();
|
|
66
65
|
|
|
67
66
|
const { addNotification } = useNotificationApi();
|
|
68
67
|
|
|
@@ -120,7 +119,7 @@ const PinnedMessageListContent = ({
|
|
|
120
119
|
<PinnedMessageListLoadingSkeleton />
|
|
121
120
|
) : isEmpty ? (
|
|
122
121
|
<EmptyList
|
|
123
|
-
icon={Pin}
|
|
122
|
+
icon={icons.Pin}
|
|
124
123
|
subtitle={t('Long-press a message to pin it to the chat')}
|
|
125
124
|
title={t('No pinned messages')}
|
|
126
125
|
/>
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
3
4
|
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
4
5
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
5
|
-
import { Picture } from '../../../icons';
|
|
6
|
-
import { Folder } from '../../../icons/folder';
|
|
7
|
-
|
|
8
|
-
import { Pin } from '../../../icons/pin';
|
|
9
6
|
import type { IconProps } from '../../../icons/utils/base';
|
|
10
7
|
|
|
11
8
|
/**
|
|
@@ -37,16 +34,17 @@ export type ChannelDetailsNavigationItem = {
|
|
|
37
34
|
};
|
|
38
35
|
|
|
39
36
|
/**
|
|
40
|
-
* Maps each navigation section to the icon
|
|
41
|
-
* when opened, its modal header. The declaration
|
|
37
|
+
* Maps each navigation section to the icon (by its key in the components-context icons map) and
|
|
38
|
+
* (translatable) label rendered for its row and, when opened, its modal header. The declaration
|
|
39
|
+
* order also drives the order of the rendered rows.
|
|
42
40
|
*/
|
|
43
41
|
const SECTION_CONFIG: Record<
|
|
44
42
|
'pinned-messages' | 'photos-and-videos' | 'files',
|
|
45
|
-
{
|
|
43
|
+
{ icon: 'Pin' | 'Picture' | 'Folder'; label: string }
|
|
46
44
|
> = {
|
|
47
|
-
'pinned-messages': {
|
|
48
|
-
'photos-and-videos': {
|
|
49
|
-
files: {
|
|
45
|
+
'pinned-messages': { icon: 'Pin', label: 'Pinned Messages' },
|
|
46
|
+
'photos-and-videos': { icon: 'Picture', label: 'Photos & Videos' },
|
|
47
|
+
files: { icon: 'Folder', label: 'Files' },
|
|
50
48
|
};
|
|
51
49
|
|
|
52
50
|
const SECTIONS = Object.keys(SECTION_CONFIG) as Array<keyof typeof SECTION_CONFIG>;
|
|
@@ -82,6 +80,7 @@ export const useChannelDetailsNavigationItems = ({
|
|
|
82
80
|
}: {
|
|
83
81
|
getNavigationItems?: GetChannelDetailsNavigationItems;
|
|
84
82
|
} = {}): ChannelDetailsNavigationItem[] => {
|
|
83
|
+
const { icons } = useComponentsContext();
|
|
85
84
|
const { t } = useTranslationContext();
|
|
86
85
|
|
|
87
86
|
const context = useMemo<ChannelDetailsNavigationItemsContext>(() => ({ t }), [t]);
|
|
@@ -89,10 +88,10 @@ export const useChannelDetailsNavigationItems = ({
|
|
|
89
88
|
const defaultItems = useMemo<ChannelDetailsNavigationItem[]>(
|
|
90
89
|
() =>
|
|
91
90
|
SECTIONS.map((section) => {
|
|
92
|
-
const {
|
|
93
|
-
return { Icon, label: t(label), section };
|
|
91
|
+
const { icon, label } = SECTION_CONFIG[section];
|
|
92
|
+
return { Icon: icons[icon], label: t(label), section };
|
|
94
93
|
}),
|
|
95
|
-
[t],
|
|
94
|
+
[icons, t],
|
|
96
95
|
);
|
|
97
96
|
|
|
98
97
|
return useMemo(
|
|
@@ -7,10 +7,10 @@ import { ChannelPreviewProps } from './ChannelPreview';
|
|
|
7
7
|
|
|
8
8
|
import { useA11yLabel } from '../../a11y/hooks/useA11yLabel';
|
|
9
9
|
import { useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
10
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
10
11
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
11
12
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
12
13
|
import { MessageDeliveryStatus, useMessageDeliveryStatus } from '../../hooks';
|
|
13
|
-
import { Check, CheckAll, Time } from '../../icons';
|
|
14
14
|
import { primitives } from '../../theme';
|
|
15
15
|
import { MessageStatusTypes } from '../../utils/utils';
|
|
16
16
|
import { CompositeAccessibilityProbe } from '../Accessibility/CompositeAccessibilityProbe';
|
|
@@ -24,6 +24,7 @@ export const ChannelMessagePreviewDeliveryStatus = ({
|
|
|
24
24
|
message,
|
|
25
25
|
}: ChannelMessagePreviewDeliveryStatusProps) => {
|
|
26
26
|
const { client } = useChatContext();
|
|
27
|
+
const { icons } = useComponentsContext();
|
|
27
28
|
const { t } = useTranslationContext();
|
|
28
29
|
const channelConfigExists = typeof channel?.getConfig === 'function';
|
|
29
30
|
const styles = useStyles();
|
|
@@ -87,14 +88,24 @@ export const ChannelMessagePreviewDeliveryStatus = ({
|
|
|
87
88
|
<CompositeAccessibilityProbe label={statusLabel}>
|
|
88
89
|
<View style={styles.container}>
|
|
89
90
|
{message.status === MessageStatusTypes.SENDING ? (
|
|
90
|
-
<Time stroke={semantics.chatTextTimestamp} height={16} width={16} {...timeIcon} />
|
|
91
|
+
<icons.Time stroke={semantics.chatTextTimestamp} height={16} width={16} {...timeIcon} />
|
|
91
92
|
) : message.status === MessageStatusTypes.RECEIVED &&
|
|
92
93
|
status === MessageDeliveryStatus.READ ? (
|
|
93
|
-
<CheckAll
|
|
94
|
+
<icons.CheckAll
|
|
95
|
+
stroke={semantics.accentPrimary}
|
|
96
|
+
height={16}
|
|
97
|
+
width={16}
|
|
98
|
+
{...checkAllIcon}
|
|
99
|
+
/>
|
|
94
100
|
) : status === MessageDeliveryStatus.DELIVERED ? (
|
|
95
|
-
<CheckAll
|
|
101
|
+
<icons.CheckAll
|
|
102
|
+
stroke={semantics.chatTextTimestamp}
|
|
103
|
+
height={16}
|
|
104
|
+
width={16}
|
|
105
|
+
{...checkAllIcon}
|
|
106
|
+
/>
|
|
96
107
|
) : status === MessageDeliveryStatus.SENT ? (
|
|
97
|
-
<Check stroke={semantics.chatTextTimestamp} height={16} width={16} {...checkIcon} />
|
|
108
|
+
<icons.Check stroke={semantics.chatTextTimestamp} height={16} width={16} {...checkIcon} />
|
|
98
109
|
) : null}
|
|
99
110
|
<Text style={styles.text}>{t('You')}:</Text>
|
|
100
111
|
</View>
|
|
@@ -15,7 +15,6 @@ import { useComponentsContext } from '../../contexts/componentsContext/Component
|
|
|
15
15
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
16
16
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
17
17
|
|
|
18
|
-
import { PollIcon } from '../../icons/poll';
|
|
19
18
|
import { primitives } from '../../theme';
|
|
20
19
|
import { MessageStatusTypes } from '../../utils/utils';
|
|
21
20
|
import { ErrorBadge } from '../ui';
|
|
@@ -30,6 +29,7 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
30
29
|
ChannelPreviewTypingIndicator,
|
|
31
30
|
ChannelPreviewMessageDeliveryStatus,
|
|
32
31
|
ChannelPreviewLastMessage,
|
|
32
|
+
icons,
|
|
33
33
|
} = useComponentsContext();
|
|
34
34
|
const {
|
|
35
35
|
theme: { semantics },
|
|
@@ -80,7 +80,7 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
80
80
|
if (pollLabel) {
|
|
81
81
|
return (
|
|
82
82
|
<View style={styles.container}>
|
|
83
|
-
<PollIcon height={16} width={16} stroke={semantics.textSecondary} />
|
|
83
|
+
<icons.PollIcon height={16} width={16} stroke={semantics.textSecondary} />
|
|
84
84
|
<Text ellipsizeMode='tail' numberOfLines={1} style={styles.subtitle}>
|
|
85
85
|
{pollLabel}
|
|
86
86
|
</Text>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { useA11yLabel } from '../../a11y/hooks/useA11yLabel';
|
|
4
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Mute } from '../../icons';
|
|
6
6
|
import { CompositeAccessibilityProbe } from '../Accessibility/CompositeAccessibilityProbe';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -15,11 +15,12 @@ export const ChannelPreviewMutedStatus = () => {
|
|
|
15
15
|
semantics,
|
|
16
16
|
},
|
|
17
17
|
} = useTheme();
|
|
18
|
+
const { icons } = useComponentsContext();
|
|
18
19
|
const accessibilityLabel = useA11yLabel('a11y/Muted');
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<CompositeAccessibilityProbe label={accessibilityLabel}>
|
|
22
|
-
<Mute height={20} fill={semantics.textTertiary} width={20} {...mutedStatus} />
|
|
23
|
+
<icons.Mute height={20} fill={semantics.textTertiary} width={20} {...mutedStatus} />
|
|
23
24
|
</CompositeAccessibilityProbe>
|
|
24
25
|
);
|
|
25
26
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { useA11yLabel } from '../../a11y/hooks/useA11yLabel';
|
|
4
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Pin } from '../../icons';
|
|
6
6
|
import { CompositeAccessibilityProbe } from '../Accessibility/CompositeAccessibilityProbe';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -15,11 +15,12 @@ export const ChannelPreviewPinnedStatus = () => {
|
|
|
15
15
|
semantics,
|
|
16
16
|
},
|
|
17
17
|
} = useTheme();
|
|
18
|
+
const { icons } = useComponentsContext();
|
|
18
19
|
const accessibilityLabel = useA11yLabel('a11y/Pinned');
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<CompositeAccessibilityProbe label={accessibilityLabel}>
|
|
22
|
-
<Pin height={20} stroke={semantics.textTertiary} width={20} {...pinnedStatus} />
|
|
23
|
+
<icons.Pin height={20} stroke={semantics.textTertiary} width={20} {...pinnedStatus} />
|
|
23
24
|
</CompositeAccessibilityProbe>
|
|
24
25
|
);
|
|
25
26
|
};
|
|
@@ -13,7 +13,6 @@ import type {
|
|
|
13
13
|
GetChannelActionItems,
|
|
14
14
|
} from '../../hooks/actions/useChannelActionItems';
|
|
15
15
|
import { useChannelActionItems } from '../../hooks/actions/useChannelActionItems';
|
|
16
|
-
import { MenuPointHorizontal } from '../../icons';
|
|
17
16
|
import { BottomSheetModal } from '../UIComponents/BottomSheetModal';
|
|
18
17
|
import {
|
|
19
18
|
RightActions,
|
|
@@ -26,7 +25,8 @@ export const OpenChannelDetailsButton = () => {
|
|
|
26
25
|
const {
|
|
27
26
|
theme: { semantics },
|
|
28
27
|
} = useTheme();
|
|
29
|
-
|
|
28
|
+
const { icons } = useComponentsContext();
|
|
29
|
+
return <icons.MenuPointHorizontal stroke={semantics.textPrimary} />;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const ChannelSwipableWrapper = ({
|
|
@@ -9,8 +9,6 @@ import { useImageGalleryContext } from '../../../contexts/imageGalleryContext/Im
|
|
|
9
9
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
10
10
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
11
11
|
import { useStateStore } from '../../../hooks/useStateStore';
|
|
12
|
-
import { Share as ShareIconDefault } from '../../../icons';
|
|
13
|
-
import { ImageGrid } from '../../../icons/gallery';
|
|
14
12
|
import { isFileSystemAvailable, isShareImageAvailable, NativeHandlers } from '../../../native';
|
|
15
13
|
|
|
16
14
|
import { ImageGalleryState } from '../../../state-store/image-gallery-state-store';
|
|
@@ -44,7 +42,7 @@ const imageGallerySelector = (state: ImageGalleryState) => ({
|
|
|
44
42
|
|
|
45
43
|
export const ImageGalleryFooterWithContext = (props: ImageGalleryFooterProps) => {
|
|
46
44
|
const { accessibilityLabel, opacity, openGridView, visible } = props;
|
|
47
|
-
const { ImageGalleryVideoControls } = useComponentsContext();
|
|
45
|
+
const { icons, ImageGalleryVideoControls } = useComponentsContext();
|
|
48
46
|
|
|
49
47
|
const [height, setHeight] = useState(200);
|
|
50
48
|
const [savingInProgress, setSavingInProgress] = useState(false);
|
|
@@ -139,7 +137,7 @@ export const ImageGalleryFooterWithContext = (props: ImageGalleryFooterProps) =>
|
|
|
139
137
|
type='ghost'
|
|
140
138
|
size='md'
|
|
141
139
|
onPress={openGridView}
|
|
142
|
-
LeadingIcon={ImageGrid}
|
|
140
|
+
LeadingIcon={icons.ImageGrid}
|
|
143
141
|
iconOnly
|
|
144
142
|
/>
|
|
145
143
|
</View>
|
|
@@ -155,6 +153,7 @@ type ShareButtonProps = {
|
|
|
155
153
|
|
|
156
154
|
const ShareButton = ({ share, savingInProgress }: ShareButtonProps) => {
|
|
157
155
|
const styles = useStyles();
|
|
156
|
+
const { icons } = useComponentsContext();
|
|
158
157
|
// If the shareImage, saveFile or deleteFile is null, we don't want to render the share button
|
|
159
158
|
if (!isShareImageAvailable() || !isFileSystemAvailable()) {
|
|
160
159
|
return null;
|
|
@@ -171,7 +170,7 @@ const ShareButton = ({ share, savingInProgress }: ShareButtonProps) => {
|
|
|
171
170
|
type='ghost'
|
|
172
171
|
size='md'
|
|
173
172
|
onPress={share}
|
|
174
|
-
LeadingIcon={
|
|
173
|
+
LeadingIcon={icons.Share}
|
|
175
174
|
iconOnly
|
|
176
175
|
/>
|
|
177
176
|
);
|
|
@@ -7,12 +7,12 @@ import { SafeAreaInsetsContext } from 'react-native-safe-area-context';
|
|
|
7
7
|
|
|
8
8
|
import type { ImageGalleryHeaderProps } from './types';
|
|
9
9
|
|
|
10
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
10
11
|
import { useImageGalleryContext } from '../../../contexts/imageGalleryContext/ImageGalleryContextBase';
|
|
11
12
|
import { useOverlayContext } from '../../../contexts/overlayContext/OverlayContext';
|
|
12
13
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
13
14
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
14
15
|
import { useStateStore } from '../../../hooks/useStateStore';
|
|
15
|
-
import { ChevronLeft } from '../../../icons/chevron-left';
|
|
16
16
|
|
|
17
17
|
import { ImageGalleryState } from '../../../state-store/image-gallery-state-store';
|
|
18
18
|
import { primitives } from '../../../theme';
|
|
@@ -26,6 +26,7 @@ const imageGallerySelector = (state: ImageGalleryState) => ({
|
|
|
26
26
|
export const ImageGalleryHeader = (props: ImageGalleryHeaderProps) => {
|
|
27
27
|
const { opacity, visible } = props;
|
|
28
28
|
const [height, setHeight] = useState(200);
|
|
29
|
+
const { icons } = useComponentsContext();
|
|
29
30
|
const styles = useStyles();
|
|
30
31
|
const { t, tDateTimeParser } = useTranslationContext();
|
|
31
32
|
const { imageGalleryStateStore } = useImageGalleryContext();
|
|
@@ -77,7 +78,7 @@ export const ImageGalleryHeader = (props: ImageGalleryHeaderProps) => {
|
|
|
77
78
|
type='ghost'
|
|
78
79
|
size='md'
|
|
79
80
|
onPress={hideOverlay}
|
|
80
|
-
LeadingIcon={ChevronLeft}
|
|
81
|
+
LeadingIcon={icons.ChevronLeft}
|
|
81
82
|
iconOnly
|
|
82
83
|
/>
|
|
83
84
|
</View>
|
|
@@ -3,12 +3,11 @@ import { StyleSheet, Text, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import type { ImageGalleryVideoControlProps } from './types';
|
|
5
5
|
|
|
6
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
7
8
|
|
|
8
9
|
import { useStableCallback } from '../../../hooks/useStableCallback';
|
|
9
10
|
import { useStateStore } from '../../../hooks/useStateStore';
|
|
10
|
-
import { Pause } from '../../../icons/pause-fill';
|
|
11
|
-
import { Play } from '../../../icons/play-fill';
|
|
12
11
|
import { IconProps } from '../../../icons/utils/base';
|
|
13
12
|
import { VideoPlayerState } from '../../../state-store/video-player';
|
|
14
13
|
import { primitives } from '../../../theme';
|
|
@@ -43,6 +42,7 @@ export const ImageGalleryVideoControl = React.memo((props: ImageGalleryVideoCont
|
|
|
43
42
|
|
|
44
43
|
const progressDuration = getDurationLabelFromDuration(progressValueInSeconds);
|
|
45
44
|
|
|
45
|
+
const { icons } = useComponentsContext();
|
|
46
46
|
const {
|
|
47
47
|
theme: {
|
|
48
48
|
imageGallery: {
|
|
@@ -56,11 +56,11 @@ export const ImageGalleryVideoControl = React.memo((props: ImageGalleryVideoCont
|
|
|
56
56
|
const renderPlayPauseIcon = useCallback(
|
|
57
57
|
(props: IconProps) =>
|
|
58
58
|
isPlaying ? (
|
|
59
|
-
<Pause {...props} fill={semantics.textSecondary} />
|
|
59
|
+
<icons.Pause {...props} fill={semantics.textSecondary} />
|
|
60
60
|
) : (
|
|
61
|
-
<Play {...props} fill={semantics.textSecondary} />
|
|
61
|
+
<icons.Play {...props} fill={semantics.textSecondary} />
|
|
62
62
|
),
|
|
63
|
-
[isPlaying, semantics.textSecondary],
|
|
63
|
+
[icons, isPlaying, semantics.textSecondary],
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
const handlePlayPause = async () => {
|