@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,30 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var UserProfileContext = require('./bundle-
|
|
5
|
-
var _tslib = require('./bundle-
|
|
6
|
-
var compareIds = require('./bundle-
|
|
7
|
-
var pubSub_topics = require('./bundle-
|
|
4
|
+
var UserProfileContext = require('./bundle-Ch54AIEU.js');
|
|
5
|
+
var _tslib = require('./bundle-BGmEoqIq.js');
|
|
6
|
+
var compareIds = require('./bundle-DHTMMHln.js');
|
|
7
|
+
var pubSub_topics = require('./bundle-C9goSwm_.js');
|
|
8
8
|
var SendbirdChat = require('@sendbird/chat');
|
|
9
9
|
var openChannel = require('@sendbird/chat/openChannel');
|
|
10
|
-
var uuid = require('./bundle-
|
|
11
|
-
var compressImages = require('./bundle-
|
|
10
|
+
var uuid = require('./bundle-nJ_H0gk1.js');
|
|
11
|
+
var compressImages = require('./bundle-JqwDNyBE.js');
|
|
12
12
|
var useSendbirdStateContext = require('../useSendbirdStateContext.js');
|
|
13
|
-
var ui_Modal = require('./bundle-
|
|
14
|
-
var LocalizationContext = require('./bundle-
|
|
15
|
-
var consts = require('./bundle-
|
|
16
|
-
require('./bundle-
|
|
13
|
+
var ui_Modal = require('./bundle-CkSDsWpR.js');
|
|
14
|
+
var LocalizationContext = require('./bundle-u9XWE6Rm.js');
|
|
15
|
+
var consts = require('./bundle-B9KKI197.js');
|
|
16
|
+
require('./bundle-DgWaY7S0.js');
|
|
17
17
|
var ui_Button = require('../ui/Button.js');
|
|
18
18
|
|
|
19
19
|
var shouldFetchMore = function (messageLength, maxMessages) {
|
|
20
20
|
if (typeof maxMessages !== 'number') {
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
&& maxMessages > messageLength) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
return false;
|
|
23
|
+
return maxMessages > messageLength;
|
|
28
24
|
};
|
|
29
25
|
/* eslint-disable default-param-last */
|
|
30
26
|
var scrollIntoLast = function (initialTry, scrollRef) {
|
|
@@ -37,7 +33,9 @@ var scrollIntoLast = function (initialTry, scrollRef) {
|
|
|
37
33
|
try {
|
|
38
34
|
var scrollDOM = (scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current) || document.querySelector('.sendbird-openchannel-conversation-scroll__container__item-container');
|
|
39
35
|
// eslint-disable-next-line no-multi-assign
|
|
40
|
-
scrollDOM
|
|
36
|
+
if (scrollDOM) {
|
|
37
|
+
scrollDOM.scrollTop = scrollDOM.scrollHeight;
|
|
38
|
+
}
|
|
41
39
|
}
|
|
42
40
|
catch (error) {
|
|
43
41
|
setTimeout(function () {
|
|
@@ -62,7 +60,9 @@ var isOperator = function (openChannel, userId) {
|
|
|
62
60
|
return true;
|
|
63
61
|
};
|
|
64
62
|
var isDisabledBecauseFrozen = function (openChannel, userId) {
|
|
65
|
-
|
|
63
|
+
if (!openChannel)
|
|
64
|
+
return false;
|
|
65
|
+
var isFrozen = openChannel.isFrozen;
|
|
66
66
|
return isFrozen && !isOperator(openChannel, userId);
|
|
67
67
|
};
|
|
68
68
|
var isDisabledBecauseMuted = function (mutedParticipantIds, userId) {
|
|
@@ -127,7 +127,7 @@ var ON_META_COUNTERS_DELETED = 'ON_META_COUNTERS_DELETED';
|
|
|
127
127
|
var ON_MENTION_RECEIVED = 'ON_MENTION_RECEIVED';
|
|
128
128
|
|
|
129
129
|
function reducer(state, action) {
|
|
130
|
-
var _a, _b, _c;
|
|
130
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
131
131
|
switch (action.type) {
|
|
132
132
|
case RESET_MESSAGES: {
|
|
133
133
|
return _tslib.__assign(_tslib.__assign({}, state), { allMessages: [] });
|
|
@@ -158,13 +158,13 @@ function reducer(state, action) {
|
|
|
158
158
|
case GET_PREV_MESSAGES_SUCESS:
|
|
159
159
|
case GET_PREV_MESSAGES_FAIL: {
|
|
160
160
|
var isFailed = (action.type === GET_PREV_MESSAGES_FAIL);
|
|
161
|
-
var
|
|
161
|
+
var _j = action.payload, _k = _j.currentOpenChannel, currentOpenChannel = _k === void 0 ? {} : _k, _l = _j.messages, messages = _l === void 0 ? [] : _l, hasMore = _j.hasMore, lastMessageTimestamp = _j.lastMessageTimestamp;
|
|
162
162
|
var actionChannelUrl = currentOpenChannel.url;
|
|
163
|
-
var receivedMessages_1 = isFailed ? [] : messages;
|
|
163
|
+
var receivedMessages_1 = (isFailed ? [] : messages);
|
|
164
164
|
var _hasMore = isFailed ? false : hasMore;
|
|
165
165
|
var _lastMessageTimestamp = isFailed ? 0 : lastMessageTimestamp;
|
|
166
166
|
var stateChannel = state.currentOpenChannel;
|
|
167
|
-
var stateChannelUrl = stateChannel.url;
|
|
167
|
+
var stateChannelUrl = stateChannel === null || stateChannel === void 0 ? void 0 : stateChannel.url;
|
|
168
168
|
if (actionChannelUrl !== stateChannelUrl) {
|
|
169
169
|
return state;
|
|
170
170
|
}
|
|
@@ -175,8 +175,8 @@ function reducer(state, action) {
|
|
|
175
175
|
return _tslib.__assign(_tslib.__assign({}, state), { loading: false, initialized: true, hasMore: _hasMore, lastMessageTimestamp: _lastMessageTimestamp, allMessages: _tslib.__spreadArray(_tslib.__spreadArray([], receivedMessages_1, true), filteredAllMessages, true) });
|
|
176
176
|
}
|
|
177
177
|
case SENDING_MESSAGE_START: {
|
|
178
|
-
var
|
|
179
|
-
if ((channel === null || channel === void 0 ? void 0 : channel.url) !== state.currentOpenChannel.url
|
|
178
|
+
var _m = action.payload, message_1 = _m.message, channel = _m.channel;
|
|
179
|
+
if ((channel === null || channel === void 0 ? void 0 : channel.url) !== ((_c = state.currentOpenChannel) === null || _c === void 0 ? void 0 : _c.url)
|
|
180
180
|
|| state.allMessages.some(function (m) { return m.reqId === message_1.reqId; })
|
|
181
181
|
// Handing failed first than sending start issue
|
|
182
182
|
) {
|
|
@@ -206,7 +206,7 @@ function reducer(state, action) {
|
|
|
206
206
|
}
|
|
207
207
|
case TRIM_MESSAGE_LIST: {
|
|
208
208
|
var allMessages = state.allMessages;
|
|
209
|
-
var messageLimit = (
|
|
209
|
+
var messageLimit = (_d = action.payload) === null || _d === void 0 ? void 0 : _d.messageLimit;
|
|
210
210
|
if (messageLimit
|
|
211
211
|
&& messageLimit > 0
|
|
212
212
|
&& (allMessages === null || allMessages === void 0 ? void 0 : allMessages.length) > messageLimit) {
|
|
@@ -218,7 +218,7 @@ function reducer(state, action) {
|
|
|
218
218
|
case RESENDING_MESSAGE_START: {
|
|
219
219
|
var eventedChannel = action.payload.channel;
|
|
220
220
|
var resentMessage_1 = action.payload.message;
|
|
221
|
-
if (eventedChannel.url !== state.currentOpenChannel.url) {
|
|
221
|
+
if (eventedChannel.url !== ((_e = state.currentOpenChannel) === null || _e === void 0 ? void 0 : _e.url)) {
|
|
222
222
|
return state;
|
|
223
223
|
}
|
|
224
224
|
return _tslib.__assign(_tslib.__assign({}, state), { allMessages: state.allMessages.map(function (m) { return (compareIds.compareIds(m.reqId, resentMessage_1.reqId) ? resentMessage_1 : m); }) });
|
|
@@ -226,7 +226,7 @@ function reducer(state, action) {
|
|
|
226
226
|
case FETCH_PARTICIPANT_LIST: {
|
|
227
227
|
var eventedChannel = action.payload.channel;
|
|
228
228
|
var fetchedParticipantList = action.payload.users;
|
|
229
|
-
if (eventedChannel.url !== state.currentOpenChannel.url) {
|
|
229
|
+
if (eventedChannel.url !== ((_f = state.currentOpenChannel) === null || _f === void 0 ? void 0 : _f.url)) {
|
|
230
230
|
return state;
|
|
231
231
|
}
|
|
232
232
|
return _tslib.__assign(_tslib.__assign({}, state), { participants: _tslib.__spreadArray(_tslib.__spreadArray([], state.participants, true), fetchedParticipantList, true) });
|
|
@@ -234,7 +234,7 @@ function reducer(state, action) {
|
|
|
234
234
|
case FETCH_BANNED_USER_LIST: {
|
|
235
235
|
var eventedChannel = action.payload.channel;
|
|
236
236
|
var fetchedBannedUserList = action.payload.users;
|
|
237
|
-
if ((eventedChannel.url !== state.currentOpenChannel.url)
|
|
237
|
+
if ((eventedChannel.url !== ((_g = state.currentOpenChannel) === null || _g === void 0 ? void 0 : _g.url))
|
|
238
238
|
|| !(fetchedBannedUserList.every(function (user) { return typeof user.userId === 'string'; }))) {
|
|
239
239
|
return state;
|
|
240
240
|
}
|
|
@@ -243,7 +243,7 @@ function reducer(state, action) {
|
|
|
243
243
|
case FETCH_MUTED_USER_LIST: {
|
|
244
244
|
var eventedChannel = action.payload.channel;
|
|
245
245
|
var fetchedMutedUserList = action.payload.users;
|
|
246
|
-
if ((eventedChannel.url !== state.currentOpenChannel.url)
|
|
246
|
+
if ((eventedChannel.url !== ((_h = state.currentOpenChannel) === null || _h === void 0 ? void 0 : _h.url))
|
|
247
247
|
|| !(fetchedMutedUserList.every(function (user) { return typeof user.userId === 'string'; }))) {
|
|
248
248
|
return state;
|
|
249
249
|
}
|
|
@@ -254,7 +254,7 @@ function reducer(state, action) {
|
|
|
254
254
|
var eventedChannel = action.payload.channel;
|
|
255
255
|
var receivedMessage = action.payload.message;
|
|
256
256
|
var currentOpenChannel = state.currentOpenChannel;
|
|
257
|
-
if (!compareIds.compareIds(eventedChannel.url, currentOpenChannel.url)
|
|
257
|
+
if (!compareIds.compareIds(eventedChannel.url, currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.url)
|
|
258
258
|
|| (!(state.allMessages.map(function (message) { return message.messageId; }).indexOf(receivedMessage.messageId) < 0))) {
|
|
259
259
|
return state;
|
|
260
260
|
}
|
|
@@ -771,6 +771,7 @@ function useInitialMessagesFetch(_a, _b) {
|
|
|
771
771
|
};
|
|
772
772
|
if (userFilledMessageListParams) {
|
|
773
773
|
Object.keys(userFilledMessageListParams).forEach(function (key) {
|
|
774
|
+
// @ts-ignore
|
|
774
775
|
messageListParams_1[key] = userFilledMessageListParams[key];
|
|
775
776
|
});
|
|
776
777
|
logger.info('OpenChannel | useInitialMessagesFetch: Used customizedMessageListParams');
|
|
@@ -823,12 +824,13 @@ function useScrollCallback(_a, _b) {
|
|
|
823
824
|
};
|
|
824
825
|
if (userFilledMessageListParams) {
|
|
825
826
|
Object.keys(userFilledMessageListParams).forEach(function (key) {
|
|
827
|
+
// @ts-ignore
|
|
826
828
|
messageListParams_1[key] = userFilledMessageListParams[key];
|
|
827
829
|
});
|
|
828
830
|
logger.info('OpenChannel | useScrollCallback: Used userFilledMessageListParams', userFilledMessageListParams);
|
|
829
831
|
}
|
|
830
832
|
logger.info('OpenChannel | useScrollCallback: Fetching messages', { currentOpenChannel: currentOpenChannel, messageListParams: messageListParams_1 });
|
|
831
|
-
currentOpenChannel.getMessagesByTimestamp(lastMessageTimestamp || new Date().getTime(), messageListParams_1).then(function (messages) {
|
|
833
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.getMessagesByTimestamp(lastMessageTimestamp || new Date().getTime(), messageListParams_1).then(function (messages) {
|
|
832
834
|
logger.info('OpenChannel | useScrollCallback: Fetching messages succeeded', messages);
|
|
833
835
|
var hasMore = (messages && messages.length > 0);
|
|
834
836
|
var lastMessageTimestamp = hasMore ? messages[0].createdAt : null;
|
|
@@ -882,8 +884,9 @@ function useSendMessageCallback(_a, _b) {
|
|
|
882
884
|
var currentOpenChannel = _a.currentOpenChannel, onBeforeSendUserMessage = _a.onBeforeSendUserMessage, messageInputRef = _a.messageInputRef;
|
|
883
885
|
var sdk = _b.sdk, logger = _b.logger, messagesDispatcher = _b.messagesDispatcher, scrollRef = _b.scrollRef;
|
|
884
886
|
return React.useCallback(function () {
|
|
887
|
+
var _a;
|
|
885
888
|
if (sdk) {
|
|
886
|
-
var text = messageInputRef.current.innerText;
|
|
889
|
+
var text = (_a = messageInputRef.current) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
887
890
|
var createParamsDefault = function (txt) {
|
|
888
891
|
var message = txt;
|
|
889
892
|
var params = {
|
|
@@ -895,11 +898,10 @@ function useSendMessageCallback(_a, _b) {
|
|
|
895
898
|
if (createCustomParams) {
|
|
896
899
|
logger.info('OpenChannel | useSendMessageCallback: Creating params using onBeforeSendUserMessage', onBeforeSendUserMessage);
|
|
897
900
|
}
|
|
898
|
-
var params = onBeforeSendUserMessage ? onBeforeSendUserMessage(text) : createParamsDefault(text);
|
|
901
|
+
var params = onBeforeSendUserMessage ? onBeforeSendUserMessage(text !== null && text !== void 0 ? text : '') : createParamsDefault(text !== null && text !== void 0 ? text : '');
|
|
899
902
|
logger.info('OpenChannel | useSendMessageCallback: Sending message has started', params);
|
|
900
|
-
var pendingMsg_1
|
|
901
|
-
currentOpenChannel.sendUserMessage(params)
|
|
902
|
-
.onPending(function (pendingMessage) {
|
|
903
|
+
var pendingMsg_1;
|
|
904
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.sendUserMessage(params).onPending(function (pendingMessage) {
|
|
903
905
|
messagesDispatcher({
|
|
904
906
|
type: SENDING_MESSAGE_START,
|
|
905
907
|
payload: {
|
|
@@ -909,15 +911,13 @@ function useSendMessageCallback(_a, _b) {
|
|
|
909
911
|
});
|
|
910
912
|
pendingMsg_1 = pendingMessage;
|
|
911
913
|
setTimeout(function () { return scrollIntoLast(0, scrollRef); });
|
|
912
|
-
})
|
|
913
|
-
.onSucceeded(function (message) {
|
|
914
|
+
}).onSucceeded(function (message) {
|
|
914
915
|
logger.info('OpenChannel | useSendMessageCallback: Sending message succeeded', message);
|
|
915
916
|
messagesDispatcher({
|
|
916
917
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
917
918
|
payload: message,
|
|
918
919
|
});
|
|
919
|
-
})
|
|
920
|
-
.onFailed(function (error) {
|
|
920
|
+
}).onFailed(function (error) {
|
|
921
921
|
logger.warning('OpenChannel | useSendMessageCallback: Sending message failed', error);
|
|
922
922
|
messagesDispatcher({
|
|
923
923
|
type: SENDING_MESSAGE_FAILED,
|
|
@@ -956,9 +956,9 @@ function useFileUploadCallback(_a, _b) {
|
|
|
956
956
|
if (!sdk) return [3 /*break*/, 2];
|
|
957
957
|
file_1 = Array.isArray(files) ? files[0] : files;
|
|
958
958
|
createCustomParams = onBeforeSendFileMessage && typeof onBeforeSendFileMessage === 'function';
|
|
959
|
-
createParamsDefault = function (
|
|
959
|
+
createParamsDefault = function (file) {
|
|
960
960
|
var params = {};
|
|
961
|
-
params.file =
|
|
961
|
+
params.file = file;
|
|
962
962
|
return params;
|
|
963
963
|
};
|
|
964
964
|
/**
|
|
@@ -993,8 +993,7 @@ function useFileUploadCallback(_a, _b) {
|
|
|
993
993
|
}
|
|
994
994
|
params = onBeforeSendFileMessage ? onBeforeSendFileMessage(compressedFile) : createParamsDefault(compressedFile);
|
|
995
995
|
logger.info('OpenChannel | useFileUploadCallback: Uploading file message start', params);
|
|
996
|
-
currentOpenChannel.sendFileMessage(params)
|
|
997
|
-
.onPending(function (pendingMessage) {
|
|
996
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.sendFileMessage(params).onPending(function (pendingMessage) {
|
|
998
997
|
messagesDispatcher({
|
|
999
998
|
type: SENDING_MESSAGE_START,
|
|
1000
999
|
payload: {
|
|
@@ -1006,15 +1005,13 @@ function useFileUploadCallback(_a, _b) {
|
|
|
1006
1005
|
},
|
|
1007
1006
|
});
|
|
1008
1007
|
setTimeout(function () { return scrollIntoLast(0, scrollRef); });
|
|
1009
|
-
})
|
|
1010
|
-
.onSucceeded(function (message) {
|
|
1008
|
+
}).onSucceeded(function (message) {
|
|
1011
1009
|
logger.info('OpenChannel | useFileUploadCallback: Sending message succeeded', message);
|
|
1012
1010
|
messagesDispatcher({
|
|
1013
1011
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
1014
1012
|
payload: message,
|
|
1015
1013
|
});
|
|
1016
|
-
})
|
|
1017
|
-
.onFailed(function (error, message) {
|
|
1014
|
+
}).onFailed(function (error, message) {
|
|
1018
1015
|
logger.error('OpenChannel | useFileUploadCallback: Sending file message failed', { message: message, error: error });
|
|
1019
1016
|
// @ts-ignore
|
|
1020
1017
|
message.localUrl = URL.createObjectURL(file_1);
|
|
@@ -1037,10 +1034,9 @@ function useUpdateMessageCallback(_a, _b) {
|
|
|
1037
1034
|
var logger = _b.logger, messagesDispatcher = _b.messagesDispatcher;
|
|
1038
1035
|
return React.useCallback(function (messageId, text, callback) {
|
|
1039
1036
|
var createParamsDefault = function (txt) {
|
|
1040
|
-
|
|
1037
|
+
return {
|
|
1041
1038
|
message: txt,
|
|
1042
1039
|
};
|
|
1043
|
-
return params;
|
|
1044
1040
|
};
|
|
1045
1041
|
if (onBeforeSendUserMessage && typeof onBeforeSendUserMessage === 'function') {
|
|
1046
1042
|
logger.info('OpenChannel | useUpdateMessageCallback: Creating params using onBeforeUpdateUserMessage');
|
|
@@ -1085,7 +1081,7 @@ function useDeleteMessageCallback(_a, _b) {
|
|
|
1085
1081
|
return;
|
|
1086
1082
|
}
|
|
1087
1083
|
var messageToDelete = message;
|
|
1088
|
-
currentOpenChannel.deleteMessage(messageToDelete).then(function () {
|
|
1084
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.deleteMessage(messageToDelete).then(function () {
|
|
1089
1085
|
logger.info('OpenChannel | useDeleteMessageCallback: Deleting message on server', sendingStatus);
|
|
1090
1086
|
if (callback) {
|
|
1091
1087
|
callback();
|
|
@@ -1114,9 +1110,7 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1114
1110
|
&& failedMessage.isResendable) {
|
|
1115
1111
|
// userMessage
|
|
1116
1112
|
if (failedMessage.isUserMessage()) {
|
|
1117
|
-
currentOpenChannel
|
|
1118
|
-
.resendMessage(failedMessage)
|
|
1119
|
-
.onPending(function (message) {
|
|
1113
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.resendMessage(failedMessage).onPending(function (message) {
|
|
1120
1114
|
messagesDispatcher({
|
|
1121
1115
|
type: RESENDING_MESSAGE_START,
|
|
1122
1116
|
payload: {
|
|
@@ -1124,15 +1118,13 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1124
1118
|
message: message,
|
|
1125
1119
|
},
|
|
1126
1120
|
});
|
|
1127
|
-
})
|
|
1128
|
-
.onSucceeded(function (message) {
|
|
1121
|
+
}).onSucceeded(function (message) {
|
|
1129
1122
|
logger.info('OpenChannel | useResendMessageCallback: Reseding message succeeded', message);
|
|
1130
1123
|
messagesDispatcher({
|
|
1131
1124
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
1132
1125
|
payload: message,
|
|
1133
1126
|
});
|
|
1134
|
-
})
|
|
1135
|
-
.onFailed(function (error, message) {
|
|
1127
|
+
}).onFailed(function (error, message) {
|
|
1136
1128
|
logger.warning('OpenChannel | useResendMessageCallback: Resending message failed', error);
|
|
1137
1129
|
messagesDispatcher({
|
|
1138
1130
|
type: SENDING_MESSAGE_FAILED,
|
|
@@ -1142,9 +1134,7 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1142
1134
|
}
|
|
1143
1135
|
// fileMessage
|
|
1144
1136
|
if (failedMessage.isFileMessage()) {
|
|
1145
|
-
currentOpenChannel
|
|
1146
|
-
.resendMessage(failedMessage)
|
|
1147
|
-
.onPending(function (message) {
|
|
1137
|
+
currentOpenChannel === null || currentOpenChannel === void 0 ? void 0 : currentOpenChannel.resendMessage(failedMessage).onPending(function (message) {
|
|
1148
1138
|
messagesDispatcher({
|
|
1149
1139
|
type: RESENDING_MESSAGE_START,
|
|
1150
1140
|
payload: {
|
|
@@ -1152,15 +1142,13 @@ function useResendMessageCallback(_a, _b) {
|
|
|
1152
1142
|
message: message,
|
|
1153
1143
|
},
|
|
1154
1144
|
});
|
|
1155
|
-
})
|
|
1156
|
-
.onSucceeded(function (message) {
|
|
1145
|
+
}).onSucceeded(function (message) {
|
|
1157
1146
|
logger.info('OpenChannel | useResendMessageCallback: Resending file message succeeded', message);
|
|
1158
1147
|
messagesDispatcher({
|
|
1159
1148
|
type: SENDING_MESSAGE_SUCCEEDED,
|
|
1160
1149
|
payload: message,
|
|
1161
1150
|
});
|
|
1162
|
-
})
|
|
1163
|
-
.onFailed(function (error, message) {
|
|
1151
|
+
}).onFailed(function (error, message) {
|
|
1164
1152
|
logger.warning('OpenChannel | useResendMessageCallback: Resending file message failed', error);
|
|
1165
1153
|
messagesDispatcher({
|
|
1166
1154
|
type: SENDING_MESSAGE_FAILED,
|
|
@@ -1191,7 +1179,7 @@ function useTrimMessageList(_a, _b) {
|
|
|
1191
1179
|
if (inProgress) {
|
|
1192
1180
|
return;
|
|
1193
1181
|
}
|
|
1194
|
-
if (typeof messagesLength === 'number' && messagesLength > messageLimit) {
|
|
1182
|
+
if (typeof messagesLength === 'number' && typeof messageLimit === 'number' && messagesLength > messageLimit) {
|
|
1195
1183
|
logger.info('Trimming MessageList');
|
|
1196
1184
|
messagesDispatcher({
|
|
1197
1185
|
type: TRIM_MESSAGE_LIST,
|
|
@@ -1203,7 +1191,7 @@ function useTrimMessageList(_a, _b) {
|
|
|
1203
1191
|
}, [messagesLength, messageLimit]);
|
|
1204
1192
|
}
|
|
1205
1193
|
|
|
1206
|
-
var OpenChannelContext = React.createContext(
|
|
1194
|
+
var OpenChannelContext = React.createContext(null);
|
|
1207
1195
|
var OpenChannelProvider = function (props) {
|
|
1208
1196
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1209
1197
|
var channelUrl = props.channelUrl, children = props.children, _h = props.isMessageGroupingEnabled, isMessageGroupingEnabled = _h === void 0 ? true : _h, queries = props.queries, onBeforeSendUserMessage = props.onBeforeSendUserMessage, messageLimit = props.messageLimit, onBeforeSendFileMessage = props.onBeforeSendFileMessage, onChatHeaderActionClick = props.onChatHeaderActionClick, onBackClick = props.onBackClick, disableUserProfile = props.disableUserProfile, renderUserProfile = props.renderUserProfile;
|
|
@@ -1243,7 +1231,7 @@ var OpenChannelProvider = function (props) {
|
|
|
1243
1231
|
useHandleChannelEvents({ currentOpenChannel: currentOpenChannel, checkScrollBottom: checkScrollBottom }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
1244
1232
|
useInitialMessagesFetch({ currentOpenChannel: currentOpenChannel, userFilledMessageListParams: userFilledMessageListParams }, { logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
1245
1233
|
var fetchMore = shouldFetchMore(allMessages === null || allMessages === void 0 ? void 0 : allMessages.length, messageLimit);
|
|
1246
|
-
//
|
|
1234
|
+
// do not fetch more for streaming
|
|
1247
1235
|
var onScroll = useScrollCallback({ currentOpenChannel: currentOpenChannel, lastMessageTimestamp: lastMessageTimestamp, fetchMore: fetchMore }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, hasMore: hasMore, userFilledMessageListParams: userFilledMessageListParams });
|
|
1248
1236
|
var handleSendMessage = useSendMessageCallback({ currentOpenChannel: currentOpenChannel, onBeforeSendUserMessage: onBeforeSendUserMessage, checkScrollBottom: checkScrollBottom, messageInputRef: messageInputRef }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
1249
1237
|
var handleFileUpload = useFileUploadCallback({ currentOpenChannel: currentOpenChannel, onBeforeSendFileMessage: onBeforeSendFileMessage, checkScrollBottom: checkScrollBottom, imageCompression: imageCompression }, { sdk: sdk, logger: logger, messagesDispatcher: messagesDispatcher, scrollRef: conversationScrollRef });
|
|
@@ -1361,9 +1349,14 @@ var OpenChannelProvider = function (props) {
|
|
|
1361
1349
|
} },
|
|
1362
1350
|
React.createElement(UserProfileContext.UserProfileProvider, { isOpenChannel: true, renderUserProfile: props === null || props === void 0 ? void 0 : props.renderUserProfile, disableUserProfile: (_g = props === null || props === void 0 ? void 0 : props.disableUserProfile) !== null && _g !== void 0 ? _g : config === null || config === void 0 ? void 0 : config.disableUserProfile }, children)));
|
|
1363
1351
|
};
|
|
1364
|
-
var useOpenChannelContext = function () {
|
|
1352
|
+
var useOpenChannelContext = function () {
|
|
1353
|
+
var context = React.useContext(OpenChannelContext);
|
|
1354
|
+
if (!context)
|
|
1355
|
+
throw new Error('OpenChannelContext not found. Use within the OpenChannel module');
|
|
1356
|
+
return context;
|
|
1357
|
+
};
|
|
1365
1358
|
|
|
1366
1359
|
exports.OpenChannelProvider = OpenChannelProvider;
|
|
1367
1360
|
exports.kFormatter = kFormatter;
|
|
1368
1361
|
exports.useOpenChannelContext = useOpenChannelContext;
|
|
1369
|
-
//# sourceMappingURL=bundle-
|
|
1362
|
+
//# sourceMappingURL=bundle-Q0M503xu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-Q0M503xu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-Q30PMAyi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -11,7 +11,7 @@ exports.CHANNEL_TYPE = void 0;
|
|
|
11
11
|
CHANNEL_TYPE["BROADCAST"] = "broadcast";
|
|
12
12
|
})(exports.CHANNEL_TYPE || (exports.CHANNEL_TYPE = {}));
|
|
13
13
|
|
|
14
|
-
var CreateChannelContext = React.createContext(
|
|
14
|
+
var CreateChannelContext = React.createContext(null);
|
|
15
15
|
var CreateChannelProvider = function (props) {
|
|
16
16
|
var _a;
|
|
17
17
|
var children = props.children, onCreateChannelClick = props.onCreateChannelClick, onBeforeCreateChannel = props.onBeforeCreateChannel, onChannelCreated = props.onChannelCreated, userListQuery = props.userListQuery, onCreateChannel = props.onCreateChannel, overrideInviteUser = props.overrideInviteUser;
|
|
@@ -20,6 +20,7 @@ var CreateChannelProvider = function (props) {
|
|
|
20
20
|
var _b = React.useState(0), step = _b[0], setStep = _b[1];
|
|
21
21
|
var _c = React.useState(exports.CHANNEL_TYPE.GROUP), type = _c[0], setType = _c[1];
|
|
22
22
|
return (React.createElement(CreateChannelContext.Provider, { value: {
|
|
23
|
+
sdk: store.stores.sdkStore.sdk,
|
|
23
24
|
createChannel: sendbirdSelectors.getCreateGroupChannel(store),
|
|
24
25
|
onCreateChannelClick: onCreateChannelClick,
|
|
25
26
|
onBeforeCreateChannel: onBeforeCreateChannel,
|
|
@@ -33,8 +34,13 @@ var CreateChannelProvider = function (props) {
|
|
|
33
34
|
overrideInviteUser: overrideInviteUser,
|
|
34
35
|
} }, children));
|
|
35
36
|
};
|
|
36
|
-
var useCreateChannelContext = function () {
|
|
37
|
+
var useCreateChannelContext = function () {
|
|
38
|
+
var context = React.useContext(CreateChannelContext);
|
|
39
|
+
if (!context)
|
|
40
|
+
throw new Error('CreateChannelContext not found. Use within the CreateChannel module.');
|
|
41
|
+
return context;
|
|
42
|
+
};
|
|
37
43
|
|
|
38
44
|
exports.CreateChannelProvider = CreateChannelProvider;
|
|
39
45
|
exports.useCreateChannelContext = useCreateChannelContext;
|
|
40
|
-
//# sourceMappingURL=bundle-
|
|
46
|
+
//# sourceMappingURL=bundle-V6Y5v5ft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-V6Y5v5ft.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
|
|
|
5
5
|
var USER_MENTION_PREFIX = '@';
|
|
6
6
|
|
|
@@ -148,4 +148,4 @@ exports.TOKEN_TYPES = TOKEN_TYPES;
|
|
|
148
148
|
exports.USER_MENTION_PREFIX = USER_MENTION_PREFIX;
|
|
149
149
|
exports.getWhiteSpacePreservedText = getWhiteSpacePreservedText;
|
|
150
150
|
exports.tokenizeMessage = tokenizeMessage;
|
|
151
|
-
//# sourceMappingURL=bundle-
|
|
151
|
+
//# sourceMappingURL=bundle-VNK4cKfS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-VNK4cKfS.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var index = require('./bundle-
|
|
5
|
-
var tokenize = require('./bundle-
|
|
4
|
+
var index = require('./bundle-CRjV-DLM.js');
|
|
5
|
+
var tokenize = require('./bundle-VNK4cKfS.js');
|
|
6
6
|
var Message_context = require('../Message/context.js');
|
|
7
7
|
var ui_MentionLabel = require('../ui/MentionLabel.js');
|
|
8
8
|
var ui_LinkLabel = require('../ui/LinkLabel.js');
|
|
9
|
-
var ui_Label = require('./bundle-
|
|
9
|
+
var ui_Label = require('./bundle-DgWaY7S0.js');
|
|
10
10
|
|
|
11
11
|
// this function is used to generate a unique key for token in message
|
|
12
12
|
// it changes with updated time and index
|
|
@@ -24,15 +24,15 @@ function TextFragment(_a) {
|
|
|
24
24
|
return (React.createElement(React.Fragment, null, tokens === null || tokens === void 0 ? void 0 : tokens.map(function (token, idx) {
|
|
25
25
|
var key = keyGenerator(createdAt, updatedAt, idx);
|
|
26
26
|
return index.K(token.type)
|
|
27
|
-
.with(tokenize.TOKEN_TYPES.mention, function () { return (React.createElement("span", { className: "sendbird-word", key: key },
|
|
27
|
+
.with(tokenize.TOKEN_TYPES.mention, function () { return (React.createElement("span", { className: "sendbird-word", key: key, "data-testid": "sendbird-ui-word" },
|
|
28
28
|
React.createElement(ui_MentionLabel, { mentionTemplate: tokenize.USER_MENTION_PREFIX,
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
mentionedUserId: token.userId, mentionedUserNickname: token.value, isByMe: isByMe }))); })
|
|
31
|
-
.with(tokenize.TOKEN_TYPES.url, function () { return (React.createElement("span", { className: "sendbird-word", key: key },
|
|
31
|
+
.with(tokenize.TOKEN_TYPES.url, function () { return (React.createElement("span", { className: "sendbird-word", key: key, "data-testid": "sendbird-ui-word" },
|
|
32
32
|
React.createElement(ui_LinkLabel.default, { className: "sendbird-word__url", src: token.value, type: ui_Label.LabelTypography.BODY_1 }, token.value))); })
|
|
33
33
|
.otherwise(function () { return React.createElement(React.Fragment, { key: key }, tokenize.getWhiteSpacePreservedText(token.value)); });
|
|
34
34
|
})));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
exports.TextFragment = TextFragment;
|
|
38
|
-
//# sourceMappingURL=bundle-
|
|
38
|
+
//# sourceMappingURL=bundle-WLDzr4U5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-WLDzr4U5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-WrRM6A2K.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,6 +5,7 @@ var getOpenChannelAvatar = function (channel) {
|
|
|
5
5
|
if (channel === null || channel === void 0 ? void 0 : channel.coverUrl) {
|
|
6
6
|
return channel.coverUrl;
|
|
7
7
|
}
|
|
8
|
+
return undefined;
|
|
8
9
|
};
|
|
9
10
|
var getChannelAvatarSource = function (channel, currentUserId) {
|
|
10
11
|
if (channel === null || channel === void 0 ? void 0 : channel.coverUrl) {
|
|
@@ -32,4 +33,4 @@ var generateDefaultAvatar = function (channel) {
|
|
|
32
33
|
exports.generateDefaultAvatar = generateDefaultAvatar;
|
|
33
34
|
exports.getChannelAvatarSource = getChannelAvatarSource;
|
|
34
35
|
exports.getOpenChannelAvatar = getOpenChannelAvatar;
|
|
35
|
-
//# sourceMappingURL=bundle-
|
|
36
|
+
//# sourceMappingURL=bundle-XqNA0vsK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-XqNA0vsK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|