@sendbird/uikit-react 3.4.0-rc.7 → 3.4.1-rc.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/App.js +40 -40
- package/CHANGELOG.md +22 -0
- package/Channel/components/ChannelHeader.js +30 -28
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +42 -94
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +15 -15
- package/Channel/components/FrozenNotification.js +8 -6
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +162 -132
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +23 -23
- package/Channel/components/MessageList.js +169 -95
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +17 -17
- package/Channel/components/SuggestedMentionList.js +17 -17
- package/Channel/components/TypingIndicator.js +15 -15
- package/Channel/components/UnreadCount.js +14 -17
- package/Channel/components/UnreadCount.js.map +1 -1
- package/Channel/context.js +14 -14
- package/Channel.js +34 -34
- package/ChannelList/components/AddChannel.js +22 -17
- package/ChannelList/components/AddChannel.js.map +1 -1
- package/ChannelList/components/ChannelListHeader.js +7 -7
- package/ChannelList/components/ChannelListUI.js +29 -29
- package/ChannelList/components/ChannelPreview.js +28 -28
- 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-2d9ea6ae.js → ChannelListProvider-9f51ca7a.js} +8 -8
- package/{ChannelListProvider-2d9ea6ae.js.map → ChannelListProvider-9f51ca7a.js.map} +1 -1
- package/{ChannelProvider-a1f89176.js → ChannelProvider-19d75ee9.js} +13 -12
- package/ChannelProvider-19d75ee9.js.map +1 -0
- 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-3bfb2750.js → CreateChannelProvider-4a26fc5d.js} +1 -1
- package/{CreateChannelProvider-3bfb2750.js.map → CreateChannelProvider-4a26fc5d.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-34604ccb.js → LocalizationContext-646420ca.js} +3 -3
- package/{LocalizationContext-34604ccb.js.map → LocalizationContext-646420ca.js.map} +1 -1
- package/{MediaQueryContext-6b657985.js → MediaQueryContext-1441c35c.js} +1 -1
- package/{MediaQueryContext-6b657985.js.map → MediaQueryContext-1441c35c.js.map} +1 -1
- package/{MemberList-b420966f.js → MemberList-e1088d7b.js} +5 -5
- package/{MemberList-b420966f.js.map → MemberList-e1088d7b.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +12 -12
- package/MessageSearch/context.js +2 -2
- package/MessageSearch.js +12 -12
- 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 +26 -22
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- 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-ded489f3.js → OpenChannelListProvider-76b2bc47.js} +3 -3
- package/{OpenChannelListProvider-ded489f3.js.map → OpenChannelListProvider-76b2bc47.js.map} +1 -1
- package/{OpenChannelProvider-8ef44e31.js → OpenChannelProvider-de0549fc.js} +7 -7
- package/{OpenChannelProvider-8ef44e31.js.map → OpenChannelProvider-de0549fc.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-2246b5b6.js → RemoveMessageModal-c25f1f20.js} +3 -3
- package/{RemoveMessageModal-2246b5b6.js.map → RemoveMessageModal-c25f1f20.js.map} +1 -1
- package/SendbirdProvider.js +12 -12
- package/Thread/components/ParentMessageInfo.js +24 -24
- package/Thread/components/ParentMessageInfoItem.js +16 -16
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +27 -27
- package/Thread/components/ThreadListItem.js +39 -38
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +24 -24
- package/Thread/components/ThreadUI.js +31 -31
- package/Thread/context.js +9 -9
- package/Thread.js +31 -31
- package/{ThreadProvider-9485ea4c.js → ThreadProvider-0ebc9c60.js} +7 -7
- package/{ThreadProvider-9485ea4c.js.map → ThreadProvider-0ebc9c60.js.map} +1 -1
- package/{UserProfileContext-49d0ed34.js → UserProfileContext-eb7f4891.js} +1 -1
- package/{UserProfileContext-49d0ed34.js.map → UserProfileContext-eb7f4891.js.map} +1 -1
- package/{VoiceMessageInputWrapper-0dffc749.js → VoiceMessageInputWrapper-c0ac4f9c.js} +7 -7
- package/{VoiceMessageInputWrapper-0dffc749.js.map → VoiceMessageInputWrapper-c0ac4f9c.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +3 -3
- package/VoiceRecorder/context.js +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +2 -2
- package/{_rollupPluginBabelHelpers-3d722d2a.js → _rollupPluginBabelHelpers-5827233e.js} +1 -1
- package/_rollupPluginBabelHelpers-5827233e.js.map +1 -0
- package/{actionTypes-25ed38bc.js → actionTypes-42080a5c.js} +1 -1
- package/{actionTypes-25ed38bc.js.map → actionTypes-42080a5c.js.map} +1 -1
- package/cjs/App.js +40 -40
- package/cjs/Channel/components/ChannelHeader.js +30 -28
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +41 -93
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +15 -15
- package/cjs/Channel/components/FrozenNotification.js +8 -6
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +161 -131
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +23 -23
- package/cjs/Channel/components/MessageList.js +168 -94
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +17 -17
- package/cjs/Channel/components/SuggestedMentionList.js +17 -17
- package/cjs/Channel/components/TypingIndicator.js +15 -15
- package/cjs/Channel/components/UnreadCount.js +14 -17
- package/cjs/Channel/components/UnreadCount.js.map +1 -1
- package/cjs/Channel/context.js +14 -14
- package/cjs/Channel.js +34 -34
- package/cjs/ChannelList/components/AddChannel.js +22 -17
- package/cjs/ChannelList/components/AddChannel.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +7 -7
- package/cjs/ChannelList/components/ChannelListUI.js +29 -29
- package/cjs/ChannelList/components/ChannelPreview.js +28 -28
- 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-f1e7b2ae.js → ChannelListProvider-f0ae2b2b.js} +8 -8
- package/cjs/{ChannelListProvider-f1e7b2ae.js.map → ChannelListProvider-f0ae2b2b.js.map} +1 -1
- package/cjs/{ChannelProvider-bc93b0a8.js → ChannelProvider-7a4dc56f.js} +12 -12
- package/cjs/ChannelProvider-7a4dc56f.js.map +1 -0
- 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-ac2061a9.js → CreateChannelProvider-f93f94ce.js} +1 -1
- package/cjs/{CreateChannelProvider-ac2061a9.js.map → CreateChannelProvider-f93f94ce.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-7a6ca1b0.js → LocalizationContext-c7dba320.js} +3 -3
- package/cjs/{LocalizationContext-7a6ca1b0.js.map → LocalizationContext-c7dba320.js.map} +1 -1
- package/cjs/{MediaQueryContext-a6e1058a.js → MediaQueryContext-c21176c2.js} +1 -1
- package/cjs/{MediaQueryContext-a6e1058a.js.map → MediaQueryContext-c21176c2.js.map} +1 -1
- package/cjs/{MemberList-4c16eda4.js → MemberList-8beacafe.js} +5 -5
- package/cjs/{MemberList-4c16eda4.js.map → MemberList-8beacafe.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +12 -12
- package/cjs/MessageSearch/context.js +2 -2
- package/cjs/MessageSearch.js +12 -12
- 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 +26 -22
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- 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-cd74f4df.js → OpenChannelListProvider-be9e4a7a.js} +3 -3
- package/cjs/{OpenChannelListProvider-cd74f4df.js.map → OpenChannelListProvider-be9e4a7a.js.map} +1 -1
- package/cjs/{OpenChannelProvider-69f5ad63.js → OpenChannelProvider-48f2c689.js} +7 -7
- package/cjs/{OpenChannelProvider-69f5ad63.js.map → OpenChannelProvider-48f2c689.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-876f9c58.js → RemoveMessageModal-a2906376.js} +3 -3
- package/cjs/{RemoveMessageModal-876f9c58.js.map → RemoveMessageModal-a2906376.js.map} +1 -1
- package/cjs/SendbirdProvider.js +12 -12
- package/cjs/Thread/components/ParentMessageInfo.js +24 -24
- package/cjs/Thread/components/ParentMessageInfoItem.js +16 -16
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +27 -27
- package/cjs/Thread/components/ThreadListItem.js +39 -38
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +24 -24
- package/cjs/Thread/components/ThreadUI.js +31 -31
- package/cjs/Thread/context.js +9 -9
- package/cjs/Thread.js +31 -31
- package/cjs/{ThreadProvider-03e527f0.js → ThreadProvider-c69173ee.js} +7 -7
- package/cjs/{ThreadProvider-03e527f0.js.map → ThreadProvider-c69173ee.js.map} +1 -1
- package/cjs/{UserProfileContext-62a76572.js → UserProfileContext-55f0e6bb.js} +1 -1
- package/cjs/{UserProfileContext-62a76572.js.map → UserProfileContext-55f0e6bb.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-ce7c9f48.js → VoiceMessageInputWrapper-1f621f96.js} +7 -7
- package/cjs/{VoiceMessageInputWrapper-ce7c9f48.js.map → VoiceMessageInputWrapper-1f621f96.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +3 -3
- package/cjs/VoiceRecorder/context.js +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +2 -2
- package/cjs/{_rollupPluginBabelHelpers-890010e8.js → _rollupPluginBabelHelpers-53067984.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-53067984.js.map +1 -0
- package/cjs/{actionTypes-2dd8d353.js → actionTypes-6116824d.js} +1 -1
- package/cjs/{actionTypes-2dd8d353.js.map → actionTypes-6116824d.js.map} +1 -1
- package/cjs/{color-20c73e3d.js → color-9ec8fac6.js} +1 -1
- package/cjs/{color-20c73e3d.js.map → color-9ec8fac6.js.map} +1 -1
- package/cjs/{compareIds-d2fa6a71.js → compareIds-d6461851.js} +1 -1
- package/cjs/{compareIds-d2fa6a71.js.map → compareIds-d6461851.js.map} +1 -1
- package/cjs/{const-a0953ccb.js → const-1f3d1ae1.js} +1 -1
- package/cjs/{const-a0953ccb.js.map → const-1f3d1ae1.js.map} +1 -1
- package/cjs/{const-db526661.js → const-3d3ea5a6.js} +3 -1
- package/cjs/const-3d3ea5a6.js.map +1 -0
- package/cjs/{consts-54febc80.js → consts-a7f5f91d.js} +1 -1
- package/cjs/{consts-54febc80.js.map → consts-a7f5f91d.js.map} +1 -1
- package/cjs/{context-c4dd79d5.js → context-5374df4e.js} +2 -2
- package/cjs/{context-c4dd79d5.js.map → context-5374df4e.js.map} +1 -1
- package/cjs/dist/index.css +139 -119
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-d80a7c10.js → index-082ae73e.js} +7 -7
- package/cjs/{index-d80a7c10.js.map → index-082ae73e.js.map} +1 -1
- package/cjs/{index-093f5d99.js → index-4dc4e6b5.js} +4 -4
- package/cjs/{index-093f5d99.js.map → index-4dc4e6b5.js.map} +1 -1
- package/cjs/{index-d72adfae.js → index-5993f1e6.js} +3 -3
- package/cjs/{index-d72adfae.js.map → index-5993f1e6.js.map} +1 -1
- package/cjs/{index-cc592f23.js → index-5fef7cd4.js} +7 -7
- package/cjs/{index-cc592f23.js.map → index-5fef7cd4.js.map} +1 -1
- package/cjs/{index-5741f048.js → index-7ee2031a.js} +3 -3
- package/cjs/{index-5741f048.js.map → index-7ee2031a.js.map} +1 -1
- package/cjs/{index-926872a3.js → index-84e17bfc.js} +2 -2
- package/cjs/{index-926872a3.js.map → index-84e17bfc.js.map} +1 -1
- package/cjs/{index-9ee06eb9.js → index-8e745dca.js} +2 -2
- package/cjs/{index-9ee06eb9.js.map → index-8e745dca.js.map} +1 -1
- package/cjs/{index-6bc6c2d0.js → index-9d41d610.js} +1 -1
- package/cjs/{index-6bc6c2d0.js.map → index-9d41d610.js.map} +1 -1
- package/cjs/{index-131be6cc.js → index-b583b8df.js} +5 -5
- package/cjs/{index-131be6cc.js.map → index-b583b8df.js.map} +1 -1
- package/cjs/{index-8b55332c.js → index-bb8788c1.js} +2 -2
- package/cjs/{index-8b55332c.js.map → index-bb8788c1.js.map} +1 -1
- package/cjs/{index-51105734.js → index-dbfa9e30.js} +4 -4
- package/cjs/{index-51105734.js.map → index-dbfa9e30.js.map} +1 -1
- package/cjs/{index-726df8d6.js → index-e2cb4259.js} +2 -2
- package/cjs/{index-726df8d6.js.map → index-e2cb4259.js.map} +1 -1
- package/cjs/{index-977eae2e.js → index-ef4ab52a.js} +7 -5
- package/cjs/index-ef4ab52a.js.map +1 -0
- package/cjs/{index-626a6683.js → index-f0738051.js} +1 -1
- package/cjs/{index-626a6683.js.map → index-f0738051.js.map} +1 -1
- package/cjs/index.js +44 -44
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-35db06bd.js → stringSet-39f04718.js} +1 -1
- package/cjs/{stringSet-35db06bd.js.map → stringSet-39f04718.js.map} +1 -1
- package/cjs/{topics-015dff3e.js → topics-5606f43e.js} +1 -1
- package/cjs/{topics-015dff3e.js.map → topics-5606f43e.js.map} +1 -1
- package/cjs/{tslib.es6-d43b6c33.js → tslib.es6-aab6b54f.js} +1 -1
- package/cjs/{tslib.es6-d43b6c33.js.map → tslib.es6-aab6b54f.js.map} +1 -1
- package/cjs/{types-50aaf370.js → types-45b8cd42.js} +1 -1
- package/cjs/{types-50aaf370.js.map → types-45b8cd42.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 +7 -6
- package/cjs/ui/ContextMenu.js.map +1 -1
- 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 +35 -34
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput.js +9 -9
- package/cjs/ui/MessageItemMenu.js +11 -11
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +5 -5
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +9 -9
- package/cjs/ui/MessageStatus.js +10 -10
- 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 +33 -27
- package/cjs/ui/OpenchannelFileMessage.js.map +1 -1
- package/cjs/ui/OpenchannelOGMessage.js +32 -30
- package/cjs/ui/OpenchannelOGMessage.js.map +1 -1
- package/cjs/ui/OpenchannelThumbnailMessage.js +35 -29
- package/cjs/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/cjs/ui/OpenchannelUserMessage.js +32 -30
- package/cjs/ui/OpenchannelUserMessage.js.map +1 -1
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/PlaybackTime.js +2 -2
- 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/VoiceMessageItemBody.js +5 -5
- package/cjs/ui/VoiceMessgeInput.js +8 -8
- package/cjs/ui/Word.js +11 -11
- package/cjs/{useLongPress-5be54285.js → useLongPress-9261da40.js} +3 -3
- package/cjs/{useLongPress-5be54285.js.map → useLongPress-9261da40.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/{utils-1fb17377.js → utils-1575dcd5.js} +1 -1
- package/cjs/{utils-1fb17377.js.map → utils-1575dcd5.js.map} +1 -1
- package/cjs/{utils-b779340f.js → utils-5ee973c5.js} +2 -2
- package/cjs/{utils-b779340f.js.map → utils-5ee973c5.js.map} +1 -1
- package/cjs/{utils-2b85bb00.js → utils-67a9f818.js} +1 -1
- package/cjs/{utils-2b85bb00.js.map → utils-67a9f818.js.map} +1 -1
- package/cjs/{utils-e521af24.js → utils-acf605ed.js} +1 -1
- package/cjs/{utils-e521af24.js.map → utils-acf605ed.js.map} +1 -1
- package/cjs/{uuid-cfe73159.js → uuid-7daa634b.js} +1 -1
- package/cjs/{uuid-cfe73159.js.map → uuid-7daa634b.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-59367d04.js → color-9754a8a3.js} +1 -1
- package/{color-59367d04.js.map → color-9754a8a3.js.map} +1 -1
- package/{compareIds-2cbe41ec.js → compareIds-5ff919a8.js} +1 -1
- package/{compareIds-2cbe41ec.js.map → compareIds-5ff919a8.js.map} +1 -1
- package/{const-e1abe30a.js → const-21dcd857.js} +3 -2
- package/const-21dcd857.js.map +1 -0
- package/{const-6d6447e8.js → const-7588ac16.js} +1 -1
- package/{const-6d6447e8.js.map → const-7588ac16.js.map} +1 -1
- package/{consts-19f1b47c.js → consts-20a8f693.js} +1 -1
- package/{consts-19f1b47c.js.map → consts-20a8f693.js.map} +1 -1
- package/{context-3b95f3e6.js → context-01308b37.js} +2 -2
- package/{context-3b95f3e6.js.map → context-01308b37.js.map} +1 -1
- package/dist/index.css +139 -119
- package/dist/index.css.map +1 -1
- package/{index-8bf75458.js → index-100b143d.js} +2 -2
- package/{index-8bf75458.js.map → index-100b143d.js.map} +1 -1
- package/{index-6c0f7a11.js → index-1a8fa4cd.js} +4 -4
- package/{index-6c0f7a11.js.map → index-1a8fa4cd.js.map} +1 -1
- package/{index-003cd138.js → index-1de84663.js} +3 -3
- package/{index-003cd138.js.map → index-1de84663.js.map} +1 -1
- package/{index-1cd6e5a9.js → index-2e23c452.js} +2 -2
- package/{index-1cd6e5a9.js.map → index-2e23c452.js.map} +1 -1
- package/{index-7f6825d2.js → index-3e5cbf80.js} +7 -7
- package/{index-7f6825d2.js.map → index-3e5cbf80.js.map} +1 -1
- package/{index-72d34190.js → index-44342614.js} +1 -1
- package/{index-72d34190.js.map → index-44342614.js.map} +1 -1
- package/{index-94f8b701.js → index-561ddd27.js} +2 -2
- package/{index-94f8b701.js.map → index-561ddd27.js.map} +1 -1
- package/{index-d02ef540.js → index-5e057577.js} +1 -1
- package/{index-d02ef540.js.map → index-5e057577.js.map} +1 -1
- package/{index-c28667a8.js → index-82382d4a.js} +5 -5
- package/{index-c28667a8.js.map → index-82382d4a.js.map} +1 -1
- package/{index-9c831352.js → index-9e5cf819.js} +4 -4
- package/{index-9c831352.js.map → index-9e5cf819.js.map} +1 -1
- package/{index-e4e8ae3e.js → index-aa29a843.js} +2 -2
- package/{index-e4e8ae3e.js.map → index-aa29a843.js.map} +1 -1
- package/{index-7e116f1a.js → index-cebb1db7.js} +7 -5
- package/index-cebb1db7.js.map +1 -0
- package/{index-3ab34556.js → index-dc672161.js} +7 -7
- package/{index-3ab34556.js.map → index-dc672161.js.map} +1 -1
- package/{index-4c2cc2b0.js → index-dd2a9d44.js} +3 -3
- package/{index-4c2cc2b0.js.map → index-dd2a9d44.js.map} +1 -1
- package/index.d.ts +30 -22
- package/index.js +44 -44
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-a253a8e4.js → stringSet-ea4aeced.js} +1 -1
- package/{stringSet-a253a8e4.js.map → stringSet-ea4aeced.js.map} +1 -1
- package/{topics-5297af14.js → topics-2b0b1403.js} +1 -1
- package/{topics-5297af14.js.map → topics-2b0b1403.js.map} +1 -1
- package/{tslib.es6-d76132e1.js → tslib.es6-ca21063f.js} +1 -1
- package/{tslib.es6-d76132e1.js.map → tslib.es6-ca21063f.js.map} +1 -1
- package/{types-6c683617.js → types-d5ea9376.js} +1 -1
- package/{types-6c683617.js.map → types-d5ea9376.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 +7 -6
- package/ui/ContextMenu.js.map +1 -1
- 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 +35 -34
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput.js +9 -9
- package/ui/MessageItemMenu.js +11 -11
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +5 -5
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +9 -9
- package/ui/MessageStatus.js +10 -10
- 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 +33 -27
- package/ui/OpenchannelFileMessage.js.map +1 -1
- package/ui/OpenchannelOGMessage.js +32 -30
- package/ui/OpenchannelOGMessage.js.map +1 -1
- package/ui/OpenchannelThumbnailMessage.js +35 -29
- package/ui/OpenchannelThumbnailMessage.js.map +1 -1
- package/ui/OpenchannelUserMessage.js +32 -30
- package/ui/OpenchannelUserMessage.js.map +1 -1
- package/ui/PlaceHolder.js +6 -6
- package/ui/PlaybackTime.js +2 -2
- 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/VoiceMessageItemBody.js +5 -5
- package/ui/VoiceMessgeInput.js +8 -8
- package/ui/Word.js +11 -11
- package/{useLongPress-6ac95c33.js → useLongPress-0dccc5ca.js} +3 -3
- package/{useLongPress-6ac95c33.js.map → useLongPress-0dccc5ca.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/{utils-2de71122.js → utils-2088448e.js} +1 -1
- package/{utils-2de71122.js.map → utils-2088448e.js.map} +1 -1
- package/{utils-61227117.js → utils-3f271584.js} +1 -1
- package/{utils-61227117.js.map → utils-3f271584.js.map} +1 -1
- package/{utils-5754d236.js → utils-a4003ad3.js} +1 -1
- package/{utils-5754d236.js.map → utils-a4003ad3.js.map} +1 -1
- package/{utils-c0211cad.js → utils-a9e361cf.js} +2 -2
- package/{utils-c0211cad.js.map → utils-a9e361cf.js.map} +1 -1
- package/{uuid-c331106c.js → uuid-e2d2f65c.js} +1 -1
- package/{uuid-c331106c.js.map → uuid-e2d2f65c.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelProvider-a1f89176.js.map +0 -1
- package/_rollupPluginBabelHelpers-3d722d2a.js.map +0 -1
- package/cjs/ChannelProvider-bc93b0a8.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-890010e8.js.map +0 -1
- package/cjs/const-db526661.js.map +0 -1
- package/cjs/index-977eae2e.js.map +0 -1
- package/const-e1abe30a.js.map +0 -1
- package/index-7e116f1a.js.map +0 -1
package/App.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Sendbird from './SendbirdProvider.js';
|
|
4
|
-
import { u as useMediaQueryContext } from './MediaQueryContext-
|
|
4
|
+
import { u as useMediaQueryContext } from './MediaQueryContext-1441c35c.js';
|
|
5
5
|
import ChannelList from './ChannelList.js';
|
|
6
6
|
import Channel from './Channel.js';
|
|
7
7
|
import ChannelSettings from './ChannelSettings.js';
|
|
@@ -9,30 +9,30 @@ import MessageSearchPannel from './MessageSearch.js';
|
|
|
9
9
|
import Thread from './Thread.js';
|
|
10
10
|
import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
11
11
|
import useSendbirdStateContext from './useSendbirdStateContext.js';
|
|
12
|
-
import { u as uuidv4 } from './uuid-
|
|
13
|
-
import { V as VOICE_RECORDER_DEFAULT_MAX, a as VOICE_RECORDER_DEFAULT_MIN } from './consts-
|
|
14
|
-
import './_rollupPluginBabelHelpers-
|
|
12
|
+
import { u as uuidv4 } from './uuid-e2d2f65c.js';
|
|
13
|
+
import { V as VOICE_RECORDER_DEFAULT_MAX, a as VOICE_RECORDER_DEFAULT_MIN } from './consts-20a8f693.js';
|
|
14
|
+
import './_rollupPluginBabelHelpers-5827233e.js';
|
|
15
15
|
import './withSendbird.js';
|
|
16
16
|
import '@sendbird/chat';
|
|
17
17
|
import '@sendbird/chat/openChannel';
|
|
18
|
-
import './actionTypes-
|
|
19
|
-
import './index-
|
|
20
|
-
import './tslib.es6-
|
|
18
|
+
import './actionTypes-42080a5c.js';
|
|
19
|
+
import './index-100b143d.js';
|
|
20
|
+
import './tslib.es6-ca21063f.js';
|
|
21
21
|
import './utils/message/getOutgoingMessageState.js';
|
|
22
22
|
import 'css-vars-ponyfill';
|
|
23
23
|
import './VoiceRecorder/context.js';
|
|
24
24
|
import './lame.all.js';
|
|
25
|
-
import './index-
|
|
26
|
-
import './LocalizationContext-
|
|
27
|
-
import './stringSet-
|
|
28
|
-
import './index-
|
|
29
|
-
import './ChannelListProvider-
|
|
30
|
-
import './topics-
|
|
31
|
-
import './utils-
|
|
32
|
-
import './UserProfileContext-
|
|
25
|
+
import './index-1de84663.js';
|
|
26
|
+
import './LocalizationContext-646420ca.js';
|
|
27
|
+
import './stringSet-ea4aeced.js';
|
|
28
|
+
import './index-5e057577.js';
|
|
29
|
+
import './ChannelListProvider-9f51ca7a.js';
|
|
30
|
+
import './topics-2b0b1403.js';
|
|
31
|
+
import './utils-3f271584.js';
|
|
32
|
+
import './UserProfileContext-eb7f4891.js';
|
|
33
33
|
import './ChannelList/components/ChannelListUI.js';
|
|
34
34
|
import './ChannelList/components/ChannelListHeader.js';
|
|
35
|
-
import './index-
|
|
35
|
+
import './index-aa29a843.js';
|
|
36
36
|
import './ui/Avatar.js';
|
|
37
37
|
import './ui/ImageRenderer.js';
|
|
38
38
|
import './ui/Icon.js';
|
|
@@ -40,12 +40,12 @@ import './ChannelList/components/AddChannel.js';
|
|
|
40
40
|
import './ui/IconButton.js';
|
|
41
41
|
import './CreateChannel.js';
|
|
42
42
|
import './CreateChannel/components/CreateChannelUI.js';
|
|
43
|
-
import './CreateChannelProvider-
|
|
43
|
+
import './CreateChannelProvider-4a26fc5d.js';
|
|
44
44
|
import './sendbirdSelectors.js';
|
|
45
45
|
import './CreateChannel/components/InviteUsers.js';
|
|
46
46
|
import './ui/Modal.js';
|
|
47
47
|
import 'react-dom';
|
|
48
|
-
import './index-
|
|
48
|
+
import './index-44342614.js';
|
|
49
49
|
import './ui/Button.js';
|
|
50
50
|
import './ui/UserListItem.js';
|
|
51
51
|
import './ui/MutedAvatarOverlay.js';
|
|
@@ -56,44 +56,44 @@ import './ui/SortByRow.js';
|
|
|
56
56
|
import './CreateChannel/components/SelectChannelType.js';
|
|
57
57
|
import './ChannelList/components/ChannelPreview.js';
|
|
58
58
|
import './ui/ChannelAvatar.js';
|
|
59
|
-
import './utils-
|
|
59
|
+
import './utils-2088448e.js';
|
|
60
60
|
import './ui/Badge.js';
|
|
61
|
-
import './index-
|
|
62
|
-
import './index-
|
|
61
|
+
import './index-dc672161.js';
|
|
62
|
+
import './index-2e23c452.js';
|
|
63
63
|
import './ui/Loader.js';
|
|
64
|
-
import './index-
|
|
65
|
-
import './index-
|
|
64
|
+
import './index-dd2a9d44.js';
|
|
65
|
+
import './index-561ddd27.js';
|
|
66
66
|
import './ui/MentionUserLabel.js';
|
|
67
67
|
import './ui/TextButton.js';
|
|
68
|
-
import './color-
|
|
68
|
+
import './color-9754a8a3.js';
|
|
69
69
|
import './Channel/components/TypingIndicator.js';
|
|
70
|
-
import './ChannelProvider-
|
|
71
|
-
import './compareIds-
|
|
72
|
-
import './const-
|
|
70
|
+
import './ChannelProvider-19d75ee9.js';
|
|
71
|
+
import './compareIds-5ff919a8.js';
|
|
72
|
+
import './const-21dcd857.js';
|
|
73
73
|
import '@sendbird/chat/message';
|
|
74
74
|
import './ui/ReactionButton.js';
|
|
75
|
-
import './useLongPress-
|
|
75
|
+
import './useLongPress-0dccc5ca.js';
|
|
76
76
|
import './ChannelList/components/ChannelPreviewAction.js';
|
|
77
77
|
import './EditUserProfile.js';
|
|
78
|
-
import './index-
|
|
78
|
+
import './index-82382d4a.js';
|
|
79
79
|
import './ui/Input.js';
|
|
80
|
-
import './index-
|
|
80
|
+
import './index-9e5cf819.js';
|
|
81
81
|
import './Channel/components/ChannelUI.js';
|
|
82
82
|
import './ui/ConnectionStatus.js';
|
|
83
83
|
import './Channel/components/ChannelHeader.js';
|
|
84
|
-
import './utils-
|
|
84
|
+
import './utils-a9e361cf.js';
|
|
85
85
|
import './Channel/components/MessageList.js';
|
|
86
86
|
import './Channel/components/Message.js';
|
|
87
87
|
import './Channel/components/SuggestedMentionList.js';
|
|
88
|
-
import './const-
|
|
89
|
-
import './ThreadProvider-
|
|
88
|
+
import './const-7588ac16.js';
|
|
89
|
+
import './ThreadProvider-0ebc9c60.js';
|
|
90
90
|
import './Thread/context/types.js';
|
|
91
91
|
import './ui/DateSeparator.js';
|
|
92
92
|
import './ui/MessageInput.js';
|
|
93
93
|
import 'react-dom/server';
|
|
94
94
|
import './ui/MessageContent.js';
|
|
95
95
|
import './ui/MessageItemMenu.js';
|
|
96
|
-
import './types-
|
|
96
|
+
import './types-d5ea9376.js';
|
|
97
97
|
import './ui/MessageItemReactionMenu.js';
|
|
98
98
|
import './ui/EmojiReactions.js';
|
|
99
99
|
import './ui/Tooltip.js';
|
|
@@ -117,13 +117,13 @@ import './VoicePlayer/useVoicePlayer.js';
|
|
|
117
117
|
import './ui/PlaybackTime.js';
|
|
118
118
|
import './Channel/components/FileViewer.js';
|
|
119
119
|
import './Channel/components/RemoveMessageModal.js';
|
|
120
|
-
import './Channel/components/FrozenNotification.js';
|
|
121
120
|
import './Channel/components/UnreadCount.js';
|
|
121
|
+
import './Channel/components/FrozenNotification.js';
|
|
122
122
|
import './Channel/components/MessageInput.js';
|
|
123
123
|
import './ui/QuoteMessageInput.js';
|
|
124
|
-
import './VoiceMessageInputWrapper-
|
|
124
|
+
import './VoiceMessageInputWrapper-c0ac4f9c.js';
|
|
125
125
|
import './VoiceRecorder/useVoiceRecorder.js';
|
|
126
|
-
import './index-
|
|
126
|
+
import './index-1a8fa4cd.js';
|
|
127
127
|
import './ChannelSettings/components/ChannelSettingsUI.js';
|
|
128
128
|
import './ChannelSettings/context.js';
|
|
129
129
|
import './ChannelSettings/components/ChannelProfile.js';
|
|
@@ -131,9 +131,9 @@ import './ChannelSettings/components/EditDetailsModal.js';
|
|
|
131
131
|
import './ChannelSettings/components/ModerationPanel.js';
|
|
132
132
|
import './ui/Accordion.js';
|
|
133
133
|
import './ui/AccordionGroup.js';
|
|
134
|
-
import './context-
|
|
134
|
+
import './context-01308b37.js';
|
|
135
135
|
import './ChannelSettings/components/UserListItem.js';
|
|
136
|
-
import './MemberList-
|
|
136
|
+
import './MemberList-e1088d7b.js';
|
|
137
137
|
import './ChannelSettings/components/LeaveChannel.js';
|
|
138
138
|
import './ChannelSettings/components/UserPanel.js';
|
|
139
139
|
import './MessageSearch/components/MessageSearchUI.js';
|
|
@@ -142,7 +142,7 @@ import './ui/MessageSearchItem.js';
|
|
|
142
142
|
import './ui/MessageSearchFileItem.js';
|
|
143
143
|
import './Thread/components/ThreadUI.js';
|
|
144
144
|
import './Thread/components/ParentMessageInfo.js';
|
|
145
|
-
import './RemoveMessageModal-
|
|
145
|
+
import './RemoveMessageModal-c25f1f20.js';
|
|
146
146
|
import './Thread/components/ParentMessageInfoItem.js';
|
|
147
147
|
import './ui/FileViewer.js';
|
|
148
148
|
import './Thread/components/ThreadHeader.js';
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog - v3
|
|
2
2
|
|
|
3
|
+
## [v3.4.1] (Mar 10 2023)
|
|
4
|
+
|
|
5
|
+
Fixes:
|
|
6
|
+
* Keep scroll if context menu is opened when receiving messages
|
|
7
|
+
* Handle Ephemeral channel
|
|
8
|
+
* Group channel list
|
|
9
|
+
* Remove the message receipt status (channel preview)
|
|
10
|
+
* Remove the unread message count (channel preview)
|
|
11
|
+
* Group channel
|
|
12
|
+
* Remove the message edit
|
|
13
|
+
* Remove the message delete
|
|
14
|
+
* Remove the message reactions
|
|
15
|
+
* Remove the message receipt status (message)
|
|
16
|
+
* Remove the message reply (quote_reply, thread)
|
|
17
|
+
* Group channel settings
|
|
18
|
+
* Remove the search in channel
|
|
19
|
+
* Open channel
|
|
20
|
+
* Remove the message edit
|
|
21
|
+
* Remove the message delete
|
|
22
|
+
* Clear timeout in useLayoutEffect of Message
|
|
23
|
+
* This removes memory leak warnings
|
|
24
|
+
|
|
3
25
|
## [v3.4.0] (Mar 6 2023)
|
|
4
26
|
|
|
5
27
|
### Voice Message
|
|
@@ -1,58 +1,60 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { g as getChannelTitle } from '../../utils-
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
2
|
+
import { g as getChannelTitle } from '../../utils-a9e361cf.js';
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-aa29a843.js';
|
|
4
4
|
import Icon, { IconColors, IconTypes } from '../../ui/Icon.js';
|
|
5
5
|
import IconButton from '../../ui/IconButton.js';
|
|
6
6
|
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
7
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
7
|
+
import { a as LocalizationContext } from '../../LocalizationContext-646420ca.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
10
|
-
import { u as useMediaQueryContext } from '../../MediaQueryContext-
|
|
11
|
-
import { n as noop } from '../../utils-
|
|
9
|
+
import { u as useChannelContext } from '../../ChannelProvider-19d75ee9.js';
|
|
10
|
+
import { u as useMediaQueryContext } from '../../MediaQueryContext-1441c35c.js';
|
|
11
|
+
import { n as noop } from '../../utils-3f271584.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../tslib.es6-
|
|
13
|
+
import '../../stringSet-ea4aeced.js';
|
|
14
|
+
import '../../tslib.es6-ca21063f.js';
|
|
15
15
|
import '../../ui/Avatar.js';
|
|
16
16
|
import '../../ui/ImageRenderer.js';
|
|
17
|
-
import '../../uuid-
|
|
18
|
-
import '../../utils-
|
|
19
|
-
import '../../index-
|
|
17
|
+
import '../../uuid-e2d2f65c.js';
|
|
18
|
+
import '../../utils-2088448e.js';
|
|
19
|
+
import '../../index-5e057577.js';
|
|
20
20
|
import '../../withSendbird.js';
|
|
21
|
-
import '../../_rollupPluginBabelHelpers-
|
|
22
|
-
import '../../UserProfileContext-
|
|
23
|
-
import '../../index-
|
|
24
|
-
import '../../topics-
|
|
25
|
-
import '../../index-
|
|
21
|
+
import '../../_rollupPluginBabelHelpers-5827233e.js';
|
|
22
|
+
import '../../UserProfileContext-eb7f4891.js';
|
|
23
|
+
import '../../index-2e23c452.js';
|
|
24
|
+
import '../../topics-2b0b1403.js';
|
|
25
|
+
import '../../index-100b143d.js';
|
|
26
26
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
27
|
-
import '../../compareIds-
|
|
28
|
-
import '../../const-
|
|
27
|
+
import '../../compareIds-5ff919a8.js';
|
|
28
|
+
import '../../const-21dcd857.js';
|
|
29
29
|
import '@sendbird/chat/groupChannel';
|
|
30
30
|
import '@sendbird/chat/message';
|
|
31
31
|
import '../../ui/ContextMenu.js';
|
|
32
32
|
import 'react-dom';
|
|
33
33
|
import '../../ui/SortByRow.js';
|
|
34
34
|
import '../../ui/ReactionButton.js';
|
|
35
|
-
import '../../consts-
|
|
35
|
+
import '../../consts-20a8f693.js';
|
|
36
36
|
|
|
37
|
-
var ChannelHeader = function () {
|
|
38
|
-
var
|
|
37
|
+
var ChannelHeader = function (_a) {
|
|
38
|
+
var _b, _c, _d;
|
|
39
39
|
|
|
40
|
+
var _e = _a.className,
|
|
41
|
+
className = _e === void 0 ? '' : _e;
|
|
40
42
|
var globalStore = useSendbirdStateContext();
|
|
41
|
-
var userId = (
|
|
42
|
-
var theme = (
|
|
43
|
+
var userId = (_b = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _b === void 0 ? void 0 : _b.userId;
|
|
44
|
+
var theme = (_c = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _c === void 0 ? void 0 : _c.theme;
|
|
43
45
|
var channelStore = useChannelContext();
|
|
44
46
|
var isMobile = useMediaQueryContext().isMobile;
|
|
45
47
|
var currentGroupChannel = channelStore.currentGroupChannel,
|
|
46
48
|
showSearchIcon = channelStore.showSearchIcon,
|
|
47
49
|
onSearchClick = channelStore.onSearchClick,
|
|
48
50
|
onChatHeaderActionClick = channelStore.onChatHeaderActionClick,
|
|
49
|
-
|
|
50
|
-
onBackClick =
|
|
51
|
-
var subTitle = (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.members) && ((
|
|
51
|
+
_f = channelStore.onBackClick,
|
|
52
|
+
onBackClick = _f === void 0 ? noop : _f;
|
|
53
|
+
var subTitle = (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.members) && ((_d = currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.members) === null || _d === void 0 ? void 0 : _d.length) !== 2;
|
|
52
54
|
var isMuted = (currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.myMutedState) === "muted";
|
|
53
55
|
var stringSet = useContext(LocalizationContext).stringSet;
|
|
54
56
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
55
|
-
className: "sendbird-chat-header"
|
|
57
|
+
className: "sendbird-chat-header ".concat(className)
|
|
56
58
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
57
59
|
className: "sendbird-chat-header__left"
|
|
58
60
|
}, isMobile && /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -84,7 +86,7 @@ var ChannelHeader = function () {
|
|
|
84
86
|
fillColor: IconColors.ON_BACKGROUND_2,
|
|
85
87
|
width: "24px",
|
|
86
88
|
height: "24px"
|
|
87
|
-
}), showSearchIcon && /*#__PURE__*/React__default.createElement(IconButton, {
|
|
89
|
+
}), showSearchIcon && !(currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.isEphemeral) && /*#__PURE__*/React__default.createElement(IconButton, {
|
|
88
90
|
className: "sendbird-chat-header__right__search",
|
|
89
91
|
width: "32px",
|
|
90
92
|
height: "32px",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelHeader.js","sources":["../../../src/smart-components/Channel/components/ChannelHeader/index.tsx"],"sourcesContent":["import './channel-header.scss';\nimport React, { useContext } from 'react';\n\nimport * as utils from './utils';\n\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\nimport IconButton from '../../../../ui/IconButton';\nimport ChannelAvatar from '../../../../ui/ChannelAvatar/index';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport { useMediaQueryContext } from '../../../../lib/MediaQueryContext';\nimport { noop } from '../../../../utils/utils'\n\nconst ChannelHeader: React.FC = () => {\n const globalStore = useSendbirdStateContext();\n const userId = globalStore?.config?.userId;\n const theme = globalStore?.config?.theme;\n\n const channelStore = useChannelContext();\n const { isMobile } = useMediaQueryContext();\n const {\n currentGroupChannel,\n showSearchIcon,\n onSearchClick,\n onChatHeaderActionClick,\n onBackClick = noop,\n } = channelStore;\n const subTitle = (currentGroupChannel?.members\n && currentGroupChannel?.members?.length !== 2);\n const isMuted = currentGroupChannel?.myMutedState === \"muted\";\n\n const { stringSet } = useContext(LocalizationContext);\n return (\n <div className
|
|
1
|
+
{"version":3,"file":"ChannelHeader.js","sources":["../../../src/smart-components/Channel/components/ChannelHeader/index.tsx"],"sourcesContent":["import './channel-header.scss';\nimport React, { useContext } from 'react';\n\nimport * as utils from './utils';\n\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconTypes, IconColors } from '../../../../ui/Icon';\nimport IconButton from '../../../../ui/IconButton';\nimport ChannelAvatar from '../../../../ui/ChannelAvatar/index';\nimport { LocalizationContext } from '../../../../lib/LocalizationContext';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport { useMediaQueryContext } from '../../../../lib/MediaQueryContext';\nimport { noop } from '../../../../utils/utils'\n\ninterface ChannelHeaderProps {\n className?: string;\n}\n\nconst ChannelHeader: React.FC<ChannelHeaderProps> = ({\n className = '',\n}) => {\n const globalStore = useSendbirdStateContext();\n const userId = globalStore?.config?.userId;\n const theme = globalStore?.config?.theme;\n\n const channelStore = useChannelContext();\n const { isMobile } = useMediaQueryContext();\n const {\n currentGroupChannel,\n showSearchIcon,\n onSearchClick,\n onChatHeaderActionClick,\n onBackClick = noop,\n } = channelStore;\n const subTitle = (currentGroupChannel?.members\n && currentGroupChannel?.members?.length !== 2);\n const isMuted = currentGroupChannel?.myMutedState === \"muted\";\n\n const { stringSet } = useContext(LocalizationContext);\n return (\n <div className={`sendbird-chat-header ${className}`}>\n <div className=\"sendbird-chat-header__left\">\n {\n isMobile && (\n <Icon\n className=\"sendbird-chat-header__icon_back\"\n onClick={onBackClick}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n type={IconTypes.ARROW_LEFT}\n />\n )\n }\n <ChannelAvatar\n theme={theme}\n channel={currentGroupChannel}\n userId={userId}\n height={32}\n width={32}\n />\n <Label\n className=\"sendbird-chat-header__left__title\"\n type={LabelTypography.H_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n {utils.getChannelTitle(currentGroupChannel, userId, stringSet)}\n </Label>\n <Label\n className=\"sendbird-chat-header__left__subtitle\"\n type={LabelTypography.BODY_1}\n color={LabelColors.ONBACKGROUND_2}\n >\n {subTitle}\n </Label>\n </div>\n <div className=\"sendbird-chat-header__right\">\n {\n ((typeof isMuted === 'string' && isMuted === 'true') || (typeof isMuted === 'boolean' && isMuted))\n && (\n <Icon\n className=\"sendbird-chat-header__right__mute\"\n type={IconTypes.NOTIFICATIONS_OFF_FILLED}\n fillColor={IconColors.ON_BACKGROUND_2}\n width=\"24px\"\n height=\"24px\"\n />\n )\n }\n {\n (showSearchIcon && !currentGroupChannel?.isEphemeral) && (\n <IconButton\n className=\"sendbird-chat-header__right__search\"\n width=\"32px\"\n height=\"32px\"\n onClick={onSearchClick}\n >\n <Icon\n type={IconTypes.SEARCH}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n />\n </IconButton>\n )\n }\n <IconButton\n className=\"sendbird-chat-header__right__info\"\n width=\"32px\"\n height=\"32px\"\n onClick={onChatHeaderActionClick}\n >\n <Icon\n type={IconTypes.INFO}\n fillColor={IconColors.PRIMARY}\n width=\"24px\"\n height=\"24px\"\n />\n </IconButton>\n </div>\n </div>\n );\n}\n\nexport default ChannelHeader;\n"],"names":["ChannelHeader","_a","_e","className","globalStore","useSendbirdStateContext","userId","_b","config","theme","_c","channelStore","useChannelContext","isMobile","useMediaQueryContext","currentGroupChannel","showSearchIcon","onSearchClick","onChatHeaderActionClick","_f","onBackClick","noop","subTitle","members","_d","length","isMuted","myMutedState","stringSet","useContext","LocalizationContext","React","concat","IconColors","PRIMARY","IconTypes","ARROW_LEFT","LabelTypography","H_2","LabelColors","ONBACKGROUND_1","utils","BODY_1","ONBACKGROUND_2","NOTIFICATIONS_OFF_FILLED","ON_BACKGROUND_2","isEphemeral","SEARCH","INFO"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAMA,aAAa,GAAiC,UAACC,EAAD,EAEnD;;;AADC,EAAA,IAAAC,EAAA,GAAAD,EAAA,CAAAE,SAAA;MAAAA,SAAS,GAAGD,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAEA,EAAd,CAAA;EAEA,IAAME,WAAW,GAAGC,uBAAuB,EAA3C,CAAA;AACA,EAAA,IAAMC,MAAM,GAAG,CAAAC,EAAA,GAAAH,WAAW,KAAX,IAAA,IAAAA,WAAW,KAAX,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,WAAW,CAAEI,MAAb,MAAqB,IAArB,IAAqBD,EAAA,KAAA,KAAA,CAArB,GAAqB,KAAA,CAArB,GAAqBA,EAAA,CAAAD,MAApC,CAAA;AACA,EAAA,IAAMG,KAAK,GAAG,CAAAC,EAAA,GAAAN,WAAW,KAAX,IAAA,IAAAA,WAAW,KAAX,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,WAAW,CAAEI,MAAb,MAAqB,IAArB,IAAqBE,EAAA,KAAA,KAAA,CAArB,GAAqB,KAAA,CAArB,GAAqBA,EAAA,CAAAD,KAAnC,CAAA;EAEA,IAAME,YAAY,GAAGC,iBAAiB,EAAtC,CAAA;AACQ,EAAA,IAAAC,QAAQ,GAAKC,oBAAoB,EAAA,SAAjC,CAAA;AAEN,EAAA,IAAAC,mBAAmB,GAKjBJ,YAAY,CAAAI,mBALd;AAAA,MACAC,cAAc,GAIZL,YAAY,CAJAK,cADd;AAAA,MAEAC,aAAa,GAGXN,YAAY,CAAAM,a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AAS,EAAC,qCADZ;AAEE,IAAA,KAAK,EAAC,MAFR;AAGE,IAAA,MAAM,EAAC,MAHT;AAIE,IAAA,OAAO,EAAEd,aAAAA;AAJX,GAAA,eAMEc,6BAAC,IAAD,EAAA;IACE,IAAI,EAAEI,SAAS,CAACY,MADlB;IAEE,SAAS,EAAEd,UAAU,CAACC,OAFxB;AAGE,IAAA,KAAK,EAAC,MAHR;AAIE,IAAA,MAAM,EAAC,MAAA;GAVX,CAAA,CAfN,eA8BEH,cAAA,CAAA,aAAA,CAAC,UAAD,EAAA;AACE,IAAA,SAAS,EAAC,mCADZ;AAEE,IAAA,KAAK,EAAC,MAFR;AAGE,IAAA,MAAM,EAAC,MAHT;AAIE,IAAA,OAAO,EAAEb,uBAAAA;AAJX,GAAA,eAMEa,6BAAC,IAAD,EAAA;IACE,IAAI,EAAEI,SAAS,CAACa,IADlB;IAEE,SAAS,EAAEf,UAAU,CAACC,OAFxB;AAGE,IAAA,KAAK,EAAC,MAHR;AAIE,IAAA,MAAM,EAAC,MAAA;GAVX,CAAA,CA9BF,CApCF,CADF,CAAA;AAmFD;;;;"}
|
|
@@ -1,56 +1,53 @@
|
|
|
1
|
-
import React__default
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useChannelContext
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
3
|
+
import { u as useChannelContext } from '../../ChannelProvider-19d75ee9.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-9e5cf819.js';
|
|
5
5
|
import ConnectionStatus from '../../ui/ConnectionStatus.js';
|
|
6
6
|
import ChannelHeader from './ChannelHeader.js';
|
|
7
7
|
import MessageList from './MessageList.js';
|
|
8
8
|
import TypingIndicator from './TypingIndicator.js';
|
|
9
|
-
import FrozenNotification from './FrozenNotification.js';
|
|
10
|
-
import UnreadCount from './UnreadCount.js';
|
|
11
9
|
import MessageInputWrapper from './MessageInput.js';
|
|
12
10
|
import '../../withSendbird.js';
|
|
13
|
-
import '../../_rollupPluginBabelHelpers-
|
|
14
|
-
import '../../UserProfileContext-
|
|
11
|
+
import '../../_rollupPluginBabelHelpers-5827233e.js';
|
|
12
|
+
import '../../UserProfileContext-eb7f4891.js';
|
|
15
13
|
import 'prop-types';
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../index-
|
|
18
|
-
import '../../topics-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../tslib.es6-
|
|
14
|
+
import '../../index-2e23c452.js';
|
|
15
|
+
import '../../index-5e057577.js';
|
|
16
|
+
import '../../topics-2b0b1403.js';
|
|
17
|
+
import '../../index-100b143d.js';
|
|
18
|
+
import '../../tslib.es6-ca21063f.js';
|
|
21
19
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
22
|
-
import '../../compareIds-
|
|
23
|
-
import '../../const-
|
|
20
|
+
import '../../compareIds-5ff919a8.js';
|
|
21
|
+
import '../../const-21dcd857.js';
|
|
24
22
|
import '@sendbird/chat/groupChannel';
|
|
25
|
-
import '../../uuid-
|
|
23
|
+
import '../../uuid-e2d2f65c.js';
|
|
26
24
|
import '@sendbird/chat/message';
|
|
27
25
|
import '../../ui/ContextMenu.js';
|
|
28
26
|
import 'react-dom';
|
|
29
27
|
import '../../ui/SortByRow.js';
|
|
30
|
-
import '../../index-
|
|
31
|
-
import '../../stringSet-
|
|
28
|
+
import '../../index-aa29a843.js';
|
|
29
|
+
import '../../stringSet-ea4aeced.js';
|
|
32
30
|
import '../../ui/ReactionButton.js';
|
|
33
31
|
import '../../ui/ImageRenderer.js';
|
|
34
32
|
import '../../ui/Icon.js';
|
|
35
|
-
import '../../consts-
|
|
36
|
-
import '../../LocalizationContext-
|
|
33
|
+
import '../../consts-20a8f693.js';
|
|
34
|
+
import '../../LocalizationContext-646420ca.js';
|
|
37
35
|
import '../../ui/Loader.js';
|
|
38
|
-
import '../../utils-
|
|
36
|
+
import '../../utils-a9e361cf.js';
|
|
39
37
|
import '../../ui/IconButton.js';
|
|
40
38
|
import '../../ui/ChannelAvatar.js';
|
|
41
39
|
import '../../ui/Avatar.js';
|
|
42
|
-
import '../../utils-
|
|
43
|
-
import '../../MediaQueryContext-
|
|
44
|
-
import '../../utils-
|
|
45
|
-
import '../../index-94f8b701.js';
|
|
40
|
+
import '../../utils-2088448e.js';
|
|
41
|
+
import '../../MediaQueryContext-1441c35c.js';
|
|
42
|
+
import '../../utils-3f271584.js';
|
|
46
43
|
import './Message.js';
|
|
47
44
|
import './SuggestedMentionList.js';
|
|
48
|
-
import '../../const-
|
|
49
|
-
import '../../ThreadProvider-
|
|
45
|
+
import '../../const-7588ac16.js';
|
|
46
|
+
import '../../ThreadProvider-0ebc9c60.js';
|
|
50
47
|
import '../../Thread/context/types.js';
|
|
51
48
|
import '@sendbird/chat';
|
|
52
49
|
import '../../ui/DateSeparator.js';
|
|
53
|
-
import '../../color-
|
|
50
|
+
import '../../color-9754a8a3.js';
|
|
54
51
|
import '../../ui/MessageInput.js';
|
|
55
52
|
import 'react-dom/server';
|
|
56
53
|
import '../../ui/Button.js';
|
|
@@ -58,10 +55,11 @@ import '../../ui/MentionUserLabel.js';
|
|
|
58
55
|
import '../../ui/MessageContent.js';
|
|
59
56
|
import '../../ui/UserProfile.js';
|
|
60
57
|
import '../../sendbirdSelectors.js';
|
|
61
|
-
import '../../index-
|
|
62
|
-
import '../../index-
|
|
58
|
+
import '../../index-dc672161.js';
|
|
59
|
+
import '../../index-dd2a9d44.js';
|
|
60
|
+
import '../../index-561ddd27.js';
|
|
63
61
|
import '../../ui/MessageItemMenu.js';
|
|
64
|
-
import '../../types-
|
|
62
|
+
import '../../types-d5ea9376.js';
|
|
65
63
|
import '../../ui/MessageItemReactionMenu.js';
|
|
66
64
|
import '../../ui/EmojiReactions.js';
|
|
67
65
|
import '../../ui/Tooltip.js';
|
|
@@ -78,24 +76,26 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
78
76
|
import '../../ui/OGMessageItemBody.js';
|
|
79
77
|
import '../../ui/UnknownMessageItemBody.js';
|
|
80
78
|
import '../../ui/QuoteMessage.js';
|
|
81
|
-
import '../../useLongPress-
|
|
79
|
+
import '../../useLongPress-0dccc5ca.js';
|
|
82
80
|
import '../../ui/BottomSheet.js';
|
|
83
|
-
import '../../index-
|
|
81
|
+
import '../../index-44342614.js';
|
|
84
82
|
import '../../ui/ThreadReplies.js';
|
|
85
83
|
import '../../ui/VoiceMessageItemBody.js';
|
|
86
84
|
import '../../ui/ProgressBar.js';
|
|
87
85
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
88
|
-
import '../../index-
|
|
86
|
+
import '../../index-1de84663.js';
|
|
89
87
|
import '../../VoiceRecorder/context.js';
|
|
90
88
|
import '../../lame.all.js';
|
|
91
89
|
import '../../ui/PlaybackTime.js';
|
|
92
90
|
import './FileViewer.js';
|
|
93
91
|
import './RemoveMessageModal.js';
|
|
94
92
|
import '../../ui/Modal.js';
|
|
93
|
+
import './UnreadCount.js';
|
|
94
|
+
import './FrozenNotification.js';
|
|
95
95
|
import '../../ui/QuoteMessageInput.js';
|
|
96
|
-
import '../../VoiceMessageInputWrapper-
|
|
96
|
+
import '../../VoiceMessageInputWrapper-c0ac4f9c.js';
|
|
97
97
|
import '../../VoiceRecorder/useVoiceRecorder.js';
|
|
98
|
-
import '../../index-
|
|
98
|
+
import '../../index-1a8fa4cd.js';
|
|
99
99
|
|
|
100
100
|
var ChannelUI = function (_a) {
|
|
101
101
|
var _b, _c, _d, _e;
|
|
@@ -114,31 +114,9 @@ var ChannelUI = function (_a) {
|
|
|
114
114
|
renderSendMessageIcon = _a.renderSendMessageIcon;
|
|
115
115
|
|
|
116
116
|
var _f = useChannelContext(),
|
|
117
|
-
currentGroupChannel = _f.currentGroupChannel,
|
|
118
117
|
channelUrl = _f.channelUrl,
|
|
119
|
-
isInvalid = _f.isInvalid
|
|
120
|
-
unreadSince = _f.unreadSince,
|
|
121
|
-
loading = _f.loading,
|
|
122
|
-
setInitialTimeStamp = _f.setInitialTimeStamp,
|
|
123
|
-
setAnimatedMessageId = _f.setAnimatedMessageId,
|
|
124
|
-
setHighLightedMessageId = _f.setHighLightedMessageId,
|
|
125
|
-
scrollRef = _f.scrollRef,
|
|
126
|
-
messagesDispatcher = _f.messagesDispatcher,
|
|
127
|
-
disableMarkAsRead = _f.disableMarkAsRead;
|
|
118
|
+
isInvalid = _f.isInvalid;
|
|
128
119
|
|
|
129
|
-
var _g = useState(0),
|
|
130
|
-
unreadCount = _g[0],
|
|
131
|
-
setUnreadCount = _g[1];
|
|
132
|
-
|
|
133
|
-
useEffect(function () {
|
|
134
|
-
// simple debounce to avoid flicker of UnreadCount badge
|
|
135
|
-
var handler = setTimeout(function () {
|
|
136
|
-
setUnreadCount(currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.unreadMessageCount);
|
|
137
|
-
}, 1000);
|
|
138
|
-
return function () {
|
|
139
|
-
clearTimeout(handler);
|
|
140
|
-
};
|
|
141
|
-
}, [currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.unreadMessageCount]);
|
|
142
120
|
var globalStore = useSendbirdStateContext();
|
|
143
121
|
var sdkError = (_c = (_b = globalStore === null || globalStore === void 0 ? void 0 : globalStore.stores) === null || _b === void 0 ? void 0 : _b.sdkStore) === null || _c === void 0 ? void 0 : _c.error;
|
|
144
122
|
var logger = (_d = globalStore === null || globalStore === void 0 ? void 0 : globalStore.config) === null || _d === void 0 ? void 0 : _d.logger;
|
|
@@ -181,44 +159,14 @@ var ChannelUI = function (_a) {
|
|
|
181
159
|
|
|
182
160
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
183
161
|
className: "sendbird-conversation"
|
|
184
|
-
}, (renderChannelHeader === null || renderChannelHeader === void 0 ? void 0 : renderChannelHeader()) || /*#__PURE__*/React__default.createElement(ChannelHeader,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
var _a, _b, _c;
|
|
189
|
-
|
|
190
|
-
setUnreadCount(0);
|
|
191
|
-
|
|
192
|
-
if ((_a = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _a === void 0 ? void 0 : _a.scrollTop) {
|
|
193
|
-
scrollRef.current.scrollTop = ((_b = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _b === void 0 ? void 0 : _b.scrollHeight) - ((_c = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (!disableMarkAsRead) {
|
|
197
|
-
try {
|
|
198
|
-
currentGroupChannel === null || currentGroupChannel === void 0 ? void 0 : currentGroupChannel.markAsRead();
|
|
199
|
-
} catch (_d) {//
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
messagesDispatcher({
|
|
203
|
-
type: MARK_AS_READ,
|
|
204
|
-
payload: {
|
|
205
|
-
channel: currentGroupChannel
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
setInitialTimeStamp(null);
|
|
211
|
-
setAnimatedMessageId(null);
|
|
212
|
-
setHighLightedMessageId(null);
|
|
213
|
-
}
|
|
214
|
-
}), loading ? /*#__PURE__*/React__default.createElement("div", {
|
|
215
|
-
className: "sendbird-conversation"
|
|
216
|
-
}, (renderPlaceholderLoader === null || renderPlaceholderLoader === void 0 ? void 0 : renderPlaceholderLoader()) || /*#__PURE__*/React__default.createElement(PlaceHolder, {
|
|
217
|
-
type: PlaceHolderTypes.LOADING
|
|
218
|
-
})) : /*#__PURE__*/React__default.createElement(MessageList, {
|
|
162
|
+
}, (renderChannelHeader === null || renderChannelHeader === void 0 ? void 0 : renderChannelHeader()) || /*#__PURE__*/React__default.createElement(ChannelHeader, {
|
|
163
|
+
className: "sendbird-conversation__channel-header"
|
|
164
|
+
}), /*#__PURE__*/React__default.createElement(MessageList, {
|
|
165
|
+
className: "sendbird-conversation__message-list",
|
|
219
166
|
renderMessage: renderMessage,
|
|
220
167
|
renderPlaceholderEmpty: renderPlaceholderEmpty,
|
|
221
|
-
renderCustomSeparator: renderCustomSeparator
|
|
168
|
+
renderCustomSeparator: renderCustomSeparator,
|
|
169
|
+
renderPlaceholderLoader: renderPlaceholderLoader
|
|
222
170
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
223
171
|
className: "sendbird-conversation__footer"
|
|
224
172
|
}, (renderMessageInput === null || renderMessageInput === void 0 ? void 0 : renderMessageInput()) || /*#__PURE__*/React__default.createElement(MessageInputWrapper, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport FrozenNotification from '../FrozenNotification';\nimport UnreadCount from '../UnreadCount';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\nimport * as messageActionTypes from '../../context/dux/actionTypes';\n\nexport interface ChannelUIProps {\n isLoading?: boolean;\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderFileUploadIcon?: () => React.ReactElement;\n renderVoiceMessageIcon?: () => React.ReactElement;\n renderSendMessageIcon?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n isLoading,\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n renderFileUploadIcon,\n renderVoiceMessageIcon,\n renderSendMessageIcon,\n}: ChannelUIProps) => {\n const {\n currentGroupChannel,\n channelUrl,\n isInvalid,\n unreadSince,\n loading,\n setInitialTimeStamp,\n setAnimatedMessageId,\n setHighLightedMessageId,\n scrollRef,\n messagesDispatcher,\n disableMarkAsRead,\n } = useChannelContext();\n const [unreadCount, setUnreadCount] = useState(0);\n useEffect(() => {\n // simple debounce to avoid flicker of UnreadCount badge\n const handler = setTimeout(() => {\n setUnreadCount(currentGroupChannel?.unreadMessageCount);\n }, 1000);\n return () => {\n clearTimeout(handler);\n }\n }, [currentGroupChannel?.unreadMessageCount]);\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (isLoading) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>);\n }\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {\n renderChannelHeader?.() || (\n <ChannelHeader />\n )\n }\n {\n currentGroupChannel?.isFrozen && (\n <FrozenNotification />\n )\n }\n {\n unreadCount > 0 && (\n <UnreadCount\n count={unreadCount}\n time={unreadSince}\n onClick={() => {\n setUnreadCount(0);\n if (scrollRef?.current?.scrollTop) {\n scrollRef.current.scrollTop = scrollRef?.current?.scrollHeight - scrollRef?.current?.offsetHeight;\n }\n if (!disableMarkAsRead) {\n try {\n currentGroupChannel?.markAsRead();\n } catch {\n //\n }\n messagesDispatcher({\n type: messageActionTypes.MARK_AS_READ,\n payload: { channel: currentGroupChannel },\n });\n }\n setInitialTimeStamp(null);\n setAnimatedMessageId(null);\n setHighLightedMessageId(null);\n }}\n />\n )\n }\n {\n loading\n ? (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>\n ) : (\n <MessageList\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n />\n )\n }\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper\n renderFileUploadIcon={renderFileUploadIcon}\n renderVoiceMessageIcon={renderVoiceMessageIcon}\n renderSendMessageIcon={renderSendMessageIcon}\n />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","_f","useChannelContext","currentGroupChannel","channelUrl","isInvalid","unreadSince","loading","setInitialTimeStamp","setAnimatedMessageId","setHighLightedMessageId","scrollRef","messagesDispatcher","disableMarkAsRead","_g","useState","unreadCount","setUnreadCount","useEffect","handler","setTimeout","unreadMessageCount","clearTimeout","globalStore","useSendbirdStateContext","sdkError","_c","_b","stores","sdkStore","error","logger","_d","config","isOnline","_e","React","PlaceHolderTypes","LOADING","NO_CHANNELS","WRONG","info","isFrozen","current","scrollTop","scrollHeight","offsetHeight","markAsRead","type","messageActionTypes","payload","channel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAMA,SAAS,GAA6B,UAACC,EAAD,EAa3B;;;AAZf,EAAA,IAAAC,SAAS,GAAAD,EAAA,CAAAC,SAAT;AAAA,MACAC,uBAAuB,GAAAF,EAAA,CAAAE,uBADvB;AAAA,MAEAC,wBAAwB,GAAAH,EAAA,CAAAG,wBAFxB;AAAA,MAGAC,sBAAsB,GAAAJ,EAAA,CAAAI,sBAHtB;AAAA,MAIAC,mBAAmB,GAAAL,EAAA,CAAAK,mBAJnB;AAAA,MAKAC,aAAa,GAAAN,EAAA,CAAAM,aALb;AAAA,MAMAC,kBAAkB,GAAAP,EAAA,CAAAO,kBANlB;AAAA,MAOAC,qBAAqB,GAAAR,EAAA,CAAAQ,qBAPrB;AAAA,MAQAC,qBAAqB,GAAAT,EAAA,CAAAS,qBARrB;AAAA,MASAC,oBAAoB,0BATpB;AAAA,MAUAC,sBAAsB,GAAAX,EAAA,CAAAW,sBAVtB;AAAA,MAWAC,qBAAqB,GAAAZ,EAAA,CAAAY,qBAXrB,CAAA;;EAaM,IAAAC,KAYFC,iBAAiB,EAZf;AAAA,MACJC,mBAAmB,yBADf;AAAA,MAEJC,UAAU,GAAAH,EAAA,CAAAG,UAFN;AAAA,MAGJC,SAAS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kBACEwC,cAAC,CAAA,aAAA,CAAA,eAAD,EAHN,IAAA,CAAA,EAOI,CAACF,QAAD,iBACEE,cAAA,CAAA,aAAA,CAAC,gBAAD,EAAA,IAAA,CARN,CAVF,CAzDF,CADF,CAAA;AAmFD;;;;"}
|
|
1
|
+
{"version":3,"file":"ChannelUI.js","sources":["../../../src/smart-components/Channel/components/ChannelUI/index.tsx"],"sourcesContent":["import './channel-ui.scss';\n\nimport React from 'react';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\n\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport ConnectionStatus from '../../../../ui/ConnectionStatus';\nimport ChannelHeader from '../ChannelHeader';\nimport MessageList from '../MessageList';\nimport TypingIndicator from '../TypingIndicator';\nimport MessageInputWrapper from '../MessageInput';\nimport { RenderCustomSeparatorProps, RenderMessageProps } from '../../../../types';\n\nexport interface ChannelUIProps {\n isLoading?: boolean;\n renderPlaceholderLoader?: () => React.ReactElement;\n renderPlaceholderInvalid?: () => React.ReactElement;\n renderPlaceholderEmpty?: () => React.ReactElement;\n renderChannelHeader?: () => React.ReactElement;\n renderMessage?: (props: RenderMessageProps) => React.ReactElement;\n renderMessageInput?: () => React.ReactElement;\n renderFileUploadIcon?: () => React.ReactElement;\n renderVoiceMessageIcon?: () => React.ReactElement;\n renderSendMessageIcon?: () => React.ReactElement;\n renderTypingIndicator?: () => React.ReactElement;\n renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;\n}\n\nconst ChannelUI: React.FC<ChannelUIProps> = ({\n isLoading,\n renderPlaceholderLoader,\n renderPlaceholderInvalid,\n renderPlaceholderEmpty,\n renderChannelHeader,\n renderMessage,\n renderMessageInput,\n renderTypingIndicator,\n renderCustomSeparator,\n renderFileUploadIcon,\n renderVoiceMessageIcon,\n renderSendMessageIcon,\n}: ChannelUIProps) => {\n const {\n channelUrl,\n isInvalid,\n } = useChannelContext();\n\n const globalStore = useSendbirdStateContext();\n const sdkError = globalStore?.stores?.sdkStore?.error;\n const logger = globalStore?.config?.logger;\n const isOnline = globalStore?.config?.isOnline;\n\n if (isLoading) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderLoader?.() || (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n }\n </div>);\n }\n\n if (!channelUrl) {\n return (<div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n }\n </div>);\n }\n if (isInvalid) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n }\n </div>\n );\n }\n if (sdkError) {\n return (\n <div className=\"sendbird-conversation\">\n {\n renderPlaceholderInvalid?.() || (\n <PlaceHolder\n type={PlaceHolderTypes.WRONG}\n retryToConnect={() => {\n logger.info('Channel: reconnecting');\n // reconnect();\n }}\n />\n )\n }\n </div>\n );\n }\n return (\n <div className='sendbird-conversation'>\n {renderChannelHeader?.() || (\n <ChannelHeader className=\"sendbird-conversation__channel-header\" />\n )}\n <MessageList\n className=\"sendbird-conversation__message-list\"\n renderMessage={renderMessage}\n renderPlaceholderEmpty={renderPlaceholderEmpty}\n renderCustomSeparator={renderCustomSeparator}\n renderPlaceholderLoader={renderPlaceholderLoader}\n />\n <div className=\"sendbird-conversation__footer\">\n {\n renderMessageInput?.() || (\n <MessageInputWrapper\n renderFileUploadIcon={renderFileUploadIcon}\n renderVoiceMessageIcon={renderVoiceMessageIcon}\n renderSendMessageIcon={renderSendMessageIcon}\n />\n )\n }\n <div className=\"sendbird-conversation__footer__typing-indicator\">\n {\n renderTypingIndicator?.() || (\n <TypingIndicator />\n )\n }\n {\n !isOnline && (\n <ConnectionStatus />\n )\n }\n </div>\n </div>\n </div>\n );\n}\n\nexport default ChannelUI;\n"],"names":["ChannelUI","_a","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","_f","useChannelContext","channelUrl","isInvalid","globalStore","useSendbirdStateContext","sdkError","_c","_b","stores","sdkStore","error","logger","_d","config","isOnline","_e","React","PlaceHolderTypes","LOADING","NO_CHANNELS","WRONG","info"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,IAAMA,SAAS,GAA6B,UAACC,EAAD,EAa3B;;;AAZf,EAAA,IAAAC,SAAS,GAAAD,EAAA,CAAAC,SAAT;AAAA,MACAC,uBAAuB,GAAAF,EAAA,CAAAE,uBADvB;AAAA,MAEAC,wBAAwB,GAAAH,EAAA,CAAAG,wBAFxB;AAAA,MAGAC,sBAAsB,GAAAJ,EAAA,CAAAI,sBAHtB;AAAA,MAIAC,mBAAmB,GAAAL,EAAA,CAAAK,mBAJnB;AAAA,MAKAC,aAAa,GAAAN,EAAA,CAAAM,aALb;AAAA,MAMAC,kBAAkB,GAAAP,EAAA,CAAAO,kBANlB;AAAA,MAOAC,qBAAqB,GAAAR,EAAA,CAAAQ,qBAPrB;AAAA,MAQAC,qBAAqB,GAAAT,EAAA,CAAAS,qBARrB;AAAA,MASAC,oBAAoB,0BATpB;AAAA,MAUAC,sBAAsB,GAAAX,EAAA,CAAAW,sBAVtB;AAAA,MAWAC,qBAAqB,GAAAZ,EAAA,CAAAY,qBAXrB,CAAA;;EAaM,IAAAC,EAAA,GAGFC,iBAAiB,EAHf;AAAA,MACJC,UAAU,GAAAF,EAAA,CAAAE,UADN;AAAA,MAEJC,SAAS,GAAAH,EAAA,CAAAG,SAFL,CAAA;;EAKN,IAAMC,WAAW,GAAGC,uBAAuB,EAA3C,CAAA;EACA,IAAMC,QAAQ,GAAG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