@sendbird/uikit-react 3.3.3 → 3.3.4
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/App.js +35 -35
- package/CHANGELOG.md +7 -0
- package/Channel/components/ChannelHeader.js +18 -18
- package/Channel/components/ChannelUI.js +27 -26
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +14 -14
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +24 -22
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +16 -16
- package/Channel/components/MessageList.js +25 -24
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +16 -16
- package/Channel/components/SuggestedMentionList.js +16 -16
- package/Channel/components/TypingIndicator.js +14 -14
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +13 -13
- package/Channel.js +27 -26
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +15 -15
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListUI.js +29 -29
- package/ChannelList/components/ChannelPreview.js +32 -100
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +29 -29
- package/{ChannelListProvider-6522df17.js → ChannelListProvider-29e939e1.js} +8 -8
- package/{ChannelListProvider-6522df17.js.map → ChannelListProvider-29e939e1.js.map} +1 -1
- package/{ChannelProvider-014846c8.js → ChannelProvider-0f023800.js} +9 -9
- package/{ChannelProvider-014846c8.js.map → ChannelProvider-0f023800.js.map} +1 -1
- package/ChannelSettings/components/ChannelProfile.js +12 -12
- package/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/ChannelSettings/components/EditDetailsModal.js +12 -12
- package/ChannelSettings/components/LeaveChannel.js +12 -12
- package/ChannelSettings/components/ModerationPanel.js +15 -15
- package/ChannelSettings/components/UserListItem.js +11 -11
- package/ChannelSettings/components/UserPanel.js +14 -14
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +18 -18
- package/CreateChannel/components/CreateChannelUI.js +14 -14
- package/CreateChannel/components/InviteUsers.js +14 -14
- package/CreateChannel/components/SelectChannelType.js +11 -11
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +14 -14
- package/{CreateChannelProvider-54ec0feb.js → CreateChannelProvider-1bad158a.js} +1 -1
- package/{CreateChannelProvider-54ec0feb.js.map → CreateChannelProvider-1bad158a.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +10 -10
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +10 -10
- package/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/EditUserProfile.js +13 -13
- package/{LocalizationContext-aa7dfc3f.js → LocalizationContext-0a81b301.js} +3 -3
- package/{LocalizationContext-aa7dfc3f.js.map → LocalizationContext-0a81b301.js.map} +1 -1
- package/{MediaQueryContext-038f7f88.js → MediaQueryContext-dbf82efb.js} +1 -1
- package/{MediaQueryContext-038f7f88.js.map → MediaQueryContext-dbf82efb.js.map} +1 -1
- package/{MemberList-3e4790c4.js → MemberList-227fbdb3.js} +5 -5
- package/{MemberList-3e4790c4.js.map → MemberList-227fbdb3.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +2 -2
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +13 -13
- package/OpenChannel/components/OpenChannelInput.js +15 -15
- package/OpenChannel/components/OpenChannelMessage.js +22 -22
- package/OpenChannel/components/OpenChannelMessageList.js +24 -24
- package/OpenChannel/components/OpenChannelUI.js +24 -24
- package/OpenChannel/context.js +9 -9
- package/OpenChannel.js +24 -24
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/OpenChannelList/context.js +4 -4
- package/OpenChannelList.js +13 -13
- package/{OpenChannelListProvider-e4713e4f.js → OpenChannelListProvider-e18c45c3.js} +3 -3
- package/{OpenChannelListProvider-e4713e4f.js.map → OpenChannelListProvider-e18c45c3.js.map} +1 -1
- package/{OpenChannelProvider-820eed7f.js → OpenChannelProvider-0ce9c650.js} +7 -7
- package/{OpenChannelProvider-820eed7f.js.map → OpenChannelProvider-0ce9c650.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +18 -18
- package/{RemoveMessageModal-2e549441.js → RemoveMessageModal-515ad099.js} +3 -3
- package/{RemoveMessageModal-2e549441.js.map → RemoveMessageModal-515ad099.js.map} +1 -1
- package/SendbirdProvider.js +10 -10
- package/Thread/components/ParentMessageInfo.js +21 -21
- package/Thread/components/ParentMessageInfoItem.js +14 -14
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +24 -22
- package/Thread/components/ThreadList.js.map +1 -1
- package/Thread/components/ThreadListItem.js +24 -22
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +16 -16
- package/Thread/components/ThreadUI.js +26 -24
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context.js +8 -8
- package/Thread.js +26 -24
- package/Thread.js.map +1 -1
- package/{ThreadProvider-2f751001.js → ThreadProvider-bba0da1b.js} +6 -6
- package/{ThreadProvider-2f751001.js.map → ThreadProvider-bba0da1b.js.map} +1 -1
- package/{UserProfileContext-ac550461.js → UserProfileContext-8cec4652.js} +1 -1
- package/{UserProfileContext-ac550461.js.map → UserProfileContext-8cec4652.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-34d80a3b.js → _rollupPluginBabelHelpers-1596259a.js} +1 -1
- package/_rollupPluginBabelHelpers-1596259a.js.map +1 -0
- package/{actionTypes-642d9cf1.js → actionTypes-9fbd05b0.js} +1 -1
- package/{actionTypes-642d9cf1.js.map → actionTypes-9fbd05b0.js.map} +1 -1
- package/cjs/App.js +35 -35
- package/cjs/Channel/components/ChannelHeader.js +18 -18
- package/cjs/Channel/components/ChannelUI.js +27 -26
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +14 -14
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +24 -22
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +16 -16
- package/cjs/Channel/components/MessageList.js +25 -24
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +16 -16
- package/cjs/Channel/components/SuggestedMentionList.js +16 -16
- package/cjs/Channel/components/TypingIndicator.js +14 -14
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +13 -13
- package/cjs/Channel.js +27 -26
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +15 -15
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListUI.js +29 -29
- package/cjs/ChannelList/components/ChannelPreview.js +38 -106
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/cjs/ChannelList/context.js +8 -8
- package/cjs/ChannelList.js +29 -29
- package/cjs/{ChannelListProvider-b705fa43.js → ChannelListProvider-40537146.js} +8 -8
- package/cjs/{ChannelListProvider-b705fa43.js.map → ChannelListProvider-40537146.js.map} +1 -1
- package/cjs/{ChannelProvider-0b75671e.js → ChannelProvider-5bf86efa.js} +9 -9
- package/cjs/{ChannelProvider-0b75671e.js.map → ChannelProvider-5bf86efa.js.map} +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +12 -12
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +18 -18
- package/cjs/ChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/ChannelSettings/components/LeaveChannel.js +12 -12
- package/cjs/ChannelSettings/components/ModerationPanel.js +15 -15
- package/cjs/ChannelSettings/components/UserListItem.js +11 -11
- package/cjs/ChannelSettings/components/UserPanel.js +14 -14
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +18 -18
- package/cjs/CreateChannel/components/CreateChannelUI.js +14 -14
- package/cjs/CreateChannel/components/InviteUsers.js +14 -14
- package/cjs/CreateChannel/components/SelectChannelType.js +11 -11
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +14 -14
- package/cjs/{CreateChannelProvider-25694e0d.js → CreateChannelProvider-2f5c62a5.js} +1 -1
- package/cjs/{CreateChannelProvider-25694e0d.js.map → CreateChannelProvider-2f5c62a5.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +10 -10
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +10 -10
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +13 -13
- package/cjs/EditUserProfile.js +13 -13
- package/cjs/{LocalizationContext-8e73c858.js → LocalizationContext-8497bc78.js} +3 -3
- package/cjs/{LocalizationContext-8e73c858.js.map → LocalizationContext-8497bc78.js.map} +1 -1
- package/cjs/{MediaQueryContext-28198a15.js → MediaQueryContext-4225380b.js} +1 -1
- package/cjs/{MediaQueryContext-28198a15.js.map → MediaQueryContext-4225380b.js.map} +1 -1
- package/cjs/{MemberList-430762bb.js → MemberList-2256bcdf.js} +5 -5
- package/cjs/{MemberList-430762bb.js.map → MemberList-2256bcdf.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/context.js +2 -2
- package/cjs/MessageSearch.js +11 -11
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +13 -13
- package/cjs/OpenChannel/components/OpenChannelInput.js +15 -15
- package/cjs/OpenChannel/components/OpenChannelMessage.js +22 -22
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +24 -24
- package/cjs/OpenChannel/components/OpenChannelUI.js +24 -24
- package/cjs/OpenChannel/context.js +9 -9
- package/cjs/OpenChannel.js +24 -24
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/cjs/OpenChannelList/context.js +4 -4
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/{OpenChannelListProvider-127e2c69.js → OpenChannelListProvider-80f2b08b.js} +3 -3
- package/cjs/{OpenChannelListProvider-127e2c69.js.map → OpenChannelListProvider-80f2b08b.js.map} +1 -1
- package/cjs/{OpenChannelProvider-187e5820.js → OpenChannelProvider-e93c9633.js} +7 -7
- package/cjs/{OpenChannelProvider-187e5820.js.map → OpenChannelProvider-e93c9633.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +13 -13
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +18 -18
- package/cjs/OpenChannelSettings/components/OperatorUI.js +17 -17
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +15 -15
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +18 -18
- package/cjs/{RemoveMessageModal-ab3e801b.js → RemoveMessageModal-46e89e67.js} +3 -3
- package/cjs/{RemoveMessageModal-ab3e801b.js.map → RemoveMessageModal-46e89e67.js.map} +1 -1
- package/cjs/SendbirdProvider.js +10 -10
- package/cjs/Thread/components/ParentMessageInfo.js +21 -21
- package/cjs/Thread/components/ParentMessageInfoItem.js +14 -14
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +24 -22
- package/cjs/Thread/components/ThreadList.js.map +1 -1
- package/cjs/Thread/components/ThreadListItem.js +25 -23
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +16 -16
- package/cjs/Thread/components/ThreadUI.js +26 -24
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context.js +8 -8
- package/cjs/Thread.js +26 -24
- package/cjs/Thread.js.map +1 -1
- package/cjs/{ThreadProvider-41164a45.js → ThreadProvider-a3aff32f.js} +6 -6
- package/cjs/{ThreadProvider-41164a45.js.map → ThreadProvider-a3aff32f.js.map} +1 -1
- package/cjs/{UserProfileContext-89f4ca9a.js → UserProfileContext-a0cd5b83.js} +1 -1
- package/cjs/{UserProfileContext-89f4ca9a.js.map → UserProfileContext-a0cd5b83.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-5a3145d1.js → _rollupPluginBabelHelpers-cf1a9aed.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-cf1a9aed.js.map +1 -0
- package/cjs/{actionTypes-c3d4d3c4.js → actionTypes-2dc34f6e.js} +1 -1
- package/cjs/{actionTypes-c3d4d3c4.js.map → actionTypes-2dc34f6e.js.map} +1 -1
- package/cjs/{color-c3cad9a8.js → color-fbd6c374.js} +1 -1
- package/cjs/{color-c3cad9a8.js.map → color-fbd6c374.js.map} +1 -1
- package/cjs/{compareIds-71cb3e6e.js → compareIds-76947865.js} +1 -1
- package/cjs/{compareIds-71cb3e6e.js.map → compareIds-76947865.js.map} +1 -1
- package/cjs/{const-4de21a7a.js → const-1d125f31.js} +1 -1
- package/cjs/{const-4de21a7a.js.map → const-1d125f31.js.map} +1 -1
- package/cjs/{const-b95571bb.js → const-d51e19f4.js} +1 -1
- package/cjs/{const-b95571bb.js.map → const-d51e19f4.js.map} +1 -1
- package/cjs/{context-7b59a6d6.js → context-2bdb5172.js} +2 -2
- package/cjs/{context-7b59a6d6.js.map → context-2bdb5172.js.map} +1 -1
- package/cjs/{index-40b2748b.js → index-07e9d235.js} +1 -1
- package/cjs/{index-40b2748b.js.map → index-07e9d235.js.map} +1 -1
- package/cjs/index-1e636630.js +157 -0
- package/cjs/index-1e636630.js.map +1 -0
- package/cjs/index-3cc13e66.js +178 -0
- package/cjs/index-3cc13e66.js.map +1 -0
- package/cjs/{index-c8fe6fd5.js → index-82ff89ee.js} +2 -2
- package/cjs/{index-c8fe6fd5.js.map → index-82ff89ee.js.map} +1 -1
- package/cjs/{index-c1a2e0f0.js → index-a160e409.js} +2 -2
- package/cjs/{index-c1a2e0f0.js.map → index-a160e409.js.map} +1 -1
- package/cjs/{index-bd0af4e9.js → index-d2f03436.js} +2 -3
- package/cjs/{index-bd0af4e9.js.map → index-d2f03436.js.map} +1 -1
- package/cjs/{index-42857089.js → index-d3e46239.js} +7 -7
- package/cjs/{index-42857089.js.map → index-d3e46239.js.map} +1 -1
- package/cjs/{index-7512b663.js → index-d84834cb.js} +4 -4
- package/cjs/{index-7512b663.js.map → index-d84834cb.js.map} +1 -1
- package/cjs/{index-994763f3.js → index-e7d3a41a.js} +5 -5
- package/cjs/{index-994763f3.js.map → index-e7d3a41a.js.map} +1 -1
- package/cjs/{index-c7b7bc75.js → index-e9d4a3c3.js} +1 -1
- package/cjs/{index-c7b7bc75.js.map → index-e9d4a3c3.js.map} +1 -1
- package/cjs/{index-39074bef.js → index-f058f9f9.js} +2 -2
- package/cjs/{index-39074bef.js.map → index-f058f9f9.js.map} +1 -1
- package/cjs/{index-76988629.js → index-f15a815b.js} +2 -5
- package/cjs/{index-76988629.js.map → index-f15a815b.js.map} +1 -1
- package/cjs/index.js +38 -38
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-3b2e7f83.js → stringSet-4dd3f71e.js} +2 -1
- package/cjs/stringSet-4dd3f71e.js.map +1 -0
- package/cjs/{topics-3dd8a046.js → topics-a58ece2d.js} +1 -1
- package/cjs/{topics-3dd8a046.js.map → topics-a58ece2d.js.map} +1 -1
- package/cjs/{tslib.es6-1830b80e.js → tslib.es6-565bcf25.js} +1 -1
- package/cjs/{tslib.es6-1830b80e.js.map → tslib.es6-565bcf25.js.map} +1 -1
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +2 -2
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +3 -3
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +2 -2
- package/cjs/ui/Label.js +2 -2
- package/cjs/ui/LinkLabel.js +2 -2
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +11 -11
- package/cjs/ui/MessageContent.js +21 -19
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput.js +19 -14
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +7 -7
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageSearchFileItem.js +24 -13
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +24 -13
- package/cjs/ui/MessageSearchItem.js.map +1 -1
- package/cjs/ui/MessageStatus.js +16 -55
- package/cjs/ui/MessageStatus.js.map +1 -1
- package/cjs/ui/Modal.js +7 -7
- package/cjs/ui/OGMessageItemBody.js +11 -11
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +6 -6
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +16 -16
- package/cjs/ui/OpenchannelOGMessage.js +16 -16
- package/cjs/ui/OpenchannelThumbnailMessage.js +15 -15
- package/cjs/ui/OpenchannelUserMessage.js +16 -16
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/QuoteMessage.js +6 -6
- package/cjs/ui/QuoteMessageInput.js +6 -6
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +1 -1
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +11 -11
- package/cjs/ui/ThreadReplies.js +6 -6
- package/cjs/ui/ThumbnailMessageItemBody.js +2 -2
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +11 -11
- package/cjs/ui/UserProfile.js +10 -10
- package/cjs/ui/Word.js +11 -11
- package/cjs/{useLongPress-eff0b243.js → useLongPress-5dd4480a.js} +3 -3
- package/cjs/{useLongPress-eff0b243.js.map → useLongPress-5dd4480a.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/{utils-4c89877f.js → utils-4594064b.js} +1 -1
- package/cjs/{utils-4c89877f.js.map → utils-4594064b.js.map} +1 -1
- package/cjs/{utils-669a0f93.js → utils-4cce255c.js} +1 -1
- package/cjs/{utils-669a0f93.js.map → utils-4cce255c.js.map} +1 -1
- package/cjs/{utils-c6b57d1a.js → utils-7818d87a.js} +1 -1
- package/cjs/{utils-c6b57d1a.js.map → utils-7818d87a.js.map} +1 -1
- package/cjs/{utils-346853d2.js → utils-eaf70168.js} +2 -2
- package/cjs/{utils-346853d2.js.map → utils-eaf70168.js.map} +1 -1
- package/cjs/{uuid-500480f2.js → uuid-bea1faad.js} +1 -1
- package/cjs/{uuid-500480f2.js.map → uuid-bea1faad.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-57e4b878.js → color-bf0c20dc.js} +1 -1
- package/{color-57e4b878.js.map → color-bf0c20dc.js.map} +1 -1
- package/{compareIds-e883daf1.js → compareIds-8f9595bc.js} +1 -1
- package/{compareIds-e883daf1.js.map → compareIds-8f9595bc.js.map} +1 -1
- package/{const-ae324b4b.js → const-d3c760a4.js} +1 -1
- package/{const-ae324b4b.js.map → const-d3c760a4.js.map} +1 -1
- package/{const-c161b705.js → const-faf029e4.js} +1 -1
- package/{const-c161b705.js.map → const-faf029e4.js.map} +1 -1
- package/{context-c3aeffff.js → context-7e7aa145.js} +2 -2
- package/{context-c3aeffff.js.map → context-7e7aa145.js.map} +1 -1
- package/{index-d27b45b3.js → index-11069e08.js} +2 -2
- package/{index-d27b45b3.js.map → index-11069e08.js.map} +1 -1
- package/{index-a623d99a.js → index-22146748.js} +1 -1
- package/{index-a623d99a.js.map → index-22146748.js.map} +1 -1
- package/index-3e13540c.js +145 -0
- package/index-3e13540c.js.map +1 -0
- package/{index-c87f7f73.js → index-4052efb0.js} +2 -2
- package/{index-c87f7f73.js.map → index-4052efb0.js.map} +1 -1
- package/{index-40a69f5f.js → index-53f9dbdb.js} +3 -3
- package/{index-40a69f5f.js.map → index-53f9dbdb.js.map} +1 -1
- package/{index-004317e6.js → index-5665dd9a.js} +5 -5
- package/{index-004317e6.js.map → index-5665dd9a.js.map} +1 -1
- package/index-589ef7e7.js +174 -0
- package/index-589ef7e7.js.map +1 -0
- package/{index-9f471c3f.js → index-75c6845d.js} +2 -2
- package/{index-9f471c3f.js.map → index-75c6845d.js.map} +1 -1
- package/{index-e4add1e4.js → index-837130fb.js} +3 -3
- package/{index-e4add1e4.js.map → index-837130fb.js.map} +1 -1
- package/{index-192ae483.js → index-a682dd0a.js} +1 -1
- package/{index-192ae483.js.map → index-a682dd0a.js.map} +1 -1
- package/{index-030bd260.js → index-c4124d52.js} +4 -4
- package/{index-030bd260.js.map → index-c4124d52.js.map} +1 -1
- package/{index-3105c09f.js → index-e7a5c308.js} +7 -7
- package/{index-3105c09f.js.map → index-e7a5c308.js.map} +1 -1
- package/index.d.ts +2 -1
- package/index.js +38 -38
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-8218c0cc.js → stringSet-522716ae.js} +2 -1
- package/stringSet-522716ae.js.map +1 -0
- package/{topics-79ac549c.js → topics-4353311c.js} +1 -1
- package/{topics-79ac549c.js.map → topics-4353311c.js.map} +1 -1
- package/{tslib.es6-a9347cf5.js → tslib.es6-1d845c73.js} +1 -1
- package/{tslib.es6-a9347cf5.js.map → tslib.es6-1d845c73.js.map} +1 -1
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +2 -2
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +1 -1
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +3 -3
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +11 -11
- package/ui/MessageContent.js +20 -18
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput.js +19 -14
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +7 -7
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageSearchFileItem.js +24 -13
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +24 -13
- package/ui/MessageSearchItem.js.map +1 -1
- package/ui/MessageStatus.js +14 -53
- package/ui/MessageStatus.js.map +1 -1
- package/ui/Modal.js +7 -7
- package/ui/OGMessageItemBody.js +11 -11
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +6 -6
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +16 -16
- package/ui/OpenchannelOGMessage.js +16 -16
- package/ui/OpenchannelThumbnailMessage.js +15 -15
- package/ui/OpenchannelUserMessage.js +16 -16
- package/ui/PlaceHolder.js +6 -6
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +1 -1
- package/ui/SortByRow.js +2 -2
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +11 -11
- package/ui/ThreadReplies.js +6 -6
- package/ui/ThumbnailMessageItemBody.js +2 -2
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +11 -11
- package/ui/UserProfile.js +10 -10
- package/ui/Word.js +11 -11
- package/{useLongPress-383a5348.js → useLongPress-f99b61d9.js} +3 -3
- package/{useLongPress-383a5348.js.map → useLongPress-f99b61d9.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/{utils-bced60ca.js → utils-355daaf8.js} +1 -1
- package/{utils-bced60ca.js.map → utils-355daaf8.js.map} +1 -1
- package/{utils-628f2c1b.js → utils-531c0ded.js} +1 -1
- package/{utils-628f2c1b.js.map → utils-531c0ded.js.map} +1 -1
- package/{utils-f1589e71.js → utils-b2c3eeca.js} +2 -2
- package/{utils-f1589e71.js.map → utils-b2c3eeca.js.map} +1 -1
- package/{utils-69bbeb3a.js → utils-c7097024.js} +1 -1
- package/{utils-69bbeb3a.js.map → utils-c7097024.js.map} +1 -1
- package/{uuid-47b7ac05.js → uuid-1f647558.js} +1 -1
- package/{uuid-47b7ac05.js.map → uuid-1f647558.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/_rollupPluginBabelHelpers-34d80a3b.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-5a3145d1.js.map +0 -1
- package/cjs/index-dc77e3c7.js +0 -265
- package/cjs/index-dc77e3c7.js.map +0 -1
- package/cjs/stringSet-3b2e7f83.js.map +0 -1
- package/index-5e60a636.js +0 -261
- package/index-5e60a636.js.map +0 -1
- package/stringSet-8218c0cc.js.map +0 -1
package/Channel.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { C as ChannelProvider } from './ChannelProvider-
|
|
2
|
+
import { C as ChannelProvider } from './ChannelProvider-0f023800.js';
|
|
3
3
|
import ChannelUI from './Channel/components/ChannelUI.js';
|
|
4
|
-
import './UserProfileContext-
|
|
4
|
+
import './UserProfileContext-8cec4652.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import './useSendbirdStateContext.js';
|
|
7
7
|
import './withSendbird.js';
|
|
8
|
-
import './_rollupPluginBabelHelpers-
|
|
9
|
-
import './index-
|
|
10
|
-
import './index-
|
|
11
|
-
import './topics-
|
|
12
|
-
import './index-
|
|
13
|
-
import './tslib.es6-
|
|
8
|
+
import './_rollupPluginBabelHelpers-1596259a.js';
|
|
9
|
+
import './index-837130fb.js';
|
|
10
|
+
import './index-a682dd0a.js';
|
|
11
|
+
import './topics-4353311c.js';
|
|
12
|
+
import './index-75c6845d.js';
|
|
13
|
+
import './tslib.es6-1d845c73.js';
|
|
14
14
|
import './utils/message/getOutgoingMessageState.js';
|
|
15
|
-
import './compareIds-
|
|
16
|
-
import './const-
|
|
15
|
+
import './compareIds-8f9595bc.js';
|
|
16
|
+
import './const-faf029e4.js';
|
|
17
17
|
import '@sendbird/chat/groupChannel';
|
|
18
|
-
import './uuid-
|
|
18
|
+
import './uuid-1f647558.js';
|
|
19
19
|
import '@sendbird/chat/message';
|
|
20
20
|
import './ui/ContextMenu.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import './ui/SortByRow.js';
|
|
23
|
-
import './index-
|
|
24
|
-
import './stringSet-
|
|
23
|
+
import './index-4052efb0.js';
|
|
24
|
+
import './stringSet-522716ae.js';
|
|
25
25
|
import './ui/ReactionButton.js';
|
|
26
26
|
import './ui/ImageRenderer.js';
|
|
27
27
|
import './ui/Icon.js';
|
|
28
|
-
import './index-
|
|
29
|
-
import './LocalizationContext-
|
|
28
|
+
import './index-c4124d52.js';
|
|
29
|
+
import './LocalizationContext-0a81b301.js';
|
|
30
30
|
import './ui/Loader.js';
|
|
31
31
|
import './ui/ConnectionStatus.js';
|
|
32
32
|
import './Channel/components/ChannelHeader.js';
|
|
33
|
-
import './utils-
|
|
33
|
+
import './utils-b2c3eeca.js';
|
|
34
34
|
import './ui/IconButton.js';
|
|
35
35
|
import './ui/ChannelAvatar.js';
|
|
36
36
|
import './ui/Avatar.js';
|
|
37
|
-
import './utils-
|
|
38
|
-
import './MediaQueryContext-
|
|
39
|
-
import './utils-
|
|
37
|
+
import './utils-c7097024.js';
|
|
38
|
+
import './MediaQueryContext-dbf82efb.js';
|
|
39
|
+
import './utils-531c0ded.js';
|
|
40
40
|
import './Channel/components/MessageList.js';
|
|
41
|
-
import './index-
|
|
41
|
+
import './index-53f9dbdb.js';
|
|
42
42
|
import './Channel/components/Message.js';
|
|
43
43
|
import './Channel/components/SuggestedMentionList.js';
|
|
44
|
-
import './const-
|
|
45
|
-
import './ThreadProvider-
|
|
44
|
+
import './const-d3c760a4.js';
|
|
45
|
+
import './ThreadProvider-bba0da1b.js';
|
|
46
46
|
import './Thread/context/types.js';
|
|
47
47
|
import '@sendbird/chat';
|
|
48
48
|
import './ui/DateSeparator.js';
|
|
49
|
-
import './color-
|
|
49
|
+
import './color-bf0c20dc.js';
|
|
50
50
|
import './ui/MessageInput.js';
|
|
51
51
|
import 'react-dom/server';
|
|
52
52
|
import './ui/Button.js';
|
|
@@ -54,7 +54,8 @@ import './ui/MentionUserLabel.js';
|
|
|
54
54
|
import './ui/MessageContent.js';
|
|
55
55
|
import './ui/UserProfile.js';
|
|
56
56
|
import './sendbirdSelectors.js';
|
|
57
|
-
import './
|
|
57
|
+
import './index-3e13540c.js';
|
|
58
|
+
import './index-589ef7e7.js';
|
|
58
59
|
import './ui/MessageItemMenu.js';
|
|
59
60
|
import './ui/MessageItemReactionMenu.js';
|
|
60
61
|
import './ui/EmojiReactions.js';
|
|
@@ -72,9 +73,9 @@ import './ui/ThumbnailMessageItemBody.js';
|
|
|
72
73
|
import './ui/OGMessageItemBody.js';
|
|
73
74
|
import './ui/UnknownMessageItemBody.js';
|
|
74
75
|
import './ui/QuoteMessage.js';
|
|
75
|
-
import './useLongPress-
|
|
76
|
+
import './useLongPress-f99b61d9.js';
|
|
76
77
|
import './ui/BottomSheet.js';
|
|
77
|
-
import './index-
|
|
78
|
+
import './index-22146748.js';
|
|
78
79
|
import './ui/ThreadReplies.js';
|
|
79
80
|
import './Channel/components/FileViewer.js';
|
|
80
81
|
import './Channel/components/RemoveMessageModal.js';
|
package/Channel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.js","sources":["../src/smart-components/Channel/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport {\n ChannelProvider,\n ChannelContextProps,\n} from './context/ChannelProvider';\n\nimport ChannelUI, { ChannelUIProps } from './components/ChannelUI';\nexport interface ChannelProps extends ChannelContextProps, ChannelUIProps { }\n\nconst Channel: React.FC<ChannelProps> = (props: ChannelProps) => {\n return (\n <ChannelProvider\n channelUrl={props?.channelUrl}\n isReactionEnabled={props?.isReactionEnabled}\n isMessageGroupingEnabled={props?.isMessageGroupingEnabled}\n showSearchIcon={props?.showSearchIcon}\n animatedMessage={props?.animatedMessage}\n highlightedMessage={props?.highlightedMessage}\n startingPoint={props?.startingPoint}\n onBeforeSendUserMessage={props?.onBeforeSendUserMessage}\n onBeforeSendFileMessage={props?.onBeforeSendFileMessage}\n onBeforeUpdateUserMessage={props?.onBeforeUpdateUserMessage}\n onChatHeaderActionClick={props?.onChatHeaderActionClick}\n onSearchClick={props?.onSearchClick}\n onBackClick={props?.onBackClick}\n replyType={props?.replyType}\n threadReplySelectType={props?.threadReplySelectType}\n queries={props?.queries}\n renderUserProfile={props?.renderUserProfile}\n disableUserProfile={props?.disableUserProfile}\n disableMarkAsRead={props?.disableMarkAsRead}\n onReplyInThread={props?.onReplyInThread}\n onQuoteMessageClick={props?.onQuoteMessageClick}\n onMessageAnimated={props?.onMessageAnimated}\n onMessageHighlighted={props?.onMessageHighlighted}\n >\n <ChannelUI\n isLoading={props?.isLoading}\n renderPlaceholderLoader={props?.renderPlaceholderLoader}\n renderPlaceholderInvalid={props?.renderPlaceholderInvalid}\n renderPlaceholderEmpty={props?.renderPlaceholderEmpty}\n renderChannelHeader={props?.renderChannelHeader}\n renderMessage={props?.renderMessage}\n renderMessageInput={props?.renderMessageInput}\n renderTypingIndicator={props?.renderTypingIndicator}\n renderCustomSeparator={props?.renderCustomSeparator}\n />\n </ChannelProvider>\n );\n};\n\nexport default Channel;\n"],"names":["Channel","props","React","channelUrl","isReactionEnabled","isMessageGroupingEnabled","showSearchIcon","animatedMessage","highlightedMessage","startingPoint","onBeforeSendUserMessage","onBeforeSendFileMessage","onBeforeUpdateUserMessage","onChatHeaderActionClick","onSearchClick","onBackClick","replyType","threadReplySelectType","queries","renderUserProfile","disableUserProfile","disableMarkAsRead","onReplyInThread","onQuoteMessageClick","onMessageAnimated","onMessageHighlighted","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Channel.js","sources":["../src/smart-components/Channel/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport {\n ChannelProvider,\n ChannelContextProps,\n} from './context/ChannelProvider';\n\nimport ChannelUI, { ChannelUIProps } from './components/ChannelUI';\nexport interface ChannelProps extends ChannelContextProps, ChannelUIProps { }\n\nconst Channel: React.FC<ChannelProps> = (props: ChannelProps) => {\n return (\n <ChannelProvider\n channelUrl={props?.channelUrl}\n isReactionEnabled={props?.isReactionEnabled}\n isMessageGroupingEnabled={props?.isMessageGroupingEnabled}\n showSearchIcon={props?.showSearchIcon}\n animatedMessage={props?.animatedMessage}\n highlightedMessage={props?.highlightedMessage}\n startingPoint={props?.startingPoint}\n onBeforeSendUserMessage={props?.onBeforeSendUserMessage}\n onBeforeSendFileMessage={props?.onBeforeSendFileMessage}\n onBeforeUpdateUserMessage={props?.onBeforeUpdateUserMessage}\n onChatHeaderActionClick={props?.onChatHeaderActionClick}\n onSearchClick={props?.onSearchClick}\n onBackClick={props?.onBackClick}\n replyType={props?.replyType}\n threadReplySelectType={props?.threadReplySelectType}\n queries={props?.queries}\n renderUserProfile={props?.renderUserProfile}\n disableUserProfile={props?.disableUserProfile}\n disableMarkAsRead={props?.disableMarkAsRead}\n onReplyInThread={props?.onReplyInThread}\n onQuoteMessageClick={props?.onQuoteMessageClick}\n onMessageAnimated={props?.onMessageAnimated}\n onMessageHighlighted={props?.onMessageHighlighted}\n >\n <ChannelUI\n isLoading={props?.isLoading}\n renderPlaceholderLoader={props?.renderPlaceholderLoader}\n renderPlaceholderInvalid={props?.renderPlaceholderInvalid}\n renderPlaceholderEmpty={props?.renderPlaceholderEmpty}\n renderChannelHeader={props?.renderChannelHeader}\n renderMessage={props?.renderMessage}\n renderMessageInput={props?.renderMessageInput}\n renderTypingIndicator={props?.renderTypingIndicator}\n renderCustomSeparator={props?.renderCustomSeparator}\n />\n </ChannelProvider>\n );\n};\n\nexport default Channel;\n"],"names":["Channel","props","React","channelUrl","isReactionEnabled","isMessageGroupingEnabled","showSearchIcon","animatedMessage","highlightedMessage","startingPoint","onBeforeSendUserMessage","onBeforeSendFileMessage","onBeforeUpdateUserMessage","onChatHeaderActionClick","onSearchClick","onBackClick","replyType","threadReplySelectType","queries","renderUserProfile","disableUserProfile","disableMarkAsRead","onReplyInThread","onQuoteMessageClick","onMessageAnimated","onMessageHighlighted","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,OAAO,GAA2B,UAACC,KAAD,EAAoB;AAC1D,EAAA,oBACEC,6BAAC,eAAD,EAAA;AACE,IAAA,UAAU,EAAED,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEE,UADrB;AAEE,IAAA,iBAAiB,EAAEF,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEG,iBAF5B;AAGE,IAAA,wBAAwB,EAAEH,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEI,wBAHnC;AAIE,IAAA,cAAc,EAAEJ,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEK,cAJzB;AAKE,IAAA,eAAe,EAAEL,KAAK,SAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEM,eAL1B;AAME,IAAA,kBAAkB,EAAEN,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEO,kBAN7B;AAOE,IAAA,aAAa,EAAEP,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAEQ,aAPxB;AAQE,IAAA,uBAAuB,EAAER,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAES,uBARlC;A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,GAAAA,KAAK,CAAE6B,mBAL9B;AAME,IAAA,aAAa,EAAE7B,KAAK,KAAL,IAAA,IAAAA,KAAK,WAAL,SAAA,GAAAA,KAAK,CAAE8B,aANxB;AAOE,IAAA,kBAAkB,EAAE9B,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAE+B,kBAP7B;AAQE,IAAA,qBAAqB,EAAE/B,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEgC,qBARhC;AASE,IAAA,qBAAqB,EAAEhC,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEiC,qBAAAA;AAThC,GAAA,CAzBF,CADF,CAAA;AAuCD;;;;"}
|
|
@@ -3,39 +3,39 @@ import IconButton from '../../ui/IconButton.js';
|
|
|
3
3
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
4
|
import CreateChannel from '../../CreateChannel.js';
|
|
5
5
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
6
|
-
import { u as useChannelListContext } from '../../ChannelListProvider-
|
|
7
|
-
import '../../tslib.es6-
|
|
6
|
+
import { u as useChannelListContext } from '../../ChannelListProvider-29e939e1.js';
|
|
7
|
+
import '../../tslib.es6-1d845c73.js';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
10
|
-
import '../../CreateChannelProvider-
|
|
10
|
+
import '../../CreateChannelProvider-1bad158a.js';
|
|
11
11
|
import '../../sendbirdSelectors.js';
|
|
12
|
-
import '../../topics-
|
|
13
|
-
import '../../utils-
|
|
12
|
+
import '../../topics-4353311c.js';
|
|
13
|
+
import '../../utils-531c0ded.js';
|
|
14
14
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
15
|
-
import '../../LocalizationContext-
|
|
16
|
-
import '../../stringSet-
|
|
17
|
-
import '../../index-
|
|
15
|
+
import '../../LocalizationContext-0a81b301.js';
|
|
16
|
+
import '../../stringSet-522716ae.js';
|
|
17
|
+
import '../../index-a682dd0a.js';
|
|
18
18
|
import '../../ui/Modal.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import '../../index-
|
|
20
|
+
import '../../index-22146748.js';
|
|
21
21
|
import '../../ui/Button.js';
|
|
22
|
-
import '../../index-
|
|
23
|
-
import '../../MediaQueryContext-
|
|
22
|
+
import '../../index-4052efb0.js';
|
|
23
|
+
import '../../MediaQueryContext-dbf82efb.js';
|
|
24
24
|
import '../../ui/UserListItem.js';
|
|
25
|
-
import '../../UserProfileContext-
|
|
25
|
+
import '../../UserProfileContext-8cec4652.js';
|
|
26
26
|
import '../../ui/Avatar.js';
|
|
27
27
|
import '../../ui/ImageRenderer.js';
|
|
28
|
-
import '../../uuid-
|
|
28
|
+
import '../../uuid-1f647558.js';
|
|
29
29
|
import '../../ui/MutedAvatarOverlay.js';
|
|
30
30
|
import '../../ui/Checkbox.js';
|
|
31
31
|
import '../../ui/UserProfile.js';
|
|
32
32
|
import '../../ui/ContextMenu.js';
|
|
33
33
|
import '../../ui/SortByRow.js';
|
|
34
|
-
import '../../index-
|
|
34
|
+
import '../../index-75c6845d.js';
|
|
35
35
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
36
36
|
import '../../CreateChannel/components/SelectChannelType.js';
|
|
37
37
|
import '../../withSendbird.js';
|
|
38
|
-
import '../../_rollupPluginBabelHelpers-
|
|
38
|
+
import '../../_rollupPluginBabelHelpers-1596259a.js';
|
|
39
39
|
import '@sendbird/chat/groupChannel';
|
|
40
40
|
|
|
41
41
|
var AddChannel = function () {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-0a81b301.js';
|
|
3
3
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-4052efb0.js';
|
|
5
5
|
import Avatar from '../../ui/Avatar.js';
|
|
6
|
-
import '../../stringSet-
|
|
7
|
-
import '../../index-
|
|
6
|
+
import '../../stringSet-522716ae.js';
|
|
7
|
+
import '../../index-a682dd0a.js';
|
|
8
8
|
import '../../withSendbird.js';
|
|
9
|
-
import '../../_rollupPluginBabelHelpers-
|
|
9
|
+
import '../../_rollupPluginBabelHelpers-1596259a.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../../tslib.es6-
|
|
11
|
+
import '../../tslib.es6-1d845c73.js';
|
|
12
12
|
import '../../ui/ImageRenderer.js';
|
|
13
13
|
import '../../ui/Icon.js';
|
|
14
|
-
import '../../uuid-
|
|
14
|
+
import '../../uuid-1f647558.js';
|
|
15
15
|
|
|
16
16
|
var ChannelListHeader = function (_a) {
|
|
17
17
|
var renderHeader = _a.renderHeader,
|
|
@@ -3,67 +3,67 @@ import ChannelListHeader from './ChannelListHeader.js';
|
|
|
3
3
|
import { AddChannel } from './AddChannel.js';
|
|
4
4
|
import ChannelPreview from './ChannelPreview.js';
|
|
5
5
|
import ChannelPreviewAction from './ChannelPreviewAction.js';
|
|
6
|
-
import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-
|
|
6
|
+
import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-29e939e1.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
8
|
import EditProfile from '../../EditUserProfile.js';
|
|
9
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
10
|
-
import '../../LocalizationContext-
|
|
11
|
-
import '../../stringSet-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../index-
|
|
9
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-c4124d52.js';
|
|
10
|
+
import '../../LocalizationContext-0a81b301.js';
|
|
11
|
+
import '../../stringSet-522716ae.js';
|
|
12
|
+
import '../../index-a682dd0a.js';
|
|
13
|
+
import '../../index-4052efb0.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import '../../ui/Avatar.js';
|
|
16
|
-
import '../../tslib.es6-
|
|
16
|
+
import '../../tslib.es6-1d845c73.js';
|
|
17
17
|
import '../../ui/ImageRenderer.js';
|
|
18
18
|
import '../../ui/Icon.js';
|
|
19
|
-
import '../../uuid-
|
|
19
|
+
import '../../uuid-1f647558.js';
|
|
20
20
|
import '../../ui/IconButton.js';
|
|
21
21
|
import '../../CreateChannel.js';
|
|
22
22
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
23
|
-
import '../../CreateChannelProvider-
|
|
23
|
+
import '../../CreateChannelProvider-1bad158a.js';
|
|
24
24
|
import '../../sendbirdSelectors.js';
|
|
25
|
-
import '../../topics-
|
|
26
|
-
import '../../utils-
|
|
25
|
+
import '../../topics-4353311c.js';
|
|
26
|
+
import '../../utils-531c0ded.js';
|
|
27
27
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
28
28
|
import '../../ui/Modal.js';
|
|
29
29
|
import 'react-dom';
|
|
30
|
-
import '../../index-
|
|
30
|
+
import '../../index-22146748.js';
|
|
31
31
|
import '../../ui/Button.js';
|
|
32
|
-
import '../../MediaQueryContext-
|
|
32
|
+
import '../../MediaQueryContext-dbf82efb.js';
|
|
33
33
|
import '../../ui/UserListItem.js';
|
|
34
|
-
import '../../UserProfileContext-
|
|
34
|
+
import '../../UserProfileContext-8cec4652.js';
|
|
35
35
|
import '../../ui/MutedAvatarOverlay.js';
|
|
36
36
|
import '../../ui/Checkbox.js';
|
|
37
37
|
import '../../ui/UserProfile.js';
|
|
38
38
|
import '../../ui/ContextMenu.js';
|
|
39
39
|
import '../../ui/SortByRow.js';
|
|
40
|
-
import '../../index-
|
|
40
|
+
import '../../index-75c6845d.js';
|
|
41
41
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
42
42
|
import '../../CreateChannel/components/SelectChannelType.js';
|
|
43
|
-
import '../../_rollupPluginBabelHelpers-
|
|
43
|
+
import '../../_rollupPluginBabelHelpers-1596259a.js';
|
|
44
44
|
import '../../ui/ChannelAvatar.js';
|
|
45
|
-
import '../../utils-
|
|
45
|
+
import '../../utils-c7097024.js';
|
|
46
46
|
import '../../ui/Badge.js';
|
|
47
|
-
import '../../index-
|
|
48
|
-
import '../../index-
|
|
49
|
-
import '../../
|
|
47
|
+
import '../../index-3e13540c.js';
|
|
48
|
+
import '../../index-837130fb.js';
|
|
49
|
+
import '../../ui/Loader.js';
|
|
50
|
+
import '../../index-589ef7e7.js';
|
|
51
|
+
import '../../index-53f9dbdb.js';
|
|
50
52
|
import '../../ui/MentionUserLabel.js';
|
|
51
53
|
import '../../ui/TextButton.js';
|
|
52
|
-
import '../../color-
|
|
54
|
+
import '../../color-bf0c20dc.js';
|
|
53
55
|
import '../../Channel/components/TypingIndicator.js';
|
|
54
56
|
import '@sendbird/chat/groupChannel';
|
|
55
|
-
import '../../ChannelProvider-
|
|
56
|
-
import '../../compareIds-
|
|
57
|
-
import '../../const-
|
|
57
|
+
import '../../ChannelProvider-0f023800.js';
|
|
58
|
+
import '../../compareIds-8f9595bc.js';
|
|
59
|
+
import '../../const-faf029e4.js';
|
|
58
60
|
import '@sendbird/chat/message';
|
|
59
61
|
import '../../ui/ReactionButton.js';
|
|
60
|
-
import '../../
|
|
61
|
-
import '../../ui/Loader.js';
|
|
62
|
-
import '../../useLongPress-383a5348.js';
|
|
62
|
+
import '../../useLongPress-f99b61d9.js';
|
|
63
63
|
import '../../withSendbird.js';
|
|
64
|
-
import '../../index-
|
|
64
|
+
import '../../index-5665dd9a.js';
|
|
65
65
|
import '../../ui/Input.js';
|
|
66
|
-
import '../../actionTypes-
|
|
66
|
+
import '../../actionTypes-9fbd05b0.js';
|
|
67
67
|
|
|
68
68
|
const isAboutSame = (a, b, px) => Math.abs(a - b) <= px;
|
|
69
69
|
|
|
@@ -1,123 +1,50 @@
|
|
|
1
|
-
import { a as _extends } from '../../_rollupPluginBabelHelpers-
|
|
2
|
-
import { _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as _extends } from '../../_rollupPluginBabelHelpers-1596259a.js';
|
|
2
|
+
import { _ as __assign } from '../../tslib.es6-1d845c73.js';
|
|
3
3
|
import React__default, { useState } from 'react';
|
|
4
4
|
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
5
5
|
import Badge from '../../ui/Badge.js';
|
|
6
6
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { f as format } from '../../index-e4add1e4.js';
|
|
10
|
-
import { t as truncateString, d as isEditedMessage } from '../../index-9f471c3f.js';
|
|
7
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-4052efb0.js';
|
|
8
|
+
import { g as getChannelTitle, a as getTotalMembers, M as MessageStatus, b as getLastMessageCreatedAt, c as getLastMessage, d as getChannelUnreadMessageCount } from '../../index-3e13540c.js';
|
|
11
9
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
12
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
10
|
+
import { u as useLocalization } from '../../LocalizationContext-0a81b301.js';
|
|
13
11
|
import MentionUserLabel from '../../ui/MentionUserLabel.js';
|
|
14
12
|
import Modal from '../../ui/Modal.js';
|
|
15
13
|
import TextButton from '../../ui/TextButton.js';
|
|
16
|
-
import { u as useChannelListContext } from '../../ChannelListProvider-
|
|
14
|
+
import { u as useChannelListContext } from '../../ChannelListProvider-29e939e1.js';
|
|
17
15
|
import { TypingIndicatorText } from '../../Channel/components/TypingIndicator.js';
|
|
18
|
-
import
|
|
19
|
-
import { u as useMediaQueryContext } from '../../MediaQueryContext-
|
|
20
|
-
import { u as useLongPress } from '../../useLongPress-
|
|
16
|
+
import { d as isEditedMessage } from '../../index-75c6845d.js';
|
|
17
|
+
import { u as useMediaQueryContext } from '../../MediaQueryContext-dbf82efb.js';
|
|
18
|
+
import { u as useLongPress } from '../../useLongPress-f99b61d9.js';
|
|
21
19
|
import '../../ui/Avatar.js';
|
|
22
20
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-
|
|
24
|
-
import '../../utils-
|
|
21
|
+
import '../../uuid-1f647558.js';
|
|
22
|
+
import '../../utils-c7097024.js';
|
|
25
23
|
import 'prop-types';
|
|
26
|
-
import '../../stringSet-
|
|
27
|
-
import '../../index-
|
|
28
|
-
import '../../index-
|
|
24
|
+
import '../../stringSet-522716ae.js';
|
|
25
|
+
import '../../index-837130fb.js';
|
|
26
|
+
import '../../index-a682dd0a.js';
|
|
27
|
+
import '../../ui/Loader.js';
|
|
29
28
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
29
|
+
import '../../index-589ef7e7.js';
|
|
30
|
+
import '../../index-53f9dbdb.js';
|
|
30
31
|
import '../../withSendbird.js';
|
|
31
32
|
import 'react-dom';
|
|
32
|
-
import '../../index-
|
|
33
|
+
import '../../index-22146748.js';
|
|
33
34
|
import '../../ui/Button.js';
|
|
34
35
|
import '../../ui/IconButton.js';
|
|
35
|
-
import '../../color-
|
|
36
|
+
import '../../color-bf0c20dc.js';
|
|
36
37
|
import '@sendbird/chat/groupChannel';
|
|
37
|
-
import '../../topics-
|
|
38
|
-
import '../../utils-
|
|
39
|
-
import '../../UserProfileContext-
|
|
40
|
-
import '../../ChannelProvider-
|
|
41
|
-
import '../../compareIds-
|
|
42
|
-
import '../../const-
|
|
38
|
+
import '../../topics-4353311c.js';
|
|
39
|
+
import '../../utils-531c0ded.js';
|
|
40
|
+
import '../../UserProfileContext-8cec4652.js';
|
|
41
|
+
import '../../ChannelProvider-0f023800.js';
|
|
42
|
+
import '../../compareIds-8f9595bc.js';
|
|
43
|
+
import '../../const-faf029e4.js';
|
|
43
44
|
import '@sendbird/chat/message';
|
|
44
45
|
import '../../ui/ContextMenu.js';
|
|
45
46
|
import '../../ui/SortByRow.js';
|
|
46
47
|
import '../../ui/ReactionButton.js';
|
|
47
|
-
import '../../ui/Loader.js';
|
|
48
|
-
|
|
49
|
-
const getChannelTitle = function () {
|
|
50
|
-
var _channel$members;
|
|
51
|
-
|
|
52
|
-
let channel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
53
|
-
let currentUserId = arguments.length > 1 ? arguments[1] : undefined;
|
|
54
|
-
let stringSet = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : LabelStringSet;
|
|
55
|
-
|
|
56
|
-
if (!(channel !== null && channel !== void 0 && channel.name) && !(channel !== null && channel !== void 0 && channel.members)) {
|
|
57
|
-
return stringSet.NO_TITLE;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (channel !== null && channel !== void 0 && channel.name && channel.name !== 'Group Channel') {
|
|
61
|
-
return channel.name;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if ((channel === null || channel === void 0 ? void 0 : (_channel$members = channel.members) === null || _channel$members === void 0 ? void 0 : _channel$members.length) === 1) {
|
|
65
|
-
return stringSet.NO_MEMBERS;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return ((channel === null || channel === void 0 ? void 0 : channel.members) || []).filter(_ref => {
|
|
69
|
-
let {
|
|
70
|
-
userId
|
|
71
|
-
} = _ref;
|
|
72
|
-
return userId !== currentUserId;
|
|
73
|
-
}).map(_ref2 => {
|
|
74
|
-
let {
|
|
75
|
-
nickname
|
|
76
|
-
} = _ref2;
|
|
77
|
-
return nickname || stringSet.NO_NAME;
|
|
78
|
-
}).join(', ');
|
|
79
|
-
};
|
|
80
|
-
const getLastMessageCreatedAt = (channel, locale) => {
|
|
81
|
-
var _channel$lastMessage;
|
|
82
|
-
|
|
83
|
-
const createdAt = channel === null || channel === void 0 ? void 0 : (_channel$lastMessage = channel.lastMessage) === null || _channel$lastMessage === void 0 ? void 0 : _channel$lastMessage.createdAt;
|
|
84
|
-
const optionalParam = locale ? {
|
|
85
|
-
locale
|
|
86
|
-
} : null;
|
|
87
|
-
|
|
88
|
-
if (!createdAt) {
|
|
89
|
-
return '';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
if (isToday(createdAt)) {
|
|
93
|
-
return format(createdAt, 'p', optionalParam);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (isYesterday(createdAt)) {
|
|
97
|
-
return formatRelative(createdAt, new Date(), optionalParam);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return format(createdAt, 'MMM dd', optionalParam);
|
|
101
|
-
};
|
|
102
|
-
const getTotalMembers = channel => channel !== null && channel !== void 0 && channel.memberCount ? channel.memberCount : 0;
|
|
103
|
-
|
|
104
|
-
const getPrettyLastMessage = function () {
|
|
105
|
-
let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
106
|
-
const MAXLEN = 30;
|
|
107
|
-
const {
|
|
108
|
-
messageType,
|
|
109
|
-
name
|
|
110
|
-
} = message;
|
|
111
|
-
|
|
112
|
-
if (messageType === 'file') {
|
|
113
|
-
return truncateString(name, MAXLEN);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return message.message;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
const getLastMessage = channel => channel !== null && channel !== void 0 && channel.lastMessage ? getPrettyLastMessage(channel.lastMessage) : '';
|
|
120
|
-
const getChannelUnreadMessageCount = channel => channel !== null && channel !== void 0 && channel.unreadMessageCount ? channel.unreadMessageCount : 0;
|
|
121
48
|
|
|
122
49
|
var ChannelPreview = function (_a) {
|
|
123
50
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -211,12 +138,17 @@ var ChannelPreview = function (_a) {
|
|
|
211
138
|
}))), isMessageStatusEnabled ? /*#__PURE__*/React__default.createElement(MessageStatus, {
|
|
212
139
|
className: "sendbird-channel-preview__content__upper__last-message-at",
|
|
213
140
|
channel: channel,
|
|
214
|
-
message: channel === null || channel === void 0 ? void 0 : channel.lastMessage
|
|
141
|
+
message: channel === null || channel === void 0 ? void 0 : channel.lastMessage,
|
|
142
|
+
isDateSeparatorConsidered: false
|
|
215
143
|
}) : /*#__PURE__*/React__default.createElement(Label, {
|
|
216
144
|
className: "sendbird-channel-preview__content__upper__last-message-at",
|
|
217
145
|
type: LabelTypography.CAPTION_3,
|
|
218
146
|
color: LabelColors.ONBACKGROUND_2
|
|
219
|
-
}, getLastMessageCreatedAt(
|
|
147
|
+
}, getLastMessageCreatedAt({
|
|
148
|
+
channel: channel,
|
|
149
|
+
locale: dateLocale,
|
|
150
|
+
stringSet: stringSet
|
|
151
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
220
152
|
className: "sendbird-channel-preview__content__lower"
|
|
221
153
|
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
222
154
|
className: "sendbird-channel-preview__content__lower__last-message",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelPreview.js","sources":["../../../src/smart-components/ChannelList/components/ChannelPreview/utils.js","../../../src/smart-components/ChannelList/components/ChannelPreview/index.tsx"],"sourcesContent":["import isToday from 'date-fns/isToday';\nimport format from 'date-fns/format';\nimport formatRelative from 'date-fns/formatRelative';\nimport isYesterday from 'date-fns/isYesterday';\n\nimport { truncateString } from '../../../../utils';\nimport { LabelStringSet } from '../../../../ui/Label';\n\nexport const getChannelTitle = (channel = {}, currentUserId, stringSet = LabelStringSet) => {\n if (!channel?.name && !channel?.members) {\n return stringSet.NO_TITLE;\n }\n if (channel?.name && channel.name !== 'Group Channel') {\n return channel.name;\n }\n if (channel?.members?.length === 1) {\n return stringSet.NO_MEMBERS;\n }\n return (channel?.members || [])\n .filter(({ userId }) => userId !== currentUserId)\n .map(({ nickname }) => (nickname || stringSet.NO_NAME))\n .join(', ');\n};\n\nexport const getLastMessageCreatedAt = (channel, locale) => {\n const createdAt = channel?.lastMessage?.createdAt;\n const optionalParam = locale ? { locale } : null;\n if (!createdAt) {\n return '';\n }\n if (isToday(createdAt)) {\n return format(createdAt, 'p', optionalParam);\n }\n if (isYesterday(createdAt)) {\n return formatRelative(createdAt, new Date(), optionalParam);\n }\n return format(createdAt, 'MMM dd', optionalParam);\n};\n\nexport const getTotalMembers = (channel) => (\n channel?.memberCount\n ? channel.memberCount\n : 0\n);\n\nconst getPrettyLastMessage = (message = {}) => {\n const MAXLEN = 30;\n const { messageType, name } = message;\n if (messageType === 'file') {\n return truncateString(name, MAXLEN);\n }\n return message.message;\n};\n\nexport const getLastMessage = (channel) => (\n channel?.lastMessage\n ? getPrettyLastMessage(channel.lastMessage)\n : ''\n);\n\nexport const getChannelUnreadMessageCount = (channel) => (\n channel?.unreadMessageCount\n ? channel.unreadMessageCount\n : 0\n);\n","import './channel-preview.scss';\n\nimport React, { useState } from 'react';\nimport type { GroupChannel } from '@sendbird/chat/groupChannel';\nimport type { FileMessage, UserMessage } from '@sendbird/chat/message';\n\nimport ChannelAvatar from '../../../../ui/ChannelAvatar';\nimport Badge from '../../../../ui/Badge';\nimport Icon, { IconColors, IconTypes } from '../../../../ui/Icon';\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\n\nimport * as utils from './utils';\n\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useLocalization } from '../../../../lib/LocalizationContext';\nimport MentionUserLabel from '../../../../ui/MentionUserLabel';\nimport Modal from '../../../../ui/Modal';\nimport TextButton from '../../../../ui/TextButton';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\nimport { TypingIndicatorText } from '../../../Channel/components/TypingIndicator';\nimport MessageStatus from '../../../../ui/MessageStatus';\nimport { isEditedMessage } from '../../../../utils';\nimport { useMediaQueryContext } from '../../../../lib/MediaQueryContext';\nimport useLongPress from '../../../../hooks/useLongPress';\n\ninterface ChannelPreviewInterface {\n channel: GroupChannel;\n isActive?: boolean;\n isTyping?: boolean;\n onClick: () => void;\n onLeaveChannel?: () => void;\n renderChannelAction: (props: { channel: GroupChannel }) => React.ReactElement;\n tabIndex: number;\n}\n\nconst ChannelPreview: React.FC<ChannelPreviewInterface> = ({\n channel,\n isActive = false,\n isTyping = false,\n renderChannelAction,\n onLeaveChannel,\n onClick,\n tabIndex,\n}: ChannelPreviewInterface) => {\n const sbState = useSendbirdStateContext();\n const {\n isTypingIndicatorEnabled = false,\n isMessageReceiptStatusEnabled = false,\n } = useChannelListContext();\n const { dateLocale, stringSet } = useLocalization();\n const { isMobile } = useMediaQueryContext();\n\n const [showMobileLeave, setShowMobileLeave] = useState(false);\n\n const userId = sbState?.stores?.userStore?.user?.userId;\n const theme = sbState?.config?.theme;\n const isMentionEnabled = sbState?.config?.isMentionEnabled;\n const isFrozen = channel?.isFrozen || false;\n const isBroadcast = channel?.isBroadcast || false;\n const isChannelTyping = isTypingIndicatorEnabled && isTyping;\n const isMessageStatusEnabled = isMessageReceiptStatusEnabled\n && (channel?.lastMessage?.messageType === 'user' || channel?.lastMessage?.messageType === 'file')\n && (channel?.lastMessage as UserMessage | FileMessage)?.sender?.userId === userId;\n\n const onLongPress = useLongPress({\n onLongPress: () => {\n if (isMobile) {\n setShowMobileLeave(true);\n }\n },\n onClick,\n }, {\n delay: 1000,\n });\n const channelName = utils.getChannelTitle(channel, userId, stringSet);\n return (\n <>\n <div\n className={[\n 'sendbird-channel-preview',\n isActive ? 'sendbird-channel-preview--active' : '',\n ].join(' ')}\n role=\"link\"\n tabIndex={tabIndex}\n {...(isMobile ? { ...onLongPress } : { onClick })}\n >\n <div\n className=\"sendbird-channel-preview__avatar\"\n >\n <ChannelAvatar\n channel={channel}\n userId={userId}\n theme={theme}\n />\n </div>\n <div className=\"sendbird-channel-preview__content\">\n <div className=\"sendbird-channel-preview__content__upper\">\n <div className=\"sendbird-channel-preview__content__upper__header\">\n {\n isBroadcast\n && (\n <div className=\"sendbird-channel-preview__content__upper__header__broadcast-icon\">\n <Icon\n type={IconTypes.BROADCAST}\n fillColor={IconColors.SECONDARY}\n height=\"16px\"\n width=\"16px\"\n />\n </div>\n )\n }\n <Label\n className=\"sendbird-channel-preview__content__upper__header__channel-name\"\n type={LabelTypography.SUBTITLE_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n <div>\n { channelName }\n </div>\n </Label>\n <Label\n className=\"sendbird-channel-preview__content__upper__header__total-members\"\n type={LabelTypography.CAPTION_2}\n color={LabelColors.ONBACKGROUND_2}\n >\n {utils.getTotalMembers(channel)}\n </Label>\n {\n isFrozen\n && (\n <div title=\"Frozen\" className=\"sendbird-channel-preview__content__upper__header__frozen-icon\">\n <Icon\n type={IconTypes.FREEZE}\n fillColor={IconColors.PRIMARY}\n height={12}\n width={12}\n />\n </div>\n )\n }\n </div>\n {\n isMessageStatusEnabled\n ? (\n <MessageStatus\n className=\"sendbird-channel-preview__content__upper__last-message-at\"\n channel={channel}\n message={channel?.lastMessage as UserMessage | FileMessage}\n />\n )\n : (\n <Label\n className=\"sendbird-channel-preview__content__upper__last-message-at\"\n type={LabelTypography.CAPTION_3}\n color={LabelColors.ONBACKGROUND_2}\n >\n {utils.getLastMessageCreatedAt(channel, dateLocale)}\n </Label>\n )\n }\n </div>\n <div className=\"sendbird-channel-preview__content__lower\">\n <Label\n className=\"sendbird-channel-preview__content__lower__last-message\"\n type={LabelTypography.BODY_2}\n color={LabelColors.ONBACKGROUND_3}\n >\n {\n isChannelTyping && (\n <TypingIndicatorText members={channel?.getTypingUsers()} />\n )\n }\n {\n !isChannelTyping && (\n utils.getLastMessage(channel) + (isEditedMessage(channel?.lastMessage as UserMessage | FileMessage) ? ` ${stringSet.MESSAGE_EDITED}` : '')\n )\n }\n </Label>\n <div className=\"sendbird-channel-preview__content__lower__unread-message-count\">\n {\n (isMentionEnabled && channel?.unreadMentionCount > 0)\n ? (\n <MentionUserLabel\n className=\"sendbird-channel-preview__content__lower__unread-message-count__mention\"\n color=\"purple\"\n >\n {'@'}\n </MentionUserLabel>\n )\n : null\n }\n {\n utils.getChannelUnreadMessageCount(channel) // return number\n ? <Badge count={utils.getChannelUnreadMessageCount(channel)} />\n : null\n }\n </div>\n </div>\n </div>\n {\n !isMobile && (\n <div\n className=\"sendbird-channel-preview__action\"\n >\n {renderChannelAction({ channel })}\n </div>\n )\n }\n </div>\n {/*\n Event from portal is transferred to parent\n If this modal goes inside channel preview, it will propogate event to\n ChannelPreview and cause many issues with click/touchEnd etc\n https://github.com/facebook/react/issues/11387#issuecomment-340019419\n */}\n {\n showMobileLeave && isMobile && (\n <Modal\n className=\"sendbird-channel-preview__leave--mobile\"\n titleText={channelName}\n hideFooter\n isCloseOnClickOutside\n onCancel={() => setShowMobileLeave(false)}\n >\n <TextButton\n onClick={() => {\n onLeaveChannel();\n setShowMobileLeave(false);\n }}\n className=\"sendbird-channel-preview__leave-label--mobile\"\n >\n <Label\n type={LabelTypography.SUBTITLE_1}\n color={LabelColors.ONBACKGROUND_1}\n >\n {stringSet.CHANNEL_PREVIEW_MOBILE_LEAVE}\n </Label>\n </TextButton>\n </Modal>\n )\n }\n </>\n );\n}\n\nexport default ChannelPreview;\n"],"names":["getChannelTitle","channel","currentUserId","stringSet","LabelStringSet","name","members","NO_TITLE","length","NO_MEMBERS","filter","userId","map","nickname","NO_NAME","join","getLastMessageCreatedAt","locale","createdAt","lastMessage","optionalParam","isToday","format","isYesterday","formatRelative","Date","getTotalMembers","memberCount","getPrettyLastMessage","message","MAXLEN","messageType","truncateString","getLastMessage","getChannelUnreadMessageCount","unreadMessageCount","ChannelPreview","_a","_l","isActive","_m","isTyping","renderChannelAction","onLeaveChannel","onClick","tabIndex","sbState","useSendbirdStateContext","_o","useChannelListContext","_p","isTypingIndicatorEnabled","_q","isMessageReceiptStatusEnabled","_r","useLocalization","dateLocale","isMobile","useMediaQueryContext","_s","useState","showMobileLeave","setShowMobileLeave","_d","_b","stores","userStore","user","theme","_e","config","isMentionEnabled","_f","isFrozen","isBroadcast","isChannelTyping","isMessageStatusEnabled","_g","_h","_k","_j","sender","onLongPress","useLongPress","delay","channelName","utils","React","__assign","IconTypes","BROADCAST","IconColors","SECONDARY","LabelTypography","SUBTITLE_2","LabelColors","ONBACKGROUND_1","CAPTION_2","ONBACKGROUND_2","FREEZE","PRIMARY","CAPTION_3","BODY_2","ONBACKGROUND_3","getTypingUsers","isEditedMessage","MESSAGE_EDITED","unreadMentionCount","SUBTITLE_1","CHANNEL_PREVIEW_MOBILE_LEAVE"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAMA,eAAe,GAAG,YAA6D;AAAA,EAAA,IAAA,gBAAA,CAAA;;EAAA,IAA5DC,OAA4D,uEAAlD,EAAkD,CAAA;AAAA,EAAA,IAA9CC,aAA8C,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAA,SAAA,CAAA;EAAA,IAA/BC,SAA+B,uEAAnBC,cAAmB,CAAA;;AAC1F,EAAA,IAAI,EAACH,OAAD,KAAA,IAAA,IAACA,OAAD,KAACA,KAAAA,CAAAA,IAAAA,OAAO,CAAEI,IAAV,CAAA,IAAkB,EAACJ,OAAD,aAACA,OAAD,KAAA,KAAA,CAAA,IAACA,OAAO,CAAEK,OAAV,CAAtB,EAAyC;IACvC,OAAOH,SAAS,CAACI,QAAjB,CAAA;AACD,GAAA;;AACD,EAAA,IAAIN,OAAO,KAAA,IAAP,IAAAA,OAAO,WAAP,IAAAA,OAAO,CAAEI,IAAT,IAAiBJ,OAAO,CAACI,IAAR,KAAiB,eAAtC,EAAuD;IACrD,OAAOJ,OAAO,CAACI,IAAf,CAAA;AACD,GAAA;;AACD,EAAA,I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C,IAAAA,OAAO,EAAAA,OAAAA;GAAV,CAHtB,CA5HN,CADF,EA4II4D,eAAe,IAAIJ,QAAnB,iBACE8B,cAAA,CAAA,aAAA,CAAC,KAAD,EAAA;AACE,IAAA,SAAS,EAAC,yCADZ;AAEE,IAAA,SAAS,EAAEF,WAFb;AAGE,IAAA,UAAU,EAHZ,IAAA;AAIE,IAAA,qBAAqB,EAJvB,IAAA;AAKE,IAAA,QAAQ,EAAE,YAAA;MAAM,OAAAvB,kBAAkB,CAAC,KAAD,CAAlB,CAAA;AAAyB,KAAA;AAL3C,GAAA,eAOEyB,6BAAC,UAAD,EAAA;AACE,IAAA,OAAO,EAAE,YAAA;MACP5C,cAAc,EAAA,CAAA;MACdmB,kBAAkB,CAAC,KAAD,CAAlB,CAAA;KAHJ;AAKE,IAAA,SAAS,EAAC,+CAAA;AALZ,GAAA,eAOEyB,6BAAC,KAAD,EAAA;IACE,IAAI,EAAEM,eAAe,CAACe,UADxB;IAEE,KAAK,EAAEb,WAAW,CAACC,cAAAA;AAFrB,GAAA,EAIG7F,SAAS,CAAC0G,4BAJb,CAPF,CAPF,CA7IN,CADF,CAAA;AAwKD;;;;"}
|
|
1
|
+
{"version":3,"file":"ChannelPreview.js","sources":["../../../src/smart-components/ChannelList/components/ChannelPreview/index.tsx"],"sourcesContent":["import './channel-preview.scss';\n\nimport React, { useState } from 'react';\nimport type { GroupChannel } from '@sendbird/chat/groupChannel';\nimport type { FileMessage, UserMessage } from '@sendbird/chat/message';\n\nimport ChannelAvatar from '../../../../ui/ChannelAvatar';\nimport Badge from '../../../../ui/Badge';\nimport Icon, { IconColors, IconTypes } from '../../../../ui/Icon';\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\n\nimport * as utils from './utils';\n\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useLocalization } from '../../../../lib/LocalizationContext';\nimport MentionUserLabel from '../../../../ui/MentionUserLabel';\nimport Modal from '../../../../ui/Modal';\nimport TextButton from '../../../../ui/TextButton';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\nimport { TypingIndicatorText } from '../../../Channel/components/TypingIndicator';\nimport MessageStatus from '../../../../ui/MessageStatus';\nimport { isEditedMessage } from '../../../../utils';\nimport { useMediaQueryContext } from '../../../../lib/MediaQueryContext';\nimport useLongPress from '../../../../hooks/useLongPress';\n\ninterface ChannelPreviewInterface {\n channel: GroupChannel;\n isActive?: boolean;\n isTyping?: boolean;\n onClick: () => void;\n onLeaveChannel?: () => void;\n renderChannelAction: (props: { channel: GroupChannel }) => React.ReactElement;\n tabIndex: number;\n}\n\nconst ChannelPreview: React.FC<ChannelPreviewInterface> = ({\n channel,\n isActive = false,\n isTyping = false,\n renderChannelAction,\n onLeaveChannel,\n onClick,\n tabIndex,\n}: ChannelPreviewInterface) => {\n const sbState = useSendbirdStateContext();\n const {\n isTypingIndicatorEnabled = false,\n isMessageReceiptStatusEnabled = false,\n } = useChannelListContext();\n const { dateLocale, stringSet } = useLocalization();\n const { isMobile } = useMediaQueryContext();\n\n const [showMobileLeave, setShowMobileLeave] = useState(false);\n\n const userId = sbState?.stores?.userStore?.user?.userId;\n const theme = sbState?.config?.theme;\n const isMentionEnabled = sbState?.config?.isMentionEnabled;\n const isFrozen = channel?.isFrozen || false;\n const isBroadcast = channel?.isBroadcast || false;\n const isChannelTyping = isTypingIndicatorEnabled && isTyping;\n const isMessageStatusEnabled = isMessageReceiptStatusEnabled\n && (channel?.lastMessage?.messageType === 'user' || channel?.lastMessage?.messageType === 'file')\n && (channel?.lastMessage as UserMessage | FileMessage)?.sender?.userId === userId;\n\n const onLongPress = useLongPress({\n onLongPress: () => {\n if (isMobile) {\n setShowMobileLeave(true);\n }\n },\n onClick,\n }, {\n delay: 1000,\n });\n const channelName = utils.getChannelTitle(channel, userId, stringSet);\n return (\n <>\n <div\n className={[\n 'sendbird-channel-preview',\n isActive ? 'sendbird-channel-preview--active' : '',\n ].join(' ')}\n role=\"link\"\n tabIndex={tabIndex}\n {...(isMobile ? { ...onLongPress } : { onClick })}\n >\n <div\n className=\"sendbird-channel-preview__avatar\"\n >\n <ChannelAvatar\n channel={channel}\n userId={userId}\n theme={theme}\n />\n </div>\n <div className=\"sendbird-channel-preview__content\">\n <div className=\"sendbird-channel-preview__content__upper\">\n <div className=\"sendbird-channel-preview__content__upper__header\">\n {\n isBroadcast\n && (\n <div className=\"sendbird-channel-preview__content__upper__header__broadcast-icon\">\n <Icon\n type={IconTypes.BROADCAST}\n fillColor={IconColors.SECONDARY}\n height=\"16px\"\n width=\"16px\"\n />\n </div>\n )\n }\n <Label\n className=\"sendbird-channel-preview__content__upper__header__channel-name\"\n type={LabelTypography.SUBTITLE_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n <div>\n { channelName }\n </div>\n </Label>\n <Label\n className=\"sendbird-channel-preview__content__upper__header__total-members\"\n type={LabelTypography.CAPTION_2}\n color={LabelColors.ONBACKGROUND_2}\n >\n {utils.getTotalMembers(channel)}\n </Label>\n {\n isFrozen\n && (\n <div title=\"Frozen\" className=\"sendbird-channel-preview__content__upper__header__frozen-icon\">\n <Icon\n type={IconTypes.FREEZE}\n fillColor={IconColors.PRIMARY}\n height={12}\n width={12}\n />\n </div>\n )\n }\n </div>\n {\n isMessageStatusEnabled\n ? (\n <MessageStatus\n className=\"sendbird-channel-preview__content__upper__last-message-at\"\n channel={channel}\n message={channel?.lastMessage as UserMessage | FileMessage}\n isDateSeparatorConsidered={false}\n />\n )\n : (\n <Label\n className=\"sendbird-channel-preview__content__upper__last-message-at\"\n type={LabelTypography.CAPTION_3}\n color={LabelColors.ONBACKGROUND_2}\n >\n {utils.getLastMessageCreatedAt({\n channel,\n locale: dateLocale,\n stringSet,\n })}\n </Label>\n )\n }\n </div>\n <div className=\"sendbird-channel-preview__content__lower\">\n <Label\n className=\"sendbird-channel-preview__content__lower__last-message\"\n type={LabelTypography.BODY_2}\n color={LabelColors.ONBACKGROUND_3}\n >\n {\n isChannelTyping && (\n <TypingIndicatorText members={channel?.getTypingUsers()} />\n )\n }\n {\n !isChannelTyping && (\n utils.getLastMessage(channel) + (isEditedMessage(channel?.lastMessage as UserMessage | FileMessage) ? ` ${stringSet.MESSAGE_EDITED}` : '')\n )\n }\n </Label>\n <div className=\"sendbird-channel-preview__content__lower__unread-message-count\">\n {\n (isMentionEnabled && channel?.unreadMentionCount > 0)\n ? (\n <MentionUserLabel\n className=\"sendbird-channel-preview__content__lower__unread-message-count__mention\"\n color=\"purple\"\n >\n {'@'}\n </MentionUserLabel>\n )\n : null\n }\n {\n utils.getChannelUnreadMessageCount(channel) // return number\n ? <Badge count={utils.getChannelUnreadMessageCount(channel)} />\n : null\n }\n </div>\n </div>\n </div>\n {\n !isMobile && (\n <div\n className=\"sendbird-channel-preview__action\"\n >\n {renderChannelAction({ channel })}\n </div>\n )\n }\n </div>\n {/*\n Event from portal is transferred to parent\n If this modal goes inside channel preview, it will propogate event to\n ChannelPreview and cause many issues with click/touchEnd etc\n https://github.com/facebook/react/issues/11387#issuecomment-340019419\n */}\n {\n showMobileLeave && isMobile && (\n <Modal\n className=\"sendbird-channel-preview__leave--mobile\"\n titleText={channelName}\n hideFooter\n isCloseOnClickOutside\n onCancel={() => setShowMobileLeave(false)}\n >\n <TextButton\n onClick={() => {\n onLeaveChannel();\n setShowMobileLeave(false);\n }}\n className=\"sendbird-channel-preview__leave-label--mobile\"\n >\n <Label\n type={LabelTypography.SUBTITLE_1}\n color={LabelColors.ONBACKGROUND_1}\n >\n {stringSet.CHANNEL_PREVIEW_MOBILE_LEAVE}\n </Label>\n </TextButton>\n </Modal>\n )\n }\n </>\n );\n}\n\nexport default ChannelPreview;\n"],"names":["ChannelPreview","_a","channel","_l","isActive","_m","isTyping","renderChannelAction","onLeaveChannel","onClick","tabIndex","sbState","useSendbirdStateContext","_o","useChannelListContext","_p","isTypingIndicatorEnabled","_q","isMessageReceiptStatusEnabled","_r","useLocalization","dateLocale","stringSet","isMobile","useMediaQueryContext","_s","useState","showMobileLeave","setShowMobileLeave","userId","_d","_b","stores","userStore","user","theme","_e","config","isMentionEnabled","_f","isFrozen","isBroadcast","isChannelTyping","isMessageStatusEnabled","_g","lastMessage","messageType","_h","_k","_j","sender","onLongPress","useLongPress","delay","channelName","utils","React","join","__assign","IconTypes","BROADCAST","IconColors","SECONDARY","LabelTypography","SUBTITLE_2","LabelColors","ONBACKGROUND_1","CAPTION_2","ONBACKGROUND_2","FREEZE","PRIMARY","CAPTION_3","locale","BODY_2","ONBACKGROUND_3","getTypingUsers","isEditedMessage","MESSAGE_EDITED","unreadMentionCount","SUBTITLE_1","CHANNEL_PREVIEW_MOBILE_LEAVE"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,IAAMA,cAAc,GAAsC,UAACC,EAAD,EAQhC;;;MAPxBC,OAAO,GAAAD,EAAA,CAAAC;MACPC,EAAA,GAAAF,EAAA,CAAAG;MAAAA,QAAQ,GAAGD,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,GAAKA;MAChBE,EAAgB,GAAAJ,EAAA,CAAAK;MAAhBA,QAAQ,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQA;MAChBE,mBAAmB,GAAAN,EAAA,CAAAM;MACnBC,cAAc,GAAAP,EAAA,CAAAO;MACdC,OAAO,GAAAR,EAAA,CAAAQ;MACPC,QAAQ,GAAAT,EAAA,CAAAS;EAER,IAAMC,OAAO,GAAGC,uBAAuB,EAAvC,CAAA;;EACM,IAAAC,KAGFC,qBAAqB,EAHnB;AAAA,MACJC,EAAA,GAAAF,EAAA,CAAAG,wBADI;MACJA,wBAAwB,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQA,EAD5B;AAAA,MAEJE,EAAqC,GAAAJ,EAAA,CAAAK,6BAFjC;MAEJA,6BAA6B,GAAGD,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,KAF5B,CAAA;;EAIA,IAAAE,EAAA,GAA4BC,eAA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