@sendbird/uikit-react 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +79 -75
- package/App.js.map +1 -1
- package/CHANGELOG.md +98 -1
- package/Channel/components/ChannelHeader.js +29 -29
- package/Channel/components/ChannelUI.js +67 -63
- package/Channel/components/ChannelUI.js.map +1 -1
- package/Channel/components/FileViewer.js +28 -28
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +64 -58
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageFeedbackModal.js +9 -9
- package/Channel/components/MessageInput.js +41 -41
- package/Channel/components/MessageInputWrapper.js +41 -41
- package/Channel/components/MessageList.js +78 -83
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +27 -27
- package/Channel/components/SuggestedMentionList.js +27 -27
- package/Channel/components/TypingIndicator.js +6 -6
- package/Channel/components/UnreadCount.js +7 -7
- package/Channel/context.js +20 -20
- package/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/Channel/hooks/useInitialMessagesFetch.js +8 -97
- package/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
- package/Channel/utils/compareMessagesForGrouping.js +5 -5
- package/Channel/utils/getMessagePartsInfo.js +6 -6
- package/Channel.js +67 -63
- package/Channel.js.map +1 -1
- package/ChannelList/components/AddChannel.js +20 -20
- package/ChannelList/components/ChannelListHeader.js +8 -8
- package/ChannelList/components/ChannelListUI.js +34 -34
- package/ChannelList/components/ChannelPreview.js +27 -27
- package/ChannelList/components/ChannelPreviewAction.js +11 -11
- package/ChannelList/context.js +10 -10
- package/ChannelList.js +34 -34
- package/ChannelSettings/components/ChannelProfile.js +14 -14
- package/ChannelSettings/components/ChannelSettingsUI.js +49 -54
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +21 -21
- package/ChannelSettings/components/UserListItem.js +13 -13
- package/ChannelSettings/components/UserPanel.js +20 -20
- package/ChannelSettings/context.js +89 -43
- package/ChannelSettings/context.js.map +1 -1
- package/ChannelSettings.js +23 -23
- package/CreateChannel/components/CreateChannelUI.js +16 -16
- package/CreateChannel/components/InviteUsers.js +16 -16
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +16 -16
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +11 -11
- package/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/EditUserProfile.js +12 -12
- package/GroupChannel/components/FileViewer.js +23 -23
- package/GroupChannel/components/FrozenNotification.js +5 -5
- package/GroupChannel/components/GroupChannelHeader.js +22 -22
- package/GroupChannel/components/GroupChannelUI.js +62 -58
- package/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/GroupChannel/components/Message.js +63 -54
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +38 -38
- package/GroupChannel/components/MessageList.js +73 -67
- package/GroupChannel/components/MessageList.js.map +1 -1
- package/GroupChannel/components/RemoveMessageModal.js +22 -22
- package/GroupChannel/components/SuggestedMentionList.js +12 -11
- package/GroupChannel/components/SuggestedMentionList.js.map +1 -1
- package/GroupChannel/components/SuggestedReplies.js +1 -1
- package/GroupChannel/components/TypingIndicator.js +6 -6
- package/GroupChannel/components/UnreadCount.js +7 -7
- package/GroupChannel/context.js +15 -15
- package/GroupChannel.js +62 -58
- package/GroupChannel.js.map +1 -1
- package/GroupChannelList/components/AddGroupChannel.js +18 -18
- package/GroupChannelList/components/GroupChannelListHeader.js +8 -8
- package/GroupChannelList/components/GroupChannelListItem.js +24 -24
- package/GroupChannelList/components/GroupChannelListUI.js +33 -33
- package/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
- package/GroupChannelList/context.js +5 -5
- package/GroupChannelList.js +33 -33
- package/MessageSearch/components/MessageSearchUI.js +14 -14
- package/MessageSearch/context.js +1 -1
- package/MessageSearch.js +14 -14
- package/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/OpenChannel/components/OpenChannelHeader.js +18 -18
- package/OpenChannel/components/OpenChannelInput.js +25 -25
- package/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/OpenChannel/components/OpenChannelMessageList.js +39 -39
- package/OpenChannel/components/OpenChannelUI.js +39 -39
- package/OpenChannel/context.js +17 -17
- package/OpenChannel.js +39 -39
- package/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +14 -14
- package/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +19 -19
- package/SendbirdProvider.js +360 -83
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +42 -42
- package/Thread/components/ParentMessageInfoItem.js +28 -28
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +46 -46
- package/Thread/components/ThreadListItem.js +46 -46
- package/Thread/components/ThreadMessageInput.js +49 -48
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +56 -56
- package/Thread/context.js +9 -9
- package/Thread.js +56 -56
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +10 -10
- package/VoiceRecorder/context.js +10 -10
- package/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/chunks/{bundle-Mj9lwGep.js → bundle--GxLwo7q.js} +4 -4
- package/chunks/{bundle-Mj9lwGep.js.map → bundle--GxLwo7q.js.map} +1 -1
- package/chunks/{bundle-TWhlUSzV.js → bundle--WETJA_c.js} +6 -6
- package/chunks/bundle--WETJA_c.js.map +1 -0
- package/chunks/{bundle-NRvvlX8r.js → bundle-0DTNrbOf.js} +1 -1
- package/chunks/bundle-0DTNrbOf.js.map +1 -0
- package/chunks/{bundle-jnJfrZ-B.js → bundle-0QDb7-Y_.js} +1 -1
- package/chunks/{bundle-jnJfrZ-B.js.map → bundle-0QDb7-Y_.js.map} +1 -1
- package/chunks/{bundle-ThaFnyA3.js → bundle-0Vur_TKy.js} +1 -1
- package/chunks/bundle-0Vur_TKy.js.map +1 -0
- package/chunks/{bundle-Yc91ktUe.js → bundle-2194oWZc.js} +1 -1
- package/chunks/bundle-2194oWZc.js.map +1 -0
- package/chunks/{bundle-hwjo__1w.js → bundle-22Jw6ztq.js} +6 -6
- package/chunks/bundle-22Jw6ztq.js.map +1 -0
- package/chunks/{bundle-FMptIFTe.js → bundle-2AR3a1T9.js} +3 -3
- package/chunks/bundle-2AR3a1T9.js.map +1 -0
- package/chunks/{bundle-5qVfPYXm.js → bundle-39Y3yv8j.js} +1 -1
- package/chunks/bundle-39Y3yv8j.js.map +1 -0
- package/chunks/{bundle-29ZwEQCB.js → bundle-3E-IANjq.js} +1 -1
- package/chunks/bundle-3E-IANjq.js.map +1 -0
- package/chunks/{bundle-mbVaGxy-.js → bundle-4gcxTdvH.js} +1 -1
- package/chunks/bundle-4gcxTdvH.js.map +1 -0
- package/chunks/bundle-6KFri-1A.js +1689 -0
- package/chunks/bundle-6KFri-1A.js.map +1 -0
- package/chunks/{bundle-8msIvFyl.js → bundle-6_zAh1Y3.js} +10 -10
- package/chunks/{bundle-8msIvFyl.js.map → bundle-6_zAh1Y3.js.map} +1 -1
- package/chunks/{bundle-laqNvtHc.js → bundle-6ruK1Zgw.js} +2 -2
- package/chunks/bundle-6ruK1Zgw.js.map +1 -0
- package/chunks/{bundle-ammXYCNc.js → bundle-6yzuMtzi.js} +1 -1
- package/chunks/bundle-6yzuMtzi.js.map +1 -0
- package/chunks/{bundle-B3ETdLpu.js → bundle-6zdlkf2J.js} +1 -1
- package/chunks/bundle-6zdlkf2J.js.map +1 -0
- package/chunks/{bundle-WJ0Rx9Vt.js → bundle-7Mx2MtAL.js} +2 -2
- package/chunks/bundle-7Mx2MtAL.js.map +1 -0
- package/chunks/{bundle--bzcDcV7.js → bundle-85rk09Bx.js} +1 -1
- package/chunks/bundle-85rk09Bx.js.map +1 -0
- package/chunks/{bundle-YK6gNh-t.js → bundle-9C7b_-hs.js} +1 -1
- package/chunks/bundle-9C7b_-hs.js.map +1 -0
- package/chunks/{bundle-mah5uoR7.js → bundle-9QigDxkR.js} +1 -1
- package/chunks/{bundle-mah5uoR7.js.map → bundle-9QigDxkR.js.map} +1 -1
- package/chunks/{bundle-YcH_HSha.js → bundle-9c5vLDe9.js} +7 -3
- package/chunks/bundle-9c5vLDe9.js.map +1 -0
- package/chunks/{bundle-iRd3nywJ.js → bundle-AaDwp4eU.js} +1 -1
- package/chunks/bundle-AaDwp4eU.js.map +1 -0
- package/chunks/{bundle-WJbfhl8B.js → bundle-Aqr_4BjO.js} +6 -6
- package/chunks/bundle-Aqr_4BjO.js.map +1 -0
- package/chunks/{bundle-z995fH4M.js → bundle-BMZkoBS_.js} +1 -1
- package/chunks/bundle-BMZkoBS_.js.map +1 -0
- package/chunks/{bundle-PXF29EwZ.js → bundle-BiPw1Sub.js} +4 -4
- package/chunks/bundle-BiPw1Sub.js.map +1 -0
- package/chunks/{bundle-yMF6_bQS.js → bundle-C-Q3OKQW.js} +1 -1
- package/chunks/bundle-C-Q3OKQW.js.map +1 -0
- package/chunks/{bundle-CBZRgcMe.js → bundle-DHw1C5gJ.js} +1 -1
- package/chunks/bundle-DHw1C5gJ.js.map +1 -0
- package/chunks/{bundle-kPmyq9ap.js → bundle-DbZW44FD.js} +17 -17
- package/chunks/{bundle-kPmyq9ap.js.map → bundle-DbZW44FD.js.map} +1 -1
- package/chunks/{bundle-zr28rXX0.js → bundle-Drmg8_dh.js} +1 -1
- package/chunks/bundle-Drmg8_dh.js.map +1 -0
- package/chunks/{bundle-VTgol5b8.js → bundle-IH2e-Hbm.js} +1 -1
- package/chunks/bundle-IH2e-Hbm.js.map +1 -0
- package/chunks/{bundle-0wv5nxcS.js → bundle-JyjLgYxl.js} +2 -2
- package/chunks/{bundle-0wv5nxcS.js.map → bundle-JyjLgYxl.js.map} +1 -1
- package/chunks/{bundle-s7Jm-nQL.js → bundle-KIf79auh.js} +1 -1
- package/{cjs/chunks/bundle-CQGJhJYV.js.map → chunks/bundle-KIf79auh.js.map} +1 -1
- package/chunks/{bundle-gb0MSpDp.js → bundle-LQlIikHo.js} +11 -11
- package/chunks/{bundle-gb0MSpDp.js.map → bundle-LQlIikHo.js.map} +1 -1
- package/chunks/{bundle-aAXpX7Sl.js → bundle-LTiCF37t.js} +8 -4
- package/chunks/{bundle-aAXpX7Sl.js.map → bundle-LTiCF37t.js.map} +1 -1
- package/chunks/{bundle-sPCqUzdP.js → bundle-LjoHDFFW.js} +1 -1
- package/chunks/bundle-LjoHDFFW.js.map +1 -0
- package/chunks/{bundle-_jLAjElr.js → bundle-MSFA1dPT.js} +10 -10
- package/chunks/{bundle-_jLAjElr.js.map → bundle-MSFA1dPT.js.map} +1 -1
- package/chunks/{bundle-W5PUqymk.js → bundle-NQDEdVJA.js} +3 -3
- package/chunks/{bundle-W5PUqymk.js.map → bundle-NQDEdVJA.js.map} +1 -1
- package/chunks/{bundle-ZOw_iEjI.js → bundle-NntyZyeL.js} +9 -17
- package/{cjs/chunks/bundle-nZsWuDxZ.js.map → chunks/bundle-NntyZyeL.js.map} +1 -1
- package/chunks/{bundle-VeP4ZGTy.js → bundle-NwEKq2eQ.js} +4 -4
- package/chunks/{bundle-VeP4ZGTy.js.map → bundle-NwEKq2eQ.js.map} +1 -1
- package/chunks/{bundle-Eiortw-P.js → bundle-O7xTFAHP.js} +8 -8
- package/chunks/{bundle-Eiortw-P.js.map → bundle-O7xTFAHP.js.map} +1 -1
- package/chunks/{bundle-y9OFIxWO.js → bundle-PTiTVbcu.js} +3 -3
- package/chunks/{bundle-y9OFIxWO.js.map → bundle-PTiTVbcu.js.map} +1 -1
- package/chunks/{bundle-OdLkkyEZ.js → bundle-PYv4lPO3.js} +2 -2
- package/chunks/{bundle-OdLkkyEZ.js.map → bundle-PYv4lPO3.js.map} +1 -1
- package/chunks/{bundle-OGLIDsv0.js → bundle-PdtvfqJT.js} +1 -1
- package/chunks/bundle-PdtvfqJT.js.map +1 -0
- package/chunks/{bundle-S3i59_HU.js → bundle-Sl-oiala.js} +1 -1
- package/chunks/bundle-Sl-oiala.js.map +1 -0
- package/chunks/{bundle-fdlrWGps.js → bundle-Sm0-7tTm.js} +2 -2
- package/chunks/bundle-Sm0-7tTm.js.map +1 -0
- package/chunks/{bundle-aU9DrOs1.js → bundle-Ueye8-sz.js} +4 -4
- package/chunks/bundle-Ueye8-sz.js.map +1 -0
- package/chunks/{bundle-hTd1NizA.js → bundle-X7gl5vNX.js} +1 -1
- package/chunks/bundle-X7gl5vNX.js.map +1 -0
- package/chunks/{bundle-FS7VoABk.js → bundle-XDy3Cf54.js} +4 -1
- package/chunks/{bundle-bXxgZ3h3.js.map → bundle-XDy3Cf54.js.map} +1 -1
- package/chunks/{bundle-HIwSRGfa.js → bundle-XjJUjhN1.js} +3 -3
- package/chunks/bundle-XjJUjhN1.js.map +1 -0
- package/chunks/{bundle-R_8mFuwU.js → bundle-Y3ZVN9yF.js} +1 -1
- package/chunks/bundle-Y3ZVN9yF.js.map +1 -0
- package/chunks/{bundle-7-k9ar1S.js → bundle-_hGurAcC.js} +1 -1
- package/chunks/bundle-_hGurAcC.js.map +1 -0
- package/chunks/{bundle-bXxgZ3h3.js → bundle-a73hFmUC.js} +64 -86
- package/chunks/{bundle-B2cNVPIG.js.map → bundle-a73hFmUC.js.map} +1 -1
- package/chunks/{bundle-JVFq7QiY.js → bundle-b2jLXyrm.js} +3 -3
- package/chunks/bundle-b2jLXyrm.js.map +1 -0
- package/chunks/{bundle-5waczf_5.js → bundle-bg3dRlK7.js} +3 -3
- package/chunks/{bundle-5waczf_5.js.map → bundle-bg3dRlK7.js.map} +1 -1
- package/chunks/{bundle-c-m52z_J.js → bundle-bgVMRm8v.js} +4 -4
- package/chunks/{bundle-c-m52z_J.js.map → bundle-bgVMRm8v.js.map} +1 -1
- package/chunks/{bundle-IGjDRlEq.js → bundle-cilkeUXQ.js} +5 -5
- package/chunks/bundle-cilkeUXQ.js.map +1 -0
- package/chunks/{bundle-7gmFtphc.js → bundle-dUPYt-qi.js} +2 -2
- package/chunks/bundle-dUPYt-qi.js.map +1 -0
- package/chunks/{bundle-H1vLRvsQ.js → bundle-da60Z7l5.js} +5 -5
- package/chunks/bundle-da60Z7l5.js.map +1 -0
- package/chunks/{bundle-lS2bdzD_.js → bundle-eC1SRuX3.js} +2 -2
- package/chunks/{bundle-lS2bdzD_.js.map → bundle-eC1SRuX3.js.map} +1 -1
- package/chunks/{bundle-MVZc-WX7.js → bundle-fgpwMbpA.js} +10 -10
- package/chunks/bundle-fgpwMbpA.js.map +1 -0
- package/chunks/{bundle-ZrmeY8rp.js → bundle-gMH6Z6oi.js} +2 -2
- package/chunks/bundle-gMH6Z6oi.js.map +1 -0
- package/chunks/{bundle-e_hMfMVC.js → bundle-gQwzebOn.js} +3 -3
- package/chunks/bundle-gQwzebOn.js.map +1 -0
- package/chunks/{bundle-PrPMpr0d.js → bundle-hAyHXo9f.js} +4 -4
- package/chunks/bundle-hAyHXo9f.js.map +1 -0
- package/chunks/{bundle-mXxUWu6C.js → bundle-hjFxrcMW.js} +1 -1
- package/chunks/bundle-hjFxrcMW.js.map +1 -0
- package/chunks/{bundle-5cA2H0cQ.js → bundle-jqQY8n8G.js} +1 -1
- package/chunks/bundle-jqQY8n8G.js.map +1 -0
- package/chunks/{bundle-WkSXViPf.js → bundle-jzjtmtps.js} +2 -2
- package/chunks/bundle-jzjtmtps.js.map +1 -0
- package/chunks/{bundle-XC9KBi8e.js → bundle-kLlb2TJ8.js} +3 -3
- package/chunks/{bundle-XC9KBi8e.js.map → bundle-kLlb2TJ8.js.map} +1 -1
- package/chunks/{bundle-zftI06HH.js → bundle-lZq_XDzb.js} +3 -3
- package/chunks/bundle-lZq_XDzb.js.map +1 -0
- package/chunks/{bundle-jIsbkecD.js → bundle-n2BmCgGV.js} +1 -1
- package/chunks/bundle-n2BmCgGV.js.map +1 -0
- package/chunks/bundle-nXMckOlK.js +102 -0
- package/chunks/{bundle-s7Jm-nQL.js.map → bundle-nXMckOlK.js.map} +1 -1
- package/chunks/{bundle-fIf1YwSi.js → bundle-npMrmwG6.js} +1 -1
- package/chunks/bundle-npMrmwG6.js.map +1 -0
- package/chunks/{bundle-InXDhFjw.js → bundle-qouYngqR.js} +10 -7
- package/chunks/bundle-qouYngqR.js.map +1 -0
- package/chunks/{bundle-nuPs9AqY.js → bundle-rjBwVkDc.js} +10 -10
- package/chunks/{bundle-nuPs9AqY.js.map → bundle-rjBwVkDc.js.map} +1 -1
- package/chunks/{bundle-RFQg3r1K.js → bundle-ubVU4exZ.js} +3 -3
- package/chunks/{bundle-RFQg3r1K.js.map → bundle-ubVU4exZ.js.map} +1 -1
- package/chunks/{bundle-dPtRdKjv.js → bundle-v3VMB7al.js} +1 -1
- package/chunks/bundle-v3VMB7al.js.map +1 -0
- package/chunks/{bundle-Cl9FF01U.js → bundle-wWnN6K3w.js} +1 -1
- package/chunks/{bundle-Cl9FF01U.js.map → bundle-wWnN6K3w.js.map} +1 -1
- package/chunks/{bundle-QDjzCG-h.js → bundle-wpc1Fted.js} +3 -3
- package/chunks/bundle-wpc1Fted.js.map +1 -0
- package/chunks/{bundle-42MD-_6f.js → bundle-xC7o7NLR.js} +7 -3
- package/chunks/bundle-xC7o7NLR.js.map +1 -0
- package/chunks/{bundle-GMuoHJM5.js → bundle-y909vBn9.js} +3 -3
- package/chunks/{bundle-GMuoHJM5.js.map → bundle-y909vBn9.js.map} +1 -1
- package/chunks/{bundle-2ZdAkcAR.js → bundle-y9VJsc3H.js} +5 -5
- package/chunks/{bundle-2ZdAkcAR.js.map → bundle-y9VJsc3H.js.map} +1 -1
- package/chunks/{bundle-1Wok5yjx.js → bundle-yIputEl7.js} +4 -4
- package/chunks/bundle-yIputEl7.js.map +1 -0
- package/chunks/{bundle-B2cNVPIG.js → bundle-zy69cX9t.js} +40 -6
- package/chunks/bundle-zy69cX9t.js.map +1 -0
- package/cjs/App.js +79 -75
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +29 -29
- package/cjs/Channel/components/ChannelUI.js +67 -63
- package/cjs/Channel/components/ChannelUI.js.map +1 -1
- package/cjs/Channel/components/FileViewer.js +28 -28
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +64 -58
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageFeedbackModal.js +9 -9
- package/cjs/Channel/components/MessageInput.js +41 -41
- package/cjs/Channel/components/MessageInputWrapper.js +41 -41
- package/cjs/Channel/components/MessageList.js +78 -83
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +27 -27
- package/cjs/Channel/components/SuggestedMentionList.js +27 -27
- package/cjs/Channel/components/TypingIndicator.js +6 -6
- package/cjs/Channel/components/UnreadCount.js +7 -7
- package/cjs/Channel/context.js +27 -27
- package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +10 -95
- package/cjs/Channel/hooks/useInitialMessagesFetch.js.map +1 -1
- package/cjs/Channel/utils/compareMessagesForGrouping.js +5 -5
- package/cjs/Channel/utils/getMessagePartsInfo.js +6 -6
- package/cjs/Channel.js +67 -63
- package/cjs/Channel.js.map +1 -1
- package/cjs/ChannelList/components/AddChannel.js +20 -20
- package/cjs/ChannelList/components/ChannelListHeader.js +8 -8
- package/cjs/ChannelList/components/ChannelListUI.js +34 -34
- package/cjs/ChannelList/components/ChannelPreview.js +27 -27
- package/cjs/ChannelList/components/ChannelPreviewAction.js +11 -11
- package/cjs/ChannelList/context.js +10 -10
- package/cjs/ChannelList.js +34 -34
- package/cjs/ChannelSettings/components/ChannelProfile.js +14 -14
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +49 -54
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +14 -14
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +21 -21
- package/cjs/ChannelSettings/components/UserListItem.js +13 -13
- package/cjs/ChannelSettings/components/UserPanel.js +20 -20
- package/cjs/ChannelSettings/context.js +89 -43
- package/cjs/ChannelSettings/context.js.map +1 -1
- package/cjs/ChannelSettings.js +23 -23
- package/cjs/CreateChannel/components/CreateChannelUI.js +16 -16
- package/cjs/CreateChannel/components/InviteUsers.js +16 -16
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +16 -16
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +11 -11
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +11 -11
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/GroupChannel/components/FileViewer.js +23 -23
- package/cjs/GroupChannel/components/FrozenNotification.js +5 -5
- package/cjs/GroupChannel/components/GroupChannelHeader.js +22 -22
- package/cjs/GroupChannel/components/GroupChannelUI.js +62 -58
- package/cjs/GroupChannel/components/GroupChannelUI.js.map +1 -1
- package/cjs/GroupChannel/components/Message.js +63 -54
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +37 -37
- package/cjs/GroupChannel/components/MessageList.js +73 -67
- package/cjs/GroupChannel/components/MessageList.js.map +1 -1
- package/cjs/GroupChannel/components/RemoveMessageModal.js +22 -22
- package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -11
- package/cjs/GroupChannel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/GroupChannel/components/SuggestedReplies.js +1 -4
- package/cjs/GroupChannel/components/SuggestedReplies.js.map +1 -1
- package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
- package/cjs/GroupChannel/components/UnreadCount.js +7 -7
- package/cjs/GroupChannel/context.js +15 -15
- package/cjs/GroupChannel.js +62 -58
- package/cjs/GroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/AddGroupChannel.js +18 -18
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +8 -8
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +24 -24
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +33 -33
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +11 -11
- package/cjs/GroupChannelList/context.js +5 -5
- package/cjs/GroupChannelList.js +33 -33
- package/cjs/MessageSearch/components/MessageSearchUI.js +14 -14
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch.js +14 -14
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +5 -5
- package/cjs/OpenChannel/components/OpenChannelHeader.js +18 -18
- package/cjs/OpenChannel/components/OpenChannelInput.js +25 -25
- package/cjs/OpenChannel/components/OpenChannelMessage.js +35 -35
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +39 -39
- package/cjs/OpenChannel/components/OpenChannelUI.js +39 -39
- package/cjs/OpenChannel/context.js +17 -17
- package/cjs/OpenChannel.js +39 -39
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +14 -14
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +6 -6
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +14 -14
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +15 -15
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +19 -19
- package/cjs/OpenChannelSettings/components/OperatorUI.js +19 -19
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +17 -17
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +19 -19
- package/cjs/SendbirdProvider.js +360 -83
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +42 -42
- package/cjs/Thread/components/ParentMessageInfoItem.js +28 -28
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +46 -46
- package/cjs/Thread/components/ThreadListItem.js +46 -46
- package/cjs/Thread/components/ThreadMessageInput.js +49 -48
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +56 -56
- package/cjs/Thread/context.js +9 -9
- package/cjs/Thread.js +56 -56
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +10 -10
- package/cjs/VoiceRecorder/context.js +10 -10
- package/cjs/VoiceRecorder/useVoiceRecorder.js +9 -9
- package/cjs/chunks/{bundle-6Ucv_cXK.js → bundle-0FJbDLYK.js} +1 -1
- package/cjs/chunks/bundle-0FJbDLYK.js.map +1 -0
- package/cjs/chunks/{bundle-xn7dyz1d.js → bundle-0Io7rZH6.js} +3 -3
- package/cjs/chunks/bundle-0Io7rZH6.js.map +1 -0
- package/cjs/chunks/{bundle-HmF0Kwa_.js → bundle-0RoC5AKT.js} +4 -4
- package/cjs/chunks/bundle-0RoC5AKT.js.map +1 -0
- package/cjs/chunks/{bundle-6JAbouBn.js → bundle-0SKvTM5F.js} +1 -1
- package/cjs/chunks/bundle-0SKvTM5F.js.map +1 -0
- package/cjs/chunks/{bundle-bc3_Ej1J.js → bundle-0X7q6NtR.js} +5 -5
- package/cjs/chunks/bundle-0X7q6NtR.js.map +1 -0
- package/cjs/chunks/{bundle-2QTmv8Qr.js → bundle-1BET8ZYY.js} +1 -1
- package/cjs/chunks/bundle-1BET8ZYY.js.map +1 -0
- package/cjs/chunks/{bundle-UAlBT2_3.js → bundle-2-AYfw-C.js} +10 -7
- package/cjs/chunks/bundle-2-AYfw-C.js.map +1 -0
- package/cjs/chunks/{bundle-oK2GZVsW.js → bundle-2dTv415Y.js} +3 -3
- package/cjs/chunks/bundle-2dTv415Y.js.map +1 -0
- package/cjs/chunks/{bundle-hyQekvQu.js → bundle-3uSGqV8n.js} +1 -1
- package/cjs/chunks/bundle-3uSGqV8n.js.map +1 -0
- package/cjs/chunks/{bundle-vDdmiX8M.js → bundle-4jhVxof3.js} +10 -10
- package/cjs/chunks/{bundle-vDdmiX8M.js.map → bundle-4jhVxof3.js.map} +1 -1
- package/cjs/chunks/{bundle-B3jNx9nI.js → bundle-5_1l38DN.js} +2 -2
- package/cjs/chunks/bundle-5_1l38DN.js.map +1 -0
- package/cjs/chunks/{bundle-Y6oHbdhN.js → bundle-5i9-ntZ5.js} +7 -3
- package/cjs/chunks/bundle-5i9-ntZ5.js.map +1 -0
- package/cjs/chunks/{bundle-fWvwYg6I.js → bundle-5zZ25-q8.js} +1 -1
- package/cjs/chunks/bundle-5zZ25-q8.js.map +1 -0
- package/cjs/chunks/{bundle-aLKN26Lx.js → bundle-8JrMDacP.js} +3 -3
- package/cjs/chunks/bundle-8JrMDacP.js.map +1 -0
- package/cjs/chunks/{bundle-l9rAnwws.js → bundle-9l41IWgC.js} +1 -1
- package/cjs/chunks/bundle-9l41IWgC.js.map +1 -0
- package/cjs/chunks/bundle-9oVHmbyo.js +106 -0
- package/cjs/chunks/bundle-9oVHmbyo.js.map +1 -0
- package/cjs/chunks/{bundle-ZIC4K68f.js → bundle-A45IMFSi.js} +1 -1
- package/cjs/chunks/bundle-A45IMFSi.js.map +1 -0
- package/cjs/chunks/{bundle-nZsWuDxZ.js → bundle-AjEjAHAy.js} +4 -4
- package/{chunks/bundle-ZOw_iEjI.js.map → cjs/chunks/bundle-AjEjAHAy.js.map} +1 -1
- package/cjs/chunks/{bundle-XpwayjqP.js → bundle-BdWL3kB4.js} +1 -1
- package/cjs/chunks/bundle-BdWL3kB4.js.map +1 -0
- package/cjs/chunks/{bundle-YTPSevv5.js → bundle-DKAurwqI.js} +4 -4
- package/cjs/chunks/{bundle-YTPSevv5.js.map → bundle-DKAurwqI.js.map} +1 -1
- package/cjs/chunks/{bundle-POnqXMLV.js → bundle-DsdDiOQc.js} +2 -2
- package/cjs/chunks/{bundle-POnqXMLV.js.map → bundle-DsdDiOQc.js.map} +1 -1
- package/cjs/chunks/{bundle-v-P7N839.js → bundle-EIBGC5ds.js} +3 -3
- package/cjs/chunks/bundle-EIBGC5ds.js.map +1 -0
- package/cjs/chunks/{bundle-j2b4bxU3.js → bundle-EPgJPeP5.js} +2 -2
- package/cjs/chunks/bundle-EPgJPeP5.js.map +1 -0
- package/cjs/chunks/{bundle-gKpM7okd.js → bundle-FYiANS7I.js} +1 -1
- package/cjs/chunks/bundle-FYiANS7I.js.map +1 -0
- package/cjs/chunks/{bundle-JutD2hKN.js → bundle-Gw-7KmmG.js} +8 -3
- package/cjs/chunks/{bundle-JutD2hKN.js.map → bundle-Gw-7KmmG.js.map} +1 -1
- package/cjs/chunks/{bundle-7S9cQ7Sp.js → bundle-HdAqAQmQ.js} +2 -2
- package/cjs/chunks/bundle-HdAqAQmQ.js.map +1 -0
- package/cjs/chunks/{bundle-fE1EYcSx.js → bundle-JuSRYTO4.js} +1 -1
- package/cjs/chunks/bundle-JuSRYTO4.js.map +1 -0
- package/cjs/chunks/{bundle-hCnt57_4.js → bundle-KEItFRlq.js} +8 -8
- package/cjs/chunks/{bundle-hCnt57_4.js.map → bundle-KEItFRlq.js.map} +1 -1
- package/cjs/chunks/{bundle-JllM1Vt3.js → bundle-M7S2ba5_.js} +10 -10
- package/cjs/chunks/bundle-M7S2ba5_.js.map +1 -0
- package/cjs/chunks/{bundle-lqO2HtRG.js → bundle-Myh0hGtf.js} +6 -6
- package/cjs/chunks/bundle-Myh0hGtf.js.map +1 -0
- package/cjs/chunks/{bundle-FnDHXB2d.js → bundle-NSfuzonk.js} +10 -20
- package/cjs/chunks/{bundle-FnDHXB2d.js.map → bundle-NSfuzonk.js.map} +1 -1
- package/cjs/chunks/{bundle-j5InjWst.js → bundle-OypRlCX4.js} +1 -1
- package/cjs/chunks/bundle-OypRlCX4.js.map +1 -0
- package/cjs/chunks/{bundle-d1u7R12O.js → bundle-PXqEjKnZ.js} +1 -1
- package/cjs/chunks/bundle-PXqEjKnZ.js.map +1 -0
- package/cjs/chunks/{bundle-Ulv5XabQ.js → bundle-QvRptclZ.js} +2 -2
- package/cjs/chunks/bundle-QvRptclZ.js.map +1 -0
- package/cjs/chunks/{bundle-rGIlrKQw.js → bundle-RK7_ZCh1.js} +1 -1
- package/cjs/chunks/bundle-RK7_ZCh1.js.map +1 -0
- package/cjs/chunks/{bundle-jjYDBqPB.js → bundle-RceCnDam.js} +4 -4
- package/cjs/chunks/{bundle-jjYDBqPB.js.map → bundle-RceCnDam.js.map} +1 -1
- package/cjs/chunks/{bundle-19RYdLTI.js → bundle-RngV4SHM.js} +3 -3
- package/cjs/chunks/{bundle-19RYdLTI.js.map → bundle-RngV4SHM.js.map} +1 -1
- package/cjs/chunks/{bundle-LZMOuc2b.js → bundle-SWOq3kxG.js} +1 -1
- package/cjs/chunks/{bundle-LZMOuc2b.js.map → bundle-SWOq3kxG.js.map} +1 -1
- package/cjs/chunks/{bundle-g3vASPp8.js → bundle-Sk9Qqzuj.js} +2 -2
- package/cjs/chunks/bundle-Sk9Qqzuj.js.map +1 -0
- package/cjs/chunks/{bundle-lZm_4ToV.js → bundle-Sxjv83JD.js} +3 -3
- package/cjs/chunks/bundle-Sxjv83JD.js.map +1 -0
- package/cjs/chunks/{bundle-eg639gtv.js → bundle-UOOPIGjG.js} +1 -1
- package/cjs/chunks/bundle-UOOPIGjG.js.map +1 -0
- package/cjs/chunks/{bundle-65WXfVqV.js → bundle-VBjH2Gyx.js} +2 -2
- package/cjs/chunks/{bundle-65WXfVqV.js.map → bundle-VBjH2Gyx.js.map} +1 -1
- package/cjs/chunks/{bundle-D_9GebqZ.js → bundle-Vsy2G1YZ.js} +1 -1
- package/cjs/chunks/bundle-Vsy2G1YZ.js.map +1 -0
- package/cjs/chunks/{bundle-w1sEa7O0.js → bundle-W4lK9aC2.js} +1 -1
- package/cjs/chunks/bundle-W4lK9aC2.js.map +1 -0
- package/cjs/chunks/{bundle-CQGJhJYV.js → bundle-WALfBkn-.js} +2 -2
- package/cjs/chunks/bundle-WALfBkn-.js.map +1 -0
- package/cjs/chunks/{bundle-Z9uYBAUt.js → bundle-ZFhZ9UyN.js} +3 -3
- package/cjs/chunks/bundle-ZFhZ9UyN.js.map +1 -0
- package/cjs/chunks/{bundle-yyOx7Krk.js → bundle-_1OqWxYy.js} +4 -4
- package/cjs/chunks/bundle-_1OqWxYy.js.map +1 -0
- package/cjs/chunks/{bundle-8sRp5L6V.js → bundle-_Hwf9prH.js} +1 -1
- package/cjs/chunks/bundle-_Hwf9prH.js.map +1 -0
- package/cjs/chunks/{bundle-M_3VvtOr.js → bundle-aCCpTlSC.js} +10 -10
- package/cjs/chunks/bundle-aCCpTlSC.js.map +1 -0
- package/cjs/chunks/{bundle-RHwdkbbz.js → bundle-aggH3_MP.js} +1 -1
- package/cjs/chunks/bundle-aggH3_MP.js.map +1 -0
- package/cjs/chunks/{bundle-6D2HDCsi.js → bundle-b3QK79hX.js} +4 -4
- package/cjs/chunks/bundle-b3QK79hX.js.map +1 -0
- package/cjs/chunks/{bundle-bSoYSPA5.js → bundle-bOij3dXU.js} +1 -1
- package/cjs/chunks/bundle-bOij3dXU.js.map +1 -0
- package/cjs/chunks/bundle-csbD2FCX.js +1692 -0
- package/cjs/chunks/bundle-csbD2FCX.js.map +1 -0
- package/cjs/chunks/{bundle-WQOvDsOP.js → bundle-ctM9C4Ol.js} +1 -1
- package/cjs/chunks/bundle-ctM9C4Ol.js.map +1 -0
- package/cjs/chunks/{bundle-ivu3uDBu.js → bundle-eVmdXbX4.js} +3 -3
- package/cjs/chunks/bundle-eVmdXbX4.js.map +1 -0
- package/cjs/chunks/{bundle-L3zb8Cu_.js → bundle-gaTYF6lz.js} +3 -3
- package/cjs/chunks/bundle-gaTYF6lz.js.map +1 -0
- package/cjs/chunks/{bundle-yzN-MQRB.js → bundle-hfoBchbF.js} +1 -1
- package/cjs/chunks/bundle-hfoBchbF.js.map +1 -0
- package/cjs/chunks/{bundle-uQ09rpIX.js → bundle-infYodZG.js} +10 -10
- package/{chunks/bundle-FS7VoABk.js.map → cjs/chunks/bundle-infYodZG.js.map} +1 -1
- package/cjs/chunks/{bundle-OayM7MBH.js → bundle-lREr-1Hy.js} +68 -90
- package/cjs/chunks/bundle-lREr-1Hy.js.map +1 -0
- package/cjs/chunks/{bundle-8gAAE7I3.js → bundle-nNgkSlET.js} +1 -1
- package/cjs/chunks/bundle-nNgkSlET.js.map +1 -0
- package/cjs/chunks/{bundle-lVg2xbe0.js → bundle-nR3C0oIw.js} +2 -2
- package/cjs/chunks/bundle-nR3C0oIw.js.map +1 -0
- package/cjs/chunks/{bundle-v6rdnF1q.js → bundle-nTv4XhjL.js} +1 -1
- package/cjs/chunks/bundle-nTv4XhjL.js.map +1 -0
- package/cjs/chunks/{bundle-O3DZBV2p.js → bundle-nvUhM4Jt.js} +1 -1
- package/cjs/chunks/bundle-nvUhM4Jt.js.map +1 -0
- package/cjs/chunks/{bundle-hdKCnGri.js → bundle-pc4CZYj5.js} +3 -3
- package/cjs/chunks/{bundle-hdKCnGri.js.map → bundle-pc4CZYj5.js.map} +1 -1
- package/cjs/chunks/{bundle-_N5y1qEg.js → bundle-qD5w2tyR.js} +8 -2
- package/cjs/chunks/bundle-qD5w2tyR.js.map +1 -0
- package/cjs/chunks/{bundle-HQUEIVST.js → bundle-qYN98FNj.js} +1 -1
- package/cjs/chunks/{bundle-HQUEIVST.js.map → bundle-qYN98FNj.js.map} +1 -1
- package/cjs/chunks/{bundle-qlTSWGy9.js → bundle-rdAhtJum.js} +40 -5
- package/cjs/chunks/bundle-rdAhtJum.js.map +1 -0
- package/cjs/chunks/{bundle-tCIy9Pcv.js → bundle-sYYqa58y.js} +17 -17
- package/cjs/chunks/{bundle-tCIy9Pcv.js.map → bundle-sYYqa58y.js.map} +1 -1
- package/cjs/chunks/{bundle-OLmZ2fUV.js → bundle-tBuSzzHI.js} +2 -2
- package/{chunks/bundle-InXDhFjw.js.map → cjs/chunks/bundle-tBuSzzHI.js.map} +1 -1
- package/cjs/chunks/{bundle-GYpm7RtY.js → bundle-tMR11mG8.js} +1 -1
- package/cjs/chunks/bundle-tMR11mG8.js.map +1 -0
- package/cjs/chunks/{bundle-G4olPx81.js → bundle-unTPt0Np.js} +1 -1
- package/cjs/chunks/bundle-unTPt0Np.js.map +1 -0
- package/cjs/chunks/{bundle-EmZI0-j-.js → bundle-uyvcZB8I.js} +1 -1
- package/cjs/chunks/bundle-uyvcZB8I.js.map +1 -0
- package/cjs/chunks/{bundle-y0sGF4RD.js → bundle-vj7Nj0B0.js} +6 -6
- package/cjs/chunks/bundle-vj7Nj0B0.js.map +1 -0
- package/cjs/chunks/{bundle-THKiylQP.js → bundle-wbFvXCMi.js} +5 -5
- package/cjs/chunks/bundle-wbFvXCMi.js.map +1 -0
- package/cjs/chunks/{bundle-dibCo5Mv.js → bundle-xNnngzve.js} +5 -5
- package/cjs/chunks/bundle-xNnngzve.js.map +1 -0
- package/cjs/chunks/{bundle-jI4fSOuZ.js → bundle-xbuS1NJI.js} +1 -1
- package/cjs/chunks/bundle-xbuS1NJI.js.map +1 -0
- package/cjs/chunks/{bundle-apUHizVu.js → bundle-xe1wuNko.js} +3 -3
- package/cjs/chunks/bundle-xe1wuNko.js.map +1 -0
- package/cjs/chunks/{bundle-him8B6lQ.js → bundle-xhP3_T1A.js} +6 -6
- package/cjs/chunks/bundle-xhP3_T1A.js.map +1 -0
- package/cjs/chunks/{bundle-do_4Y2S_.js → bundle-xtUT3duD.js} +4 -1
- package/cjs/chunks/bundle-xtUT3duD.js.map +1 -0
- package/cjs/chunks/{bundle-XSrDHwxE.js → bundle-yQR_oAnV.js} +1 -1
- package/cjs/chunks/bundle-yQR_oAnV.js.map +1 -0
- package/cjs/chunks/{bundle-0Ju2qhN6.js → bundle-zhrtSnPT.js} +11 -11
- package/cjs/chunks/{bundle-0Ju2qhN6.js.map → bundle-zhrtSnPT.js.map} +1 -1
- package/cjs/chunks/{bundle-pNPHZO_X.js → bundle-zkMvSSgq.js} +5 -5
- package/cjs/chunks/bundle-zkMvSSgq.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +83 -79
- package/cjs/index.js.map +1 -1
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +2 -2
- package/cjs/ui/Accordion.js +3 -3
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +3 -3
- package/cjs/ui/Avatar.js +4 -4
- package/cjs/ui/Badge.js +5 -5
- package/cjs/ui/BottomSheet.js +9 -9
- package/cjs/ui/Button.js +3 -3
- package/cjs/ui/ChannelAvatar.js +5 -5
- package/cjs/ui/ConnectionStatus.js +6 -6
- package/cjs/ui/ContextMenu.js +6 -6
- package/cjs/ui/DateSeparator.js +4 -4
- package/cjs/ui/EmojiReactions.js +16 -16
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +34 -0
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -0
- package/cjs/ui/FileMessageItemBody.js +8 -8
- package/cjs/ui/FileViewer.js +15 -15
- package/cjs/ui/Icon.js +4 -2
- package/cjs/ui/Icon.js.map +1 -1
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +10 -15
- 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 +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +29 -0
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js.map +1 -0
- package/cjs/ui/MentionLabel.js +13 -13
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +93 -50
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -5
- package/cjs/ui/MessageInput/hooks/usePaste.js.map +1 -1
- package/cjs/ui/MessageInput.js +32 -68
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +10 -10
- package/cjs/ui/MessageItemReactionMenu.js +9 -9
- package/cjs/ui/MessageSearchFileItem.js +14 -14
- package/cjs/ui/MessageSearchItem.js +11 -11
- package/cjs/ui/MessageStatus.js +12 -12
- package/cjs/ui/MessageTemplate.js +12 -0
- package/cjs/ui/MessageTemplate.js.map +1 -0
- package/cjs/ui/MobileFeedbackMenu.js +9 -9
- package/cjs/ui/Modal.js +8 -8
- package/cjs/ui/MutedAvatarOverlay.js +2 -2
- package/cjs/ui/OGMessageItemBody.js +16 -16
- 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 +18 -18
- package/cjs/ui/OpenchannelOGMessage.js +20 -20
- package/cjs/ui/OpenchannelThumbnailMessage.js +17 -17
- package/cjs/ui/OpenchannelUserMessage.js +18 -18
- package/cjs/ui/PlaceHolder.js +6 -6
- package/cjs/ui/PlaybackTime.js +3 -3
- package/cjs/ui/QuoteMessage.js +9 -9
- package/cjs/ui/QuoteMessageInput.js +9 -9
- package/cjs/ui/ReactionBadge.js +3 -3
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +2 -2
- package/cjs/ui/TemplateMessageItemBody.js +245 -0
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -0
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +16 -16
- package/cjs/ui/ThreadReplies.js +8 -8
- package/cjs/ui/ThumbnailMessageItemBody.js +7 -7
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +3 -3
- package/cjs/ui/TooltipWrapper.js +1 -1
- package/cjs/ui/TypingIndicatorBubble.js +4 -4
- package/cjs/ui/UnknownMessageItemBody.js +7 -7
- package/cjs/ui/UserListItem.js +13 -13
- package/cjs/ui/UserProfile.js +10 -10
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +10 -10
- package/cjs/ui/Word.js +13 -13
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +3 -3
- package/cjs/withSendbird.js +1 -1
- package/dist/index.css +207 -62
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +83 -79
- package/index.js.map +1 -1
- package/package.json +41 -4
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +2 -2
- package/types/hooks/useAsyncRequest.d.ts +20 -0
- package/types/lib/dux/appInfo/actionTypes.d.ts +25 -0
- package/types/lib/dux/appInfo/initialState.d.ts +22 -0
- package/types/lib/dux/appInfo/reducers.d.ts +3 -0
- package/types/lib/dux/appInfo/utils.d.ts +7 -0
- package/types/lib/hooks/useConnect/__test__/data.mocks.d.ts +3 -2
- package/types/lib/hooks/useConnect/connect.d.ts +1 -1
- package/types/lib/hooks/useConnect/setupConnection.d.ts +1 -1
- package/types/lib/hooks/useConnect/types.d.ts +6 -3
- package/types/lib/hooks/useMessageTemplateUtils.d.ts +18 -0
- package/types/lib/types.d.ts +14 -0
- package/types/modules/Channel/components/ChannelUI/index.d.ts +4 -0
- package/types/modules/Channel/components/MessageInputWrapper/index.d.ts +4 -3
- package/types/modules/Channel/components/MessageList/index.d.ts +8 -2
- package/types/modules/Channel/context/ChannelProvider.d.ts +7 -15
- package/types/modules/Channel/context/const.d.ts +1 -7
- package/types/modules/Channel/context/dux/actionTypes.d.ts +6 -7
- package/types/modules/ChannelSettings/components/ChannelSettingsUI/index.d.ts +2 -1
- package/types/modules/ChannelSettings/context/ChannelSettingsProvider.d.ts +5 -5
- package/types/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.d.ts +47 -0
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +23 -1
- package/types/modules/GroupChannel/components/MessageInputWrapper/index.d.ts +5 -3
- package/types/modules/GroupChannel/components/MessageList/index.d.ts +30 -9
- package/types/modules/GroupChannel/components/MessageTemplateWrapper/index.d.ts +8 -0
- package/types/modules/GroupChannel/components/SuggestedReplies/index.d.ts +4 -2
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +1 -1
- package/types/types.d.ts +1 -0
- package/types/ui/Icon/colors.d.ts +2 -0
- package/types/ui/Icon/index.d.ts +1 -0
- package/types/ui/Label/index.d.ts +2 -0
- package/types/ui/Label/stringSet.d.ts +3 -0
- package/types/ui/Label/types.d.ts +2 -0
- package/types/ui/Label/utils.d.ts +1 -1
- package/types/ui/LinkLabel/index.d.ts +2 -0
- package/types/ui/MessageContent/index.d.ts +3 -1
- package/types/ui/MessageInput/index.d.ts +1 -0
- package/types/ui/MessageInput/utils.d.ts +4 -0
- package/types/ui/MessageTemplate/index.d.ts +8 -0
- package/types/ui/TemplateMessageItemBody/FallbackTemplateMessageItemBody.d.ts +9 -0
- package/types/ui/TemplateMessageItemBody/LoadingTemplateMessageItemBody.d.ts +7 -0
- package/types/ui/TemplateMessageItemBody/index.d.ts +12 -0
- package/types/ui/TemplateMessageItemBody/types.d.ts +96 -0
- package/types/ui/TemplateMessageItemBody/utils/flattenObject.d.ts +7 -0
- package/types/ui/TemplateMessageItemBody/utils/mapData.d.ts +7 -0
- package/types/ui/TemplateMessageItemBody/utils/restoreNumbersFromMessageTemplateObject.d.ts +1 -0
- package/types/ui/TemplateMessageItemBody/utils/selectColorVariablesByTheme.d.ts +6 -0
- package/types/utils/consts.d.ts +2 -0
- package/types/utils/index.d.ts +1 -0
- package/ui/Accordion.js +3 -3
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +3 -3
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +5 -5
- package/ui/BottomSheet.js +9 -9
- package/ui/Button.js +3 -3
- package/ui/ChannelAvatar.js +5 -5
- package/ui/ConnectionStatus.js +6 -6
- package/ui/ContextMenu.js +6 -6
- package/ui/DateSeparator.js +4 -4
- package/ui/EmojiReactions.js +16 -16
- package/ui/FallbackTemplateMessageItemBody.tsx.js +29 -0
- package/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -0
- package/ui/FileMessageItemBody.js +8 -8
- package/ui/FileViewer.js +15 -15
- package/ui/Icon.js +4 -2
- package/ui/Icon.js.map +1 -1
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +10 -15
- package/ui/ImageRenderer.js.map +1 -1
- package/ui/Input.js +3 -3
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +3 -3
- package/ui/Loader.js +2 -2
- package/ui/LoadingTemplateMessageItemBody.tsx.js +24 -0
- package/ui/LoadingTemplateMessageItemBody.tsx.js.map +1 -0
- package/ui/MentionLabel.js +13 -13
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +93 -50
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -5
- package/ui/MessageInput/hooks/usePaste.js.map +1 -1
- package/ui/MessageInput.js +32 -68
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +10 -10
- package/ui/MessageItemReactionMenu.js +9 -9
- package/ui/MessageSearchFileItem.js +14 -14
- package/ui/MessageSearchItem.js +11 -11
- package/ui/MessageStatus.js +12 -12
- package/ui/MessageTemplate.js +3 -0
- package/ui/MessageTemplate.js.map +1 -0
- package/ui/MobileFeedbackMenu.js +9 -9
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +16 -16
- package/ui/OpenChannelAdminMessage.js +3 -3
- package/ui/OpenChannelAvatar.js +8 -8
- package/ui/OpenchannelConversationHeader.js +8 -8
- package/ui/OpenchannelFileMessage.js +18 -18
- package/ui/OpenchannelOGMessage.js +20 -20
- package/ui/OpenchannelThumbnailMessage.js +17 -17
- package/ui/OpenchannelUserMessage.js +18 -18
- package/ui/PlaceHolder.js +6 -6
- package/ui/PlaybackTime.js +3 -3
- package/ui/QuoteMessage.js +9 -9
- package/ui/QuoteMessageInput.js +9 -9
- package/ui/ReactionBadge.js +3 -3
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +2 -2
- package/ui/TemplateMessageItemBody.js +240 -0
- package/ui/TemplateMessageItemBody.js.map +1 -0
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +16 -16
- package/ui/ThreadReplies.js +8 -8
- package/ui/ThumbnailMessageItemBody.js +7 -7
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +3 -3
- package/ui/TooltipWrapper.js +1 -1
- package/ui/TypingIndicatorBubble.js +4 -4
- package/ui/UnknownMessageItemBody.js +7 -7
- package/ui/UserListItem.js +13 -13
- package/ui/UserProfile.js +10 -10
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +10 -10
- package/ui/Word.js +13 -13
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +3 -3
- package/withSendbird.js +1 -1
- package/chunks/bundle--bzcDcV7.js.map +0 -1
- package/chunks/bundle-1Wok5yjx.js.map +0 -1
- package/chunks/bundle-29ZwEQCB.js.map +0 -1
- package/chunks/bundle-42MD-_6f.js.map +0 -1
- package/chunks/bundle-5cA2H0cQ.js.map +0 -1
- package/chunks/bundle-5qVfPYXm.js.map +0 -1
- package/chunks/bundle-7-k9ar1S.js.map +0 -1
- package/chunks/bundle-7gmFtphc.js.map +0 -1
- package/chunks/bundle-B3ETdLpu.js.map +0 -1
- package/chunks/bundle-CBZRgcMe.js.map +0 -1
- package/chunks/bundle-FMptIFTe.js.map +0 -1
- package/chunks/bundle-H1vLRvsQ.js.map +0 -1
- package/chunks/bundle-HIwSRGfa.js.map +0 -1
- package/chunks/bundle-IGjDRlEq.js.map +0 -1
- package/chunks/bundle-JVFq7QiY.js.map +0 -1
- package/chunks/bundle-MVZc-WX7.js.map +0 -1
- package/chunks/bundle-NRvvlX8r.js.map +0 -1
- package/chunks/bundle-OGLIDsv0.js.map +0 -1
- package/chunks/bundle-PXF29EwZ.js.map +0 -1
- package/chunks/bundle-PrPMpr0d.js.map +0 -1
- package/chunks/bundle-QDjzCG-h.js.map +0 -1
- package/chunks/bundle-R_8mFuwU.js.map +0 -1
- package/chunks/bundle-S3i59_HU.js.map +0 -1
- package/chunks/bundle-TWhlUSzV.js.map +0 -1
- package/chunks/bundle-ThaFnyA3.js.map +0 -1
- package/chunks/bundle-VTgol5b8.js.map +0 -1
- package/chunks/bundle-WJ0Rx9Vt.js.map +0 -1
- package/chunks/bundle-WJbfhl8B.js.map +0 -1
- package/chunks/bundle-WkSXViPf.js.map +0 -1
- package/chunks/bundle-YK6gNh-t.js.map +0 -1
- package/chunks/bundle-Yc91ktUe.js.map +0 -1
- package/chunks/bundle-YcH_HSha.js.map +0 -1
- package/chunks/bundle-ZrmeY8rp.js.map +0 -1
- package/chunks/bundle-aU9DrOs1.js.map +0 -1
- package/chunks/bundle-ammXYCNc.js.map +0 -1
- package/chunks/bundle-dPtRdKjv.js.map +0 -1
- package/chunks/bundle-e_hMfMVC.js.map +0 -1
- package/chunks/bundle-fIf1YwSi.js.map +0 -1
- package/chunks/bundle-fdlrWGps.js.map +0 -1
- package/chunks/bundle-hTd1NizA.js.map +0 -1
- package/chunks/bundle-hwjo__1w.js.map +0 -1
- package/chunks/bundle-iRd3nywJ.js.map +0 -1
- package/chunks/bundle-jIsbkecD.js.map +0 -1
- package/chunks/bundle-laqNvtHc.js.map +0 -1
- package/chunks/bundle-mXxUWu6C.js.map +0 -1
- package/chunks/bundle-mbVaGxy-.js.map +0 -1
- package/chunks/bundle-sPCqUzdP.js.map +0 -1
- package/chunks/bundle-yMF6_bQS.js.map +0 -1
- package/chunks/bundle-z995fH4M.js.map +0 -1
- package/chunks/bundle-zftI06HH.js.map +0 -1
- package/chunks/bundle-zr28rXX0.js.map +0 -1
- package/cjs/chunks/bundle-2QTmv8Qr.js.map +0 -1
- package/cjs/chunks/bundle-6D2HDCsi.js.map +0 -1
- package/cjs/chunks/bundle-6JAbouBn.js.map +0 -1
- package/cjs/chunks/bundle-6Ucv_cXK.js.map +0 -1
- package/cjs/chunks/bundle-7S9cQ7Sp.js.map +0 -1
- package/cjs/chunks/bundle-8gAAE7I3.js.map +0 -1
- package/cjs/chunks/bundle-8sRp5L6V.js.map +0 -1
- package/cjs/chunks/bundle-B3jNx9nI.js.map +0 -1
- package/cjs/chunks/bundle-D_9GebqZ.js.map +0 -1
- package/cjs/chunks/bundle-EmZI0-j-.js.map +0 -1
- package/cjs/chunks/bundle-G4olPx81.js.map +0 -1
- package/cjs/chunks/bundle-GYpm7RtY.js.map +0 -1
- package/cjs/chunks/bundle-HmF0Kwa_.js.map +0 -1
- package/cjs/chunks/bundle-JllM1Vt3.js.map +0 -1
- package/cjs/chunks/bundle-L3zb8Cu_.js.map +0 -1
- package/cjs/chunks/bundle-M_3VvtOr.js.map +0 -1
- package/cjs/chunks/bundle-O3DZBV2p.js.map +0 -1
- package/cjs/chunks/bundle-OLmZ2fUV.js.map +0 -1
- package/cjs/chunks/bundle-OayM7MBH.js.map +0 -1
- package/cjs/chunks/bundle-RHwdkbbz.js.map +0 -1
- package/cjs/chunks/bundle-THKiylQP.js.map +0 -1
- package/cjs/chunks/bundle-UAlBT2_3.js.map +0 -1
- package/cjs/chunks/bundle-Ulv5XabQ.js.map +0 -1
- package/cjs/chunks/bundle-WQOvDsOP.js.map +0 -1
- package/cjs/chunks/bundle-XSrDHwxE.js.map +0 -1
- package/cjs/chunks/bundle-XpwayjqP.js.map +0 -1
- package/cjs/chunks/bundle-Y6oHbdhN.js.map +0 -1
- package/cjs/chunks/bundle-Z9uYBAUt.js.map +0 -1
- package/cjs/chunks/bundle-ZIC4K68f.js.map +0 -1
- package/cjs/chunks/bundle-_N5y1qEg.js.map +0 -1
- package/cjs/chunks/bundle-aLKN26Lx.js.map +0 -1
- package/cjs/chunks/bundle-apUHizVu.js.map +0 -1
- package/cjs/chunks/bundle-bSoYSPA5.js.map +0 -1
- package/cjs/chunks/bundle-bc3_Ej1J.js.map +0 -1
- package/cjs/chunks/bundle-d1u7R12O.js.map +0 -1
- package/cjs/chunks/bundle-dibCo5Mv.js.map +0 -1
- package/cjs/chunks/bundle-do_4Y2S_.js.map +0 -1
- package/cjs/chunks/bundle-eg639gtv.js.map +0 -1
- package/cjs/chunks/bundle-fE1EYcSx.js.map +0 -1
- package/cjs/chunks/bundle-fWvwYg6I.js.map +0 -1
- package/cjs/chunks/bundle-g3vASPp8.js.map +0 -1
- package/cjs/chunks/bundle-gKpM7okd.js.map +0 -1
- package/cjs/chunks/bundle-him8B6lQ.js.map +0 -1
- package/cjs/chunks/bundle-hyQekvQu.js.map +0 -1
- package/cjs/chunks/bundle-ivu3uDBu.js.map +0 -1
- package/cjs/chunks/bundle-j2b4bxU3.js.map +0 -1
- package/cjs/chunks/bundle-j5InjWst.js.map +0 -1
- package/cjs/chunks/bundle-jI4fSOuZ.js.map +0 -1
- package/cjs/chunks/bundle-l9rAnwws.js.map +0 -1
- package/cjs/chunks/bundle-lVg2xbe0.js.map +0 -1
- package/cjs/chunks/bundle-lZm_4ToV.js.map +0 -1
- package/cjs/chunks/bundle-lqO2HtRG.js.map +0 -1
- package/cjs/chunks/bundle-oK2GZVsW.js.map +0 -1
- package/cjs/chunks/bundle-pNPHZO_X.js.map +0 -1
- package/cjs/chunks/bundle-qlTSWGy9.js.map +0 -1
- package/cjs/chunks/bundle-rGIlrKQw.js.map +0 -1
- package/cjs/chunks/bundle-uQ09rpIX.js.map +0 -1
- package/cjs/chunks/bundle-v-P7N839.js.map +0 -1
- package/cjs/chunks/bundle-v6rdnF1q.js.map +0 -1
- package/cjs/chunks/bundle-w1sEa7O0.js.map +0 -1
- package/cjs/chunks/bundle-xn7dyz1d.js.map +0 -1
- package/cjs/chunks/bundle-y0sGF4RD.js.map +0 -1
- package/cjs/chunks/bundle-yyOx7Krk.js.map +0 -1
- package/cjs/chunks/bundle-yzN-MQRB.js.map +0 -1
package/types/lib/types.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ import { SdkActionTypes } from './dux/sdk/actionTypes';
|
|
|
18
18
|
import { ReconnectType } from './hooks/useConnect/types';
|
|
19
19
|
import { SBUGlobalPubSub } from './pubSub/topics';
|
|
20
20
|
import { EmojiManager } from './emojiManager';
|
|
21
|
+
import { MessageTemplatesInfo, ProcessedMessageTemplate, WaitingTemplateKeyData } from './dux/appInfo/initialState';
|
|
22
|
+
import { AppInfoActionTypes } from './dux/appInfo/actionTypes';
|
|
21
23
|
export declare const Role: {
|
|
22
24
|
readonly OPERATOR: "operator";
|
|
23
25
|
readonly NONE: "none";
|
|
@@ -82,6 +84,7 @@ export interface SendBirdStateConfig {
|
|
|
82
84
|
typingIndicatorTypes: SBUConfig['groupChannel']['channel']['typingIndicatorTypes'];
|
|
83
85
|
enableFeedback: SBUConfig['groupChannel']['channel']['enableFeedback'];
|
|
84
86
|
enableSuggestedReplies: SBUConfig['groupChannel']['channel']['enableSuggestedReplies'];
|
|
87
|
+
showSuggestedRepliesFor: SBUConfig['groupChannel']['channel']['showSuggestedRepliesFor'];
|
|
85
88
|
};
|
|
86
89
|
openChannel: {
|
|
87
90
|
enableOgtag: SBUConfig['openChannel']['channel']['enableOgtag'];
|
|
@@ -100,9 +103,14 @@ export interface UserStore {
|
|
|
100
103
|
loading: boolean;
|
|
101
104
|
user: User;
|
|
102
105
|
}
|
|
106
|
+
export interface AppInfoStore {
|
|
107
|
+
messageTemplatesInfo?: MessageTemplatesInfo;
|
|
108
|
+
waitingTemplateKeysMap: Record<string, WaitingTemplateKeyData>;
|
|
109
|
+
}
|
|
103
110
|
export interface SendBirdStateStore {
|
|
104
111
|
sdkStore: SdkStore;
|
|
105
112
|
userStore: UserStore;
|
|
113
|
+
appInfoStore: AppInfoStore;
|
|
106
114
|
}
|
|
107
115
|
export type SendBirdState = {
|
|
108
116
|
config: SendBirdStateConfig;
|
|
@@ -110,10 +118,12 @@ export type SendBirdState = {
|
|
|
110
118
|
dispatchers: {
|
|
111
119
|
sdkDispatcher: React.Dispatch<SdkActionTypes>;
|
|
112
120
|
userDispatcher: React.Dispatch<UserActionTypes>;
|
|
121
|
+
appInfoDispatcher: React.Dispatch<AppInfoActionTypes>;
|
|
113
122
|
reconnect: ReconnectType;
|
|
114
123
|
};
|
|
115
124
|
eventHandlers?: SBUEventHandlers;
|
|
116
125
|
emojiManager?: EmojiManager;
|
|
126
|
+
utils: SendbirdProviderUtils;
|
|
117
127
|
};
|
|
118
128
|
type GetSdk = SendbirdChat | undefined;
|
|
119
129
|
type GetConnect = (userId: string, accessToken?: string) => Promise<User>;
|
|
@@ -174,4 +184,8 @@ export type UIKitOptions = PartialDeep<{
|
|
|
174
184
|
}>;
|
|
175
185
|
export type SendbirdChatInitParams = Omit<SendbirdChatParams<Module[]>, 'appId'>;
|
|
176
186
|
export type CustomExtensionParams = Record<string, string>;
|
|
187
|
+
export type SendbirdProviderUtils = {
|
|
188
|
+
updateMessageTemplatesInfo: (templateKey: string, createdAt: number) => Promise<void>;
|
|
189
|
+
getCachedTemplate: (key: string) => ProcessedMessageTemplate | null;
|
|
190
|
+
};
|
|
177
191
|
export {};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { GroupChannelUIBasicProps } from '../../../GroupChannel/components/GroupChannelUI/GroupChannelUIView';
|
|
3
3
|
export interface ChannelUIProps extends GroupChannelUIBasicProps {
|
|
4
4
|
isLoading?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Customizes all child components of the message component.
|
|
7
|
+
* */
|
|
8
|
+
renderMessage?: GroupChannelUIBasicProps['renderMessage'];
|
|
5
9
|
}
|
|
6
10
|
declare const ChannelUI: (props: ChannelUIProps) => React.JSX.Element;
|
|
7
11
|
export default ChannelUI;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { GroupChannelUIBasicProps } from '../../../GroupChannel/components/GroupChannelUI/GroupChannelUIView';
|
|
2
3
|
export interface MessageInputWrapperProps {
|
|
3
4
|
value?: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
|
-
renderFileUploadIcon?: () => React.ReactElement;
|
|
6
|
-
renderVoiceMessageIcon?: () => React.ReactElement;
|
|
7
|
-
renderSendMessageIcon?: () => React.ReactElement;
|
|
8
6
|
acceptableMimeTypes?: string[];
|
|
7
|
+
renderFileUploadIcon?: GroupChannelUIBasicProps['renderFileUploadIcon'];
|
|
8
|
+
renderVoiceMessageIcon?: GroupChannelUIBasicProps['renderVoiceMessageIcon'];
|
|
9
|
+
renderSendMessageIcon?: GroupChannelUIBasicProps['renderSendMessageIcon'];
|
|
9
10
|
}
|
|
10
11
|
export declare const MessageInputWrapper: (props: MessageInputWrapperProps) => React.JSX.Element;
|
|
11
12
|
export default MessageInputWrapper;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import '../../../GroupChannel/components/MessageList/index.scss';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { GroupChannelMessageListProps } from '../../../GroupChannel/components/MessageList';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
import { GroupChannelUIBasicProps } from '../../../GroupChannel/components/GroupChannelUI/GroupChannelUIView';
|
|
5
|
+
export interface MessageListProps extends GroupChannelMessageListProps {
|
|
6
|
+
/**
|
|
7
|
+
* Customizes all child components of the message component.
|
|
8
|
+
* */
|
|
9
|
+
renderMessage?: GroupChannelUIBasicProps['renderMessage'];
|
|
10
|
+
}
|
|
11
|
+
export declare const MessageList: ({ className, renderMessage, renderMessageContent, renderSuggestedReplies, renderCustomSeparator, renderPlaceholderLoader, renderPlaceholderEmpty, renderFrozenNotification, }: MessageListProps) => React.JSX.Element;
|
|
6
12
|
export default MessageList;
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GroupChannel, Member } from '@sendbird/chat/groupChannel';
|
|
3
|
-
import type { BaseMessage, FileMessage, FileMessageCreateParams, MultipleFilesMessage, MultipleFilesMessageCreateParams, UserMessage, UserMessageCreateParams, UserMessageUpdateParams } from '@sendbird/chat/message';
|
|
3
|
+
import type { BaseMessage, FileMessage, FileMessageCreateParams, MultipleFilesMessage, MultipleFilesMessageCreateParams, UserMessage, UserMessageCreateParams, UserMessageUpdateParams, MessageListParams as SDKMessageListParams } from '@sendbird/chat/message';
|
|
4
4
|
import type { EmojiContainer, SendbirdError, User } from '@sendbird/chat';
|
|
5
5
|
import { ReplyType, RenderUserProfileProps, Nullable } from '../../../types';
|
|
6
6
|
import { CoreMessageType, SendableMessageType } from '../../../utils';
|
|
7
7
|
import { ThreadReplySelectType } from './const';
|
|
8
8
|
import * as channelActions from './dux/actionTypes';
|
|
9
9
|
import { ChannelActionTypes } from './dux/actionTypes';
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export interface MessageListParams extends Partial<SDKMessageListParams> {
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
* It won't work even if you activate this props
|
|
14
|
+
*/
|
|
15
15
|
reverse?: boolean;
|
|
16
|
-
|
|
17
|
-
includeMetaArray?: boolean;
|
|
18
|
-
includeReactions?: boolean;
|
|
19
|
-
includeThreadInfo?: boolean;
|
|
20
|
-
includeParentMessageInfo?: boolean;
|
|
21
|
-
showSubchannelMessagesOnly?: boolean;
|
|
22
|
-
customTypes?: Array<string>;
|
|
23
|
-
senderUserIds?: Array<string>;
|
|
24
|
-
};
|
|
16
|
+
}
|
|
25
17
|
export type ChannelQueries = {
|
|
26
18
|
messageListParams?: MessageListParams;
|
|
27
19
|
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
+
export * from '../../GroupChannel/context/const';
|
|
1
2
|
export declare const PREV_RESULT_SIZE = 30;
|
|
2
3
|
export declare const NEXT_RESULT_SIZE = 15;
|
|
3
|
-
export declare const MAX_USER_MENTION_COUNT = 10;
|
|
4
|
-
export declare const MAX_USER_SUGGESTION_COUNT = 15;
|
|
5
|
-
export declare const USER_MENTION_TEMP_CHAR = "@";
|
|
6
|
-
export declare enum ThreadReplySelectType {
|
|
7
|
-
PARENT = "PARENT",
|
|
8
|
-
THREAD = "THREAD"
|
|
9
|
-
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import type { EmojiContainer } from '@sendbird/chat';
|
|
2
|
+
import type { GroupChannel, Member } from '@sendbird/chat/groupChannel';
|
|
3
|
+
import type { ReactionEvent } from '@sendbird/chat/message';
|
|
4
|
+
import type { MessageListParams } from '../ChannelProvider';
|
|
5
|
+
import type { CoreMessageType, SendableMessageType } from '../../../../utils';
|
|
6
|
+
import type { FileUploadedPayload } from '../hooks/useSendMultipleFilesMessage';
|
|
1
7
|
import { CreateAction } from '../../../../utils/typeHelpers/reducers/createAction';
|
|
2
|
-
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
3
|
-
import { CoreMessageType, SendableMessageType } from '../../../../utils';
|
|
4
|
-
import { EmojiContainer } from '@sendbird/chat';
|
|
5
|
-
import { ReactionEvent } from '@sendbird/chat/message';
|
|
6
|
-
import { MessageListParams } from '../ChannelProvider';
|
|
7
|
-
import { FileUploadedPayload } from '../hooks/useSendMultipleFilesMessage';
|
|
8
|
-
import { Member } from '@sendbird/chat/lib/__definition';
|
|
9
8
|
export declare const RESET_MESSAGES = "RESET_MESSAGES";
|
|
10
9
|
export declare const FETCH_INITIAL_MESSAGES_START = "FETCH_INITIAL_MESSAGES_START";
|
|
11
10
|
export declare const FETCH_INITIAL_MESSAGES_SUCCESS = "FETCH_INITIAL_MESSAGES_SUCCESS";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import './channel-settings-ui.scss';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export interface ChannelSettingsUIProps {
|
|
4
|
-
renderPlaceholderError?: () => React.ReactElement;
|
|
5
4
|
renderChannelProfile?: () => React.ReactElement;
|
|
6
5
|
renderModerationPanel?: () => React.ReactElement;
|
|
7
6
|
renderLeaveChannel?: () => React.ReactElement;
|
|
7
|
+
renderPlaceholderError?: () => React.ReactElement;
|
|
8
|
+
renderPlaceholderLoading?: () => React.ReactElement;
|
|
8
9
|
}
|
|
9
10
|
declare const ChannelSettingsUI: React.FC<ChannelSettingsUIProps>;
|
|
10
11
|
export default ChannelSettingsUI;
|
|
@@ -38,10 +38,10 @@ interface ChannelSettingsProviderInterface {
|
|
|
38
38
|
queries?: ChannelSettingsQueries;
|
|
39
39
|
setChannelUpdateId(uniqId: string): void;
|
|
40
40
|
forceUpdateUI(): void;
|
|
41
|
-
channel: GroupChannel;
|
|
41
|
+
channel: GroupChannel | null;
|
|
42
|
+
loading: boolean;
|
|
42
43
|
invalidChannel: boolean;
|
|
43
44
|
}
|
|
44
|
-
declare const ChannelSettingsProvider: React.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export { ChannelSettingsProvider, useChannelSettingsContext, };
|
|
45
|
+
declare const ChannelSettingsProvider: ({ children, className, channelUrl, onCloseClick, onLeaveChannel, onChannelModified, overrideInviteUser, onBeforeUpdateChannel, queries, renderUserProfile, disableUserProfile, }: ChannelSettingsContextProps) => React.JSX.Element;
|
|
46
|
+
declare const useChannelSettingsContext: () => ChannelSettingsProviderInterface;
|
|
47
|
+
export { ChannelSettingsProvider, useChannelSettingsContext };
|
|
@@ -4,20 +4,67 @@ import type { RenderCustomSeparatorProps, RenderMessageParamsType } from '../../
|
|
|
4
4
|
import type { GroupChannelHeaderProps } from '../GroupChannelHeader';
|
|
5
5
|
import type { GroupChannelMessageListProps } from '../MessageList';
|
|
6
6
|
import type { MessageContentProps } from '../../../../ui/MessageContent';
|
|
7
|
+
import { SuggestedRepliesProps } from '../SuggestedReplies';
|
|
7
8
|
export interface GroupChannelUIBasicProps {
|
|
9
|
+
/**
|
|
10
|
+
* A function that customizes the rendering of a loading placeholder component.
|
|
11
|
+
*/
|
|
8
12
|
renderPlaceholderLoader?: () => React.ReactElement;
|
|
13
|
+
/**
|
|
14
|
+
* A function that customizes the rendering of a invalid placeholder component.
|
|
15
|
+
*/
|
|
9
16
|
renderPlaceholderInvalid?: () => React.ReactElement;
|
|
17
|
+
/**
|
|
18
|
+
* A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.
|
|
19
|
+
*/
|
|
10
20
|
renderPlaceholderEmpty?: () => React.ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* A function that customizes the rendering of a header component.
|
|
23
|
+
*/
|
|
11
24
|
renderChannelHeader?: (props: GroupChannelHeaderProps) => React.ReactElement;
|
|
25
|
+
/**
|
|
26
|
+
* A function that customizes the rendering of a message list component.
|
|
27
|
+
*/
|
|
12
28
|
renderMessageList?: (props: GroupChannelMessageListProps) => React.ReactElement;
|
|
29
|
+
/**
|
|
30
|
+
* A function that customizes the rendering of a message input component.
|
|
31
|
+
*/
|
|
13
32
|
renderMessageInput?: () => React.ReactElement;
|
|
33
|
+
/**
|
|
34
|
+
* A function that customizes the rendering of each message component in the message list component.
|
|
35
|
+
*/
|
|
14
36
|
renderMessage?: (props: RenderMessageParamsType) => React.ReactElement;
|
|
37
|
+
/**
|
|
38
|
+
* A function that customizes the rendering of the content portion of each message component.
|
|
39
|
+
*/
|
|
15
40
|
renderMessageContent?: (props: MessageContentProps) => React.ReactElement;
|
|
41
|
+
/**
|
|
42
|
+
* A function that customizes the rendering of the suggested replies of each message component.
|
|
43
|
+
*/
|
|
44
|
+
renderSuggestedReplies?: (props: SuggestedRepliesProps) => React.ReactElement;
|
|
45
|
+
/**
|
|
46
|
+
* A function that customizes the rendering of a separator component between messages.
|
|
47
|
+
*/
|
|
16
48
|
renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;
|
|
49
|
+
/**
|
|
50
|
+
* A function that customizes the rendering of a frozen notification component when the channel is frozen.
|
|
51
|
+
*/
|
|
17
52
|
renderFrozenNotification?: () => React.ReactElement;
|
|
53
|
+
/**
|
|
54
|
+
* A function that customizes the rendering of the file upload icon in the message input component.
|
|
55
|
+
*/
|
|
18
56
|
renderFileUploadIcon?: () => React.ReactElement;
|
|
57
|
+
/**
|
|
58
|
+
* A function that customizes the rendering of the voice message icon in the message input component.
|
|
59
|
+
*/
|
|
19
60
|
renderVoiceMessageIcon?: () => React.ReactElement;
|
|
61
|
+
/**
|
|
62
|
+
* A function that customizes the rendering of the send message icon in the message input component.
|
|
63
|
+
*/
|
|
20
64
|
renderSendMessageIcon?: () => React.ReactElement;
|
|
65
|
+
/**
|
|
66
|
+
* A function that customizes the rendering of the typing indicator component.
|
|
67
|
+
*/
|
|
21
68
|
renderTypingIndicator?: () => React.ReactElement;
|
|
22
69
|
}
|
|
23
70
|
export interface GroupChannelUIViewProps extends GroupChannelUIBasicProps {
|
|
@@ -6,16 +6,38 @@ import type { FileMessage, UserMessageCreateParams, UserMessageUpdateParams } fr
|
|
|
6
6
|
import { ThreadReplySelectType } from '../../context/const';
|
|
7
7
|
import { CoreMessageType, SendableMessageType } from '../../../../utils';
|
|
8
8
|
import { MessageContentProps } from '../../../../ui/MessageContent';
|
|
9
|
+
import { SuggestedRepliesProps } from '../SuggestedReplies';
|
|
9
10
|
export interface MessageProps {
|
|
10
11
|
message: EveryMessage;
|
|
11
12
|
hasSeparator?: boolean;
|
|
12
13
|
chainTop?: boolean;
|
|
13
14
|
chainBottom?: boolean;
|
|
14
15
|
handleScroll?: (isBottomMessageAffected?: boolean) => void;
|
|
15
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Customizes all child components of the message.
|
|
18
|
+
* */
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* A function that customizes the rendering of the content portion of message component.
|
|
22
|
+
*/
|
|
16
23
|
renderMessageContent?: (props: MessageContentProps) => React.ReactElement;
|
|
24
|
+
/**
|
|
25
|
+
* A function that customizes the rendering of suggested replies component of messages.
|
|
26
|
+
*/
|
|
27
|
+
renderSuggestedReplies?: (props: SuggestedRepliesProps) => React.ReactElement;
|
|
28
|
+
/**
|
|
29
|
+
* A function that customizes the rendering of a separator between messages.
|
|
30
|
+
*/
|
|
17
31
|
renderCustomSeparator?: (props: RenderCustomSeparatorProps) => React.ReactElement;
|
|
32
|
+
/**
|
|
33
|
+
* A function that customizes the rendering of the edit input portion of the message component.
|
|
34
|
+
* */
|
|
18
35
|
renderEditInput?: () => React.ReactElement;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Please use `children` instead
|
|
38
|
+
* @description Customizes all child components of the message.
|
|
39
|
+
* */
|
|
40
|
+
renderMessage?: (props: RenderMessageParamsType) => React.ReactElement;
|
|
19
41
|
}
|
|
20
42
|
export interface MessageViewProps extends MessageProps {
|
|
21
43
|
channel: GroupChannel;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { GroupChannelUIBasicProps } from '../GroupChannelUI/GroupChannelUIView';
|
|
2
3
|
export interface MessageInputWrapperProps {
|
|
3
4
|
value?: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
acceptableMimeTypes?: string[];
|
|
7
|
+
renderFileUploadIcon?: GroupChannelUIBasicProps['renderFileUploadIcon'];
|
|
8
|
+
renderVoiceMessageIcon?: GroupChannelUIBasicProps['renderVoiceMessageIcon'];
|
|
9
|
+
renderSendMessageIcon?: GroupChannelUIBasicProps['renderSendMessageIcon'];
|
|
8
10
|
}
|
|
9
11
|
export declare const MessageInputWrapper: (props: MessageInputWrapperProps) => React.JSX.Element;
|
|
10
12
|
export { VoiceMessageInputWrapper, VoiceMessageInputWrapperProps, } from './VoiceMessageInputWrapper';
|
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import type { MessageContentProps } from '../../../../ui/MessageContent';
|
|
3
|
+
import { GroupChannelUIBasicProps } from '../GroupChannelUI/GroupChannelUIView';
|
|
5
4
|
export interface GroupChannelMessageListProps {
|
|
6
5
|
className?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A function that customizes the rendering of each message component in the message list component.
|
|
8
|
+
*/
|
|
9
|
+
renderMessage?: GroupChannelUIBasicProps['renderMessage'];
|
|
10
|
+
/**
|
|
11
|
+
* A function that customizes the rendering of the content portion of each message component.
|
|
12
|
+
*/
|
|
13
|
+
renderMessageContent?: GroupChannelUIBasicProps['renderMessageContent'];
|
|
14
|
+
/**
|
|
15
|
+
* A function that customizes the rendering of a separator component between messages.
|
|
16
|
+
*/
|
|
17
|
+
renderCustomSeparator?: GroupChannelUIBasicProps['renderCustomSeparator'];
|
|
18
|
+
/**
|
|
19
|
+
* A function that customizes the rendering of a loading placeholder component.
|
|
20
|
+
*/
|
|
21
|
+
renderPlaceholderLoader?: GroupChannelUIBasicProps['renderPlaceholderLoader'];
|
|
22
|
+
/**
|
|
23
|
+
* A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.
|
|
24
|
+
*/
|
|
25
|
+
renderPlaceholderEmpty?: GroupChannelUIBasicProps['renderPlaceholderEmpty'];
|
|
26
|
+
/**
|
|
27
|
+
* A function that customizes the rendering of a frozen notification component when the channel is frozen.
|
|
28
|
+
*/
|
|
29
|
+
renderFrozenNotification?: GroupChannelUIBasicProps['renderFrozenNotification'];
|
|
30
|
+
/**
|
|
31
|
+
* A function that customizes the rendering of a suggested replies component.
|
|
32
|
+
*/
|
|
33
|
+
renderSuggestedReplies?: GroupChannelUIBasicProps['renderSuggestedReplies'];
|
|
13
34
|
}
|
|
14
|
-
export declare const MessageList: ({ className, renderMessage,
|
|
35
|
+
export declare const MessageList: ({ className, renderMessage, renderMessageContent, renderSuggestedReplies, renderCustomSeparator, renderPlaceholderLoader, renderPlaceholderEmpty, renderFrozenNotification, }: GroupChannelMessageListProps) => React.JSX.Element;
|
|
15
36
|
export default MessageList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseMessage } from '@sendbird/chat/message';
|
|
3
|
+
import { MessageTemplateProps } from '../../../../ui/MessageTemplate';
|
|
4
|
+
export interface MessageTemplateWrapperProps extends MessageTemplateProps {
|
|
5
|
+
message: BaseMessage;
|
|
6
|
+
}
|
|
7
|
+
export declare const MessageTemplateWrapper: ({ message, templateItems }: MessageTemplateWrapperProps) => React.JSX.Element;
|
|
8
|
+
export default MessageTemplateWrapper;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
import { BaseMessage } from '@sendbird/chat/message';
|
|
4
|
+
export interface SuggestedRepliesProps {
|
|
4
5
|
replyOptions: string[];
|
|
5
6
|
onSendMessage: ({ message }: {
|
|
6
7
|
message: string;
|
|
7
8
|
}) => void;
|
|
9
|
+
message: BaseMessage;
|
|
8
10
|
}
|
|
9
|
-
|
|
11
|
+
declare const SuggestedReplies: ({ replyOptions, onSendMessage }: SuggestedRepliesProps) => React.JSX.Element;
|
|
10
12
|
export default SuggestedReplies;
|
|
@@ -13,7 +13,7 @@ import { useMessageActions } from './hooks/useMessageActions';
|
|
|
13
13
|
type OnBeforeHandler<T> = (params: T) => T | Promise<T>;
|
|
14
14
|
type MessageListQueryParamsType = Omit<MessageCollectionParams, 'filter'> & MessageFilterParams;
|
|
15
15
|
type MessageActions = ReturnType<typeof useMessageActions>;
|
|
16
|
-
type MessageListDataSourceWithoutActions = Omit<ReturnType<typeof useGroupChannelMessages>, keyof MessageActions
|
|
16
|
+
type MessageListDataSourceWithoutActions = Omit<ReturnType<typeof useGroupChannelMessages>, keyof MessageActions | `_dangerous_${string}`>;
|
|
17
17
|
interface ContextBaseType {
|
|
18
18
|
channelUrl: string;
|
|
19
19
|
isReactionEnabled?: boolean;
|
package/types/types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const Colors: {
|
|
|
5
5
|
readonly SECONDARY: "SECONDARY";
|
|
6
6
|
readonly CONTENT: "CONTENT";
|
|
7
7
|
readonly CONTENT_INVERSE: "CONTENT_INVERSE";
|
|
8
|
+
readonly CONTENT_INVERSE_5: "CONTENT_INVERSE_5";
|
|
8
9
|
readonly WHITE: "WHITE";
|
|
9
10
|
readonly GRAY: "GRAY";
|
|
10
11
|
readonly THUMBNAIL_ICON: "THUMBNAIL_ICON";
|
|
@@ -26,6 +27,7 @@ declare const _default: {
|
|
|
26
27
|
readonly SECONDARY: "SECONDARY";
|
|
27
28
|
readonly CONTENT: "CONTENT";
|
|
28
29
|
readonly CONTENT_INVERSE: "CONTENT_INVERSE";
|
|
30
|
+
readonly CONTENT_INVERSE_5: "CONTENT_INVERSE_5";
|
|
29
31
|
readonly WHITE: "WHITE";
|
|
30
32
|
readonly GRAY: "GRAY";
|
|
31
33
|
readonly THUMBNAIL_ICON: "THUMBNAIL_ICON";
|
package/types/ui/Icon/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export declare const IconColors: {
|
|
|
83
83
|
readonly SECONDARY: "SECONDARY";
|
|
84
84
|
readonly CONTENT: "CONTENT";
|
|
85
85
|
readonly CONTENT_INVERSE: "CONTENT_INVERSE";
|
|
86
|
+
readonly CONTENT_INVERSE_5: "CONTENT_INVERSE_5";
|
|
86
87
|
readonly WHITE: "WHITE";
|
|
87
88
|
readonly GRAY: "GRAY";
|
|
88
89
|
readonly THUMBNAIL_ICON: "THUMBNAIL_ICON";
|
|
@@ -30,6 +30,8 @@ declare const LabelColors: {
|
|
|
30
30
|
readonly ONBACKGROUND_4: "ONBACKGROUND_4";
|
|
31
31
|
readonly ONCONTENT_1: "ONCONTENT_1";
|
|
32
32
|
readonly ONCONTENT_2: "ONCONTENT_2";
|
|
33
|
+
readonly ONCONTENT_INVERSE_1: "ONCONTENT_INVERSE_1";
|
|
34
|
+
readonly ONCONTENT_INVERSE_5: "ONCONTENT_INVERSE_5";
|
|
33
35
|
readonly PRIMARY: "PRIMARY";
|
|
34
36
|
readonly ERROR: "ERROR";
|
|
35
37
|
readonly SECONDARY_3: "SECONDARY_3";
|
|
@@ -92,6 +92,8 @@ declare const stringSet: {
|
|
|
92
92
|
TOOLTIP__UNKNOWN_USER: string;
|
|
93
93
|
UNKNOWN__UNKNOWN_MESSAGE_TYPE: string;
|
|
94
94
|
UNKNOWN__CANNOT_READ_MESSAGE: string;
|
|
95
|
+
UNKNOWN__TEMPLATE_ERROR: string;
|
|
96
|
+
UNKNOWN__CANNOT_READ_TEMPLATE: string;
|
|
95
97
|
MESSAGE_EDITED: string;
|
|
96
98
|
MODAL__DELETE_MESSAGE__TITLE: string;
|
|
97
99
|
MODAL__CHANNEL_INFORMATION__TITLE: string;
|
|
@@ -184,6 +186,7 @@ declare const stringSet: {
|
|
|
184
186
|
CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_AUDIO: string;
|
|
185
187
|
CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_VOICE_MESSAGE: string;
|
|
186
188
|
CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_GENERAL: string;
|
|
189
|
+
CHANNEL_PREVIEW_LAST_MESSAGE_TEMPLATE_MESSAGE: string;
|
|
187
190
|
DATE_FORMAT__MESSAGE_LIST__NOTIFICATION__UNREAD_SINCE: string;
|
|
188
191
|
DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR: string;
|
|
189
192
|
DATE_FORMAT__THREAD_LIST__DATE_SEPARATOR: string;
|
|
@@ -19,6 +19,8 @@ export declare const Colors: {
|
|
|
19
19
|
readonly ONBACKGROUND_4: "ONBACKGROUND_4";
|
|
20
20
|
readonly ONCONTENT_1: "ONCONTENT_1";
|
|
21
21
|
readonly ONCONTENT_2: "ONCONTENT_2";
|
|
22
|
+
readonly ONCONTENT_INVERSE_1: "ONCONTENT_INVERSE_1";
|
|
23
|
+
readonly ONCONTENT_INVERSE_5: "ONCONTENT_INVERSE_5";
|
|
22
24
|
readonly PRIMARY: "PRIMARY";
|
|
23
25
|
readonly ERROR: "ERROR";
|
|
24
26
|
readonly SECONDARY_3: "SECONDARY_3";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Typography, Colors } from './types';
|
|
2
2
|
import { ObjectValues } from '../../utils/typeHelpers/objectValues';
|
|
3
3
|
export declare function changeTypographyToClassName(type?: ObjectValues<typeof Typography>): "" | "sendbird-label--h-1" | "sendbird-label--h-2" | "sendbird-label--subtitle-1" | "sendbird-label--subtitle-2" | "sendbird-label--body-1" | "sendbird-label--body-2" | "sendbird-label--button-1" | "sendbird-label--button-2" | "sendbird-label--button-3" | "sendbird-label--caption-1" | "sendbird-label--caption-2" | "sendbird-label--caption-3";
|
|
4
|
-
export declare function changeColorToClassName(color?: ObjectValues<typeof Colors>): "" | "sendbird-label--color-onbackground-1" | "sendbird-label--color-onbackground-2" | "sendbird-label--color-onbackground-3" | "sendbird-label--color-onbackground-4" | "sendbird-label--color-oncontent-1" | "sendbird-label--color-oncontent-2" | "sendbird-label--color-primary" | "sendbird-label--color-error" | "sendbird-label--color-secondary-3";
|
|
4
|
+
export declare function changeColorToClassName(color?: ObjectValues<typeof Colors>): "" | "sendbird-label--color-onbackground-1" | "sendbird-label--color-onbackground-2" | "sendbird-label--color-onbackground-3" | "sendbird-label--color-onbackground-4" | "sendbird-label--color-oncontent-1" | "sendbird-label--color-oncontent-2" | "sendbird-label--color-oncontent-inverse-1" | "sendbird-label--color-oncontent-inverse-5" | "sendbird-label--color-primary" | "sendbird-label--color-error" | "sendbird-label--color-secondary-3";
|
|
@@ -31,6 +31,8 @@ export declare const LinkLabelColors: {
|
|
|
31
31
|
readonly ONBACKGROUND_4: "ONBACKGROUND_4";
|
|
32
32
|
readonly ONCONTENT_1: "ONCONTENT_1";
|
|
33
33
|
readonly ONCONTENT_2: "ONCONTENT_2";
|
|
34
|
+
readonly ONCONTENT_INVERSE_1: "ONCONTENT_INVERSE_1";
|
|
35
|
+
readonly ONCONTENT_INVERSE_5: "ONCONTENT_INVERSE_5";
|
|
34
36
|
readonly PRIMARY: "PRIMARY";
|
|
35
37
|
readonly ERROR: "ERROR";
|
|
36
38
|
readonly SECONDARY_3: "SECONDARY_3";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import './index.scss';
|
|
3
3
|
import { MessageMenuProps } from '../MessageItemMenu';
|
|
4
4
|
import { MessageEmojiMenuProps } from '../MessageItemReactionMenu';
|
|
@@ -11,6 +11,7 @@ import { Nullable, ReplyType } from '../../types';
|
|
|
11
11
|
import { MessageProfileProps } from './MessageProfile';
|
|
12
12
|
import { MessageBodyProps } from './MessageBody';
|
|
13
13
|
import { MessageHeaderProps } from './MessageHeader';
|
|
14
|
+
import { MobileBottomSheetProps } from '../MobileMenu/types';
|
|
14
15
|
export interface MessageContentProps {
|
|
15
16
|
className?: string | Array<string>;
|
|
16
17
|
userId: string;
|
|
@@ -46,5 +47,6 @@ export interface MessageContentProps {
|
|
|
46
47
|
renderMessageMenu?: (props: MessageMenuProps) => ReactNode;
|
|
47
48
|
renderEmojiMenu?: (props: MessageEmojiMenuProps) => ReactNode;
|
|
48
49
|
renderEmojiReactions?: (props: EmojiReactionsProps) => ReactNode;
|
|
50
|
+
renderMobileMenuOnLongPress?: (props: MobileBottomSheetProps) => React.ReactElement;
|
|
49
51
|
}
|
|
50
52
|
export default function MessageContent(props: MessageContentProps): ReactElement;
|
|
@@ -7,3 +7,7 @@ export declare const sanitizeString: (str?: string) => string;
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const nodeListToArray: (childNodes?: Node['childNodes'] | null) => ChildNode[];
|
|
9
9
|
export declare function isChannelTypeSupportsMultipleFilesMessage(channel: BaseChannel): boolean;
|
|
10
|
+
export declare function extractTextAndMentions(childNodes: NodeListOf<ChildNode>): {
|
|
11
|
+
messageText: string;
|
|
12
|
+
mentionTemplate: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MessageTemplateItem } from '../TemplateMessageItemBody/types';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
export interface MessageTemplateProps {
|
|
5
|
+
templateItems: MessageTemplateItem[];
|
|
6
|
+
}
|
|
7
|
+
export declare function MessageTemplate({ templateItems }: MessageTemplateProps): React.JSX.Element;
|
|
8
|
+
export default MessageTemplate;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseMessage } from '@sendbird/chat/message';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
export interface FallbackTemplateMessageItemBodyProps {
|
|
4
|
+
className?: string | Array<string>;
|
|
5
|
+
message: BaseMessage;
|
|
6
|
+
isByMe?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function FallbackTemplateMessageItemBody({ className, message, isByMe, }: FallbackTemplateMessageItemBodyProps): ReactElement;
|
|
9
|
+
export default FallbackTemplateMessageItemBody;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export interface LoadingTemplateMessageItemBodyProps {
|
|
3
|
+
className?: string | Array<string>;
|
|
4
|
+
isByMe?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function LoadingTemplateMessageItemBody({ className, isByMe, }: LoadingTemplateMessageItemBodyProps): ReactElement;
|
|
7
|
+
export default LoadingTemplateMessageItemBody;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './index.scss';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import type { BaseMessage } from '@sendbird/chat/message';
|
|
4
|
+
import { SendbirdTheme } from '../../types';
|
|
5
|
+
interface TemplateMessageItemBodyProps {
|
|
6
|
+
className?: string | Array<string>;
|
|
7
|
+
message: BaseMessage;
|
|
8
|
+
isByMe?: boolean;
|
|
9
|
+
theme?: SendbirdTheme;
|
|
10
|
+
}
|
|
11
|
+
export declare function TemplateMessageItemBody({ className, message, isByMe, theme, }: TemplateMessageItemBodyProps): ReactElement;
|
|
12
|
+
export default TemplateMessageItemBody;
|