stream-chat-react-native-core 9.6.2-beta.4 → 9.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js +5 -4
- package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileIcon.js +19 -25
- package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js +4 -2
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +5 -4
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +6 -4
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +3 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +7 -7
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +19 -17
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js +4 -2
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +2 -2
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +4 -2
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +5 -4
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +4 -2
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +3 -3
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +17 -18
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js +6 -5
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +6 -6
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +4 -2
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +3 -2
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +6 -5
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/UIComponents/EmptySearchResult.js +4 -2
- package/lib/commonjs/components/UIComponents/EmptySearchResult.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SearchInput.js +7 -6
- package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SelectionCircle.js +4 -2
- package/lib/commonjs/components/UIComponents/SelectionCircle.js.map +1 -1
- package/lib/commonjs/components/UIComponents/Spinner.js +4 -2
- package/lib/commonjs/components/UIComponents/Spinner.js.map +1 -1
- package/lib/commonjs/components/index.js +55 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js +5 -3
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js +5 -3
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/ErrorBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/ErrorBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/GiphyBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/GiphyBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/ImgurBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/ImgurBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/RetryBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/RetryBadge.js.map +1 -1
- package/lib/commonjs/components/ui/GiphyChip.js +5 -4
- package/lib/commonjs/components/ui/GiphyChip.js.map +1 -1
- package/lib/commonjs/components/ui/Input/Input.js +5 -4
- package/lib/commonjs/components/ui/Input/Input.js.map +1 -1
- package/lib/commonjs/components/ui/VideoPlayIndicator.js +4 -2
- package/lib/commonjs/components/ui/VideoPlayIndicator.js.map +1 -1
- package/lib/commonjs/components/ui/index.js +33 -0
- package/lib/commonjs/components/ui/index.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +16 -5
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +179 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/pollContext.js +1 -1
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActionItems.js +22 -11
- package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +23 -11
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Audio/PlayPauseButton.js +5 -4
- package/lib/module/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
- package/lib/module/components/Attachment/FileIcon.js +19 -25
- package/lib/module/components/Attachment/FileIcon.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js +4 -2
- package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js +5 -4
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/Indicators/EmptyStateIndicator.js +6 -4
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js +2 -2
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -4
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +7 -7
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
- package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +19 -17
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js +4 -2
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/LinkPreviewList.js +2 -2
- package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +4 -2
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +5 -4
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +4 -2
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +3 -3
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +17 -18
- package/lib/module/components/Notifications/Notification.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollHeader.js +6 -5
- package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +6 -6
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +4 -2
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +3 -2
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +6 -5
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/UIComponents/EmptySearchResult.js +4 -2
- package/lib/module/components/UIComponents/EmptySearchResult.js.map +1 -1
- package/lib/module/components/UIComponents/SearchInput.js +7 -6
- package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/module/components/UIComponents/SelectionCircle.js +4 -2
- package/lib/module/components/UIComponents/SelectionCircle.js.map +1 -1
- package/lib/module/components/UIComponents/Spinner.js +4 -2
- package/lib/module/components/UIComponents/Spinner.js.map +1 -1
- package/lib/module/components/index.js +55 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/ui/Avatar/AvatarGroup.js +5 -3
- package/lib/module/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/module/components/ui/Avatar/UserAvatar.js +5 -3
- package/lib/module/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/module/components/ui/Badge/ErrorBadge.js +4 -2
- package/lib/module/components/ui/Badge/ErrorBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/GiphyBadge.js +4 -2
- package/lib/module/components/ui/Badge/GiphyBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/ImgurBadge.js +4 -2
- package/lib/module/components/ui/Badge/ImgurBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/RetryBadge.js +4 -2
- package/lib/module/components/ui/Badge/RetryBadge.js.map +1 -1
- package/lib/module/components/ui/GiphyChip.js +5 -4
- package/lib/module/components/ui/GiphyChip.js.map +1 -1
- package/lib/module/components/ui/Input/Input.js +5 -4
- package/lib/module/components/ui/Input/Input.js.map +1 -1
- package/lib/module/components/ui/VideoPlayIndicator.js +4 -2
- package/lib/module/components/ui/VideoPlayIndicator.js.map +1 -1
- package/lib/module/components/ui/index.js +33 -0
- package/lib/module/components/ui/index.js.map +1 -1
- package/lib/module/contexts/componentsContext/ComponentsContext.js +16 -5
- package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js +179 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/pollContext/pollContext.js +1 -1
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActionItems.js +22 -11
- package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useChannelMemberActionItems.js +23 -11
- package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Audio/PlayPauseButton.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileIcon.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionRoleItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavigationSection.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsProfile.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditDetailsFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditImageSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersButton.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/modal/ModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewPinnedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageSwipeContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListClustered.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListItem.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/EditButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/SendButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/Notification.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/EmptySearchResult.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SelectionCircle.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +5 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/AvatarGroup.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/ErrorBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/GiphyBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/ImgurBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/RetryBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/GiphyChip.d.ts.map +1 -1
- package/lib/typescript/components/ui/Input/Input.d.ts.map +1 -1
- package/lib/typescript/components/ui/VideoPlayIndicator.d.ts.map +1 -1
- package/lib/typescript/components/ui/index.d.ts +3 -0
- package/lib/typescript/components/ui/index.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -1
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +16 -2
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +215 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts +5 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts +5 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewIcon.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Attachment/Audio/PlayPauseButton.tsx +4 -4
- package/src/components/Attachment/FileIcon.tsx +19 -27
- package/src/components/Attachment/Giphy/Giphy.tsx +3 -2
- package/src/components/Attachment/UrlPreview/URLPreview.tsx +3 -2
- package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +3 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +3 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +8 -5
- package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +13 -15
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +10 -11
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionRoleItem.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.tsx +13 -10
- package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx +5 -7
- package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +6 -10
- package/src/components/ChannelDetails/components/members/ChannelAddMembersButton.tsx +2 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +2 -3
- package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +2 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +2 -3
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +2 -3
- package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +12 -13
- package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +16 -5
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +2 -2
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +3 -2
- package/src/components/ChannelPreview/ChannelPreviewPinnedStatus.tsx +3 -2
- package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -2
- package/src/components/Chat/Chat.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +4 -5
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -2
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +5 -5
- package/src/components/Indicators/EmptyStateIndicator.tsx +5 -4
- package/src/components/Message/MessageItemView/Headers/MessagePinnedHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/MessageDeleted.tsx +2 -3
- package/src/components/Message/MessageItemView/MessageReplies.tsx +3 -5
- package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -7
- package/src/components/Message/MessageItemView/MessageSwipeContent.tsx +3 -2
- package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +3 -3
- package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +3 -3
- package/src/components/Message/hooks/useMessageActions.tsx +18 -31
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +8 -2
- package/src/components/MessageInput/StopMessageStreamingButton.tsx +3 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +3 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.tsx +6 -5
- package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx +3 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +16 -11
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +3 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +2 -3
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +5 -6
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx +4 -4
- package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +3 -2
- package/src/components/MessageInput/components/LinkPreviewList.tsx +2 -3
- package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +3 -2
- package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +3 -2
- package/src/components/MessageList/ScrollToBottomButton.tsx +3 -2
- package/src/components/MessageList/UnreadMessagesNotification.tsx +4 -4
- package/src/components/MessageMenu/MessageReactionPicker.tsx +3 -2
- package/src/components/MessageMenu/MessageUserReactions.tsx +3 -4
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +2 -3
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +1 -1
- package/src/components/Notifications/Notification.tsx +18 -17
- package/src/components/Poll/components/CreatePollHeader.tsx +6 -5
- package/src/components/Poll/components/CreatePollOptions.tsx +5 -6
- package/src/components/Poll/components/MultipleVotesSettings.tsx +4 -3
- package/src/components/Poll/components/PollModalHeader.tsx +3 -2
- package/src/components/Poll/components/PollOption.tsx +2 -2
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +5 -5
- package/src/components/ThreadList/ThreadMessagePreviewDeliveryStatus.tsx +11 -5
- package/src/components/UIComponents/EmptySearchResult.tsx +3 -2
- package/src/components/UIComponents/SearchInput.tsx +6 -6
- package/src/components/UIComponents/SelectionCircle.tsx +3 -2
- package/src/components/UIComponents/Spinner.tsx +3 -2
- package/src/components/index.ts +5 -0
- package/src/components/ui/Avatar/AvatarGroup.tsx +4 -3
- package/src/components/ui/Avatar/UserAvatar.tsx +8 -3
- package/src/components/ui/Badge/ErrorBadge.tsx +3 -2
- package/src/components/ui/Badge/GiphyBadge.tsx +3 -2
- package/src/components/ui/Badge/ImgurBadge.tsx +3 -2
- package/src/components/ui/Badge/RetryBadge.tsx +3 -2
- package/src/components/ui/GiphyChip.tsx +4 -4
- package/src/components/ui/Input/Input.tsx +4 -4
- package/src/components/ui/VideoPlayIndicator.tsx +3 -2
- package/src/components/ui/index.ts +3 -0
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -1
- package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
- package/src/contexts/componentsContext/ComponentsContext.tsx +39 -9
- package/src/contexts/componentsContext/defaultComponents.ts +193 -0
- package/src/contexts/pollContext/pollContext.tsx +1 -1
- package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +15 -0
- package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +9 -0
- package/src/hooks/actions/useChannelActionItems.tsx +31 -11
- package/src/hooks/actions/useChannelMemberActionItems.tsx +29 -6
- package/src/hooks/messagePreview/useMessagePreviewIcon.tsx +11 -17
- package/src/version.json +1 -1
- package/lib/commonjs/icons/arrow-left.js +0 -37
- package/lib/commonjs/icons/arrow-left.js.map +0 -1
- package/lib/module/icons/arrow-left.js +0 -37
- package/lib/module/icons/arrow-left.js.map +0 -1
- package/lib/typescript/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/icons/arrow-left.d.ts.map +0 -1
- package/src/icons/arrow-left.tsx +0 -23
|
@@ -1,10 +1,10 @@
|
|
|
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 { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';
|
|
5
6
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
6
7
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
7
|
-
import { Bookmark } from '../../../../icons/save';
|
|
8
8
|
import { primitives } from '../../../../theme';
|
|
9
9
|
import { useShouldUseOverlayStyles } from '../../hooks/useShouldUseOverlayStyles';
|
|
10
10
|
|
|
@@ -13,10 +13,11 @@ export type MessageSavedForLaterHeaderProps = Partial<Pick<MessageContextValue,
|
|
|
13
13
|
export const MessageSavedForLaterHeader = () => {
|
|
14
14
|
const styles = useStyles();
|
|
15
15
|
const { t } = useTranslationContext();
|
|
16
|
+
const { icons } = useComponentsContext();
|
|
16
17
|
|
|
17
18
|
return (
|
|
18
19
|
<View accessibilityLabel='Message Saved For Later Header' style={styles.container}>
|
|
19
|
-
<Bookmark height={16} width={16} stroke={styles.label.color} />
|
|
20
|
+
<icons.Bookmark height={16} width={16} stroke={styles.label.color} />
|
|
20
21
|
<Text style={styles.label}>{t('Saved For Later')}</Text>
|
|
21
22
|
</View>
|
|
22
23
|
);
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
ChannelContextValue,
|
|
9
9
|
useChannelContext,
|
|
10
10
|
} from '../../../../contexts/channelContext/ChannelContext';
|
|
11
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
11
12
|
import { useMessageContext } from '../../../../contexts/messageContext/MessageContext';
|
|
12
13
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
13
14
|
import { useThreadContext } from '../../../../contexts/threadContext/ThreadContext';
|
|
14
15
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
15
16
|
import { useStableCallback } from '../../../../hooks';
|
|
16
|
-
import { ArrowUpRight } from '../../../../icons/arrow-up-right';
|
|
17
17
|
import { primitives } from '../../../../theme';
|
|
18
18
|
import { useShouldUseOverlayStyles } from '../../hooks/useShouldUseOverlayStyles';
|
|
19
19
|
|
|
@@ -34,10 +34,11 @@ const SentToChannelHeaderWithContext = (props: SentToChannelHeaderPropsWithConte
|
|
|
34
34
|
const { threadList, onPress, showViewText } = props;
|
|
35
35
|
const { t } = useTranslationContext();
|
|
36
36
|
const styles = useStyles();
|
|
37
|
+
const { icons } = useComponentsContext();
|
|
37
38
|
|
|
38
39
|
return (
|
|
39
40
|
<View accessibilityLabel='Message Saved For Later Header' style={styles.container}>
|
|
40
|
-
<ArrowUpRight height={16} width={16} stroke={styles.link.color} />
|
|
41
|
+
<icons.ArrowUpRight height={16} width={16} stroke={styles.link.color} />
|
|
41
42
|
<Text style={styles.label}>
|
|
42
43
|
{threadList ? t('Also sent in channel') : t('Replied to a thread')}
|
|
43
44
|
</Text>
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from '../../../contexts/messageContext/MessageContext';
|
|
9
9
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
10
10
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
11
|
-
import { CircleBan } from '../../../icons/no-sign';
|
|
12
11
|
import { components, primitives } from '../../../theme';
|
|
13
12
|
|
|
14
13
|
type MessageDeletedComponentProps = {
|
|
@@ -21,7 +20,7 @@ type MessageDeletedPropsWithContext = Pick<MessageContextValue, 'alignment' | 'm
|
|
|
21
20
|
|
|
22
21
|
const MessageDeletedWithContext = (props: MessageDeletedPropsWithContext) => {
|
|
23
22
|
const { alignment, date, groupStyle } = props;
|
|
24
|
-
const { MessageFooter } = useComponentsContext();
|
|
23
|
+
const { icons, MessageFooter } = useComponentsContext();
|
|
25
24
|
|
|
26
25
|
const {
|
|
27
26
|
theme: {
|
|
@@ -55,7 +54,7 @@ const MessageDeletedWithContext = (props: MessageDeletedPropsWithContext) => {
|
|
|
55
54
|
containerInner,
|
|
56
55
|
]}
|
|
57
56
|
>
|
|
58
|
-
<CircleBan height={16} width={16} stroke={semantics.textSecondary} />
|
|
57
|
+
<icons.CircleBan height={16} width={16} stroke={semantics.textSecondary} />
|
|
59
58
|
<Text style={[styles.deletedText, deletedText]}>{t('Message deleted')}</Text>
|
|
60
59
|
</View>
|
|
61
60
|
<MessageFooter date={date} />
|
|
@@ -11,8 +11,6 @@ import {
|
|
|
11
11
|
TranslationContextValue,
|
|
12
12
|
useTranslationContext,
|
|
13
13
|
} from '../../../contexts/translationContext/TranslationContext';
|
|
14
|
-
import { ReplyConnectorLeft } from '../../../icons/ReplyConnectorLeft';
|
|
15
|
-
import { ReplyConnectorRight } from '../../../icons/ReplyConnectorRight';
|
|
16
14
|
import { primitives } from '../../../theme';
|
|
17
15
|
import { useShouldUseOverlayStyles } from '../hooks/useShouldUseOverlayStyles';
|
|
18
16
|
|
|
@@ -43,7 +41,7 @@ const MessageRepliesWithContext = (props: MessageRepliesPropsWithContext) => {
|
|
|
43
41
|
t,
|
|
44
42
|
threadList,
|
|
45
43
|
} = props;
|
|
46
|
-
const { MessageRepliesAvatars } = useComponentsContext();
|
|
44
|
+
const { icons, MessageRepliesAvatars } = useComponentsContext();
|
|
47
45
|
|
|
48
46
|
const {
|
|
49
47
|
theme: {
|
|
@@ -66,9 +64,9 @@ const MessageRepliesWithContext = (props: MessageRepliesPropsWithContext) => {
|
|
|
66
64
|
|
|
67
65
|
const connector =
|
|
68
66
|
physicalAlignment === 'left' ? (
|
|
69
|
-
<ReplyConnectorLeft height={48} width={16} stroke={connectorStroke} />
|
|
67
|
+
<icons.ReplyConnectorLeft height={48} width={16} stroke={connectorStroke} />
|
|
70
68
|
) : (
|
|
71
|
-
<ReplyConnectorRight height={48} width={16} stroke={connectorStroke} />
|
|
69
|
+
<icons.ReplyConnectorRight height={48} width={16} stroke={connectorStroke} />
|
|
72
70
|
);
|
|
73
71
|
|
|
74
72
|
if (threadList || !message.reply_count) {
|
|
@@ -3,14 +3,12 @@ import { StyleSheet, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { useA11yLabel } from '../../../a11y/hooks/useA11yLabel';
|
|
5
5
|
import { useChannelContext } from '../../../contexts/channelContext/ChannelContext';
|
|
6
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import {
|
|
7
8
|
MessageContextValue,
|
|
8
9
|
useMessageContext,
|
|
9
10
|
} from '../../../contexts/messageContext/MessageContext';
|
|
10
11
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
11
|
-
import { Check } from '../../../icons/checkmark';
|
|
12
|
-
import { CheckAll } from '../../../icons/checks';
|
|
13
|
-
import { Time } from '../../../icons/clock';
|
|
14
12
|
import { primitives } from '../../../theme';
|
|
15
13
|
import { MessageStatusTypes } from '../../../utils/utils';
|
|
16
14
|
import { HiddenA11yText } from '../../Accessibility/HiddenA11yText';
|
|
@@ -25,6 +23,7 @@ const MessageStatusWithContext = (props: MessageStatusPropsWithContext) => {
|
|
|
25
23
|
const { deliveredToCount, message, readBy } = props;
|
|
26
24
|
|
|
27
25
|
const styles = useStyles();
|
|
26
|
+
const { icons } = useComponentsContext();
|
|
28
27
|
|
|
29
28
|
const {
|
|
30
29
|
theme: {
|
|
@@ -71,13 +70,23 @@ const MessageStatusWithContext = (props: MessageStatusPropsWithContext) => {
|
|
|
71
70
|
style={[styles.container, container]}
|
|
72
71
|
>
|
|
73
72
|
{read ? (
|
|
74
|
-
<CheckAll
|
|
73
|
+
<icons.CheckAll
|
|
74
|
+
height={16}
|
|
75
|
+
stroke={styles.readCheck.color}
|
|
76
|
+
width={16}
|
|
77
|
+
{...checkAllIcon}
|
|
78
|
+
/>
|
|
75
79
|
) : delivered ? (
|
|
76
|
-
<CheckAll
|
|
80
|
+
<icons.CheckAll
|
|
81
|
+
stroke={styles.deliveredCheck.color}
|
|
82
|
+
height={16}
|
|
83
|
+
width={16}
|
|
84
|
+
{...checkAllIcon}
|
|
85
|
+
/>
|
|
77
86
|
) : sending ? (
|
|
78
|
-
<Time stroke={styles.sendingCheck.color} height={16} width={16} {...timeIcon} />
|
|
87
|
+
<icons.Time stroke={styles.sendingCheck.color} height={16} width={16} {...timeIcon} />
|
|
79
88
|
) : sent ? (
|
|
80
|
-
<Check stroke={styles.sentCheck.color} height={16} width={16} {...checkIcon} />
|
|
89
|
+
<icons.Check stroke={styles.sentCheck.color} height={16} width={16} {...checkIcon} />
|
|
81
90
|
) : null}
|
|
82
91
|
</View>
|
|
83
92
|
</>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } 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 { ArrowShareLeft } from '../../../icons';
|
|
6
6
|
import { primitives } from '../../../theme';
|
|
7
7
|
|
|
8
8
|
export const MessageSwipeContent = () => {
|
|
@@ -10,10 +10,11 @@ export const MessageSwipeContent = () => {
|
|
|
10
10
|
const {
|
|
11
11
|
theme: { semantics },
|
|
12
12
|
} = useTheme();
|
|
13
|
+
const { icons } = useComponentsContext();
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<View style={styles.container}>
|
|
16
|
-
<ArrowShareLeft stroke={semantics.buttonSecondaryTextOnAccent} height={20} width={20} />
|
|
17
|
+
<icons.ArrowShareLeft stroke={semantics.buttonSecondaryTextOnAccent} height={20} width={20} />
|
|
17
18
|
</View>
|
|
18
19
|
);
|
|
19
20
|
};
|
|
@@ -4,6 +4,7 @@ import { StyleProp, StyleSheet, Text, ViewStyle } from 'react-native';
|
|
|
4
4
|
import { ReactionListItemWrapper } from './ReactionListItemWrapper';
|
|
5
5
|
|
|
6
6
|
import { useA11yLabel } from '../../../../a11y/hooks/useA11yLabel';
|
|
7
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
7
8
|
import {
|
|
8
9
|
MessageContextValue,
|
|
9
10
|
useMessageContext,
|
|
@@ -14,8 +15,6 @@ import {
|
|
|
14
15
|
} from '../../../../contexts/messagesContext/MessagesContext';
|
|
15
16
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
16
17
|
|
|
17
|
-
import { Unknown } from '../../../../icons/Unknown';
|
|
18
|
-
|
|
19
18
|
import type { IconProps } from '../../../../icons/utils/base';
|
|
20
19
|
|
|
21
20
|
import { primitives } from '../../../../theme';
|
|
@@ -29,8 +28,9 @@ type Props = Pick<IconProps, 'pathFill' | 'style'> & {
|
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
const Icon = ({ size, style, supportedReactions, type }: Props) => {
|
|
31
|
+
const { icons } = useComponentsContext();
|
|
32
32
|
const ReactionIcon =
|
|
33
|
-
supportedReactions?.find((reaction) => reaction.type === type)?.Icon || Unknown;
|
|
33
|
+
supportedReactions?.find((reaction) => reaction.type === type)?.Icon || icons.Unknown;
|
|
34
34
|
|
|
35
35
|
return <ReactionIcon size={size} style={style} />;
|
|
36
36
|
};
|
|
@@ -4,12 +4,11 @@ import { StyleSheet, Text } from 'react-native';
|
|
|
4
4
|
import { ReactionListItemWrapper } from './ReactionListItemWrapper';
|
|
5
5
|
|
|
6
6
|
import { useA11yLabel } from '../../../../a11y/hooks/useA11yLabel';
|
|
7
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
7
8
|
import { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';
|
|
8
9
|
import { MessagesContextValue } from '../../../../contexts/messagesContext/MessagesContext';
|
|
9
10
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
10
11
|
|
|
11
|
-
import { Unknown } from '../../../../icons/Unknown';
|
|
12
|
-
|
|
13
12
|
import type { IconProps } from '../../../../icons/utils/base';
|
|
14
13
|
|
|
15
14
|
import { primitives } from '../../../../theme';
|
|
@@ -24,8 +23,9 @@ type Props = Pick<IconProps, 'pathFill' | 'style'> & {
|
|
|
24
23
|
};
|
|
25
24
|
|
|
26
25
|
const Icon = ({ size, style, supportedReactions, type }: Props) => {
|
|
26
|
+
const { icons } = useComponentsContext();
|
|
27
27
|
const ReactionIcon =
|
|
28
|
-
supportedReactions?.find((reaction) => reaction.type === type)?.Icon || Unknown;
|
|
28
|
+
supportedReactions?.find((reaction) => reaction.type === type)?.Icon || icons.Unknown;
|
|
29
29
|
|
|
30
30
|
return <ReactionIcon size={size} style={style} />;
|
|
31
31
|
};
|
|
@@ -9,6 +9,7 @@ import { useUserMuteActive } from './useUserMuteActive';
|
|
|
9
9
|
|
|
10
10
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
11
11
|
import type { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
12
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
12
13
|
import { MessageComposerAPIContextValue } from '../../../contexts/messageComposerContext/MessageComposerAPIContext';
|
|
13
14
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
14
15
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
@@ -16,22 +17,6 @@ import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
|
16
17
|
import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
|
|
17
18
|
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
18
19
|
import { useStableCallback } from '../../../hooks';
|
|
19
|
-
import {
|
|
20
|
-
BlockUser,
|
|
21
|
-
Copy,
|
|
22
|
-
CurveLineLeftUp,
|
|
23
|
-
Delete,
|
|
24
|
-
Edit,
|
|
25
|
-
MessageFlag,
|
|
26
|
-
Mute,
|
|
27
|
-
Pin,
|
|
28
|
-
Resend,
|
|
29
|
-
Sound,
|
|
30
|
-
ThreadReply,
|
|
31
|
-
Unpin,
|
|
32
|
-
UnreadIndicator,
|
|
33
|
-
UserDelete,
|
|
34
|
-
} from '../../../icons';
|
|
35
20
|
|
|
36
21
|
import { removeReservedFields } from '../../../utils/removeReservedFields';
|
|
37
22
|
import { MessageStatusTypes } from '../../../utils/utils';
|
|
@@ -105,6 +90,7 @@ export const useMessageActions = ({
|
|
|
105
90
|
const {
|
|
106
91
|
theme: { semantics },
|
|
107
92
|
} = useTheme();
|
|
93
|
+
const { icons } = useComponentsContext();
|
|
108
94
|
const {
|
|
109
95
|
handleCopyMessage,
|
|
110
96
|
handleDeleteMessage,
|
|
@@ -288,7 +274,7 @@ export const useMessageActions = ({
|
|
|
288
274
|
const banUser: MessageActionType = {
|
|
289
275
|
action: onBanUser,
|
|
290
276
|
actionType: 'banUser',
|
|
291
|
-
icon: <UserDelete width={20} height={20} stroke={semantics.accentError} />,
|
|
277
|
+
icon: <icons.UserDelete width={20} height={20} stroke={semantics.accentError} />,
|
|
292
278
|
title: message.user?.banned ? t('Unban User') : t('Ban User'),
|
|
293
279
|
titleStyle: { color: semantics.accentError },
|
|
294
280
|
type: 'destructive',
|
|
@@ -297,7 +283,7 @@ export const useMessageActions = ({
|
|
|
297
283
|
const copyMessage: MessageActionType = {
|
|
298
284
|
action: onCopyMessage,
|
|
299
285
|
actionType: 'copyMessage',
|
|
300
|
-
icon: <Copy width={20} height={20} stroke={semantics.textSecondary} />,
|
|
286
|
+
icon: <icons.Copy width={20} height={20} stroke={semantics.textSecondary} />,
|
|
301
287
|
title: t('Copy Message'),
|
|
302
288
|
type: 'standard',
|
|
303
289
|
};
|
|
@@ -305,7 +291,7 @@ export const useMessageActions = ({
|
|
|
305
291
|
const deleteMessage: MessageActionType = {
|
|
306
292
|
action: onDeleteMessage,
|
|
307
293
|
actionType: 'deleteMessage',
|
|
308
|
-
icon: <Delete stroke={semantics.accentError} width={20} height={20} />,
|
|
294
|
+
icon: <icons.Delete stroke={semantics.accentError} width={20} height={20} />,
|
|
309
295
|
title: t('Delete Message'),
|
|
310
296
|
titleStyle: { color: semantics.accentError },
|
|
311
297
|
type: 'destructive',
|
|
@@ -314,7 +300,7 @@ export const useMessageActions = ({
|
|
|
314
300
|
const deleteForMeMessage: MessageActionType = {
|
|
315
301
|
action: onDeleteForMeMessage,
|
|
316
302
|
actionType: 'deleteForMeMessage',
|
|
317
|
-
icon: <Delete stroke={semantics.accentError} width={20} height={20} />,
|
|
303
|
+
icon: <icons.Delete stroke={semantics.accentError} width={20} height={20} />,
|
|
318
304
|
title: t('Delete for me'),
|
|
319
305
|
titleStyle: { color: semantics.accentError },
|
|
320
306
|
type: 'destructive',
|
|
@@ -323,7 +309,7 @@ export const useMessageActions = ({
|
|
|
323
309
|
const editMessage: MessageActionType = {
|
|
324
310
|
action: onEditMessage,
|
|
325
311
|
actionType: 'editMessage',
|
|
326
|
-
icon: <Edit width={20} height={20} stroke={semantics.textSecondary} />,
|
|
312
|
+
icon: <icons.Edit width={20} height={20} stroke={semantics.textSecondary} />,
|
|
327
313
|
title: t('Edit Message'),
|
|
328
314
|
type: 'standard',
|
|
329
315
|
};
|
|
@@ -331,7 +317,7 @@ export const useMessageActions = ({
|
|
|
331
317
|
const flagMessage: MessageActionType = {
|
|
332
318
|
action: onFlagMessage,
|
|
333
319
|
actionType: 'flagMessage',
|
|
334
|
-
icon: <MessageFlag width={20} height={20} stroke={semantics.textSecondary} />,
|
|
320
|
+
icon: <icons.MessageFlag width={20} height={20} stroke={semantics.textSecondary} />,
|
|
335
321
|
title: t('Flag Message'),
|
|
336
322
|
type: 'standard',
|
|
337
323
|
};
|
|
@@ -339,7 +325,7 @@ export const useMessageActions = ({
|
|
|
339
325
|
const markUnread: MessageActionType = {
|
|
340
326
|
action: onMarkUnread,
|
|
341
327
|
actionType: 'markUnread',
|
|
342
|
-
icon: <UnreadIndicator width={20} height={20} stroke={semantics.textSecondary} />,
|
|
328
|
+
icon: <icons.UnreadIndicator width={20} height={20} stroke={semantics.textSecondary} />,
|
|
343
329
|
title: t('Mark as Unread'),
|
|
344
330
|
type: 'standard',
|
|
345
331
|
};
|
|
@@ -347,7 +333,7 @@ export const useMessageActions = ({
|
|
|
347
333
|
const pinMessage: MessageActionType = {
|
|
348
334
|
action: onTogglePinMessage,
|
|
349
335
|
actionType: 'pinMessage',
|
|
350
|
-
icon: <Pin width={20} height={20} stroke={semantics.textSecondary} />,
|
|
336
|
+
icon: <icons.Pin width={20} height={20} stroke={semantics.textSecondary} />,
|
|
351
337
|
title: t('Pin to Conversation'),
|
|
352
338
|
type: 'standard',
|
|
353
339
|
};
|
|
@@ -355,7 +341,7 @@ export const useMessageActions = ({
|
|
|
355
341
|
const unpinMessage: MessageActionType = {
|
|
356
342
|
action: onTogglePinMessage,
|
|
357
343
|
actionType: 'unpinMessage',
|
|
358
|
-
icon: <Unpin width={20} height={20} stroke={semantics.textSecondary} />,
|
|
344
|
+
icon: <icons.Unpin width={20} height={20} stroke={semantics.textSecondary} />,
|
|
359
345
|
title: t('Unpin from Conversation'),
|
|
360
346
|
type: 'standard',
|
|
361
347
|
};
|
|
@@ -364,9 +350,9 @@ export const useMessageActions = ({
|
|
|
364
350
|
action: onMuteUser,
|
|
365
351
|
actionType: 'muteUser',
|
|
366
352
|
icon: isMuted ? (
|
|
367
|
-
<Sound height={20} stroke={semantics.textSecondary} width={20} />
|
|
353
|
+
<icons.Sound height={20} stroke={semantics.textSecondary} width={20} />
|
|
368
354
|
) : (
|
|
369
|
-
<Mute fill={semantics.textSecondary} height={20} width={20} />
|
|
355
|
+
<icons.Mute fill={semantics.textSecondary} height={20} width={20} />
|
|
370
356
|
),
|
|
371
357
|
title: isMuted ? t('Unmute User') : t('Mute User'),
|
|
372
358
|
type: 'standard',
|
|
@@ -375,7 +361,7 @@ export const useMessageActions = ({
|
|
|
375
361
|
const quotedReply: MessageActionType = {
|
|
376
362
|
action: onQuotedReply,
|
|
377
363
|
actionType: 'quotedReply',
|
|
378
|
-
icon: <CurveLineLeftUp stroke={semantics.textSecondary} height={20} width={20} />,
|
|
364
|
+
icon: <icons.CurveLineLeftUp stroke={semantics.textSecondary} height={20} width={20} />,
|
|
379
365
|
title: t('Reply'),
|
|
380
366
|
type: 'standard',
|
|
381
367
|
};
|
|
@@ -383,7 +369,7 @@ export const useMessageActions = ({
|
|
|
383
369
|
const retry: MessageActionType = {
|
|
384
370
|
action: onRetry,
|
|
385
371
|
actionType: 'retry',
|
|
386
|
-
icon: <Resend stroke={semantics.textSecondary} height={20} width={20} />,
|
|
372
|
+
icon: <icons.Resend stroke={semantics.textSecondary} height={20} width={20} />,
|
|
387
373
|
title: t('Resend'),
|
|
388
374
|
type: 'standard',
|
|
389
375
|
};
|
|
@@ -391,7 +377,7 @@ export const useMessageActions = ({
|
|
|
391
377
|
const threadReply: MessageActionType = {
|
|
392
378
|
action: onThreadReply,
|
|
393
379
|
actionType: 'threadReply',
|
|
394
|
-
icon: <ThreadReply stroke={semantics.textSecondary} height={20} width={20} />,
|
|
380
|
+
icon: <icons.ThreadReply stroke={semantics.textSecondary} height={20} width={20} />,
|
|
395
381
|
title: t('Thread Reply'),
|
|
396
382
|
type: 'standard',
|
|
397
383
|
};
|
|
@@ -399,7 +385,7 @@ export const useMessageActions = ({
|
|
|
399
385
|
const blockUser: MessageActionType = {
|
|
400
386
|
action: onBlockUser,
|
|
401
387
|
actionType: 'blockUser',
|
|
402
|
-
icon: <BlockUser stroke={semantics.accentError} height={20} width={20} />,
|
|
388
|
+
icon: <icons.BlockUser stroke={semantics.accentError} height={20} width={20} />,
|
|
403
389
|
title: isBlocked ? t('Unblock User') : t('Block User'),
|
|
404
390
|
titleStyle: { color: semantics.accentError },
|
|
405
391
|
type: 'destructive',
|
|
@@ -424,6 +410,7 @@ export const useMessageActions = ({
|
|
|
424
410
|
};
|
|
425
411
|
}, [
|
|
426
412
|
error,
|
|
413
|
+
icons,
|
|
427
414
|
isBlocked,
|
|
428
415
|
isMuted,
|
|
429
416
|
message,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
ChannelContextValue,
|
|
10
10
|
useChannelContext,
|
|
11
11
|
} from '../../contexts/channelContext/ChannelContext';
|
|
12
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
12
13
|
import { useMessageComposer } from '../../contexts/messageInputContext/hooks/useMessageComposer';
|
|
13
14
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
14
15
|
import { ThreadContextValue, useThreadContext } from '../../contexts/threadContext/ThreadContext';
|
|
@@ -17,7 +18,6 @@ import {
|
|
|
17
18
|
useTranslationContext,
|
|
18
19
|
} from '../../contexts/translationContext/TranslationContext';
|
|
19
20
|
import { useStateStore } from '../../hooks/useStateStore';
|
|
20
|
-
import { Check } from '../../icons';
|
|
21
21
|
import { primitives } from '../../theme';
|
|
22
22
|
|
|
23
23
|
const stateSelector = (state: MessageComposerState) => ({
|
|
@@ -34,6 +34,7 @@ export const ShowThreadMessageInChannelButtonWithContext = (
|
|
|
34
34
|
props: ShowThreadMessageInChannelButtonWithContextProps,
|
|
35
35
|
) => {
|
|
36
36
|
const styles = useStyles();
|
|
37
|
+
const { icons } = useComponentsContext();
|
|
37
38
|
const { allowThreadMessagesInChannel, t, threadList } = props;
|
|
38
39
|
const messageComposer = useMessageComposer();
|
|
39
40
|
const { showReplyInChannel } = useStateStore(messageComposer.state, stateSelector);
|
|
@@ -83,7 +84,12 @@ export const ShowThreadMessageInChannelButtonWithContext = (
|
|
|
83
84
|
]}
|
|
84
85
|
>
|
|
85
86
|
{showReplyInChannel && (
|
|
86
|
-
<Check
|
|
87
|
+
<icons.Check
|
|
88
|
+
width={16}
|
|
89
|
+
height={16}
|
|
90
|
+
stroke={semantics.controlRadioCheckIcon}
|
|
91
|
+
{...check}
|
|
92
|
+
/>
|
|
87
93
|
)}
|
|
88
94
|
</View>
|
|
89
95
|
<Text style={[styles.text, text]}>{t('Also send to channel')}</Text>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { Pressable, StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
4
5
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
5
|
-
import { Stop } from '../../icons';
|
|
6
6
|
import { primitives } from '../../theme';
|
|
7
7
|
|
|
8
8
|
export type StopMessageStreamingButtonProps = {
|
|
@@ -13,6 +13,7 @@ export type StopMessageStreamingButtonProps = {
|
|
|
13
13
|
export const StopMessageStreamingButton = (props: StopMessageStreamingButtonProps) => {
|
|
14
14
|
const { onPress } = props;
|
|
15
15
|
|
|
16
|
+
const { icons } = useComponentsContext();
|
|
16
17
|
const {
|
|
17
18
|
theme: {
|
|
18
19
|
semantics,
|
|
@@ -28,7 +29,7 @@ export const StopMessageStreamingButton = (props: StopMessageStreamingButtonProp
|
|
|
28
29
|
style={[styles.stopStreamingButton, stopMessageStreamingButton]}
|
|
29
30
|
testID='more-options-button'
|
|
30
31
|
>
|
|
31
|
-
<Stop fill={semantics.accentPrimary} size={24} {...stopMessageStreamingIcon} />
|
|
32
|
+
<icons.Stop fill={semantics.accentPrimary} size={24} {...stopMessageStreamingIcon} />
|
|
32
33
|
</Pressable>
|
|
33
34
|
);
|
|
34
35
|
};
|
package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { Pressable, PressableProps, StyleSheet } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useA11yLabel } from '../../../../a11y/hooks/useA11yLabel';
|
|
6
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
7
|
-
import { NewClose } from '../../../../icons/xmark';
|
|
8
8
|
import { primitives } from '../../../../theme';
|
|
9
9
|
|
|
10
10
|
type AttachmentRemoveControlProps = PressableProps & {
|
|
@@ -18,6 +18,7 @@ export const AttachmentRemoveControl = ({
|
|
|
18
18
|
onPress,
|
|
19
19
|
...rest
|
|
20
20
|
}: AttachmentRemoveControlProps) => {
|
|
21
|
+
const { icons } = useComponentsContext();
|
|
21
22
|
const {
|
|
22
23
|
theme: {
|
|
23
24
|
semantics,
|
|
@@ -48,7 +49,7 @@ export const AttachmentRemoveControl = ({
|
|
|
48
49
|
testID='remove-upload-preview'
|
|
49
50
|
{...rest}
|
|
50
51
|
>
|
|
51
|
-
<NewClose
|
|
52
|
+
<icons.NewClose
|
|
52
53
|
height={16}
|
|
53
54
|
stroke={dismissIconColor || semantics.controlRemoveControlIcon}
|
|
54
55
|
{...dismissIcon}
|
|
@@ -7,8 +7,6 @@ import { AttachmentFileUploadProgressIndicator } from '../../../../components/At
|
|
|
7
7
|
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
8
8
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
9
9
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
10
|
-
import { ExclamationCircle } from '../../../../icons/exclamation-circle-fill';
|
|
11
|
-
import { Warning } from '../../../../icons/exclamation-triangle-fill';
|
|
12
10
|
import { primitives } from '../../../../theme';
|
|
13
11
|
import { RetryBadge } from '../../../ui/Badge/RetryBadge';
|
|
14
12
|
|
|
@@ -44,6 +42,7 @@ export type FileUploadRetryIndicatorProps = {
|
|
|
44
42
|
};
|
|
45
43
|
|
|
46
44
|
export const FileUploadRetryIndicator = ({ onPress }: FileUploadRetryIndicatorProps) => {
|
|
45
|
+
const { icons } = useComponentsContext();
|
|
47
46
|
const {
|
|
48
47
|
theme: {
|
|
49
48
|
semantics,
|
|
@@ -59,7 +58,7 @@ export const FileUploadRetryIndicator = ({ onPress }: FileUploadRetryIndicatorPr
|
|
|
59
58
|
testID='inline-retry-indicator'
|
|
60
59
|
>
|
|
61
60
|
<View style={[styles.networkErrorContainer, fileUploadRetryIndicator.networkErrorContainer]}>
|
|
62
|
-
<Warning
|
|
61
|
+
<icons.Warning
|
|
63
62
|
height={16}
|
|
64
63
|
fill={semantics.accentError}
|
|
65
64
|
testID='retry-upload-progress-indicator'
|
|
@@ -91,6 +90,7 @@ export type FileUploadNotSupportedIndicatorProps = {
|
|
|
91
90
|
export const FileUploadNotSupportedIndicator = ({
|
|
92
91
|
localMetadata,
|
|
93
92
|
}: FileUploadNotSupportedIndicatorProps) => {
|
|
93
|
+
const { icons } = useComponentsContext();
|
|
94
94
|
const styles = useFileUploadNotSupportedStyles();
|
|
95
95
|
const {
|
|
96
96
|
theme: {
|
|
@@ -108,7 +108,7 @@ export const FileUploadNotSupportedIndicator = ({
|
|
|
108
108
|
style={[styles.container, fileUploadNotSupportedIndicator.container]}
|
|
109
109
|
testID='inline-not-supported-indicator'
|
|
110
110
|
>
|
|
111
|
-
<ExclamationCircle height={16} width={16} fill={semantics.accentError} />
|
|
111
|
+
<icons.ExclamationCircle height={16} width={16} fill={semantics.accentError} />
|
|
112
112
|
<Text style={[styles.notSupportedText, fileUploadNotSupportedIndicator.notSupportedText]}>
|
|
113
113
|
{message}
|
|
114
114
|
</Text>
|
|
@@ -138,6 +138,7 @@ export const ImageUploadRetryIndicator = ({ onRetryHandler }: ImageUploadRetryIn
|
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
export const ImageUploadNotSupportedIndicator = () => {
|
|
141
|
+
const { icons } = useComponentsContext();
|
|
141
142
|
const styles = useImageUploadNotSupportedIndicatorStyles();
|
|
142
143
|
const {
|
|
143
144
|
theme: {
|
|
@@ -150,7 +151,7 @@ export const ImageUploadNotSupportedIndicator = () => {
|
|
|
150
151
|
style={[styles.container, imageUploadNotSupportedIndicator.container]}
|
|
151
152
|
testID='inline-not-supported-indicator'
|
|
152
153
|
>
|
|
153
|
-
<ExclamationCircle height={20} width={20} fill={semantics.accentError} />
|
|
154
|
+
<icons.ExclamationCircle height={20} width={20} fill={semantics.accentError} />
|
|
154
155
|
</View>
|
|
155
156
|
);
|
|
156
157
|
};
|
package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx
CHANGED
|
@@ -8,8 +8,8 @@ import { FileAttachmentUploadPreview } from './FileAttachmentUploadPreview';
|
|
|
8
8
|
import { ImageAttachmentUploadPreview } from './ImageAttachmentUploadPreview';
|
|
9
9
|
|
|
10
10
|
import { useMessageInputContext } from '../../../../contexts';
|
|
11
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
11
12
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
12
|
-
import { Recorder } from '../../../../icons';
|
|
13
13
|
import { primitives } from '../../../../theme';
|
|
14
14
|
import { UploadAttachmentPreviewProps } from '../../../../types/types';
|
|
15
15
|
import { formatMsToMinSec, getDurationLabelFromDuration } from '../../../../utils/utils';
|
|
@@ -63,6 +63,7 @@ export const VideoAttachmentMetadataPill = ({
|
|
|
63
63
|
format?: 'descriptive' | 'timer';
|
|
64
64
|
}) => {
|
|
65
65
|
const styles = useStyles();
|
|
66
|
+
const { icons } = useComponentsContext();
|
|
66
67
|
const {
|
|
67
68
|
theme: { semantics },
|
|
68
69
|
} = useTheme();
|
|
@@ -81,7 +82,7 @@ export const VideoAttachmentMetadataPill = ({
|
|
|
81
82
|
|
|
82
83
|
return durationLabel ? (
|
|
83
84
|
<View style={styles.durationContainer}>
|
|
84
|
-
<Recorder height={12} width={12} pathFill={semantics.textOnInverse} />
|
|
85
|
+
<icons.Recorder height={12} width={12} pathFill={semantics.textOnInverse} />
|
|
85
86
|
<Text style={styles.durationText}>{durationLabel}</Text>
|
|
86
87
|
</View>
|
|
87
88
|
) : null;
|