@sendbird/uikit-react 3.14.5 → 3.14.7-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 +85 -85
- package/CHANGELOG.md +21 -0
- package/Channel/components/ChannelHeader.js +29 -29
- package/Channel/components/ChannelUI.js +63 -63
- package/Channel/components/FileViewer.js +29 -29
- package/Channel/components/FrozenNotification.js +6 -5
- package/Channel/components/FrozenNotification.js.map +1 -1
- package/Channel/components/Message.js +57 -54
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +46 -46
- package/Channel/components/MessageInputWrapper.js +41 -41
- package/Channel/components/MessageList.js +60 -60
- package/Channel/components/RemoveMessageModal.js +28 -28
- package/Channel/components/SuggestedMentionList.js +26 -26
- package/Channel/components/TypingIndicator.js +6 -6
- package/Channel/components/UnreadCount.js +7 -7
- package/Channel/context.js +107 -133
- package/Channel/context.js.map +1 -1
- package/Channel/hooks/useHandleUploadFiles.js +15 -15
- package/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/Channel/utils/compareMessagesForGrouping.js +4 -4
- package/Channel/utils/getMessagePartsInfo.js +8 -8
- package/Channel.js +63 -63
- package/ChannelList/components/AddChannel.js +22 -22
- package/ChannelList/components/ChannelListHeader.js +10 -10
- package/ChannelList/components/ChannelListUI.js +36 -36
- package/ChannelList/components/ChannelPreview.js +28 -28
- package/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/ChannelList/context.js +9 -9
- package/ChannelList.js +35 -35
- package/ChannelSettings/components/ChannelProfile.js +20 -20
- package/ChannelSettings/components/ChannelSettingsHeader.js +9 -9
- package/ChannelSettings/components/ChannelSettingsUI.js +26 -26
- package/ChannelSettings/components/EditDetailsModal.js +32 -27
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +16 -16
- package/ChannelSettings/components/ModerationPanel.js +45 -42
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +19 -19
- package/ChannelSettings/components/UserPanel.js +22 -22
- package/ChannelSettings/context.js +10 -5
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings.js +25 -25
- package/CreateChannel/components/CreateChannelUI.js +19 -19
- package/CreateChannel/components/InviteUsers.js +28 -31
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +16 -16
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +18 -18
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +26 -22
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +10 -10
- package/CreateOpenChannel.js +16 -16
- package/EditUserProfile/components/EditUserProfileUI.js +26 -22
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile/context.js +12 -13
- package/EditUserProfile/context.js.map +1 -1
- package/EditUserProfile.js +17 -17
- package/GroupChannel/components/FileViewer.js +25 -29
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +8 -7
- package/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/GroupChannel/components/GroupChannelHeader.js +21 -24
- package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/GroupChannel/components/GroupChannelUI.js +58 -60
- package/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/GroupChannel/components/Message.js +52 -52
- package/GroupChannel/components/MessageInputWrapper.js +38 -41
- package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/GroupChannel/components/MessageList.js +150 -83
- package/GroupChannel/components/MessageList.js.map +1 -1
- package/GroupChannel/components/RemoveMessageModal.js +22 -25
- package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/GroupChannel/components/TypingIndicator.js +6 -6
- package/GroupChannel/components/UnreadCount.js +9 -9
- package/GroupChannel/context.js +61 -212
- package/GroupChannel/context.js.map +1 -1
- package/GroupChannel.js +58 -60
- package/GroupChannel.js.map +1 -1
- package/GroupChannelList/components/AddGroupChannel.js +20 -20
- package/GroupChannelList/components/GroupChannelListHeader.js +11 -11
- package/GroupChannelList/components/GroupChannelListItem.js +26 -26
- package/GroupChannelList/components/GroupChannelListUI.js +35 -35
- package/GroupChannelList/components/GroupChannelPreviewAction.js +15 -15
- package/GroupChannelList/context.js +5 -5
- package/GroupChannelList.js +34 -34
- package/MessageSearch/components/MessageSearchUI.js +21 -22
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +18 -10
- package/MessageSearch/context.js.map +1 -1
- package/MessageSearch.js +24 -25
- package/MessageSearch.js.map +1 -1
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +20 -20
- package/OpenChannel/components/OpenChannelInput.js +26 -26
- package/OpenChannel/components/OpenChannelMessage.js +39 -39
- package/OpenChannel/components/OpenChannelMessageList.js +43 -42
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +40 -40
- package/OpenChannel/context.js +19 -19
- package/OpenChannel.js +40 -40
- package/OpenChannelList/components/OpenChannelListUI.js +18 -18
- package/OpenChannelList/components/OpenChannelPreview.js +8 -8
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +18 -18
- package/OpenChannelSettings/components/EditDetailsModal.js +34 -30
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +19 -19
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +22 -22
- package/OpenChannelSettings/components/OperatorUI.js +58 -51
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +18 -18
- package/OpenChannelSettings/context.js +10 -5
- package/OpenChannelSettings/context.js.map +1 -1
- package/OpenChannelSettings.js +20 -20
- package/README.md +20 -62
- package/SendbirdProvider.js +37 -43
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +52 -51
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +43 -41
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +9 -9
- package/Thread/components/ThreadList.js +48 -48
- package/Thread/components/ThreadListItem.js +57 -59
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +44 -46
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +58 -58
- package/Thread/context.js +28 -38
- package/Thread/context.js.map +1 -1
- package/Thread.js +54 -56
- package/Thread.js.map +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +17 -17
- package/VoiceRecorder/context.js +13 -13
- package/VoiceRecorder/useVoiceRecorder.js +20 -20
- package/chunks/{bundle-Dpj_mOs8.js → bundle--aWriVp-.js} +30 -33
- package/chunks/bundle--aWriVp-.js.map +1 -0
- package/chunks/{bundle-u9Zl-7Je.js → bundle-1hNoUBra.js} +1 -1
- package/chunks/bundle-1hNoUBra.js.map +1 -0
- package/chunks/bundle-4r7ZPzcx.js +18 -0
- package/chunks/bundle-4r7ZPzcx.js.map +1 -0
- package/chunks/{bundle-C5i4dn9q.js → bundle-6v-jzonm.js} +1 -1
- package/chunks/bundle-6v-jzonm.js.map +1 -0
- package/chunks/{bundle-Cw_yF4Vi.js → bundle-AoovKWt6.js} +1 -1
- package/chunks/bundle-AoovKWt6.js.map +1 -0
- package/chunks/{bundle-DoXeGvHN.js → bundle-B4AVFdIy.js} +1 -1
- package/chunks/bundle-B4AVFdIy.js.map +1 -0
- package/chunks/{bundle-E4462uBn.js → bundle-B5bq9SyP.js} +8 -3
- package/chunks/bundle-B5bq9SyP.js.map +1 -0
- package/chunks/{bundle-BI0n-T1b.js → bundle-B6ZkegNo.js} +4 -4
- package/chunks/bundle-B6ZkegNo.js.map +1 -0
- package/chunks/{bundle-Pw31xKtZ.js → bundle-B8dWOTfN.js} +9 -5
- package/chunks/bundle-B8dWOTfN.js.map +1 -0
- package/chunks/{bundle-BQPvwBK8.js → bundle-BEDpWEUq.js} +1 -1
- package/chunks/bundle-BEDpWEUq.js.map +1 -0
- package/chunks/{bundle-BfjOoJk6.js → bundle-BEXPH5wy.js} +8 -8
- package/chunks/bundle-BEXPH5wy.js.map +1 -0
- package/chunks/{bundle-BD-1uffr.js → bundle-BFv53Dhg.js} +11 -11
- package/chunks/{bundle-BD-1uffr.js.map → bundle-BFv53Dhg.js.map} +1 -1
- package/chunks/bundle-BIKxhuE6.js +30 -0
- package/chunks/bundle-BIKxhuE6.js.map +1 -0
- package/chunks/{bundle-KmtzKHnJ.js → bundle-BIrNrKkq.js} +1 -1
- package/chunks/bundle-BIrNrKkq.js.map +1 -0
- package/chunks/{bundle-xHRJMo_A.js → bundle-BNZI6WLw.js} +3 -3
- package/chunks/bundle-BNZI6WLw.js.map +1 -0
- package/chunks/{bundle-DYmy2oK3.js → bundle-BT85GO4x.js} +12 -12
- package/chunks/bundle-BT85GO4x.js.map +1 -0
- package/chunks/{bundle-DQ3tLeW9.js → bundle-BWOr3gdK.js} +2 -2
- package/chunks/{bundle-DQ3tLeW9.js.map → bundle-BWOr3gdK.js.map} +1 -1
- package/chunks/{bundle-DZl5IVWc.js → bundle-BaXIdVj6.js} +2 -2
- package/chunks/{bundle-DZl5IVWc.js.map → bundle-BaXIdVj6.js.map} +1 -1
- package/chunks/{bundle-HFOQJZAX.js → bundle-BbT7pAQS.js} +2 -40
- package/chunks/bundle-BbT7pAQS.js.map +1 -0
- package/chunks/{bundle-C2B-jwQF.js → bundle-BdXUzVaM.js} +1 -1
- package/chunks/bundle-BdXUzVaM.js.map +1 -0
- package/chunks/{bundle-CclWZYVY.js → bundle-BeNijzt4.js} +19 -16
- package/{cjs/chunks/bundle-Cc89qdjT.js.map → chunks/bundle-BeNijzt4.js.map} +1 -1
- package/chunks/{bundle-BCuW6lS8.js → bundle-BgxEVQoU.js} +2 -2
- package/chunks/bundle-BgxEVQoU.js.map +1 -0
- package/chunks/{bundle-CUOi3VHK.js → bundle-Bi-TBZ5J.js} +5 -5
- package/chunks/{bundle-CUOi3VHK.js.map → bundle-Bi-TBZ5J.js.map} +1 -1
- package/chunks/{bundle-SI5OarjR.js → bundle-Bn31wN-4.js} +3 -3
- package/chunks/{bundle-SI5OarjR.js.map → bundle-Bn31wN-4.js.map} +1 -1
- package/chunks/{bundle-B621kS6J.js → bundle-BvFSwy4a.js} +2 -1
- package/chunks/{bundle-B621kS6J.js.map → bundle-BvFSwy4a.js.map} +1 -1
- package/chunks/{bundle-DEFOjZw9.js → bundle-C0hkVQ_x.js} +6 -6
- package/chunks/bundle-C0hkVQ_x.js.map +1 -0
- package/chunks/{bundle-CTqXLoJ-.js → bundle-C3ERcgVV.js} +1 -1
- package/chunks/{bundle-CTqXLoJ-.js.map → bundle-C3ERcgVV.js.map} +1 -1
- package/chunks/{bundle-BA5xmpyI.js → bundle-C4S7QhVI.js} +40 -62
- package/chunks/{bundle-BA5xmpyI.js.map → bundle-C4S7QhVI.js.map} +1 -1
- package/chunks/{bundle-iA2l_iD3.js → bundle-CEP8HgMT.js} +9 -3
- package/chunks/bundle-CEP8HgMT.js.map +1 -0
- package/chunks/{bundle-BXXtOrta.js → bundle-CGLOlBwH.js} +61 -53
- package/chunks/{bundle-BXXtOrta.js.map → bundle-CGLOlBwH.js.map} +1 -1
- package/chunks/{bundle-Y_WIAHds.js → bundle-CIGhx4QE.js} +3 -3
- package/chunks/bundle-CIGhx4QE.js.map +1 -0
- package/chunks/{bundle-BEbribQZ.js → bundle-CJRugtlL.js} +11 -13
- package/chunks/{bundle-BUMKThPh.js.map → bundle-CJRugtlL.js.map} +1 -1
- package/chunks/{bundle-klvZ-YE5.js → bundle-CKqOIeLq.js} +1 -1
- package/chunks/bundle-CKqOIeLq.js.map +1 -0
- package/chunks/{bundle-BH5EGLxi.js → bundle-CMOqM33u.js} +7 -7
- package/chunks/{bundle-BH5EGLxi.js.map → bundle-CMOqM33u.js.map} +1 -1
- package/chunks/{bundle-60et0yds.js → bundle-CPH6jPCe.js} +2 -4
- package/chunks/bundle-CPH6jPCe.js.map +1 -0
- package/chunks/{bundle-HhDUyQa4.js → bundle-CVf0xQqZ.js} +2 -2
- package/chunks/bundle-CVf0xQqZ.js.map +1 -0
- package/chunks/{bundle-D2MpL8t0.js → bundle-CflUdLjG.js} +16 -11
- package/chunks/{bundle-D2MpL8t0.js.map → bundle-CflUdLjG.js.map} +1 -1
- package/chunks/{bundle-DElB1Hqa.js → bundle-CmyE6BHA.js} +7 -7
- package/chunks/bundle-CmyE6BHA.js.map +1 -0
- package/chunks/{bundle-cgNuve_E.js → bundle-CsleEf9Z.js} +2 -2
- package/chunks/bundle-CsleEf9Z.js.map +1 -0
- package/chunks/{bundle-B4q4jk6S.js → bundle-Cv_JSmmp.js} +33 -28
- package/chunks/bundle-Cv_JSmmp.js.map +1 -0
- package/chunks/{bundle-9Pg6kODx.js → bundle-D2RTt6tN.js} +1 -1
- package/chunks/{bundle-9Pg6kODx.js.map → bundle-D2RTt6tN.js.map} +1 -1
- package/chunks/{bundle-DG8DFRNL.js → bundle-D85Rh57A.js} +6 -5
- package/chunks/{bundle-DG8DFRNL.js.map → bundle-D85Rh57A.js.map} +1 -1
- package/chunks/{bundle-DwvN2wPi.js → bundle-D86Ophow.js} +7 -6
- package/chunks/bundle-D86Ophow.js.map +1 -0
- package/chunks/{bundle-DiVyB2HD.js → bundle-DEcnZTr9.js} +25 -30
- package/chunks/bundle-DEcnZTr9.js.map +1 -0
- package/chunks/{bundle-DVMiIa_8.js → bundle-DL-upuQh.js} +14 -17
- package/chunks/{bundle-C6yCDg1g.js.map → bundle-DL-upuQh.js.map} +1 -1
- package/chunks/{bundle-Cdx5L_Jm.js → bundle-DLUYk4G8.js} +3 -3
- package/chunks/bundle-DLUYk4G8.js.map +1 -0
- package/chunks/{bundle-C8hyJJ4a.js → bundle-DM9civEM.js} +10 -9
- package/chunks/{bundle-C8hyJJ4a.js.map → bundle-DM9civEM.js.map} +1 -1
- package/chunks/{bundle-e3NlFYfX.js → bundle-DMTe_aLV.js} +7 -7
- package/chunks/bundle-DMTe_aLV.js.map +1 -0
- package/chunks/{bundle-Cj-w5I5i.js → bundle-DS8lmYaF.js} +1 -1
- package/chunks/bundle-DS8lmYaF.js.map +1 -0
- package/chunks/{bundle-DudTIr4X.js → bundle-DXjbblWF.js} +1 -1
- package/chunks/bundle-DXjbblWF.js.map +1 -0
- package/chunks/{bundle-uI-GOX6U.js → bundle-DZtW-uAN.js} +2 -2
- package/chunks/bundle-DZtW-uAN.js.map +1 -0
- package/chunks/{bundle-C8XqVZD9.js → bundle-D_ELxIRc.js} +6 -6
- package/chunks/bundle-D_ELxIRc.js.map +1 -0
- package/chunks/{bundle-ARb5Lm9T.js → bundle-D_lTgUdV.js} +2 -2
- package/chunks/bundle-D_lTgUdV.js.map +1 -0
- package/chunks/{bundle-DHrYAkRt.js → bundle-DaVYmO9d.js} +2 -1
- package/chunks/bundle-DaVYmO9d.js.map +1 -0
- package/chunks/{bundle-B26G55qN.js → bundle-DakS7HX2.js} +1 -1
- package/chunks/{bundle-B26G55qN.js.map → bundle-DakS7HX2.js.map} +1 -1
- package/chunks/{bundle-thdxvFU8.js → bundle-DaqQkuav.js} +3 -2
- package/chunks/bundle-DaqQkuav.js.map +1 -0
- package/chunks/{bundle-2jZ-0hKC.js → bundle-Dg7xW_TJ.js} +37 -39
- package/{cjs/chunks/bundle-BEtlTF8Q.js.map → chunks/bundle-Dg7xW_TJ.js.map} +1 -1
- package/chunks/{bundle-hF8Gurf8.js → bundle-Dj4qcISv.js} +1 -1
- package/chunks/bundle-Dj4qcISv.js.map +1 -0
- package/chunks/{bundle-DhJuLwLJ.js → bundle-Dl6p5CcR.js} +1 -1
- package/chunks/bundle-Dl6p5CcR.js.map +1 -0
- package/chunks/{bundle-DVc25Jb7.js → bundle-DoAELW25.js} +7 -6
- package/chunks/bundle-DoAELW25.js.map +1 -0
- package/chunks/{bundle-CtgXJZJt.js → bundle-Dub0HHFi.js} +1 -1
- package/chunks/bundle-Dub0HHFi.js.map +1 -0
- package/chunks/{bundle-WdeDKCD0.js → bundle-DwvwhqRD.js} +11 -11
- package/chunks/bundle-DwvwhqRD.js.map +1 -0
- package/chunks/{bundle-q3jyuKU7.js → bundle-DyVURRtM.js} +5 -5
- package/chunks/bundle-DyVURRtM.js.map +1 -0
- package/chunks/{bundle-BUMKThPh.js → bundle-GH8narZ-.js} +20 -19
- package/chunks/{bundle-BEbribQZ.js.map → bundle-GH8narZ-.js.map} +1 -1
- package/chunks/{bundle-2vhBVWLQ.js → bundle-HbS5lB90.js} +9 -7
- package/{cjs/chunks/bundle-Bpy7IQta.js.map → chunks/bundle-HbS5lB90.js.map} +1 -1
- package/chunks/{bundle-Chn4Xw78.js → bundle-Kycskx-O.js} +2 -2
- package/chunks/bundle-Kycskx-O.js.map +1 -0
- package/chunks/{bundle-C6yCDg1g.js → bundle-LG8yCDNB.js} +27 -26
- package/{cjs/chunks/bundle-BvhC4El1.js.map → chunks/bundle-LG8yCDNB.js.map} +1 -1
- package/chunks/{bundle-BxaysvGU.js → bundle-MjyZT4_4.js} +2 -2
- package/chunks/bundle-MjyZT4_4.js.map +1 -0
- package/chunks/{bundle-CLQfFjkS.js → bundle-PXw9RwTY.js} +3 -3
- package/chunks/bundle-PXw9RwTY.js.map +1 -0
- package/chunks/{bundle-B8F-tpmW.js → bundle-QxLGXu0w.js} +40 -36
- package/chunks/{bundle-B8F-tpmW.js.map → bundle-QxLGXu0w.js.map} +1 -1
- package/chunks/{bundle-CDMcNani.js → bundle-V1KP3Yq2.js} +6 -5
- package/chunks/bundle-V1KP3Yq2.js.map +1 -0
- package/chunks/{bundle-DwPw_RW5.js → bundle-YyfBbrXK.js} +1 -1
- package/chunks/bundle-YyfBbrXK.js.map +1 -0
- package/chunks/{bundle-D5DtB0L7.js → bundle-gCu36B_D.js} +62 -69
- package/chunks/{bundle-D5DtB0L7.js.map → bundle-gCu36B_D.js.map} +1 -1
- package/chunks/{bundle-DUVa5cu6.js → bundle-jD9nAlqc.js} +1 -1
- package/chunks/bundle-jD9nAlqc.js.map +1 -0
- package/chunks/{bundle-C1XVT5qc.js → bundle-lS9BV-1I.js} +5 -4
- package/chunks/bundle-lS9BV-1I.js.map +1 -0
- package/chunks/{bundle-D-cEFrBM.js → bundle-oF8OKbPo.js} +19 -35
- package/chunks/{bundle-D-cEFrBM.js.map → bundle-oF8OKbPo.js.map} +1 -1
- package/chunks/{bundle-YveljAuC.js → bundle-q8TfLkpw.js} +1 -1
- package/chunks/bundle-q8TfLkpw.js.map +1 -0
- package/chunks/{bundle-8J9SSfIS.js → bundle-sq0c8UmG.js} +1 -1
- package/chunks/bundle-sq0c8UmG.js.map +1 -0
- package/chunks/{bundle-Br_sURBN.js → bundle-wPqhzyo_.js} +1 -1
- package/chunks/bundle-wPqhzyo_.js.map +1 -0
- package/chunks/{bundle-CDy_GVNR.js → bundle-zAvvLMA9.js} +1 -1
- package/chunks/{bundle-CDy_GVNR.js.map → bundle-zAvvLMA9.js.map} +1 -1
- package/cjs/App.js +85 -85
- package/cjs/Channel/components/ChannelHeader.js +29 -29
- package/cjs/Channel/components/ChannelUI.js +63 -63
- package/cjs/Channel/components/FileViewer.js +29 -29
- package/cjs/Channel/components/FrozenNotification.js +6 -5
- package/cjs/Channel/components/FrozenNotification.js.map +1 -1
- package/cjs/Channel/components/Message.js +57 -54
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +46 -46
- package/cjs/Channel/components/MessageInputWrapper.js +41 -41
- package/cjs/Channel/components/MessageList.js +60 -60
- package/cjs/Channel/components/RemoveMessageModal.js +28 -28
- package/cjs/Channel/components/SuggestedMentionList.js +26 -26
- package/cjs/Channel/components/TypingIndicator.js +6 -6
- package/cjs/Channel/components/UnreadCount.js +7 -7
- package/cjs/Channel/context.js +107 -133
- package/cjs/Channel/context.js.map +1 -1
- package/cjs/Channel/hooks/useHandleUploadFiles.js +15 -15
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/cjs/Channel/utils/compareMessagesForGrouping.js +4 -4
- package/cjs/Channel/utils/getMessagePartsInfo.js +8 -8
- package/cjs/Channel.js +63 -63
- package/cjs/ChannelList/components/AddChannel.js +22 -22
- package/cjs/ChannelList/components/ChannelListHeader.js +10 -10
- package/cjs/ChannelList/components/ChannelListUI.js +36 -36
- package/cjs/ChannelList/components/ChannelPreview.js +28 -28
- package/cjs/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/cjs/ChannelList/context.js +9 -9
- package/cjs/ChannelList.js +35 -35
- package/cjs/ChannelSettings/components/ChannelProfile.js +20 -20
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +11 -8
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +25 -25
- package/cjs/ChannelSettings/components/EditDetailsModal.js +32 -27
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +16 -16
- package/cjs/ChannelSettings/components/ModerationPanel.js +45 -42
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +19 -19
- package/cjs/ChannelSettings/components/UserPanel.js +22 -22
- package/cjs/ChannelSettings/context.js +10 -5
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings.js +25 -25
- package/cjs/CreateChannel/components/CreateChannelUI.js +19 -19
- package/cjs/CreateChannel/components/InviteUsers.js +28 -31
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +16 -16
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +18 -18
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +26 -22
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +10 -10
- package/cjs/CreateOpenChannel.js +16 -16
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +26 -22
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile/context.js +11 -12
- package/cjs/EditUserProfile/context.js.map +1 -1
- package/cjs/EditUserProfile.js +17 -17
- package/cjs/GroupChannel/components/FileViewer.js +25 -29
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +8 -7
- package/cjs/GroupChannel/components/FrozenNotification.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelHeader.js +21 -24
- package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelUI.js +58 -60
- package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/cjs/GroupChannel/components/Message.js +52 -52
- package/cjs/GroupChannel/components/MessageInputWrapper.js +37 -40
- package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/GroupChannel/components/MessageList.js +150 -83
- package/cjs/GroupChannel/components/MessageList.js.map +1 -1
- package/cjs/GroupChannel/components/RemoveMessageModal.js +22 -25
- package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
- package/cjs/GroupChannel/components/UnreadCount.js +9 -9
- package/cjs/GroupChannel/context.js +61 -212
- package/cjs/GroupChannel/context.js.map +1 -1
- package/cjs/GroupChannel.js +58 -60
- package/cjs/GroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/AddGroupChannel.js +20 -20
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +11 -11
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +26 -26
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +35 -35
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +15 -15
- package/cjs/GroupChannelList/context.js +5 -5
- package/cjs/GroupChannelList.js +34 -34
- package/cjs/MessageSearch/components/MessageSearchUI.js +21 -22
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +18 -10
- package/cjs/MessageSearch/context.js.map +1 -1
- package/cjs/MessageSearch.js +24 -25
- package/cjs/MessageSearch.js.map +1 -1
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +20 -20
- package/cjs/OpenChannel/components/OpenChannelInput.js +26 -26
- package/cjs/OpenChannel/components/OpenChannelMessage.js +39 -39
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +43 -42
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +40 -40
- package/cjs/OpenChannel/context.js +19 -19
- package/cjs/OpenChannel.js +40 -40
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +18 -18
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +8 -8
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +18 -18
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +34 -30
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +19 -19
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +22 -22
- package/cjs/OpenChannelSettings/components/OperatorUI.js +58 -51
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +18 -18
- package/cjs/OpenChannelSettings/context.js +10 -5
- package/cjs/OpenChannelSettings/context.js.map +1 -1
- package/cjs/OpenChannelSettings.js +20 -20
- package/cjs/SendbirdProvider.js +37 -43
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +52 -51
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +43 -41
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +9 -9
- package/cjs/Thread/components/ThreadList.js +48 -48
- package/cjs/Thread/components/ThreadListItem.js +57 -59
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +44 -46
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +58 -58
- package/cjs/Thread/context.js +28 -38
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +54 -56
- package/cjs/Thread.js.map +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +16 -16
- package/cjs/VoiceRecorder/context.js +13 -13
- package/cjs/VoiceRecorder/useVoiceRecorder.js +20 -20
- package/cjs/chunks/{bundle-Bv_QMEk2.js → bundle-0CaiAMj2.js} +11 -11
- package/cjs/chunks/bundle-0CaiAMj2.js.map +1 -0
- package/cjs/chunks/{bundle-dr9zoU1D.js → bundle-0QB2GZ_W.js} +20 -19
- package/cjs/chunks/{bundle-dr9zoU1D.js.map → bundle-0QB2GZ_W.js.map} +1 -1
- package/cjs/chunks/{bundle-CpIdIHld.js → bundle-0Re2c8Xv.js} +11 -11
- package/cjs/chunks/bundle-0Re2c8Xv.js.map +1 -0
- package/cjs/chunks/{bundle-DGJX80zy.js → bundle-3m9OAKfW.js} +10 -9
- package/cjs/chunks/bundle-3m9OAKfW.js.map +1 -0
- package/cjs/chunks/{bundle-glVs_8wY.js → bundle-3pFP-c5Y.js} +1 -1
- package/cjs/chunks/bundle-3pFP-c5Y.js.map +1 -0
- package/cjs/chunks/{bundle-DWBc-Yv7.js → bundle-5FP1wNLB.js} +2 -1
- package/cjs/chunks/bundle-5FP1wNLB.js.map +1 -0
- package/cjs/chunks/{bundle-BiTKgXrx.js → bundle-B1c1ZdU0.js} +37 -39
- package/{chunks/bundle-2jZ-0hKC.js.map → cjs/chunks/bundle-B1c1ZdU0.js.map} +1 -1
- package/cjs/chunks/{bundle-Ci6F_UQc.js → bundle-B40JIKoL.js} +1 -1
- package/cjs/chunks/bundle-B40JIKoL.js.map +1 -0
- package/cjs/chunks/{bundle-D4e0UT-6.js → bundle-B8SH2f7F.js} +1 -1
- package/cjs/chunks/bundle-B8SH2f7F.js.map +1 -0
- package/cjs/chunks/{bundle-Ca7xeBTO.js → bundle-B9KKI197.js} +3 -1
- package/cjs/chunks/bundle-B9KKI197.js.map +1 -0
- package/cjs/chunks/{bundle-DPrTZ-1L.js → bundle-BBlJg7wh.js} +7 -6
- package/cjs/chunks/bundle-BBlJg7wh.js.map +1 -0
- package/cjs/chunks/{bundle-B2h5VMZ6.js → bundle-BED3wGYf.js} +2 -2
- package/cjs/chunks/bundle-BED3wGYf.js.map +1 -0
- package/cjs/chunks/{bundle-C-r9vRgc.js → bundle-BGmEoqIq.js} +1 -1
- package/cjs/chunks/bundle-BGmEoqIq.js.map +1 -0
- package/cjs/chunks/{bundle-D1X4MKLh.js → bundle-BYarXD6U.js} +6 -5
- package/{chunks/bundle-B4q4jk6S.js.map → cjs/chunks/bundle-BYarXD6U.js.map} +1 -1
- package/cjs/chunks/{bundle-ClBBhzU-.js → bundle-BZf2YVCr.js} +1 -1
- package/cjs/chunks/bundle-BZf2YVCr.js.map +1 -0
- package/cjs/chunks/{bundle-BG8qs_3y.js → bundle-BarChVO6.js} +1 -1
- package/cjs/chunks/bundle-BarChVO6.js.map +1 -0
- package/cjs/chunks/{bundle-DvkiHRsE.js → bundle-BdTrvBRC.js} +6 -5
- package/cjs/chunks/bundle-BdTrvBRC.js.map +1 -0
- package/cjs/chunks/{bundle-C0ZNrrcl.js → bundle-BpJxkKab.js} +5 -4
- package/cjs/chunks/bundle-BpJxkKab.js.map +1 -0
- package/cjs/chunks/{bundle-CL-vjR4o.js → bundle-Bs4qGnBO.js} +2 -2
- package/cjs/chunks/{bundle-CL-vjR4o.js.map → bundle-Bs4qGnBO.js.map} +1 -1
- package/cjs/chunks/{bundle-CLNUkVC8.js → bundle-Bsd8mnLE.js} +1 -1
- package/cjs/chunks/bundle-Bsd8mnLE.js.map +1 -0
- package/cjs/chunks/{bundle-DZMn5ScB.js → bundle-Btk78hMe.js} +7 -7
- package/cjs/chunks/bundle-Btk78hMe.js.map +1 -0
- package/cjs/chunks/{bundle-B2KKkvdj.js → bundle-Bz2MU4JV.js} +1 -1
- package/cjs/chunks/bundle-Bz2MU4JV.js.map +1 -0
- package/cjs/chunks/{bundle-LLV3t4--.js → bundle-C5U4LSlA.js} +5 -5
- package/cjs/chunks/bundle-C5U4LSlA.js.map +1 -0
- package/cjs/chunks/{bundle-WETElB-o.js → bundle-C5bS3zdm.js} +7 -7
- package/cjs/chunks/bundle-C5bS3zdm.js.map +1 -0
- package/cjs/chunks/{bundle-DpK1fr1j.js → bundle-C9goSwm_.js} +1 -1
- package/cjs/chunks/bundle-C9goSwm_.js.map +1 -0
- package/cjs/chunks/{bundle-Bw_LvbLk.js → bundle-CLMFxMug.js} +2 -2
- package/cjs/chunks/bundle-CLMFxMug.js.map +1 -0
- package/cjs/chunks/{bundle-BvhC4El1.js → bundle-CMNar_06.js} +27 -26
- package/{chunks/bundle-DVMiIa_8.js.map → cjs/chunks/bundle-CMNar_06.js.map} +1 -1
- package/cjs/chunks/{bundle-Cw7xe6J1.js → bundle-CRjV-DLM.js} +7 -7
- package/cjs/chunks/{bundle-Cw7xe6J1.js.map → bundle-CRjV-DLM.js.map} +1 -1
- package/cjs/chunks/{bundle-OCHWYrfg.js → bundle-CVlZ1O84.js} +2 -2
- package/cjs/chunks/bundle-CVlZ1O84.js.map +1 -0
- package/cjs/chunks/{bundle-BNVygboA.js → bundle-CXn9kmsB.js} +3 -3
- package/cjs/chunks/bundle-CXn9kmsB.js.map +1 -0
- package/cjs/chunks/{bundle-30fh5iPx.js → bundle-CXyVP3ik.js} +2 -2
- package/cjs/chunks/bundle-CXyVP3ik.js.map +1 -0
- package/cjs/chunks/{bundle-CxNGVWIy.js → bundle-Ca2fr0Kb.js} +1 -1
- package/cjs/chunks/bundle-Ca2fr0Kb.js.map +1 -0
- package/cjs/chunks/{bundle-D9UFa9yx.js → bundle-Cf4_cCe9.js} +1 -1
- package/cjs/chunks/bundle-Cf4_cCe9.js.map +1 -0
- package/cjs/chunks/{bundle-D7v4i_Ae.js → bundle-Ch54AIEU.js} +2 -4
- package/cjs/chunks/bundle-Ch54AIEU.js.map +1 -0
- package/cjs/chunks/{bundle-Cnyr9_mq.js → bundle-Ck2VVUR8.js} +3 -3
- package/cjs/chunks/bundle-Ck2VVUR8.js.map +1 -0
- package/cjs/chunks/{bundle-DOUm656A.js → bundle-Ck8Qz_Ca.js} +3 -3
- package/cjs/chunks/bundle-Ck8Qz_Ca.js.map +1 -0
- package/cjs/chunks/{bundle-DJ9gapN2.js → bundle-CkSDsWpR.js} +25 -30
- package/cjs/chunks/{bundle-DJ9gapN2.js.map → bundle-CkSDsWpR.js.map} +1 -1
- package/cjs/chunks/{bundle-BCQxFX-W.js → bundle-ClUKx_l3.js} +8 -3
- package/cjs/chunks/bundle-ClUKx_l3.js.map +1 -0
- package/cjs/chunks/{bundle-Cc89qdjT.js → bundle-CmEOg3Gp.js} +11 -13
- package/{chunks/bundle-CclWZYVY.js.map → cjs/chunks/bundle-CmEOg3Gp.js.map} +1 -1
- package/cjs/chunks/{bundle-GFjnAifB.js → bundle-Cnh_uogl.js} +9 -5
- package/cjs/chunks/bundle-Cnh_uogl.js.map +1 -0
- package/cjs/chunks/{bundle-SfusZfMJ.js → bundle-Co2OfFRh.js} +1 -1
- package/cjs/chunks/bundle-Co2OfFRh.js.map +1 -0
- package/cjs/chunks/{bundle-jLW3AG2G.js → bundle-Co7peqju.js} +1 -1
- package/cjs/chunks/{bundle-jLW3AG2G.js.map → bundle-Co7peqju.js.map} +1 -1
- package/cjs/chunks/{bundle-ZItyfz7r.js → bundle-CobEoguL.js} +4 -4
- package/cjs/chunks/bundle-CobEoguL.js.map +1 -0
- package/cjs/chunks/{bundle-IZLtKe6R.js → bundle-CvkPNwGA.js} +12 -12
- package/cjs/chunks/bundle-CvkPNwGA.js.map +1 -0
- package/cjs/chunks/{bundle-DFsKxEv-.js → bundle-D6wHS_BW.js} +40 -36
- package/cjs/chunks/bundle-D6wHS_BW.js.map +1 -0
- package/cjs/chunks/{bundle-DWGp201o.js → bundle-D91GTav0.js} +2 -2
- package/cjs/chunks/bundle-D91GTav0.js.map +1 -0
- package/cjs/chunks/{bundle-CjYhSLRD.js → bundle-D95F7WKf.js} +2 -2
- package/cjs/chunks/{bundle-CjYhSLRD.js.map → bundle-D95F7WKf.js.map} +1 -1
- package/cjs/chunks/{bundle-CcmMvK6l.js → bundle-DHTMMHln.js} +1 -1
- package/cjs/chunks/bundle-DHTMMHln.js.map +1 -0
- package/cjs/chunks/{bundle-BOrMDMdN.js → bundle-DLgT0MKO.js} +30 -33
- package/cjs/chunks/bundle-DLgT0MKO.js.map +1 -0
- package/cjs/chunks/{bundle-DvpCzVKY.js → bundle-DOQVOQQY.js} +1 -1
- package/cjs/chunks/bundle-DOQVOQQY.js.map +1 -0
- package/cjs/chunks/{bundle-DmVeFWB4.js → bundle-DTtY3_Ni.js} +2 -2
- package/cjs/chunks/bundle-DTtY3_Ni.js.map +1 -0
- package/cjs/chunks/{bundle-IE4yQ0qq.js → bundle-DVFuvWQ0.js} +1 -1
- package/cjs/chunks/bundle-DVFuvWQ0.js.map +1 -0
- package/cjs/chunks/{bundle-Deao1Upp.js → bundle-DgWaY7S0.js} +5 -5
- package/cjs/chunks/bundle-DgWaY7S0.js.map +1 -0
- package/cjs/chunks/{bundle-Bc92JuA7.js → bundle-DioNt-g2.js} +8 -8
- package/cjs/chunks/bundle-DioNt-g2.js.map +1 -0
- package/cjs/chunks/bundle-DjFJYSI3.js +32 -0
- package/cjs/chunks/bundle-DjFJYSI3.js.map +1 -0
- package/cjs/chunks/{bundle-Pfx0MBr4.js → bundle-DmfO6_lp.js} +3 -3
- package/cjs/chunks/bundle-DmfO6_lp.js.map +1 -0
- package/cjs/chunks/{bundle-CgOafeY_.js → bundle-Dq1gBmDY.js} +3 -3
- package/cjs/chunks/{bundle-CgOafeY_.js.map → bundle-Dq1gBmDY.js.map} +1 -1
- package/cjs/chunks/{bundle-DsrfvJYA.js → bundle-Dur9d2k7.js} +32 -27
- package/cjs/chunks/bundle-Dur9d2k7.js.map +1 -0
- package/cjs/chunks/{bundle-Cvu5DOpl.js → bundle-DwaO4lk0.js} +16 -19
- package/cjs/chunks/{bundle-Cvu5DOpl.js.map → bundle-DwaO4lk0.js.map} +1 -1
- package/cjs/chunks/{bundle-B1uXZFKP.js → bundle-DxUpLiXa.js} +19 -16
- package/cjs/chunks/{bundle-B1uXZFKP.js.map → bundle-DxUpLiXa.js.map} +1 -1
- package/cjs/chunks/{bundle-BAqFIbKr.js → bundle-DzkRFA4-.js} +16 -11
- package/cjs/chunks/bundle-DzkRFA4-.js.map +1 -0
- package/cjs/chunks/{bundle-CLte647H.js → bundle-FcnFNV4V.js} +1 -1
- package/cjs/chunks/bundle-FcnFNV4V.js.map +1 -0
- package/cjs/chunks/{bundle-CHXLIlQ1.js → bundle-J_QbGDEm.js} +19 -35
- package/cjs/chunks/{bundle-CHXLIlQ1.js.map → bundle-J_QbGDEm.js.map} +1 -1
- package/cjs/chunks/{bundle-cl2q8NwQ.js → bundle-JqwDNyBE.js} +7 -6
- package/{chunks/bundle-CDMcNani.js.map → cjs/chunks/bundle-JqwDNyBE.js.map} +1 -1
- package/cjs/chunks/{bundle-Bpy7IQta.js → bundle-K2UuTY_r.js} +9 -7
- package/cjs/chunks/{bundle-DGJX80zy.js.map → bundle-K2UuTY_r.js.map} +1 -1
- package/cjs/chunks/{bundle-hVU-fzqu.js → bundle-LO8nBYJf.js} +61 -53
- package/cjs/chunks/bundle-LO8nBYJf.js.map +1 -0
- package/cjs/chunks/{bundle-8IuV93EV.js → bundle-Q0M503xu.js} +62 -69
- package/cjs/chunks/{bundle-8IuV93EV.js.map → bundle-Q0M503xu.js.map} +1 -1
- package/cjs/chunks/{bundle-CPIzT1cf.js → bundle-Q30PMAyi.js} +1 -1
- package/cjs/chunks/bundle-Q30PMAyi.js.map +1 -0
- package/cjs/chunks/{bundle-B-0_xv9u.js → bundle-V6Y5v5ft.js} +9 -3
- package/cjs/chunks/bundle-V6Y5v5ft.js.map +1 -0
- package/cjs/chunks/{bundle-DFVUnSWq.js → bundle-VNK4cKfS.js} +2 -2
- package/cjs/chunks/bundle-VNK4cKfS.js.map +1 -0
- package/cjs/chunks/{bundle-BCt-Rzil.js → bundle-WLDzr4U5.js} +6 -6
- package/cjs/chunks/bundle-WLDzr4U5.js.map +1 -0
- package/cjs/chunks/{bundle-C4UzGGy_.js → bundle-WrRM6A2K.js} +1 -1
- package/cjs/chunks/bundle-WrRM6A2K.js.map +1 -0
- package/cjs/chunks/{bundle-B4EdciCR.js → bundle-XqNA0vsK.js} +2 -1
- package/cjs/chunks/bundle-XqNA0vsK.js.map +1 -0
- package/cjs/chunks/{bundle-BEtlTF8Q.js → bundle-ZSPh33fs.js} +39 -61
- package/cjs/chunks/bundle-ZSPh33fs.js.map +1 -0
- package/cjs/chunks/{bundle-DLTCoQzD.js → bundle-cXx7XwGe.js} +1 -1
- package/cjs/chunks/bundle-cXx7XwGe.js.map +1 -0
- package/cjs/chunks/{bundle-CDJXrIVC.js → bundle-dokTsajJ.js} +1 -1
- package/cjs/chunks/{bundle-CDJXrIVC.js.map → bundle-dokTsajJ.js.map} +1 -1
- package/cjs/chunks/{bundle-Ub33KGva.js → bundle-nJ_H0gk1.js} +1 -1
- package/cjs/chunks/bundle-nJ_H0gk1.js.map +1 -0
- package/cjs/chunks/{bundle-BMN1aDia.js → bundle-q7OlAphN.js} +1 -40
- package/cjs/chunks/bundle-q7OlAphN.js.map +1 -0
- package/cjs/chunks/bundle-u9XWE6Rm.js +22 -0
- package/cjs/chunks/bundle-u9XWE6Rm.js.map +1 -0
- package/cjs/chunks/{bundle-xADAFEo0.js → bundle-unWzPBv1.js} +6 -6
- package/cjs/chunks/bundle-unWzPBv1.js.map +1 -0
- package/cjs/hooks/useModal.js +13 -13
- package/cjs/index.js +80 -80
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +3 -3
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +1 -1
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -4
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +16 -16
- package/cjs/ui/Button.js +5 -5
- package/cjs/ui/ChannelAvatar.js +5 -5
- package/cjs/ui/ConnectionStatus.js +6 -6
- package/cjs/ui/ContextMenu.js +13 -13
- package/cjs/ui/DateSeparator.js +5 -5
- package/cjs/ui/EmojiReactions.js +26 -26
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
- package/cjs/ui/FileMessageItemBody.js +10 -10
- package/cjs/ui/FileViewer.js +17 -17
- package/cjs/ui/Header.js +9 -9
- package/cjs/ui/Icon.js +4 -4
- package/cjs/ui/IconButton.js +3 -3
- package/cjs/ui/ImageRenderer.js +4 -2
- package/cjs/ui/ImageRenderer.js.map +1 -1
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +3 -3
- package/cjs/ui/LinkLabel.js +5 -5
- package/cjs/ui/Loader.js +4 -4
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +4 -11
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js.map +1 -1
- package/cjs/ui/MentionLabel.js +14 -14
- package/cjs/ui/MentionUserLabel.js +3 -2
- package/cjs/ui/MentionUserLabel.js.map +1 -1
- package/cjs/ui/MessageContent.js +87 -103
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageFeedbackFailedModal.js +14 -14
- package/cjs/ui/MessageFeedbackModal.js +19 -19
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +108 -90
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +22 -22
- package/cjs/ui/MessageItemReactionMenu.js +17 -17
- package/cjs/ui/MessageSearchFileItem.js +15 -15
- package/cjs/ui/MessageSearchItem.js +13 -13
- package/cjs/ui/MessageStatus.js +11 -11
- package/cjs/ui/MessageTemplate.js +1 -1
- package/cjs/ui/MobileFeedbackMenu.js +13 -13
- package/cjs/ui/Modal.js +13 -13
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +23 -22
- package/cjs/ui/OGMessageItemBody.js.map +1 -1
- package/cjs/ui/OpenChannelAdminMessage.js +3 -3
- package/cjs/ui/OpenChannelAvatar.js +8 -8
- package/cjs/ui/OpenchannelConversationHeader.js +8 -8
- package/cjs/ui/OpenchannelFileMessage.js +20 -20
- package/cjs/ui/OpenchannelOGMessage.js +40 -40
- package/cjs/ui/OpenchannelThumbnailMessage.js +20 -20
- package/cjs/ui/OpenchannelUserMessage.js +27 -27
- package/cjs/ui/PlaceHolder.js +7 -7
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/ProgressBar.js +2 -1
- package/cjs/ui/ProgressBar.js.map +1 -1
- package/cjs/ui/QuoteMessage.js +12 -12
- package/cjs/ui/QuoteMessageInput.js +11 -11
- package/cjs/ui/ReactionBadge.js +6 -6
- package/cjs/ui/ReactionButton.js +6 -6
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TemplateMessageItemBody.js +22 -20
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +25 -22
- package/cjs/ui/TextMessageItemBody.js.map +1 -1
- package/cjs/ui/ThreadReplies.js +10 -10
- package/cjs/ui/ThumbnailMessageItemBody.js +6 -6
- package/cjs/ui/Toggle.js +4 -4
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +3 -3
- package/cjs/ui/TypingIndicatorBubble.js +4 -4
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +15 -15
- package/cjs/ui/UserProfile.js +12 -12
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +20 -19
- package/cjs/ui/VoiceMessageItemBody.js.map +1 -1
- package/cjs/ui/Word.js +14 -14
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/withSendbird.js +4 -3
- package/cjs/withSendbird.js.map +1 -1
- package/dist/index.css +3 -4
- package/hooks/useModal.js +13 -13
- package/index.js +80 -80
- package/package.json +1 -1
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +3 -3
- package/types/hooks/VoicePlayer/useVoicePlayer.d.ts +2 -2
- package/types/hooks/VoiceRecorder/WebAudioUtils.d.ts +5 -2
- package/types/hooks/VoiceRecorder/useVoiceRecorder.d.ts +1 -1
- package/types/hooks/useOnScrollReachedEndDetector/index.d.ts +0 -1
- package/types/lib/LocalizationContext.d.ts +3 -4
- package/types/lib/Logger/index.d.ts +1 -1
- package/types/lib/Sendbird.d.ts +2 -8
- package/types/lib/SendbirdSdkContext.d.ts +3 -0
- package/types/lib/hooks/useTheme.d.ts +1 -1
- package/types/lib/pubSub/index.d.ts +4 -1
- package/types/lib/pubSub/topics.d.ts +2 -2
- package/types/lib/selectors.d.ts +4 -4
- package/types/lib/types.d.ts +5 -5
- package/types/modules/App/AppLayout.d.ts +1 -1
- package/types/modules/App/types.d.ts +1 -1
- package/types/modules/Channel/components/Message/index.d.ts +1 -1
- package/types/modules/Channel/context/ChannelProvider.d.ts +11 -12
- package/types/modules/Channel/context/hooks/useHandleChannelEvents.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useHandleReconnect.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useHandleReconnectForChannelList.d.ts +4 -4
- package/types/modules/Channel/context/hooks/useInitialMessagesFetch.d.ts +3 -3
- package/types/modules/Channel/context/hooks/useReconnectOnIdle.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useScrollDownCallback.d.ts +1 -1
- package/types/modules/Channel/context/hooks/useScrollToMessage.d.ts +3 -3
- package/types/modules/Channel/context/hooks/useSendFileMessageCallback.d.ts +2 -2
- package/types/modules/Channel/context/hooks/useSendVoiceMessageCallback.d.ts +1 -1
- package/types/modules/Channel/context/utils.d.ts +4 -4
- package/types/modules/ChannelList/components/ChannelListUI/index.d.ts +1 -1
- package/types/modules/ChannelList/context/ChannelListProvider.d.ts +7 -7
- package/types/modules/ChannelList/index.d.ts +1 -1
- package/types/modules/ChannelList/utils.d.ts +2 -2
- package/types/modules/ChannelSettings/components/ChannelSettingsUI/ChannelSettingsHeader.d.ts +1 -0
- package/types/modules/ChannelSettings/components/UserListItem/index.d.ts +4 -7
- package/types/modules/ChannelSettings/context/ChannelSettingsProvider.d.ts +1 -1
- package/types/modules/CreateChannel/context/CreateChannelProvider.d.ts +3 -2
- package/types/modules/EditUserProfile/components/EditUserProfileUI/EditUserProfileUIView.d.ts +1 -1
- package/types/modules/EditUserProfile/components/EditUserProfileUI/index.d.ts +1 -1
- package/types/modules/EditUserProfile/context/EditUserProfileProvider.d.ts +1 -1
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +9 -9
- package/types/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.d.ts +2 -2
- package/types/modules/GroupChannel/components/MessageList/InfiniteList.d.ts +18 -0
- package/types/modules/GroupChannel/components/MessageList/getMessagePartsInfo.d.ts +3 -3
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +6 -5
- package/types/modules/GroupChannel/context/hooks/useMessageActions.d.ts +1 -1
- package/types/modules/GroupChannel/context/hooks/useMessageListScroll.d.ts +3 -2
- package/types/modules/GroupChannel/context/utils.d.ts +2 -2
- package/types/modules/MessageSearch/context/MessageSearchProvider.d.ts +4 -4
- package/types/modules/MessageSearch/context/hooks/useGetSearchedMessages.d.ts +1 -1
- package/types/modules/MessageSearch/context/hooks/useScrollCallback.d.ts +4 -4
- package/types/modules/MessageSearch/index.d.ts +0 -1
- package/types/modules/OpenChannel/context/OpenChannelProvider.d.ts +1 -2
- package/types/modules/OpenChannel/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useFileUploadCallback.d.ts +3 -3
- package/types/modules/OpenChannel/context/hooks/useHandleChannelEvents.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useInitialMessagesFetch.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useResendMessageCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useScrollCallback.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useSendMessageCallback.d.ts +2 -2
- package/types/modules/OpenChannel/context/hooks/useSetChannel.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useTrimMessageList.d.ts +1 -1
- package/types/modules/OpenChannel/context/hooks/useUpdateMessageCallback.d.ts +3 -3
- package/types/modules/OpenChannel/context/utils.d.ts +2 -3
- package/types/modules/OpenChannelList/context/hooks/createChannelListQuery.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/useRefreshOpenChannelList.d.ts +1 -1
- package/types/modules/OpenChannelList/context/hooks/useSetupOpenChannelList.d.ts +1 -1
- package/types/modules/OpenChannelSettings/components/ParticipantUI/ParticipantItem.d.ts +2 -2
- package/types/modules/OpenChannelSettings/context/OpenChannelSettingsProvider.d.ts +3 -4
- package/types/modules/Thread/context/ThreadProvider.d.ts +7 -5
- package/types/modules/Thread/context/hooks/useDeleteMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useGetChannel.d.ts +2 -2
- package/types/modules/Thread/context/hooks/useGetParentMessage.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useHandleChannelEvents.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useHandleThreadPubsubEvents.d.ts +2 -2
- package/types/modules/Thread/context/hooks/useResendMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useSendFileMessage.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useSendUserMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useSendVoiceMessageCallback.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useThreadFetchers.d.ts +1 -1
- package/types/modules/Thread/context/hooks/useToggleReactionsCallback.d.ts +3 -2
- package/types/modules/Thread/context/hooks/useUpdateMessageCallback.d.ts +9 -2
- package/types/modules/Thread/context/utils.d.ts +3 -4
- package/types/ui/AdminMessage/index.d.ts +1 -1
- package/types/ui/ChannelAvatar/utils.d.ts +3 -3
- package/types/ui/ContextMenu/MenuItems.d.ts +4 -3
- package/types/ui/ContextMenu/index.d.ts +5 -1
- package/types/ui/ContextMenu/items/MuteMenuItem.d.ts +5 -1
- package/types/ui/ContextMenu/items/OperatorMenuItem.d.ts +5 -1
- package/types/ui/Icon/index.d.ts +2 -1
- package/types/ui/IconButton/index.d.ts +1 -0
- package/types/ui/ImageRenderer/index.d.ts +7 -7
- package/types/ui/ImageRenderer/useDynamicSideLength.d.ts +2 -2
- package/types/ui/ImageRenderer/utils.d.ts +1 -1
- package/types/ui/Label/index.d.ts +1 -0
- package/types/ui/Label/stringSet.d.ts +1 -0
- package/types/ui/LegacyEditUserProfile/index.d.ts +1 -1
- package/types/ui/Loader/index.d.ts +2 -1
- package/types/ui/MessageContent/MessageProfile/index.d.ts +1 -1
- package/types/ui/MessageInput/hooks/usePaste/types.d.ts +1 -1
- package/types/ui/MessageItemMenu/index.d.ts +5 -7
- package/types/ui/MessageItemReactionMenu/index.d.ts +1 -1
- package/types/ui/ReactionBadge/index.d.ts +1 -0
- package/types/ui/ReactionButton/index.d.ts +4 -0
- package/types/ui/TemplateMessageItemBody/LoadingTemplateMessageItemBody.d.ts +1 -1
- package/types/ui/TemplateMessageItemBody/index.d.ts +1 -1
- package/types/ui/ThreadReplies/index.d.ts +1 -1
- package/types/ui/UserProfile/index.d.ts +1 -1
- package/types/ui/Word/index.d.ts +1 -1
- package/types/utils/consts.d.ts +1 -0
- package/types/utils/exports/getOutgoingMessageState.d.ts +1 -1
- package/types/utils/getIsReactionEnabled.d.ts +1 -1
- package/types/utils/index.d.ts +2 -2
- package/types/utils/messages.d.ts +1 -1
- package/types/utils/numberToPx.d.ts +1 -1
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +1 -1
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +16 -16
- package/ui/Button.js +5 -5
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +13 -13
- package/ui/DateSeparator.js +5 -5
- package/ui/EmojiReactions.js +26 -26
- package/ui/FallbackTemplateMessageItemBody.tsx.js +7 -7
- package/ui/FileMessageItemBody.js +10 -10
- package/ui/FileViewer.js +17 -17
- package/ui/Header.js +9 -9
- package/ui/Icon.js +4 -4
- package/ui/IconButton.js +3 -3
- package/ui/ImageRenderer.js +4 -2
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +5 -5
- package/ui/Loader.js +4 -4
- package/ui/LoadingTemplateMessageItemBody.tsx.js +4 -11
- package/ui/LoadingTemplateMessageItemBody.tsx.js.map +1 -1
- package/ui/MentionLabel.js +14 -14
- package/ui/MentionUserLabel.js +3 -2
- package/ui/MentionUserLabel.js.map +1 -1
- package/ui/MessageContent.js +87 -103
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageFeedbackFailedModal.js +14 -14
- package/ui/MessageFeedbackModal.js +19 -19
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +108 -90
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +22 -22
- package/ui/MessageItemReactionMenu.js +17 -17
- package/ui/MessageSearchFileItem.js +15 -15
- package/ui/MessageSearchItem.js +13 -13
- package/ui/MessageStatus.js +11 -11
- package/ui/MessageTemplate.js +1 -1
- package/ui/MobileFeedbackMenu.js +13 -13
- package/ui/Modal.js +13 -13
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +23 -22
- package/ui/OGMessageItemBody.js.map +1 -1
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +8 -8
- package/ui/OpenchannelFileMessage.js +20 -20
- package/ui/OpenchannelOGMessage.js +40 -40
- package/ui/OpenchannelThumbnailMessage.js +20 -20
- package/ui/OpenchannelUserMessage.js +27 -27
- package/ui/PlaceHolder.js +7 -7
- package/ui/PlaybackTime.js +3 -3
- package/ui/ProgressBar.js +2 -1
- package/ui/ProgressBar.js.map +1 -1
- package/ui/QuoteMessage.js +12 -12
- package/ui/QuoteMessageInput.js +11 -11
- package/ui/ReactionBadge.js +6 -6
- package/ui/ReactionButton.js +6 -6
- package/ui/SortByRow.js +2 -2
- package/ui/TemplateMessageItemBody.js +22 -20
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +25 -22
- package/ui/TextMessageItemBody.js.map +1 -1
- package/ui/ThreadReplies.js +10 -10
- package/ui/ThumbnailMessageItemBody.js +6 -6
- package/ui/Toggle.js +4 -4
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +3 -3
- package/ui/TypingIndicatorBubble.js +4 -4
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +15 -15
- package/ui/UserProfile.js +12 -12
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +20 -19
- package/ui/VoiceMessageItemBody.js.map +1 -1
- package/ui/Word.js +14 -14
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/withSendbird.js +4 -3
- package/withSendbird.js.map +1 -1
- package/chunks/bundle-2vhBVWLQ.js.map +0 -1
- package/chunks/bundle-60et0yds.js.map +0 -1
- package/chunks/bundle-8J9SSfIS.js.map +0 -1
- package/chunks/bundle-ARb5Lm9T.js.map +0 -1
- package/chunks/bundle-BCuW6lS8.js.map +0 -1
- package/chunks/bundle-BGTq2aZA.js +0 -57
- package/chunks/bundle-BGTq2aZA.js.map +0 -1
- package/chunks/bundle-BI0n-T1b.js.map +0 -1
- package/chunks/bundle-BQPvwBK8.js.map +0 -1
- package/chunks/bundle-BfjOoJk6.js.map +0 -1
- package/chunks/bundle-Br_sURBN.js.map +0 -1
- package/chunks/bundle-BxaysvGU.js.map +0 -1
- package/chunks/bundle-C1XVT5qc.js.map +0 -1
- package/chunks/bundle-C2B-jwQF.js.map +0 -1
- package/chunks/bundle-C5i4dn9q.js.map +0 -1
- package/chunks/bundle-C8XqVZD9.js.map +0 -1
- package/chunks/bundle-CAdxJnio.js +0 -16
- package/chunks/bundle-CAdxJnio.js.map +0 -1
- package/chunks/bundle-CLQfFjkS.js.map +0 -1
- package/chunks/bundle-Cdx5L_Jm.js.map +0 -1
- package/chunks/bundle-Chn4Xw78.js.map +0 -1
- package/chunks/bundle-Cj-w5I5i.js.map +0 -1
- package/chunks/bundle-CtgXJZJt.js.map +0 -1
- package/chunks/bundle-Cw_yF4Vi.js.map +0 -1
- package/chunks/bundle-DEFOjZw9.js.map +0 -1
- package/chunks/bundle-DElB1Hqa.js.map +0 -1
- package/chunks/bundle-DHrYAkRt.js.map +0 -1
- package/chunks/bundle-DUVa5cu6.js.map +0 -1
- package/chunks/bundle-DVc25Jb7.js.map +0 -1
- package/chunks/bundle-DYmy2oK3.js.map +0 -1
- package/chunks/bundle-DhJuLwLJ.js.map +0 -1
- package/chunks/bundle-DiVyB2HD.js.map +0 -1
- package/chunks/bundle-DoXeGvHN.js.map +0 -1
- package/chunks/bundle-Dpj_mOs8.js.map +0 -1
- package/chunks/bundle-DudTIr4X.js.map +0 -1
- package/chunks/bundle-DwPw_RW5.js.map +0 -1
- package/chunks/bundle-DwvN2wPi.js.map +0 -1
- package/chunks/bundle-E4462uBn.js.map +0 -1
- package/chunks/bundle-HFOQJZAX.js.map +0 -1
- package/chunks/bundle-HhDUyQa4.js.map +0 -1
- package/chunks/bundle-KmtzKHnJ.js.map +0 -1
- package/chunks/bundle-Pw31xKtZ.js.map +0 -1
- package/chunks/bundle-WdeDKCD0.js.map +0 -1
- package/chunks/bundle-Y_WIAHds.js.map +0 -1
- package/chunks/bundle-YveljAuC.js.map +0 -1
- package/chunks/bundle-cgNuve_E.js.map +0 -1
- package/chunks/bundle-e3NlFYfX.js.map +0 -1
- package/chunks/bundle-hF8Gurf8.js.map +0 -1
- package/chunks/bundle-iA2l_iD3.js.map +0 -1
- package/chunks/bundle-klvZ-YE5.js.map +0 -1
- package/chunks/bundle-q3jyuKU7.js.map +0 -1
- package/chunks/bundle-thdxvFU8.js.map +0 -1
- package/chunks/bundle-u9Zl-7Je.js.map +0 -1
- package/chunks/bundle-uI-GOX6U.js.map +0 -1
- package/chunks/bundle-xHRJMo_A.js.map +0 -1
- package/cjs/chunks/bundle-30fh5iPx.js.map +0 -1
- package/cjs/chunks/bundle-B-0_xv9u.js.map +0 -1
- package/cjs/chunks/bundle-B2KKkvdj.js.map +0 -1
- package/cjs/chunks/bundle-B2h5VMZ6.js.map +0 -1
- package/cjs/chunks/bundle-B4EdciCR.js.map +0 -1
- package/cjs/chunks/bundle-B7wJ4Hqk.js +0 -20
- package/cjs/chunks/bundle-B7wJ4Hqk.js.map +0 -1
- package/cjs/chunks/bundle-BAqFIbKr.js.map +0 -1
- package/cjs/chunks/bundle-BCQxFX-W.js.map +0 -1
- package/cjs/chunks/bundle-BCt-Rzil.js.map +0 -1
- package/cjs/chunks/bundle-BG8qs_3y.js.map +0 -1
- package/cjs/chunks/bundle-BMN1aDia.js.map +0 -1
- package/cjs/chunks/bundle-BNVygboA.js.map +0 -1
- package/cjs/chunks/bundle-BOrMDMdN.js.map +0 -1
- package/cjs/chunks/bundle-Bc92JuA7.js.map +0 -1
- package/cjs/chunks/bundle-BiTKgXrx.js.map +0 -1
- package/cjs/chunks/bundle-Bv_QMEk2.js.map +0 -1
- package/cjs/chunks/bundle-Bw_LvbLk.js.map +0 -1
- package/cjs/chunks/bundle-C-r9vRgc.js.map +0 -1
- package/cjs/chunks/bundle-C0ZNrrcl.js.map +0 -1
- package/cjs/chunks/bundle-C4UzGGy_.js.map +0 -1
- package/cjs/chunks/bundle-CLNUkVC8.js.map +0 -1
- package/cjs/chunks/bundle-CLte647H.js.map +0 -1
- package/cjs/chunks/bundle-CPIzT1cf.js.map +0 -1
- package/cjs/chunks/bundle-Ca7xeBTO.js.map +0 -1
- package/cjs/chunks/bundle-CcmMvK6l.js.map +0 -1
- package/cjs/chunks/bundle-Ci6F_UQc.js.map +0 -1
- package/cjs/chunks/bundle-ClBBhzU-.js.map +0 -1
- package/cjs/chunks/bundle-Cnyr9_mq.js.map +0 -1
- package/cjs/chunks/bundle-CpIdIHld.js.map +0 -1
- package/cjs/chunks/bundle-CxNGVWIy.js.map +0 -1
- package/cjs/chunks/bundle-D1X4MKLh.js.map +0 -1
- package/cjs/chunks/bundle-D4e0UT-6.js.map +0 -1
- package/cjs/chunks/bundle-D7v4i_Ae.js.map +0 -1
- package/cjs/chunks/bundle-D9UFa9yx.js.map +0 -1
- package/cjs/chunks/bundle-DFVUnSWq.js.map +0 -1
- package/cjs/chunks/bundle-DFsKxEv-.js.map +0 -1
- package/cjs/chunks/bundle-DLTCoQzD.js.map +0 -1
- package/cjs/chunks/bundle-DOUm656A.js.map +0 -1
- package/cjs/chunks/bundle-DPrTZ-1L.js.map +0 -1
- package/cjs/chunks/bundle-DWBc-Yv7.js.map +0 -1
- package/cjs/chunks/bundle-DWGp201o.js.map +0 -1
- package/cjs/chunks/bundle-DZMn5ScB.js.map +0 -1
- package/cjs/chunks/bundle-Deao1Upp.js.map +0 -1
- package/cjs/chunks/bundle-DmVeFWB4.js.map +0 -1
- package/cjs/chunks/bundle-DpK1fr1j.js.map +0 -1
- package/cjs/chunks/bundle-DsrfvJYA.js.map +0 -1
- package/cjs/chunks/bundle-DvkiHRsE.js.map +0 -1
- package/cjs/chunks/bundle-DvpCzVKY.js.map +0 -1
- package/cjs/chunks/bundle-GFjnAifB.js.map +0 -1
- package/cjs/chunks/bundle-IE4yQ0qq.js.map +0 -1
- package/cjs/chunks/bundle-IZLtKe6R.js.map +0 -1
- package/cjs/chunks/bundle-LLV3t4--.js.map +0 -1
- package/cjs/chunks/bundle-OCHWYrfg.js.map +0 -1
- package/cjs/chunks/bundle-Pfx0MBr4.js.map +0 -1
- package/cjs/chunks/bundle-SfusZfMJ.js.map +0 -1
- package/cjs/chunks/bundle-Ub33KGva.js.map +0 -1
- package/cjs/chunks/bundle-WETElB-o.js.map +0 -1
- package/cjs/chunks/bundle-ZItyfz7r.js.map +0 -1
- package/cjs/chunks/bundle-cl2q8NwQ.js.map +0 -1
- package/cjs/chunks/bundle-glVs_8wY.js.map +0 -1
- package/cjs/chunks/bundle-hVU-fzqu.js.map +0 -1
- package/cjs/chunks/bundle-hXD0NDZt.js +0 -60
- package/cjs/chunks/bundle-hXD0NDZt.js.map +0 -1
- package/cjs/chunks/bundle-xADAFEo0.js.map +0 -1
- package/dist/index.css.map +0 -1
- package/types/modules/GroupChannel/context/hooks/usePreventDuplicateRequest.d.ts +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var _tslib = require('./bundle-
|
|
4
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
5
5
|
var message = require('@sendbird/chat/message');
|
|
6
6
|
var useSendbirdStateContext = require('../useSendbirdStateContext.js');
|
|
7
7
|
var ui_Icon = require('../ui/Icon.js');
|
|
8
8
|
var ui_ImageRenderer = require('../ui/ImageRenderer.js');
|
|
9
|
-
var index = require('./bundle-
|
|
10
|
-
var ui_FileViewer = require('./bundle-
|
|
9
|
+
var index = require('./bundle-CRjV-DLM.js');
|
|
10
|
+
var ui_FileViewer = require('./bundle-CvkPNwGA.js');
|
|
11
11
|
|
|
12
12
|
function ImageGrid(_a) {
|
|
13
13
|
var _b;
|
|
14
14
|
var children = _a.children, className = _a.className, message = _a.message, isReactionEnabled = _a.isReactionEnabled;
|
|
15
15
|
return (React.createElement("div", { className: 'sendbird-image-grid-wrap' },
|
|
16
16
|
React.createElement("div", { className: index.getClassName([
|
|
17
|
-
className,
|
|
17
|
+
className !== null && className !== void 0 ? className : '',
|
|
18
18
|
'sendbird-image-grid',
|
|
19
19
|
(isReactionEnabled && ((_b = message === null || message === void 0 ? void 0 : message.reactions) === null || _b === void 0 ? void 0 : _b.length) > 0) ? 'reactions' : '',
|
|
20
20
|
]) }, children)));
|
|
@@ -70,16 +70,15 @@ function MultipleFilesMessageItemBody(_a) {
|
|
|
70
70
|
function onClickRight() {
|
|
71
71
|
setCurrentFileViewerIndex(currentFileViewerIndex === statefulFileInfoList.length - 1 ? 0 : currentFileViewerIndex + 1);
|
|
72
72
|
}
|
|
73
|
-
return (threadMessageKindKey
|
|
73
|
+
return (threadMessageKindKey ? (React.createElement(React.Fragment, null,
|
|
74
74
|
currentFileViewerIndex > -1 && (React.createElement(ui_FileViewer.FileViewer, { message: message$1, statefulFileInfoList: statefulFileInfoList, currentIndex: currentFileViewerIndex, onClickLeft: onClickLeft, onClickRight: onClickRight, onClose: onClose, onDownloadClick: function (e) { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
75
75
|
var allowDownload, err_1;
|
|
76
76
|
var _a, _b;
|
|
77
77
|
return _tslib.__generator(this, function (_c) {
|
|
78
78
|
switch (_c.label) {
|
|
79
79
|
case 0:
|
|
80
|
-
if (!onBeforeDownloadFileMessage)
|
|
81
|
-
return [2 /*return
|
|
82
|
-
}
|
|
80
|
+
if (!onBeforeDownloadFileMessage)
|
|
81
|
+
return [2 /*return*/];
|
|
83
82
|
_c.label = 1;
|
|
84
83
|
case 1:
|
|
85
84
|
_c.trys.push([1, 3, , 4]);
|
|
@@ -100,15 +99,15 @@ function MultipleFilesMessageItemBody(_a) {
|
|
|
100
99
|
});
|
|
101
100
|
}); } })),
|
|
102
101
|
React.createElement(ImageGrid, { className: className, message: message$1, isReactionEnabled: isReactionEnabled }, statefulFileInfoList.map(function (fileInfo, index$1) {
|
|
103
|
-
var _a, _b, _c;
|
|
102
|
+
var _a, _b, _c, _d;
|
|
104
103
|
return (React.createElement("div", { className: "sendbird-multiple-files-image-renderer-wrapper", onClick: message$1.sendingStatus === message.SendingStatus.SUCCEEDED ? function () { return setCurrentFileViewerIndex(index$1); } : undefined, key: "sendbird-multiple-files-image-renderer-".concat(index$1, "-").concat(fileInfo.url) },
|
|
105
|
-
React.createElement(ui_ImageRenderer.default, { url: (_c = (_b = (_a = fileInfo.thumbnails) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : fileInfo.url, fixedSize: false, width: MULTIPLE_FILES_IMAGE_SIDE_LENGTH[threadMessageKindKey], maxSideLength: MULTIPLE_FILES_IMAGE_SIDE_LENGTH.CHAT_WEB, height: MULTIPLE_FILES_IMAGE_SIDE_LENGTH[threadMessageKindKey], borderRadius: ui_ImageRenderer.getBorderRadiusForMultipleImageRenderer(MULTIPLE_FILES_IMAGE_BORDER_RADIUS[threadMessageKindKey], index$1, statefulFileInfoList.length), shadeOnHover: true, isUploaded: !!fileInfo.isUploaded, placeHolder: function (_a) {
|
|
104
|
+
React.createElement(ui_ImageRenderer.default, { url: (_d = (_c = (_b = (_a = fileInfo.thumbnails) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : fileInfo.url) !== null && _d !== void 0 ? _d : '', fixedSize: false, width: MULTIPLE_FILES_IMAGE_SIDE_LENGTH[threadMessageKindKey], maxSideLength: MULTIPLE_FILES_IMAGE_SIDE_LENGTH.CHAT_WEB, height: MULTIPLE_FILES_IMAGE_SIDE_LENGTH[threadMessageKindKey], borderRadius: ui_ImageRenderer.getBorderRadiusForMultipleImageRenderer(MULTIPLE_FILES_IMAGE_BORDER_RADIUS[threadMessageKindKey], index$1, statefulFileInfoList.length), shadeOnHover: true, isUploaded: !!fileInfo.isUploaded, placeHolder: function (_a) {
|
|
106
105
|
var style = _a.style;
|
|
107
|
-
if (index.isGif(fileInfo.mimeType))
|
|
106
|
+
if (fileInfo.mimeType && index.isGif(fileInfo.mimeType))
|
|
108
107
|
return React.createElement(ImagePlaceholder.GIF, { style: style });
|
|
109
108
|
return React.createElement(ImagePlaceholder.Default, { style: style });
|
|
110
109
|
}, defaultComponent: React.createElement(ImagePlaceholder.LoadError, null) })));
|
|
111
|
-
})))));
|
|
110
|
+
})))) : React.createElement(React.Fragment, null));
|
|
112
111
|
}
|
|
113
112
|
var ImagePlaceholder = {
|
|
114
113
|
Default: function (_a) {
|
|
@@ -146,6 +145,7 @@ function useThreadMessageKindKeySelector(_a) {
|
|
|
146
145
|
// SendingStatus.SCHEDULED is currently not covered in UIKit
|
|
147
146
|
// So we can ignore for now, but for future, it is better to explicitly use PENDING, FAILED, or CANCELED.
|
|
148
147
|
var useFileInfoListWithUploaded = function (message$1) {
|
|
148
|
+
var _a, _b;
|
|
149
149
|
var blobHandler = React.useRef(new Map());
|
|
150
150
|
var getObjectURL = function (index, blob) {
|
|
151
151
|
if (!blobHandler.current.has(index) && blob)
|
|
@@ -166,13 +166,16 @@ var useFileInfoListWithUploaded = function (message$1) {
|
|
|
166
166
|
}
|
|
167
167
|
else if (message$1.sendingStatus === message.SendingStatus.SUCCEEDED) {
|
|
168
168
|
revokeURLs();
|
|
169
|
-
return message$1.fileInfoList.map(function (it) {
|
|
169
|
+
return message$1.fileInfoList.map(function (it) {
|
|
170
|
+
var _a, _b;
|
|
171
|
+
return (_tslib.__assign(_tslib.__assign({}, it), { url: it.url, isUploaded: true, mimeType: (_a = it.mimeType) !== null && _a !== void 0 ? _a : undefined, fileName: (_b = it.fileName) !== null && _b !== void 0 ? _b : undefined }));
|
|
172
|
+
});
|
|
170
173
|
}
|
|
171
174
|
else {
|
|
172
|
-
return message$1.messageParams.fileInfoList.map(function (it, index) {
|
|
175
|
+
return (_b = (_a = message$1 === null || message$1 === void 0 ? void 0 : message$1.messageParams) === null || _a === void 0 ? void 0 : _a.fileInfoList.map(function (it, index) {
|
|
173
176
|
var _a, _b;
|
|
174
177
|
return (_tslib.__assign(_tslib.__assign({}, it), { url: (_b = (_a = getObjectURL(index)) !== null && _a !== void 0 ? _a : it.fileUrl) !== null && _b !== void 0 ? _b : (it.file instanceof Blob ? getObjectURL(index, it.file) : undefined), isUploaded: !it.file && typeof it.fileUrl === 'string' && it.fileUrl.length > 0 }));
|
|
175
|
-
});
|
|
178
|
+
})) !== null && _b !== void 0 ? _b : [];
|
|
176
179
|
}
|
|
177
180
|
};
|
|
178
181
|
|
|
@@ -180,4 +183,4 @@ exports.MultipleFilesMessageItemBody = MultipleFilesMessageItemBody;
|
|
|
180
183
|
exports.ThreadMessageKind = ThreadMessageKind;
|
|
181
184
|
exports.useFileInfoListWithUploaded = useFileInfoListWithUploaded;
|
|
182
185
|
exports.useThreadMessageKindKeySelector = useThreadMessageKindKeySelector;
|
|
183
|
-
//# sourceMappingURL=bundle-
|
|
186
|
+
//# sourceMappingURL=bundle-DxUpLiXa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-DxUpLiXa.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var _tslib = require('./bundle-
|
|
5
|
-
var consts = require('./bundle-
|
|
4
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
5
|
+
var consts = require('./bundle-B9KKI197.js');
|
|
6
6
|
var useSendbirdStateContext = require('../useSendbirdStateContext.js');
|
|
7
7
|
|
|
8
8
|
var INITIALIZE_AUDIO_UNIT = 'INITIALIZE_AUDIO_UNIT';
|
|
@@ -111,24 +111,29 @@ var VoicePlayerProvider = function (_a) {
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
var pause = function (groupKey) {
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
if (currentPlayer) {
|
|
115
|
+
if (groupKey === currentGroupKey) {
|
|
116
|
+
logger.info('VoicePlayer: Pause playing(by group key).');
|
|
117
|
+
currentPlayer.pause();
|
|
118
|
+
}
|
|
119
|
+
else if (groupKey === ALL) {
|
|
120
|
+
logger.info('VoicePlayer: Pause playing(all).');
|
|
121
|
+
currentPlayer.pause();
|
|
122
|
+
}
|
|
117
123
|
}
|
|
118
|
-
|
|
119
|
-
logger.
|
|
120
|
-
currentPlayer === null || currentPlayer === void 0 ? void 0 : currentPlayer.pause();
|
|
124
|
+
else {
|
|
125
|
+
logger.warning('VoicePlayer: No currentPlayer to pause.');
|
|
121
126
|
}
|
|
122
127
|
};
|
|
123
128
|
var play = function (_a) {
|
|
124
|
-
var groupKey = _a.groupKey,
|
|
129
|
+
var groupKey = _a.groupKey, audioFile = _a.audioFile, _b = _a.audioFileUrl, audioFileUrl = _b === void 0 ? '' : _b;
|
|
125
130
|
if (groupKey !== currentGroupKey) {
|
|
126
131
|
pause(currentGroupKey);
|
|
127
132
|
}
|
|
128
133
|
// Clear the previous AudioPlayer element
|
|
129
134
|
var voicePlayerRoot = document.getElementById(consts.VOICE_PLAYER_ROOT_ID);
|
|
130
135
|
var voicePlayerAudioElement = document.getElementById(consts.VOICE_PLAYER_AUDIO_ID);
|
|
131
|
-
if (voicePlayerAudioElement) {
|
|
136
|
+
if (voicePlayerRoot && voicePlayerAudioElement) {
|
|
132
137
|
voicePlayerRoot.removeChild(voicePlayerAudioElement);
|
|
133
138
|
}
|
|
134
139
|
logger.info('VoicePlayer: Start getting audio file.');
|
|
@@ -249,4 +254,4 @@ exports.AudioUnitDefaultValue = AudioUnitDefaultValue;
|
|
|
249
254
|
exports.VOICE_PLAYER_STATUS = VOICE_PLAYER_STATUS;
|
|
250
255
|
exports.VoicePlayerProvider = VoicePlayerProvider;
|
|
251
256
|
exports.useVoicePlayerContext = useVoicePlayerContext;
|
|
252
|
-
//# sourceMappingURL=bundle-
|
|
257
|
+
//# sourceMappingURL=bundle-DzkRFA4-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-DzkRFA4-.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-FcnFNV4V.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _tslib = require('./bundle-
|
|
3
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var groupChannel = require('@sendbird/chat/groupChannel');
|
|
6
|
-
var pubSub_topics = require('./bundle-
|
|
7
|
-
var uuid = require('./bundle-
|
|
8
|
-
var utils = require('./bundle-
|
|
9
|
-
var consts = require('./bundle-
|
|
10
|
-
var UserProfileContext = require('./bundle-
|
|
6
|
+
var pubSub_topics = require('./bundle-C9goSwm_.js');
|
|
7
|
+
var uuid = require('./bundle-nJ_H0gk1.js');
|
|
8
|
+
var utils = require('./bundle-FcnFNV4V.js');
|
|
9
|
+
var consts = require('./bundle-B9KKI197.js');
|
|
10
|
+
var UserProfileContext = require('./bundle-Ch54AIEU.js');
|
|
11
11
|
var useSendbirdStateContext = require('../useSendbirdStateContext.js');
|
|
12
|
-
var index = require('./bundle-
|
|
13
|
-
var useReconnectOnIdle = require('./bundle-
|
|
12
|
+
var index = require('./bundle-CRjV-DLM.js');
|
|
13
|
+
var useReconnectOnIdle = require('./bundle-CVlZ1O84.js');
|
|
14
14
|
|
|
15
15
|
var RESET_CHANNEL_LIST = 'RESET_CHANNEL_LIST';
|
|
16
16
|
var CREATE_CHANNEL = 'CREATE_CHANNEL';
|
|
@@ -99,7 +99,8 @@ var createEventHandler = function (_a) {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
onMessageUpdated: function (channel, message) {
|
|
102
|
-
|
|
102
|
+
var _a;
|
|
103
|
+
if (channel.isGroupChannel() && ((_a = channel.lastMessage) === null || _a === void 0 ? void 0 : _a.isEqual(message))) {
|
|
103
104
|
logger.info('ChannelList: onMessageUpdated', channel);
|
|
104
105
|
channelListDispatcher({
|
|
105
106
|
type: ON_LAST_MESSAGE_UPDATED,
|
|
@@ -145,6 +146,7 @@ var createChannelListQuery = function (_a) {
|
|
|
145
146
|
};
|
|
146
147
|
if (userFilledChannelListQuery) {
|
|
147
148
|
Object.keys(userFilledChannelListQuery).forEach(function (key) {
|
|
149
|
+
// @ts-ignore
|
|
148
150
|
params[key] = userFilledChannelListQuery[key];
|
|
149
151
|
});
|
|
150
152
|
}
|
|
@@ -242,8 +244,8 @@ var pubSubHandler = function (pubSub, channelListDispatcher) {
|
|
|
242
244
|
var subscriber = new Map();
|
|
243
245
|
if (!pubSub)
|
|
244
246
|
return subscriber;
|
|
245
|
-
subscriber.set(pubSub_topics.pubSubTopics.CREATE_CHANNEL, pubSub.subscribe(pubSub_topics.pubSubTopics.CREATE_CHANNEL, function (
|
|
246
|
-
var channel =
|
|
247
|
+
subscriber.set(pubSub_topics.pubSubTopics.CREATE_CHANNEL, pubSub.subscribe(pubSub_topics.pubSubTopics.CREATE_CHANNEL, function (_a) {
|
|
248
|
+
var channel = _a.channel;
|
|
247
249
|
channelListDispatcher({
|
|
248
250
|
type: CREATE_CHANNEL,
|
|
249
251
|
payload: channel,
|
|
@@ -698,27 +700,7 @@ function useHandleReconnectForChannelList(_a) {
|
|
|
698
700
|
}, [shouldReconnect]);
|
|
699
701
|
}
|
|
700
702
|
|
|
701
|
-
var ChannelListContext = React.createContext(
|
|
702
|
-
disableUserProfile: true,
|
|
703
|
-
allowProfileEdit: true,
|
|
704
|
-
onBeforeCreateChannel: null,
|
|
705
|
-
onThemeChange: null,
|
|
706
|
-
onProfileEditSuccess: null,
|
|
707
|
-
onChannelSelect: null,
|
|
708
|
-
queries: {},
|
|
709
|
-
className: null,
|
|
710
|
-
initialized: false,
|
|
711
|
-
loading: false,
|
|
712
|
-
allChannels: [],
|
|
713
|
-
currentChannel: null,
|
|
714
|
-
channelListQuery: {},
|
|
715
|
-
currentUserId: null,
|
|
716
|
-
channelListDispatcher: null,
|
|
717
|
-
channelSource: null,
|
|
718
|
-
typingChannels: [],
|
|
719
|
-
fetchChannelList: utils.noop,
|
|
720
|
-
reconnectOnIdle: true,
|
|
721
|
-
});
|
|
703
|
+
var ChannelListContext = React.createContext(null);
|
|
722
704
|
var ChannelListProvider = function (props) {
|
|
723
705
|
var _a, _b;
|
|
724
706
|
// destruct props
|
|
@@ -739,7 +721,7 @@ var ChannelListProvider = function (props) {
|
|
|
739
721
|
// enable if it is true at least once(both are false by default)
|
|
740
722
|
var userDefinedDisableUserProfile = disableUserProfile !== null && disableUserProfile !== void 0 ? disableUserProfile : !config.common.enableUsingDefaultUserProfile;
|
|
741
723
|
var userDefinedRenderProfile = config === null || config === void 0 ? void 0 : config.renderUserProfile;
|
|
742
|
-
var enableEditProfile = allowProfileEdit ||
|
|
724
|
+
var enableEditProfile = allowProfileEdit || config.allowProfileEdit;
|
|
743
725
|
var userFilledChannelListQuery = queries === null || queries === void 0 ? void 0 : queries.channelListQuery;
|
|
744
726
|
var userFilledApplicationUserListQuery = queries === null || queries === void 0 ? void 0 : queries.applicationUserListQuery;
|
|
745
727
|
var sdkIntialized = sdkStore === null || sdkStore === void 0 ? void 0 : sdkStore.initialized;
|
|
@@ -764,7 +746,7 @@ var ChannelListProvider = function (props) {
|
|
|
764
746
|
channelListDispatcher: channelListDispatcher,
|
|
765
747
|
setChannelSource: setChannelSource,
|
|
766
748
|
onChannelSelect: onChannelSelect,
|
|
767
|
-
userFilledChannelListQuery: userFilledChannelListQuery,
|
|
749
|
+
userFilledChannelListQuery: _tslib.__assign({}, userFilledChannelListQuery),
|
|
768
750
|
logger: logger,
|
|
769
751
|
sortChannelList: sortChannelList,
|
|
770
752
|
disableAutoSelect: disableAutoSelect,
|
|
@@ -938,6 +920,8 @@ var ChannelListProvider = function (props) {
|
|
|
938
920
|
};
|
|
939
921
|
function useChannelListContext() {
|
|
940
922
|
var context = React.useContext(ChannelListContext);
|
|
923
|
+
if (!context)
|
|
924
|
+
throw new Error('ChannelListContext not found. Use within the ChannelList module.');
|
|
941
925
|
return context;
|
|
942
926
|
}
|
|
943
927
|
|
|
@@ -945,4 +929,4 @@ exports.ChannelListProvider = ChannelListProvider;
|
|
|
945
929
|
exports.LEAVE_CHANNEL_SUCCESS = LEAVE_CHANNEL_SUCCESS;
|
|
946
930
|
exports.SET_CURRENT_CHANNEL = SET_CURRENT_CHANNEL;
|
|
947
931
|
exports.useChannelListContext = useChannelListContext;
|
|
948
|
-
//# sourceMappingURL=bundle-
|
|
932
|
+
//# sourceMappingURL=bundle-J_QbGDEm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-J_QbGDEm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _tslib = require('./bundle-
|
|
4
|
-
var pxToNumber = require('./bundle-
|
|
3
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
4
|
+
var pxToNumber = require('./bundle-Ca2fr0Kb.js');
|
|
5
5
|
|
|
6
6
|
var compressImage = function (_a) {
|
|
7
7
|
var imageFile = _a.imageFile, compressionRate = _a.compressionRate, resizingWidth = _a.resizingWidth, resizingHeight = _a.resizingHeight, outputFormat = _a.outputFormat;
|
|
@@ -61,8 +61,8 @@ var compressImages = function (_a) { return _tslib.__awaiter(void 0, [_a], void
|
|
|
61
61
|
switch (_d.label) {
|
|
62
62
|
case 0:
|
|
63
63
|
compressionRate = imageCompression.compressionRate, _c = imageCompression.outputFormat, outputFormat = _c === void 0 ? 'preserve' : _c;
|
|
64
|
-
resizingWidth = pxToNumber.pxToNumber(imageCompression.resizingWidth);
|
|
65
|
-
resizingHeight = pxToNumber.pxToNumber(imageCompression.resizingHeight);
|
|
64
|
+
resizingWidth = imageCompression.resizingWidth ? pxToNumber.pxToNumber(imageCompression.resizingWidth) : undefined;
|
|
65
|
+
resizingHeight = imageCompression.resizingHeight ? pxToNumber.pxToNumber(imageCompression.resizingHeight) : undefined;
|
|
66
66
|
result = {
|
|
67
67
|
failedIndexes: [],
|
|
68
68
|
compressedFiles: [],
|
|
@@ -71,7 +71,7 @@ var compressImages = function (_a) { return _tslib.__awaiter(void 0, [_a], void
|
|
|
71
71
|
logger === null || logger === void 0 ? void 0 : logger.warning('utils - compressImages: There are no files.', files);
|
|
72
72
|
return [2 /*return*/, result];
|
|
73
73
|
}
|
|
74
|
-
if (compressionRate < 0 || 1 < compressionRate) {
|
|
74
|
+
if (!compressionRate || compressionRate < 0 || 1 < compressionRate) {
|
|
75
75
|
logger === null || logger === void 0 ? void 0 : logger.warning('utils - compressImages: The compressionRate is not acceptable.', compressionRate);
|
|
76
76
|
return [2 /*return*/, result];
|
|
77
77
|
}
|
|
@@ -103,6 +103,7 @@ var compressImages = function (_a) { return _tslib.__awaiter(void 0, [_a], void
|
|
|
103
103
|
return [3 /*break*/, 4];
|
|
104
104
|
case 3:
|
|
105
105
|
err_1 = _a.sent();
|
|
106
|
+
result.compressedFiles.push(file);
|
|
106
107
|
result.failedIndexes.push(index);
|
|
107
108
|
logger === null || logger === void 0 ? void 0 : logger.warning('utils - compressImages: Failed to compress image file', { file: file, err: err_1 });
|
|
108
109
|
return [3 /*break*/, 4];
|
|
@@ -119,4 +120,4 @@ var compressImages = function (_a) { return _tslib.__awaiter(void 0, [_a], void
|
|
|
119
120
|
}); };
|
|
120
121
|
|
|
121
122
|
exports.compressImages = compressImages;
|
|
122
|
-
//# sourceMappingURL=bundle-
|
|
123
|
+
//# sourceMappingURL=bundle-JqwDNyBE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-JqwDNyBE.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _tslib = require('./bundle-
|
|
3
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactDom = require('react-dom');
|
|
6
6
|
|
|
@@ -68,7 +68,7 @@ var MenuItems = /** @class */ (function (_super) {
|
|
|
68
68
|
return menuStyle;
|
|
69
69
|
};
|
|
70
70
|
_this.state = {
|
|
71
|
-
menuStyle: {},
|
|
71
|
+
menuStyle: { top: 0, left: 0 },
|
|
72
72
|
handleClickOutside: function () { },
|
|
73
73
|
};
|
|
74
74
|
return _this;
|
|
@@ -81,15 +81,17 @@ var MenuItems = /** @class */ (function (_super) {
|
|
|
81
81
|
this.cleanUpEvents();
|
|
82
82
|
};
|
|
83
83
|
MenuItems.prototype.render = function () {
|
|
84
|
-
var
|
|
84
|
+
var portalElement = document.getElementById('sendbird-dropdown-portal');
|
|
85
|
+
if (!portalElement)
|
|
86
|
+
return React.createElement(React.Fragment, null);
|
|
85
87
|
var menuStyle = this.state.menuStyle;
|
|
86
|
-
var
|
|
87
|
-
return (reactDom.createPortal((React.createElement("div", { className:
|
|
88
|
+
var _a = this.props, children = _a.children, style = _a.style, _b = _a.className, className = _b === void 0 ? '' : _b, testID = _a.testID;
|
|
89
|
+
return (reactDom.createPortal((React.createElement("div", { className: className, "data-testid": testID },
|
|
88
90
|
React.createElement("div", { className: "sendbird-dropdown__menu-backdrop" }),
|
|
89
|
-
React.createElement("ul", { className: "".concat(className, " sendbird-dropdown__menu"), ref: this.menuRef, style: _tslib.__assign({ display: 'inline-block', position: 'fixed', left: "".concat(Math.round(menuStyle.left), "px"), top: "".concat(Math.round(menuStyle.top), "px") }, style) }, children))),
|
|
91
|
+
React.createElement("ul", { className: "".concat(className, " sendbird-dropdown__menu"), ref: this.menuRef, style: _tslib.__assign({ display: 'inline-block', position: 'fixed', left: "".concat(Math.round(menuStyle.left), "px"), top: "".concat(Math.round(menuStyle.top), "px") }, style), "data-testid": "sendbird-dropdown-menu" }, children))), portalElement));
|
|
90
92
|
};
|
|
91
93
|
return MenuItems;
|
|
92
94
|
}(React.Component));
|
|
93
95
|
|
|
94
96
|
exports.MenuItems = MenuItems;
|
|
95
|
-
//# sourceMappingURL=bundle-
|
|
97
|
+
//# sourceMappingURL=bundle-K2UuTY_r.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-K2UuTY_r.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,16 +6,17 @@ var ui_IconButton = require('../ui/IconButton.js');
|
|
|
6
6
|
var ui_Icon = require('../ui/Icon.js');
|
|
7
7
|
var ui_ContextMenu = require('../ui/ContextMenu.js');
|
|
8
8
|
var ChannelSettings_components_UserListItem = require('../ChannelSettings/components/UserListItem.js');
|
|
9
|
-
var _tslib = require('./bundle-
|
|
9
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
10
10
|
var SendbirdChat = require('@sendbird/chat');
|
|
11
|
-
var ui_Modal = require('./bundle-
|
|
11
|
+
var ui_Modal = require('./bundle-CkSDsWpR.js');
|
|
12
12
|
var ui_UserListItem = require('../ui/UserListItem.js');
|
|
13
|
-
var utils = require('./bundle-
|
|
13
|
+
var utils = require('./bundle-FcnFNV4V.js');
|
|
14
14
|
var ChannelSettings_context = require('../ChannelSettings/context.js');
|
|
15
15
|
var useSendbirdStateContext = require('../useSendbirdStateContext.js');
|
|
16
|
-
var LocalizationContext = require('./bundle-
|
|
17
|
-
var index = require('./bundle-
|
|
18
|
-
require('./bundle-
|
|
16
|
+
var LocalizationContext = require('./bundle-u9XWE6Rm.js');
|
|
17
|
+
var index = require('./bundle-DjFJYSI3.js');
|
|
18
|
+
require('./bundle-DgWaY7S0.js');
|
|
19
|
+
var uuid = require('./bundle-nJ_H0gk1.js');
|
|
19
20
|
|
|
20
21
|
function MembersModal(_a) {
|
|
21
22
|
var _this = this;
|
|
@@ -31,19 +32,17 @@ function MembersModal(_a) {
|
|
|
31
32
|
var memberListQuery = channel === null || channel === void 0 ? void 0 : channel.createMemberListQuery({
|
|
32
33
|
limit: 20,
|
|
33
34
|
});
|
|
34
|
-
memberListQuery.next().then(function (members) {
|
|
35
|
+
memberListQuery === null || memberListQuery === void 0 ? void 0 : memberListQuery.next().then(function (members) {
|
|
35
36
|
setMembers(members);
|
|
36
37
|
});
|
|
37
|
-
setMemberQuery(memberListQuery);
|
|
38
|
+
setMemberQuery(memberListQuery !== null && memberListQuery !== void 0 ? memberListQuery : null);
|
|
38
39
|
}, []);
|
|
39
40
|
return (React.createElement("div", null,
|
|
40
41
|
React.createElement(ui_Modal.Modal, { isFullScreenOnMobile: true, hideFooter: true, onCancel: function () { return onCancel(); }, onSubmit: utils.noop, titleText: stringSet.CHANNEL_SETTING__MEMBERS__SEE_ALL_MEMBERS },
|
|
41
42
|
React.createElement("div", { className: "sendbird-more-members__popup-scroll", onScroll: index.useOnScrollPositionChangeDetector({
|
|
42
43
|
onReachedBottom: function () { return _tslib.__awaiter(_this, void 0, void 0, function () {
|
|
43
|
-
var hasNext;
|
|
44
44
|
return _tslib.__generator(this, function (_a) {
|
|
45
|
-
|
|
46
|
-
if (hasNext) {
|
|
45
|
+
if (memberQuery && memberQuery.hasNext) {
|
|
47
46
|
memberQuery.next().then(function (o) {
|
|
48
47
|
setMembers(_tslib.__spreadArray(_tslib.__spreadArray([], members, true), o, true));
|
|
49
48
|
});
|
|
@@ -59,32 +58,36 @@ function MembersModal(_a) {
|
|
|
59
58
|
} },
|
|
60
59
|
React.createElement(ui_Icon.default, { width: "24px", height: "24px", type: ui_Icon.IconTypes.MORE, fillColor: ui_Icon.IconColors.CONTENT_INVERSE }))); }, menuItems: function (closeDropdown) { return (React.createElement(ui_ContextMenu.MenuItems, { parentContainRef: parentRef, parentRef: actionRef, closeDropdown: closeDropdown, openLeft: true },
|
|
61
60
|
React.createElement(ui_ContextMenu.OperatorMenuItem, { channel: channel, user: member, disable: currentUserId === member.userId, onChange: function (_, member, isOperator) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
var newMembers = _tslib.__spreadArray([], members, true);
|
|
62
|
+
for (var _i = 0, newMembers_1 = newMembers; _i < newMembers_1.length; _i++) {
|
|
63
|
+
var newMember = newMembers_1[_i];
|
|
64
|
+
if (newMember.userId === member.userId) {
|
|
65
|
+
newMember.role = isOperator ? SendbirdChat.Role.OPERATOR : SendbirdChat.Role.NONE;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
}
|
|
68
|
+
setMembers(newMembers);
|
|
68
69
|
closeDropdown();
|
|
69
70
|
}, onError: function () {
|
|
70
71
|
// FIXME: handle error later
|
|
71
72
|
closeDropdown();
|
|
72
|
-
},
|
|
73
|
+
}, testID: "channel_setting_member_context_menu_".concat((member.role !== 'operator') ? 'register_as_operator' : 'unregister_operator') }, member.role !== 'operator'
|
|
73
74
|
? stringSet.CHANNEL_SETTING__MODERATION__REGISTER_AS_OPERATOR
|
|
74
75
|
: stringSet.CHANNEL_SETTING__MODERATION__UNREGISTER_OPERATOR),
|
|
75
76
|
// No muted members in broadcast channel
|
|
76
77
|
!(channel === null || channel === void 0 ? void 0 : channel.isBroadcast) && (React.createElement(ui_ContextMenu.MuteMenuItem, { channel: channel, user: member, onChange: function (_, member, isMuted) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
var newMembers = _tslib.__spreadArray([], members, true);
|
|
79
|
+
for (var _i = 0, newMembers_2 = newMembers; _i < newMembers_2.length; _i++) {
|
|
80
|
+
var newMember = newMembers_2[_i];
|
|
81
|
+
if (newMember.userId === member.userId) {
|
|
82
|
+
newMember.isMuted = isMuted;
|
|
80
83
|
}
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
}
|
|
85
|
+
setMembers(newMembers);
|
|
83
86
|
closeDropdown();
|
|
84
87
|
}, onError: function () {
|
|
85
88
|
// FIXME: handle error later
|
|
86
89
|
closeDropdown();
|
|
87
|
-
},
|
|
90
|
+
}, testID: "channel_setting_member_context_menu_".concat((member.isMuted) ? 'unmute' : 'mute') }, member.isMuted
|
|
88
91
|
? stringSet.CHANNEL_SETTING__MODERATION__UNMUTE
|
|
89
92
|
: stringSet.CHANNEL_SETTING__MODERATION__MUTE)),
|
|
90
93
|
React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
@@ -94,7 +97,7 @@ function MembersModal(_a) {
|
|
|
94
97
|
return userId !== member.userId;
|
|
95
98
|
}));
|
|
96
99
|
});
|
|
97
|
-
},
|
|
100
|
+
}, testID: "channel_setting_member_context_menu_ban" }, stringSet.CHANNEL_SETTING__MODERATION__BAN))); } }))));
|
|
98
101
|
} }));
|
|
99
102
|
})))));
|
|
100
103
|
}
|
|
@@ -136,7 +139,7 @@ function InviteUsers(_a) {
|
|
|
136
139
|
switch (_a.label) {
|
|
137
140
|
case 0:
|
|
138
141
|
userIdsToInvite = Object.keys(selectedUsers);
|
|
139
|
-
if (!(typeof overrideInviteUser === 'function')) return [3 /*break*/, 1];
|
|
142
|
+
if (!(channel && typeof overrideInviteUser === 'function')) return [3 /*break*/, 1];
|
|
140
143
|
overrideInviteUser({ users: userIdsToInvite, onClose: onCancel, channel: channel });
|
|
141
144
|
return [3 /*break*/, 3];
|
|
142
145
|
case 1: return [4 /*yield*/, (channel === null || channel === void 0 ? void 0 : channel.inviteWithUserIds(userIdsToInvite))];
|
|
@@ -162,9 +165,10 @@ function InviteUsers(_a) {
|
|
|
162
165
|
};
|
|
163
166
|
var membersMap = React.useMemo(function () {
|
|
164
167
|
var _a;
|
|
168
|
+
var _b, _c;
|
|
165
169
|
// UIKit policy: In a super or broadcast channel, do not check the members when inviting users.
|
|
166
170
|
if ((channel === null || channel === void 0 ? void 0 : channel.isSuper) || (channel === null || channel === void 0 ? void 0 : channel.isBroadcast))
|
|
167
|
-
return _a = {}, _a[sdk.currentUser.userId] = sdk.currentUser, _a;
|
|
171
|
+
return _a = {}, _a[(_c = (_b = sdk.currentUser) === null || _b === void 0 ? void 0 : _b.userId) !== null && _c !== void 0 ? _c : ''] = sdk.currentUser, _a;
|
|
168
172
|
return channel === null || channel === void 0 ? void 0 : channel.members.reduce(function (acc, cur) {
|
|
169
173
|
acc[cur.userId] = cur;
|
|
170
174
|
return acc;
|
|
@@ -195,7 +199,7 @@ function InviteUsers(_a) {
|
|
|
195
199
|
React.createElement(ui_Modal.Modal, { isFullScreenOnMobile: true, disabled: Object.keys(selectedUsers).length === 0, submitText: stringSet.BUTTON__INVITE, type: ui_Button.ButtonTypes.PRIMARY, onCancel: function () { return onCancel(); }, onSubmit: onInviteUsers, titleText: stringSet.CHANNEL_SETTING__MEMBERS__SELECT_TITLE },
|
|
196
200
|
React.createElement("div", { className: "sendbird-more-members__popup-scroll", onScroll: onScroll },
|
|
197
201
|
React.createElement("div", { className: "sendbird-more-members__popup-scroll__inner" }, users.map(function (user) {
|
|
198
|
-
var isMember = Boolean(membersMap[user.userId]);
|
|
202
|
+
var isMember = Boolean(membersMap ? membersMap[user.userId] : false);
|
|
199
203
|
var isSelected = Boolean(selectedUsers[user.userId]);
|
|
200
204
|
return (React.createElement(ui_UserListItem, { key: user.userId, checkBox: true, checked: isMember || isSelected, disabled: isMember, user: user, onChange: function () { return onSelectUser(user); } }));
|
|
201
205
|
}))))));
|
|
@@ -208,7 +212,7 @@ var MemberList = function () {
|
|
|
208
212
|
var _f = React.useState(false), showAllMembers = _f[0], setShowAllMembers = _f[1];
|
|
209
213
|
var _g = React.useState(false), showInviteUsers = _g[0], setShowInviteUsers = _g[1];
|
|
210
214
|
var state = useSendbirdStateContext.useSendbirdStateContext();
|
|
211
|
-
var
|
|
215
|
+
var _h = ChannelSettings_context.useChannelSettingsContext(), channel = _h.channel, setChannelUpdateId = _h.setChannelUpdateId;
|
|
212
216
|
var stringSet = React.useContext(LocalizationContext.LocalizationContext).stringSet;
|
|
213
217
|
var sdk = (_b = (_a = state === null || state === void 0 ? void 0 : state.stores) === null || _a === void 0 ? void 0 : _a.sdkStore) === null || _b === void 0 ? void 0 : _b.sdk;
|
|
214
218
|
var userId = (_c = state === null || state === void 0 ? void 0 : state.config) === null || _c === void 0 ? void 0 : _c.userId;
|
|
@@ -232,35 +236,39 @@ var MemberList = function () {
|
|
|
232
236
|
memberUserListQuery.next().then(function (members) {
|
|
233
237
|
setMembers(members);
|
|
234
238
|
setHasNext(memberUserListQuery.hasNext);
|
|
239
|
+
setChannelUpdateId === null || setChannelUpdateId === void 0 ? void 0 : setChannelUpdateId(uuid.uuidv4());
|
|
235
240
|
});
|
|
236
241
|
}, [channel]);
|
|
237
242
|
return (React.createElement("div", { className: "sendbird-channel-settings-member-list" },
|
|
238
|
-
members.map(function (member) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}, onError: utils.noop, dataSbId: "channel_setting_member_context_menu_".concat((member.role !== 'operator') ? 'register_as_operator' : 'unregister_operator') }, member.role !== 'operator'
|
|
247
|
-
? stringSet.CHANNEL_SETTING__MODERATION__REGISTER_AS_OPERATOR
|
|
248
|
-
: stringSet.CHANNEL_SETTING__MODERATION__UNREGISTER_OPERATOR),
|
|
249
|
-
// No muted members in broadcast channel
|
|
250
|
-
!(channel === null || channel === void 0 ? void 0 : channel.isBroadcast) && (React.createElement(ui_ContextMenu.MuteMenuItem, { channel: channel, user: member, onChange: function () {
|
|
251
|
-
refreshList();
|
|
252
|
-
closeDropdown();
|
|
253
|
-
}, onError: utils.noop, dataSbId: "channel_setting_member_context_menu_".concat(member.isMuted ? 'unmute' : 'mute') }, member.isMuted
|
|
254
|
-
? stringSet.CHANNEL_SETTING__MODERATION__UNMUTE
|
|
255
|
-
: stringSet.CHANNEL_SETTING__MODERATION__MUTE)),
|
|
256
|
-
React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
257
|
-
channel === null || channel === void 0 ? void 0 : channel.banUser(member, -1, '').then(function () {
|
|
243
|
+
members.map(function (member) {
|
|
244
|
+
var _a;
|
|
245
|
+
return (React.createElement(ChannelSettings_components_UserListItem, { key: member.userId, user: member, currentUser: (_a = sdk === null || sdk === void 0 ? void 0 : sdk.currentUser) === null || _a === void 0 ? void 0 : _a.userId, action: ((channel === null || channel === void 0 ? void 0 : channel.myRole) === 'operator' && userId !== member.userId)
|
|
246
|
+
? function (_a) {
|
|
247
|
+
var actionRef = _a.actionRef, parentRef = _a.parentRef;
|
|
248
|
+
return (React.createElement(ui_ContextMenu.default, { menuTrigger: function (toggleDropdown) { return (React.createElement(ui_IconButton, { className: "sendbird-user-message__more__menu", width: "32px", height: "32px", onClick: toggleDropdown },
|
|
249
|
+
React.createElement(ui_Icon.default, { width: "24px", height: "24px", type: ui_Icon.IconTypes.MORE, fillColor: ui_Icon.IconColors.CONTENT_INVERSE }))); }, menuItems: function (closeDropdown) { return (React.createElement(ui_ContextMenu.MenuItems, { parentContainRef: parentRef, parentRef: actionRef, closeDropdown: closeDropdown, openLeft: true },
|
|
250
|
+
React.createElement(ui_ContextMenu.OperatorMenuItem, { channel: channel, user: member, onChange: function () {
|
|
258
251
|
refreshList();
|
|
259
252
|
closeDropdown();
|
|
260
|
-
})
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
253
|
+
}, onError: utils.noop, testID: "channel_setting_member_context_menu_".concat((member.role !== 'operator') ? 'register_as_operator' : 'unregister_operator') }, member.role !== 'operator'
|
|
254
|
+
? stringSet.CHANNEL_SETTING__MODERATION__REGISTER_AS_OPERATOR
|
|
255
|
+
: stringSet.CHANNEL_SETTING__MODERATION__UNREGISTER_OPERATOR),
|
|
256
|
+
// No muted members in broadcast channel
|
|
257
|
+
!(channel === null || channel === void 0 ? void 0 : channel.isBroadcast) && (React.createElement(ui_ContextMenu.MuteMenuItem, { channel: channel, user: member, onChange: function () {
|
|
258
|
+
refreshList();
|
|
259
|
+
closeDropdown();
|
|
260
|
+
}, onError: utils.noop, testID: "channel_setting_member_context_menu_".concat(member.isMuted ? 'unmute' : 'mute') }, member.isMuted
|
|
261
|
+
? stringSet.CHANNEL_SETTING__MODERATION__UNMUTE
|
|
262
|
+
: stringSet.CHANNEL_SETTING__MODERATION__MUTE)),
|
|
263
|
+
React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
264
|
+
channel === null || channel === void 0 ? void 0 : channel.banUser(member, -1, '').then(function () {
|
|
265
|
+
refreshList();
|
|
266
|
+
closeDropdown();
|
|
267
|
+
});
|
|
268
|
+
}, testID: "channel_setting_member_context_menu_ban" }, stringSet.CHANNEL_SETTING__MODERATION__BAN))); } }));
|
|
269
|
+
}
|
|
270
|
+
: function () { return null; } }));
|
|
271
|
+
}),
|
|
264
272
|
React.createElement("div", { className: "sendbird-channel-settings-accordion__footer" },
|
|
265
273
|
hasNext && (React.createElement(ui_Button.default, { type: ui_Button.ButtonTypes.SECONDARY, size: ui_Button.ButtonSizes.SMALL, onClick: function () { return setShowAllMembers(true); } }, stringSet.CHANNEL_SETTING__MEMBERS__SEE_ALL_MEMBERS)),
|
|
266
274
|
React.createElement(ui_Button.default, { type: ui_Button.ButtonTypes.SECONDARY, size: ui_Button.ButtonSizes.SMALL, onClick: function () { return setShowInviteUsers(true); } }, stringSet.CHANNEL_SETTING__MEMBERS__INVITE_MEMBER)),
|
|
@@ -275,4 +283,4 @@ var MemberList = function () {
|
|
|
275
283
|
};
|
|
276
284
|
|
|
277
285
|
exports.MemberList = MemberList;
|
|
278
|
-
//# sourceMappingURL=bundle-
|
|
286
|
+
//# sourceMappingURL=bundle-LO8nBYJf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-LO8nBYJf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|