@sendbird/uikit-react 3.6.7 → 3.6.8-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +57 -49
- package/App.js.map +1 -1
- package/CHANGELOG.md +63 -0
- package/Channel/components/ChannelHeader.js +20 -19
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +45 -41
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +16 -15
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +38 -36
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +34 -32
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageList.js +41 -60
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +18 -17
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +18 -17
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +16 -15
- package/Channel/components/TypingIndicator.js.map +1 -1
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +13 -12
- package/Channel/context.js.map +1 -1
- package/Channel/utils/compareMessagesForGrouping.js +22 -0
- package/Channel/utils/compareMessagesForGrouping.js.map +1 -0
- package/Channel/utils/getMessagePartsInfo.js +38 -0
- package/Channel/utils/getMessagePartsInfo.js.map +1 -0
- package/Channel.js +45 -41
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +15 -15
- package/ChannelList/components/ChannelListHeader.js +6 -6
- package/ChannelList/components/ChannelListUI.js +31 -30
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +27 -26
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +31 -30
- package/ChannelList.js.map +1 -1
- package/{ChannelListProvider-fc14f42d.js → ChannelListProvider-8bad6b5d.js} +11 -14
- package/ChannelListProvider-8bad6b5d.js.map +1 -0
- package/{ChannelProvider-78e85f32.js → ChannelProvider-849524b4.js} +31 -331
- package/ChannelProvider-849524b4.js.map +1 -0
- package/ChannelSettings/components/ChannelProfile.js +11 -11
- package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +14 -14
- package/ChannelSettings/components/UserListItem.js +10 -10
- package/ChannelSettings/components/UserPanel.js +13 -13
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +17 -17
- package/CreateChannel/components/CreateChannelUI.js +13 -13
- package/CreateChannel/components/InviteUsers.js +13 -13
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +13 -13
- package/{CreateChannelProvider-fe23c38f.js → CreateChannelProvider-05a17cd7.js} +1 -1
- package/{CreateChannelProvider-fe23c38f.js.map → CreateChannelProvider-05a17cd7.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +9 -9
- package/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/EditUserProfile.js +12 -12
- package/{LocalizationContext-5fe9b59d.js → LocalizationContext-8781208d.js} +3 -3
- package/{LocalizationContext-5fe9b59d.js.map → LocalizationContext-8781208d.js.map} +1 -1
- package/{MediaQueryContext-66b59195.js → MediaQueryContext-2ef9f34f.js} +1 -1
- package/{MediaQueryContext-66b59195.js.map → MediaQueryContext-2ef9f34f.js.map} +1 -1
- package/{MemberList-c03817ad.js → MemberList-41b2fd92.js} +5 -5
- package/{MemberList-c03817ad.js.map → MemberList-41b2fd92.js.map} +1 -1
- package/{useDirtyGetMentions-3f7692ab.js → Message/hooks/useDirtyGetMentions.js} +3 -2
- package/Message/hooks/useDirtyGetMentions.js.map +1 -0
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +1 -1
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/OpenChannel/components/OpenChannelInput.js +20 -19
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +30 -38
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +33 -32
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +33 -32
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +8 -8
- package/OpenChannel.js +33 -32
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +3 -3
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +13 -13
- package/{OpenChannelListProvider-5d21932a.js → OpenChannelListProvider-573391ab.js} +3 -3
- package/{OpenChannelListProvider-5d21932a.js.map → OpenChannelListProvider-573391ab.js.map} +1 -1
- package/{OpenChannelProvider-a6f4f92a.js → OpenChannelProvider-ac1c9c33.js} +7 -7
- package/OpenChannelProvider-ac1c9c33.js.map +1 -0
- package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +17 -17
- package/{RemoveMessageModal-0d438e31.js → RemoveMessageModal-6a47b7bb.js} +3 -3
- package/RemoveMessageModal-6a47b7bb.js.map +1 -0
- package/SendbirdProvider.js +24 -21
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +36 -34
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +21 -21
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +39 -37
- package/Thread/components/ThreadList.js.map +1 -1
- package/Thread/components/ThreadListItem.js +40 -38
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +32 -30
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +43 -41
- package/Thread/components/ThreadUI.js.map +1 -1
- package/Thread/context.js +8 -8
- package/Thread.js +43 -41
- package/Thread.js.map +1 -1
- package/{ThreadProvider-2a4356a2.js → ThreadProvider-9e14db75.js} +12 -11
- package/ThreadProvider-9e14db75.js.map +1 -0
- package/{UserProfileContext-8b8f3e3a.js → UserProfileContext-3be56f3a.js} +1 -1
- package/{UserProfileContext-8b8f3e3a.js.map → UserProfileContext-3be56f3a.js.map} +1 -1
- package/{VoiceMessageInputWrapper-b8742ea1.js → VoiceMessageInputWrapper-be6706b2.js} +7 -7
- package/{VoiceMessageInputWrapper-b8742ea1.js.map → VoiceMessageInputWrapper-be6706b2.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +9 -9
- package/VoiceRecorder/context.js +9 -9
- package/VoiceRecorder/useVoiceRecorder.js +8 -8
- package/{WebAudioUtils-63418113.js → WebAudioUtils-9b10fbb0.js} +2 -2
- package/{WebAudioUtils-63418113.js.map → WebAudioUtils-9b10fbb0.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-90ff7fc4.js → _rollupPluginBabelHelpers-404d1a9c.js} +1 -1
- package/_rollupPluginBabelHelpers-404d1a9c.js.map +1 -0
- package/{actionTypes-66bf934b.js → actionTypes-a16bc0a0.js} +1 -1
- package/{actionTypes-66bf934b.js.map → actionTypes-a16bc0a0.js.map} +1 -1
- package/cjs/App.js +57 -49
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +20 -19
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +45 -41
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +16 -15
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +41 -39
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +39 -37
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +47 -66
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +18 -17
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +18 -17
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +16 -15
- package/cjs/Channel/components/TypingIndicator.js.map +1 -1
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +13 -12
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/utils/compareMessagesForGrouping.js +26 -0
- package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -0
- package/cjs/Channel/utils/getMessagePartsInfo.js +42 -0
- package/cjs/Channel/utils/getMessagePartsInfo.js.map +1 -0
- package/cjs/Channel.js +45 -41
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +15 -15
- package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
- package/cjs/ChannelList/components/ChannelListUI.js +31 -30
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +27 -26
- 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 +31 -30
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/{ChannelListProvider-c1f3cf4a.js → ChannelListProvider-11d605eb.js} +11 -14
- package/cjs/ChannelListProvider-11d605eb.js.map +1 -0
- package/cjs/{ChannelProvider-633edf61.js → ChannelProvider-58b2dd24.js} +109 -414
- package/cjs/ChannelProvider-58b2dd24.js.map +1 -0
- package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
- package/cjs/ChannelSettings/components/UserListItem.js +10 -10
- package/cjs/ChannelSettings/components/UserPanel.js +13 -13
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +17 -17
- package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
- package/cjs/CreateChannel/components/InviteUsers.js +13 -13
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +13 -13
- package/cjs/{CreateChannelProvider-32102712.js → CreateChannelProvider-ea0ac249.js} +1 -1
- package/cjs/{CreateChannelProvider-32102712.js.map → CreateChannelProvider-ea0ac249.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +9 -9
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/{LocalizationContext-a15ec4eb.js → LocalizationContext-98e10f52.js} +3 -3
- package/cjs/{LocalizationContext-a15ec4eb.js.map → LocalizationContext-98e10f52.js.map} +1 -1
- package/cjs/{MediaQueryContext-80d10d7b.js → MediaQueryContext-add76360.js} +1 -1
- package/cjs/{MediaQueryContext-80d10d7b.js.map → MediaQueryContext-add76360.js.map} +1 -1
- package/cjs/{MemberList-5303bbbb.js → MemberList-ae4434a0.js} +5 -5
- package/cjs/{MemberList-5303bbbb.js.map → MemberList-ae4434a0.js.map} +1 -1
- package/cjs/{useDirtyGetMentions-a37639f1.js → Message/hooks/useDirtyGetMentions.js} +4 -1
- package/cjs/Message/hooks/useDirtyGetMentions.js.map +1 -0
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +11 -11
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/cjs/OpenChannel/components/OpenChannelInput.js +20 -19
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +32 -40
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +33 -32
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +33 -32
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +8 -8
- package/cjs/OpenChannel.js +33 -32
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +3 -3
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/{OpenChannelListProvider-49874b88.js → OpenChannelListProvider-8e908f4d.js} +3 -3
- package/cjs/{OpenChannelListProvider-49874b88.js.map → OpenChannelListProvider-8e908f4d.js.map} +1 -1
- package/cjs/{OpenChannelProvider-c2b3dc2c.js → OpenChannelProvider-7b3b81b1.js} +7 -7
- package/cjs/OpenChannelProvider-7b3b81b1.js.map +1 -0
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +17 -17
- package/cjs/{RemoveMessageModal-271f1251.js → RemoveMessageModal-33422173.js} +3 -3
- package/cjs/RemoveMessageModal-33422173.js.map +1 -0
- package/cjs/SendbirdProvider.js +24 -21
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +38 -36
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +21 -21
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +39 -37
- package/cjs/Thread/components/ThreadList.js.map +1 -1
- package/cjs/Thread/components/ThreadListItem.js +42 -40
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +34 -32
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +43 -41
- package/cjs/Thread/components/ThreadUI.js.map +1 -1
- package/cjs/Thread/context.js +8 -8
- package/cjs/Thread.js +43 -41
- package/cjs/Thread.js.map +1 -1
- package/cjs/{ThreadProvider-8d2ce923.js → ThreadProvider-f7ee365b.js} +12 -11
- package/cjs/ThreadProvider-f7ee365b.js.map +1 -0
- package/cjs/{UserProfileContext-f8f1cee7.js → UserProfileContext-b249921b.js} +1 -1
- package/cjs/{UserProfileContext-f8f1cee7.js.map → UserProfileContext-b249921b.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-e8d7b9ba.js → VoiceMessageInputWrapper-a365a098.js} +9 -9
- package/cjs/{VoiceMessageInputWrapper-e8d7b9ba.js.map → VoiceMessageInputWrapper-a365a098.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +9 -9
- package/cjs/VoiceRecorder/context.js +9 -9
- package/cjs/VoiceRecorder/useVoiceRecorder.js +8 -8
- package/cjs/{WebAudioUtils-88dbfaed.js → WebAudioUtils-a6402df3.js} +2 -2
- package/cjs/{WebAudioUtils-88dbfaed.js.map → WebAudioUtils-a6402df3.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-0d9d52a5.js → _rollupPluginBabelHelpers-af83a471.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-af83a471.js.map +1 -0
- package/cjs/{actionTypes-974dfe33.js → actionTypes-200d8a9f.js} +1 -1
- package/cjs/{actionTypes-974dfe33.js.map → actionTypes-200d8a9f.js.map} +1 -1
- package/cjs/{color-1e9cc481.js → color-31d6570a.js} +1 -1
- package/cjs/{color-1e9cc481.js.map → color-31d6570a.js.map} +1 -1
- package/cjs/{compareIds-0344920c.js → compareIds-e79c9a5a.js} +1 -1
- package/cjs/{compareIds-0344920c.js.map → compareIds-e79c9a5a.js.map} +1 -1
- package/cjs/{const-0d4d91cd.js → const-a3aa0fd6.js} +1 -1
- package/cjs/{const-0d4d91cd.js.map → const-a3aa0fd6.js.map} +1 -1
- package/cjs/{const-182fe978.js → const-c4593fa8.js} +1 -1
- package/cjs/{const-182fe978.js.map → const-c4593fa8.js.map} +1 -1
- package/cjs/{consts-10e5b075.js → consts-0ce6dc5f.js} +1 -1
- package/cjs/{consts-10e5b075.js.map → consts-0ce6dc5f.js.map} +1 -1
- package/cjs/{consts-5bdc2c7f.js → consts-43df77ef.js} +1 -1
- package/cjs/{consts-5bdc2c7f.js.map → consts-43df77ef.js.map} +1 -1
- package/cjs/{consts-0c9a38ef.js → consts-6d791ff5.js} +5 -1
- package/cjs/{consts-0c9a38ef.js.map → consts-6d791ff5.js.map} +1 -1
- package/cjs/{consts-c336bb61.js → consts-95de97c6.js} +1 -1
- package/cjs/{consts-c336bb61.js.map → consts-95de97c6.js.map} +1 -1
- package/cjs/{context-0276d21e.js → context-cec5a03c.js} +2 -2
- package/cjs/{context-0276d21e.js.map → context-cec5a03c.js.map} +1 -1
- package/cjs/dist/index.css +154 -127
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-2cb13008.js → index-0a1d6159.js} +2 -2
- package/cjs/{index-2cb13008.js.map → index-0a1d6159.js.map} +1 -1
- package/cjs/{index-ed1ee70b.js → index-0a49ce60.js} +21 -14
- package/cjs/index-0a49ce60.js.map +1 -0
- package/cjs/index-0bcc6578.js +298 -0
- package/cjs/index-0bcc6578.js.map +1 -0
- package/cjs/{index-6cb3365f.js → index-1a05108d.js} +2 -2
- package/cjs/{index-6cb3365f.js.map → index-1a05108d.js.map} +1 -1
- package/cjs/{index-49fe0efb.js → index-44f82a5f.js} +4 -4
- package/cjs/{index-49fe0efb.js.map → index-44f82a5f.js.map} +1 -1
- package/cjs/{index-08c5777e.js → index-5125200f.js} +67 -28
- package/cjs/index-5125200f.js.map +1 -0
- package/cjs/{index-5a651f3c.js → index-5eddbcdd.js} +2 -2
- package/cjs/{index-5a651f3c.js.map → index-5eddbcdd.js.map} +1 -1
- package/cjs/{index-87e11d7e.js → index-6a049d22.js} +5 -5
- package/cjs/{index-87e11d7e.js.map → index-6a049d22.js.map} +1 -1
- package/cjs/{index-092b22dd.js → index-71ac2b0c.js} +2 -2
- package/cjs/{index-092b22dd.js.map → index-71ac2b0c.js.map} +1 -1
- package/cjs/{index-e46cc828.js → index-7c287c6e.js} +6 -6
- package/cjs/{index-e46cc828.js.map → index-7c287c6e.js.map} +1 -1
- package/cjs/{index-c2454b7e.js → index-821a74b6.js} +1 -1
- package/cjs/{index-c2454b7e.js.map → index-821a74b6.js.map} +1 -1
- package/cjs/{index-dbccd7fb.js → index-86a4d820.js} +3 -3
- package/cjs/{index-dbccd7fb.js.map → index-86a4d820.js.map} +1 -1
- package/cjs/{index-54228aa8.js → index-892e04e5.js} +4 -4
- package/cjs/{index-54228aa8.js.map → index-892e04e5.js.map} +1 -1
- package/cjs/{index-b428366f.js → index-ae818469.js} +2 -2
- package/cjs/index-ae818469.js.map +1 -0
- package/cjs/{index-1325e266.js → index-cffeab44.js} +3 -3
- package/cjs/{index-1325e266.js.map → index-cffeab44.js.map} +1 -1
- package/cjs/{index-9c8e297d.js → index-d1afbcfe.js} +3 -3
- package/cjs/{index-9c8e297d.js.map → index-d1afbcfe.js.map} +1 -1
- package/cjs/{index-cebd1362.js → index-dafc4dfb.js} +4 -4
- package/cjs/{index-cebd1362.js.map → index-dafc4dfb.js.map} +1 -1
- package/cjs/{index-17a6519d.js → index-eb531448.js} +1 -1
- package/cjs/{index-17a6519d.js.map → index-eb531448.js.map} +1 -1
- package/cjs/index-fc0d8ea1.js +230 -0
- package/cjs/index-fc0d8ea1.js.map +1 -0
- package/cjs/index.js +57 -53
- package/cjs/index.js.map +1 -1
- package/cjs/{index.module-8026e7d3.js → index.module-dcf622ba.js} +1 -1
- package/cjs/{index.module-8026e7d3.js.map → index.module-dcf622ba.js.map} +1 -1
- package/cjs/package.json +2 -2
- package/cjs/{resolvedReplyType-8137e072.js → resolvedReplyType-7074785b.js} +1 -1
- package/cjs/{resolvedReplyType-8137e072.js.map → resolvedReplyType-7074785b.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +3 -4
- package/cjs/sendbirdSelectors.js.map +1 -1
- package/cjs/{stringSet-769f181d.js → stringSet-20c5f2fa.js} +1 -1
- package/cjs/{stringSet-769f181d.js.map → stringSet-20c5f2fa.js.map} +1 -1
- package/cjs/{tokenize-586ed01a.js → tokenize-3c568761.js} +2 -2
- package/cjs/{tokenize-586ed01a.js.map → tokenize-3c568761.js.map} +1 -1
- package/cjs/{topics-99121946.js → topics-b61b6276.js} +1 -1
- package/cjs/{topics-99121946.js.map → topics-b61b6276.js.map} +1 -1
- package/cjs/{types-812b3bfd.js → types-7d4d4e4a.js} +1 -1
- package/cjs/types-7d4d4e4a.js.map +1 -0
- package/cjs/ui/Accordion.js +2 -2
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +2 -2
- package/cjs/ui/Avatar.js +1 -1
- package/cjs/ui/Badge.js +4 -4
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/Button.js +2 -2
- package/cjs/ui/ChannelAvatar.js +2 -2
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +3 -3
- package/cjs/ui/EmojiReactions.js +13 -13
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +17 -126
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Icon.js +178 -159
- package/cjs/ui/Icon.js.map +1 -1
- package/cjs/ui/IconButton.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/MentionLabel.js +10 -10
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +28 -28
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +16 -0
- package/cjs/ui/MessageInput/hooks/usePaste.js.map +1 -0
- package/cjs/ui/MessageInput.js +21 -233
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +8 -8
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- package/cjs/ui/MessageItemReactionMenu.js +8 -8
- package/cjs/ui/MessageItemReactionMenu.js.map +1 -1
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +8 -8
- package/cjs/ui/MessageStatus.js +10 -10
- package/cjs/ui/Modal.js +7 -7
- package/cjs/ui/OGMessageItemBody.js +14 -14
- package/cjs/ui/OpenChannelAdminMessage.js +2 -2
- package/cjs/ui/OpenChannelAvatar.js +5 -5
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +15 -15
- package/cjs/ui/OpenchannelOGMessage.js +18 -18
- package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
- package/cjs/ui/OpenchannelUserMessage.js +15 -15
- package/cjs/ui/PlaceHolder.js +5 -5
- package/cjs/ui/PlaybackTime.js +2 -2
- package/cjs/ui/QuoteMessage.js +6 -6
- package/cjs/ui/QuoteMessage.js.map +1 -1
- package/cjs/ui/QuoteMessageInput.js +6 -6
- package/cjs/ui/QuoteMessageInput.js.map +1 -1
- package/cjs/ui/ReactionBadge.js +2 -2
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +1 -1
- package/cjs/ui/TextButton.js +1 -1
- package/cjs/ui/TextMessageItemBody.js +14 -14
- package/cjs/ui/ThreadReplies.js +5 -5
- package/cjs/ui/ThumbnailMessageItemBody.js +5 -5
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +2 -2
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +10 -10
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +9 -9
- package/cjs/ui/VoiceMessgeInput.js +7 -7
- package/cjs/ui/Word.js +10 -10
- package/cjs/{useLongPress-a77054d5.js → useLongPress-f1d03c8d.js} +3 -3
- package/cjs/{useLongPress-a77054d5.js.map → useLongPress-f1d03c8d.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/getOutgoingMessageState.js.map +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/{utils-c8ca7346.js → utils-03f96fba.js} +1 -1
- package/cjs/{utils-c8ca7346.js.map → utils-03f96fba.js.map} +1 -1
- package/cjs/{utils-18517a45.js → utils-482c5d41.js} +2 -2
- package/cjs/{utils-18517a45.js.map → utils-482c5d41.js.map} +1 -1
- package/cjs/{utils-3fda8de7.js → utils-9a0e0c06.js} +1 -1
- package/cjs/{utils-3fda8de7.js.map → utils-9a0e0c06.js.map} +1 -1
- package/cjs/utils-a569b281.js +340 -0
- package/cjs/utils-a569b281.js.map +1 -0
- package/cjs/{utils-d6b081f0.js → utils-e00d6f10.js} +1 -1
- package/cjs/{utils-d6b081f0.js.map → utils-e00d6f10.js.map} +1 -1
- package/cjs/{uuid-6c019e89.js → uuid-f9a11afa.js} +1 -1
- package/cjs/{uuid-6c019e89.js.map → uuid-f9a11afa.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-2315a258.js → color-08fea5a1.js} +1 -1
- package/{color-2315a258.js.map → color-08fea5a1.js.map} +1 -1
- package/{compareIds-2464aab2.js → compareIds-72c21832.js} +1 -1
- package/{compareIds-2464aab2.js.map → compareIds-72c21832.js.map} +1 -1
- package/{const-0cca8d38.js → const-035fb030.js} +1 -1
- package/{const-0cca8d38.js.map → const-035fb030.js.map} +1 -1
- package/{const-c6a266f4.js → const-cf103f8d.js} +1 -1
- package/{const-c6a266f4.js.map → const-cf103f8d.js.map} +1 -1
- package/{consts-991d3823.js → consts-52c058a5.js} +1 -1
- package/{consts-991d3823.js.map → consts-52c058a5.js.map} +1 -1
- package/{consts-32a2c4a7.js → consts-d9925dd6.js} +1 -1
- package/{consts-32a2c4a7.js.map → consts-d9925dd6.js.map} +1 -1
- package/{consts-3d956927.js → consts-dbf4e2a7.js} +1 -1
- package/{consts-3d956927.js.map → consts-dbf4e2a7.js.map} +1 -1
- package/{consts-b6f24cc7.js → consts-f92f7a23.js} +5 -2
- package/{consts-b6f24cc7.js.map → consts-f92f7a23.js.map} +1 -1
- package/{context-e46fff7b.js → context-866e205a.js} +2 -2
- package/{context-e46fff7b.js.map → context-866e205a.js.map} +1 -1
- package/dist/index.css +154 -127
- package/dist/index.css.map +1 -1
- package/{index-335e7557.js → index-0cfeeaac.js} +2 -2
- package/{index-335e7557.js.map → index-0cfeeaac.js.map} +1 -1
- package/{index-f2e30f98.js → index-220222c3.js} +2 -2
- package/{index-f2e30f98.js.map → index-220222c3.js.map} +1 -1
- package/{index-499d9ef9.js → index-3c8065f1.js} +2 -2
- package/{index-499d9ef9.js.map → index-3c8065f1.js.map} +1 -1
- package/{index-17b78bb0.js → index-3e9067b2.js} +21 -14
- package/index-3e9067b2.js.map +1 -0
- package/{index-fe2c7493.js → index-48b8b7ea.js} +6 -6
- package/{index-fe2c7493.js.map → index-48b8b7ea.js.map} +1 -1
- package/{index-13d9d766.js → index-5a7039da.js} +2 -2
- package/{index-13d9d766.js.map → index-5a7039da.js.map} +1 -1
- package/index-5d775cdb.js +221 -0
- package/index-5d775cdb.js.map +1 -0
- package/{index-7b3790d3.js → index-87a9a309.js} +4 -4
- package/{index-7b3790d3.js.map → index-87a9a309.js.map} +1 -1
- package/{index-07345a6e.js → index-89a6798f.js} +5 -5
- package/{index-07345a6e.js.map → index-89a6798f.js.map} +1 -1
- package/{index-bafedab0.js → index-92d47d85.js} +1 -1
- package/{index-bafedab0.js.map → index-92d47d85.js.map} +1 -1
- package/index-a3d726e9.js +289 -0
- package/index-a3d726e9.js.map +1 -0
- package/{index-a39b9075.js → index-adaead71.js} +3 -3
- package/{index-a39b9075.js.map → index-adaead71.js.map} +1 -1
- package/{index-ebb8a7df.js → index-b3d5a76f.js} +2 -2
- package/index-b3d5a76f.js.map +1 -0
- package/{index-2544bb0a.js → index-bbc82f2a.js} +4 -4
- package/{index-2544bb0a.js.map → index-bbc82f2a.js.map} +1 -1
- package/{index-b9b184a4.js → index-c17b453a.js} +1 -1
- package/{index-b9b184a4.js.map → index-c17b453a.js.map} +1 -1
- package/{index-c4273470.js → index-ceda3633.js} +4 -4
- package/{index-c4273470.js.map → index-ceda3633.js.map} +1 -1
- package/{index-879bcfab.js → index-d637d23d.js} +3 -3
- package/{index-879bcfab.js.map → index-d637d23d.js.map} +1 -1
- package/{index-56249831.js → index-e9757459.js} +68 -29
- package/index-e9757459.js.map +1 -0
- package/{index-63c995b8.js → index-ef60ce9f.js} +3 -3
- package/{index-63c995b8.js.map → index-ef60ce9f.js.map} +1 -1
- package/index.d.ts +278 -134
- package/index.js +57 -53
- package/index.js.map +1 -1
- package/{index.module-41885c5b.js → index.module-476c67cc.js} +1 -1
- package/{index.module-41885c5b.js.map → index.module-476c67cc.js.map} +1 -1
- package/package.json +3 -2
- package/{resolvedReplyType-d6e22593.js → resolvedReplyType-8fa44680.js} +1 -1
- package/{resolvedReplyType-d6e22593.js.map → resolvedReplyType-8fa44680.js.map} +1 -1
- package/sendbirdSelectors.js +3 -4
- package/sendbirdSelectors.js.map +1 -1
- package/{stringSet-47601d79.js → stringSet-f13a0a37.js} +1 -1
- package/{stringSet-47601d79.js.map → stringSet-f13a0a37.js.map} +1 -1
- package/{tokenize-c0cf9574.js → tokenize-be306c61.js} +2 -2
- package/{tokenize-c0cf9574.js.map → tokenize-be306c61.js.map} +1 -1
- package/{topics-e985567d.js → topics-df485c66.js} +1 -1
- package/{topics-e985567d.js.map → topics-df485c66.js.map} +1 -1
- package/{types-02054e6e.js → types-b2ebbd50.js} +1 -1
- package/types-b2ebbd50.js.map +1 -0
- package/ui/Accordion.js +2 -2
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +2 -2
- package/ui/Avatar.js +1 -1
- package/ui/Badge.js +4 -4
- package/ui/BottomSheet.js +1 -1
- package/ui/Button.js +2 -2
- package/ui/ChannelAvatar.js +2 -2
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +3 -3
- package/ui/EmojiReactions.js +13 -13
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +15 -124
- package/ui/FileViewer.js.map +1 -1
- package/ui/Icon.js +178 -159
- package/ui/Icon.js.map +1 -1
- package/ui/IconButton.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/MentionLabel.js +10 -10
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +28 -28
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -0
- package/ui/MessageInput/hooks/usePaste.js.map +1 -0
- package/ui/MessageInput.js +16 -227
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +8 -8
- package/ui/MessageItemMenu.js.map +1 -1
- package/ui/MessageItemReactionMenu.js +8 -8
- package/ui/MessageItemReactionMenu.js.map +1 -1
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +8 -8
- package/ui/MessageStatus.js +10 -10
- package/ui/Modal.js +7 -7
- package/ui/OGMessageItemBody.js +14 -14
- package/ui/OpenChannelAdminMessage.js +2 -2
- package/ui/OpenChannelAvatar.js +5 -5
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +15 -15
- package/ui/OpenchannelOGMessage.js +18 -18
- package/ui/OpenchannelThumbnailMessage.js +14 -14
- package/ui/OpenchannelUserMessage.js +15 -15
- package/ui/PlaceHolder.js +5 -5
- package/ui/PlaybackTime.js +2 -2
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessage.js.map +1 -1
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/QuoteMessageInput.js.map +1 -1
- package/ui/ReactionBadge.js +2 -2
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +1 -1
- package/ui/TextButton.js +1 -1
- package/ui/TextMessageItemBody.js +14 -14
- package/ui/ThreadReplies.js +5 -5
- package/ui/ThumbnailMessageItemBody.js +5 -5
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +2 -2
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +10 -10
- package/ui/UserProfile.js +9 -9
- package/ui/VoiceMessageItemBody.js +9 -9
- package/ui/VoiceMessgeInput.js +7 -7
- package/ui/Word.js +10 -10
- package/{useLongPress-0a2a8916.js → useLongPress-e69367cf.js} +3 -3
- package/{useLongPress-0a2a8916.js.map → useLongPress-e69367cf.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/getOutgoingMessageState.js.map +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/{utils-93924431.js → utils-3ee416c9.js} +1 -1
- package/{utils-93924431.js.map → utils-3ee416c9.js.map} +1 -1
- package/{utils-2f26afa0.js → utils-42133229.js} +1 -1
- package/{utils-2f26afa0.js.map → utils-42133229.js.map} +1 -1
- package/{utils-d15f13cf.js → utils-60a2e587.js} +1 -1
- package/{utils-d15f13cf.js.map → utils-60a2e587.js.map} +1 -1
- package/{utils-70ea4cc9.js → utils-910ef5dd.js} +2 -2
- package/{utils-70ea4cc9.js.map → utils-910ef5dd.js.map} +1 -1
- package/utils-df42b9f9.js +301 -0
- package/utils-df42b9f9.js.map +1 -0
- package/{uuid-ec51ac4d.js → uuid-1b498132.js} +1 -1
- package/{uuid-ec51ac4d.js.map → uuid-1b498132.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/ChannelListProvider-fc14f42d.js.map +0 -1
- package/ChannelProvider-78e85f32.js.map +0 -1
- package/OpenChannelProvider-a6f4f92a.js.map +0 -1
- package/RemoveMessageModal-0d438e31.js.map +0 -1
- package/ThreadProvider-2a4356a2.js.map +0 -1
- package/_rollupPluginBabelHelpers-90ff7fc4.js.map +0 -1
- package/cjs/ChannelListProvider-c1f3cf4a.js.map +0 -1
- package/cjs/ChannelProvider-633edf61.js.map +0 -1
- package/cjs/OpenChannelProvider-c2b3dc2c.js.map +0 -1
- package/cjs/RemoveMessageModal-271f1251.js.map +0 -1
- package/cjs/ThreadProvider-8d2ce923.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-0d9d52a5.js.map +0 -1
- package/cjs/index-08c5777e.js.map +0 -1
- package/cjs/index-b428366f.js.map +0 -1
- package/cjs/index-ed1ee70b.js.map +0 -1
- package/cjs/types-812b3bfd.js.map +0 -1
- package/cjs/useDirtyGetMentions-a37639f1.js.map +0 -1
- package/index-17b78bb0.js.map +0 -1
- package/index-56249831.js.map +0 -1
- package/index-ebb8a7df.js.map +0 -1
- package/types-02054e6e.js.map +0 -1
- package/useDirtyGetMentions-3f7692ab.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelHeader.js","sources":["../../../src/modules/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","_ref","_globalStore$config","_globalStore$config2","_currentGroupChannel$","className","globalStore","useSendbirdStateContext","userId","config","theme","channelStore","useChannelContext","isMobile","useMediaQueryContext","currentGroupChannel","showSearchIcon","onSearchClick","onChatHeaderActionClick","onBackClick","noop","subTitle","members","length","isMuted","myMutedState","stringSet","useContext","LocalizationContext","React","createElement","Icon","onClick","fillColor","IconColors","PRIMARY","width","height","type","IconTypes","ARROW_LEFT","ChannelAvatar","channel","Label","LabelTypography","H_2","color","LabelColors","ONBACKGROUND_1","utils","BODY_1","ONBACKGROUND_2","NOTIFICATIONS_OFF_FILLED","ON_BACKGROUND_2","isEphemeral","IconButton","SEARCH","INFO"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChannelHeader.js","sources":["../../../src/modules/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","_ref","_globalStore$config","_globalStore$config2","_currentGroupChannel$","className","globalStore","useSendbirdStateContext","userId","config","theme","channelStore","useChannelContext","isMobile","useMediaQueryContext","currentGroupChannel","showSearchIcon","onSearchClick","onChatHeaderActionClick","onBackClick","noop","subTitle","members","length","isMuted","myMutedState","stringSet","useContext","LocalizationContext","React","createElement","Icon","onClick","fillColor","IconColors","PRIMARY","width","height","type","IconTypes","ARROW_LEFT","ChannelAvatar","channel","Label","LabelTypography","H_2","color","LabelColors","ONBACKGROUND_1","utils","BODY_1","ONBACKGROUND_2","NOTIFICATIONS_OFF_FILLED","ON_BACKGROUND_2","isEphemeral","IconButton","SEARCH","INFO"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBMA,MAAAA,aAA2C,GAAGC,IAAA,IAE9C;AAAA,EAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,qBAAA,CAAA;EAAA,IAF+C;AACnDC,IAAAA,SAAS,GAAG,EAAA;AACd,GAAC,GAAAJ,IAAA,CAAA;EACC,MAAMK,WAAW,GAAGC,uBAAuB,EAAE,CAAA;AAC7C,EAAA,MAAMC,MAAM,GAAGF,WAAW,KAAXA,IAAAA,IAAAA,WAAW,wBAAAJ,mBAAA,GAAXI,WAAW,CAAEG,MAAM,MAAAP,IAAAA,IAAAA,mBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,mBAAA,CAAqBM,MAAM,CAAA;AAC1C,EAAA,MAAME,KAAK,GAAGJ,WAAW,KAAXA,IAAAA,IAAAA,WAAW,wBAAAH,oBAAA,GAAXG,WAAW,CAAEG,MAAM,MAAAN,IAAAA,IAAAA,oBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,oBAAA,CAAqBO,KAAK,CAAA;EAExC,MAAMC,YAAY,GAAGC,iBAAiB,EAAE,CAAA;EACxC,MAAM;AAAEC,IAAAA,QAAAA;GAAU,GAAGC,oBAAoB,EAAE,CAAA;EAC3C,MAAM;IACJC,mBAAmB;IACnBC,cAAc;IACdC,aAAa;IACbC,uBAAuB;AACvBC,IAAAA,WAAW,GAAGC,IAAAA;AAChB,GAAC,GAAGT,YAAY,CAAA;AAChB,EAA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K,EAAC,MAAM;AACZC,IAAAA,MAAM,EAAC,MAAM;AACbL,IAAAA,OAAO,EAAEf,aAAAA;AAAc,GAAA,eAEvBY,cAAA,CAAAC,aAAA,CAACC,IAAI,EAAA;IACHO,IAAI,EAAEC,SAAS,CAACiB,MAAO;IACvBvB,SAAS,EAAEC,UAAU,CAACC,OAAQ;AAC9BC,IAAAA,KAAK,EAAC,MAAM;AACZC,IAAAA,MAAM,EAAC,MAAA;AAAM,GAAA,CACb,CAEL,eAEHR,cAAA,CAAAC,aAAA,CAACyB,UAAU,EAAA;AACTlD,IAAAA,SAAS,EAAC,mCAAmC;AAC7C+B,IAAAA,KAAK,EAAC,MAAM;AACZC,IAAAA,MAAM,EAAC,MAAM;AACbL,IAAAA,OAAO,EAAEd,uBAAAA;AAAwB,GAAA,eAEjCW,cAAA,CAAAC,aAAA,CAACC,IAAI,EAAA;IACHO,IAAI,EAAEC,SAAS,CAACkB,IAAK;IACrBxB,SAAS,EAAEC,UAAU,CAACC,OAAQ;AAC9BC,IAAAA,KAAK,EAAC,MAAM;AACZC,IAAAA,MAAM,EAAC,MAAA;GACP,CAAA,CACS,CACT,CACF,CAAA;AAEV;;;;"}
|
|
@@ -1,75 +1,77 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
3
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
4
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
3
|
+
import { u as useChannelContext } from '../../ChannelProvider-849524b4.js';
|
|
4
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-ef60ce9f.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
9
|
import MessageInputWrapper from './MessageInput.js';
|
|
10
10
|
import '../../withSendbird.js';
|
|
11
|
-
import '../../_rollupPluginBabelHelpers-
|
|
12
|
-
import '../../UserProfileContext-
|
|
11
|
+
import '../../_rollupPluginBabelHelpers-404d1a9c.js';
|
|
12
|
+
import '../../UserProfileContext-3be56f3a.js';
|
|
13
13
|
import 'prop-types';
|
|
14
|
-
import '../../const-
|
|
15
|
-
import '../../
|
|
16
|
-
import '../../index-
|
|
17
|
-
import '../../
|
|
18
|
-
import '../../
|
|
14
|
+
import '../../const-cf103f8d.js';
|
|
15
|
+
import '../../utils-df42b9f9.js';
|
|
16
|
+
import '../../index-0cfeeaac.js';
|
|
17
|
+
import '../../index-c17b453a.js';
|
|
18
|
+
import '../../topics-df485c66.js';
|
|
19
|
+
import '../../index-e9757459.js';
|
|
19
20
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
20
|
-
import '../../compareIds-
|
|
21
|
+
import '../../compareIds-72c21832.js';
|
|
21
22
|
import '@sendbird/chat/groupChannel';
|
|
22
|
-
import '../../uuid-
|
|
23
|
+
import '../../uuid-1b498132.js';
|
|
23
24
|
import '@sendbird/chat/message';
|
|
24
|
-
import '../../consts-
|
|
25
|
-
import '../../resolvedReplyType-
|
|
26
|
-
import '../../LocalizationContext-
|
|
27
|
-
import '../../stringSet-
|
|
25
|
+
import '../../consts-f92f7a23.js';
|
|
26
|
+
import '../../resolvedReplyType-8fa44680.js';
|
|
27
|
+
import '../../LocalizationContext-8781208d.js';
|
|
28
|
+
import '../../stringSet-f13a0a37.js';
|
|
28
29
|
import '../../ui/Icon.js';
|
|
29
|
-
import '../../index-
|
|
30
|
+
import '../../index-5a7039da.js';
|
|
30
31
|
import '../../ui/Loader.js';
|
|
31
|
-
import '../../utils-
|
|
32
|
+
import '../../utils-910ef5dd.js';
|
|
32
33
|
import '../../ui/IconButton.js';
|
|
33
34
|
import '../../ui/ChannelAvatar.js';
|
|
34
35
|
import '../../ui/Avatar.js';
|
|
35
36
|
import '../../ui/ImageRenderer.js';
|
|
36
|
-
import '../../utils-
|
|
37
|
-
import '../../MediaQueryContext-
|
|
38
|
-
import '../../utils-
|
|
37
|
+
import '../../utils-3ee416c9.js';
|
|
38
|
+
import '../../MediaQueryContext-2ef9f34f.js';
|
|
39
|
+
import '../../utils-60a2e587.js';
|
|
39
40
|
import './Message.js';
|
|
40
41
|
import './SuggestedMentionList.js';
|
|
41
|
-
import '../../const-
|
|
42
|
-
import '../../ThreadProvider-
|
|
42
|
+
import '../../const-035fb030.js';
|
|
43
|
+
import '../../ThreadProvider-9e14db75.js';
|
|
43
44
|
import '../../Thread/context/types.js';
|
|
44
45
|
import '@sendbird/chat';
|
|
45
46
|
import '../../ui/DateSeparator.js';
|
|
46
|
-
import '../../color-
|
|
47
|
+
import '../../color-08fea5a1.js';
|
|
47
48
|
import '../../ui/MessageInput.js';
|
|
48
49
|
import '../../ui/Button.js';
|
|
50
|
+
import '../../index-5d775cdb.js';
|
|
49
51
|
import 'dompurify';
|
|
50
|
-
import '../../consts-
|
|
51
|
-
import '../../consts-
|
|
52
|
-
import '../../consts-
|
|
53
|
-
import '../../tokenize-
|
|
54
|
-
import '../../index.module-
|
|
52
|
+
import '../../consts-d9925dd6.js';
|
|
53
|
+
import '../../consts-52c058a5.js';
|
|
54
|
+
import '../../consts-dbf4e2a7.js';
|
|
55
|
+
import '../../tokenize-be306c61.js';
|
|
56
|
+
import '../../index.module-476c67cc.js';
|
|
55
57
|
import '../../ui/MessageContent.js';
|
|
56
58
|
import '../../ui/UserProfile.js';
|
|
57
59
|
import '../../sendbirdSelectors.js';
|
|
58
|
-
import '../../index-
|
|
59
|
-
import '../../index-
|
|
60
|
-
import '../../index-
|
|
60
|
+
import '../../index-3e9067b2.js';
|
|
61
|
+
import '../../index-adaead71.js';
|
|
62
|
+
import '../../index-3c8065f1.js';
|
|
61
63
|
import '../../ui/MessageItemMenu.js';
|
|
62
64
|
import '../../ui/ContextMenu.js';
|
|
63
65
|
import 'react-dom';
|
|
64
66
|
import '../../ui/SortByRow.js';
|
|
65
|
-
import '../../types-
|
|
67
|
+
import '../../types-b2ebbd50.js';
|
|
66
68
|
import '../../ui/MessageItemReactionMenu.js';
|
|
67
69
|
import '../../ui/ReactionButton.js';
|
|
68
|
-
import '../../useLongPress-
|
|
70
|
+
import '../../useLongPress-e69367cf.js';
|
|
69
71
|
import '../../ui/EmojiReactions.js';
|
|
70
72
|
import '../../ui/ReactionBadge.js';
|
|
71
73
|
import '../../ui/BottomSheet.js';
|
|
72
|
-
import '../../index-
|
|
74
|
+
import '../../index-92d47d85.js';
|
|
73
75
|
import '../../ui/UserListItem.js';
|
|
74
76
|
import '../../ui/MutedAvatarOverlay.js';
|
|
75
77
|
import '../../ui/Checkbox.js';
|
|
@@ -78,7 +80,7 @@ import '../../ui/TooltipWrapper.js';
|
|
|
78
80
|
import '../../Message/context.js';
|
|
79
81
|
import '../../ui/AdminMessage.js';
|
|
80
82
|
import '../../ui/TextMessageItemBody.js';
|
|
81
|
-
import '../../index-
|
|
83
|
+
import '../../index-bbc82f2a.js';
|
|
82
84
|
import '../../ui/MentionLabel.js';
|
|
83
85
|
import '../../ui/LinkLabel.js';
|
|
84
86
|
import '../../ui/FileMessageItemBody.js';
|
|
@@ -87,25 +89,27 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
87
89
|
import '../../ui/OGMessageItemBody.js';
|
|
88
90
|
import '../../ui/UnknownMessageItemBody.js';
|
|
89
91
|
import '../../ui/QuoteMessage.js';
|
|
90
|
-
import '../../index-
|
|
92
|
+
import '../../index-ceda3633.js';
|
|
91
93
|
import '../../ui/ThreadReplies.js';
|
|
92
94
|
import '../../ui/VoiceMessageItemBody.js';
|
|
93
95
|
import '../../ui/ProgressBar.js';
|
|
94
96
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
95
|
-
import '../../index-
|
|
97
|
+
import '../../index-d637d23d.js';
|
|
96
98
|
import '../../VoiceRecorder/context.js';
|
|
97
99
|
import '../../ui/Modal.js';
|
|
98
100
|
import '../../ui/PlaybackTime.js';
|
|
99
101
|
import './FileViewer.js';
|
|
100
102
|
import './RemoveMessageModal.js';
|
|
101
|
-
import '../../index-
|
|
102
|
-
import '../../useDirtyGetMentions
|
|
103
|
+
import '../../index-220222c3.js';
|
|
104
|
+
import '../../Message/hooks/useDirtyGetMentions.js';
|
|
105
|
+
import '../utils/getMessagePartsInfo.js';
|
|
106
|
+
import '../utils/compareMessagesForGrouping.js';
|
|
103
107
|
import './UnreadCount.js';
|
|
104
108
|
import './FrozenNotification.js';
|
|
105
109
|
import '../../ui/QuoteMessageInput.js';
|
|
106
|
-
import '../../VoiceMessageInputWrapper-
|
|
110
|
+
import '../../VoiceMessageInputWrapper-be6706b2.js';
|
|
107
111
|
import '../../VoiceRecorder/useVoiceRecorder.js';
|
|
108
|
-
import '../../index-
|
|
112
|
+
import '../../index-87a9a309.js';
|
|
109
113
|
|
|
110
114
|
const ChannelUI = _ref => {
|
|
111
115
|
var _globalStore$stores, _globalStore$stores$s, _globalStore$config, _globalStore$config2, _globalStore$config3, _globalStore$config3$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUI.js","sources":["../../../src/modules/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 || globalStore?.config?.groupChannel?.enableTypingIndicator && (\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","_ref","_globalStore$stores","_globalStore$stores$s","_globalStore$config","_globalStore$config2","_globalStore$config3","_globalStore$config3$","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","channelUrl","isInvalid","useChannelContext","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","createElement","className","PlaceHolder","type","PlaceHolderTypes","LOADING","NO_CHANNELS","WRONG","retryToConnect","info","ChannelHeader","MessageList","MessageInputWrapper","groupChannel","enableTypingIndicator","TypingIndicator","ConnectionStatus"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChannelUI.js","sources":["../../../src/modules/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 || globalStore?.config?.groupChannel?.enableTypingIndicator && (\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","_ref","_globalStore$stores","_globalStore$stores$s","_globalStore$config","_globalStore$config2","_globalStore$config3","_globalStore$config3$","isLoading","renderPlaceholderLoader","renderPlaceholderInvalid","renderPlaceholderEmpty","renderChannelHeader","renderMessage","renderMessageInput","renderTypingIndicator","renderCustomSeparator","renderFileUploadIcon","renderVoiceMessageIcon","renderSendMessageIcon","channelUrl","isInvalid","useChannelContext","globalStore","useSendbirdStateContext","sdkError","stores","sdkStore","error","logger","config","isOnline","React","createElement","className","PlaceHolder","type","PlaceHolderTypes","LOADING","NO_CHANNELS","WRONG","retryToConnect","info","ChannelHeader","MessageList","MessageInputWrapper","groupChannel","enableTypingIndicator","TypingIndicator","ConnectionStatus"],"mappings":";;;;;;;;;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BA,IAAAA,IAAAA,kBAAkB,KAAlBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,kBAAkB,EAAI,kBACpBkB,cAAA,CAAAC,aAAA,CAACY,mBAAmB,EAAA;AAClB5B,IAAAA,oBAAoB,EAAEA,oBAAqB;AAC3CC,IAAAA,sBAAsB,EAAEA,sBAAuB;AAC/CC,IAAAA,qBAAqB,EAAEA,qBAAAA;GAE1B,CAAA,eAEHa,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,iDAAA;GAEX,EAAA,CAAAnB,qBAAqB,KAArBA,IAAAA,IAAAA,qBAAqB,uBAArBA,qBAAqB,EAAI,KACpB,CAAAQ,WAAW,KAAA,IAAA,IAAXA,WAAW,KAAAjB,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,CAAAA,oBAAA,GAAXiB,WAAW,CAAEO,MAAM,cAAAxB,oBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,CAAAC,qBAAA,GAAnBD,oBAAA,CAAqBwC,YAAY,MAAAvC,IAAAA,IAAAA,qBAAA,KAAjCA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,qBAAA,CAAmCwC,qBAAqB,kBACzDf,cAAA,CAAAC,aAAA,CAACe,eAAe,EAAA,IAAA,CACjB,EAGH,CAACjB,QAAQ,iBACPC,cAAA,CAAAC,aAAA,CAACgB,gBAAgB,EAAA,IAAA,CAClB,CAEC,CACF,CACF,CAAA;AAEV;;;;"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import Avatar from '../../ui/Avatar.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-5a7039da.js';
|
|
5
5
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
6
|
-
import { M as MODAL_ROOT } from '../../index-
|
|
7
|
-
import { x as isSupportedFileView, y as isVideo, z as isImage } from '../../index-
|
|
6
|
+
import { M as MODAL_ROOT } from '../../index-92d47d85.js';
|
|
7
|
+
import { x as isSupportedFileView, y as isVideo, z as isImage } from '../../index-e9757459.js';
|
|
8
8
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
9
|
-
import { u as useChannelContext } from '../../ChannelProvider-
|
|
9
|
+
import { u as useChannelContext } from '../../ChannelProvider-849524b4.js';
|
|
10
10
|
import '../../ui/ImageRenderer.js';
|
|
11
|
-
import '../../uuid-
|
|
11
|
+
import '../../uuid-1b498132.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import '../../stringSet-
|
|
14
|
-
import '../../_rollupPluginBabelHelpers-
|
|
13
|
+
import '../../stringSet-f13a0a37.js';
|
|
14
|
+
import '../../_rollupPluginBabelHelpers-404d1a9c.js';
|
|
15
15
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
16
16
|
import '../../withSendbird.js';
|
|
17
|
-
import '../../UserProfileContext-
|
|
18
|
-
import '../../const-
|
|
19
|
-
import '../../
|
|
20
|
-
import '../../index-
|
|
21
|
-
import '../../
|
|
22
|
-
import '../../
|
|
17
|
+
import '../../UserProfileContext-3be56f3a.js';
|
|
18
|
+
import '../../const-cf103f8d.js';
|
|
19
|
+
import '../../utils-df42b9f9.js';
|
|
20
|
+
import '../../index-0cfeeaac.js';
|
|
21
|
+
import '../../index-c17b453a.js';
|
|
22
|
+
import '../../topics-df485c66.js';
|
|
23
|
+
import '../../compareIds-72c21832.js';
|
|
23
24
|
import '@sendbird/chat/groupChannel';
|
|
24
25
|
import '@sendbird/chat/message';
|
|
25
|
-
import '../../consts-
|
|
26
|
-
import '../../resolvedReplyType-
|
|
26
|
+
import '../../consts-f92f7a23.js';
|
|
27
|
+
import '../../resolvedReplyType-8fa44680.js';
|
|
27
28
|
|
|
28
29
|
const FileViewerComponent = _ref => {
|
|
29
30
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileViewer.js","sources":["../../../src/modules/Channel/components/FileViewer/index.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport type { FileMessage } from '@sendbird/chat/message';\n\nimport './file-viewer.scss';\nimport Avatar from '../../../../ui/Avatar';\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconColors, IconTypes } from '../../../../ui/Icon';\nimport { MODAL_ROOT } from '../../../../hooks/useModal/ModalRoot';\n\nimport { isImage, isVideo, isSupportedFileView } from '../../../../utils';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport { EveryMessage } from '../../../../types';\n\ntype FileViewerUIProps = {\n profileUrl: string;\n nickname: string;\n // file\n name: string;\n type: string;\n url: string;\n // others\n isByMe: boolean;\n onCancel: () => void;\n onDelete: () => void;\n disableDelete: boolean;\n};\n\nexport const FileViewerComponent: React.FC<FileViewerUIProps> = ({\n // sender\n profileUrl,\n nickname,\n // file\n name,\n type,\n url,\n // others\n isByMe,\n onCancel,\n onDelete,\n disableDelete,\n}: FileViewerUIProps) => (\n <div className=\"sendbird-fileviewer\">\n <div className=\"sendbird-fileviewer__header\">\n <div className=\"sendbird-fileviewer__header__left\">\n <div className=\"sendbird-fileviewer__header__left__avatar\">\n <Avatar height=\"32px\" width=\"32px\" src={profileUrl} />\n </div>\n <Label\n className=\"sendbird-fileviewer__header__left__filename\"\n type={LabelTypography.H_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n {name}\n </Label>\n <Label\n className=\"sendbird-fileviewer__header__left__sender-name\"\n type={LabelTypography.BODY_1}\n color={LabelColors.ONBACKGROUND_2}\n >\n {nickname}\n </Label>\n </div>\n <div className=\"sendbird-fileviewer__header__right\">\n {\n isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__header__right__actions\">\n <a\n className=\"sendbird-fileviewer__header__right__actions__download\"\n rel=\"noopener noreferrer\"\n href={url}\n target=\"_blank\"\n >\n <Icon\n type={IconTypes.DOWNLOAD}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n />\n </a>\n {\n onDelete && isByMe && (\n <div className=\"sendbird-fileviewer__header__right__actions__delete\">\n <Icon\n className={disableDelete ? 'disabled' : ''}\n type={IconTypes.DELETE}\n fillColor={disableDelete ? IconColors.GRAY : IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={() => { if (!disableDelete) { onDelete(); } }}\n />\n </div>\n )\n }\n </div>\n )\n }\n <div className=\"sendbird-fileviewer__header__right__actions__close\">\n <Icon\n type={IconTypes.CLOSE}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={onCancel}\n />\n </div>\n </div>\n </div>\n <div className=\"sendbird-fileviewer__content\">\n {isVideo(type) && (\n <video controls className=\"sendbird-fileviewer__content__video\">\n <source src={url} type={type} />\n </video>\n )}\n {\n isImage(type) && (\n <img\n src={url}\n alt={name}\n className=\"sendbird-fileviewer__content__img\"\n />\n )\n }\n {\n !isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__content__unsupported\">\n <Label type={LabelTypography.H_1} color={LabelColors.ONBACKGROUND_1}>\n Unsupoprted message\n </Label>\n </div>\n )\n }\n </div>\n </div>\n);\n\ntype FileViewerProps = {\n onCancel:() => void;\n message: FileMessage;\n};\n\nconst FileViewer: React.FC<FileViewerProps> = ({ onCancel, message }: FileViewerProps) => {\n const { deleteMessage } = useChannelContext();\n const {\n sender,\n type,\n url,\n name = '',\n threadInfo,\n } = message;\n const user = useSendbirdStateContext()?.config?.userId;\n const isByMe = user === message?.sender?.userId;\n const disableDelete = threadInfo?.replyCount > 0;\n const { profileUrl, nickname = '' } = sender;\n return createPortal(\n (\n <FileViewerComponent\n profileUrl={profileUrl}\n nickname={nickname}\n type={type}\n url={url}\n name={name}\n onCancel={onCancel}\n onDelete={() => {\n deleteMessage(message as EveryMessage).then(() => {\n onCancel();\n });\n }}\n isByMe={isByMe}\n disableDelete={disableDelete}\n />\n ),\n document.getElementById(MODAL_ROOT),\n );\n};\n\nexport default FileViewer;\n"],"names":["FileViewerComponent","_ref","profileUrl","nickname","name","type","url","isByMe","onCancel","onDelete","disableDelete","React","createElement","className","Avatar","height","width","src","Label","LabelTypography","H_2","color","LabelColors","ONBACKGROUND_1","BODY_1","ONBACKGROUND_2","isSupportedFileView","rel","href","target","Icon","IconTypes","DOWNLOAD","fillColor","IconColors","ON_BACKGROUND_1","DELETE","GRAY","onClick","CLOSE","isVideo","controls","isImage","alt","H_1","FileViewer","_ref2","_useSendbirdStateCont","_useSendbirdStateCont2","_message$sender","message","deleteMessage","useChannelContext","sender","threadInfo","user","useSendbirdStateContext","config","userId","replyCount","createPortal","then","document","getElementById","MODAL_ROOT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAMA,mBAAgD,GAAGC,IAAA,IAAA;EAAA,IAAC;AAC/D;IACAC,UAAU;IACVC,QAAQ;AACR;IACAC,IAAI;IACJC,IAAI;IACJC,GAAG;AACH;IACAC,MAAM;IACNC,QAAQ;IACRC,QAAQ;AACRC,IAAAA,aAAAA;AACiB,GAAC,GAAAT,IAAA,CAAA;EAAA,oBAClBU,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,qBAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6BAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mCAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,2CAAA;AAA2C,GAAA,eACxDF,cAAA,CAAAC,aAAA,CAACE,MAAM,EAAA;AAACC,IAAAA,MAA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AAA,GAAPC,OAAO,CAAEG,MAAM,MAAA,IAAA,IAAAJ,eAAA,KAAfA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,eAAA,CAAiBS,MAAM,CAAA,CAAA;EAC/C,MAAMhD,aAAa,GAAG,CAAA4C,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAVA,UAAU,CAAEK,UAAU,IAAG,CAAC,CAAA;EAChD,MAAM;IAAEzD,UAAU;AAAEC,IAAAA,QAAQ,GAAG,EAAA;AAAG,GAAC,GAAGkD,MAAM,CAAA;AAC5C,EAAA,oBAAOO,YAAY,eAEfjD,cAAA,CAAAC,aAAA,CAACZ,mBAAmB,EAAA;AAClBE,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,GAAG,EAAEA,GAAI;AACTF,IAAAA,IAAI,EAAEA,IAAK;AACXI,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,QAAQ,EAAEA,MAAM;AACd0C,MAAAA,aAAa,CAACD,OAAO,CAAiB,CAACW,IAAI,CAAC,MAAM;AAChDrD,QAAAA,QAAQ,EAAE,CAAA;AACZ,OAAC,CAAC,CAAA;KACF;AACFD,IAAAA,MAAM,EAAEA,MAAO;AACfG,IAAAA,aAAa,EAAEA,aAAAA;AAAc,GAAA,CAC7B,EAEJoD,QAAQ,CAACC,cAAc,CAACC,UAAU,CAAC,CACpC,CAAA;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"FileViewer.js","sources":["../../../src/modules/Channel/components/FileViewer/index.tsx"],"sourcesContent":["import React from 'react';\nimport { createPortal } from 'react-dom';\nimport type { FileMessage } from '@sendbird/chat/message';\n\nimport './file-viewer.scss';\nimport Avatar from '../../../../ui/Avatar';\nimport Label, { LabelTypography, LabelColors } from '../../../../ui/Label';\nimport Icon, { IconColors, IconTypes } from '../../../../ui/Icon';\nimport { MODAL_ROOT } from '../../../../hooks/useModal/ModalRoot';\n\nimport { isImage, isVideo, isSupportedFileView } from '../../../../utils';\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport { useChannelContext } from '../../context/ChannelProvider';\nimport { EveryMessage } from '../../../../types';\n\ntype FileViewerUIProps = {\n profileUrl: string;\n nickname: string;\n // file\n name: string;\n type: string;\n url: string;\n // others\n isByMe: boolean;\n onCancel: () => void;\n onDelete: () => void;\n disableDelete: boolean;\n};\n\nexport const FileViewerComponent: React.FC<FileViewerUIProps> = ({\n // sender\n profileUrl,\n nickname,\n // file\n name,\n type,\n url,\n // others\n isByMe,\n onCancel,\n onDelete,\n disableDelete,\n}: FileViewerUIProps) => (\n <div className=\"sendbird-fileviewer\">\n <div className=\"sendbird-fileviewer__header\">\n <div className=\"sendbird-fileviewer__header__left\">\n <div className=\"sendbird-fileviewer__header__left__avatar\">\n <Avatar height=\"32px\" width=\"32px\" src={profileUrl} />\n </div>\n <Label\n className=\"sendbird-fileviewer__header__left__filename\"\n type={LabelTypography.H_2}\n color={LabelColors.ONBACKGROUND_1}\n >\n {name}\n </Label>\n <Label\n className=\"sendbird-fileviewer__header__left__sender-name\"\n type={LabelTypography.BODY_1}\n color={LabelColors.ONBACKGROUND_2}\n >\n {nickname}\n </Label>\n </div>\n <div className=\"sendbird-fileviewer__header__right\">\n {\n isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__header__right__actions\">\n <a\n className=\"sendbird-fileviewer__header__right__actions__download\"\n rel=\"noopener noreferrer\"\n href={url}\n target=\"_blank\"\n >\n <Icon\n type={IconTypes.DOWNLOAD}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n />\n </a>\n {\n onDelete && isByMe && (\n <div className=\"sendbird-fileviewer__header__right__actions__delete\">\n <Icon\n className={disableDelete ? 'disabled' : ''}\n type={IconTypes.DELETE}\n fillColor={disableDelete ? IconColors.GRAY : IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={() => { if (!disableDelete) { onDelete(); } }}\n />\n </div>\n )\n }\n </div>\n )\n }\n <div className=\"sendbird-fileviewer__header__right__actions__close\">\n <Icon\n type={IconTypes.CLOSE}\n fillColor={IconColors.ON_BACKGROUND_1}\n height=\"24px\"\n width=\"24px\"\n onClick={onCancel}\n />\n </div>\n </div>\n </div>\n <div className=\"sendbird-fileviewer__content\">\n {isVideo(type) && (\n <video controls className=\"sendbird-fileviewer__content__video\">\n <source src={url} type={type} />\n </video>\n )}\n {\n isImage(type) && (\n <img\n src={url}\n alt={name}\n className=\"sendbird-fileviewer__content__img\"\n />\n )\n }\n {\n !isSupportedFileView(type) && (\n <div className=\"sendbird-fileviewer__content__unsupported\">\n <Label type={LabelTypography.H_1} color={LabelColors.ONBACKGROUND_1}>\n Unsupoprted message\n </Label>\n </div>\n )\n }\n </div>\n </div>\n);\n\ntype FileViewerProps = {\n onCancel:() => void;\n message: FileMessage;\n};\n\nconst FileViewer: React.FC<FileViewerProps> = ({ onCancel, message }: FileViewerProps) => {\n const { deleteMessage } = useChannelContext();\n const {\n sender,\n type,\n url,\n name = '',\n threadInfo,\n } = message;\n const user = useSendbirdStateContext()?.config?.userId;\n const isByMe = user === message?.sender?.userId;\n const disableDelete = threadInfo?.replyCount > 0;\n const { profileUrl, nickname = '' } = sender;\n return createPortal(\n (\n <FileViewerComponent\n profileUrl={profileUrl}\n nickname={nickname}\n type={type}\n url={url}\n name={name}\n onCancel={onCancel}\n onDelete={() => {\n deleteMessage(message as EveryMessage).then(() => {\n onCancel();\n });\n }}\n isByMe={isByMe}\n disableDelete={disableDelete}\n />\n ),\n document.getElementById(MODAL_ROOT),\n );\n};\n\nexport default FileViewer;\n"],"names":["FileViewerComponent","_ref","profileUrl","nickname","name","type","url","isByMe","onCancel","onDelete","disableDelete","React","createElement","className","Avatar","height","width","src","Label","LabelTypography","H_2","color","LabelColors","ONBACKGROUND_1","BODY_1","ONBACKGROUND_2","isSupportedFileView","rel","href","target","Icon","IconTypes","DOWNLOAD","fillColor","IconColors","ON_BACKGROUND_1","DELETE","GRAY","onClick","CLOSE","isVideo","controls","isImage","alt","H_1","FileViewer","_ref2","_useSendbirdStateCont","_useSendbirdStateCont2","_message$sender","message","deleteMessage","useChannelContext","sender","threadInfo","user","useSendbirdStateContext","config","userId","replyCount","createPortal","then","document","getElementById","MODAL_ROOT"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAMA,mBAAgD,GAAGC,IAAA,IAAA;EAAA,IAAC;AAC/D;IACAC,UAAU;IACVC,QAAQ;AACR;IACAC,IAAI;IACJC,IAAI;IACJC,GAAG;AACH;IACAC,MAAM;IACNC,QAAQ;IACRC,QAAQ;AACRC,IAAAA,aAAAA;AACiB,GAAC,GAAAT,IAAA,CAAA;EAAA,oBAClBU,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,qBAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,6BAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,mCAAA;GACbF,eAAAA,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,2CAAA;AAA2C,GAAA,eACxDF,cAAA,CAAAC,aAAA,CAACE,MAAM,EAAA;AAACC,IAAAA,MAAM,EAAC,MAAM;AAACC,IAAAA,KAAK,EAAC,MAAM;AAACC,IAAAA,GAAG,EAAEf,UAAAA;AAAW,GAAA,CAAG,CAClD,eACNS,cAAA,CAAAC,aAAA,CAACM,KAAK,EAAA;AACJL,IAAAA,SAAS,EAAC,6CAA6C;IACvDR,IAAI,EAAEc,eAAe,CAACC,GAAI;IAC1BC,KAAK,EAAEC,WAAW,CAACC,cAAAA;AAAe,GAAA,EAEjCnB,IAAI,CACC,eACRO,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M;IAAEzD,UAAU;AAAEC,IAAAA,QAAQ,GAAG,EAAA;AAAG,GAAC,GAAGkD,MAAM,CAAA;AAC5C,EAAA,oBAAOO,YAAY,eAEfjD,cAAA,CAAAC,aAAA,CAACZ,mBAAmB,EAAA;AAClBE,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,GAAG,EAAEA,GAAI;AACTF,IAAAA,IAAI,EAAEA,IAAK;AACXI,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,QAAQ,EAAEA,MAAM;AACd0C,MAAAA,aAAa,CAACD,OAAO,CAAiB,CAACW,IAAI,CAAC,MAAM;AAChDrD,QAAAA,QAAQ,EAAE,CAAA;AACZ,OAAC,CAAC,CAAA;KACF;AACFD,IAAAA,MAAM,EAAEA,MAAO;AACfG,IAAAA,aAAa,EAAEA,aAAAA;AAAc,GAAA,CAC7B,EAEJoD,QAAQ,CAACC,cAAc,CAACC,UAAU,CAAC,CACpC,CAAA;AACH;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
-
import { L as Label, a as LabelTypography } from '../../index-
|
|
4
|
-
import '../../stringSet-
|
|
5
|
-
import '../../index-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-8781208d.js';
|
|
3
|
+
import { L as Label, a as LabelTypography } from '../../index-5a7039da.js';
|
|
4
|
+
import '../../stringSet-f13a0a37.js';
|
|
5
|
+
import '../../index-c17b453a.js';
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
|
|
8
8
|
const FrozenNotification = _ref => {
|
|
@@ -1,69 +1,71 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useMemo } from 'react';
|
|
2
|
-
import { f as format } from '../../index-
|
|
2
|
+
import { f as format } from '../../index-0cfeeaac.js';
|
|
3
3
|
import SuggestedMentionList from './SuggestedMentionList.js';
|
|
4
4
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
5
|
-
import { u as useChannelContext
|
|
6
|
-
import { h as getClassName } from '../../index-
|
|
7
|
-
import {
|
|
5
|
+
import { u as useChannelContext } from '../../ChannelProvider-849524b4.js';
|
|
6
|
+
import { h as getClassName } from '../../index-e9757459.js';
|
|
7
|
+
import { D as isDisabledBecauseFrozen, E as isDisabledBecauseMuted } from '../../utils-df42b9f9.js';
|
|
8
|
+
import { M as MAX_USER_MENTION_COUNT, a as MAX_USER_SUGGESTION_COUNT } from '../../const-cf103f8d.js';
|
|
8
9
|
import DateSeparator from '../../ui/DateSeparator.js';
|
|
9
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
10
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-5a7039da.js';
|
|
10
11
|
import MessageInput from '../../ui/MessageInput.js';
|
|
11
12
|
import MessageContent from '../../ui/MessageContent.js';
|
|
12
13
|
import FileViewer from './FileViewer.js';
|
|
13
14
|
import RemoveMessage from './RemoveMessageModal.js';
|
|
14
|
-
import { M as MessageInputKeys } from '../../const-
|
|
15
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
16
|
-
import { a as useHandleOnScrollCallback } from '../../index-
|
|
17
|
-
import {
|
|
18
|
-
import '../../index-
|
|
15
|
+
import { M as MessageInputKeys } from '../../const-035fb030.js';
|
|
16
|
+
import { u as useLocalization } from '../../LocalizationContext-8781208d.js';
|
|
17
|
+
import { a as useHandleOnScrollCallback } from '../../index-220222c3.js';
|
|
18
|
+
import { useDirtyGetMentions } from '../../Message/hooks/useDirtyGetMentions.js';
|
|
19
|
+
import '../../index-c17b453a.js';
|
|
19
20
|
import '../../ui/Icon.js';
|
|
20
21
|
import 'prop-types';
|
|
21
22
|
import '../../ui/Avatar.js';
|
|
22
23
|
import '../../ui/ImageRenderer.js';
|
|
23
|
-
import '../../uuid-
|
|
24
|
-
import '../../ThreadProvider-
|
|
24
|
+
import '../../uuid-1b498132.js';
|
|
25
|
+
import '../../ThreadProvider-9e14db75.js';
|
|
25
26
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
26
|
-
import '../../UserProfileContext-
|
|
27
|
-
import '../../_rollupPluginBabelHelpers-
|
|
27
|
+
import '../../UserProfileContext-3be56f3a.js';
|
|
28
|
+
import '../../_rollupPluginBabelHelpers-404d1a9c.js';
|
|
28
29
|
import '../../Thread/context/types.js';
|
|
29
30
|
import '@sendbird/chat';
|
|
30
|
-
import '../../topics-
|
|
31
|
+
import '../../topics-df485c66.js';
|
|
31
32
|
import '@sendbird/chat/groupChannel';
|
|
32
33
|
import '@sendbird/chat/message';
|
|
33
|
-
import '../../consts-
|
|
34
|
+
import '../../consts-f92f7a23.js';
|
|
34
35
|
import '../../withSendbird.js';
|
|
35
|
-
import '../../compareIds-
|
|
36
|
-
import '../../resolvedReplyType-
|
|
37
|
-
import '../../color-
|
|
38
|
-
import '../../stringSet-
|
|
36
|
+
import '../../compareIds-72c21832.js';
|
|
37
|
+
import '../../resolvedReplyType-8fa44680.js';
|
|
38
|
+
import '../../color-08fea5a1.js';
|
|
39
|
+
import '../../stringSet-f13a0a37.js';
|
|
39
40
|
import '../../ui/IconButton.js';
|
|
40
41
|
import '../../ui/Button.js';
|
|
42
|
+
import '../../index-5d775cdb.js';
|
|
41
43
|
import 'dompurify';
|
|
42
|
-
import '../../consts-
|
|
43
|
-
import '../../consts-
|
|
44
|
-
import '../../consts-
|
|
45
|
-
import '../../tokenize-
|
|
46
|
-
import '../../index.module-
|
|
44
|
+
import '../../consts-d9925dd6.js';
|
|
45
|
+
import '../../consts-52c058a5.js';
|
|
46
|
+
import '../../consts-dbf4e2a7.js';
|
|
47
|
+
import '../../tokenize-be306c61.js';
|
|
48
|
+
import '../../index.module-476c67cc.js';
|
|
47
49
|
import '../../ui/UserProfile.js';
|
|
48
50
|
import '../../sendbirdSelectors.js';
|
|
49
|
-
import '../../utils-
|
|
50
|
-
import '../../index-
|
|
51
|
+
import '../../utils-60a2e587.js';
|
|
52
|
+
import '../../index-3e9067b2.js';
|
|
51
53
|
import '../../ui/Loader.js';
|
|
52
|
-
import '../../index-
|
|
53
|
-
import '../../index-
|
|
54
|
+
import '../../index-adaead71.js';
|
|
55
|
+
import '../../index-3c8065f1.js';
|
|
54
56
|
import '../../ui/MessageItemMenu.js';
|
|
55
57
|
import '../../ui/ContextMenu.js';
|
|
56
58
|
import 'react-dom';
|
|
57
59
|
import '../../ui/SortByRow.js';
|
|
58
|
-
import '../../types-
|
|
60
|
+
import '../../types-b2ebbd50.js';
|
|
59
61
|
import '../../ui/MessageItemReactionMenu.js';
|
|
60
62
|
import '../../ui/ReactionButton.js';
|
|
61
|
-
import '../../useLongPress-
|
|
62
|
-
import '../../MediaQueryContext-
|
|
63
|
+
import '../../useLongPress-e69367cf.js';
|
|
64
|
+
import '../../MediaQueryContext-2ef9f34f.js';
|
|
63
65
|
import '../../ui/EmojiReactions.js';
|
|
64
66
|
import '../../ui/ReactionBadge.js';
|
|
65
67
|
import '../../ui/BottomSheet.js';
|
|
66
|
-
import '../../index-
|
|
68
|
+
import '../../index-92d47d85.js';
|
|
67
69
|
import '../../ui/UserListItem.js';
|
|
68
70
|
import '../../ui/MutedAvatarOverlay.js';
|
|
69
71
|
import '../../ui/Checkbox.js';
|
|
@@ -72,7 +74,7 @@ import '../../ui/TooltipWrapper.js';
|
|
|
72
74
|
import '../../Message/context.js';
|
|
73
75
|
import '../../ui/AdminMessage.js';
|
|
74
76
|
import '../../ui/TextMessageItemBody.js';
|
|
75
|
-
import '../../index-
|
|
77
|
+
import '../../index-bbc82f2a.js';
|
|
76
78
|
import '../../ui/MentionLabel.js';
|
|
77
79
|
import '../../ui/LinkLabel.js';
|
|
78
80
|
import '../../ui/FileMessageItemBody.js';
|
|
@@ -81,12 +83,12 @@ import '../../ui/ThumbnailMessageItemBody.js';
|
|
|
81
83
|
import '../../ui/OGMessageItemBody.js';
|
|
82
84
|
import '../../ui/UnknownMessageItemBody.js';
|
|
83
85
|
import '../../ui/QuoteMessage.js';
|
|
84
|
-
import '../../index-
|
|
86
|
+
import '../../index-ceda3633.js';
|
|
85
87
|
import '../../ui/ThreadReplies.js';
|
|
86
88
|
import '../../ui/VoiceMessageItemBody.js';
|
|
87
89
|
import '../../ui/ProgressBar.js';
|
|
88
90
|
import '../../VoicePlayer/useVoicePlayer.js';
|
|
89
|
-
import '../../index-
|
|
91
|
+
import '../../index-d637d23d.js';
|
|
90
92
|
import '../../VoiceRecorder/context.js';
|
|
91
93
|
import '../../ui/Modal.js';
|
|
92
94
|
import '../../ui/PlaybackTime.js';
|