@sendbird/uikit-react 3.4.6-rc.0 → 3.4.6
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 +46 -45
- package/App.js.map +1 -1
- package/CHANGELOG.md +10 -8
- package/Channel/components/ChannelHeader.js +19 -19
- package/Channel/components/ChannelUI.js +39 -39
- package/Channel/components/FileViewer.js +15 -15
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +34 -34
- package/Channel/components/MessageInput.js +27 -27
- package/Channel/components/MessageList.js +35 -35
- 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 +4 -4
- package/Channel/context.js +14 -14
- package/Channel.js +39 -39
- package/ChannelList/components/AddChannel.js +15 -15
- package/ChannelList/components/ChannelListHeader.js +6 -6
- package/ChannelList/components/ChannelListUI.js +30 -29
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +26 -26
- package/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/ChannelList/context.js +8 -8
- package/ChannelList.js +30 -29
- package/ChannelList.js.map +1 -1
- package/{ChannelListProvider-45cf488b.js → ChannelListProvider-a2f2ee4a.js} +8 -8
- package/{ChannelListProvider-45cf488b.js.map → ChannelListProvider-a2f2ee4a.js.map} +1 -1
- package/{ChannelProvider-9a52ed96.js → ChannelProvider-bb459e82.js} +10 -10
- package/{ChannelProvider-9a52ed96.js.map → ChannelProvider-bb459e82.js.map} +1 -1
- 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-8c395571.js → CreateChannelProvider-a935d833.js} +1 -1
- package/{CreateChannelProvider-8c395571.js.map → CreateChannelProvider-a935d833.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 -11
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile.js +12 -11
- package/EditUserProfile.js.map +1 -1
- package/{LocalizationContext-428ea690.js → LocalizationContext-3d8c0b24.js} +3 -3
- package/{LocalizationContext-428ea690.js.map → LocalizationContext-3d8c0b24.js.map} +1 -1
- package/{MediaQueryContext-e4d4fb2a.js → MediaQueryContext-1348e37b.js} +1 -1
- package/{MediaQueryContext-e4d4fb2a.js.map → MediaQueryContext-1348e37b.js.map} +1 -1
- package/{MemberList-f0614320.js → MemberList-d8124d7e.js} +5 -5
- package/{MemberList-f0614320.js.map → MemberList-d8124d7e.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +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 +19 -19
- package/OpenChannel/components/OpenChannelMessage.js +28 -28
- package/OpenChannel/components/OpenChannelMessageList.js +32 -32
- package/OpenChannel/components/OpenChannelUI.js +32 -32
- package/OpenChannel/context.js +8 -8
- package/OpenChannel.js +32 -32
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +13 -13
- package/{OpenChannelListProvider-1657d7da.js → OpenChannelListProvider-f9ec8658.js} +3 -3
- package/{OpenChannelListProvider-1657d7da.js.map → OpenChannelListProvider-f9ec8658.js.map} +1 -1
- package/{OpenChannelProvider-de3ddd2b.js → OpenChannelProvider-36d0dd05.js} +7 -7
- package/{OpenChannelProvider-de3ddd2b.js.map → OpenChannelProvider-36d0dd05.js.map} +1 -1
- 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-cced59b5.js → RemoveMessageModal-7852c71d.js} +3 -3
- package/{RemoveMessageModal-cced59b5.js.map → RemoveMessageModal-7852c71d.js.map} +1 -1
- package/SendbirdProvider.js +14 -19
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +30 -30
- package/Thread/components/ParentMessageInfoItem.js +18 -18
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +33 -33
- package/Thread/components/ThreadListItem.js +33 -33
- package/Thread/components/ThreadMessageInput.js +28 -28
- package/Thread/components/ThreadUI.js +37 -37
- package/Thread/context.js +8 -8
- package/Thread.js +37 -37
- package/{ThreadProvider-c33f66a4.js → ThreadProvider-43c384e9.js} +7 -7
- package/{ThreadProvider-c33f66a4.js.map → ThreadProvider-43c384e9.js.map} +1 -1
- package/{UserProfileContext-576f1ef9.js → UserProfileContext-41938ddc.js} +1 -1
- package/{UserProfileContext-576f1ef9.js.map → UserProfileContext-41938ddc.js.map} +1 -1
- package/{VoiceMessageInputWrapper-8f6bfd36.js → VoiceMessageInputWrapper-0cd90994.js} +7 -7
- package/{VoiceMessageInputWrapper-8f6bfd36.js.map → VoiceMessageInputWrapper-0cd90994.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +3 -3
- package/VoiceRecorder/context.js +3 -3
- package/VoiceRecorder/useVoiceRecorder.js +2 -2
- package/{WebAudioUtils-f9237c94.js → WebAudioUtils-682aa6c0.js} +1 -1
- package/{WebAudioUtils-f9237c94.js.map → WebAudioUtils-682aa6c0.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-6e60e429.js → _rollupPluginBabelHelpers-79f64283.js} +1 -1
- package/_rollupPluginBabelHelpers-79f64283.js.map +1 -0
- package/actionTypes-52102db0.js +8 -0
- package/actionTypes-52102db0.js.map +1 -0
- package/cjs/App.js +46 -45
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +19 -19
- package/cjs/Channel/components/ChannelUI.js +39 -39
- package/cjs/Channel/components/FileViewer.js +15 -15
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +34 -34
- package/cjs/Channel/components/MessageInput.js +27 -27
- package/cjs/Channel/components/MessageList.js +35 -35
- 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 +4 -4
- package/cjs/Channel/context.js +14 -14
- package/cjs/Channel.js +39 -39
- package/cjs/ChannelList/components/AddChannel.js +15 -15
- package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
- package/cjs/ChannelList/components/ChannelListUI.js +30 -29
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +26 -26
- package/cjs/ChannelList/components/ChannelPreviewAction.js +14 -14
- package/cjs/ChannelList/context.js +8 -8
- package/cjs/ChannelList.js +30 -29
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/{ChannelListProvider-f74d4451.js → ChannelListProvider-b0a363e0.js} +8 -8
- package/cjs/{ChannelListProvider-f74d4451.js.map → ChannelListProvider-b0a363e0.js.map} +1 -1
- package/cjs/{ChannelProvider-fcb80591.js → ChannelProvider-cf5867c2.js} +10 -10
- package/cjs/{ChannelProvider-fcb80591.js.map → ChannelProvider-cf5867c2.js.map} +1 -1
- 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-1be5d0c0.js → CreateChannelProvider-f82d812f.js} +1 -1
- package/cjs/{CreateChannelProvider-1be5d0c0.js.map → CreateChannelProvider-f82d812f.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 -11
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile.js +12 -11
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/{LocalizationContext-9b216d02.js → LocalizationContext-498cb747.js} +3 -3
- package/cjs/{LocalizationContext-9b216d02.js.map → LocalizationContext-498cb747.js.map} +1 -1
- package/cjs/{MediaQueryContext-ea137add.js → MediaQueryContext-b9c2ec1f.js} +1 -1
- package/cjs/{MediaQueryContext-ea137add.js.map → MediaQueryContext-b9c2ec1f.js.map} +1 -1
- package/cjs/{MemberList-4f805690.js → MemberList-13ba769f.js} +5 -5
- package/cjs/{MemberList-4f805690.js.map → MemberList-13ba769f.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/context.js +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 +19 -19
- package/cjs/OpenChannel/components/OpenChannelMessage.js +28 -28
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +32 -32
- package/cjs/OpenChannel/components/OpenChannelUI.js +32 -32
- package/cjs/OpenChannel/context.js +8 -8
- package/cjs/OpenChannel.js +32 -32
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +4 -4
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/{OpenChannelListProvider-6883fa4a.js → OpenChannelListProvider-02d6d44b.js} +3 -3
- package/cjs/{OpenChannelListProvider-6883fa4a.js.map → OpenChannelListProvider-02d6d44b.js.map} +1 -1
- package/cjs/{OpenChannelProvider-cb41bba9.js → OpenChannelProvider-850b9cd0.js} +7 -7
- package/cjs/{OpenChannelProvider-cb41bba9.js.map → OpenChannelProvider-850b9cd0.js.map} +1 -1
- 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-193a514d.js → RemoveMessageModal-457b1535.js} +3 -3
- package/cjs/{RemoveMessageModal-193a514d.js.map → RemoveMessageModal-457b1535.js.map} +1 -1
- package/cjs/SendbirdProvider.js +20 -25
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +30 -30
- package/cjs/Thread/components/ParentMessageInfoItem.js +18 -18
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +33 -33
- package/cjs/Thread/components/ThreadListItem.js +33 -33
- package/cjs/Thread/components/ThreadMessageInput.js +28 -28
- package/cjs/Thread/components/ThreadUI.js +37 -37
- package/cjs/Thread/context.js +8 -8
- package/cjs/Thread.js +37 -37
- package/cjs/{ThreadProvider-c3623e5f.js → ThreadProvider-37f2f0a3.js} +7 -7
- package/cjs/{ThreadProvider-c3623e5f.js.map → ThreadProvider-37f2f0a3.js.map} +1 -1
- package/cjs/{UserProfileContext-ad079e6d.js → UserProfileContext-617420c9.js} +1 -1
- package/cjs/{UserProfileContext-ad079e6d.js.map → UserProfileContext-617420c9.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-1c4004d1.js → VoiceMessageInputWrapper-43c29f38.js} +7 -7
- package/cjs/{VoiceMessageInputWrapper-1c4004d1.js.map → VoiceMessageInputWrapper-43c29f38.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +3 -3
- package/cjs/VoiceRecorder/context.js +3 -3
- package/cjs/VoiceRecorder/useVoiceRecorder.js +2 -2
- package/cjs/{WebAudioUtils-33ee4d42.js → WebAudioUtils-2b845cd2.js} +1 -1
- package/cjs/{WebAudioUtils-33ee4d42.js.map → WebAudioUtils-2b845cd2.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-440ec6e2.js → _rollupPluginBabelHelpers-c2313dcd.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-c2313dcd.js.map +1 -0
- package/cjs/actionTypes-0e0d2d59.js +10 -0
- package/cjs/actionTypes-0e0d2d59.js.map +1 -0
- package/cjs/{color-8b30623d.js → color-7f7508e6.js} +1 -1
- package/cjs/{color-8b30623d.js.map → color-7f7508e6.js.map} +1 -1
- package/cjs/{compareIds-3dbb4f79.js → compareIds-27f7912f.js} +1 -1
- package/cjs/{compareIds-3dbb4f79.js.map → compareIds-27f7912f.js.map} +1 -1
- package/cjs/{const-7bb85121.js → const-61fc7be6.js} +1 -1
- package/cjs/{const-7bb85121.js.map → const-61fc7be6.js.map} +1 -1
- package/cjs/{const-1e096998.js → const-e22c9d25.js} +1 -1
- package/cjs/{const-1e096998.js.map → const-e22c9d25.js.map} +1 -1
- package/cjs/{consts-54b7b2b1.js → consts-3764bd68.js} +1 -1
- package/cjs/{consts-54b7b2b1.js.map → consts-3764bd68.js.map} +1 -1
- package/cjs/{consts-d1f579c4.js → consts-46fa3a3a.js} +1 -1
- package/cjs/{consts-d1f579c4.js.map → consts-46fa3a3a.js.map} +1 -1
- package/cjs/{consts-02c09d93.js → consts-8605e767.js} +1 -1
- package/cjs/{consts-02c09d93.js.map → consts-8605e767.js.map} +1 -1
- package/cjs/{consts-3ebe6f94.js → consts-ad849467.js} +1 -1
- package/cjs/{consts-3ebe6f94.js.map → consts-ad849467.js.map} +1 -1
- package/cjs/{context-855dcb8e.js → context-a4af6955.js} +2 -2
- package/cjs/{context-855dcb8e.js.map → context-a4af6955.js.map} +1 -1
- package/cjs/dist/index.css +92 -92
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-6d24cef9.js → index-0b9ad941.js} +7 -7
- package/cjs/{index-6d24cef9.js.map → index-0b9ad941.js.map} +1 -1
- package/cjs/{index-7f214e91.js → index-0dff9958.js} +7 -7
- package/cjs/{index-7f214e91.js.map → index-0dff9958.js.map} +1 -1
- package/cjs/{index-d6f14382.js → index-2ac1f908.js} +2 -2
- package/cjs/{index-d6f14382.js.map → index-2ac1f908.js.map} +1 -1
- package/cjs/{index-5bba1fd5.js → index-3626dfeb.js} +2 -2
- package/cjs/{index-5bba1fd5.js.map → index-3626dfeb.js.map} +1 -1
- package/cjs/{index-d85616b2.js → index-67f813a3.js} +1 -1
- package/cjs/{index-d85616b2.js.map → index-67f813a3.js.map} +1 -1
- package/cjs/{index-ecfe08c9.js → index-71173fef.js} +2 -2
- package/cjs/{index-ecfe08c9.js.map → index-71173fef.js.map} +1 -1
- package/cjs/{index-15a62d58.js → index-8b5a13fe.js} +6 -5
- package/cjs/index-8b5a13fe.js.map +1 -0
- package/cjs/{index-02729806.js → index-8b6bb1ee.js} +1 -1
- package/cjs/{index-02729806.js.map → index-8b6bb1ee.js.map} +1 -1
- package/cjs/{index-a1141d68.js → index-983f9d7a.js} +4 -4
- package/cjs/{index-a1141d68.js.map → index-983f9d7a.js.map} +1 -1
- package/cjs/{index-8d42b734.js → index-a415176f.js} +2 -2
- package/cjs/{index-8d42b734.js.map → index-a415176f.js.map} +1 -1
- package/cjs/{index-8a187344.js → index-a4887600.js} +3 -3
- package/cjs/{index-8a187344.js.map → index-a4887600.js.map} +1 -1
- package/cjs/{index-b95c8165.js → index-ac1b0ab9.js} +2 -2
- package/cjs/{index-b95c8165.js.map → index-ac1b0ab9.js.map} +1 -1
- package/cjs/{index-3d6159df.js → index-b8a20afd.js} +2 -2
- package/cjs/{index-3d6159df.js.map → index-b8a20afd.js.map} +1 -1
- package/cjs/{index-f8237241.js → index-cd680348.js} +3 -3
- package/cjs/{index-f8237241.js.map → index-cd680348.js.map} +1 -1
- package/cjs/{index-9e320445.js → index-ddcf90b1.js} +5 -5
- package/cjs/{index-9e320445.js.map → index-ddcf90b1.js.map} +1 -1
- package/cjs/{index-8a64de0e.js → index-ead97d9a.js} +4 -4
- package/cjs/{index-8a64de0e.js.map → index-ead97d9a.js.map} +1 -1
- package/cjs/index.js +50 -49
- package/cjs/index.js.map +1 -1
- package/cjs/index.module-cf39e3b9.js +6 -0
- package/cjs/index.module-cf39e3b9.js.map +1 -0
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/{stringSet-e52248ab.js → stringSet-061fe0c1.js} +1 -1
- package/cjs/{stringSet-e52248ab.js.map → stringSet-061fe0c1.js.map} +1 -1
- package/cjs/{tokenize-c5dd544b.js → tokenize-7e34a56e.js} +3 -3
- package/cjs/{tokenize-c5dd544b.js.map → tokenize-7e34a56e.js.map} +1 -1
- package/cjs/{topics-09d72ec0.js → topics-c8adbede.js} +1 -1
- package/cjs/{topics-09d72ec0.js.map → topics-c8adbede.js.map} +1 -1
- package/cjs/{tslib.es6-957ba986.js → tslib.es6-8f4b0cfe.js} +1 -1
- package/cjs/{tslib.es6-957ba986.js.map → tslib.es6-8f4b0cfe.js.map} +1 -1
- package/cjs/{types-68cc0fcf.js → types-beecfca4.js} +1 -1
- package/cjs/{types-68cc0fcf.js.map → types-beecfca4.js.map} +1 -1
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +2 -2
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +3 -3
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +1 -1
- package/cjs/ui/Input.js +2 -2
- package/cjs/ui/Label.js +2 -2
- package/cjs/ui/LinkLabel.js +2 -2
- package/cjs/ui/Loader.js +1 -1
- package/cjs/ui/MentionLabel.js +10 -10
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +28 -28
- package/cjs/ui/MessageInput.js +13 -13
- package/cjs/ui/MessageItemMenu.js +8 -8
- 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 +14 -14
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +6 -6
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +16 -16
- package/cjs/ui/OpenchannelOGMessage.js +19 -19
- package/cjs/ui/OpenchannelThumbnailMessage.js +15 -15
- package/cjs/ui/OpenchannelUserMessage.js +16 -16
- 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 +14 -14
- 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 +10 -10
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +5 -5
- package/cjs/ui/VoiceMessgeInput.js +8 -8
- package/cjs/ui/Word.js +10 -10
- package/cjs/{useLongPress-640ea281.js → useLongPress-f3ee01a0.js} +3 -3
- package/cjs/{useLongPress-640ea281.js.map → useLongPress-f3ee01a0.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/{utils-a82eaed9.js → utils-1038446c.js} +1 -1
- package/cjs/{utils-a82eaed9.js.map → utils-1038446c.js.map} +1 -1
- package/cjs/{utils-93739833.js → utils-3f3c2287.js} +2 -2
- package/cjs/{utils-93739833.js.map → utils-3f3c2287.js.map} +1 -1
- package/cjs/{utils-dd55b959.js → utils-6a97ff3a.js} +1 -1
- package/cjs/{utils-dd55b959.js.map → utils-6a97ff3a.js.map} +1 -1
- package/cjs/{utils-7346a672.js → utils-98ac09d1.js} +1 -1
- package/cjs/{utils-7346a672.js.map → utils-98ac09d1.js.map} +1 -1
- package/cjs/{uuid-a8af0c03.js → uuid-1ffa3b79.js} +1 -1
- package/cjs/{uuid-a8af0c03.js.map → uuid-1ffa3b79.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-2037c3b8.js → color-73049158.js} +1 -1
- package/{color-2037c3b8.js.map → color-73049158.js.map} +1 -1
- package/{compareIds-b858e41a.js → compareIds-88bffa50.js} +1 -1
- package/{compareIds-b858e41a.js.map → compareIds-88bffa50.js.map} +1 -1
- package/{const-85ec8faf.js → const-2919bc87.js} +1 -1
- package/{const-85ec8faf.js.map → const-2919bc87.js.map} +1 -1
- package/{const-10a01327.js → const-df1daff9.js} +1 -1
- package/{const-10a01327.js.map → const-df1daff9.js.map} +1 -1
- package/{consts-89b1e965.js → consts-0ea80430.js} +1 -1
- package/{consts-89b1e965.js.map → consts-0ea80430.js.map} +1 -1
- package/{consts-ef58410d.js → consts-1861f891.js} +1 -1
- package/{consts-ef58410d.js.map → consts-1861f891.js.map} +1 -1
- package/{consts-f3b2a046.js → consts-966c9540.js} +1 -1
- package/{consts-f3b2a046.js.map → consts-966c9540.js.map} +1 -1
- package/{consts-3fe926ac.js → consts-f4362414.js} +1 -1
- package/{consts-3fe926ac.js.map → consts-f4362414.js.map} +1 -1
- package/{context-8436b333.js → context-9baa8d25.js} +2 -2
- package/{context-8436b333.js.map → context-9baa8d25.js.map} +1 -1
- package/dist/index.css +92 -92
- package/dist/index.css.map +1 -1
- package/{index-e0325c33.js → index-179bed8d.js} +2 -2
- package/{index-e0325c33.js.map → index-179bed8d.js.map} +1 -1
- package/{index-4a1325ab.js → index-61a102d7.js} +7 -7
- package/{index-4a1325ab.js.map → index-61a102d7.js.map} +1 -1
- package/{index-10da4b99.js → index-91355132.js} +4 -4
- package/{index-10da4b99.js.map → index-91355132.js.map} +1 -1
- package/{index-8d6fa44a.js → index-95b46112.js} +2 -2
- package/{index-8d6fa44a.js.map → index-95b46112.js.map} +1 -1
- package/{index-23251a75.js → index-9cead71b.js} +2 -2
- package/{index-23251a75.js.map → index-9cead71b.js.map} +1 -1
- package/{index-f0fa0260.js → index-a9183365.js} +4 -4
- package/{index-f0fa0260.js.map → index-a9183365.js.map} +1 -1
- package/{index-8b3cd0b6.js → index-aaa9b9f8.js} +1 -1
- package/{index-8b3cd0b6.js.map → index-aaa9b9f8.js.map} +1 -1
- package/{index-b41d07df.js → index-ac5ad4f9.js} +3 -3
- package/{index-b41d07df.js.map → index-ac5ad4f9.js.map} +1 -1
- package/{index-d5a761b9.js → index-ad125f51.js} +1 -1
- package/{index-d5a761b9.js.map → index-ad125f51.js.map} +1 -1
- package/{index-390c0bba.js → index-c70af435.js} +5 -5
- package/{index-390c0bba.js.map → index-c70af435.js.map} +1 -1
- package/{index-8efe881f.js → index-cce0e324.js} +2 -2
- package/{index-8efe881f.js.map → index-cce0e324.js.map} +1 -1
- package/{index-2f83ba2a.js → index-d37f34a3.js} +2 -2
- package/{index-2f83ba2a.js.map → index-d37f34a3.js.map} +1 -1
- package/{index-f87c5aab.js → index-e378ca4e.js} +2 -2
- package/{index-f87c5aab.js.map → index-e378ca4e.js.map} +1 -1
- package/{index-5cbdbcf9.js → index-f0f9692b.js} +7 -7
- package/{index-5cbdbcf9.js.map → index-f0f9692b.js.map} +1 -1
- package/{index-84b28e71.js → index-fa96d1c0.js} +6 -5
- package/index-fa96d1c0.js.map +1 -0
- package/{index-e01f2743.js → index-fd4fc9f0.js} +3 -3
- package/{index-e01f2743.js.map → index-fd4fc9f0.js.map} +1 -1
- package/index.d.ts +1 -1
- package/index.js +50 -49
- package/index.js.map +1 -1
- package/index.module-e6530c0d.js +4 -0
- package/index.module-e6530c0d.js.map +1 -0
- package/package.json +1 -1
- package/sendbirdSelectors.js +2 -2
- package/{stringSet-fa7e0d83.js → stringSet-9d579825.js} +1 -1
- package/{stringSet-fa7e0d83.js.map → stringSet-9d579825.js.map} +1 -1
- package/{tokenize-7bcc2072.js → tokenize-bd8e35b2.js} +3 -3
- package/{tokenize-7bcc2072.js.map → tokenize-bd8e35b2.js.map} +1 -1
- package/{topics-2647294d.js → topics-f9301447.js} +1 -1
- package/{topics-2647294d.js.map → topics-f9301447.js.map} +1 -1
- package/{tslib.es6-debac48c.js → tslib.es6-d6e50ec3.js} +1 -1
- package/{tslib.es6-debac48c.js.map → tslib.es6-d6e50ec3.js.map} +1 -1
- package/{types-abb04b7a.js → types-d0a9adf8.js} +1 -1
- package/{types-abb04b7a.js.map → types-d0a9adf8.js.map} +1 -1
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +2 -2
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +1 -1
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +3 -3
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +7 -7
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/Loader.js +1 -1
- package/ui/MentionLabel.js +10 -10
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +28 -28
- package/ui/MessageInput.js +13 -13
- package/ui/MessageItemMenu.js +8 -8
- 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 +14 -14
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +6 -6
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +16 -16
- package/ui/OpenchannelOGMessage.js +19 -19
- package/ui/OpenchannelThumbnailMessage.js +15 -15
- package/ui/OpenchannelUserMessage.js +16 -16
- 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 +14 -14
- 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 +10 -10
- package/ui/UserProfile.js +9 -9
- package/ui/VoiceMessageItemBody.js +5 -5
- package/ui/VoiceMessgeInput.js +8 -8
- package/ui/Word.js +10 -10
- package/{useLongPress-42dc7c5d.js → useLongPress-f119ff35.js} +3 -3
- package/{useLongPress-42dc7c5d.js.map → useLongPress-f119ff35.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/{utils-1905e84d.js → utils-0c8334fa.js} +2 -2
- package/{utils-1905e84d.js.map → utils-0c8334fa.js.map} +1 -1
- package/{utils-87be98af.js → utils-86d65b96.js} +1 -1
- package/{utils-87be98af.js.map → utils-86d65b96.js.map} +1 -1
- package/{utils-19ce54ee.js → utils-e53018f1.js} +1 -1
- package/{utils-19ce54ee.js.map → utils-e53018f1.js.map} +1 -1
- package/{utils-b568cd44.js → utils-e659e765.js} +1 -1
- package/{utils-b568cd44.js.map → utils-e659e765.js.map} +1 -1
- package/{uuid-e979d613.js → uuid-86cb48e0.js} +1 -1
- package/{uuid-e979d613.js.map → uuid-86cb48e0.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/_rollupPluginBabelHelpers-6e60e429.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-440ec6e2.js.map +0 -1
- package/cjs/index-15a62d58.js.map +0 -1
- package/index-84b28e71.js.map +0 -1
package/Channel.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { C as ChannelProvider } from './ChannelProvider-
|
|
2
|
+
import { C as ChannelProvider } from './ChannelProvider-bb459e82.js';
|
|
3
3
|
import ChannelUI from './Channel/components/ChannelUI.js';
|
|
4
|
-
import './UserProfileContext-
|
|
4
|
+
import './UserProfileContext-41938ddc.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import './useSendbirdStateContext.js';
|
|
7
7
|
import './withSendbird.js';
|
|
8
|
-
import './tslib.es6-
|
|
9
|
-
import './index-
|
|
10
|
-
import './index-
|
|
11
|
-
import './topics-
|
|
12
|
-
import './index-
|
|
8
|
+
import './tslib.es6-d6e50ec3.js';
|
|
9
|
+
import './index-95b46112.js';
|
|
10
|
+
import './index-aaa9b9f8.js';
|
|
11
|
+
import './topics-f9301447.js';
|
|
12
|
+
import './index-e378ca4e.js';
|
|
13
13
|
import './utils/message/getOutgoingMessageState.js';
|
|
14
|
-
import './_rollupPluginBabelHelpers-
|
|
15
|
-
import './compareIds-
|
|
16
|
-
import './const-
|
|
14
|
+
import './_rollupPluginBabelHelpers-79f64283.js';
|
|
15
|
+
import './compareIds-88bffa50.js';
|
|
16
|
+
import './const-df1daff9.js';
|
|
17
17
|
import '@sendbird/chat/groupChannel';
|
|
18
|
-
import './uuid-
|
|
18
|
+
import './uuid-86cb48e0.js';
|
|
19
19
|
import '@sendbird/chat/message';
|
|
20
20
|
import './ui/ContextMenu.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import './ui/SortByRow.js';
|
|
23
|
-
import './index-
|
|
24
|
-
import './stringSet-
|
|
23
|
+
import './index-cce0e324.js';
|
|
24
|
+
import './stringSet-9d579825.js';
|
|
25
25
|
import './ui/ReactionButton.js';
|
|
26
26
|
import './ui/ImageRenderer.js';
|
|
27
27
|
import './ui/Icon.js';
|
|
28
|
-
import './consts-
|
|
29
|
-
import './index-
|
|
30
|
-
import './LocalizationContext-
|
|
28
|
+
import './consts-966c9540.js';
|
|
29
|
+
import './index-91355132.js';
|
|
30
|
+
import './LocalizationContext-3d8c0b24.js';
|
|
31
31
|
import './ui/Loader.js';
|
|
32
32
|
import './ui/ConnectionStatus.js';
|
|
33
33
|
import './Channel/components/ChannelHeader.js';
|
|
34
|
-
import './utils-
|
|
34
|
+
import './utils-0c8334fa.js';
|
|
35
35
|
import './ui/IconButton.js';
|
|
36
36
|
import './ui/ChannelAvatar.js';
|
|
37
37
|
import './ui/Avatar.js';
|
|
38
|
-
import './utils-
|
|
39
|
-
import './MediaQueryContext-
|
|
40
|
-
import './utils-
|
|
38
|
+
import './utils-e659e765.js';
|
|
39
|
+
import './MediaQueryContext-1348e37b.js';
|
|
40
|
+
import './utils-86d65b96.js';
|
|
41
41
|
import './Channel/components/MessageList.js';
|
|
42
42
|
import './Channel/components/Message.js';
|
|
43
43
|
import './Channel/components/SuggestedMentionList.js';
|
|
44
|
-
import './const-
|
|
45
|
-
import './ThreadProvider-
|
|
44
|
+
import './const-2919bc87.js';
|
|
45
|
+
import './ThreadProvider-43c384e9.js';
|
|
46
46
|
import './Thread/context/types.js';
|
|
47
47
|
import '@sendbird/chat';
|
|
48
48
|
import './ui/DateSeparator.js';
|
|
49
|
-
import './color-
|
|
49
|
+
import './color-73049158.js';
|
|
50
50
|
import './ui/MessageInput.js';
|
|
51
51
|
import './ui/Button.js';
|
|
52
52
|
import 'dompurify';
|
|
53
|
-
import './consts-
|
|
54
|
-
import './consts-
|
|
55
|
-
import './consts-
|
|
56
|
-
import './tokenize-
|
|
53
|
+
import './consts-f4362414.js';
|
|
54
|
+
import './consts-1861f891.js';
|
|
55
|
+
import './consts-0ea80430.js';
|
|
56
|
+
import './tokenize-bd8e35b2.js';
|
|
57
57
|
import './ui/MessageContent.js';
|
|
58
58
|
import './ui/UserProfile.js';
|
|
59
59
|
import './sendbirdSelectors.js';
|
|
60
|
-
import './index-
|
|
61
|
-
import './index-
|
|
62
|
-
import './index-
|
|
60
|
+
import './index-61a102d7.js';
|
|
61
|
+
import './index-ac5ad4f9.js';
|
|
62
|
+
import './index-d37f34a3.js';
|
|
63
63
|
import './ui/MessageItemMenu.js';
|
|
64
|
-
import './types-
|
|
64
|
+
import './types-d0a9adf8.js';
|
|
65
65
|
import './ui/MessageItemReactionMenu.js';
|
|
66
66
|
import './ui/EmojiReactions.js';
|
|
67
67
|
import './ui/Tooltip.js';
|
|
@@ -69,8 +69,8 @@ import './ui/TooltipWrapper.js';
|
|
|
69
69
|
import './ui/ReactionBadge.js';
|
|
70
70
|
import './ui/AdminMessage.js';
|
|
71
71
|
import './ui/TextMessageItemBody.js';
|
|
72
|
-
import './index-
|
|
73
|
-
import '
|
|
72
|
+
import './index-c70af435.js';
|
|
73
|
+
import './index.module-e6530c0d.js';
|
|
74
74
|
import './Message/context.js';
|
|
75
75
|
import './ui/MentionLabel.js';
|
|
76
76
|
import './ui/LinkLabel.js';
|
|
@@ -80,28 +80,28 @@ import './ui/ThumbnailMessageItemBody.js';
|
|
|
80
80
|
import './ui/OGMessageItemBody.js';
|
|
81
81
|
import './ui/UnknownMessageItemBody.js';
|
|
82
82
|
import './ui/QuoteMessage.js';
|
|
83
|
-
import './useLongPress-
|
|
83
|
+
import './useLongPress-f119ff35.js';
|
|
84
84
|
import './ui/BottomSheet.js';
|
|
85
|
-
import './index-
|
|
85
|
+
import './index-ad125f51.js';
|
|
86
86
|
import './ui/ThreadReplies.js';
|
|
87
87
|
import './ui/VoiceMessageItemBody.js';
|
|
88
88
|
import './ui/ProgressBar.js';
|
|
89
89
|
import './VoicePlayer/useVoicePlayer.js';
|
|
90
|
-
import './index-
|
|
90
|
+
import './index-fd4fc9f0.js';
|
|
91
91
|
import './VoiceRecorder/context.js';
|
|
92
92
|
import './ui/PlaybackTime.js';
|
|
93
93
|
import './Channel/components/FileViewer.js';
|
|
94
94
|
import './Channel/components/RemoveMessageModal.js';
|
|
95
95
|
import './ui/Modal.js';
|
|
96
|
-
import './index-
|
|
96
|
+
import './index-9cead71b.js';
|
|
97
97
|
import './Channel/components/UnreadCount.js';
|
|
98
98
|
import './Channel/components/FrozenNotification.js';
|
|
99
99
|
import './Channel/components/TypingIndicator.js';
|
|
100
100
|
import './Channel/components/MessageInput.js';
|
|
101
101
|
import './ui/QuoteMessageInput.js';
|
|
102
|
-
import './VoiceMessageInputWrapper-
|
|
102
|
+
import './VoiceMessageInputWrapper-0cd90994.js';
|
|
103
103
|
import './VoiceRecorder/useVoiceRecorder.js';
|
|
104
|
-
import './index-
|
|
104
|
+
import './index-a9183365.js';
|
|
105
105
|
|
|
106
106
|
var Channel = function (props) {
|
|
107
107
|
return /*#__PURE__*/React__default.createElement(ChannelProvider, {
|
|
@@ -3,40 +3,40 @@ import IconButton from '../../ui/IconButton.js';
|
|
|
3
3
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
4
4
|
import CreateChannel from '../../CreateChannel.js';
|
|
5
5
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
6
|
-
import { u as useChannelListContext } from '../../ChannelListProvider-
|
|
7
|
-
import '../../tslib.es6-
|
|
6
|
+
import { u as useChannelListContext } from '../../ChannelListProvider-a2f2ee4a.js';
|
|
7
|
+
import '../../tslib.es6-d6e50ec3.js';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
10
|
-
import '../../CreateChannelProvider-
|
|
10
|
+
import '../../CreateChannelProvider-a935d833.js';
|
|
11
11
|
import '../../sendbirdSelectors.js';
|
|
12
|
-
import '../../topics-
|
|
13
|
-
import '../../utils-
|
|
12
|
+
import '../../topics-f9301447.js';
|
|
13
|
+
import '../../utils-86d65b96.js';
|
|
14
14
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
15
|
-
import '../../LocalizationContext-
|
|
16
|
-
import '../../stringSet-
|
|
17
|
-
import '../../index-
|
|
15
|
+
import '../../LocalizationContext-3d8c0b24.js';
|
|
16
|
+
import '../../stringSet-9d579825.js';
|
|
17
|
+
import '../../index-aaa9b9f8.js';
|
|
18
18
|
import '../../ui/Modal.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import '../../index-
|
|
20
|
+
import '../../index-ad125f51.js';
|
|
21
21
|
import '../../ui/Button.js';
|
|
22
|
-
import '../../index-
|
|
23
|
-
import '../../MediaQueryContext-
|
|
22
|
+
import '../../index-cce0e324.js';
|
|
23
|
+
import '../../MediaQueryContext-1348e37b.js';
|
|
24
24
|
import '../../ui/UserListItem.js';
|
|
25
|
-
import '../../UserProfileContext-
|
|
25
|
+
import '../../UserProfileContext-41938ddc.js';
|
|
26
26
|
import '../../ui/Avatar.js';
|
|
27
27
|
import '../../ui/ImageRenderer.js';
|
|
28
|
-
import '../../uuid-
|
|
28
|
+
import '../../uuid-86cb48e0.js';
|
|
29
29
|
import '../../ui/MutedAvatarOverlay.js';
|
|
30
30
|
import '../../ui/Checkbox.js';
|
|
31
31
|
import '../../ui/UserProfile.js';
|
|
32
32
|
import '../../ui/ContextMenu.js';
|
|
33
33
|
import '../../ui/SortByRow.js';
|
|
34
|
-
import '../../index-
|
|
34
|
+
import '../../index-e378ca4e.js';
|
|
35
35
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
36
36
|
import '../../CreateChannel/components/SelectChannelType.js';
|
|
37
37
|
import '../../withSendbird.js';
|
|
38
38
|
import '@sendbird/chat/groupChannel';
|
|
39
|
-
import '../../_rollupPluginBabelHelpers-
|
|
39
|
+
import '../../_rollupPluginBabelHelpers-79f64283.js';
|
|
40
40
|
|
|
41
41
|
var AddChannel = function () {
|
|
42
42
|
var _a;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../../LocalizationContext-
|
|
2
|
+
import { a as LocalizationContext } from '../../LocalizationContext-3d8c0b24.js';
|
|
3
3
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-cce0e324.js';
|
|
5
5
|
import Avatar from '../../ui/Avatar.js';
|
|
6
|
-
import '../../stringSet-
|
|
7
|
-
import '../../index-
|
|
6
|
+
import '../../stringSet-9d579825.js';
|
|
7
|
+
import '../../index-aaa9b9f8.js';
|
|
8
8
|
import '../../withSendbird.js';
|
|
9
|
-
import '../../tslib.es6-
|
|
9
|
+
import '../../tslib.es6-d6e50ec3.js';
|
|
10
10
|
import 'prop-types';
|
|
11
11
|
import '../../ui/ImageRenderer.js';
|
|
12
12
|
import '../../ui/Icon.js';
|
|
13
|
-
import '../../uuid-
|
|
13
|
+
import '../../uuid-86cb48e0.js';
|
|
14
14
|
|
|
15
15
|
var ChannelListHeader = function (_a) {
|
|
16
16
|
var renderHeader = _a.renderHeader,
|
|
@@ -3,68 +3,69 @@ import ChannelListHeader from './ChannelListHeader.js';
|
|
|
3
3
|
import { AddChannel } from './AddChannel.js';
|
|
4
4
|
import ChannelPreview from './ChannelPreview.js';
|
|
5
5
|
import ChannelPreviewAction from './ChannelPreviewAction.js';
|
|
6
|
-
import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-
|
|
6
|
+
import { u as useChannelListContext, F as FETCH_CHANNELS_START, a as FETCH_CHANNELS_SUCCESS, b as FETCH_CHANNELS_FAILURE, L as LEAVE_CHANNEL_SUCCESS, S as SET_CURRENT_CHANNEL } from '../../ChannelListProvider-a2f2ee4a.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
8
|
import EditProfile from '../../EditUserProfile.js';
|
|
9
|
-
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-
|
|
10
|
-
import '../../LocalizationContext-
|
|
11
|
-
import '../../stringSet-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../index-
|
|
9
|
+
import { P as PlaceHolder, a as PlaceHolderTypes } from '../../index-91355132.js';
|
|
10
|
+
import '../../LocalizationContext-3d8c0b24.js';
|
|
11
|
+
import '../../stringSet-9d579825.js';
|
|
12
|
+
import '../../index-aaa9b9f8.js';
|
|
13
|
+
import '../../index-cce0e324.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import '../../ui/Avatar.js';
|
|
16
|
-
import '../../tslib.es6-
|
|
16
|
+
import '../../tslib.es6-d6e50ec3.js';
|
|
17
17
|
import '../../ui/ImageRenderer.js';
|
|
18
18
|
import '../../ui/Icon.js';
|
|
19
|
-
import '../../uuid-
|
|
19
|
+
import '../../uuid-86cb48e0.js';
|
|
20
20
|
import '../../ui/IconButton.js';
|
|
21
21
|
import '../../CreateChannel.js';
|
|
22
22
|
import '../../CreateChannel/components/CreateChannelUI.js';
|
|
23
|
-
import '../../CreateChannelProvider-
|
|
23
|
+
import '../../CreateChannelProvider-a935d833.js';
|
|
24
24
|
import '../../sendbirdSelectors.js';
|
|
25
|
-
import '../../topics-
|
|
26
|
-
import '../../utils-
|
|
25
|
+
import '../../topics-f9301447.js';
|
|
26
|
+
import '../../utils-86d65b96.js';
|
|
27
27
|
import '../../CreateChannel/components/InviteUsers.js';
|
|
28
28
|
import '../../ui/Modal.js';
|
|
29
29
|
import 'react-dom';
|
|
30
|
-
import '../../index-
|
|
30
|
+
import '../../index-ad125f51.js';
|
|
31
31
|
import '../../ui/Button.js';
|
|
32
|
-
import '../../MediaQueryContext-
|
|
32
|
+
import '../../MediaQueryContext-1348e37b.js';
|
|
33
33
|
import '../../ui/UserListItem.js';
|
|
34
|
-
import '../../UserProfileContext-
|
|
34
|
+
import '../../UserProfileContext-41938ddc.js';
|
|
35
35
|
import '../../ui/MutedAvatarOverlay.js';
|
|
36
36
|
import '../../ui/Checkbox.js';
|
|
37
37
|
import '../../ui/UserProfile.js';
|
|
38
38
|
import '../../ui/ContextMenu.js';
|
|
39
39
|
import '../../ui/SortByRow.js';
|
|
40
|
-
import '../../index-
|
|
40
|
+
import '../../index-e378ca4e.js';
|
|
41
41
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
42
42
|
import '../../CreateChannel/components/SelectChannelType.js';
|
|
43
|
-
import '../../_rollupPluginBabelHelpers-
|
|
43
|
+
import '../../_rollupPluginBabelHelpers-79f64283.js';
|
|
44
44
|
import '../../ui/ChannelAvatar.js';
|
|
45
|
-
import '../../utils-
|
|
45
|
+
import '../../utils-e659e765.js';
|
|
46
46
|
import '../../ui/Badge.js';
|
|
47
|
-
import '../../index-
|
|
48
|
-
import '../../index-
|
|
47
|
+
import '../../index-61a102d7.js';
|
|
48
|
+
import '../../index-95b46112.js';
|
|
49
49
|
import '../../ui/Loader.js';
|
|
50
|
-
import '../../index-
|
|
51
|
-
import '../../index-
|
|
50
|
+
import '../../index-ac5ad4f9.js';
|
|
51
|
+
import '../../index-d37f34a3.js';
|
|
52
52
|
import '../../ui/MentionUserLabel.js';
|
|
53
|
-
import '../../consts-
|
|
53
|
+
import '../../consts-f4362414.js';
|
|
54
54
|
import '../../ui/TextButton.js';
|
|
55
|
-
import '../../color-
|
|
55
|
+
import '../../color-73049158.js';
|
|
56
56
|
import '../../Channel/components/TypingIndicator.js';
|
|
57
57
|
import '@sendbird/chat/groupChannel';
|
|
58
|
-
import '../../ChannelProvider-
|
|
59
|
-
import '../../compareIds-
|
|
60
|
-
import '../../const-
|
|
58
|
+
import '../../ChannelProvider-bb459e82.js';
|
|
59
|
+
import '../../compareIds-88bffa50.js';
|
|
60
|
+
import '../../const-df1daff9.js';
|
|
61
61
|
import '@sendbird/chat/message';
|
|
62
62
|
import '../../ui/ReactionButton.js';
|
|
63
|
-
import '../../consts-
|
|
64
|
-
import '../../useLongPress-
|
|
63
|
+
import '../../consts-966c9540.js';
|
|
64
|
+
import '../../useLongPress-f119ff35.js';
|
|
65
65
|
import '../../withSendbird.js';
|
|
66
|
-
import '../../index-
|
|
66
|
+
import '../../index-fa96d1c0.js';
|
|
67
67
|
import '../../ui/Input.js';
|
|
68
|
+
import '../../actionTypes-52102db0.js';
|
|
68
69
|
|
|
69
70
|
const isAboutSame = (a, b, px) => Math.abs(a - b) <= px;
|
|
70
71
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelListUI.js","sources":["../../../src/smart-components/ChannelList/components/utils.js","../../../src/smart-components/ChannelList/components/ChannelListUI/index.tsx"],"sourcesContent":["export const createDefaultUserListQuery = ({ sdk, userFilledApplicationUserListQuery = {} }) => {\n if (sdk?.createApplicationUserListQuery) {\n const params = sdk?.createApplicationUserListQuery();\n if (userFilledApplicationUserListQuery) {\n Object.keys(userFilledApplicationUserListQuery).forEach((key) => {\n params[key] = userFilledApplicationUserListQuery[key];\n });\n }\n return params;\n }\n return null;\n};\n\nconst getApplicationAttributes = (sdk = {}) => {\n const { appInfo = {} } = sdk;\n const { applicationAttributes = [] } = appInfo;\n return applicationAttributes;\n};\n\nexport const isBroadcastChannelEnabled = (sdk = {}) => {\n const ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);\n }\n\n return false;\n};\nexport const isSuperGroupChannelEnabled = (sdk = {}) => {\n const ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);\n }\n\n return false;\n};\n\nexport const isAboutSame = (a, b, px) => (Math.abs(a - b) <= px);\n\nexport const setChannelType = (params, type) => {\n if (type === 'broadcast') {\n // eslint-disable-next-line no-param-reassign\n params.isBroadcast = true;\n }\n if (type === 'supergroup') {\n // eslint-disable-next-line no-param-reassign\n params.isSuper = true;\n }\n return params;\n};\n\nexport const createChannel = (\n sdk,\n selectedUsers,\n onBeforeCreateChannel,\n userId,\n type = 'group',\n) => new Promise((resolve, reject) => {\n // have custom params\n if (onBeforeCreateChannel) {\n const params = onBeforeCreateChannel(selectedUsers);\n setChannelType(params, type);\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { reject(err); });\n return;\n }\n\n const params = new sdk.GroupChannelParams();\n params.addUserIds(selectedUsers);\n params.isDistinct = false;\n\n if (userId) {\n params.operatorUserIds = [userId];\n }\n setChannelType(params, type);\n // do not have custom params\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { resolve(err); });\n});\n\nexport default createChannel;\n","import './channel-list-ui.scss';\n\nimport React, { useState } from 'react';\nimport type { GroupChannel, Member, SendbirdGroupChat } from '@sendbird/chat/groupChannel';\nimport type { User } from '@sendbird/chat';\n\nimport ChannelListHeader from '../ChannelListHeader';\nimport AddChannel from '../AddChannel';\nimport ChannelPreview from '../ChannelPreview';\nimport ChannelPreviewAction from '../ChannelPreviewAction';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\nimport * as channelListActions from '../../dux/actionTypes';\n\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport EditUserProfile from '../../../EditUserProfile';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport { isAboutSame } from '../utils';\n\nconst DELIVERY_RECIPT = 'delivery_receipt';\n\ninterface RenderChannelPreviewProps {\n channel: GroupChannel;\n onLeaveChannel(\n channel: GroupChannel,\n onLeaveChannelCb?: (c: GroupChannel) => void,\n );\n}\n\ninterface RenderUserProfileProps {\n user: Member | User;\n currentUserId: string;\n close(): void;\n}\n\nexport interface ChannelListUIProps {\n renderChannelPreview?: (props: RenderChannelPreviewProps) => React.ReactElement;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n renderHeader?: (props: void) => React.ReactElement;\n renderPlaceHolderError?: (props: void) => React.ReactElement;\n renderPlaceHolderLoading?: (props: void) => React.ReactElement;\n renderPlaceHolderEmptyList?: (props: void) => React.ReactElement;\n}\n\nconst ChannelListUI: React.FC<ChannelListUIProps> = (props: ChannelListUIProps) => {\n const {\n renderHeader,\n renderChannelPreview,\n renderPlaceHolderError,\n renderPlaceHolderLoading,\n renderPlaceHolderEmptyList,\n } = props;\n\n const [showProfileEdit, setShowProfileEdit] = useState(false);\n\n const {\n onThemeChange,\n allowProfileEdit,\n allChannels,\n loading,\n currentChannel,\n channelListDispatcher,\n channelSource,\n typingChannels,\n initialized,\n } = useChannelListContext();\n\n const state = useSendbirdStateContext();\n\n const sdkStore = state?.stores?.sdkStore;\n const config = state?.config;\n const {\n logger,\n isOnline = false,\n markAsReadScheduler,\n } = config;\n\n const sdk = sdkStore?.sdk as SendbirdGroupChat;\n const sdkError = sdkStore?.error;\n\n return (\n <>\n <div className=\"sendbird-channel-list__header\">\n {\n renderHeader?.() || (\n <ChannelListHeader\n onEdit={() => {\n if (allowProfileEdit) {\n setShowProfileEdit(true);\n }\n }}\n allowProfileEdit={allowProfileEdit}\n renderIconButton={() => (\n <AddChannel />\n )}\n />\n )\n }\n </div>\n {\n showProfileEdit && (\n <EditUserProfile\n onThemeChange={onThemeChange}\n onCancel={() => { setShowProfileEdit(false); }}\n onEditProfile={() => {\n setShowProfileEdit(false);\n }}\n />\n )\n }\n <div\n className=\"sendbird-channel-list__body\"\n onScroll={(e) => {\n const target = e?.target as HTMLDivElement;\n const fetchMore = isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10);\n if (fetchMore && channelSource?.hasNext) {\n logger.info('ChannelList: Fetching more channels');\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_START,\n payload: null,\n });\n channelSource.next().then((channelList) => {\n logger.info('ChannelList: Fetching channels successful', channelList);\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_SUCCESS,\n payload: channelList,\n });\n const canSetMarkAsDelivered = sdk?.appInfo?.premiumFeatureList\n ?.find((feature) => (feature === DELIVERY_RECIPT));\n\n if (canSetMarkAsDelivered) {\n logger.info('ChannelList: Marking all channels as read');\n // eslint-disable-next-line no-unused-expressions\n channelList?.forEach((channel) => {\n if (channel?.unreadMessageCount > 0) {\n markAsReadScheduler.push(channel);\n }\n });\n }\n }).catch((err) => {\n logger.info('ChannelList: Fetching channels failed', err);\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_FAILURE,\n payload: err,\n });\n });\n }\n }}\n >\n {\n (sdkError && !loading) && (\n (renderPlaceHolderError && typeof renderPlaceHolderError === 'function') ? (\n renderPlaceHolderError?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n )\n }\n {/*\n To do: Implement windowing\n Implement windowing if you are dealing with large number of messages/channels\n https://github.com/bvaughn/react-window -> recommendation\n We hesitate to bring one more dependency to our library,\n we are planning to implement it inside the library\n */}\n <div>\n {\n allChannels && allChannels.map((channel, idx) => {\n // todo: Refactor and move this inside channel - preview\n const onLeaveChannel = (c, cb) => {\n logger.info('ChannelList: Leaving channel', c);\n c.leave()\n .then((res) => {\n logger.info('ChannelList: Leaving channel success', res);\n if (cb && typeof cb === 'function') {\n cb(res, null);\n }\n channelListDispatcher({\n type: channelListActions.LEAVE_CHANNEL_SUCCESS,\n payload: channel?.url,\n });\n })\n .catch((err) => {\n logger.error('ChannelList: Leaving channel failed', err);\n if (cb && typeof cb === 'function') {\n cb(null, err);\n }\n });\n };\n\n const onClick = () => {\n if (!isOnline) { return; }\n logger.info('ChannelList: Clicked on channel:', channel);\n channelListDispatcher({\n type: channelListActions.SET_CURRENT_CHANNEL,\n payload: channel,\n });\n };\n\n return (\n (renderChannelPreview)\n ? (\n // eslint-disable-next-line\n <div key={channel?.url} onClick={onClick}>\n {renderChannelPreview({ channel, onLeaveChannel })}\n </div>\n )\n : (\n <ChannelPreview\n key={channel?.url}\n tabIndex={idx}\n onClick={onClick}\n channel={channel}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n isActive={channel?.url === currentChannel?.url}\n isTyping={typingChannels?.some(({ url }) => url === channel?.url)}\n renderChannelAction={(() => (\n <ChannelPreviewAction\n channel={channel}\n disabled={!isOnline}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n />\n ))}\n />\n )\n );\n })\n }\n </div>\n {\n (!initialized && loading) && (\n (renderPlaceHolderLoading && typeof renderPlaceHolderLoading === 'function') ? (\n renderPlaceHolderLoading?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n )\n }\n {\n (initialized && allChannels?.length === 0) && (\n (renderPlaceHolderEmptyList && typeof renderPlaceHolderEmptyList === 'function') ? (\n renderPlaceHolderEmptyList?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n )\n }\n </div>\n </>\n );\n}\n\nexport default ChannelListUI;\n"],"names":["isAboutSame","a","b","px","Math","abs","DELIVERY_RECIPT","ChannelListUI","props","renderHeader","renderChannelPreview","renderPlaceHolderError","renderPlaceHolderLoading","renderPlaceHolderEmptyList","_b","useState","showProfileEdit","setShowProfileEdit","_c","useChannelListContext","onThemeChange","allowProfileEdit","allChannels","loading","currentChannel","channelListDispatcher","channelSource","typingChannels","initialized","state","useSendbirdStateContext","sdkStore","_a","stores","config","logger","_d","isOnline","markAsReadScheduler","sdk","sdkError","error","React","createElement","Fragment","className","ChannelListHeader","onEdit","renderIconButton","AddChannel","EditUserProfile","onCancel","onEditProfile","onScroll","e","target","fetchMore","clientHeight","scrollTop","scrollHeight","hasNext","info","type","channelListActions","payload","next","then","channelList","canSetMarkAsDelivered","appInfo","premiumFeatureList","find","feature","forEach","channel","unreadMessageCount","push","catch","err","PlaceHolder","PlaceHolderTypes","WRONG","map","idx","onLeaveChannel","c","cb","leave","res","url","onClick","key","ChannelPreview","tabIndex","isActive","isTyping","some","renderChannelAction","ChannelPreviewAction","disabled","LOADING","length","NO_CHANNELS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCO,MAAMA,WAAW,GAAGA,CAACC,CAAC,EAAEC,CAAC,EAAEC,EAAE,KAAMC,IAAI,CAACC,GAAG,CAACJ,CAAC,GAAGC,CAAC,CAAC,IAAIC,EAAG;;ACtBhE,IAAMG,eAAe,GAAG,kBAAkB,CAAA;AAyB1C,IAAMC,aAAa,GAAiC,UAACC,KAAyB,EAAA;;AAE1E,EAAA,IAAAC,YAAY,GAKVD,KAAK,CALKC,YAAA;IACZC,oBAAoB,GAIlBF,KAAK,CAJaE,oBAAA;IACpBC,sBAAsB,GAGpBH,KAAK,CAHeG,sBAAA;IACtBC,wBAAwB,GAEtBJ,KAAK,CAAAI,wBAFiB;IACxBC,0BAA0B,GACxBL,KAAK,CAAAK,0BADmB,CAAA;AAGtB,EAAA,IAAAC,EAAA,GAAwCC,QAAQ,CAAC,KAAK,CAAC;AAAtDC,IAAAA,eAAe,GAAAF,EAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,kBAAkB,GAAAH,EAAA,CAAA,CAAA,CAAmB,CAAA;EAEvD,IAAAI,EAUF,GAAAC,qBAAqB,EAAE;IATzBC,aAAa,GAAAF,EAAA,CAAAE,aAAA;IACbC,gBAAgB,GAAAH,EAAA,CAAAG,gBAAA;IAChBC,WAAW,GAAAJ,EAAA,CAAAI,WAAA;IACXC,OAAO,GAAAL,EAAA,CAAAK,OAAA;IACPC,cAAc,GAAAN,EAAA,CA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KAAK,UAAU,GACzEA,wBAAwB,KAAA,IAAA,IAAxBA,wBAAwB,KAAxB,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,wBAAwB,EAAI,gBAE5B8B,cAAA,CAAAC,aAAA,CAACoC,WAAW,EAAA;IAACjB,IAAI,EAAEkB,gBAAgB,CAACoB,OAAAA;GACrC,CAAA,CACF,EAGAxE,WAAW,IAAI,CAAAN,WAAW,aAAXA,WAAW,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAXA,WAAW,CAAE+E,MAAM,MAAK,CAAC,KACtCxF,0BAA0B,IAAI,OAAOA,0BAA0B,KAAK,UAAU,GAC7EA,0BAA0B,KAA1B,IAAA,IAAAA,0BAA0B,KAA1B,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,0BAA0B,EAAI,gBAE9B6B,cAAA,CAAAC,aAAA,CAACoC,WAAW,EAAA;IAACjB,IAAI,EAAEkB,gBAAgB,CAACsB,WAAAA;GACrC,CAAA,CACF,CAGP,CAAG,CAAA;AAEP;;;;"}
|
|
1
|
+
{"version":3,"file":"ChannelListUI.js","sources":["../../../src/smart-components/ChannelList/components/utils.js","../../../src/smart-components/ChannelList/components/ChannelListUI/index.tsx"],"sourcesContent":["export const createDefaultUserListQuery = ({ sdk, userFilledApplicationUserListQuery = {} }) => {\n if (sdk?.createApplicationUserListQuery) {\n const params = sdk?.createApplicationUserListQuery();\n if (userFilledApplicationUserListQuery) {\n Object.keys(userFilledApplicationUserListQuery).forEach((key) => {\n params[key] = userFilledApplicationUserListQuery[key];\n });\n }\n return params;\n }\n return null;\n};\n\nconst getApplicationAttributes = (sdk = {}) => {\n const { appInfo = {} } = sdk;\n const { applicationAttributes = [] } = appInfo;\n return applicationAttributes;\n};\n\nexport const isBroadcastChannelEnabled = (sdk = {}) => {\n const ALLOW_BROADCAST_CHANNEL = 'allow_broadcast_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_BROADCAST_CHANNEL);\n }\n\n return false;\n};\nexport const isSuperGroupChannelEnabled = (sdk = {}) => {\n const ALLOW_SUPER_GROUP_CHANNEL = 'allow_super_group_channel';\n const applicationAttributes = getApplicationAttributes(sdk);\n\n if (Array.isArray(applicationAttributes)) {\n return applicationAttributes.includes(ALLOW_SUPER_GROUP_CHANNEL);\n }\n\n return false;\n};\n\nexport const isAboutSame = (a, b, px) => (Math.abs(a - b) <= px);\n\nexport const setChannelType = (params, type) => {\n if (type === 'broadcast') {\n // eslint-disable-next-line no-param-reassign\n params.isBroadcast = true;\n }\n if (type === 'supergroup') {\n // eslint-disable-next-line no-param-reassign\n params.isSuper = true;\n }\n return params;\n};\n\nexport const createChannel = (\n sdk,\n selectedUsers,\n onBeforeCreateChannel,\n userId,\n type = 'group',\n) => new Promise((resolve, reject) => {\n // have custom params\n if (onBeforeCreateChannel) {\n const params = onBeforeCreateChannel(selectedUsers);\n setChannelType(params, type);\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { reject(err); });\n return;\n }\n\n const params = new sdk.GroupChannelParams();\n params.addUserIds(selectedUsers);\n params.isDistinct = false;\n\n if (userId) {\n params.operatorUserIds = [userId];\n }\n setChannelType(params, type);\n // do not have custom params\n sdk.groupChannel.createChannel(params).then((groupChannel) => {\n resolve(groupChannel);\n }).catch((err) => { resolve(err); });\n});\n\nexport default createChannel;\n","import './channel-list-ui.scss';\n\nimport React, { useState } from 'react';\nimport type { GroupChannel, Member, SendbirdGroupChat } from '@sendbird/chat/groupChannel';\nimport type { User } from '@sendbird/chat';\n\nimport ChannelListHeader from '../ChannelListHeader';\nimport AddChannel from '../AddChannel';\nimport ChannelPreview from '../ChannelPreview';\nimport ChannelPreviewAction from '../ChannelPreviewAction';\nimport { useChannelListContext } from '../../context/ChannelListProvider';\nimport * as channelListActions from '../../dux/actionTypes';\n\nimport useSendbirdStateContext from '../../../../hooks/useSendbirdStateContext';\nimport EditUserProfile from '../../../EditUserProfile';\nimport PlaceHolder, { PlaceHolderTypes } from '../../../../ui/PlaceHolder';\nimport { isAboutSame } from '../utils';\n\nconst DELIVERY_RECIPT = 'delivery_receipt';\n\ninterface RenderChannelPreviewProps {\n channel: GroupChannel;\n onLeaveChannel(\n channel: GroupChannel,\n onLeaveChannelCb?: (c: GroupChannel) => void,\n );\n}\n\ninterface RenderUserProfileProps {\n user: Member | User;\n currentUserId: string;\n close(): void;\n}\n\nexport interface ChannelListUIProps {\n renderChannelPreview?: (props: RenderChannelPreviewProps) => React.ReactElement;\n renderUserProfile?: (props: RenderUserProfileProps) => React.ReactElement;\n renderHeader?: (props: void) => React.ReactElement;\n renderPlaceHolderError?: (props: void) => React.ReactElement;\n renderPlaceHolderLoading?: (props: void) => React.ReactElement;\n renderPlaceHolderEmptyList?: (props: void) => React.ReactElement;\n}\n\nconst ChannelListUI: React.FC<ChannelListUIProps> = (props: ChannelListUIProps) => {\n const {\n renderHeader,\n renderChannelPreview,\n renderPlaceHolderError,\n renderPlaceHolderLoading,\n renderPlaceHolderEmptyList,\n } = props;\n\n const [showProfileEdit, setShowProfileEdit] = useState(false);\n\n const {\n onThemeChange,\n allowProfileEdit,\n allChannels,\n loading,\n currentChannel,\n channelListDispatcher,\n channelSource,\n typingChannels,\n initialized,\n } = useChannelListContext();\n\n const state = useSendbirdStateContext();\n\n const sdkStore = state?.stores?.sdkStore;\n const config = state?.config;\n const {\n logger,\n isOnline = false,\n markAsReadScheduler,\n } = config;\n\n const sdk = sdkStore?.sdk as SendbirdGroupChat;\n const sdkError = sdkStore?.error;\n\n return (\n <>\n <div className=\"sendbird-channel-list__header\">\n {\n renderHeader?.() || (\n <ChannelListHeader\n onEdit={() => {\n if (allowProfileEdit) {\n setShowProfileEdit(true);\n }\n }}\n allowProfileEdit={allowProfileEdit}\n renderIconButton={() => (\n <AddChannel />\n )}\n />\n )\n }\n </div>\n {\n showProfileEdit && (\n <EditUserProfile\n onThemeChange={onThemeChange}\n onCancel={() => { setShowProfileEdit(false); }}\n onEditProfile={() => {\n setShowProfileEdit(false);\n }}\n />\n )\n }\n <div\n className=\"sendbird-channel-list__body\"\n onScroll={(e) => {\n const target = e?.target as HTMLDivElement;\n const fetchMore = isAboutSame(target.clientHeight + target.scrollTop, target.scrollHeight, 10);\n if (fetchMore && channelSource?.hasNext) {\n logger.info('ChannelList: Fetching more channels');\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_START,\n payload: null,\n });\n channelSource.next().then((channelList) => {\n logger.info('ChannelList: Fetching channels successful', channelList);\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_SUCCESS,\n payload: channelList,\n });\n const canSetMarkAsDelivered = sdk?.appInfo?.premiumFeatureList\n ?.find((feature) => (feature === DELIVERY_RECIPT));\n\n if (canSetMarkAsDelivered) {\n logger.info('ChannelList: Marking all channels as read');\n // eslint-disable-next-line no-unused-expressions\n channelList?.forEach((channel) => {\n if (channel?.unreadMessageCount > 0) {\n markAsReadScheduler.push(channel);\n }\n });\n }\n }).catch((err) => {\n logger.info('ChannelList: Fetching channels failed', err);\n channelListDispatcher({\n type: channelListActions.FETCH_CHANNELS_FAILURE,\n payload: err,\n });\n });\n }\n }}\n >\n {\n (sdkError && !loading) && (\n (renderPlaceHolderError && typeof renderPlaceHolderError === 'function') ? (\n renderPlaceHolderError?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.WRONG} />\n )\n )\n }\n {/*\n To do: Implement windowing\n Implement windowing if you are dealing with large number of messages/channels\n https://github.com/bvaughn/react-window -> recommendation\n We hesitate to bring one more dependency to our library,\n we are planning to implement it inside the library\n */}\n <div>\n {\n allChannels && allChannels.map((channel, idx) => {\n // todo: Refactor and move this inside channel - preview\n const onLeaveChannel = (c, cb) => {\n logger.info('ChannelList: Leaving channel', c);\n c.leave()\n .then((res) => {\n logger.info('ChannelList: Leaving channel success', res);\n if (cb && typeof cb === 'function') {\n cb(res, null);\n }\n channelListDispatcher({\n type: channelListActions.LEAVE_CHANNEL_SUCCESS,\n payload: channel?.url,\n });\n })\n .catch((err) => {\n logger.error('ChannelList: Leaving channel failed', err);\n if (cb && typeof cb === 'function') {\n cb(null, err);\n }\n });\n };\n\n const onClick = () => {\n if (!isOnline) { return; }\n logger.info('ChannelList: Clicked on channel:', channel);\n channelListDispatcher({\n type: channelListActions.SET_CURRENT_CHANNEL,\n payload: channel,\n });\n };\n\n return (\n (renderChannelPreview)\n ? (\n // eslint-disable-next-line\n <div key={channel?.url} onClick={onClick}>\n {renderChannelPreview({ channel, onLeaveChannel })}\n </div>\n )\n : (\n <ChannelPreview\n key={channel?.url}\n tabIndex={idx}\n onClick={onClick}\n channel={channel}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n isActive={channel?.url === currentChannel?.url}\n isTyping={typingChannels?.some(({ url }) => url === channel?.url)}\n renderChannelAction={(() => (\n <ChannelPreviewAction\n channel={channel}\n disabled={!isOnline}\n onLeaveChannel={() => onLeaveChannel(channel, null)}\n />\n ))}\n />\n )\n );\n })\n }\n </div>\n {\n (!initialized && loading) && (\n (renderPlaceHolderLoading && typeof renderPlaceHolderLoading === 'function') ? (\n renderPlaceHolderLoading?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.LOADING} />\n )\n )\n }\n {\n (initialized && allChannels?.length === 0) && (\n (renderPlaceHolderEmptyList && typeof renderPlaceHolderEmptyList === 'function') ? (\n renderPlaceHolderEmptyList?.()\n ) : (\n <PlaceHolder type={PlaceHolderTypes.NO_CHANNELS} />\n )\n )\n }\n </div>\n </>\n );\n}\n\nexport default ChannelListUI;\n"],"names":["isAboutSame","a","b","px","Math","abs","DELIVERY_RECIPT","ChannelListUI","props","renderHeader","renderChannelPreview","renderPlaceHolderError","renderPlaceHolderLoading","renderPlaceHolderEmptyList","_b","useState","showProfileEdit","setShowProfileEdit","_c","useChannelListContext","onThemeChange","allowProfileEdit","allChannels","loading","currentChannel","channelListDispatcher","channelSource","typingChannels","initialized","state","useSendbirdStateContext","sdkStore","_a","stores","config","logger","_d","isOnline","markAsReadScheduler","sdk","sdkError","error","React","createElement","Fragment","className","ChannelListHeader","onEdit","renderIconButton","AddChannel","EditUserProfile","onCancel","onEditProfile","onScroll","e","target","fetchMore","clientHeight","scrollTop","scrollHeight","hasNext","info","type","channelListActions","payload","next","then","channelList","canSetMarkAsDelivered","appInfo","premiumFeatureList","find","feature","forEach","channel","unreadMessageCount","push","catch","err","PlaceHolder","PlaceHolderTypes","WRONG","map","idx","onLeaveChannel","c","cb","leave","res","url","onClick","key","ChannelPreview","tabIndex","isActive","isTyping","some","renderChannelAction","ChannelPreviewAction","disabled","LOADING","length","NO_CHANNELS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCO,MAAMA,WAAW,GAAGA,CAACC,CAAC,EAAEC,CAAC,EAAEC,EAAE,KAAMC,IAAI,CAACC,GAAG,CAACJ,CAAC,GAAGC,CAAC,CAAC,IAAIC,EAAG;;ACtBhE,IAAMG,eAAe,GAAG,kBAAkB,CAAA;AAyB1C,IAAMC,aAAa,GAAiC,UAACC,KAAyB,EAAA;;AAE1E,EAAA,IAAAC,YAAY,GAKVD,KAAK,CALKC,YAAA;IACZC,oBAAoB,GAIlBF,KAAK,CAJaE,oBAAA;IACpBC,sBAAsB,GAGpBH,KAAK,CAHeG,sBAAA;IACtBC,wBAAwB,GAEtBJ,KAAK,CAAAI,wBAFiB;IACxBC,0BAA0B,GACxBL,KAAK,CAAAK,0BADmB,CAAA;AAGtB,EAAA,IAAAC,EAAA,GAAwCC,QAAQ,CAAC,KAAK,CAAC;AAAtDC,IAAAA,eAAe,GAAAF,EAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,kBAAkB,GAAAH,EAAA,CAAA,CAAA,CAAmB,CAAA;EAEvD,IAAAI,EAUF,GAAAC,qBAAqB,EAAE;IATzBC,aAAa,GAAAF,EAAA,CAAAE,aAAA;IACbC,gBAAgB,GAAA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AA;AALwB,OAAA;KAQ/B,CAAA,CAAA;AAEP,GAAC,CAAC,CAGN,EACG,CAAC9C,WAAW,IAAIL,OAAO,KACrBX,wBAAwB,IAAI,OAAOA,wBAAwB,KAAK,UAAU,GACzEA,wBAAwB,KAAA,IAAA,IAAxBA,wBAAwB,KAAxB,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,wBAAwB,EAAI,gBAE5B8B,cAAA,CAAAC,aAAA,CAACoC,WAAW,EAAA;IAACjB,IAAI,EAAEkB,gBAAgB,CAACoB,OAAAA;GACrC,CAAA,CACF,EAGAxE,WAAW,IAAI,CAAAN,WAAW,aAAXA,WAAW,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAXA,WAAW,CAAE+E,MAAM,MAAK,CAAC,KACtCxF,0BAA0B,IAAI,OAAOA,0BAA0B,KAAK,UAAU,GAC7EA,0BAA0B,KAA1B,IAAA,IAAAA,0BAA0B,KAA1B,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,0BAA0B,EAAI,gBAE9B6B,cAAA,CAAAC,aAAA,CAACoC,WAAW,EAAA;IAACjB,IAAI,EAAEkB,gBAAgB,CAACsB,WAAAA;GACrC,CAAA,CACF,CAGP,CAAG,CAAA;AAEP;;;;"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { a as _extends } from '../../_rollupPluginBabelHelpers-
|
|
2
|
-
import { _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as _extends } from '../../_rollupPluginBabelHelpers-79f64283.js';
|
|
2
|
+
import { _ as __assign } from '../../tslib.es6-d6e50ec3.js';
|
|
3
3
|
import React__default, { useState } from 'react';
|
|
4
4
|
import ChannelAvatar from '../../ui/ChannelAvatar.js';
|
|
5
5
|
import Badge from '../../ui/Badge.js';
|
|
6
6
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
7
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-
|
|
8
|
-
import { g as getChannelTitle, a as getTotalMembers, M as MessageStatus, b as getLastMessageCreatedAt, c as getLastMessage, d as getChannelUnreadMessageCount } from '../../index-
|
|
7
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../../index-cce0e324.js';
|
|
8
|
+
import { g as getChannelTitle, a as getTotalMembers, M as MessageStatus, b as getLastMessageCreatedAt, c as getLastMessage, d as getChannelUnreadMessageCount } from '../../index-61a102d7.js';
|
|
9
9
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
10
|
-
import { u as useLocalization } from '../../LocalizationContext-
|
|
10
|
+
import { u as useLocalization } from '../../LocalizationContext-3d8c0b24.js';
|
|
11
11
|
import MentionUserLabel from '../../ui/MentionUserLabel.js';
|
|
12
12
|
import Modal from '../../ui/Modal.js';
|
|
13
13
|
import TextButton from '../../ui/TextButton.js';
|
|
14
|
-
import { u as useChannelListContext } from '../../ChannelListProvider-
|
|
14
|
+
import { u as useChannelListContext } from '../../ChannelListProvider-a2f2ee4a.js';
|
|
15
15
|
import { TypingIndicatorText } from '../../Channel/components/TypingIndicator.js';
|
|
16
|
-
import { d as isVoiceMessage, e as isEditedMessage } from '../../index-
|
|
17
|
-
import { u as useMediaQueryContext } from '../../MediaQueryContext-
|
|
18
|
-
import { u as useLongPress } from '../../useLongPress-
|
|
16
|
+
import { d as isVoiceMessage, e as isEditedMessage } from '../../index-e378ca4e.js';
|
|
17
|
+
import { u as useMediaQueryContext } from '../../MediaQueryContext-1348e37b.js';
|
|
18
|
+
import { u as useLongPress } from '../../useLongPress-f119ff35.js';
|
|
19
19
|
import '../../ui/Avatar.js';
|
|
20
20
|
import '../../ui/ImageRenderer.js';
|
|
21
|
-
import '../../uuid-
|
|
22
|
-
import '../../utils-
|
|
21
|
+
import '../../uuid-86cb48e0.js';
|
|
22
|
+
import '../../utils-e659e765.js';
|
|
23
23
|
import 'prop-types';
|
|
24
|
-
import '../../stringSet-
|
|
25
|
-
import '../../index-
|
|
26
|
-
import '../../index-
|
|
24
|
+
import '../../stringSet-9d579825.js';
|
|
25
|
+
import '../../index-95b46112.js';
|
|
26
|
+
import '../../index-aaa9b9f8.js';
|
|
27
27
|
import '../../ui/Loader.js';
|
|
28
28
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
29
|
-
import '../../index-
|
|
30
|
-
import '../../index-
|
|
29
|
+
import '../../index-ac5ad4f9.js';
|
|
30
|
+
import '../../index-d37f34a3.js';
|
|
31
31
|
import '../../withSendbird.js';
|
|
32
|
-
import '../../consts-
|
|
32
|
+
import '../../consts-f4362414.js';
|
|
33
33
|
import 'react-dom';
|
|
34
|
-
import '../../index-
|
|
34
|
+
import '../../index-ad125f51.js';
|
|
35
35
|
import '../../ui/Button.js';
|
|
36
36
|
import '../../ui/IconButton.js';
|
|
37
|
-
import '../../color-
|
|
37
|
+
import '../../color-73049158.js';
|
|
38
38
|
import '@sendbird/chat/groupChannel';
|
|
39
|
-
import '../../topics-
|
|
40
|
-
import '../../utils-
|
|
41
|
-
import '../../UserProfileContext-
|
|
42
|
-
import '../../ChannelProvider-
|
|
43
|
-
import '../../compareIds-
|
|
44
|
-
import '../../const-
|
|
39
|
+
import '../../topics-f9301447.js';
|
|
40
|
+
import '../../utils-86d65b96.js';
|
|
41
|
+
import '../../UserProfileContext-41938ddc.js';
|
|
42
|
+
import '../../ChannelProvider-bb459e82.js';
|
|
43
|
+
import '../../compareIds-88bffa50.js';
|
|
44
|
+
import '../../const-df1daff9.js';
|
|
45
45
|
import '@sendbird/chat/message';
|
|
46
46
|
import '../../ui/ContextMenu.js';
|
|
47
47
|
import '../../ui/SortByRow.js';
|
|
48
48
|
import '../../ui/ReactionButton.js';
|
|
49
|
-
import '../../consts-
|
|
49
|
+
import '../../consts-966c9540.js';
|
|
50
50
|
|
|
51
51
|
var ChannelPreview = function (_a) {
|
|
52
52
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useContext } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { u as useLocalization, a as LocalizationContext } from '../../LocalizationContext-
|
|
3
|
+
import { u as useLocalization, a as LocalizationContext } from '../../LocalizationContext-3d8c0b24.js';
|
|
4
4
|
import ContextMenu, { MenuItems, MenuItem } from '../../ui/ContextMenu.js';
|
|
5
5
|
import IconButton from '../../ui/IconButton.js';
|
|
6
6
|
import Icon, { IconTypes, IconColors } from '../../ui/Icon.js';
|
|
7
7
|
import useSendbirdStateContext from '../../useSendbirdStateContext.js';
|
|
8
|
-
import { n as noop } from '../../utils-
|
|
8
|
+
import { n as noop } from '../../utils-86d65b96.js';
|
|
9
9
|
import Modal from '../../ui/Modal.js';
|
|
10
|
-
import { u as useChannelListContext } from '../../ChannelListProvider-
|
|
11
|
-
import '../../stringSet-
|
|
12
|
-
import '../../index-
|
|
13
|
-
import '../../tslib.es6-
|
|
10
|
+
import { u as useChannelListContext } from '../../ChannelListProvider-a2f2ee4a.js';
|
|
11
|
+
import '../../stringSet-9d579825.js';
|
|
12
|
+
import '../../index-aaa9b9f8.js';
|
|
13
|
+
import '../../tslib.es6-d6e50ec3.js';
|
|
14
14
|
import 'react-dom';
|
|
15
15
|
import '../../ui/SortByRow.js';
|
|
16
|
-
import '../../uuid-
|
|
17
|
-
import '../../index-
|
|
16
|
+
import '../../uuid-86cb48e0.js';
|
|
17
|
+
import '../../index-e378ca4e.js';
|
|
18
18
|
import '../../utils/message/getOutgoingMessageState.js';
|
|
19
|
-
import '../../index-
|
|
19
|
+
import '../../index-cce0e324.js';
|
|
20
20
|
import '../../withSendbird.js';
|
|
21
|
-
import '../../index-
|
|
21
|
+
import '../../index-ad125f51.js';
|
|
22
22
|
import '../../ui/Button.js';
|
|
23
|
-
import '../../MediaQueryContext-
|
|
23
|
+
import '../../MediaQueryContext-1348e37b.js';
|
|
24
24
|
import '@sendbird/chat/groupChannel';
|
|
25
|
-
import '../../topics-
|
|
26
|
-
import '../../UserProfileContext-
|
|
27
|
-
import '../../_rollupPluginBabelHelpers-
|
|
25
|
+
import '../../topics-f9301447.js';
|
|
26
|
+
import '../../UserProfileContext-41938ddc.js';
|
|
27
|
+
import '../../_rollupPluginBabelHelpers-79f64283.js';
|
|
28
28
|
|
|
29
29
|
var LeaveChannel = function (props) {
|
|
30
30
|
var _a, _b, _c;
|
package/ChannelList/context.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import '../tslib.es6-
|
|
1
|
+
import '../tslib.es6-d6e50ec3.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@sendbird/chat/groupChannel';
|
|
4
|
-
export { C as ChannelListProvider, u as useChannelListContext } from '../ChannelListProvider-
|
|
5
|
-
import '../uuid-
|
|
6
|
-
import '../utils-
|
|
7
|
-
import '../UserProfileContext-
|
|
4
|
+
export { C as ChannelListProvider, u as useChannelListContext } from '../ChannelListProvider-a2f2ee4a.js';
|
|
5
|
+
import '../uuid-86cb48e0.js';
|
|
6
|
+
import '../utils-86d65b96.js';
|
|
7
|
+
import '../UserProfileContext-41938ddc.js';
|
|
8
8
|
import '../useSendbirdStateContext.js';
|
|
9
|
-
import '../topics-
|
|
10
|
-
import '../_rollupPluginBabelHelpers-
|
|
11
|
-
import '../index-
|
|
9
|
+
import '../topics-f9301447.js';
|
|
10
|
+
import '../_rollupPluginBabelHelpers-79f64283.js';
|
|
11
|
+
import '../index-e378ca4e.js';
|
|
12
12
|
import '../utils/message/getOutgoingMessageState.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import '../withSendbird.js';
|