@sendbird/uikit-react 3.13.3 → 3.14.0-beta.2
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 +78 -78
- package/CHANGELOG.md +11 -72
- package/Channel/components/ChannelHeader.js +29 -29
- package/Channel/components/ChannelUI.js +64 -64
- package/Channel/components/FileViewer.js +28 -28
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +54 -53
- 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 +57 -57
- 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 +19 -19
- package/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/Channel/utils/compareMessagesForGrouping.js +5 -5
- package/Channel/utils/getMessagePartsInfo.js +6 -6
- package/Channel.js +64 -64
- 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/ChannelSettingsHeader.js +6 -6
- package/ChannelSettings/components/ChannelSettingsUI.js +23 -23
- 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 +3 -3
- 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 +27 -56
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +5 -5
- package/GroupChannel/components/GroupChannelHeader.js +22 -22
- package/GroupChannel/components/GroupChannelUI.js +59 -59
- package/GroupChannel/components/Message.js +53 -52
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +38 -38
- package/GroupChannel/components/MessageList.js +52 -52
- package/GroupChannel/components/RemoveMessageModal.js +22 -22
- package/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/GroupChannel/components/TypingIndicator.js +6 -6
- package/GroupChannel/components/UnreadCount.js +7 -7
- package/GroupChannel/context.js +13 -13
- package/GroupChannel.js +59 -59
- 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 +133 -79
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +46 -75
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +34 -73
- package/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/Thread/components/ThreadHeader.js +7 -7
- package/Thread/components/ThreadList.js +46 -46
- package/Thread/components/ThreadListItem.js +52 -109
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +42 -42
- package/Thread/components/ThreadUI.js +56 -56
- package/Thread/context.js +10 -11
- package/Thread/context.js.map +1 -1
- 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-DI3fL4Xw.js → bundle-5okwu0-4.js} +58 -4
- package/{cjs/chunks/bundle-Tx6vw4BY.js.map → chunks/bundle-5okwu0-4.js.map} +1 -1
- package/chunks/{bundle-ts_i6oEg.js → bundle-87W4GPnC.js} +1 -1
- package/chunks/bundle-87W4GPnC.js.map +1 -0
- package/chunks/{bundle-CmdUup8N.js → bundle-B0azZJiA.js} +14 -14
- package/chunks/{bundle-CmdUup8N.js.map → bundle-B0azZJiA.js.map} +1 -1
- package/chunks/{bundle-DIEAFe_F.js → bundle-B1s46xJT.js} +2 -2
- package/chunks/bundle-B1s46xJT.js.map +1 -0
- package/chunks/{bundle-GRqvZZ2N.js → bundle-B2pNgmzq.js} +3 -3
- package/chunks/bundle-B2pNgmzq.js.map +1 -0
- package/chunks/{bundle-Cvm8Ag45.js → bundle-B5kwbUC5.js} +1 -1
- package/chunks/bundle-B5kwbUC5.js.map +1 -0
- package/chunks/{bundle-CkInAxxb.js → bundle-BFDyBk4r.js} +1 -1
- package/chunks/bundle-BFDyBk4r.js.map +1 -0
- package/chunks/{bundle-D47WMGAq.js → bundle-BH5rbsxO.js} +1 -1
- package/chunks/{bundle-D47WMGAq.js.map → bundle-BH5rbsxO.js.map} +1 -1
- package/chunks/{bundle-BlHQV-25.js → bundle-BJ9OAqWz.js} +1 -1
- package/chunks/bundle-BJ9OAqWz.js.map +1 -0
- package/chunks/{bundle-Bm_WZS3a.js → bundle-BJgNc4do.js} +2 -2
- package/chunks/{bundle-Bm_WZS3a.js.map → bundle-BJgNc4do.js.map} +1 -1
- package/chunks/{bundle-Dypl_pLH.js → bundle-BJs_5v6q.js} +2 -2
- package/chunks/{bundle-Dypl_pLH.js.map → bundle-BJs_5v6q.js.map} +1 -1
- package/chunks/{bundle-DQnpJfyk.js → bundle-BKG2cvZ9.js} +3 -3
- package/chunks/bundle-BKG2cvZ9.js.map +1 -0
- package/chunks/{bundle-BntzGGYb.js → bundle-BNeRxCQA.js} +1 -1
- package/chunks/bundle-BNeRxCQA.js.map +1 -0
- package/chunks/{bundle-SvqLmXeF.js → bundle-BNydv1KA.js} +6 -6
- package/chunks/bundle-BNydv1KA.js.map +1 -0
- package/chunks/{bundle-BVGlC_pg.js → bundle-BPclYGwz.js} +1 -1
- package/chunks/bundle-BPclYGwz.js.map +1 -0
- package/chunks/{bundle-CCUBCV04.js → bundle-BSPBjwR6.js} +6 -6
- package/chunks/bundle-BSPBjwR6.js.map +1 -0
- package/chunks/{bundle-DYJilNov.js → bundle-BUy5u56K.js} +1 -1
- package/chunks/bundle-BUy5u56K.js.map +1 -0
- package/chunks/{bundle-jd7__XU_.js → bundle-BdZAuvN7.js} +7 -7
- package/chunks/bundle-BdZAuvN7.js.map +1 -0
- package/chunks/{bundle-DEqxoG9B.js → bundle-Bf5VthYV.js} +1 -1
- package/chunks/bundle-Bf5VthYV.js.map +1 -0
- package/chunks/{bundle-BAsn0CBE.js → bundle-BhjXV0mk.js} +1 -1
- package/chunks/bundle-BhjXV0mk.js.map +1 -0
- package/chunks/{bundle-fvRtOX6P.js → bundle-BmPxXQ_C.js} +5 -5
- package/chunks/bundle-BmPxXQ_C.js.map +1 -0
- package/chunks/{bundle-CYtZF1xr.js → bundle-BoezGGkX.js} +11 -11
- package/chunks/{bundle-CYtZF1xr.js.map → bundle-BoezGGkX.js.map} +1 -1
- package/chunks/{bundle-CLqgMCvn.js → bundle-BuIxT5aZ.js} +1 -1
- package/chunks/bundle-BuIxT5aZ.js.map +1 -0
- package/chunks/{bundle-WrvoTlHQ.js → bundle-BvQAepkJ.js} +1 -1
- package/chunks/bundle-BvQAepkJ.js.map +1 -0
- package/chunks/{bundle-CS4RK0T7.js → bundle-By4sE23W.js} +8 -8
- package/chunks/{bundle-CS4RK0T7.js.map → bundle-By4sE23W.js.map} +1 -1
- package/chunks/{bundle-aE9efllI.js → bundle-Bys5RwQj.js} +2 -2
- package/chunks/bundle-Bys5RwQj.js.map +1 -0
- package/chunks/{bundle-DPhbbRZE.js → bundle-C-_RpFyM.js} +8 -7
- package/chunks/bundle-C-_RpFyM.js.map +1 -0
- package/chunks/{bundle-DxdGwARh.js → bundle-C0LxowmB.js} +3 -3
- package/chunks/{bundle-DxdGwARh.js.map → bundle-C0LxowmB.js.map} +1 -1
- package/chunks/{bundle-BkM4cdOJ.js → bundle-C1RngQCJ.js} +9 -9
- package/chunks/bundle-C1RngQCJ.js.map +1 -0
- package/chunks/{bundle-BXpzbAbi.js → bundle-C4sUzPGS.js} +5 -4
- package/chunks/bundle-C4sUzPGS.js.map +1 -0
- package/chunks/{bundle-VttuSapS.js → bundle-C8TvjQ68.js} +10 -10
- package/chunks/{bundle-VttuSapS.js.map → bundle-C8TvjQ68.js.map} +1 -1
- package/chunks/{bundle-Di7baNGv.js → bundle-CF6PMu9B.js} +1 -1
- package/chunks/bundle-CF6PMu9B.js.map +1 -0
- package/chunks/{bundle-BX0LQWqY.js → bundle-CJIPD7gN.js} +3 -3
- package/chunks/bundle-CJIPD7gN.js.map +1 -0
- package/chunks/{bundle-IuZ6uyzU.js → bundle-COGPgRK-.js} +1 -1
- package/chunks/bundle-COGPgRK-.js.map +1 -0
- package/chunks/{bundle-CAki7JUf.js → bundle-CPszRkFg.js} +1 -1
- package/chunks/bundle-CPszRkFg.js.map +1 -0
- package/chunks/{bundle-DTywBX7q.js → bundle-CRLJsnLv.js} +10 -10
- package/chunks/{bundle-DTywBX7q.js.map → bundle-CRLJsnLv.js.map} +1 -1
- package/chunks/{bundle-BIvhXCoF.js → bundle-CS7t26su.js} +1 -1
- package/chunks/bundle-CS7t26su.js.map +1 -0
- package/chunks/{bundle-CfZFWZM3.js → bundle-CTyr18ZN.js} +3 -3
- package/chunks/{bundle-CfZFWZM3.js.map → bundle-CTyr18ZN.js.map} +1 -1
- package/chunks/{bundle-1ymLj4Og.js → bundle-C_n2Emjx.js} +1 -1
- package/chunks/bundle-C_n2Emjx.js.map +1 -0
- package/chunks/{bundle-Ds2X6Fjs.js → bundle-CbBN2HTx.js} +10 -10
- package/chunks/bundle-CbBN2HTx.js.map +1 -0
- package/chunks/{bundle-BxBdkxXV.js → bundle-CcTHgZqq.js} +1 -1
- package/chunks/{bundle-BxBdkxXV.js.map → bundle-CcTHgZqq.js.map} +1 -1
- package/chunks/{bundle-CMKCY3ba.js → bundle-CcVFQEGF.js} +3 -3
- package/chunks/{bundle-CMKCY3ba.js.map → bundle-CcVFQEGF.js.map} +1 -1
- package/chunks/{bundle-DHp0VTVS.js → bundle-CfKGkWtT.js} +1 -1
- package/chunks/bundle-CfKGkWtT.js.map +1 -0
- package/chunks/{bundle-5HwGq_hd.js → bundle-Cvk0UZLW.js} +4 -4
- package/chunks/{bundle-5HwGq_hd.js.map → bundle-Cvk0UZLW.js.map} +1 -1
- package/chunks/{bundle-CT3xDvIx.js → bundle-CwofYH9U.js} +1 -1
- package/chunks/bundle-CwofYH9U.js.map +1 -0
- package/chunks/{bundle-DoJNLxY9.js → bundle-D-cpJ5MP.js} +1 -1
- package/chunks/bundle-D-cpJ5MP.js.map +1 -0
- package/chunks/{bundle-C6fuKmVo.js → bundle-D56MXYqF.js} +4 -4
- package/chunks/bundle-D56MXYqF.js.map +1 -0
- package/chunks/{bundle-BpDuHeEB.js → bundle-DCjOFMcr.js} +4 -4
- package/chunks/bundle-DCjOFMcr.js.map +1 -0
- package/chunks/{bundle-rl7Rvf_6.js → bundle-DRIvYDIu.js} +12 -13
- package/chunks/bundle-DRIvYDIu.js.map +1 -0
- package/chunks/{bundle-CJ9_QDKY.js → bundle-DRL21d0s.js} +1 -1
- package/chunks/bundle-DRL21d0s.js.map +1 -0
- package/chunks/{bundle-C6ZXjQ1L.js → bundle-DTDkmegk.js} +1 -1
- package/chunks/bundle-DTDkmegk.js.map +1 -0
- package/chunks/{bundle-j5EP0k3D.js → bundle-DUTTSKO5.js} +3 -3
- package/chunks/bundle-DUTTSKO5.js.map +1 -0
- package/chunks/{bundle-DaQK1Cox.js → bundle-DXhynnjn.js} +1 -1
- package/chunks/{bundle-DaQK1Cox.js.map → bundle-DXhynnjn.js.map} +1 -1
- package/chunks/{bundle-CVDtzU3E.js → bundle-D_KO6Orc.js} +1 -1
- package/chunks/{bundle-CVDtzU3E.js.map → bundle-D_KO6Orc.js.map} +1 -1
- package/chunks/{bundle-DqNfXH8L.js → bundle-D_X2Bqh-.js} +2 -2
- package/chunks/bundle-D_X2Bqh-.js.map +1 -0
- package/chunks/{bundle-DuNr1Njk.js → bundle-DcOT2xg0.js} +1 -1
- package/chunks/bundle-DcOT2xg0.js.map +1 -0
- package/chunks/{bundle-D45e30Hl.js → bundle-DgJrJ2xn.js} +4 -4
- package/chunks/bundle-DgJrJ2xn.js.map +1 -0
- package/chunks/{bundle-aJhoAKLH.js → bundle-Dicb9Y5f.js} +6 -6
- package/chunks/bundle-Dicb9Y5f.js.map +1 -0
- package/chunks/{bundle-CIhbNReG.js → bundle-DkRogqRS.js} +3 -3
- package/chunks/bundle-DkRogqRS.js.map +1 -0
- package/chunks/{bundle-yNfnN0a6.js → bundle-DnFiUPoR.js} +1 -1
- package/chunks/bundle-DnFiUPoR.js.map +1 -0
- package/chunks/{bundle-CZYvKysu.js → bundle-DoLed6JB.js} +1 -1
- package/chunks/bundle-DoLed6JB.js.map +1 -0
- package/chunks/{bundle-DavEbLba.js → bundle-DrfdRrEf.js} +2 -2
- package/chunks/bundle-DrfdRrEf.js.map +1 -0
- package/chunks/{bundle-C2vpr4DU.js → bundle-DvI4QhV3.js} +3 -3
- package/chunks/{bundle-C2vpr4DU.js.map → bundle-DvI4QhV3.js.map} +1 -1
- package/chunks/{bundle-oLhQai93.js → bundle-DzuAq6CR.js} +2 -2
- package/chunks/bundle-DzuAq6CR.js.map +1 -0
- package/chunks/{bundle-COR7gPrO.js → bundle-GKCJ2hC_.js} +3 -3
- package/chunks/{bundle-COR7gPrO.js.map → bundle-GKCJ2hC_.js.map} +1 -1
- package/chunks/{bundle-CP1hwfFC.js → bundle-GQqssfTX.js} +1 -1
- package/chunks/bundle-GQqssfTX.js.map +1 -0
- package/chunks/{bundle-BOrV2z_R.js → bundle-N_XkA5JB.js} +52 -54
- package/chunks/bundle-N_XkA5JB.js.map +1 -0
- package/chunks/{bundle-CVFMpKJZ.js → bundle-PsMmoXV_.js} +4 -4
- package/chunks/{bundle-CVFMpKJZ.js.map → bundle-PsMmoXV_.js.map} +1 -1
- package/chunks/{bundle-BHOxoDJO.js → bundle-RpPfSzD9.js} +1 -1
- package/chunks/{bundle-BHOxoDJO.js.map → bundle-RpPfSzD9.js.map} +1 -1
- package/chunks/{bundle-HsrPpAtd.js → bundle-WwYLGAen.js} +2 -2
- package/chunks/bundle-WwYLGAen.js.map +1 -0
- package/chunks/{bundle-D6kFzMhH.js → bundle-XGYpSNOg.js} +5 -5
- package/chunks/{bundle-D6kFzMhH.js.map → bundle-XGYpSNOg.js.map} +1 -1
- package/chunks/{bundle-4a9M9y8N.js → bundle-aH4n4ipp.js} +1 -1
- package/chunks/{bundle-4a9M9y8N.js.map → bundle-aH4n4ipp.js.map} +1 -1
- package/chunks/{bundle-CjW6ZQ1k.js → bundle-azFrmmyK.js} +10 -10
- package/chunks/bundle-azFrmmyK.js.map +1 -0
- package/chunks/{bundle-DNq8IoOw.js → bundle-cjTAVQxr.js} +7 -7
- package/chunks/{bundle-DNq8IoOw.js.map → bundle-cjTAVQxr.js.map} +1 -1
- package/chunks/{bundle-DBzkkIf1.js → bundle-dw1OtCIz.js} +2 -2
- package/chunks/{bundle-DBzkkIf1.js.map → bundle-dw1OtCIz.js.map} +1 -1
- package/chunks/{bundle-B8HW06Fl.js → bundle-gSQF3Ob-.js} +1 -1
- package/chunks/bundle-gSQF3Ob-.js.map +1 -0
- package/chunks/{bundle-CilkBcv-.js → bundle-l_8hg8H3.js} +2 -2
- package/chunks/bundle-l_8hg8H3.js.map +1 -0
- package/chunks/{bundle-BMvaJoQA.js → bundle-rSEP1XoB.js} +9 -40
- package/chunks/bundle-rSEP1XoB.js.map +1 -0
- package/chunks/{bundle-CIO0N9hp.js → bundle-rfEyWmAm.js} +1 -1
- package/chunks/bundle-rfEyWmAm.js.map +1 -0
- package/chunks/{bundle-D3OeBr-9.js → bundle-ynxAt7xC.js} +1 -1
- package/chunks/bundle-ynxAt7xC.js.map +1 -0
- package/chunks/{bundle-Dj4HLKX0.js → bundle-zf2ni0YJ.js} +16 -16
- package/chunks/bundle-zf2ni0YJ.js.map +1 -0
- package/cjs/App.js +78 -78
- package/cjs/Channel/components/ChannelHeader.js +29 -29
- package/cjs/Channel/components/ChannelUI.js +64 -64
- package/cjs/Channel/components/FileViewer.js +28 -28
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +54 -53
- 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 +58 -58
- 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 +19 -19
- package/cjs/Channel/hooks/useHandleUploadFiles.js +13 -13
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/cjs/Channel/utils/compareMessagesForGrouping.js +5 -5
- package/cjs/Channel/utils/getMessagePartsInfo.js +6 -6
- package/cjs/Channel.js +64 -64
- 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/ChannelSettingsHeader.js +6 -6
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +23 -23
- 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 +3 -3
- 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 +27 -56
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +5 -5
- package/cjs/GroupChannel/components/GroupChannelHeader.js +22 -22
- package/cjs/GroupChannel/components/GroupChannelUI.js +59 -59
- package/cjs/GroupChannel/components/Message.js +53 -52
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +37 -37
- package/cjs/GroupChannel/components/MessageList.js +53 -53
- package/cjs/GroupChannel/components/RemoveMessageModal.js +22 -22
- package/cjs/GroupChannel/components/SuggestedMentionList.js +12 -12
- package/cjs/GroupChannel/components/TypingIndicator.js +6 -6
- package/cjs/GroupChannel/components/UnreadCount.js +7 -7
- package/cjs/GroupChannel/context.js +13 -13
- package/cjs/GroupChannel.js +59 -59
- 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 +133 -79
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +46 -75
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +34 -73
- package/cjs/Thread/components/ParentMessageInfoItem.js.map +1 -1
- package/cjs/Thread/components/ThreadHeader.js +7 -7
- package/cjs/Thread/components/ThreadList.js +46 -46
- package/cjs/Thread/components/ThreadListItem.js +52 -109
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +42 -42
- package/cjs/Thread/components/ThreadUI.js +56 -56
- package/cjs/Thread/context.js +10 -11
- package/cjs/Thread/context.js.map +1 -1
- 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-HXyGAP9T.js → bundle--ToWZ9cj.js} +1 -1
- package/cjs/chunks/bundle--ToWZ9cj.js.map +1 -0
- package/cjs/chunks/{bundle-B_BPxhrG.js → bundle-03LrACV2.js} +6 -6
- package/cjs/chunks/bundle-03LrACV2.js.map +1 -0
- package/cjs/chunks/{bundle-D_qbYkHk.js → bundle-1hCsXfVb.js} +1 -1
- package/cjs/chunks/{bundle-D_qbYkHk.js.map → bundle-1hCsXfVb.js.map} +1 -1
- package/cjs/chunks/{bundle-YUHup5bR.js → bundle-6eXm5bOG.js} +1 -1
- package/cjs/chunks/bundle-6eXm5bOG.js.map +1 -0
- package/cjs/chunks/{bundle-DskQULoR.js → bundle-7FLBAmYO.js} +2 -2
- package/cjs/chunks/{bundle-DskQULoR.js.map → bundle-7FLBAmYO.js.map} +1 -1
- package/cjs/chunks/{bundle-pVDX6G_q.js → bundle-7GCXhi1c.js} +3 -3
- package/cjs/chunks/bundle-7GCXhi1c.js.map +1 -0
- package/cjs/chunks/{bundle-DKspFBdx.js → bundle-8oxVWV_9.js} +1 -1
- package/cjs/chunks/bundle-8oxVWV_9.js.map +1 -0
- package/cjs/chunks/{bundle-BJjQQMo0.js → bundle-9K7l85xj.js} +4 -4
- package/cjs/chunks/bundle-9K7l85xj.js.map +1 -0
- package/cjs/chunks/{bundle-CEcY1I0M.js → bundle-B-dy_WYW.js} +8 -8
- package/cjs/chunks/{bundle-CEcY1I0M.js.map → bundle-B-dy_WYW.js.map} +1 -1
- package/cjs/chunks/{bundle-Tx6vw4BY.js → bundle-B1Nml3ap.js} +60 -3
- package/{chunks/bundle-DI3fL4Xw.js.map → cjs/chunks/bundle-B1Nml3ap.js.map} +1 -1
- package/cjs/chunks/{bundle-BO1-msX2.js → bundle-B2cSnWcr.js} +1 -1
- package/cjs/chunks/bundle-B2cSnWcr.js.map +1 -0
- package/cjs/chunks/{bundle-CoTIkHcU.js → bundle-B8jj7upa.js} +4 -4
- package/{chunks/bundle-BMvaJoQA.js.map → cjs/chunks/bundle-B8jj7upa.js.map} +1 -1
- package/cjs/chunks/{bundle-tbYf0yOX.js → bundle-BF04PgMH.js} +1 -1
- package/cjs/chunks/bundle-BF04PgMH.js.map +1 -0
- package/cjs/chunks/{bundle-d3t3a2vc.js → bundle-BH87xcnc.js} +1 -1
- package/cjs/chunks/bundle-BH87xcnc.js.map +1 -0
- package/cjs/chunks/{bundle-B6FFmfTl.js → bundle-BLh1DOSs.js} +2 -2
- package/cjs/chunks/bundle-BLh1DOSs.js.map +1 -0
- package/cjs/chunks/{bundle-DcVYwXP-.js → bundle-BMsGwLym.js} +1 -1
- package/cjs/chunks/bundle-BMsGwLym.js.map +1 -0
- package/cjs/chunks/{bundle-DIfKPcm_.js → bundle-BR1tsZpK.js} +1 -1
- package/cjs/chunks/bundle-BR1tsZpK.js.map +1 -0
- package/cjs/chunks/{bundle-DtroGUKx.js → bundle-BR23SbdZ.js} +3 -3
- package/cjs/chunks/{bundle-DtroGUKx.js.map → bundle-BR23SbdZ.js.map} +1 -1
- package/cjs/chunks/{bundle-DmPl_3ye.js → bundle-BUOuk2jo.js} +2 -2
- package/cjs/chunks/bundle-BUOuk2jo.js.map +1 -0
- package/cjs/chunks/{bundle-Vn-fJ6dU.js → bundle-BVLguSfh.js} +4 -4
- package/cjs/chunks/{bundle-Vn-fJ6dU.js.map → bundle-BVLguSfh.js.map} +1 -1
- package/cjs/chunks/{bundle-CN0vR-TH.js → bundle-BVgN7Stu.js} +2 -2
- package/cjs/chunks/{bundle-CN0vR-TH.js.map → bundle-BVgN7Stu.js.map} +1 -1
- package/cjs/chunks/{bundle-8uCH3epo.js → bundle-BVuqbZx2.js} +11 -11
- package/cjs/chunks/{bundle-8uCH3epo.js.map → bundle-BVuqbZx2.js.map} +1 -1
- package/cjs/chunks/{bundle-DRT94QO5.js → bundle-BdHrSYl1.js} +4 -4
- package/cjs/chunks/bundle-BdHrSYl1.js.map +1 -0
- package/cjs/chunks/{bundle-D1mv8BUm.js → bundle-BgLtZgZ_.js} +1 -1
- package/cjs/chunks/bundle-BgLtZgZ_.js.map +1 -0
- package/cjs/chunks/{bundle-D_RomXCz.js → bundle-BlvFC-Rm.js} +1 -1
- package/cjs/chunks/bundle-BlvFC-Rm.js.map +1 -0
- package/cjs/chunks/{bundle-CXDp72cg.js → bundle-Bm5ysFU-.js} +10 -10
- package/cjs/chunks/bundle-Bm5ysFU-.js.map +1 -0
- package/cjs/chunks/{bundle-DeOn9o6F.js → bundle-BpOxHgfP.js} +3 -3
- package/cjs/chunks/bundle-BpOxHgfP.js.map +1 -0
- package/cjs/chunks/{bundle-DkGYX29W.js → bundle-BsGXZt6G.js} +5 -4
- package/cjs/chunks/bundle-BsGXZt6G.js.map +1 -0
- package/cjs/chunks/{bundle-CKC-b4Bw.js → bundle-BwO19Jro.js} +3 -3
- package/cjs/chunks/bundle-BwO19Jro.js.map +1 -0
- package/cjs/chunks/{bundle-CbATYgnP.js → bundle-BxaGZqGJ.js} +3 -3
- package/cjs/chunks/bundle-BxaGZqGJ.js.map +1 -0
- package/cjs/chunks/{bundle-DdS-jEnE.js → bundle-C2v2lxLx.js} +3 -3
- package/cjs/chunks/bundle-C2v2lxLx.js.map +1 -0
- package/cjs/chunks/{bundle-B-njjZtk.js → bundle-C88DsCNB.js} +9 -7
- package/cjs/chunks/bundle-C88DsCNB.js.map +1 -0
- package/cjs/chunks/{bundle-BElidCBa.js → bundle-C8cnT2au.js} +9 -9
- package/cjs/chunks/bundle-C8cnT2au.js.map +1 -0
- package/cjs/chunks/{bundle-BzBRoraS.js → bundle-C9YHSQ4e.js} +1 -1
- package/cjs/chunks/bundle-C9YHSQ4e.js.map +1 -0
- package/cjs/chunks/{bundle-ChQ3Q-GS.js → bundle-C9jXxNI1.js} +7 -7
- package/cjs/chunks/bundle-C9jXxNI1.js.map +1 -0
- package/cjs/chunks/{bundle-CqTg15Dn.js → bundle-CCVRe_w3.js} +1 -1
- package/cjs/chunks/bundle-CCVRe_w3.js.map +1 -0
- package/cjs/chunks/{bundle-DOmB6XkC.js → bundle-CD9H6RqJ.js} +52 -54
- package/{chunks/bundle-BOrV2z_R.js.map → cjs/chunks/bundle-CD9H6RqJ.js.map} +1 -1
- package/cjs/chunks/{bundle-Bc6y_vRE.js → bundle-CDBTt08y.js} +1 -1
- package/cjs/chunks/bundle-CDBTt08y.js.map +1 -0
- package/cjs/chunks/{bundle-BNCNRHux.js → bundle-CIswYN43.js} +3 -3
- package/cjs/chunks/bundle-CIswYN43.js.map +1 -0
- package/cjs/chunks/{bundle-CEiDcA9X.js → bundle-CS644BJp.js} +1 -1
- package/cjs/chunks/{bundle-CEiDcA9X.js.map → bundle-CS644BJp.js.map} +1 -1
- package/cjs/chunks/{bundle-BXQqL0gU.js → bundle-CW9QUnWM.js} +1 -1
- package/cjs/chunks/bundle-CW9QUnWM.js.map +1 -0
- package/cjs/chunks/{bundle-DvduWWQk.js → bundle-CmFB08Wf.js} +3 -3
- package/cjs/chunks/bundle-CmFB08Wf.js.map +1 -0
- package/cjs/chunks/{bundle-HOuE7syZ.js → bundle-Cmmi9pdk.js} +1 -1
- package/cjs/chunks/{bundle-HOuE7syZ.js.map → bundle-Cmmi9pdk.js.map} +1 -1
- package/cjs/chunks/{bundle-prE7SKQr.js → bundle-CqF06THu.js} +1 -1
- package/cjs/chunks/{bundle-prE7SKQr.js.map → bundle-CqF06THu.js.map} +1 -1
- package/cjs/chunks/{bundle-1FXPxsfD.js → bundle-CsvKRjaK.js} +1 -1
- package/cjs/chunks/bundle-CsvKRjaK.js.map +1 -0
- package/cjs/chunks/{bundle-DiER49ZF.js → bundle-Cyr1aQpR.js} +1 -1
- package/cjs/chunks/bundle-Cyr1aQpR.js.map +1 -0
- package/cjs/chunks/{bundle-knUfDzC9.js → bundle-D1duSVks.js} +14 -14
- package/cjs/chunks/{bundle-knUfDzC9.js.map → bundle-D1duSVks.js.map} +1 -1
- package/cjs/chunks/{bundle-r8oxykjl.js → bundle-DAVdWPDx.js} +10 -10
- package/cjs/chunks/bundle-DAVdWPDx.js.map +1 -0
- package/cjs/chunks/{bundle-BBdLSx_x.js → bundle-DJxxPTK5.js} +3 -3
- package/cjs/chunks/{bundle-BBdLSx_x.js.map → bundle-DJxxPTK5.js.map} +1 -1
- package/cjs/chunks/{bundle-DuHJq3hs.js → bundle-DNP731Dg.js} +16 -16
- package/cjs/chunks/bundle-DNP731Dg.js.map +1 -0
- package/cjs/chunks/{bundle-Dm7xuKwW.js → bundle-DREyIwSt.js} +10 -10
- package/cjs/chunks/{bundle-Dm7xuKwW.js.map → bundle-DREyIwSt.js.map} +1 -1
- package/cjs/chunks/{bundle-_D9xt-bK.js → bundle-DRFWOXrL.js} +1 -1
- package/cjs/chunks/bundle-DRFWOXrL.js.map +1 -0
- package/cjs/chunks/{bundle-BnTCpa1X.js → bundle-DTjdtS4A.js} +12 -13
- package/cjs/chunks/bundle-DTjdtS4A.js.map +1 -0
- package/cjs/chunks/{bundle-P5AI1HkP.js → bundle-DUP4cxoZ.js} +1 -1
- package/cjs/chunks/bundle-DUP4cxoZ.js.map +1 -0
- package/cjs/chunks/{bundle-C36gEKFp.js → bundle-DX2BaZv_.js} +2 -2
- package/cjs/chunks/bundle-DX2BaZv_.js.map +1 -0
- package/cjs/chunks/{bundle-BSLZ5pEu.js → bundle-DcPTVUQJ.js} +3 -3
- package/cjs/chunks/bundle-DcPTVUQJ.js.map +1 -0
- package/cjs/chunks/{bundle-S09sS9Ub.js → bundle-DfYperTC.js} +1 -1
- package/cjs/chunks/bundle-DfYperTC.js.map +1 -0
- package/cjs/chunks/{bundle-C1j0QNr3.js → bundle-DgY0qwTL.js} +5 -5
- package/cjs/chunks/bundle-DgY0qwTL.js.map +1 -0
- package/cjs/chunks/{bundle-CAyt7i0X.js → bundle-DjB9bkvD.js} +1 -1
- package/cjs/chunks/bundle-DjB9bkvD.js.map +1 -0
- package/cjs/chunks/{bundle-BBS4PSSm.js → bundle-Dpu1gg5r.js} +1 -1
- package/cjs/chunks/bundle-Dpu1gg5r.js.map +1 -0
- package/cjs/chunks/{bundle-DsDhHgmF.js → bundle-DxdzDF19.js} +2 -2
- package/cjs/chunks/bundle-DxdzDF19.js.map +1 -0
- package/cjs/chunks/{bundle-Bpm6PJIl.js → bundle-Dy6Gn-sd.js} +7 -7
- package/cjs/chunks/bundle-Dy6Gn-sd.js.map +1 -0
- package/cjs/chunks/{bundle-2ATovRxE.js → bundle-FD0n8tOs.js} +4 -4
- package/cjs/chunks/bundle-FD0n8tOs.js.map +1 -0
- package/cjs/chunks/{bundle-QSgOdsGM.js → bundle-INETVVGE.js} +1 -1
- package/cjs/chunks/bundle-INETVVGE.js.map +1 -0
- package/cjs/chunks/{bundle-vxdq428L.js → bundle-JNAedgrE.js} +1 -1
- package/cjs/chunks/bundle-JNAedgrE.js.map +1 -0
- package/cjs/chunks/{bundle-CncTMWLv.js → bundle-MFvyy6ar.js} +10 -10
- package/cjs/chunks/{bundle-CncTMWLv.js.map → bundle-MFvyy6ar.js.map} +1 -1
- package/cjs/chunks/{bundle-CfEubbCT.js → bundle-NU2voiKZ.js} +3 -3
- package/cjs/chunks/bundle-NU2voiKZ.js.map +1 -0
- package/cjs/chunks/{bundle-urLzDFXK.js → bundle-ORLbcTP_.js} +1 -1
- package/cjs/chunks/bundle-ORLbcTP_.js.map +1 -0
- package/cjs/chunks/{bundle-B3Lu20wG.js → bundle-Q5_I3n-8.js} +1 -1
- package/cjs/chunks/bundle-Q5_I3n-8.js.map +1 -0
- package/cjs/chunks/{bundle-BpwSTA3F.js → bundle-SIHqK2VF.js} +1 -1
- package/cjs/chunks/bundle-SIHqK2VF.js.map +1 -0
- package/cjs/chunks/{bundle-CXaKbxhR.js → bundle-Y_FLyDnc.js} +9 -40
- package/cjs/chunks/bundle-Y_FLyDnc.js.map +1 -0
- package/cjs/chunks/{bundle-p3gZAjMS.js → bundle-cf3-zuo6.js} +1 -1
- package/cjs/chunks/bundle-cf3-zuo6.js.map +1 -0
- package/cjs/chunks/{bundle-BJD09510.js → bundle-dNtU9_eg.js} +6 -6
- package/cjs/chunks/bundle-dNtU9_eg.js.map +1 -0
- package/cjs/chunks/{bundle-QsOyTCMH.js → bundle-djPmP6bl.js} +5 -5
- package/cjs/chunks/{bundle-QsOyTCMH.js.map → bundle-djPmP6bl.js.map} +1 -1
- package/cjs/chunks/{bundle-IVxSH9N4.js → bundle-e6crA6HI.js} +1 -1
- package/cjs/chunks/bundle-e6crA6HI.js.map +1 -0
- package/cjs/chunks/{bundle-B7TedQKS.js → bundle-f6dhmXLj.js} +2 -2
- package/cjs/chunks/bundle-f6dhmXLj.js.map +1 -0
- package/cjs/chunks/{bundle-BiEQOJHh.js → bundle-jdEKrUGh.js} +1 -1
- package/cjs/chunks/bundle-jdEKrUGh.js.map +1 -0
- package/cjs/chunks/{bundle-VIGS3UfE.js → bundle-qgvbJv89.js} +2 -2
- package/cjs/chunks/bundle-qgvbJv89.js.map +1 -0
- package/cjs/chunks/{bundle-CfRX00vQ.js → bundle-tHnRbr7F.js} +1 -1
- package/cjs/chunks/bundle-tHnRbr7F.js.map +1 -0
- package/cjs/chunks/{bundle-CQiNKK2y.js → bundle-tOZCSmZj.js} +2 -2
- package/cjs/chunks/bundle-tOZCSmZj.js.map +1 -0
- package/cjs/chunks/{bundle-kzleXCM7.js → bundle-xvNVoWia.js} +6 -6
- package/cjs/chunks/bundle-xvNVoWia.js.map +1 -0
- package/cjs/hooks/useModal.js +9 -9
- package/cjs/index.js +84 -84
- 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/Carousel.js +254 -0
- package/cjs/ui/Carousel.js.map +1 -0
- 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 +7 -7
- package/cjs/ui/FileMessageItemBody.js +12 -50
- package/cjs/ui/FileMessageItemBody.js.map +1 -1
- package/cjs/ui/FileViewer.js +15 -15
- package/cjs/ui/Icon.js +2 -2
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/ImageRenderer.js +2 -2
- package/cjs/ui/Input.js +3 -3
- package/cjs/ui/Label.js +4 -3
- package/cjs/ui/Label.js.map +1 -1
- package/cjs/ui/LinkLabel.js +3 -3
- package/cjs/ui/Loader.js +2 -2
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +4 -4
- package/cjs/ui/MentionLabel.js +13 -13
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +235 -222
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +15 -15
- package/cjs/ui/MessageItemMenu.js +26 -63
- package/cjs/ui/MessageItemMenu.js.map +1 -1
- 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 +1 -1
- 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 +17 -18
- 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 +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 +198 -85
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +2 -2
- package/cjs/ui/TextMessageItemBody.js +16 -16
- package/cjs/ui/ThreadReplies.js +16 -12
- package/cjs/ui/ThreadReplies.js.map +1 -1
- 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 +15 -16
- package/cjs/ui/UserListItem.js.map +1 -1
- 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 +156 -112
- package/dist/index.css.map +1 -1
- package/hooks/useModal.js +10 -10
- package/index.js +83 -83
- package/package.json +11 -2
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +2 -2
- package/types/lib/dux/appInfo/actionTypes.d.ts +9 -8
- package/types/lib/dux/appInfo/initialState.d.ts +1 -1
- package/types/lib/dux/appInfo/utils.d.ts +1 -1
- package/types/lib/hooks/useMessageTemplateUtils.d.ts +1 -1
- package/types/lib/types.d.ts +1 -1
- package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +3 -5
- package/types/modules/GroupChannel/components/Message/MessageView.d.ts +0 -6
- package/types/modules/GroupChannel/components/MessageTemplateWrapper/index.d.ts +2 -2
- package/types/modules/GroupChannel/context/GroupChannelProvider.d.ts +1 -6
- package/types/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.d.ts +1 -3
- package/types/modules/Thread/context/ThreadProvider.d.ts +0 -2
- package/types/types.d.ts +5 -0
- package/types/ui/Avatar/index.d.ts +1 -0
- package/types/ui/Carousel/index.d.ts +10 -0
- package/types/ui/FileMessageItemBody/index.d.ts +1 -3
- package/types/ui/FileViewer/index.d.ts +1 -2
- package/types/ui/FileViewer/types.d.ts +2 -4
- package/types/ui/Label/index.d.ts +4 -2
- package/types/ui/MessageContent/MessageBody/index.d.ts +1 -3
- package/types/ui/MessageContent/MessageProfile/index.d.ts +1 -0
- package/types/ui/MessageContent/index.d.ts +2 -4
- package/types/ui/MessageItemMenu/index.d.ts +2 -10
- package/types/ui/MobileMenu/types.d.ts +1 -2
- package/types/ui/MultipleFilesMessageItemBody/index.d.ts +1 -3
- package/types/ui/TemplateMessageItemBody/index.d.ts +1 -0
- package/types/ui/TemplateMessageItemBody/types.d.ts +13 -3
- package/types/ui/TemplateMessageItemBody/utils/selectColorVariablesByTheme.d.ts +2 -2
- package/types/ui/ThreadReplies/index.d.ts +4 -2
- package/types/ui/UserListItem/index.d.ts +1 -2
- package/types/utils/index.d.ts +13 -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/Carousel.js +249 -0
- package/ui/Carousel.js.map +1 -0
- 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 +7 -7
- package/ui/FileMessageItemBody.js +12 -50
- package/ui/FileMessageItemBody.js.map +1 -1
- package/ui/FileViewer.js +15 -15
- package/ui/Icon.js +2 -2
- package/ui/IconButton.js +1 -1
- package/ui/ImageRenderer.js +2 -2
- 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 +4 -4
- package/ui/MentionLabel.js +13 -13
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +236 -223
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +15 -15
- package/ui/MessageItemMenu.js +26 -63
- package/ui/MessageItemMenu.js.map +1 -1
- 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 +1 -1
- package/ui/MobileFeedbackMenu.js +9 -9
- package/ui/Modal.js +8 -8
- package/ui/MutedAvatarOverlay.js +2 -2
- package/ui/OGMessageItemBody.js +17 -18
- 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 +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 +198 -85
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +2 -2
- package/ui/TextMessageItemBody.js +16 -16
- package/ui/ThreadReplies.js +13 -12
- package/ui/ThreadReplies.js.map +1 -1
- 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 +15 -16
- package/ui/UserListItem.js.map +1 -1
- 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-1ymLj4Og.js.map +0 -1
- package/chunks/bundle-B8HW06Fl.js.map +0 -1
- package/chunks/bundle-BAsn0CBE.js.map +0 -1
- package/chunks/bundle-BIvhXCoF.js.map +0 -1
- package/chunks/bundle-BVGlC_pg.js.map +0 -1
- package/chunks/bundle-BX0LQWqY.js.map +0 -1
- package/chunks/bundle-BXpzbAbi.js.map +0 -1
- package/chunks/bundle-BkM4cdOJ.js.map +0 -1
- package/chunks/bundle-BlHQV-25.js.map +0 -1
- package/chunks/bundle-BntzGGYb.js.map +0 -1
- package/chunks/bundle-BpDuHeEB.js.map +0 -1
- package/chunks/bundle-C6ZXjQ1L.js.map +0 -1
- package/chunks/bundle-C6fuKmVo.js.map +0 -1
- package/chunks/bundle-CAki7JUf.js.map +0 -1
- package/chunks/bundle-CCUBCV04.js.map +0 -1
- package/chunks/bundle-CIO0N9hp.js.map +0 -1
- package/chunks/bundle-CIhbNReG.js.map +0 -1
- package/chunks/bundle-CJ9_QDKY.js.map +0 -1
- package/chunks/bundle-CLqgMCvn.js.map +0 -1
- package/chunks/bundle-CP1hwfFC.js.map +0 -1
- package/chunks/bundle-CT3xDvIx.js.map +0 -1
- package/chunks/bundle-CZYvKysu.js.map +0 -1
- package/chunks/bundle-CilkBcv-.js.map +0 -1
- package/chunks/bundle-CjW6ZQ1k.js.map +0 -1
- package/chunks/bundle-CkInAxxb.js.map +0 -1
- package/chunks/bundle-Cvm8Ag45.js.map +0 -1
- package/chunks/bundle-D3OeBr-9.js.map +0 -1
- package/chunks/bundle-D45e30Hl.js.map +0 -1
- package/chunks/bundle-DEqxoG9B.js.map +0 -1
- package/chunks/bundle-DHp0VTVS.js.map +0 -1
- package/chunks/bundle-DIEAFe_F.js.map +0 -1
- package/chunks/bundle-DPhbbRZE.js.map +0 -1
- package/chunks/bundle-DQnpJfyk.js.map +0 -1
- package/chunks/bundle-DYJilNov.js.map +0 -1
- package/chunks/bundle-DavEbLba.js.map +0 -1
- package/chunks/bundle-Di7baNGv.js.map +0 -1
- package/chunks/bundle-Dj4HLKX0.js.map +0 -1
- package/chunks/bundle-DlHudqve.js +0 -8
- package/chunks/bundle-DlHudqve.js.map +0 -1
- package/chunks/bundle-DoJNLxY9.js.map +0 -1
- package/chunks/bundle-DqNfXH8L.js.map +0 -1
- package/chunks/bundle-Ds2X6Fjs.js.map +0 -1
- package/chunks/bundle-DuNr1Njk.js.map +0 -1
- package/chunks/bundle-GRqvZZ2N.js.map +0 -1
- package/chunks/bundle-HsrPpAtd.js.map +0 -1
- package/chunks/bundle-IuZ6uyzU.js.map +0 -1
- package/chunks/bundle-SvqLmXeF.js.map +0 -1
- package/chunks/bundle-WrvoTlHQ.js.map +0 -1
- package/chunks/bundle-aE9efllI.js.map +0 -1
- package/chunks/bundle-aJhoAKLH.js.map +0 -1
- package/chunks/bundle-fvRtOX6P.js.map +0 -1
- package/chunks/bundle-j5EP0k3D.js.map +0 -1
- package/chunks/bundle-jd7__XU_.js.map +0 -1
- package/chunks/bundle-oLhQai93.js.map +0 -1
- package/chunks/bundle-rl7Rvf_6.js.map +0 -1
- package/chunks/bundle-ts_i6oEg.js.map +0 -1
- package/chunks/bundle-yNfnN0a6.js.map +0 -1
- package/cjs/chunks/bundle-1FXPxsfD.js.map +0 -1
- package/cjs/chunks/bundle-2ATovRxE.js.map +0 -1
- package/cjs/chunks/bundle-B-njjZtk.js.map +0 -1
- package/cjs/chunks/bundle-B3Lu20wG.js.map +0 -1
- package/cjs/chunks/bundle-B6FFmfTl.js.map +0 -1
- package/cjs/chunks/bundle-B7TedQKS.js.map +0 -1
- package/cjs/chunks/bundle-BBS4PSSm.js.map +0 -1
- package/cjs/chunks/bundle-BElidCBa.js.map +0 -1
- package/cjs/chunks/bundle-BJD09510.js.map +0 -1
- package/cjs/chunks/bundle-BJjQQMo0.js.map +0 -1
- package/cjs/chunks/bundle-BNCNRHux.js.map +0 -1
- package/cjs/chunks/bundle-BO1-msX2.js.map +0 -1
- package/cjs/chunks/bundle-BSLZ5pEu.js.map +0 -1
- package/cjs/chunks/bundle-BXEAjuTY.js +0 -8
- package/cjs/chunks/bundle-BXEAjuTY.js.map +0 -1
- package/cjs/chunks/bundle-BXQqL0gU.js.map +0 -1
- package/cjs/chunks/bundle-B_BPxhrG.js.map +0 -1
- package/cjs/chunks/bundle-Bc6y_vRE.js.map +0 -1
- package/cjs/chunks/bundle-BiEQOJHh.js.map +0 -1
- package/cjs/chunks/bundle-BnTCpa1X.js.map +0 -1
- package/cjs/chunks/bundle-Bpm6PJIl.js.map +0 -1
- package/cjs/chunks/bundle-BpwSTA3F.js.map +0 -1
- package/cjs/chunks/bundle-BzBRoraS.js.map +0 -1
- package/cjs/chunks/bundle-C1j0QNr3.js.map +0 -1
- package/cjs/chunks/bundle-C36gEKFp.js.map +0 -1
- package/cjs/chunks/bundle-CAyt7i0X.js.map +0 -1
- package/cjs/chunks/bundle-CKC-b4Bw.js.map +0 -1
- package/cjs/chunks/bundle-CQiNKK2y.js.map +0 -1
- package/cjs/chunks/bundle-CXDp72cg.js.map +0 -1
- package/cjs/chunks/bundle-CXaKbxhR.js.map +0 -1
- package/cjs/chunks/bundle-CbATYgnP.js.map +0 -1
- package/cjs/chunks/bundle-CfEubbCT.js.map +0 -1
- package/cjs/chunks/bundle-CfRX00vQ.js.map +0 -1
- package/cjs/chunks/bundle-ChQ3Q-GS.js.map +0 -1
- package/cjs/chunks/bundle-CoTIkHcU.js.map +0 -1
- package/cjs/chunks/bundle-CqTg15Dn.js.map +0 -1
- package/cjs/chunks/bundle-D1mv8BUm.js.map +0 -1
- package/cjs/chunks/bundle-DIfKPcm_.js.map +0 -1
- package/cjs/chunks/bundle-DKspFBdx.js.map +0 -1
- package/cjs/chunks/bundle-DOmB6XkC.js.map +0 -1
- package/cjs/chunks/bundle-DRT94QO5.js.map +0 -1
- package/cjs/chunks/bundle-D_RomXCz.js.map +0 -1
- package/cjs/chunks/bundle-DcVYwXP-.js.map +0 -1
- package/cjs/chunks/bundle-DdS-jEnE.js.map +0 -1
- package/cjs/chunks/bundle-DeOn9o6F.js.map +0 -1
- package/cjs/chunks/bundle-DiER49ZF.js.map +0 -1
- package/cjs/chunks/bundle-DkGYX29W.js.map +0 -1
- package/cjs/chunks/bundle-DmPl_3ye.js.map +0 -1
- package/cjs/chunks/bundle-DsDhHgmF.js.map +0 -1
- package/cjs/chunks/bundle-DuHJq3hs.js.map +0 -1
- package/cjs/chunks/bundle-DvduWWQk.js.map +0 -1
- package/cjs/chunks/bundle-HXyGAP9T.js.map +0 -1
- package/cjs/chunks/bundle-IVxSH9N4.js.map +0 -1
- package/cjs/chunks/bundle-P5AI1HkP.js.map +0 -1
- package/cjs/chunks/bundle-QSgOdsGM.js.map +0 -1
- package/cjs/chunks/bundle-S09sS9Ub.js.map +0 -1
- package/cjs/chunks/bundle-VIGS3UfE.js.map +0 -1
- package/cjs/chunks/bundle-YUHup5bR.js.map +0 -1
- package/cjs/chunks/bundle-_D9xt-bK.js.map +0 -1
- package/cjs/chunks/bundle-d3t3a2vc.js.map +0 -1
- package/cjs/chunks/bundle-kzleXCM7.js.map +0 -1
- package/cjs/chunks/bundle-p3gZAjMS.js.map +0 -1
- package/cjs/chunks/bundle-pVDX6G_q.js.map +0 -1
- package/cjs/chunks/bundle-r8oxykjl.js.map +0 -1
- package/cjs/chunks/bundle-tbYf0yOX.js.map +0 -1
- package/cjs/chunks/bundle-urLzDFXK.js.map +0 -1
- package/cjs/chunks/bundle-vxdq428L.js.map +0 -1
|
@@ -13,6 +13,5 @@ export interface FileViewerProps {
|
|
|
13
13
|
onDelete?: (e: MouseEvent) => void;
|
|
14
14
|
onClickLeft?: () => void;
|
|
15
15
|
onClickRight?: () => void;
|
|
16
|
-
onDownloadClick?: (e: MouseEvent) => Promise<void>;
|
|
17
16
|
}
|
|
18
|
-
export default function FileViewer({ message, statefulFileInfoList, onClose, isByMe, onDelete, currentIndex, onClickLeft, onClickRight,
|
|
17
|
+
export default function FileViewer({ message, statefulFileInfoList, onClose, isByMe, onDelete, currentIndex, onClickLeft, onClickRight, }: FileViewerProps): ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export type SupportedImageMimesType = 'image/jpeg' | 'image/jpg' | 'image/png' | 'image/gif' | 'image/svg+xml' | 'image/webp';
|
|
3
3
|
export type SupportedVideoMimesType = 'video/mpeg' | 'video/ogg' | 'video/webm' | 'video/mp4';
|
|
4
4
|
export type SupportedMimesType = SupportedImageMimesType | SupportedVideoMimesType;
|
|
@@ -32,8 +32,7 @@ export interface SingleFileViewer extends SenderInfo, FileInfo, BaseViewer {
|
|
|
32
32
|
viewerType?: typeof ViewerTypes.SINGLE;
|
|
33
33
|
isByMe?: boolean;
|
|
34
34
|
disableDelete?: boolean;
|
|
35
|
-
onDelete: (e: MouseEvent) => void;
|
|
36
|
-
onDownloadClick?: (e: MouseEvent) => Promise<void>;
|
|
35
|
+
onDelete: (e: React.MouseEvent) => void;
|
|
37
36
|
}
|
|
38
37
|
export interface MultiFilesViewer extends SenderInfo, BaseViewer {
|
|
39
38
|
viewerType: typeof ViewerTypes.MULTI;
|
|
@@ -41,6 +40,5 @@ export interface MultiFilesViewer extends SenderInfo, BaseViewer {
|
|
|
41
40
|
currentIndex: number;
|
|
42
41
|
onClickLeft: () => void;
|
|
43
42
|
onClickRight: () => void;
|
|
44
|
-
onDownloadClick?: (e: MouseEvent) => Promise<void>;
|
|
45
43
|
}
|
|
46
44
|
export type FileViewerComponentProps = SingleFileViewer | MultiFilesViewer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
2
|
import './index.scss';
|
|
3
3
|
import { Typography, Colors } from './types';
|
|
4
4
|
import { ObjectValues } from '../../utils/typeHelpers/objectValues';
|
|
@@ -8,7 +8,7 @@ type LabelProps = {
|
|
|
8
8
|
color?: ObjectValues<typeof Colors>;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export declare function Label({ className, type, color, children, }: LabelProps, ref?: RefObject<HTMLDivElement>): React.JSX.Element;
|
|
12
12
|
declare const LabelTypography: {
|
|
13
13
|
readonly H_1: "H_1";
|
|
14
14
|
readonly H_2: "H_2";
|
|
@@ -38,3 +38,5 @@ declare const LabelColors: {
|
|
|
38
38
|
};
|
|
39
39
|
declare const LabelStringSet: import("./stringSet").StringSet;
|
|
40
40
|
export { LabelTypography, LabelColors, LabelStringSet };
|
|
41
|
+
declare const _default: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
export default _default;
|
|
@@ -4,13 +4,11 @@ import { CoreMessageType } from '../../../utils';
|
|
|
4
4
|
import { SendBirdStateConfig } from '../../../lib/types';
|
|
5
5
|
import { Nullable } from '../../../types';
|
|
6
6
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
7
|
-
import type { OnBeforeDownloadFileMessageType } from '../../../modules/GroupChannel/context/GroupChannelProvider';
|
|
8
7
|
export interface MessageBodyProps {
|
|
9
8
|
channel: Nullable<GroupChannel>;
|
|
10
9
|
message: CoreMessageType;
|
|
11
10
|
showFileViewer?: (bool: boolean) => void;
|
|
12
|
-
onMessageHeightChange?: () => void;
|
|
13
|
-
onBeforeDownloadFileMessage?: OnBeforeDownloadFileMessageType;
|
|
11
|
+
onMessageHeightChange?: (isBottomMessageAffected?: boolean) => void;
|
|
14
12
|
mouseHover: boolean;
|
|
15
13
|
isMobile: boolean;
|
|
16
14
|
config: SendBirdStateConfig;
|
|
@@ -4,5 +4,6 @@ import { MessageContentProps } from '../index';
|
|
|
4
4
|
export interface MessageProfileProps extends MessageContentProps {
|
|
5
5
|
isByMe?: boolean;
|
|
6
6
|
displayThreadReplies?: boolean;
|
|
7
|
+
bottom?: string;
|
|
7
8
|
}
|
|
8
9
|
export default function MessageProfile(props: MessageProfileProps): ReactElement;
|
|
@@ -3,8 +3,7 @@ import './index.scss';
|
|
|
3
3
|
import { MessageMenuProps } from '../MessageItemMenu';
|
|
4
4
|
import { MessageEmojiMenuProps } from '../MessageItemReactionMenu';
|
|
5
5
|
import { EmojiReactionsProps } from '../EmojiReactions';
|
|
6
|
-
import
|
|
7
|
-
import { SendableMessageType, CoreMessageType } from '../../utils';
|
|
6
|
+
import { CoreMessageType, SendableMessageType } from '../../utils';
|
|
8
7
|
import { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
9
8
|
import { EmojiContainer } from '@sendbird/chat';
|
|
10
9
|
import { ThreadReplySelectType } from '../../modules/Channel/context/const';
|
|
@@ -41,8 +40,7 @@ export interface MessageContentProps {
|
|
|
41
40
|
onQuoteMessageClick?: (props: {
|
|
42
41
|
message: SendableMessageType;
|
|
43
42
|
}) => void;
|
|
44
|
-
onMessageHeightChange?: () => void;
|
|
45
|
-
onBeforeDownloadFileMessage?: OnBeforeDownloadFileMessageType;
|
|
43
|
+
onMessageHeightChange?: (isBottomMessageAffected?: boolean) => void;
|
|
46
44
|
renderSenderProfile?: (props: MessageProfileProps) => ReactNode;
|
|
47
45
|
renderMessageBody?: (props: MessageBodyProps) => ReactNode;
|
|
48
46
|
renderMessageHeader?: (props: MessageHeaderProps) => ReactNode;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
3
|
import type { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
4
4
|
import type { OpenChannel } from '@sendbird/chat/openChannel';
|
|
5
5
|
import { SendableMessageType } from '../../utils/index';
|
|
6
6
|
import { ReplyType } from '../../types';
|
|
7
|
-
export interface MessageMenuRenderMenuItemProps {
|
|
8
|
-
className?: string;
|
|
9
|
-
onClick?: (e: MouseEvent) => void;
|
|
10
|
-
dataSbId?: string;
|
|
11
|
-
disable?: boolean;
|
|
12
|
-
text: string;
|
|
13
|
-
}
|
|
14
7
|
export interface MessageMenuProps {
|
|
15
8
|
className?: string | Array<string>;
|
|
16
9
|
message: SendableMessageType;
|
|
@@ -29,7 +22,6 @@ export interface MessageMenuProps {
|
|
|
29
22
|
message: SendableMessageType;
|
|
30
23
|
}) => void;
|
|
31
24
|
onMoveToParentMessage?: () => void;
|
|
32
|
-
renderMenuItem?: (props: MessageMenuRenderMenuItemProps) => ReactElement;
|
|
33
25
|
}
|
|
34
|
-
export declare function MessageMenu({ className, message, channel, isByMe, disabled, replyType, disableDeleteMessage, showEdit, showRemove, deleteMessage, resendMessage, setQuoteMessage, setSupposedHover, onReplyInThread, onMoveToParentMessage,
|
|
26
|
+
export declare function MessageMenu({ className, message, channel, isByMe, disabled, replyType, disableDeleteMessage, showEdit, showRemove, deleteMessage, resendMessage, setQuoteMessage, setSupposedHover, onReplyInThread, onMoveToParentMessage, }: MessageMenuProps): ReactElement;
|
|
35
27
|
export default MessageMenu;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { MouseEvent } from 'react';
|
|
2
1
|
import type { EmojiContainer } from '@sendbird/chat';
|
|
3
2
|
import type { GroupChannel } from '@sendbird/chat/groupChannel';
|
|
4
3
|
import type { OpenChannel } from '@sendbird/chat/openChannel';
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import { CoreMessageType, SendableMessageType } from '../../utils';
|
|
6
6
|
import { ReplyType } from '../../types';
|
|
7
7
|
export type DeleteMenuStates = 'DISABLE' | 'HIDE' | 'ACTIVE';
|
|
@@ -25,7 +25,6 @@ export interface BaseMenuProps {
|
|
|
25
25
|
message: SendableMessageType;
|
|
26
26
|
}) => void;
|
|
27
27
|
isOpenedFromThread?: boolean;
|
|
28
|
-
onDownloadClick?: (e: MouseEvent) => Promise<void>;
|
|
29
28
|
}
|
|
30
29
|
export interface MobileBottomSheetProps extends BaseMenuProps {
|
|
31
30
|
emojiContainer?: EmojiContainer;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { MultipleFilesMessage } from '@sendbird/chat/message';
|
|
3
|
-
import type { OnBeforeDownloadFileMessageType } from '../../modules/GroupChannel/context/GroupChannelProvider';
|
|
4
3
|
import './index.scss';
|
|
5
4
|
import { UploadedFileInfoWithUpload } from '../../types';
|
|
6
5
|
export declare const ThreadMessageKind: {
|
|
@@ -17,7 +16,6 @@ interface Props {
|
|
|
17
16
|
truncateLimit?: number;
|
|
18
17
|
threadMessageKindKey?: string;
|
|
19
18
|
statefulFileInfoList?: UploadedFileInfoWithUpload[];
|
|
20
|
-
onBeforeDownloadFileMessage?: OnBeforeDownloadFileMessageType;
|
|
21
19
|
}
|
|
22
|
-
export default function MultipleFilesMessageItemBody({ className, message, isReactionEnabled, threadMessageKindKey, statefulFileInfoList,
|
|
20
|
+
export default function MultipleFilesMessageItemBody({ className, message, isReactionEnabled, threadMessageKindKey, statefulFileInfoList, }: Props): ReactElement;
|
|
23
21
|
export {};
|
|
@@ -7,6 +7,7 @@ interface TemplateMessageItemBodyProps {
|
|
|
7
7
|
message: BaseMessage;
|
|
8
8
|
isByMe?: boolean;
|
|
9
9
|
theme?: SendbirdTheme;
|
|
10
|
+
onLoad?: () => void;
|
|
10
11
|
}
|
|
11
12
|
export declare function TemplateMessageItemBody({ className, message, isByMe, theme, }: TemplateMessageItemBodyProps): ReactElement;
|
|
12
13
|
export default TemplateMessageItemBody;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentsUnion } from '@sendbird/uikit-message-template';
|
|
2
|
+
import type { ViewStyle } from '@sendbird/uikit-message-template/src/types/styles';
|
|
2
3
|
type SendbirdFontWeight = 'bold' | 'normal';
|
|
3
4
|
/**
|
|
4
5
|
* The value of each theme property contains both light and dark value with comma separated string
|
|
@@ -75,8 +76,17 @@ export type MessageTemplateTheme = {
|
|
|
75
76
|
};
|
|
76
77
|
};
|
|
77
78
|
};
|
|
78
|
-
export type MessageTemplateItem = ComponentsUnion['properties'];
|
|
79
|
-
export
|
|
79
|
+
export type MessageTemplateItem = ComponentsUnion['properties'] | CarouselItem;
|
|
80
|
+
export interface CarouselItem {
|
|
81
|
+
type: string;
|
|
82
|
+
viewStyle?: ViewStyle;
|
|
83
|
+
spacing: number;
|
|
84
|
+
items: string;
|
|
85
|
+
}
|
|
86
|
+
export type MessageTemplateData = SimpleTemplateData & {
|
|
87
|
+
view_variables?: Record<string, SimpleTemplateData[]>;
|
|
88
|
+
};
|
|
89
|
+
export type SimpleTemplateData = {
|
|
80
90
|
key: string;
|
|
81
91
|
variables?: Record<string, any>;
|
|
82
92
|
};
|
|
@@ -90,7 +100,7 @@ export type SendbirdMessageTemplate = {
|
|
|
90
100
|
items: MessageTemplateItem[];
|
|
91
101
|
};
|
|
92
102
|
};
|
|
93
|
-
color_variables?: Record<string, string>;
|
|
94
103
|
name?: string;
|
|
104
|
+
color_variables?: Record<string, string>;
|
|
95
105
|
};
|
|
96
106
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SendbirdTheme } from '../../../types';
|
|
2
|
-
|
|
2
|
+
export declare function convertArgbToRgba(string: string): string;
|
|
3
3
|
export default function selectColorVariablesByTheme({ colorVariables, theme }: {
|
|
4
4
|
colorVariables: Record<string, unknown>;
|
|
5
5
|
theme: SendbirdTheme;
|
|
6
|
-
}):
|
|
6
|
+
}): Record<string, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
2
|
import { ThreadInfo } from '@sendbird/chat/message';
|
|
3
3
|
import './index.scss';
|
|
4
4
|
export interface ThreadRepliesProps {
|
|
@@ -6,4 +6,6 @@ export interface ThreadRepliesProps {
|
|
|
6
6
|
threadInfo: ThreadInfo;
|
|
7
7
|
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare function ThreadReplies({ className, threadInfo, onClick, }: ThreadRepliesProps, ref?: RefObject<HTMLDivElement>): React.ReactElement;
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<ThreadRepliesProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ChangeEvent, MutableRefObject, ReactElement } from 'react';
|
|
2
2
|
import { User } from '@sendbird/chat';
|
|
3
|
-
import { Member } from '@sendbird/chat/groupChannel';
|
|
4
3
|
import './index.scss';
|
|
5
4
|
export interface UserListItemProps {
|
|
6
|
-
user: User
|
|
5
|
+
user: User;
|
|
7
6
|
className?: string;
|
|
8
7
|
checked?: boolean;
|
|
9
8
|
checkBox?: boolean;
|
package/types/utils/index.d.ts
CHANGED
|
@@ -60,6 +60,17 @@ export declare const isMultipleFilesMessage: (message: CoreMessageType) => boole
|
|
|
60
60
|
export declare const isParentMessage: (message: CoreMessageType) => boolean;
|
|
61
61
|
export declare const isThreadMessage: (message: CoreMessageType) => boolean;
|
|
62
62
|
export declare const isTemplateMessage: (message: CoreMessageType) => boolean;
|
|
63
|
+
export declare const isCompositeTemplateMessage: (message: CoreMessageType) => boolean;
|
|
64
|
+
export declare enum UI_CONTAINER_TYPES {
|
|
65
|
+
DEFAULT = "",
|
|
66
|
+
WIDE = "ui_container_type__wide",
|
|
67
|
+
FULL = "ui_container_type__full",
|
|
68
|
+
DEFAULT_CAROUSEL = "ui_container_type__default-carousel"
|
|
69
|
+
}
|
|
70
|
+
export declare const getMessageContentMiddleClassNameByContainerType: ({ message, isMobile, }: {
|
|
71
|
+
message: CoreMessageType;
|
|
72
|
+
isMobile: boolean;
|
|
73
|
+
}) => UI_CONTAINER_TYPES;
|
|
63
74
|
export declare const isOGMessage: (message: SendableMessageType) => boolean;
|
|
64
75
|
export declare const isTextMessage: (message: SendableMessageType) => boolean;
|
|
65
76
|
export declare const isThumbnailMessage: (message: SendableMessageType) => boolean;
|
|
@@ -83,6 +94,8 @@ export declare const getUIKitMessageType: (message: CoreMessageType) => string;
|
|
|
83
94
|
* */
|
|
84
95
|
export declare const getSendingMessageStatus: () => SendingMessageStatus;
|
|
85
96
|
export declare const getClassName: (classNames: string | Array<string | Array<string>>) => string;
|
|
97
|
+
export declare const startsWithAtAndEndsWithBraces: (str: string) => boolean;
|
|
98
|
+
export declare const removeAtAndBraces: (str: string) => string;
|
|
86
99
|
export declare const isReactedBy: (userId: string, reaction: Reaction) => boolean;
|
|
87
100
|
interface StringSet {
|
|
88
101
|
TOOLTIP__YOU: string;
|
package/ui/Accordion.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-D_KO6Orc.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import Icon, { IconTypes } from './Icon.js';
|
|
4
4
|
import AccordionGroup$1 from './AccordionGroup.js';
|
|
5
|
-
import { C as Consumer } from '../chunks/bundle-
|
|
6
|
-
import '../chunks/bundle-
|
|
5
|
+
import { C as Consumer } from '../chunks/bundle-DrfdRrEf.js';
|
|
6
|
+
import '../chunks/bundle-CwofYH9U.js';
|
|
7
7
|
|
|
8
8
|
function Accordion(_a) {
|
|
9
9
|
var className = _a.className, id = _a.id, renderTitle = _a.renderTitle, renderContent = _a.renderContent, renderFooter = _a.renderFooter;
|
package/ui/AccordionGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useState } from 'react';
|
|
2
|
-
import { P as Provider } from '../chunks/bundle-
|
|
3
|
-
import '../chunks/bundle-
|
|
2
|
+
import { P as Provider } from '../chunks/bundle-DrfdRrEf.js';
|
|
3
|
+
import '../chunks/bundle-CwofYH9U.js';
|
|
4
4
|
|
|
5
5
|
// Wraps all the accordions in an accordion set
|
|
6
6
|
// keep one accordion open at a time
|
package/ui/AdminMessage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-D_KO6Orc.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
4
|
-
import '../chunks/bundle-
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-C-_RpFyM.js';
|
|
4
|
+
import '../chunks/bundle-DXhynnjn.js';
|
|
5
5
|
|
|
6
6
|
function AdminMessage(_a) {
|
|
7
7
|
var _b;
|
package/ui/Avatar.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../chunks/bundle-
|
|
1
|
+
import '../chunks/bundle-D_KO6Orc.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './ImageRenderer.js';
|
|
4
|
-
export { b as AvatarInner, A as default } from '../chunks/bundle-
|
|
5
|
-
import '../chunks/bundle-
|
|
6
|
-
import '../chunks/bundle-
|
|
4
|
+
export { b as AvatarInner, A as default } from '../chunks/bundle-C4sUzPGS.js';
|
|
5
|
+
import '../chunks/bundle-CwofYH9U.js';
|
|
6
|
+
import '../chunks/bundle-BUy5u56K.js';
|
|
7
7
|
import './Icon.js';
|
|
8
8
|
//# sourceMappingURL=Avatar.js.map
|
package/ui/Badge.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-D_KO6Orc.js';
|
|
2
2
|
import React__default, { useContext } from 'react';
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
4
|
-
import { L as LocalizationContext } from '../chunks/bundle-
|
|
5
|
-
import '../chunks/bundle-
|
|
6
|
-
import '../chunks/bundle-
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-C-_RpFyM.js';
|
|
4
|
+
import { L as LocalizationContext } from '../chunks/bundle-CJIPD7gN.js';
|
|
5
|
+
import '../chunks/bundle-DXhynnjn.js';
|
|
6
|
+
import '../chunks/bundle-CcTHgZqq.js';
|
|
7
7
|
|
|
8
8
|
function Badge(_a) {
|
|
9
9
|
var count = _a.count, _b = _a.maxLevel, maxLevel = _b === void 0 ? 2 : _b, _c = _a.className, className = _c === void 0 ? '' : _c;
|
package/ui/BottomSheet.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React__default, { useRef } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import '../hooks/useModal.js';
|
|
4
|
-
import { a as MODAL_ROOT } from '../chunks/bundle-
|
|
5
|
-
import '../chunks/bundle-
|
|
6
|
-
import '../chunks/bundle-
|
|
7
|
-
import '../chunks/bundle-
|
|
8
|
-
import '../chunks/bundle-
|
|
9
|
-
import '../chunks/bundle-
|
|
10
|
-
import '../chunks/bundle-
|
|
11
|
-
import '../chunks/bundle-
|
|
4
|
+
import { a as MODAL_ROOT } from '../chunks/bundle-BSPBjwR6.js';
|
|
5
|
+
import '../chunks/bundle-D_KO6Orc.js';
|
|
6
|
+
import '../chunks/bundle-aH4n4ipp.js';
|
|
7
|
+
import '../chunks/bundle-CwofYH9U.js';
|
|
8
|
+
import '../chunks/bundle-CJIPD7gN.js';
|
|
9
|
+
import '../chunks/bundle-DXhynnjn.js';
|
|
10
|
+
import '../chunks/bundle-CcTHgZqq.js';
|
|
11
|
+
import '../chunks/bundle-BuIxT5aZ.js';
|
|
12
12
|
import './IconButton.js';
|
|
13
13
|
import './Button.js';
|
|
14
|
-
import '../chunks/bundle-
|
|
14
|
+
import '../chunks/bundle-C-_RpFyM.js';
|
|
15
15
|
import './Icon.js';
|
|
16
16
|
|
|
17
17
|
var BottomSheet = function (props) {
|
package/ui/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as __spreadArray } from '../chunks/bundle-
|
|
1
|
+
import { c as __spreadArray } from '../chunks/bundle-D_KO6Orc.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-
|
|
4
|
-
import '../chunks/bundle-
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../chunks/bundle-C-_RpFyM.js';
|
|
4
|
+
import '../chunks/bundle-DXhynnjn.js';
|
|
5
5
|
|
|
6
6
|
var ButtonTypes;
|
|
7
7
|
(function (ButtonTypes) {
|
package/ui/Carousel.js
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { _ as __assign } from '../chunks/bundle-D_KO6Orc.js';
|
|
2
|
+
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
|
+
|
|
4
|
+
var PADDING_WIDTH = 24;
|
|
5
|
+
var CONTENT_LEFT_WIDTH = 40;
|
|
6
|
+
var SWIPE_THRESHOLD = 15;
|
|
7
|
+
var LAST_ITEM_RIGHT_SNAP_THRESHOLD = 100;
|
|
8
|
+
/**
|
|
9
|
+
* fixed sized template items should use its child width.
|
|
10
|
+
* Whereas flex sized template items should use its parent's width.
|
|
11
|
+
* @param item
|
|
12
|
+
*/
|
|
13
|
+
function shouldRenderAsFixed(item) {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.type) === 'fixed';
|
|
16
|
+
}
|
|
17
|
+
function CarouselItem(_a) {
|
|
18
|
+
var item = _a.item, defaultWidth = _a.defaultWidth;
|
|
19
|
+
return React__default.createElement("div", { style: shouldRenderAsFixed(item) ? { width: 'fit-content' } : { minWidth: defaultWidth } }, item);
|
|
20
|
+
}
|
|
21
|
+
var Carousel = React__default.memo(function (_a) {
|
|
22
|
+
var _b, _c;
|
|
23
|
+
var id = _a.id, items = _a.items, _d = _a.gap, gap = _d === void 0 ? 8 : _d, _e = _a.classNameWithTouchAction, classNameWithTouchAction = _e === void 0 ? 'sendbird-conversation__messages-padding' : _e;
|
|
24
|
+
var carouselRef = useRef(null);
|
|
25
|
+
var screenWidth = window.innerWidth;
|
|
26
|
+
var defaultItemWidth = (_c = (_b = carouselRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) !== null && _c !== void 0 ? _c : 0;
|
|
27
|
+
var itemWidths = items.map(function (item) {
|
|
28
|
+
var _a;
|
|
29
|
+
if (shouldRenderAsFixed(item)) {
|
|
30
|
+
return (_a = item.props.templateItems[0].width) === null || _a === void 0 ? void 0 : _a.value;
|
|
31
|
+
}
|
|
32
|
+
return defaultItemWidth;
|
|
33
|
+
});
|
|
34
|
+
var allItemsWidth = itemWidths.reduce(function (prev, curr) { return prev + gap + curr; });
|
|
35
|
+
var lastItemWidth = itemWidths[itemWidths.length - 1];
|
|
36
|
+
var isLastItemNarrow = lastItemWidth <= LAST_ITEM_RIGHT_SNAP_THRESHOLD;
|
|
37
|
+
var isLastTwoItemsFitScreen = getIsLastTwoItemsFitScreen();
|
|
38
|
+
var itemPositions = getEachItemPositions();
|
|
39
|
+
var _f = useState({
|
|
40
|
+
scrolling: false,
|
|
41
|
+
dragging: false,
|
|
42
|
+
startPos: null,
|
|
43
|
+
offset: 0,
|
|
44
|
+
translateX: 0,
|
|
45
|
+
currentIndex: 0,
|
|
46
|
+
}), draggingInfo = _f[0], setDraggingInfo = _f[1];
|
|
47
|
+
var handleMouseDown = function (event) {
|
|
48
|
+
setDraggingInfo(__assign(__assign({}, draggingInfo), { scrolling: false, dragging: true, startPos: {
|
|
49
|
+
x: event.clientX,
|
|
50
|
+
y: event.clientY,
|
|
51
|
+
}, offset: 0 }));
|
|
52
|
+
};
|
|
53
|
+
var handleMouseMove = function (event) {
|
|
54
|
+
if (!draggingInfo.dragging)
|
|
55
|
+
return;
|
|
56
|
+
var currentX = event.clientX;
|
|
57
|
+
var newOffset = currentX - draggingInfo.startPos.x;
|
|
58
|
+
setDraggingInfo(__assign(__assign({}, draggingInfo), { offset: newOffset }));
|
|
59
|
+
};
|
|
60
|
+
var handleMouseUp = function () {
|
|
61
|
+
if (!draggingInfo.dragging)
|
|
62
|
+
return;
|
|
63
|
+
handleDragEnd();
|
|
64
|
+
};
|
|
65
|
+
var blockScroll = function () {
|
|
66
|
+
var parentElements = document.getElementsByClassName(classNameWithTouchAction);
|
|
67
|
+
var parentElement = parentElements[0];
|
|
68
|
+
if (parentElement) {
|
|
69
|
+
parentElement.style.touchAction = 'pan-x';
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var unblockScroll = function () {
|
|
73
|
+
var parentElements = document.getElementsByClassName(classNameWithTouchAction);
|
|
74
|
+
var parentElement = parentElements[0];
|
|
75
|
+
if (parentElement) {
|
|
76
|
+
parentElement.style.touchAction = 'pan-y';
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var handleTouchStart = function (event) {
|
|
80
|
+
setDraggingInfo(__assign(__assign({}, draggingInfo), { scrolling: false, dragging: false, startPos: {
|
|
81
|
+
x: event.touches[0].clientX,
|
|
82
|
+
y: event.touches[0].clientY,
|
|
83
|
+
}, offset: 0 }));
|
|
84
|
+
};
|
|
85
|
+
useEffect(function () {
|
|
86
|
+
if (draggingInfo.scrolling) {
|
|
87
|
+
unblockScroll();
|
|
88
|
+
}
|
|
89
|
+
}, [draggingInfo.scrolling]);
|
|
90
|
+
var handleTouchMove = function (event) {
|
|
91
|
+
if (!draggingInfo.startPos || draggingInfo.scrolling)
|
|
92
|
+
return;
|
|
93
|
+
var startPos = draggingInfo.startPos;
|
|
94
|
+
var touchMoveX = event.touches[0].clientX;
|
|
95
|
+
var touchMoveY = event.touches[0].clientY;
|
|
96
|
+
var deltaX = Math.abs(touchMoveX - startPos.x);
|
|
97
|
+
var deltaY = Math.abs(touchMoveY - startPos.y);
|
|
98
|
+
var newOffset = touchMoveX - startPos.x;
|
|
99
|
+
if (newOffset === draggingInfo.offset)
|
|
100
|
+
return;
|
|
101
|
+
if (draggingInfo.dragging) {
|
|
102
|
+
setDraggingInfo(__assign(__assign({}, draggingInfo), { offset: newOffset }));
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (deltaY > deltaX) {
|
|
106
|
+
setDraggingInfo(__assign(__assign({}, draggingInfo), { scrolling: true }));
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
blockScroll();
|
|
110
|
+
setDraggingInfo(__assign(__assign({}, draggingInfo), { dragging: true, offset: newOffset }));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var getNewDraggingInfo = function (props) {
|
|
114
|
+
if (props === void 0) { props = {}; }
|
|
115
|
+
var newTranslateX = props.newTranslateX, nextIndex = props.nextIndex;
|
|
116
|
+
var translateX = draggingInfo.translateX, currentIndex = draggingInfo.currentIndex;
|
|
117
|
+
return {
|
|
118
|
+
scrolling: false,
|
|
119
|
+
dragging: false,
|
|
120
|
+
startPos: null,
|
|
121
|
+
offset: 0,
|
|
122
|
+
translateX: newTranslateX !== null && newTranslateX !== void 0 ? newTranslateX : translateX,
|
|
123
|
+
currentIndex: nextIndex !== null && nextIndex !== void 0 ? nextIndex : currentIndex,
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
var handleDragEnd = function () {
|
|
127
|
+
var offset = draggingInfo.offset;
|
|
128
|
+
var absOffset = Math.abs(offset);
|
|
129
|
+
if (absOffset < SWIPE_THRESHOLD) {
|
|
130
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
// If dragged to left, next index should be to the right
|
|
134
|
+
var currentIndex = draggingInfo.currentIndex;
|
|
135
|
+
if (offset < 0 && currentIndex < items.length - 1) {
|
|
136
|
+
var nextIndex = currentIndex + 1;
|
|
137
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
138
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
139
|
+
nextIndex: nextIndex,
|
|
140
|
+
}));
|
|
141
|
+
// If dragged to right, next index should be to the left
|
|
142
|
+
}
|
|
143
|
+
else if (offset > 0 && currentIndex > 0) {
|
|
144
|
+
var nextIndex = currentIndex - 1;
|
|
145
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
146
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
147
|
+
nextIndex: nextIndex,
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
var handleTouchEnd = function () {
|
|
155
|
+
var offset = draggingInfo.offset, currentIndex = draggingInfo.currentIndex;
|
|
156
|
+
var absOffset = Math.abs(offset);
|
|
157
|
+
if (absOffset < SWIPE_THRESHOLD) {
|
|
158
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
// If dragged to left, next index should be to the right
|
|
162
|
+
if (offset < 0 && currentIndex < items.length - 1) {
|
|
163
|
+
var nextIndex = currentIndex + 1;
|
|
164
|
+
/**
|
|
165
|
+
* This is special logic for "더 보기" button for Socar use-case.
|
|
166
|
+
* The button will have a small width (less than 50px).
|
|
167
|
+
* We want to include this button in the view and snap to right padding wall IFF !isLastTwoItemsFitScreen.
|
|
168
|
+
*/
|
|
169
|
+
if (isLastItemNarrow) {
|
|
170
|
+
if (isLastTwoItemsFitScreen) {
|
|
171
|
+
if (nextIndex !== items.length - 1) {
|
|
172
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
173
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
174
|
+
nextIndex: nextIndex,
|
|
175
|
+
}));
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
else if (nextIndex !== items.length - 1) {
|
|
182
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
183
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
184
|
+
nextIndex: nextIndex,
|
|
185
|
+
}));
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
var translateWidth = itemPositions[nextIndex].start - lastItemWidth;
|
|
189
|
+
var rightEmptyWidth = screenWidth - (allItemsWidth + translateWidth + PADDING_WIDTH + CONTENT_LEFT_WIDTH);
|
|
190
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
191
|
+
newTranslateX: translateWidth + rightEmptyWidth,
|
|
192
|
+
nextIndex: nextIndex,
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
198
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
199
|
+
nextIndex: nextIndex,
|
|
200
|
+
}));
|
|
201
|
+
}
|
|
202
|
+
// If dragged to right, next index should be to the left
|
|
203
|
+
}
|
|
204
|
+
else if (offset > 0 && currentIndex > 0) {
|
|
205
|
+
var nextIndex = currentIndex - 1;
|
|
206
|
+
setDraggingInfo(getNewDraggingInfo({
|
|
207
|
+
newTranslateX: itemPositions[nextIndex].start,
|
|
208
|
+
nextIndex: nextIndex,
|
|
209
|
+
}));
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
setDraggingInfo(getNewDraggingInfo());
|
|
213
|
+
}
|
|
214
|
+
if (draggingInfo.dragging) {
|
|
215
|
+
unblockScroll();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
function getCurrentTranslateX() {
|
|
219
|
+
return draggingInfo.translateX + draggingInfo.offset;
|
|
220
|
+
}
|
|
221
|
+
function getIsLastTwoItemsFitScreen() {
|
|
222
|
+
var restItemsWidth = itemWidths.slice(-2).reduce(function (prev, curr) { return prev + gap + curr; });
|
|
223
|
+
var restTotalWidth = PADDING_WIDTH + CONTENT_LEFT_WIDTH + restItemsWidth;
|
|
224
|
+
return restTotalWidth <= screenWidth;
|
|
225
|
+
}
|
|
226
|
+
function getEachItemPositions() {
|
|
227
|
+
var accumulator = 0;
|
|
228
|
+
return itemWidths.map(function (itemWidth, i) {
|
|
229
|
+
if (i > 0) {
|
|
230
|
+
accumulator -= gap;
|
|
231
|
+
}
|
|
232
|
+
var itemPosition = {
|
|
233
|
+
start: accumulator,
|
|
234
|
+
end: accumulator - itemWidth,
|
|
235
|
+
};
|
|
236
|
+
accumulator -= itemWidth;
|
|
237
|
+
return itemPosition;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
return (React__default.createElement("div", { id: id, ref: carouselRef, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, className: 'sendbird-carousel-items-wrapper', style: {
|
|
241
|
+
cursor: draggingInfo.dragging ? 'grabbing' : 'grab',
|
|
242
|
+
transition: draggingInfo.dragging ? 'none' : 'transform 0.5s ease',
|
|
243
|
+
transform: "translateX(".concat(getCurrentTranslateX(), "px)"),
|
|
244
|
+
gap: gap,
|
|
245
|
+
} }, items.map(function (item, index) { return (React__default.createElement(CarouselItem, { key: "".concat(id, "-").concat(index), item: item, defaultWidth: defaultItemWidth + 'px' })); })));
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
export { Carousel, Carousel as default };
|
|
249
|
+
//# sourceMappingURL=Carousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/ui/ChannelAvatar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useMemo } from 'react';
|
|
2
|
-
import { A as Avatar } from '../chunks/bundle-
|
|
2
|
+
import { A as Avatar } from '../chunks/bundle-C4sUzPGS.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
4
|
-
import { g as generateDefaultAvatar, a as getChannelAvatarSource } from '../chunks/bundle-
|
|
5
|
-
import '../chunks/bundle-
|
|
4
|
+
import { g as generateDefaultAvatar, a as getChannelAvatarSource } from '../chunks/bundle-BPclYGwz.js';
|
|
5
|
+
import '../chunks/bundle-D_KO6Orc.js';
|
|
6
6
|
import './ImageRenderer.js';
|
|
7
|
-
import '../chunks/bundle-
|
|
8
|
-
import '../chunks/bundle-
|
|
7
|
+
import '../chunks/bundle-CwofYH9U.js';
|
|
8
|
+
import '../chunks/bundle-BUy5u56K.js';
|
|
9
9
|
|
|
10
10
|
function ChannelAvatar(_a) {
|
|
11
11
|
var channel = _a.channel, userId = _a.userId, theme = _a.theme, _b = _a.width, width = _b === void 0 ? 56 : _b, _c = _a.height, height = _c === void 0 ? 56 : _c;
|