stream-chat-react-native-core 9.6.2-beta.5 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js +5 -4
- package/lib/commonjs/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileIcon.js +19 -25
- package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js +4 -2
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +5 -4
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +6 -4
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +3 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +7 -7
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +19 -17
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js +4 -2
- package/lib/commonjs/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +2 -2
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +4 -2
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +5 -4
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +4 -2
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +3 -3
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +17 -18
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js +6 -5
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +6 -6
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +4 -2
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +3 -2
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +6 -5
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/UIComponents/EmptySearchResult.js +4 -2
- package/lib/commonjs/components/UIComponents/EmptySearchResult.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SearchInput.js +7 -6
- package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SelectionCircle.js +4 -2
- package/lib/commonjs/components/UIComponents/SelectionCircle.js.map +1 -1
- package/lib/commonjs/components/UIComponents/Spinner.js +4 -2
- package/lib/commonjs/components/UIComponents/Spinner.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js +5 -3
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js +5 -3
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/ErrorBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/ErrorBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/GiphyBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/GiphyBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/ImgurBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/ImgurBadge.js.map +1 -1
- package/lib/commonjs/components/ui/Badge/RetryBadge.js +4 -2
- package/lib/commonjs/components/ui/Badge/RetryBadge.js.map +1 -1
- package/lib/commonjs/components/ui/GiphyChip.js +5 -4
- package/lib/commonjs/components/ui/GiphyChip.js.map +1 -1
- package/lib/commonjs/components/ui/Input/Input.js +5 -4
- package/lib/commonjs/components/ui/Input/Input.js.map +1 -1
- package/lib/commonjs/components/ui/VideoPlayIndicator.js +4 -2
- package/lib/commonjs/components/ui/VideoPlayIndicator.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +16 -5
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +179 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActionItems.js +22 -11
- package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +23 -11
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Audio/PlayPauseButton.js +5 -4
- package/lib/module/components/Attachment/Audio/PlayPauseButton.js.map +1 -1
- package/lib/module/components/Attachment/FileIcon.js +19 -25
- package/lib/module/components/Attachment/FileIcon.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js +4 -2
- package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js +5 -4
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +5 -4
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +3 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +11 -5
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +17 -7
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +11 -11
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +4 -2
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +4 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +4 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js +15 -11
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +5 -6
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +7 -10
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +4 -2
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +9 -9
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +7 -5
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +3 -3
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +4 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js +4 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +5 -4
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +5 -4
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +4 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -5
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/Indicators/EmptyStateIndicator.js +6 -4
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +4 -2
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js +2 -2
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -4
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +7 -7
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js +4 -2
- package/lib/module/components/Message/MessageItemView/MessageSwipeContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +4 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +4 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +19 -17
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -2
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js +4 -2
- package/lib/module/components/MessageInput/StopMessageStreamingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +11 -7
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +15 -11
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -2
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +3 -3
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +6 -6
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +5 -4
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +4 -2
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/LinkPreviewList.js +2 -2
- package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +4 -2
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +4 -2
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +4 -2
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +5 -4
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +4 -2
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +3 -3
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +17 -18
- package/lib/module/components/Notifications/Notification.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollHeader.js +6 -5
- package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +6 -6
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +4 -2
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +3 -2
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +6 -5
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +7 -5
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/UIComponents/EmptySearchResult.js +4 -2
- package/lib/module/components/UIComponents/EmptySearchResult.js.map +1 -1
- package/lib/module/components/UIComponents/SearchInput.js +7 -6
- package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/module/components/UIComponents/SelectionCircle.js +4 -2
- package/lib/module/components/UIComponents/SelectionCircle.js.map +1 -1
- package/lib/module/components/UIComponents/Spinner.js +4 -2
- package/lib/module/components/UIComponents/Spinner.js.map +1 -1
- package/lib/module/components/ui/Avatar/AvatarGroup.js +5 -3
- package/lib/module/components/ui/Avatar/AvatarGroup.js.map +1 -1
- package/lib/module/components/ui/Avatar/UserAvatar.js +5 -3
- package/lib/module/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/module/components/ui/Badge/ErrorBadge.js +4 -2
- package/lib/module/components/ui/Badge/ErrorBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/GiphyBadge.js +4 -2
- package/lib/module/components/ui/Badge/GiphyBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/ImgurBadge.js +4 -2
- package/lib/module/components/ui/Badge/ImgurBadge.js.map +1 -1
- package/lib/module/components/ui/Badge/RetryBadge.js +4 -2
- package/lib/module/components/ui/Badge/RetryBadge.js.map +1 -1
- package/lib/module/components/ui/GiphyChip.js +5 -4
- package/lib/module/components/ui/GiphyChip.js.map +1 -1
- package/lib/module/components/ui/Input/Input.js +5 -4
- package/lib/module/components/ui/Input/Input.js.map +1 -1
- package/lib/module/components/ui/VideoPlayIndicator.js +4 -2
- package/lib/module/components/ui/VideoPlayIndicator.js.map +1 -1
- package/lib/module/contexts/componentsContext/ComponentsContext.js +16 -5
- package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js +179 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActionItems.js +22 -11
- package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useChannelMemberActionItems.js +23 -11
- package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js +12 -17
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Audio/PlayPauseButton.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileIcon.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentTypePickerButton.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionRoleItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavigationSection.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsProfile.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditDetailsFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditImageSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersButton.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/modal/ModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewPinnedStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageSwipeContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListClustered.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListItem.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/StopMessageStreamingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/EditButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/SendButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/Notification.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/EmptySearchResult.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SelectionCircle.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/AvatarGroup.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/ErrorBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/GiphyBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/ImgurBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/Badge/RetryBadge.d.ts.map +1 -1
- package/lib/typescript/components/ui/GiphyChip.d.ts.map +1 -1
- package/lib/typescript/components/ui/Input/Input.d.ts.map +1 -1
- package/lib/typescript/components/ui/VideoPlayIndicator.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +16 -2
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +215 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts +5 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts +5 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewIcon.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Attachment/Audio/PlayPauseButton.tsx +4 -4
- package/src/components/Attachment/FileIcon.tsx +19 -27
- package/src/components/Attachment/Giphy/Giphy.tsx +3 -2
- package/src/components/Attachment/UrlPreview/URLPreview.tsx +3 -2
- package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +3 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +3 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +8 -5
- package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +13 -15
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +10 -11
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionRoleItem.tsx +3 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionUserGroupItem.tsx +13 -10
- package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx +5 -7
- package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +6 -10
- package/src/components/ChannelDetails/components/members/ChannelAddMembersButton.tsx +2 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +2 -3
- package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +3 -2
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +2 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +2 -3
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +2 -3
- package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +12 -13
- package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +16 -5
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +2 -2
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +3 -2
- package/src/components/ChannelPreview/ChannelPreviewPinnedStatus.tsx +3 -2
- package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +4 -5
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -2
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +5 -5
- package/src/components/Indicators/EmptyStateIndicator.tsx +5 -4
- package/src/components/Message/MessageItemView/Headers/MessagePinnedHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +3 -2
- package/src/components/Message/MessageItemView/MessageDeleted.tsx +2 -3
- package/src/components/Message/MessageItemView/MessageReplies.tsx +3 -5
- package/src/components/Message/MessageItemView/MessageStatus.tsx +16 -7
- package/src/components/Message/MessageItemView/MessageSwipeContent.tsx +3 -2
- package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +3 -3
- package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +3 -3
- package/src/components/Message/hooks/useMessageActions.tsx +18 -31
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +8 -2
- package/src/components/MessageInput/StopMessageStreamingButton.tsx +3 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +3 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.tsx +6 -5
- package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx +3 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +16 -11
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +3 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +2 -3
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +5 -6
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx +4 -4
- package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +3 -2
- package/src/components/MessageInput/components/LinkPreviewList.tsx +2 -3
- package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +3 -2
- package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +3 -2
- package/src/components/MessageList/ScrollToBottomButton.tsx +3 -2
- package/src/components/MessageList/UnreadMessagesNotification.tsx +4 -4
- package/src/components/MessageMenu/MessageReactionPicker.tsx +3 -2
- package/src/components/MessageMenu/MessageUserReactions.tsx +3 -4
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +2 -3
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +1 -1
- package/src/components/Notifications/Notification.tsx +18 -17
- package/src/components/Poll/components/CreatePollHeader.tsx +6 -5
- package/src/components/Poll/components/CreatePollOptions.tsx +5 -6
- package/src/components/Poll/components/MultipleVotesSettings.tsx +4 -3
- package/src/components/Poll/components/PollModalHeader.tsx +3 -2
- package/src/components/Poll/components/PollOption.tsx +2 -2
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +5 -5
- package/src/components/ThreadList/ThreadMessagePreviewDeliveryStatus.tsx +11 -5
- package/src/components/UIComponents/EmptySearchResult.tsx +3 -2
- package/src/components/UIComponents/SearchInput.tsx +6 -6
- package/src/components/UIComponents/SelectionCircle.tsx +3 -2
- package/src/components/UIComponents/Spinner.tsx +3 -2
- package/src/components/ui/Avatar/AvatarGroup.tsx +4 -3
- package/src/components/ui/Avatar/UserAvatar.tsx +8 -3
- package/src/components/ui/Badge/ErrorBadge.tsx +3 -2
- package/src/components/ui/Badge/GiphyBadge.tsx +3 -2
- package/src/components/ui/Badge/ImgurBadge.tsx +3 -2
- package/src/components/ui/Badge/RetryBadge.tsx +3 -2
- package/src/components/ui/GiphyChip.tsx +4 -4
- package/src/components/ui/Input/Input.tsx +4 -4
- package/src/components/ui/VideoPlayIndicator.tsx +3 -2
- package/src/contexts/componentsContext/ComponentsContext.tsx +39 -9
- package/src/contexts/componentsContext/defaultComponents.ts +193 -0
- package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +15 -0
- package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +9 -0
- package/src/hooks/actions/useChannelActionItems.tsx +31 -11
- package/src/hooks/actions/useChannelMemberActionItems.tsx +29 -6
- package/src/hooks/messagePreview/useMessagePreviewIcon.tsx +11 -17
- package/src/version.json +1 -1
- package/lib/commonjs/icons/arrow-left.js +0 -37
- package/lib/commonjs/icons/arrow-left.js.map +0 -1
- package/lib/module/icons/arrow-left.js +0 -37
- package/lib/module/icons/arrow-left.js.map +0 -1
- package/lib/typescript/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/icons/arrow-left.d.ts.map +0 -1
- package/src/icons/arrow-left.tsx +0 -23
|
@@ -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;
|
|
@@ -6,6 +6,7 @@ import Animated, { type AnimatedStyle } from 'react-native-reanimated';
|
|
|
6
6
|
import dayjs from 'dayjs';
|
|
7
7
|
|
|
8
8
|
import { Button } from '../../../../components/ui';
|
|
9
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
9
10
|
import {
|
|
10
11
|
MessageInputContextValue,
|
|
11
12
|
useMessageInputContext,
|
|
@@ -14,12 +15,7 @@ import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
|
14
15
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
15
16
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
16
17
|
|
|
17
|
-
import { Tick } from '../../../../icons/checkmark';
|
|
18
|
-
import { ChevronLeft } from '../../../../icons/chevron-left';
|
|
19
|
-
import { Delete } from '../../../../icons/delete';
|
|
20
|
-
import { Stop } from '../../../../icons/stop-fill';
|
|
21
18
|
import { IconProps } from '../../../../icons/utils/base';
|
|
22
|
-
import { Mic } from '../../../../icons/voice';
|
|
23
19
|
import { NativeHandlers } from '../../../../native';
|
|
24
20
|
import { AudioRecorderManagerState } from '../../../../state-store/audio-recorder-manager';
|
|
25
21
|
import { primitives } from '../../../../theme';
|
|
@@ -45,6 +41,7 @@ const StopRecording = ({
|
|
|
45
41
|
}: {
|
|
46
42
|
stopVoiceRecordingHandler: () => Promise<void>;
|
|
47
43
|
}) => {
|
|
44
|
+
const { icons } = useComponentsContext();
|
|
48
45
|
const {
|
|
49
46
|
theme: { semantics },
|
|
50
47
|
} = useTheme();
|
|
@@ -54,8 +51,8 @@ const StopRecording = ({
|
|
|
54
51
|
};
|
|
55
52
|
|
|
56
53
|
const StopIcon = useCallback(
|
|
57
|
-
(props: IconProps) => <Stop {...props} fill={semantics.buttonDestructiveBg} />,
|
|
58
|
-
[semantics.buttonDestructiveBg],
|
|
54
|
+
(props: IconProps) => <icons.Stop {...props} fill={semantics.buttonDestructiveBg} />,
|
|
55
|
+
[icons, semantics.buttonDestructiveBg],
|
|
59
56
|
);
|
|
60
57
|
|
|
61
58
|
return (
|
|
@@ -78,6 +75,7 @@ const UploadRecording = ({
|
|
|
78
75
|
audioRecordingSendOnComplete: boolean;
|
|
79
76
|
uploadVoiceRecordingHandler: (sendOnComplete: boolean) => Promise<void>;
|
|
80
77
|
}) => {
|
|
78
|
+
const { icons } = useComponentsContext();
|
|
81
79
|
const onUploadVoiceRecording = () => {
|
|
82
80
|
NativeHandlers.triggerHaptic('impactMedium');
|
|
83
81
|
uploadVoiceRecordingHandler(audioRecordingSendOnComplete);
|
|
@@ -89,7 +87,7 @@ const UploadRecording = ({
|
|
|
89
87
|
variant='primary'
|
|
90
88
|
type='solid'
|
|
91
89
|
onPress={onUploadVoiceRecording}
|
|
92
|
-
LeadingIcon={Tick}
|
|
90
|
+
LeadingIcon={icons.Tick}
|
|
93
91
|
iconOnly
|
|
94
92
|
size='sm'
|
|
95
93
|
/>
|
|
@@ -101,6 +99,7 @@ const DeleteRecording = ({
|
|
|
101
99
|
}: {
|
|
102
100
|
deleteVoiceRecordingHandler: () => Promise<void>;
|
|
103
101
|
}) => {
|
|
102
|
+
const { icons } = useComponentsContext();
|
|
104
103
|
const { addNotification } = useNotificationApi();
|
|
105
104
|
const { t } = useTranslationContext();
|
|
106
105
|
const onDeleteVoiceRecording = async () => {
|
|
@@ -120,7 +119,7 @@ const DeleteRecording = ({
|
|
|
120
119
|
size='sm'
|
|
121
120
|
iconOnly
|
|
122
121
|
onPress={onDeleteVoiceRecording}
|
|
123
|
-
LeadingIcon={Delete}
|
|
122
|
+
LeadingIcon={icons.Delete}
|
|
124
123
|
/>
|
|
125
124
|
);
|
|
126
125
|
};
|
|
@@ -136,6 +135,7 @@ const AudioRecorderWithContext = (props: AudioRecorderPropsWithContext) => {
|
|
|
136
135
|
status,
|
|
137
136
|
duration,
|
|
138
137
|
} = props;
|
|
138
|
+
const { icons } = useComponentsContext();
|
|
139
139
|
const { t } = useTranslationContext();
|
|
140
140
|
|
|
141
141
|
const recordingStopped = status === 'stopped';
|
|
@@ -176,7 +176,7 @@ const AudioRecorderWithContext = (props: AudioRecorderPropsWithContext) => {
|
|
|
176
176
|
return (
|
|
177
177
|
<>
|
|
178
178
|
<View style={[styles.micContainer, micContainer]} testID='recording-active-container'>
|
|
179
|
-
<Mic height={20} width={20} stroke={semantics.accentError} {...micIcon} />
|
|
179
|
+
<icons.Mic height={20} width={20} stroke={semantics.accentError} {...micIcon} />
|
|
180
180
|
<Text style={[styles.durationLabel]}>
|
|
181
181
|
{duration ? dayjs.duration(duration).format('mm:ss') : '00:00'}
|
|
182
182
|
</Text>
|
|
@@ -187,7 +187,12 @@ const AudioRecorderWithContext = (props: AudioRecorderPropsWithContext) => {
|
|
|
187
187
|
<Text style={[styles.slideToCancel, { color: semantics.textPrimary }]}>
|
|
188
188
|
{t('Slide to Cancel')}
|
|
189
189
|
</Text>
|
|
190
|
-
<ChevronLeft
|
|
190
|
+
<icons.ChevronLeft
|
|
191
|
+
stroke={semantics.textTertiary}
|
|
192
|
+
height={20}
|
|
193
|
+
width={20}
|
|
194
|
+
{...arrowLeftIcon}
|
|
195
|
+
/>
|
|
191
196
|
</Animated.View>
|
|
192
197
|
</>
|
|
193
198
|
);
|
|
@@ -12,6 +12,7 @@ import Animated, {
|
|
|
12
12
|
|
|
13
13
|
import { useA11yLabel } from '../../../../a11y/hooks/useA11yLabel';
|
|
14
14
|
import { useActiveAudioPlayer } from '../../../../contexts/audioPlayerContext/AudioPlayerContext';
|
|
15
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
15
16
|
import {
|
|
16
17
|
MessageInputContextValue,
|
|
17
18
|
useMessageInputContext,
|
|
@@ -20,7 +21,6 @@ import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
|
20
21
|
import { useTranslationContext } from '../../../../contexts/translationContext/TranslationContext';
|
|
21
22
|
import { useStableCallback } from '../../../../hooks';
|
|
22
23
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
23
|
-
import { Mic } from '../../../../icons/voice';
|
|
24
24
|
import { NativeHandlers } from '../../../../native';
|
|
25
25
|
import { AudioRecorderManagerState } from '../../../../state-store/audio-recorder-manager';
|
|
26
26
|
import { primitives } from '../../../../theme';
|
|
@@ -79,6 +79,7 @@ export const AudioRecordingButtonWithContext = (props: AudioRecordingButtonProps
|
|
|
79
79
|
status,
|
|
80
80
|
recording,
|
|
81
81
|
} = props;
|
|
82
|
+
const { icons } = useComponentsContext();
|
|
82
83
|
const { micPositionX, micPositionY } = useMicPositionContext();
|
|
83
84
|
const activeAudioPlayer = useActiveAudioPlayer();
|
|
84
85
|
const scale = useSharedValue(1);
|
|
@@ -260,7 +261,7 @@ export const AudioRecordingButtonWithContext = (props: AudioRecordingButtonProps
|
|
|
260
261
|
accessible
|
|
261
262
|
style={[styles.container, animatedStyle, micButtonContainer]}
|
|
262
263
|
>
|
|
263
|
-
<Mic height={20} width={20} strokeWidth={1.5} stroke={buttonStyles.foregroundColor} />
|
|
264
|
+
<icons.Mic height={20} width={20} strokeWidth={1.5} stroke={buttonStyles.foregroundColor} />
|
|
264
265
|
</Animated.View>
|
|
265
266
|
</GestureDetector>
|
|
266
267
|
);
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
} from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
11
11
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
12
12
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
13
|
-
import { Mic } from '../../../../icons/voice';
|
|
14
13
|
import { AudioRecorderManagerState } from '../../../../state-store/audio-recorder-manager';
|
|
15
14
|
import { primitives } from '../../../../theme';
|
|
16
15
|
|
|
@@ -27,7 +26,7 @@ type AudioRecordingInProgressPropsWithContext = Pick<
|
|
|
27
26
|
|
|
28
27
|
const AudioRecordingInProgressWithContext = (props: AudioRecordingInProgressPropsWithContext) => {
|
|
29
28
|
const { maxDataPointsDrawn = 60, duration, waveformData } = props;
|
|
30
|
-
const { AudioRecordingWaveform } = useComponentsContext();
|
|
29
|
+
const { AudioRecordingWaveform, icons } = useComponentsContext();
|
|
31
30
|
|
|
32
31
|
const styles = useStyles();
|
|
33
32
|
|
|
@@ -44,7 +43,7 @@ const AudioRecordingInProgressWithContext = (props: AudioRecordingInProgressProp
|
|
|
44
43
|
<View style={[styles.container, container]}>
|
|
45
44
|
{/* `durationMillis` is for Expo apps, `currentPosition` is for Native CLI apps. */}
|
|
46
45
|
<View style={styles.micContainer}>
|
|
47
|
-
<Mic height={20} width={20} stroke={semantics.accentError} />
|
|
46
|
+
<icons.Mic height={20} width={20} stroke={semantics.accentError} />
|
|
48
47
|
<Text style={[styles.durationText, durationText]}>
|
|
49
48
|
{duration ? dayjs.duration(duration).format('mm:ss') : null}
|
|
50
49
|
</Text>
|
package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx
CHANGED
|
@@ -3,10 +3,8 @@ import { StyleProp, StyleSheet, ViewStyle } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import Animated, { type AnimatedStyle, LinearTransition } from 'react-native-reanimated';
|
|
5
5
|
|
|
6
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
7
|
-
import { ChevronUp } from '../../../../icons/chevron-up';
|
|
8
|
-
import { Lock } from '../../../../icons/lock';
|
|
9
|
-
import { Unlock } from '../../../../icons/unlock';
|
|
10
8
|
import { AudioRecorderManagerState } from '../../../../state-store/audio-recorder-manager';
|
|
11
9
|
import { primitives } from '../../../../theme';
|
|
12
10
|
|
|
@@ -31,6 +29,7 @@ export const AudioRecordingLockIndicator = ({
|
|
|
31
29
|
}: AudioRecordingLockIndicatorProps) => {
|
|
32
30
|
const [visible, setVisible] = useState(true);
|
|
33
31
|
const timeoutRef = useRef<NodeJS.Timeout | undefined>(undefined);
|
|
32
|
+
const { icons } = useComponentsContext();
|
|
34
33
|
const styles = useStyles();
|
|
35
34
|
|
|
36
35
|
useEffect(() => {
|
|
@@ -64,12 +63,12 @@ export const AudioRecordingLockIndicator = ({
|
|
|
64
63
|
style={[styles.container, style, { bottom: messageInputHeight }, container]}
|
|
65
64
|
>
|
|
66
65
|
{micLocked ? (
|
|
67
|
-
<Lock stroke={semantics.accentPrimary} height={20} width={20} />
|
|
66
|
+
<icons.Lock stroke={semantics.accentPrimary} height={20} width={20} />
|
|
68
67
|
) : (
|
|
69
|
-
<Unlock stroke={semantics.textPrimary} height={20} width={20} {...lockIcon} />
|
|
68
|
+
<icons.Unlock stroke={semantics.textPrimary} height={20} width={20} {...lockIcon} />
|
|
70
69
|
)}
|
|
71
70
|
{!micLocked && (
|
|
72
|
-
<ChevronUp stroke={semantics.textPrimary} height={20} width={20} {...arrowUpIcon} />
|
|
71
|
+
<icons.ChevronUp stroke={semantics.textPrimary} height={20} width={20} {...arrowUpIcon} />
|
|
73
72
|
)}
|
|
74
73
|
</Animated.View>
|
|
75
74
|
);
|
|
@@ -3,14 +3,13 @@ import { Pressable, StyleSheet, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
|
|
6
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useMessageInputContext } from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
7
8
|
import { useTheme } from '../../../../contexts/themeContext/ThemeContext';
|
|
8
9
|
import { useStableCallback } from '../../../../hooks';
|
|
9
10
|
import { useAudioPlayer } from '../../../../hooks/useAudioPlayer';
|
|
10
11
|
import { useStateStore } from '../../../../hooks/useStateStore';
|
|
11
12
|
|
|
12
|
-
import { Pause } from '../../../../icons/pause-fill';
|
|
13
|
-
import { Play } from '../../../../icons/play-fill';
|
|
14
13
|
import { AudioPlayerState } from '../../../../state-store/audio-player';
|
|
15
14
|
import { AudioRecorderManagerState } from '../../../../state-store/audio-recorder-manager';
|
|
16
15
|
import { primitives } from '../../../../theme';
|
|
@@ -48,6 +47,7 @@ const audioRecorderSelector = (state: AudioRecorderManagerState) => ({
|
|
|
48
47
|
*/
|
|
49
48
|
export const AudioRecordingPreview = () => {
|
|
50
49
|
const { audioRecorderManager } = useMessageInputContext();
|
|
50
|
+
const { icons } = useComponentsContext();
|
|
51
51
|
const styles = useStyles();
|
|
52
52
|
|
|
53
53
|
const {
|
|
@@ -122,9 +122,9 @@ export const AudioRecordingPreview = () => {
|
|
|
122
122
|
<View style={[styles.infoContainer, infoContainer]}>
|
|
123
123
|
<Pressable onPress={handlePlayPause} hitSlop={15}>
|
|
124
124
|
{!isPlaying ? (
|
|
125
|
-
<Play fill={semantics.textPrimary} height={20} width={20} {...playIcon} />
|
|
125
|
+
<icons.Play fill={semantics.textPrimary} height={20} width={20} {...playIcon} />
|
|
126
126
|
) : (
|
|
127
|
-
<Pause fill={semantics.textPrimary} height={20} width={20} {...pauseIcon} />
|
|
127
|
+
<icons.Pause fill={semantics.textPrimary} height={20} width={20} {...pauseIcon} />
|
|
128
128
|
)}
|
|
129
129
|
</Pressable>
|
|
130
130
|
{/* `durationMillis` is for Expo apps, `currentPosition` is for Native CLI apps. */}
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
AttachmentPickerContextValue,
|
|
6
6
|
useAttachmentPickerContext,
|
|
7
7
|
} from '../../../../contexts/attachmentPickerContext/AttachmentPickerContext';
|
|
8
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
8
9
|
import {
|
|
9
10
|
MessageInputContextValue,
|
|
10
11
|
useMessageInputContext,
|
|
11
12
|
} from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
12
13
|
import { useStableCallback } from '../../../../hooks';
|
|
13
14
|
import { useAttachmentPickerState } from '../../../../hooks/useAttachmentPickerState';
|
|
14
|
-
import { Plus } from '../../../../icons/plus';
|
|
15
15
|
import { Button } from '../../../ui/';
|
|
16
16
|
|
|
17
17
|
type AttachButtonPropsWithContext = Pick<MessageInputContextValue, 'handleAttachButtonPress'> &
|
|
@@ -23,6 +23,7 @@ type AttachButtonPropsWithContext = Pick<MessageInputContextValue, 'handleAttach
|
|
|
23
23
|
} & { toggleAttachmentPicker: () => void };
|
|
24
24
|
|
|
25
25
|
const AttachButtonWithContext = (props: AttachButtonPropsWithContext) => {
|
|
26
|
+
const { icons } = useComponentsContext();
|
|
26
27
|
const {
|
|
27
28
|
disabled = false,
|
|
28
29
|
handleAttachButtonPress,
|
|
@@ -55,7 +56,7 @@ const AttachButtonWithContext = (props: AttachButtonPropsWithContext) => {
|
|
|
55
56
|
type='outline'
|
|
56
57
|
size='lg'
|
|
57
58
|
iconOnly
|
|
58
|
-
LeadingIcon={Plus}
|
|
59
|
+
LeadingIcon={icons.Plus}
|
|
59
60
|
onPress={onPressHandler}
|
|
60
61
|
disabled={disabled}
|
|
61
62
|
testID='attach-button'
|
|
@@ -11,7 +11,6 @@ import { AttachmentRemoveControl } from './AttachmentPreview/AttachmentRemoveCon
|
|
|
11
11
|
|
|
12
12
|
import { useMessageComposer, useTheme } from '../../../contexts';
|
|
13
13
|
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
14
|
-
import { Link } from '../../../icons/link';
|
|
15
14
|
import { components, primitives } from '../../../theme';
|
|
16
15
|
import { useLinkPreviews } from '../hooks/useLinkPreviews';
|
|
17
16
|
|
|
@@ -39,7 +38,7 @@ type LinkPreviewProps = {
|
|
|
39
38
|
|
|
40
39
|
export const LinkPreviewCard = ({ linkPreview }: LinkPreviewProps) => {
|
|
41
40
|
const styles = useStyles();
|
|
42
|
-
const { ImageComponent } = useComponentsContext();
|
|
41
|
+
const { icons, ImageComponent } = useComponentsContext();
|
|
43
42
|
const { linkPreviewsManager } = useMessageComposer();
|
|
44
43
|
const { image_url, thumb_url, title, text, og_scrape_url } = linkPreview;
|
|
45
44
|
|
|
@@ -74,7 +73,7 @@ export const LinkPreviewCard = ({ linkPreview }: LinkPreviewProps) => {
|
|
|
74
73
|
) : null}
|
|
75
74
|
{og_scrape_url ? (
|
|
76
75
|
<View style={styles.linkContainer}>
|
|
77
|
-
<Link
|
|
76
|
+
<icons.Link
|
|
78
77
|
height={styles.text.fontSize}
|
|
79
78
|
stroke={styles.text.color}
|
|
80
79
|
width={styles.text.fontSize}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
|
|
3
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
3
4
|
import {
|
|
4
5
|
MessageInputContextValue,
|
|
5
6
|
useMessageInputContext,
|
|
6
7
|
} from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
7
|
-
import { Tick } from '../../../../icons/checkmark';
|
|
8
8
|
import { Button } from '../../../ui';
|
|
9
9
|
|
|
10
10
|
export type EditButtonProps = Partial<Pick<MessageInputContextValue, 'sendMessage'>> & {
|
|
@@ -14,6 +14,7 @@ export type EditButtonProps = Partial<Pick<MessageInputContextValue, 'sendMessag
|
|
|
14
14
|
|
|
15
15
|
export const EditButton = (props: EditButtonProps) => {
|
|
16
16
|
const { disabled = false, sendMessage: propsSendMessage } = props;
|
|
17
|
+
const { icons } = useComponentsContext();
|
|
17
18
|
const { sendMessage: sendMessageFromContext } = useMessageInputContext();
|
|
18
19
|
const sendMessage = propsSendMessage || sendMessageFromContext;
|
|
19
20
|
|
|
@@ -29,7 +30,7 @@ export const EditButton = (props: EditButtonProps) => {
|
|
|
29
30
|
accessibilityLabelKey='a11y/Save edited message'
|
|
30
31
|
variant='primary'
|
|
31
32
|
type='solid'
|
|
32
|
-
LeadingIcon={Tick}
|
|
33
|
+
LeadingIcon={icons.Tick}
|
|
33
34
|
iconOnly
|
|
34
35
|
onPress={onPressHandler}
|
|
35
36
|
size='sm'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
|
|
3
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
3
4
|
import {
|
|
4
5
|
MessageInputContextValue,
|
|
5
6
|
useMessageInputContext,
|
|
6
7
|
} from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
7
|
-
import { SendRight } from '../../../../icons/send';
|
|
8
8
|
import { Button } from '../../../ui';
|
|
9
9
|
|
|
10
10
|
export type SendButtonProps = Partial<Pick<MessageInputContextValue, 'sendMessage'>> & {
|
|
@@ -14,6 +14,7 @@ export type SendButtonProps = Partial<Pick<MessageInputContextValue, 'sendMessag
|
|
|
14
14
|
|
|
15
15
|
export const SendButton = (props: SendButtonProps) => {
|
|
16
16
|
const { disabled = false, sendMessage: propsSendMessage } = props;
|
|
17
|
+
const { icons } = useComponentsContext();
|
|
17
18
|
const { sendMessage: sendMessageFromContext } = useMessageInputContext();
|
|
18
19
|
const sendMessage = propsSendMessage || sendMessageFromContext;
|
|
19
20
|
|
|
@@ -30,7 +31,7 @@ export const SendButton = (props: SendButtonProps) => {
|
|
|
30
31
|
variant='primary'
|
|
31
32
|
type='solid'
|
|
32
33
|
disabled={disabled}
|
|
33
|
-
LeadingIcon={SendRight}
|
|
34
|
+
LeadingIcon={icons.SendRight}
|
|
34
35
|
onPress={onPressHandler}
|
|
35
36
|
size='sm'
|
|
36
37
|
testID='send-button'
|
|
@@ -3,8 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
4
|
import Animated, { ZoomIn, ZoomOut } from 'react-native-reanimated';
|
|
5
5
|
|
|
6
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
6
7
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
7
|
-
import { Down } from '../../icons/arrow-up';
|
|
8
8
|
import { primitives } from '../../theme';
|
|
9
9
|
import { BadgeNotification } from '../ui';
|
|
10
10
|
import { Button } from '../ui/Button';
|
|
@@ -26,6 +26,7 @@ export const ScrollToBottomButton = (props: ScrollToBottomButtonProps) => {
|
|
|
26
26
|
const {
|
|
27
27
|
theme: { semantics },
|
|
28
28
|
} = useTheme();
|
|
29
|
+
const { icons } = useComponentsContext();
|
|
29
30
|
const accessibilityLabelParams = React.useMemo(
|
|
30
31
|
() => (unreadCount ? { count: unreadCount } : undefined),
|
|
31
32
|
[unreadCount],
|
|
@@ -58,7 +59,7 @@ export const ScrollToBottomButton = (props: ScrollToBottomButtonProps) => {
|
|
|
58
59
|
accessibilityLabelParams={accessibilityLabelParams}
|
|
59
60
|
variant='secondary'
|
|
60
61
|
type='outline'
|
|
61
|
-
LeadingIcon={Down}
|
|
62
|
+
LeadingIcon={icons.Down}
|
|
62
63
|
onPress={onPress}
|
|
63
64
|
size='md'
|
|
64
65
|
testID='scroll-to-bottom-button'
|
|
@@ -5,11 +5,10 @@ import {
|
|
|
5
5
|
ChannelContextValue,
|
|
6
6
|
useChannelContext,
|
|
7
7
|
} from '../../contexts/channelContext/ChannelContext';
|
|
8
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
8
9
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
9
10
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
10
11
|
import { useStateStore } from '../../hooks/useStateStore';
|
|
11
|
-
import { ArrowUp } from '../../icons/arrow-up';
|
|
12
|
-
import { NewClose } from '../../icons/xmark';
|
|
13
12
|
import { ChannelUnreadStateStoreType } from '../../state-store/channel-unread-state';
|
|
14
13
|
import { primitives } from '../../theme';
|
|
15
14
|
import { Button } from '../ui';
|
|
@@ -39,6 +38,7 @@ const channelUnreadStateSelector = (state: ChannelUnreadStateStoreType) => ({
|
|
|
39
38
|
export const UnreadMessagesNotification = (props: UnreadMessagesNotificationProps) => {
|
|
40
39
|
const { onCloseHandler, onPressHandler, unreadCount, channelUnreadStateStore } = props;
|
|
41
40
|
const { t } = useTranslationContext();
|
|
41
|
+
const { icons } = useComponentsContext();
|
|
42
42
|
const { loadChannelAtFirstUnreadMessage, markRead, setChannelUnreadState, setTargetedMessage } =
|
|
43
43
|
useChannelContext();
|
|
44
44
|
const { unread_messages } = useStateStore(
|
|
@@ -76,7 +76,7 @@ export const UnreadMessagesNotification = (props: UnreadMessagesNotificationProp
|
|
|
76
76
|
<Button
|
|
77
77
|
variant='secondary'
|
|
78
78
|
type='ghost'
|
|
79
|
-
LeadingIcon={ArrowUp}
|
|
79
|
+
LeadingIcon={icons.ArrowUp}
|
|
80
80
|
label={count ? t('{{count}} unread', { count }) : t('Unread Messages')}
|
|
81
81
|
onPress={handleOnPress}
|
|
82
82
|
size='md'
|
|
@@ -88,7 +88,7 @@ export const UnreadMessagesNotification = (props: UnreadMessagesNotificationProp
|
|
|
88
88
|
variant='secondary'
|
|
89
89
|
type='ghost'
|
|
90
90
|
iconOnly
|
|
91
|
-
LeadingIcon={NewClose}
|
|
91
|
+
LeadingIcon={icons.NewClose}
|
|
92
92
|
onPress={handleClose}
|
|
93
93
|
size='md'
|
|
94
94
|
/>
|
|
@@ -6,6 +6,7 @@ import { EmojiPickerList } from './EmojiPickerList';
|
|
|
6
6
|
import { useMessageOwnReactions } from './hooks/useMessageOwnReactions';
|
|
7
7
|
import { ReactionButton } from './ReactionButton';
|
|
8
8
|
|
|
9
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
9
10
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
10
11
|
import {
|
|
11
12
|
MessagesContextValue,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
import { useOwnCapabilitiesContext } from '../../contexts/ownCapabilitiesContext/OwnCapabilitiesContext';
|
|
16
17
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
17
18
|
import { useStableCallback } from '../../hooks';
|
|
18
|
-
import { Plus } from '../../icons/plus';
|
|
19
19
|
import { NativeHandlers } from '../../native';
|
|
20
20
|
import { scheduleActionOnClose } from '../../state-store';
|
|
21
21
|
|
|
@@ -90,6 +90,7 @@ export const EmojiViewerButton = ({
|
|
|
90
90
|
}) => {
|
|
91
91
|
const styles = useStyles();
|
|
92
92
|
const [emojiViewerOpened, setEmojiViewerOpened] = React.useState<boolean>(false);
|
|
93
|
+
const { icons } = useComponentsContext();
|
|
93
94
|
|
|
94
95
|
const {
|
|
95
96
|
theme: {
|
|
@@ -120,7 +121,7 @@ export const EmojiViewerButton = ({
|
|
|
120
121
|
type='outline'
|
|
121
122
|
size='sm'
|
|
122
123
|
iconOnly
|
|
123
|
-
LeadingIcon={Plus}
|
|
124
|
+
LeadingIcon={icons.Plus}
|
|
124
125
|
onPress={onOpenEmojiViewer}
|
|
125
126
|
testID='more-reactions-button'
|
|
126
127
|
/>
|
|
@@ -24,7 +24,6 @@ import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
|
24
24
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
25
25
|
import { useStableCallback } from '../../hooks';
|
|
26
26
|
import { IconProps } from '../../icons';
|
|
27
|
-
import { MoreEmojis } from '../../icons/emoji-add-1';
|
|
28
27
|
import { primitives } from '../../theme';
|
|
29
28
|
import { Reaction } from '../../types/types';
|
|
30
29
|
import { ReactionData } from '../../utils/utils';
|
|
@@ -104,7 +103,7 @@ export const MessageUserReactions = (props: MessageUserReactionsProps) => {
|
|
|
104
103
|
);
|
|
105
104
|
const [selectedReaction, setSelectedReaction] = useState<string | undefined>(undefined);
|
|
106
105
|
const { supportedReactions: contextSupportedReactions } = useMessagesContext();
|
|
107
|
-
const { MessageUserReactionsItem } = useComponentsContext();
|
|
106
|
+
const { icons, MessageUserReactionsItem } = useComponentsContext();
|
|
108
107
|
const { handleReaction } = useMessageContext();
|
|
109
108
|
const supportedReactions = propSupportedReactions ?? contextSupportedReactions;
|
|
110
109
|
|
|
@@ -226,10 +225,10 @@ export const MessageUserReactions = (props: MessageUserReactionsProps) => {
|
|
|
226
225
|
const MoreEmojisIcon = useCallback(
|
|
227
226
|
(props: IconProps) => (
|
|
228
227
|
<View style={styles.showMoreReactionsButton}>
|
|
229
|
-
<MoreEmojis {...props} />
|
|
228
|
+
<icons.MoreEmojis {...props} />
|
|
230
229
|
</View>
|
|
231
230
|
),
|
|
232
|
-
[styles.showMoreReactionsButton],
|
|
231
|
+
[icons, styles.showMoreReactionsButton],
|
|
233
232
|
);
|
|
234
233
|
|
|
235
234
|
const ShowMoreReactionsButton = useCallback(
|
|
@@ -8,7 +8,6 @@ import { useComponentsContext } from '../../contexts/componentsContext/Component
|
|
|
8
8
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
9
9
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
10
10
|
import { useStableCallback } from '../../hooks';
|
|
11
|
-
import { Unknown } from '../../icons';
|
|
12
11
|
|
|
13
12
|
import { primitives } from '../../theme';
|
|
14
13
|
import type { Reaction } from '../../types/types';
|
|
@@ -29,7 +28,7 @@ export const MessageUserReactionsItem = ({
|
|
|
29
28
|
reaction,
|
|
30
29
|
supportedReactions,
|
|
31
30
|
}: MessageUserReactionsItemProps) => {
|
|
32
|
-
const { MessageUserReactionsAvatar } = useComponentsContext();
|
|
31
|
+
const { icons, MessageUserReactionsAvatar } = useComponentsContext();
|
|
33
32
|
const { id, name, type } = reaction;
|
|
34
33
|
const {
|
|
35
34
|
theme: {
|
|
@@ -52,7 +51,7 @@ export const MessageUserReactionsItem = ({
|
|
|
52
51
|
}
|
|
53
52
|
});
|
|
54
53
|
|
|
55
|
-
const Icon = supportedReactions.find((reaction) => reaction.type === type)?.Icon ?? Unknown;
|
|
54
|
+
const Icon = supportedReactions.find((reaction) => reaction.type === type)?.Icon ?? icons.Unknown;
|
|
56
55
|
|
|
57
56
|
return (
|
|
58
57
|
<Pressable
|
|
@@ -11,7 +11,7 @@ import { defaultTheme } from '../../../contexts/themeContext/utils/theme';
|
|
|
11
11
|
import { getTestClientWithUser } from '../../../mock-builders/mock';
|
|
12
12
|
import { MessageUserReactionsItem } from '../MessageUserReactionsItem';
|
|
13
13
|
|
|
14
|
-
jest.mock('../../../icons', () => ({
|
|
14
|
+
jest.mock('../../../icons/Unknown', () => ({
|
|
15
15
|
Unknown: () => {
|
|
16
16
|
const { Text } = require('react-native');
|
|
17
17
|
return <Text testID='unknown-icon'>unknown</Text>;
|